*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(30, 15, 10, 0.75), transparent 50%),
    linear-gradient(
      135deg,
      rgba(2, 6, 23, 0.85) 0%,
      rgba(21, 11, 8, 0.8) 12%,
      rgba(59, 20, 16, 0.75) 32%,
      rgba(122, 36, 20, 0.7) 52%,
      rgba(201, 59, 26, 0.6) 72%,
      rgba(0, 0, 0, 0.8) 100%
    );
  background-repeat: no-repeat;
  color: #f9fafb;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Use system default cursor everywhere; pointer only on obvious interactive elements */
a,
button,
input,
textarea,
.gallery-bar__menu-trigger,
.gallery-bar__menu-link,
.gallery-bar__title,
.gallery-flow-arrow,
.media-item,
.lightbox__close,
.lightbox__arrow,
.profile__cta-btn,
.profile__cta-link,
.contact__submit,
.contact__instagram {
  cursor: pointer;
}

body.page-contact {
  overflow: auto;
}

body.page-contact::after {
  background-image: none;
}

body.page-profile::after {
  background-image: none;
}

/* Profile page background video */
.profile-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #070a10; /* fallback under video */
}

.profile-bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(10%) contrast(1.03) brightness(0.9);
}

/* Contact page crossfading background (two-layer swap; never black) */
.contact-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #0b0f1a; /* fallback under images */
}

.contact-bg__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1600ms ease;
  will-change: opacity;
}

/* Frosted gradient blur on left/right outskirts */
.contact-bg::before,
.contact-bg::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(28vw, 420px);
  pointer-events: none;
  z-index: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.contact-bg::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0)
  );
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.contact-bg::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0)
  );
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.contact-bg__layer.is-visible {
  opacity: 1;
}

.contact-bg__layer.is-fading-in {
  opacity: 1;
}

.contact-bg__layer.is-fading-out {
  opacity: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("Assets/DSC_2961.jpg");
  background-size: cover;
  background-position: center calc(100% + 1.5in);
  background-repeat: no-repeat;
  filter: grayscale(100%) blur(16px);
}

/* Gallery page: one completely blurred background layer (no sharp areas) */
body:not(.page-contact):not(.page-profile) {
  /* Black → Magenta → Cyan gradient background */
  background: linear-gradient(
    135deg,
    #000000 0%,
    #3a003f 40%,
    #004a5a 100%
  );
  /* Keep the gradient continuous while scrolling (no apparent restart). */
  background-attachment: fixed;
}

/* `fixed` backgrounds are unreliable on iOS; use scroll on small viewports */
@media (max-width: 768px) {
  body:not(.page-contact):not(.page-profile) {
    background-attachment: scroll;
  }
}

body:not(.page-contact):not(.page-profile)::after {
  /* Disable the blurred photo layer on gallery page */
  background-image: none;
  filter: none;
}

/* Gallery page: color shockwave overlay (reveals color from epicenter); blurred to match background */
.gallery-bg-color {
  display: none;
}

body.gallery-bg-wave--active .gallery-bg-color {
  clip-path: circle(160% at var(--gallery-wave-x, 50%) var(--gallery-wave-y, 50%));
}

/* Removed overlay helper */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image:
    /* fine grain */
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06) 0, transparent 60%),
    radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.3) 0, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0, transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.35) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.04) 0, transparent 60%);
}

/* Removed frosted helper */

/* Top bar: slightly transparent, centered GALLERY */
.gallery-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  height: calc(128px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Soft black gradient that fades out as it moves downward */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.45) 35%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Gallery page: subtle hint in top-right for keyboard control */
.gallery-key-hint {
  position: fixed;
  top: 55px;
  left: 76px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #ffffff;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  text-shadow: none;
}

