/* ============================================================
   DARK PIXEL ROOM — Photography Portfolio
   Dark, minimalist, image-forward.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --fg: #f4f4f4;
  --muted: #9a9a9a;
  --line: #242424;
  --accent: #f4f4f4;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.5, 0, 0, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

/* ===================== SHARED BUTTON ===================== */
.btn-outline {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  border: 1px solid var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn-outline:hover { background: var(--fg); color: #000; border-color: var(--fg); }

/* ===================== INTRO SCREEN ===================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 1s var(--ease), visibility 1s var(--ease);
}
.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.intro__inner { text-align: center; padding: 1.5rem; }
.intro__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 9vw, 7rem);
  letter-spacing: 0.12em;
  line-height: 1.1;
  transition: letter-spacing 0.8s var(--ease), opacity 0.4s ease;
  opacity: 0;
  animation: introFade 1.4s var(--ease) 0.3s forwards;
}
.intro__name:hover { letter-spacing: 0.2em; }
.intro__hint {
  margin-top: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: introFade 1.4s ease 1.1s forwards;
}
@keyframes introFade { to { opacity: 1; } }

/* ===================== HEADER / NAV ===================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(2rem, 6vw, 5rem);
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  mix-blend-mode: difference;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.header.is-visible { opacity: 1; transform: translateY(0); }
/* Solid header (used on gallery + sub pages — no blend, sits on dark bg) */
.header--solid {
  mix-blend-mode: normal;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: #fff;
  display: inline-flex;
  align-items: center;
}
/* Logo support — when ready, put <img class="header__logo"> inside .header__brand */
.header__logo {
  display: block;
  width: auto;
  height: 38px;
}
.nav__list {
  display: flex;
  gap: 2.6rem;
  list-style: none;
}
.nav__list a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
}
.nav__list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: #fff;
  transition: width 0.35s var(--ease);
}
.nav__list a:hover::after { width: 100%; }
/* Active nav link (current page) — reuses the underline animation, locked open,
   and made non-clickable since it points to the page you're already on. */
.nav__list a.is-active { cursor: default; pointer-events: none; }
.nav__list a.is-active::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Shared layer: both the poster <img> and the <video> stack on top of each other
   and cross-fade. They start hidden (opacity 0) and fade to visible via .is-visible.
   The 1s fade is the "medium" timing chosen for the sequence. */
.hero__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}
.hero__layer.is-visible { opacity: 1; }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.6));
}
.hero__content {
  position: relative;
  z-index: 3;
  padding: 1.5rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 6rem);
  letter-spacing: 0.14em;
  line-height: 1.05;
}
.hero__tagline {
  margin-top: 1rem;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #e8e8e8;
}
.hero__cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.9rem 2.4rem;
  border: 1px solid rgba(255,255,255,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.hero__cta:hover { background: #fff; color: #000; }
.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 24px; height: 40px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 7px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; top: 8px; }
  40% { opacity: 1; }
  80% { opacity: 0; top: 20px; }
  100% { opacity: 0; }
}

/* ===================== BACK TO TOP ===================== */
/* Fixed lower-right button. Hidden until the visitor scrolls down
   (JS adds .is-visible past ~400px). Click smooth-scrolls to the top.
   Shown on BOTH mobile and desktop. */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
              visibility 0.35s var(--ease), background 0.3s ease, color 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--fg); color: #000; border-color: var(--fg); }
.to-top svg { width: 20px; height: 20px; }

/* ===================== SECTIONS (shared) ===================== */
.section {
  padding: clamp(4rem, 10vw, 9rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1400px;
  margin: 0 auto;
}
.section__head { text-align: center; margin-bottom: 3.5rem; }
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.06em;
}
.section__sub {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===================== SUBPAGE (About / Services / Contact) =====================
   Shared wrapper for the standalone inner pages. Mirrors the gallery page's top
   padding so content clears the fixed solid header, and provides a centered
   page heading block plus a bottom CTA area. */
.page-sub { padding-top: 0; }
.subpage {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(7rem, 14vw, 11rem) clamp(1.5rem, 5vw, 4rem) 4rem;
}
.subpage__head { text-align: center; margin-bottom: 3.5rem; }
.subpage__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: 0.08em;
}
.subpage__sub {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.subpage__cta { text-align: center; margin-top: 4rem; }
/* Contact page: vertically roomy + centered content */
.subpage--center { text-align: center; }
.subpage--center .contact__inner { margin-top: 1rem; }

/* ===================== FEATURED (4 grid) ===================== */
.featured__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.featured__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  display: block;
}
.featured__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s ease;
  filter: grayscale(15%);
}
.featured__item:hover img { transform: scale(1.04); filter: grayscale(0%); }
.featured__cta-wrap { text-align: center; margin-top: 3rem; }