.gallery-key-hint__icon {
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

.gallery-key-hint__text {
  opacity: 1;
  color: #ffffff;
}

/* Wrapper keeps the pill top-anchored so open/close doesn't jump */
.gallery-bar__anchor {
  align-self: flex-start;
  margin-top: calc((128px - 52px) / 2);
  margin-right: 2.4rem;
}

.page-center-title {
  position: fixed;
  top: calc(52px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  /* Sit visually on top of the gradient band, above the header bg,
     but still below overlays like the lightbox. */
  z-index: 12;
  pointer-events: none;
  font-family: "Franklin Gothic Medium", "Franklin Gothic", "Arial Narrow",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

/* Top bar: combined GALLERY + hamburger */
.gallery-bar__brand {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35em;
  width: fit-content;
  max-width: 100%;
  padding: 0.45em 0.5em 0.45em 1.05em;
  border-radius: 50px;
  /* Default: no pill, just text floating over background */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  overflow: hidden;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease,
    border-radius 0.3s ease;
}

/* When menu is open, show white pill backing around heading + menu */
.gallery-bar__brand.gallery-bar__brand--open {
  background: #f7f3ea; /* solid cream white */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.35);
}

.gallery-bar__brand:not(.gallery-bar__brand--open) .gallery-bar__menu-content {
  flex: 0 0 0;
  min-width: 0;
  width: 0;
  overflow: hidden;
}

.gallery-bar__brand-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
}

.gallery-bar__brand--open {
  flex-direction: column;
  border-radius: 20px;
  padding: 0.5em 1.1em 0.6em;
  align-items: stretch;
}

.gallery-bar__brand--open .gallery-bar__brand-row {
  justify-content: space-between;
  width: 100%;
}

.gallery-bar__brand--open .gallery-bar__menu-trigger {
  margin-bottom: 0;
  align-self: center;
}

.gallery-bar__title {
  font-family: "Franklin Gothic Medium", "Franklin Gothic", "Arial Narrow",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif; /* Franklin Narrow Bold-style stack */
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.gallery-bar__menu-trigger {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.gallery-bar__menu-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-bar__brand--open .gallery-bar__menu-content {
  opacity: 1;
  pointer-events: auto;
  max-height: 220px;
  transform: translateY(0);
}

.gallery-bar__menu-link {
  display: inline-block;
  padding: 0.35em 0 0.25em;
  font-family: "Franklin Gothic Medium", "Franklin Gothic", "Arial Narrow",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif; /* Franklin Narrow Bold-style stack */
  color: #000000;
  text-decoration: none;
  font-size: 1.8rem; /* match heading size */
  font-weight: 700;
  letter-spacing: 0.08em;
  transform-origin: left center;
  transition: transform 180ms ease-out;
}

.gallery-bar__menu-link:visited {
  color: #000000;
}

.gallery-bar__menu-link:hover {
  color: #000000; /* no color change on hover */
  text-decoration: none;
  transform: scale(1.2);
}

/* Contact page: keep heading + links identical */
body.page-contact .gallery-bar__title,
body.page-contact .gallery-bar__menu-link,
body.page-contact .gallery-bar__menu-link:visited {
  color: #ffffff;
}

/* When the pill menu is open, shift heading and links to black for contrast */
.gallery-bar__brand.gallery-bar__brand--open .gallery-bar__title,
.gallery-bar__brand.gallery-bar__brand--open .gallery-bar__menu-link,
.gallery-bar__brand.gallery-bar__brand--open .gallery-bar__menu-link:visited {
  color: #000000;
}

/* Removed menu glow helper */

.gallery-bar__brand-row,
.gallery-bar__menu-content {
  position: relative;
  z-index: 1;
}

/* GALLERY as link on contact page */
.gallery-bar__title--link {
  text-decoration: none;
  color: inherit;
}
.gallery-bar__title--link:hover {
  color: #fff;
}

.gallery-bar__menu-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.gallery-bar__menu-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

/* When menu pill is open, match heading/menu text (black) */
.gallery-bar__brand.gallery-bar__brand--open .gallery-bar__menu-icon span {
  background: #000000;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2.4rem 0;
  padding-top: calc(128px + env(safe-area-inset-top, 0px) + 2.4rem);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: max(2.4rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.page.page--onepage {
  display: block;
  padding-top: calc(128px + env(safe-area-inset-top, 0px) + 1rem);
}

.onepage-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-margin-top: calc(128px + env(safe-area-inset-top, 0px) + 0.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 0;
}

.onepage-section--home {
  padding-top: 0;
  height: 100dvh;
}

.onepage-section--gallery {
  margin-top: -8vh;
  padding-top: 16vh;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.22) 35%,
      rgba(0, 0, 0, 0.38) 100%
    );
}

.onepage-section--contact {
  margin-top: -8vh;
  padding-top: 17vh;
  padding-bottom: max(3.5rem, env(safe-area-inset-bottom, 0px));
  background: transparent;
  overflow: hidden; /* clip contact-bg to the section */
  isolation: isolate;
}

.page--onepage .onepage-section--contact .contact-bg {
  position: absolute; /* don't cover the whole viewport */
  inset: 0;
  z-index: -1;
}

.page--onepage .onepage-section--contact .contact {
  position: relative;
  z-index: 1; /* ensure card sits above background photos */
}

.gallery {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: visible;
  /* Move both rows up by 0.5in from previous placement */
  transform: translateY(calc(40px - 0.5in));
}

.gallery-flow-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 88px;
  height: 88px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 12;
  padding: 0;
  user-select: none;
}

.gallery-flow-arrow span {
  display: flex;
  width: 52%;
  height: 52%;
  align-items: center;
  justify-content: center;
}

.gallery-flow-arrow svg {
  width: 100%;
  height: 100%;
}

.gallery-flow-arrow--left {
  left: calc(18px + 0.3in);
}

.gallery-flow-arrow--right {
  right: calc(18px + 0.3in);
}

.gallery-flow-arrow--right svg {
  transform: translateX(1px);
}

.gallery-flow-arrow--left svg {
  transform: translateX(-1px);
}

.gallery-flow-arrow:active {
  transform: translateY(-50%) scale(0.97);
}

.page--onepage .gallery-flow-arrow {
  position: absolute;
}

.gallery-row {
  position: relative;
  height: clamp(17.13rem, 38.7vh, 25.42rem);
  overflow: visible;
}

.media-item {
  position: absolute;
  top: 0;
  height: 100%;
  width: var(--flow-item-width, 288px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  /* Clip inner media so the visible image/video always shares
     the same rounded corners as the card itself. */
  overflow: hidden;
  /* Let the page gradient show through between items */
  background: transparent;
  --x: 0px;
  --scale: 1;
  transform: translate3d(var(--x), 0, 0) scale(var(--scale));
  transform-origin: center center;
  transition:
    opacity 220ms ease-out,
    transform 280ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

/* Used only while tiles are being instantly repositioned off-screen for
   the infinite loop. Disables transform animation so they don't
   "slingshot" visibly across the viewport, without affecting the
   pop-up animation when they are on-screen. */
.media-item--teleport {
  transition: opacity 220ms ease-out;
}

.media-item--gif {
  background: #000;
}

.media-item img,
.media-item video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 300ms ease-out;
}

.media-item video {
  pointer-events: none;
}

/* Moving gallery: keep dark backing behind videos */
.gallery-row .media-item video {
  background: #000;
}

.media-item--hovered {
  --scale: 1.25;
  z-index: 5;
}

.media-item--hovered img,
.media-item--hovered video,
.media-item--revealed img,
.media-item--revealed video {
  /* Keep the same visual aspect ratio as in the flow. */
  object-fit: cover;
  filter: grayscale(0%);
}

.media-item--hovered {
  /* Pure yellow glow with no solid band */
  outline: none;
  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(0, 0, 0, 0.35);
}

.media-item--neighbor {
  --scale: 1.12;
  z-index: 4;
}

@keyframes shockwave-pop {
  0% {
    transform: translate3d(var(--x), 0, 0) scale(var(--scale));
    filter: brightness(1);
  }
  40% {
    transform: translate3d(var(--x), 0, 0) scale(calc(var(--scale) * 1.06));
    filter: brightness(1.08);
  }
  100% {
    transform: translate3d(var(--x), 0, 0) scale(var(--scale));
    filter: brightness(1);
  }
}

.media-item--shockwave {
  animation: shockwave-pop 420ms ease-out;
}

/* Classic portfolio gallery (thumbnail grid) */
.portfolio {
  width: 100%;
  max-width: 1240px;
}

.portfolio-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto 1.25rem;
  padding: 0 1.5rem;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portfolio-filter {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 0.6em 1em;
  font-family: "Franklin Gothic Medium", "Franklin Gothic", "Arial Narrow",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  cursor: pointer;
}

.portfolio-filter.is-active {
  background: #f7f3ea;
  border-color: rgba(15, 23, 42, 0.22);
  color: #000000;
}

.portfolio-meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
}

.portfolio-grid {
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.portfolio-grid .media-item {
  /* Override the flow-gallery absolute positioning. */
  position: relative !important;
  top: auto !important;
  height: auto !important;
  width: 100% !important;
  transform: none !important;

  /* Make buttons look like tiles. */
  border: none;
  background: transparent;
  padding: 0;
  outline: none;

  aspect-ratio: 4 / 5;
}

.portfolio-grid .media-item img,
.portfolio-grid .media-item video {
  height: 100%;
  width: 100%;
  filter: grayscale(0%);
}

.portfolio-grid .media-item[data-kind="video"] {
  /* Keep tiles solid dark while video is loading/decoding. */
  background: #000;
}

.portfolio-grid .media-item[data-kind="video"] video {
  background: #000;
}

.portfolio-grid .media-item:hover {
  transform: translateY(-3px) scale(1.02) !important;
  z-index: 2;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.portfolio-grid .media-item:hover img,
.portfolio-grid .media-item:hover video {
  filter: grayscale(0%);
}

.is-hidden {
  display: none !important;
}

/* Morph animation layer from grid image to lightbox */
.morph-layer {
  position: fixed;
  overflow: hidden;
  border-radius: 0.9rem;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 50;
  pointer-events: none;
}

.morph-layer img,
.morph-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Emoji cursor 📷 / 📸 */
.cursor-emoji {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  font-size: 42px;
  line-height: 1;
  user-select: none;
  filter: brightness(1.25);
}

@media (hover: none), (pointer: coarse) {
  .cursor-emoji {
    display: none !important;
  }
}

/* Contact page */
.page--contact {
  padding-top: calc(128px + env(safe-area-inset-top, 0px) + 3rem);
  padding-bottom: max(3rem, env(safe-area-inset-bottom, 0px));
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Profile page */
body.page-profile {
  overflow: auto;
}

.page--profile {
  padding-top: calc(128px + env(safe-area-inset-top, 0px) + 1.8rem);
  padding-bottom: max(3.5rem, env(safe-area-inset-bottom, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.profile {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.profile__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.profile__card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  overflow: hidden;
}

.profile__card--hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 420px;
}

.profile__hero-media {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.profile__hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.02);
  transform: scale(1.02);
  opacity: 1;
  transition: opacity 420ms ease-out;
  border-radius: inherit;
}

.profile__hero-img--overlay {
  display: none;
}

.profile__hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 200, 150, 0.22), transparent 55%),
    linear-gradient(to right, rgba(0, 0, 0, 0.35), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.65;
  pointer-events: none;
}

.profile__hero-copy {
  padding: 2.1rem 2.1rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.95rem;
}

.profile__kicker {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, 0.85);
}

.profile__headline {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: 0.08em;
  color: #f9fafb;
}

.profile__bio {
  color: rgba(249, 250, 251, 0.82);
  line-height: 1.55;
  max-width: 46ch;
}

.profile__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.35rem;
}

.profile__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 1.25em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f9fafb;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.profile__cta-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
}

.profile__cta-btn--ghost {
  background: rgba(0, 0, 0, 0.12);
}

.profile__cta-link {
  color: rgba(249, 250, 251, 0.85);
  text-decoration: none;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.profile__cta-link:hover {
  color: #fff;
  text-decoration: underline;
}

.profile__card--duo {
  padding: 1.35rem 1.35rem 1.45rem;
}

.profile__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.profile__tile {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.profile__tile img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) contrast(1.02);
}

.profile__meta {
  display: grid;
  gap: 0.35rem;
}

.profile__section-title {
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 650;
  color: #f9fafb;
}

.profile__section-copy {
  color: rgba(249, 250, 251, 0.82);
  line-height: 1.55;
  max-width: 68ch;
}

.profile__card--motion {
  padding: 1.35rem 1.35rem 1.55rem;
}

.profile__motion-row {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.profile__motion-tile {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.3);
}

.profile__video {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) contrast(1.05);
}

.profile__card--feature {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 340px;
}

.profile__feature-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.02);
}