/* ===================== ABOUT ===================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-soft);
}
.about__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(10%); }
.about__text p { margin-bottom: 1.2rem; color: #d8d8d8; font-size: 1.02rem; }
.about__text strong { color: #fff; font-weight: 500; }
.about__link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--muted);
  padding-bottom: 3px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.about__link:hover { color: #fff; border-color: #fff; }

/* ===================== SERVICES ===================== */
.services { background: var(--bg-soft); max-width: none; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}
.service {
  border: 1px solid var(--line);
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.4s ease;
}
.service:hover { transform: translateY(-6px); border-color: #444; }
.service__num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--muted);
  opacity: 0.5;
}
.service__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0.8rem 0 1rem;
}
.service p { color: #c8c8c8; font-size: 0.98rem; }
.service__tag {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--muted);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}

/* ===================== CONTACT ===================== */
.contact { text-align: center; }
.contact__sub {
  margin: 1rem 0 2.5rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5vw, 3rem);
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
  transition: border-color 0.4s ease;
}
.contact__email:hover { border-color: var(--fg); }
.contact__email-icon {
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
}
/* Socials row (Instagram · Behance · Kavyar).
   Uses flex with a generous gap so the three links breathe and wrap neatly
   on small screens instead of crowding together. */
.contact__socials {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.4rem 2.4rem;
}
.contact__social {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.contact__social:hover { color: var(--fg); }
.contact__social-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}
/* Raster logo icons (Behance / Kavyar PNGs). Forced to monochrome so they match
   the SVG line-icons: brightness(0) makes them solid black, invert() flips to a
   gray tone matching --muted, then full white on hover via the parent's color. */
.contact__social-icon--img {
  object-fit: contain;
  filter: grayscale(100%) brightness(0) invert(64%);
  opacity: 0.95;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.contact__social:hover .contact__social-icon--img {
  filter: grayscale(100%) brightness(0) invert(100%);
  opacity: 1;
}
/* Kavyar: shown in its ORIGINAL colors. The monochrome treatment above flattened
   the Kavyar logo into an invisible/blank square (its silhouette doesn't survive
   brightness(0) + invert). This modifier opts Kavyar out of the filter — dimmed a
   touch at rest, full opacity on hover. Behance keeps the monochrome look. */
.contact__social-icon--kavyar {
  filter: none;
  opacity: 0.9;
}
.contact__social:hover .contact__social-icon--kavyar {
  filter: none;
  opacity: 1;
}

/* ===================== GALLERY PAGE ===================== */
.page-gallery { padding-top: 0; }
.gallery-page {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(7rem, 14vw, 11rem) clamp(1rem, 4vw, 3rem) 4rem;
}
.gallery-page__head { text-align: center; margin-bottom: 3.5rem; }
.gallery-page__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: 0.08em;
}
.gallery-page__sub {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery-page__empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
}
.gallery-page__empty code {
  background: var(--bg-soft);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}
.gallery-page__back { text-align: center; margin-top: 4rem; }