.profile__feature-copy {
  padding: 1.65rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .profile__card--hero {
    grid-template-columns: 1fr;
  }
  .profile__hero-img {
    max-height: 360px;
  }
  .profile__card--feature {
    grid-template-columns: 1fr;
  }
  .profile__feature-media img {
    max-height: 320px;
  }
}

@media (max-width: 720px) {
  .profile {
    padding: 0 max(1.1rem, env(safe-area-inset-left, 0px)) 0
      max(1.1rem, env(safe-area-inset-right, 0px));
  }
  .profile__hero-copy {
    padding: 1.6rem 1.4rem 1.7rem;
  }
  .profile__duo,
  .profile__motion-row {
    grid-template-columns: 1fr;
  }
  .profile__tile img {
    height: 280px;
  }
  .profile__video {
    height: 260px;
  }
}

.contact {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.contact__card {
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.42),
      rgba(255, 255, 255, 0.26)
    );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 999px rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem 2rem 2.25rem;
  color: #0a0a0a;
}

.contact__heading {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin: 0 0 0.35em;
  color: #0a0a0a;
}

.contact__intro {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.72);
  margin: 0 0 1.75rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.contact__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.75);
  margin-top: 0.75rem;
}

.contact__label:first-of-type {
  margin-top: 0;
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 0.65em 0.9em;
  font-family: inherit;
  font-size: 1rem;
  color: #0a0a0a;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact__input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.contact__input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.contact__textarea {
  resize: vertical;
  min-height: 120px;
  color: #0a0a0a;
  border-color: rgba(0, 0, 0, 0.18);
}