/* ---- Asymmetric masonry (CSS columns) ---- */
.masonry {
  column-count: 3;
  column-gap: 1rem;
}
.masonry__item {
  break-inside: avoid;
  margin: 0 0 1rem;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: pointer;
  position: relative;
}
.masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease), filter 0.5s ease;
  filter: grayscale(12%);
}
.masonry__item:hover img { transform: scale(1.04); filter: grayscale(0%); }
.masonry__item.is-broken { display: none; }

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 88vw;
  max-height: 86vh;
  width: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox__close {
  position: absolute;
  top: 1.4rem; right: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.6;
  padding: 0 1.2rem;
  transition: opacity 0.3s ease;
  user-select: none;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__prev { left: 0.5rem; }
.lightbox__next { right: 0.5rem; }
.lightbox__counter {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

/* ===================== FOOTER ===================== */
/* Desktop: brand + location and legal stacked on the LEFT; mail + Instagram
   icons on the RIGHT (Phil Penman style). On mobile the whole thing re-stacks
   into a single left-aligned column (see the 640px block). */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem) 3rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__left { display: flex; flex-direction: column; gap: 2.5rem; }
.footer__group { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__brand {
  font-family: var(--serif);
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  color: var(--fg);
}
.footer__loc,
.footer__cookies,
.footer__copy {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__credit {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.footer__credit:hover { color: var(--fg); border-color: var(--fg); }
.footer__social { display: inline-flex; align-items: center; gap: 1.4rem; }
.footer__icon {
  display: inline-flex;
  color: var(--muted);
  transition: color 0.3s ease;
}
.footer__icon:hover { color: var(--fg); }
.footer__icon svg { width: 20px; height: 20px; }
/* Raster logo icons (Behance / Kavyar PNGs) in the footer. Same monochrome
   treatment as the contact socials so they match the SVG icons here:
   muted gray by default, full white on hover. */
.footer__icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0) invert(64%);
  transition: filter 0.3s ease;
}
.footer__icon:hover .footer__icon-img {
  filter: grayscale(100%) brightness(0) invert(100%);
}
/* Kavyar in the footer: original colors (same reasoning as the contact socials —
   the monochrome filter made it disappear). */
.footer__icon-img--kavyar {
  filter: none;
  opacity: 0.9;
}
.footer__icon:hover .footer__icon-img--kavyar {
  filter: none;
  opacity: 1;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__img { max-width: 420px; margin: 0 auto; }
  .masonry { column-count: 2; }
}

@media (max-width: 640px) {
  /* ---- Header: brand left, hamburger pinned to the far-right corner ---- */
  .header { justify-content: space-between; gap: 1rem; }
  .nav { margin-left: auto; }
  /* Smaller brand so it fits comfortably and leaves room for the hamburger */
  .header__brand { font-size: 0.95rem; letter-spacing: 0.15em; }

  /* Mobile hero typography: smaller title so it does not cover the model's
     eyes/face awkwardly on phone screens. */
  .hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: 0.1em;
    line-height: 1.08;
  }
  .hero__tagline {
    margin-top: 0.9rem;
    font-size: clamp(0.72rem, 3.1vw, 0.92rem);
    letter-spacing: 0.2em;
  }

  /* THE FIX (part 1): the header's mix-blend-mode: difference was inverting the
     menu's colors AND silently disabling backdrop-filter (blur is impossible
     inside a blend context). Turn it off on mobile so blur + true colors work. */
  .header { mix-blend-mode: normal; }

  /* Hide the page content while the mobile menu is open so the page's
     headings/buttons don't visually collide with the menu links behind the glass.
     Applies to the Artwork (gallery) page and the About/Services/Contact pages. */
  .page-gallery.nav-open .gallery-page,
  .page-gallery.nav-open .footer,
  .page-gallery.nav-open .to-top,
  .page-sub.nav-open .subpage,
  .page-sub.nav-open .footer,
  .page-sub.nav-open .to-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* Toggle stays ABOVE the panel so the X is always visible + tappable */
  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 130;
  }
  /* Solid white lines + strong shadow so the ☰ / ✕ stays readable on ANY bg */
  .nav__toggle span {
    background: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.85);
  }

  /* ---- Mobile menu: subtle white glass, not heavy fog ----
     White veil reduced to 10% with a lighter blur so the effect reads as glass
     without washing the whole screen out. */
  .nav__list {
    position: fixed;
    inset: 0 !important;             /* FULL screen: top/right/bottom/left = 0 */
    width: 100vw;                    /* full width (no unblurred side gaps) */
    height: 100vh;                   /* full height */
    display: flex;
    flex-direction: column;
    align-items: center;             /* links centered horizontally */
    justify-content: center;         /* links centered vertically */
    gap: 2.6rem;
    padding: 6rem 1.5rem 2rem;
    isolation: isolate;             /* escape the header's blend context */
    background: rgba(245, 245, 245, 0.10);              /* 10% white mist */
    -webkit-backdrop-filter: blur(22px) saturate(115%) brightness(1.04);
    backdrop-filter: blur(22px) saturate(115%) brightness(1.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16),
                inset 0 0 90px rgba(255, 255, 255, 0.08);
    transform: translateX(100%);     /* hidden off-screen to the right */
    transition: transform 0.45s var(--ease);
    z-index: 105;                    /* below the toggle (X stays tappable) */
  }
  .nav__list::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.10), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  }
  /* Fallback: if a browser can't blur, fall back to a subtle milky panel. */
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav__list { background: rgba(235, 235, 235, 0.22); }
  }
  .nav__list.is-open { transform: translateX(0); }
  /* Dark text for contrast on white glass */
  .nav__list a {
    color: #111111 !important;
    font-size: 1.15625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
    white-space: nowrap;
    padding: 0.4rem 0;
    z-index: 1;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.65);
  }
  .nav__list a::after { background: #111111; }

  .nav.is-open .nav__toggle span {
    background: #111111;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
  }

  /* Hamburger -> X morph */
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .featured__grid { grid-template-columns: 1fr; max-width: 420px; }
  .masonry { column-count: 1; }
  .lightbox__nav { font-size: 2.2rem; padding: 0 0.6rem; }

  /* Replace the desktop mouse icon with tiny text on mobile. */
  .hero__scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    bottom: 1.4rem;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    line-height: 1;
    text-transform: uppercase;
  }
  .hero__scroll span { display: none; }
  .hero__scroll::after { content: 'scroll up'; }

  /* ---- Footer: stacked, left-aligned (Phil Penman mobile style) ----
     Use display: contents on .footer__left so its two groups become direct
     flex children of .footer; then order them around the social icons so the
     stack reads: brand+location -> icons -> cookies+copyright. */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .footer__left { display: contents; }
  .footer__group:first-child { order: 1; }
  .footer__social { order: 2; gap: 1.6rem; }
  .footer__legal { order: 3; }
  .footer__icon svg { width: 22px; height: 22px; }
  .footer__icon-img { width: 22px; height: 22px; }

  /* Keep the back-to-top arrow tucked in on mobile (incl. Artwork/gallery). */
  .to-top { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); width: 42px; height: 42px; }
}

/* ===================== REVEAL ON SCROLL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