.contact__textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.contact__textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.28);
}

.contact__submit {
  margin-top: 0.5rem;
  padding: 0.7em 1.4em;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #0a0a0a;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact__submit:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.24);
}

.contact__social {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact__instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(0, 0, 0, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.contact__instagram:hover {
  color: #000;
  opacity: 0.95;
}

.contact__instagram-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .gallery-bar {
    height: calc(104px + env(safe-area-inset-top, 0px));
  }

  .gallery-bar__anchor {
    margin-top: calc((104px - 52px) / 2);
    margin-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .gallery-bar__title,
  .gallery-bar__menu-link {
    font-size: clamp(1rem, 4.2vw, 1.45rem);
  }

  .gallery-bar__menu-trigger {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }

  .gallery-bar__brand--open .gallery-bar__menu-content {
    max-height: 280px;
  }

  .page-center-title {
    top: calc(44px + env(safe-area-inset-top, 0px));
    font-size: clamp(0.72rem, 3.2vw, 1.35rem);
    max-width: min(72vw, 14rem);
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    padding: 0 0.5rem;
  }

  .gallery-key-hint {
    display: none;
  }

  .page {
    padding: 1.5rem max(1rem, env(safe-area-inset-left, 0px))
      max(2rem, env(safe-area-inset-bottom, 0px))
      max(1rem, env(safe-area-inset-right, 0px));
    padding-top: calc(104px + env(safe-area-inset-top, 0px) + 1.25rem);
  }

  .page.page--onepage {
    padding-top: calc(104px + env(safe-area-inset-top, 0px) + 0.75rem);
  }

  .onepage-section {
    scroll-margin-top: calc(104px + env(safe-area-inset-top, 0px) + 0.5rem);
    min-height: min(100dvh, 56rem);
  }

  .onepage-section--gallery,
  .onepage-section--contact {
    margin-top: -5vh;
    padding-top: 12vh;
  }

  .page--contact {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .page.page--contact {
    padding-top: calc(104px + env(safe-area-inset-top, 0px) + 2rem);
  }

  .contact {
    padding: 0;
  }

  .contact__card {
    padding: 1.5rem 1.25rem;
  }

  .contact__submit {
    min-height: 48px;
    width: 100%;
    max-width: 100%;
  }

  .portfolio-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0 max(0.75rem, env(safe-area-inset-left, 0px)) 0
      max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .portfolio-filters {
    justify-content: flex-start;
  }

  .portfolio-filter {
    min-height: 44px;
    padding: 0.55em 1.1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .portfolio-meta {
    font-size: 0.78rem;
  }

  .portfolio-grid {
    padding: 0 max(0.75rem, env(safe-area-inset-left, 0px))
      max(2.5rem, env(safe-area-inset-bottom, 0px))
      max(0.75rem, env(safe-area-inset-right, 0px));
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.85rem;
  }

  .gallery {
    gap: 1.35rem;
    transform: translateY(calc(24px - 0.35in));
  }

  .gallery-row {
    height: clamp(12rem, 32vh, 18rem);
  }

  .gallery-flow-arrow {
    top: auto;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
    transform: none;
  }

  .gallery-flow-arrow--left {
    left: max(10px, env(safe-area-inset-left, 0px));
  }

  .gallery-flow-arrow--right {
    right: max(10px, env(safe-area-inset-right, 0px));
  }

  .gallery-flow-arrow:active {
    transform: scale(0.96);
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-row {
    height: clamp(10.5rem, 28vh, 15rem);
  }
}

/* Lightbox full-screen view */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox[data-state="open"] {
  display: flex;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  /* Pure blur with no additional dark tint */
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(95vw, 1200px);
  max-height: 90vh;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  background: radial-gradient(circle at top, #111827, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__media {
  position: relative;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.lightbox__image,
.lightbox__video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: none;
}

.lightbox__image[data-active="true"],
.lightbox__video[data-active="true"] {
  display: block;
}

.lightbox__close {
  position: fixed;
  top: 50%;
  right: calc(22px + 0.35in);
  transform: translateY(calc(-50% - 3.5in));
  width: 88px;
  height: 88px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 53px;
  line-height: 1;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 2;
  padding: 0;
}

.lightbox__close-icon {
  display: block;
  transform: translateY(-5%);
}

.lightbox__close:hover {
  color: #e5e5e5;
}

.lightbox__arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 88px;
  height: 88px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  line-height: 1;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 2;
  padding: 0;
}

.lightbox__arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform: translateY(-3%);
}

.lightbox__arrow--prev .lightbox__arrow-icon {
  transform: translate(-3px, 1px);
}

.lightbox__arrow--next .lightbox__arrow-icon {
  transform: translate(3px, 1px);
}

.lightbox__arrow-icon svg {
  width: 58%;
  height: 58%;
  flex-shrink: 0;
}

.lightbox__arrow--prev {
  left: calc(26px + 0.3in);
}

.lightbox__arrow--next {
  right: calc(26px + 0.3in);
}

.lightbox__arrow:hover {
  color: #e5e5e5;
}

/* Lightbox + flowing gallery: phones and notched devices */
@media (max-width: 768px) {
  .lightbox {
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
      env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  }

  .lightbox__content {
    width: 100%;
    max-width: 100%;
    max-height: min(92dvh, 100%);
    border-radius: 0.65rem;
  }

  .lightbox__image,
  .lightbox__video {
    max-height: min(82dvh, 100%);
  }

  .lightbox__close {
    top: max(10px, env(safe-area-inset-top, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    transform: none;
    width: 48px;
    height: 48px;
    font-size: 34px;
  }

  .lightbox__arrow {
    width: 52px;
    height: 52px;
    top: auto;
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    transform: none;
  }

  .lightbox__arrow--prev {
    left: max(12px, env(safe-area-inset-left, 0px));
  }

  .lightbox__arrow--next {
    right: max(12px, env(safe-area-inset-right, 0px));
  }
}
