/* ============================================================
   ARTISTA ENT. — Stylesheet
   Cinematic stacked-section homepage + gallery page
   ============================================================ */

/* ---------- Local font: Intro (Alt cut) ---------- */
@font-face {
  font-family: "Intro";
  src: url("../intro-2/Intro Thin Alt.otf") format("opentype");
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Intro";
  src: url("../intro-2/Intro Light Alt.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Intro";
  src: url("../intro-2/Intro Book Alt.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Intro";
  src: url("../intro-2/Intro Regular Alt.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Intro";
  src: url("../intro-2/Intro Bold Alt.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Intro";
  src: url("../intro-2/Intro Black Alt.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}



/* ---------- Tokens ---------- */
:root {
  --c-bg-light: #f3f1ec;
  --c-bg-dark: #0c0c0c;
  --c-bg-darker: #060606;
  --c-ink: #0a0a0a;
  --c-ink-soft: #2a2a2a;
  --c-paper: #ffffff;
  --c-line: rgba(0, 0, 0, 0.18);
  --c-line-light: rgba(255, 255, 255, 0.18);
  --c-accent: #2f6bff;
  --c-mute: #b6b6b6;

  --f-display: "Intro", "Anton", "Bebas Neue", Impact, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-script: "Allura", cursive;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cinema: cubic-bezier(0.65, 0.05, 0.36, 1);
  --ease-expo: cubic-bezier(0.86, 0, 0.07, 1);   /* template's signature ease */
  --dur: 700ms;

  --pad-x: clamp(28px, 4vw, 80px);
  --nav-h: 80px;
}

/* ---------- Base / Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  /* No scroll-behavior here — Lenis handles smooth scrolling.
     Falls back to native instant scroll if Lenis is unavailable. */
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--f-body);
  color: var(--c-ink);
  background: var(--c-paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

/* ---------- Type ---------- */
.display-xl,
.display-md,
.brand-mega {
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-transform: uppercase;
}
.brand-mega {
  font-size: clamp(60px, 10vw, 180px);
  line-height: 0.85;
  letter-spacing: -0.01em;
}

/* Hero headline color treatment — line 1 ("ARTISTA") in baby blue,
   line 2 ("ENT.") rendered as a dark outline only, no fill. */
.sec-hero .brand-mega .line:first-child,
.sec-hero .brand-mega .line:first-child .split-chars,
.sec-hero .brand-mega .line:first-child .split-chars__word,
.sec-hero .brand-mega .line:first-child .char {
  color: #19334c;
}
.sec-hero .brand-mega .line:nth-child(2),
.sec-hero .brand-mega .line:nth-child(2) .split-chars,
.sec-hero .brand-mega .line:nth-child(2) .split-chars__word,
.sec-hero .brand-mega .line:nth-child(2) .char {
  color: transparent;
  -webkit-text-stroke: clamp(2px, 0.22vw, 4px) var(--c-ink);
}

.sec-hero .brand-mega {
  padding-left: 0.04em;
  font-size: clamp(48px, 8vw, 140px);
}

.sec-hero .brand-mega .split-chars,
.sec-hero .brand-mega .char-wrap {
  overflow: visible;
}

.display-xl {
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 0.96;
}
.display-md {
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.02;
}
.brand-tagline {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 40px);
  letter-spacing: 0.01em;
  margin-top: 18px;
}
.eyebrow {
  font-family: var(--f-display);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink);
  display: inline-block;
}
.eyebrow--light { color: #fff; }
.lede {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  max-width: 46ch;
  color: inherit;
}
.hr-rule {
  display: block;
  width: 380px;
  max-width: 60%;
  height: 1px;
  background: var(--c-line);
  margin: 26px 0 22px;
}
.hr-rule--light { background: var(--c-line-light); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: center;     /* center the nav menu now that logo is moved out */
  z-index: 100;
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: auto;
  transition: backdrop-filter 400ms var(--ease), background 400ms var(--ease);
}
/* Menu button sits absolutely at the right edge so the centered nav
   stays geometrically centered regardless of viewport width. */
.site-nav .nav-menu {
  position: absolute;
  right: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
}
.site-nav.is-scrolled { backdrop-filter: blur(2px); }
.site-nav--light { mix-blend-mode: normal; color: var(--c-ink); }

/* Logo lives OUTSIDE the top nav bar — fixed at the very upper-left
   corner of the page on every page, larger and visually distinct. */
/* Logo lives OUTSIDE the top nav bar, neatly tucked into the upper-left
   corner of the page. Sized small enough to coexist with the symmetric
   nav pill without disturbing its layout. */
.nav-logo {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  pointer-events: auto;
}
.nav-logo__img {
  height: clamp(40px, 3.4vw, 60px);
  width: auto;
  display: block;
  /* The PNG has a black background; screen blend drops the black on
     light pages and adds the blue mark on dark pages — also keeps the
     logo blending cleanly with the pill when their edges meet. */
  mix-blend-mode: screen;
  pointer-events: none;
}
.nav-center ul {
  display: flex;
  gap: clamp(20px, 3.4vw, 56px);
}
.nav-center a {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: opacity 200ms var(--ease);
}
.nav-center a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 400ms var(--ease);
}
.nav-center a:hover::after,
.nav-center a.is-active::after { width: 100%; }
.nav-menu {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-menu__icon {
  width: 26px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav-menu__icon i {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 300ms var(--ease);
}
.nav-menu:hover .nav-menu__icon i:first-child { transform: translateX(-3px); }
.nav-menu:hover .nav-menu__icon i:last-child { transform: translateX(3px); }

@media (max-width: 800px) {
  .nav-center { display: none; }
}

/* ============================================================
   CINEMATIC STACKED SECTIONS
   - Each section is sticky at top:0 with increasing z-index
   - The next section rises from below to overtake the current
   ============================================================ */
.scroll-host {
  position: relative;
  isolation: isolate;
}

.cinema-section {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  will-change: transform;
}
.cinema-section__inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: calc(var(--nav-h) + 12px) var(--pad-x) 40px;
  display: flex;
  align-items: center;
}

/* Stack order — later sections cover earlier ones cleanly */
.sec-hero    { z-index: 1; background: var(--c-paper); color: var(--c-ink); }
.sec-video   { z-index: 2; background: #000; color: #fff; }
.sec-about   { z-index: 3; background: var(--c-bg-darker); color: #fff; }
.sec-work    { z-index: 4; background: var(--c-bg-dark); color: #fff; }
.sec-contact { z-index: 5; background: #000; color: #fff; }

/* Full-bleed video section — no padding, no borders, video fills viewport */
.sec-video .sec-video__media,
.sec-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  outline: 0;
  margin: 0;
  padding: 0;
}
/* When the full-bleed video is a Vimeo iframe, iframes can't use
   object-fit. Emulate `object-fit: cover` with CSS max() — the iframe
   is sized to the larger of the viewport dimensions or the 16:9-derived
   dimension, then centered. The section's overflow:hidden crops the
   excess. Result: video fills viewport with NO letterbox at any
   viewport aspect ratio. */
.sec-video iframe.sec-video__media {
  position: absolute !important;
  inset: auto !important;
  top: 50% !important;
  left: 50% !important;
  width:  max(100vw, calc(100vh * 16 / 9)) !important;
  height: max(100vh, calc(100vw *  9 / 16)) !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none;
  background: #000;
  object-fit: cover;
}

/* Subtle scale-out on the section being "covered" — driven by JS data-progress */
.cinema-section[data-progress] .cinema-section__inner {
  transform: scale(calc(1 - var(--cover-progress, 0) * 0.04));
  opacity: calc(1 - var(--cover-progress, 0) * 0.18);
  transition: none;
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: start;
}
.hero-text {
  position: static;
  padding-top: clamp(40px, 8vh, 110px);
}
.brand-mega .line {
  display: block;
}
.hero-location {
  position: absolute;
  bottom: 40px;
  left: var(--pad-x);
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.visual-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
}
.visual-frame--hero { aspect-ratio: 1.05 / 1; }
.visual-frame--about { aspect-ratio: 9 / 16; max-width: 380px; margin-left: auto; }
.visual-frame__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(0.95);
  transition: transform 1200ms var(--ease-cinema);
}
/* When the media slot is a <video> instead of a background-image div */
video.visual-frame__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* When the media slot is a Vimeo (or other) <iframe> embed.
   Reset the inherited background-image-div transform/filter so the
   iframe fills the frame cleanly. pointer-events: none lets the
   .play-btn overlay receive clicks straight through. */
iframe.visual-frame__media {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  transform: none;
  filter: none;
  background: #000;
  pointer-events: none;
}
/* Hero frame: keep the Vimeo iframe at the natural, zoomed-out scale
   at all times (matching the previous hover-state appearance). */
.visual-frame--hero iframe.visual-frame__media {
  transform: scale(1.08);
  transform-origin: center center;
}
.visual-frame:hover .visual-frame__media { transform: scale(1.08); }

/* Play buttons are hidden site-wide. Kept in markup so existing
   anchor-wrapped buttons (e.g. links to the original Vimeo page) still
   exist semantically, but they don't render visually. */
.play-btn { display: none !important; }

/* Original play-button styles — preserved but never render due to the
   display:none !important rule above. */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.85);
  color: #fff;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(2px);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 400ms var(--ease), background 300ms var(--ease);
}
.play-btn svg { width: 22px; height: 22px; transform: translateX(2px); }
.play-btn:hover { transform: translate(-50%, -50%) scale(1.06); background: rgba(0,0,0,0.36); }
.play-btn--lg { width: 96px; height: 96px; }
.play-btn--lg svg { width: 28px; height: 28px; }
.visual-frame--hero .play-btn { display: none; } /* hero has no play button overlay per design */

/* ============================================================
   SECTION 2 — ABOUT
   ============================================================ */
.bg-script {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--f-script);
  font-size: clamp(280px, 38vw, 640px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.07);
  letter-spacing: -0.02em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.bg-script--right { transform: translate(-30%, -55%); }

.about-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(30px, 5vw, 100px);
  align-items: center;
}
.about-text { max-width: 920px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  position: relative;
  padding: 8px 0;
}
.link-arrow svg {
  width: 40px;
  height: 12px;
  transition: transform 360ms var(--ease);
}
.link-arrow:hover svg { transform: translateX(8px); }
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 220px;
  max-width: 100%;
  background: currentColor;
  opacity: 0.6;
}

/* ============================================================
   SECTION 3 — FEATURED WORK
   ============================================================ */
.work-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(20px, 2.6vh, 36px);
}
.work-header { max-width: 100%; }
/* Compact variant — smaller heading so the video pair has room. */
.work-header--compact h2 {
  font-size: clamp(24px, 2.8vw, 42px) !important;
  line-height: 1.04;
  margin-bottom: 14px;
}
.work-header--compact .lede {
  font-size: clamp(14px, 1vw, 16px);
  max-width: 56ch;
  margin: 0;
}
.work-header--compact .hr-rule { display: none; }
.work-header--compact .work-header__top { margin-bottom: 14px; }

/* ----- Two-video pair with hover-expand ----- */
.work-grid--pair {
  display: flex !important;
  flex-direction: row !important;
  gap: 18px;
  width: 100%;
  align-self: center;
}
.work-grid--pair .work-card--vid {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0e0e0e;
  isolation: isolate;
  cursor: pointer;
  transition: flex 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: flex;
}
/* When a sibling is hovered, the non-hovered card shrinks and the
   hovered card grows. :has() is well-supported across modern browsers.
   :not(:hover) ensures the shrink rule doesn't override the hovered card. */
.work-grid--pair:has(.work-card--vid:hover) .work-card--vid:not(:hover) { flex: 0.55 1 0; }
.work-grid--pair:has(.work-card--vid:hover) .work-card--vid:hover       { flex: 2.6  1 0; }

.work-card__media--vimeo {
  /* Lock the iframe to the video's native 16:9 aspect and pin its
     height to the card. Width is computed from aspect-ratio. When the
     card narrows on hover, the iframe stays as wide as `card_height *
     16/9` — wider than the card — and the card's overflow:hidden
     clips the sides. Result: video fills height with NO black bars,
     just like object-fit: cover.

     When the card is wide (hovered or default 50/50), iframe width
     matches card width almost exactly, so the video sits flush. */
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  aspect-ratio: 16 / 9;
  transform: translateX(-50%);
  border: 0;
  display: block;
  pointer-events: none;
  background: #000;
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.work-header .lede { margin-top: 4px; color: rgba(255,255,255,0.78); max-width: 920px; }
.work-header .hr-rule { background: var(--c-line-light); max-width: 920px; }
.work-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.work-header__cta::after { width: 180px; }

.work-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  min-height: 0;
}
.work-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a1a;
  isolation: isolate;
  transition: transform 700ms var(--ease-cinema);
}
.work-card:hover { transform: translateY(-4px); }
.work-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 900ms var(--ease-cinema), filter 600ms var(--ease);
  z-index: 0;
}
.work-card:hover .work-card__media { transform: scale(1.1); }
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.work-card .play-btn { z-index: 2; }
.work-card__caption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
}
.work-card__num {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 4px;
}
.work-card__caption p { font-size: 13px; opacity: 0.86; }

.work-card--01 { grid-row: 1 / 2; grid-column: 1 / 2; }
.work-card--02 { grid-row: 1 / 2; grid-column: 2 / 3; }
.work-card--03 { grid-row: 2 / 3; grid-column: 1 / 2; aspect-ratio: auto; }
.work-card--04 { grid-row: 2 / 3; grid-column: 2 / 3; }
.work-card--05 { display: none; } /* hidden in tight viewports — shown when there's vertical room */

@media (min-height: 920px) {
  .work-grid {
    grid-template-rows: 1fr 1fr 0.8fr;
  }
  .work-card--05 { display: block; grid-row: 3 / 4; grid-column: 1 / 3; }
}

.work-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--c-line-light);
}
.work-footer h3 { color: #fff; }

/* ============================================================
   SECTION 4 — CONTACT
   ============================================================ */
.contact-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
  filter: saturate(0.95) contrast(1.04);
}
.contact-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.0) 100%);
  z-index: 1;
}
.sec-contact .cinema-section__inner {
  display: block;
  padding-bottom: 60px;
}
.contact-grid {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  /* Anchor content to the top of the section so it never reaches into
     the absolutely-positioned site-footer at the bottom. */
  align-content: start;
  align-items: start;
  padding-top: 24px;
}
.contact-text { max-width: 760px; padding-top: 8px; }
/* Slightly tighten the contact rows so all four fit cleanly above the footer. */
.contact-list { margin-top: 26px; }
.contact-list li { padding: 14px 0; }
.contact-list__value { font-size: clamp(18px, 1.5vw, 24px); }
/* Trim the headline on the contact section so the page reads in one screen. */
.sec-contact .display-xl {
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.0;
}
.contact-subhead {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--c-accent);
  margin: 6px 0 14px;
  text-transform: uppercase;
}

.contact-list { margin-top: 38px; max-width: 580px; }

/* Generic line-stack reveal: items rise up sequentially when parent enters view */
[data-line-stack] > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 800ms var(--ease-expo), transform 1000ms var(--ease-expo);
  will-change: transform, opacity;
}
[data-line-stack].is-in > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
[data-line-stack].is-in > *:nth-child(1) { transition-delay: 0.05s; }
[data-line-stack].is-in > *:nth-child(2) { transition-delay: 0.15s; }
[data-line-stack].is-in > *:nth-child(3) { transition-delay: 0.25s; }
[data-line-stack].is-in > *:nth-child(4) { transition-delay: 0.35s; }
[data-line-stack].is-in > *:nth-child(5) { transition-delay: 0.45s; }
[data-line-stack].is-in > *:nth-child(6) { transition-delay: 0.55s; }
.contact-list li {
  border-top: 1px solid var(--c-line-light);
  color: #fff;
  display: block;
}
.contact-list__row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  color: #fff;
  text-decoration: none;
  transition: opacity 240ms ease, padding-left 360ms var(--ease, cubic-bezier(0.22,1,0.36,1));
  cursor: pointer;
}
.contact-list__row:hover {
  opacity: 0.78;
}
.contact-list__row:hover .contact-list__arrow {
  transform: translateX(8px);
}
/* No border-bottom on the last contact-list row — keeps the section clean */
.contact-list__label {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.contact-list__value {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.8vw, 28px);
  letter-spacing: 0.04em;
}
.contact-list__arrow { width: 36px; height: 12px; transition: transform 360ms var(--ease); }
.contact-list li:hover .contact-list__arrow { transform: translateX(8px); }

.page-progress {
  align-self: end;
  padding-bottom: 80px;
  color: rgba(255,255,255,0.7);
}
.page-progress ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.18em;
}
.page-progress .is-active { color: #fff; display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.page-progress .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; display: inline-block; }

.site-footer {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 26px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7);
  padding-top: 18px;
}

/* ============================================================
   ANIMATION SYSTEM — ported from MONO template
   - Letter stagger with cubic-bezier(0.86, 0, 0.07, 1)
   - Word-by-word blur reveal (scroll-scrubbed)
   - Image scale-on-enter
   - Per-section --enter-progress drives content scrubs
   ============================================================ */

/* ----- Reveal (basic) — kept for non-text containers ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px) translateZ(0);
  transition: opacity 900ms var(--ease-cinema), transform 900ms var(--ease-cinema);
  will-change: transform, opacity;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}
.work-grid .reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* ----- Letter stagger (split chars) -----
   Each <i class="char"> rises from below with strong expo curve. */
.split-chars {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split-chars .char-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1;
}
.split-chars .split-chars__word {
  display: inline-block;
  white-space: nowrap;
  vertical-align: top;
}
.split-chars .char--space { white-space: pre; }
.split-chars .char {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  transition:
    transform 1.4s var(--ease-expo),
    opacity 1.0s var(--ease-expo);
  transition-delay: calc(var(--char-i, 0) * 0.055s + var(--stagger-base, 0s));
  will-change: transform, opacity;
}
.split-chars.is-in .char {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

/* ----- Word-by-word blur reveal (scroll-scrubbed) -----
   JS sets per-word --w-op (0..1) and --w-blur (40..0) based on section progress. */
.split-words .word {
  display: inline-block;
  margin-right: 0.28em;
  opacity: var(--w-op, 0);
  filter: blur(calc(var(--w-blur, 40) * 1px));
  transition: opacity 0.12s linear, filter 0.12s linear;
  will-change: opacity, filter;
}

/* Trigger-mode (non-scroll) word-blur reveal: fires once on enter */
.split-words.trigger-blur.is-in .word {
  animation: wordBlurIn 1.1s var(--ease-expo) both;
  animation-delay: calc(var(--word-i, 0) * 0.06s + var(--stagger-base, 0s));
}
@keyframes wordBlurIn {
  from { opacity: 0; filter: blur(28px); transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; filter: blur(0px);  transform: translate3d(0, 0, 0); }
}

/* ----- Line-mask reveal for sentences -----
   wrap each line in <span class="line-mask"><span class="line-inner">…</span></span> */
.line-mask {
  display: block;
  overflow: hidden;
  line-height: 1;
}
.line-mask .line-inner {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1.2s var(--ease-expo);
  transition-delay: calc(var(--line-i, 0) * 0.08s + var(--stagger-base, 0s));
  will-change: transform;
}
.line-mask.is-in .line-inner,
.is-in > .line-mask .line-inner,
.is-in .line-mask .line-inner {
  transform: translate3d(0, 0, 0);
}

/* ----- Image scale-on-enter (template-style) ----- */
.fade-img { position: relative; overflow: hidden; }
.fade-img__inner {
  opacity: 0;
  transform: scale(1.02) translateZ(0);
  transition: opacity 700ms var(--ease-cinema), transform 1100ms var(--ease-cinema);
  will-change: transform, opacity;
}
.fade-img.is-in .fade-img__inner {
  opacity: 1;
  transform: scale(1) translateZ(0);
}

/* ----- Section enter-progress driven scrubs -----
   --enter-progress goes 0 → 1 as the section rises into view.
   Containers can hook into it for scroll-tied effects. */
.scrub-rise {
  transform: translate3d(0, calc((1 - var(--enter-progress, 1)) * 60px), 0);
  opacity: var(--enter-progress, 1);
  transition: none;
  will-change: transform, opacity;
}
.scrub-scale {
  transform: scale(calc(0.92 + var(--enter-progress, 1) * 0.08)) translateZ(0);
  opacity: calc(0.4 + var(--enter-progress, 1) * 0.6);
  transition: none;
  will-change: transform, opacity;
}
.scrub-parallax-y {
  transform: translate3d(0, calc((var(--enter-progress, 0.5) - 0.5) * var(--p-amount, -40px)), 0) scale(var(--p-scale, 1.06));
  transition: none;
  will-change: transform;
}

/* Hide raw text while JS is splitting it (avoids flash of un-styled blur=0 words) */
[data-split-words]:not(.is-split),
[data-split-chars]:not(.is-split) {
  visibility: hidden;
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.page-gallery { background: var(--c-bg-light); color: var(--c-ink); }

.gallery-page {
  padding: calc(var(--nav-h) + 40px) var(--pad-x) 0;
}

.logo-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 60px 0 80px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.logo-grid__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
}
.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  opacity: 0.78;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.logo-cell:hover { opacity: 1; transform: translateY(-2px); }
.logo {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d1d1d;
  line-height: 0.95;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.logo small { display: block; font-size: 11px; letter-spacing: 0.18em; margin-top: 4px; opacity: 0.7; font-weight: 500; }
.logo em { font-style: italic; font-family: "Times New Roman", serif; font-size: 22px; }
.logo--squatch { font-family: "Times New Roman", serif; font-style: italic; font-size: 22px; line-height: 1; }
.logo--sprouts em { font-family: "Times New Roman", serif; font-style: italic; }
.logo--weber { font-family: "Inter", sans-serif; font-weight: 800; font-size: 22px; padding: 6px 12px; border: 2px solid #1d1d1d; }
.logo--pourri { font-family: "Times New Roman", serif; font-style: italic; }
.logo--licorice em { color: #1d1d1d; margin-right: 6px; font-size: 18px; font-style: normal; }
.logo--native { font-weight: 800; letter-spacing: 0.2em; }
.logo--spruce { font-family: "Inter", sans-serif; font-weight: 700; }
.logo--florastor { font-family: "Inter", sans-serif; font-weight: 600; }
.logo--cakes { font-family: "Times New Roman", serif; }
.logo--dudewipes { font-weight: 900; letter-spacing: 0.04em; }

/* Service rows */
.services {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 7vw, 110px);
  padding: 80px 0 80px;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: center;
}
.service-row--reverse { grid-template-columns: 1.2fr 1fr; }
.service-row--reverse .service-text { order: 2; }
.service-row--reverse .service-media { order: 1; }

.service-num {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.service-text h3 { margin-bottom: 18px; }
.service-text p { font-size: 15px; line-height: 1.55; max-width: 38ch; color: #2a2a2a; }
.service-text .link-arrow {
  margin-top: 22px;
  padding-bottom: 8px;
}
.link-arrow--dark::after { background: var(--c-ink); opacity: 1; width: 60px; }
.link-arrow--dark svg { width: 32px; }

.service-media .visual-frame {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
}

/* Tagline bar */
.tagline-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 60px 0 40px;
}
.tagline-bar__rule {
  height: 1px;
  background: rgba(0,0,0,0.4);
}
.tagline-bar h3 {
  text-align: center;
}

/* CTA bar */
.cta-bar {
  background: #e8e6e0;
  margin: 0 calc(var(--pad-x) * -1);
  padding: 28px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 20px;
}
.cta-bar__text h4 {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cta-bar__text p { font-size: 13.5px; margin-top: 2px; opacity: 0.75; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border: 1px solid var(--c-ink);
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 300ms var(--ease), color 300ms var(--ease);
}
.btn-outline svg { width: 32px; }
.btn-outline:hover { background: var(--c-ink); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .work-grid,
  .service-row,
  .service-row--reverse {
    grid-template-columns: 1fr !important;
  }
  .hero-text { padding-top: 0; }
  .hero-location { position: static; margin-top: 22px; display: block; }
  .visual-frame--about { margin-left: 0; max-width: 100%; }
  .work-grid { grid-template-rows: auto; }
  .work-card { aspect-ratio: 16 / 10; }
  .work-card--05 { display: none; }
  .service-row--reverse .service-text { order: 1; }
  .service-row--reverse .service-media { order: 2; }
  .logo-grid__row { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .page-progress { display: none; }
  .cinema-section {
    position: relative;
    height: auto;
    min-height: 100vh;
  }
  .cinema-section__inner { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; align-items: flex-start; }
}

@media (max-width: 600px) {
  :root { --nav-h: 64px; --pad-x: 18px; }
  .nav-center { display: none; }
  .brand-mega { font-size: clamp(60px, 22vw, 140px); }
  .display-xl { font-size: clamp(32px, 8vw, 56px); }
  .display-md { font-size: clamp(24px, 5.5vw, 36px); }
  .work-footer { flex-direction: column; align-items: flex-start; gap: 18px; }
  .contact-list li { grid-template-columns: 56px 1fr auto; gap: 10px; }
  .cta-bar { flex-direction: column; align-items: flex-start; }
  .logo-grid__row { grid-template-columns: repeat(2, 1fr); }
  .site-footer { position: static; margin-top: 40px; flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ============================================================
   MOBILE OPTIMIZATION
   - Disable cursor-blob + oil shader on touch / small screens
     (no cursor on touch, and the WebGL fluid sim is heavy on mobile)
   - Tighten layouts for hero, about, work, contact
   - Ensure all play buttons stay hidden (already global, reinforced here)
   - Single-column flow throughout
   - Videos already have autoplay + muted + playsinline so they
     auto-start inline on iOS and Android.
   ============================================================ */

/* Touch devices: no hover, no cursor → kill cursor-blob and oil shader */
@media (hover: none), (pointer: coarse) {
  #cursor-blob { display: none !important; }
  #oilCanvas   { display: none !important; }
}

/* ============================================================
   MOBILE MENU DRAWER
   - Hidden by default; opens when the nav MENU button is tapped
   - Full-screen blurred overlay with large tap-friendly nav links
   - Auto-injected into every page via script.js so all pages get it
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(6, 6, 6, 0.97);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu__nav a {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(32px, 8.5vw, 52px);
  letter-spacing: 0.015em;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 14px;
  transition: opacity 200ms ease, transform 200ms ease;
  transform: translateY(14px);
  opacity: 0;
}
.mobile-menu.is-open .mobile-menu__nav a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 60ms + 120ms);
}
.mobile-menu__nav a:active { opacity: 0.55; }
.mobile-menu__close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  padding: 10px 18px;
  cursor: pointer;
}
.mobile-menu__brand {
  position: absolute;
  top: 26px;
  left: 22px;
  height: 40px;
  width: auto;
  mix-blend-mode: screen;
  pointer-events: none;
}
@media (min-width: 821px) {
  .mobile-menu { display: none !important; }
}

/* Compact tablet / phone layout */
@media (max-width: 820px) {
  :root { --nav-h: 60px; --pad-x: 20px; }

  /* Mobile safety net: pre-split split-chars/words elements are
     visibility:hidden by default. Keep them visible so that even if
     the JS splitter fails on mobile, headings still render. The
     reveal/cascade animations otherwise run normally on mobile,
     same as desktop. */
  [data-split-chars]:not(.is-split),
  [data-split-words]:not(.is-split) {
    visibility: visible !important;
  }

  /* Section padding lighter so content has room */
  .cinema-section__inner {
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 32px;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    gap: 28px;
  }

  /* Body — improve text rendering on small screens */
  body { -webkit-text-size-adjust: 100%; }

  /* ===== HERO ===== */
  .hero-grid {
    display: flex !important;
    flex-direction: column;
    gap: 56px;
    align-items: stretch;
  }
  .hero-visual { order: -1; display: flex; justify-content: center; }
  /* Match desktop frame aspect + keep the (now zoomed-out) scale so the
     Vimeo hero video renders at its natural fit regardless of its
     native 16:9 / 9:16 orientation. */
  .visual-frame--hero {
    aspect-ratio: 1.05 / 1;
    max-width: 420px;
    width: 92%;
    border-radius: 24px;
  }
  /* (transform: scale(1.08) inherited from the desktop rule applies here too) */

  /* ===== SEC-ABOUT — dedicated simple mobile layout =====
     Rebuilt from scratch for mobile as a clean block-level dark panel.
     Desktop cinematic-stack transition is preserved above this block.
  */
  body.page-home .sec-about,
  .sec-about {
    position: relative !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    display: block !important;
    background: #060606 !important;
    background-color: #060606 !important;
    color: #fff !important;
    padding: 90px 22px 80px !important;
    z-index: auto !important;
  }
  body.page-home .sec-about .cinema-section__inner,
  .sec-about .cinema-section__inner {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 640px;
    margin: 0 auto !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
  }
  .sec-about .bg-script { display: none !important; }

  /* CRITICAL: visibility:hidden is set globally on [data-split-chars]
     before JS processes them. Force visible on mobile so headings
     render even if the JS split hasn't run yet. Also override the
     mobile-rule-resolved padding/overflow on every descendant so
     nothing inherits a 0-opacity / transformed-offscreen state. */
  .sec-about *,
  .sec-about *::before,
  .sec-about *::after {
    visibility: visible !important;
  }

  /* Grid → vertical stack */
  .sec-about .about-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 36px !important;
    align-items: stretch !important;
    width: 100%;
  }
  .sec-about .about-text { display: block; }
  .sec-about .about-visual {
    display: flex !important;
    justify-content: center !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .sec-about .visual-frame--about {
    position: relative !important;
    aspect-ratio: 9 / 16;
    max-width: 240px;
    width: 70%;
    margin: 0 auto !important;
    border-radius: 18px;
    background: #0e0e0e !important;
    overflow: hidden !important;
  }
  .sec-about .visual-frame--about iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    transform: none !important;
  }

  /* Heading sizing + clean line wraps */
  .sec-about .display-xl {
    font-size: clamp(28px, 7.6vw, 42px);
    line-height: 1.06;
    margin-bottom: 22px;
    letter-spacing: -0.005em;
  }
  .sec-about .display-xl .split-chars,
  .sec-about .display-xl [data-split-chars] {
    white-space: normal !important;
    display: inline !important;
  }

  /* HR rule + lede */
  .sec-about .hr-rule {
    display: block;
    width: 64px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    border: 0;
    margin: 20px 0 22px;
    opacity: 1 !important;
  }
  .sec-about .lede {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 24px;
    max-width: none;
  }
  .sec-about .link-arrow {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.16em;
    color: #fff !important;
    text-transform: uppercase;
    padding: 4px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  }
  .sec-about .link-arrow svg { width: 32px; }

  /* AGGRESSIVE: force every animation-class element to its FINAL state
     immediately on mobile. No reveal-in, no letter cascade, no
     fade-img scale — they all just appear in place, visible. */
  .sec-about .reveal,
  .sec-about .reveal.is-in,
  .sec-about .fade-img,
  .sec-about .fade-img.is-in,
  .sec-about .fade-img__inner,
  .sec-about [data-split-chars],
  .sec-about [data-split-words],
  .sec-about .split-chars,
  .sec-about .split-chars__word,
  .sec-about .split-chars .char,
  .sec-about .word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
    visibility: visible !important;
  }

  /* ===== SEC-VIDEO — no blur on mobile ===== */
  /* The desktop cover-progress blur was tuned for the sticky-stack
     handoff; on mobile it just makes the video look blurry mid-scroll. */
  .sec-video .sec-video__media,
  .sec-video iframe.sec-video__media {
    filter: none !important;
  }
  .brand-mega {
    font-size: clamp(54px, 18vw, 110px);
    line-height: 0.88;
    letter-spacing: -0.005em;
  }
  .brand-tagline { font-size: clamp(20px, 5.5vw, 30px); margin-top: 14px; }
  .hero-location {
    position: static;
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  /* ===== ABOUT (homepage section) ===== */
  .about-grid { display: flex; flex-direction: column; gap: 32px; }
  .visual-frame--about {
    aspect-ratio: 9 / 16;
    max-width: 240px;
    width: 72%;
    margin: 0 auto;
  }
  .sec-about .display-xl { font-size: clamp(28px, 7.5vw, 44px); line-height: 1.06; }
  .sec-about .display-xl .split-chars { white-space: normal; }

  /* ===== FEATURED WORK — two video boxes stack vertically on mobile ===== */
  .work-grid--pair {
    flex-direction: column !important;
    height: auto;
    gap: 14px;
  }
  .work-grid--pair .work-card--vid {
    flex: 0 0 auto !important;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }
  /* On mobile videos fill normally (no hover-expand, no zoom). */
  .work-grid--pair .work-card__media--vimeo {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    transform: none !important;
  }
  /* Disable hover-expand on touch */
  .work-grid--pair:has(.work-card--vid:hover) .work-card--vid:not(:hover),
  .work-grid--pair:has(.work-card--vid:hover) .work-card--vid:hover {
    flex: 0 0 auto !important;
  }

  /* Legacy 5-card grid (kept for any old markup) */
  .work-grid { display: flex !important; flex-direction: column; gap: 14px; }
  .work-row { display: flex; flex-direction: column; gap: 14px; }
  .work-card { aspect-ratio: 16 / 9; width: 100%; }
  .work-card--01, .work-card--02, .work-card--03, .work-card--04, .work-card--05 {
    grid-row: auto; grid-column: auto; flex: 0 0 auto;
  }
  .work-card--05 { display: block; }
  .work-header__top { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 14px; }

  /* ===== CONTACT slide ===== */
  .contact-grid { padding-top: 24px !important; }
  .contact-text { padding-top: 0; }
  .sec-contact .display-xl { font-size: clamp(32px, 9vw, 52px); line-height: 1.0; }
  .contact-subhead { font-size: 13px; }
  .contact-list { margin-top: 18px; }
  .contact-list li { padding: 14px 0; gap: 10px; grid-template-columns: 56px 1fr auto; }
  .contact-list__label { font-size: 10px; }
  .contact-list__value {
    font-size: clamp(12px, 3.7vw, 15px);
    letter-spacing: 0.02em;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
  }
  .contact-list__arrow { width: 28px; flex-shrink: 0; }
  /* Marquee on contact slide is full-bleed */
  .sec-contact .logo-marquee { padding: 18px 0; }

  /* ===== MARQUEE ===== */
  .logo-marquee .lm-sm { height: 24px; max-width: 96px; }
  .logo-marquee .lm-md { height: 32px; max-width: 130px; }
  .logo-marquee .lm-lg { height: 42px; max-width: 170px; }
  .logo-marquee .marquee-track { gap: 32px; padding-left: 32px; }
  .logo-marquee .marquee-row--rtl .marquee-track,
  .logo-marquee .marquee-row--ltr .marquee-track {
    animation-duration: 32s;
  }

  /* ===== SERVICES (services.html) — simplified mobile stack =====
     Text first, video below. Each service block is a clean self-contained
     unit. Aggressive force-visible on the video so it always renders. */
  .gallery-page {
    padding-top: calc(var(--nav-h) + 24px);
    padding-left: 22px;
    padding-right: 22px;
  }
  .services {
    display: flex !important;
    flex-direction: column;
    gap: 56px;
    padding: 36px 0 64px;
  }
  .service-row,
  .service-row--reverse {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    margin: 0;
    gap: 0;
    grid-template-columns: none;
  }
  /* Force text-then-video order on EVERY row (including --reverse rows
     whose HTML has the media element FIRST). */
  .service-row .service-text,
  .service-row--reverse .service-text { order: 1 !important; }
  .service-row .service-media,
  .service-row--reverse .service-media { order: 2 !important; }
  .service-text {
    display: block;
    margin: 0 0 18px;
  }
  .service-num {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 0.22em;
  }
  .service-text h3 {
    font-size: clamp(24px, 6.4vw, 32px);
    line-height: 1.08;
    margin: 0 0 14px;
  }
  .service-text p {
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    max-width: 100%;
    color: #2a2a2a;
  }
  .service-media {
    display: block !important;
    width: 100%;
    margin: 0;
  }
  .service-media .visual-frame {
    position: relative !important;
    display: block !important;
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    border-radius: 12px;
    overflow: hidden !important;
    background: #0e0e0e !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .service-media .visual-frame iframe,
  .service-media iframe.visual-frame__media,
  .service-media iframe.visual-frame__media--vimeo {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: none;
  }

  /* CTA bar */
  .cta-bar { padding: 22px var(--pad-x); }
  .cta-bar__text h4 { font-size: 15px; }
  .btn-outline { padding: 14px 22px; font-size: 12px; }

  /* ===== GALLERY (gallery.html) slider — touch-friendly ===== */
  .tm-card { width: 92%; max-width: none; }
  .tm-hint { font-size: 10px; bottom: 18px; letter-spacing: 0.18em; }

  /* ===== NAV / LOGO on mobile ===== */
  /* Pill nav full-width with a tighter inset */
  .site-nav.is-scrolled {
    inset: 8px 12px auto 12px;
    margin: 0;
    width: auto;
    padding: 0 14px;
    height: 48px;
  }
  .nav-logo {
    top: 8px;
    left: 10px;
  }
  .nav-logo__img { height: clamp(34px, 9vw, 48px); }
  .nav-menu {
    right: 16px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 8px 14px;
    gap: 10px;
  }
  .nav-menu__label { font-size: 11px; }

  /* ===== ABOUT page sections ===== */
  .about-hero { padding-top: calc(var(--nav-h) + 36px) !important; }
  .about-hero__text .lede { font-size: 15px; }
  .about-intro__lead { font-size: clamp(18px, 5vw, 24px); }
  .about-services { padding: 50px var(--pad-x); }
  .about-services__head h2 { font-size: clamp(32px, 8.5vw, 48px); line-height: 1.04; }
  .about-services__list { grid-template-columns: 1fr; }
  .about-services__list li:nth-child(odd) { padding-right: 0; border-right: 0; }
  .about-services__list li:nth-child(even) { padding-left: 0; }
  .about-services__list li:nth-child(even):hover,
  .about-services__list li:nth-child(odd):hover { padding-left: 8px; }
  .about-services__list li {
    font-size: clamp(17px, 5vw, 24px);
    padding: 20px 0;
    gap: 16px;
  }
  .about-pair { gap: 32px; padding: 50px var(--pad-x) !important; }
  .about-cta { padding: 50px var(--pad-x); }
  .about-footer { padding: 22px var(--pad-x); }
}

/* Small phones — last-mile tightening */
@media (max-width: 420px) {
  .brand-mega { font-size: clamp(48px, 16vw, 92px); }
  .sec-about .display-xl { font-size: clamp(24px, 6.5vw, 36px); }
  .contact-list li { grid-template-columns: 50px 1fr auto; gap: 8px; }
  .contact-list__label { font-size: 10px; }
  .contact-list__value {
    font-size: clamp(11px, 3.6vw, 14px);
    letter-spacing: 0.01em;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
  }
}

/* ============================================================
   CURSOR BLOB
   - Single large soft radial-gradient orange blob that follows the
     cursor with a CSS transition (no JS lerp loop).
   - mix-blend-mode: screen brightens dark backgrounds with orange,
     so headings and content appear to "light up" as the blob passes.
   - The element is injected by JS into <body>.
   ============================================================ */
#cursor-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9000;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    rgba(75, 72, 238, 0.32) 0%,
    rgba(75, 72, 238, 0)   65%);
  will-change: transform, opacity;
  transition: transform 110ms ease-out, opacity 240ms ease;
  transform: translate3d(-9999px, -9999px, 0);
  opacity: 1;
}
/* Hide blob whenever the cursor is over a <video> element. */
body.over-video #cursor-blob { opacity: 0; }

/* ---- Extended hide rules ----
   The cursor blob never shows on top of an image or video surface.
   Also hidden site-wide on the standalone Contact page (full-bleed
   bg image) and the Gallery slider page (gallery.html — contains the
   Time Machine slider stage at #tm-stage). */
body.page-contact #cursor-blob,
body:has(#tm-stage) #cursor-blob {
  opacity: 0 !important;
}
body:has(video:hover) #cursor-blob,
body:has(iframe:hover) #cursor-blob,
body:has(.visual-frame:hover) #cursor-blob,
body:has(.fade-img:hover) #cursor-blob,
body:has(.work-card:hover) #cursor-blob,
body:has(.work-card__media:hover) #cursor-blob,
body:has(.sec-video:hover) #cursor-blob,
body:has(.sec-contact:hover) #cursor-blob,
body:has(.contact-bg:hover) #cursor-blob,
body:has(.contact-standalone:hover) #cursor-blob,
body:has(.tm-card:hover) #cursor-blob,
body:has(.time-machine:hover) #cursor-blob,
body:has(.logo-marquee:hover) #cursor-blob {
  opacity: 0;
}

/* ============================================================
   PAGE 2 → PAGE 3 TRANSITION (video → about)
   - As the user scrolls down past the video page, the video itself
     progressively BLURS (driven by sec-video's --cover-progress, the
     amount the next section has covered it).
   - The about section's BLACK background fades in over the blurred
     video (alpha tied to --enter-progress).
   - The about section's content (text + visual) fades in IN PLACE —
     no slide / paint-spill / side-entry. Just opacity.
   - End result: blurred video → tinted black → solid black with the
     third-page content fully formed.
   ============================================================ */

/* Video page blurs as it gets covered by the about section.
   Sweet-spot ramp: blur stays at 0 until cover-progress passes 0.25,
   then ramps up to ~22px by cover-progress = 1.0 — middle ground
   between the original instant-on blur and the late-only blur. */
.sec-video .sec-video__media {
  filter:
    blur(calc(max(var(--cover-progress, 0) - 0.20, 0) * 30px))
    brightness(calc(1 - max(var(--cover-progress, 0) - 0.45, 0) * 0.95));
  will-change: filter;
}

/* About section: keep bg transparent; content stays visible in place. */
.sec-about {
  background: transparent !important;
  background-color: transparent !important;
}
/* Intro Black is wider than Anton — keep each authored line on its own
   single visual line and trim the headline size so they fit. */
.sec-about .display-xl {
  font-size: clamp(30px, 4.4vw, 70px);
  line-height: 1.02;
}
.sec-about .display-xl .split-chars {
  white-space: nowrap;
}
/* Remove the Page 3 overlay edge/outline. */
.sec-about::before,
.sec-about::after {
  content: none;
}
.sec-about .cinema-section__inner {
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: none;
}
/* Content stays at its final position — no horizontal slide. */
.sec-about .about-text,
.sec-about .about-visual {
  transform: none !important;
}
/* Watermark never appears. */
.sec-about .bg-script {
  opacity: 0;
  transition: none;
}

/* ============================================================
   PRELOADER + PAGE ENTER OVERLAY
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: #060606;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity 700ms var(--ease-expo), transform 900ms var(--ease-expo);
}
.preloader.is-done {
  opacity: 0;
  transform: translate3d(0, -100%, 0);
  pointer-events: none;
}
.preloader__mark {
  font-family: var(--f-display);
  color: #fff;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: 0.06em;
  display: inline-flex;
  gap: 0.5em;
  align-items: center;
}
.preloader__count {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

/* Scroll pill effect on nav (template's header.tsx feel).
   Pill starts AFTER the logo's footprint on the left so the two
   never overlap visually. */
.site-nav.is-scrolled {
  height: 56px;
  margin: 12px calc(var(--pad-x) + 40px);
  padding: 0 24px;
  inset: 0 0 auto 0;
  width: calc(100% - (var(--pad-x) + 40px) * 2);
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 999px;
  mix-blend-mode: normal;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
}
.site-nav--light.is-scrolled {
  background: rgba(255, 255, 255, 0.7);
  color: var(--c-ink);
  border-color: rgba(0, 0, 0, 0.06);
}

/* ============================================================
   CLIENT LOGO MARQUEE — top of the contact slide on the homepage
   - Two rows scrolling in opposite directions (LTR + RTL)
   - Light cream background with dark silhouette logos (like the
     original gallery strip) — provides a clean contrast band at
     the top of the otherwise-dark contact section
   - Each track contains 2× duplicate logos for seamless infinite loop
   - Edges fade via mask-image so logos don't pop in/out hard
   ============================================================ */
.logo-marquee {
  position: relative;
  width: 100%;
  padding: 18px 0;
  background: var(--c-bg-light);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  z-index: 3;
  flex: 0 0 auto;          /* don't shrink in the flex column */
}
.logo-marquee .marquee-row {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 10px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.logo-marquee .marquee-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(48px, 5vw, 88px);
  padding-left: clamp(48px, 5vw, 88px);
  white-space: nowrap;
  will-change: transform;
}
@keyframes lm-rtl {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.logo-marquee .marquee-row--rtl .marquee-track {
  animation: lm-rtl 48s linear infinite;
}
.logo-marquee .marquee-row--ltr .marquee-track {
  animation: lm-rtl 48s linear infinite reverse;
}
.logo-marquee .marquee-logo {
  height: 50px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
  /* Dark silhouettes on the cream strip — matches the screenshot. */
  filter: brightness(0);
  opacity: 0.82;
  transition: opacity 240ms ease, transform 240ms ease;
}
.logo-marquee .marquee-logo:hover {
  opacity: 1;
  transform: scale(1.06);
}
/* Per-logo size variants — sprinkled in markup for organic rhythm */
.logo-marquee .lm-sm { height: 36px; max-width: 140px; }
.logo-marquee .lm-md { height: 50px; max-width: 200px; }
.logo-marquee .lm-lg { height: 64px; max-width: 260px; }

/* Per-brand override: protein-pints renders larger AND keeps its
   native colors (skip the brightness(0) silhouette filter). */
.logo-marquee .marquee-logo[src*="protein-pints"] {
  height: 84px;
  max-width: 300px;
  filter: none;
  opacity: 1;
}

/* Pause animation when user hovers the strip */
.logo-marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* Marquee placement inside the Featured Work section — slot it
   below the work-grid as the third row of work-wrap, and extend
   full-width past the cinema-section__inner padding. */
.sec-work .logo-marquee {
  align-self: end;
  margin: 0 calc(-1 * var(--pad-x)) -40px;   /* -40px bottom eats inner padding so strip flushes to section bottom */
  width: calc(100% + (var(--pad-x) * 2));
  border-bottom: 0;
}

@media (max-width: 720px) {
  .logo-marquee .lm-sm { height: 28px; }
  .logo-marquee .lm-md { height: 38px; }
  .logo-marquee .lm-lg { height: 50px; }
}

/* ============================================================
   ABOUT US PAGE
   - Dark theme matching the site's premium aesthetic
   - Sections flow vertically; three Vimeo reels at different
     aspect ratios (portrait, wide, cinema) anchor the story
   - Same letter-cascade + reveal animations as the rest of the site
   ============================================================ */
body.page-about {
  background: #060606;
  color: #fff;
  overflow-x: hidden;
}

.about-page { display: block; }
.about-page > section {
  position: relative;
  padding: clamp(72px, 9vw, 140px) var(--pad-x);
}

/* ----- HERO ----- */
.about-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) !important;
}
.about-hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.about-hero__text { max-width: 720px; }
.about-hero__text .lede {
  margin-top: 26px;
  max-width: 56ch;
  color: rgba(255,255,255,0.78);
  font-size: clamp(16px, 1.15vw, 19px);
}
.about-hero__text .hr-rule { background: var(--c-line-light); margin: 26px 0 22px; }
.about-hero__media { display: flex; justify-content: flex-end; }

/* Shared frame look across the three about videos */
.about-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0e0e0e;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
}
.about-frame--portrait { aspect-ratio: 9 / 16; width: 100%; max-width: 400px; }
.about-frame--wide    { aspect-ratio: 4 / 5;  width: 100%; max-width: 500px; }
.about-frame--cinema  { aspect-ratio: 21 / 9; width: 100%; border-radius: 0; }

/* ----- INTRO PARAGRAPHS ----- */
.about-intro .about-intro__inner { max-width: 920px; }
.about-intro__lead {
  font-size: clamp(20px, 1.85vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin-bottom: 24px;
  color: #fff;
  font-weight: 500;
}
.about-intro p:not(.about-intro__lead) {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  max-width: 64ch;
  color: rgba(255,255,255,0.72);
}

/* ----- FOUNDER STORY ----- */
.about-story {
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.018) 50%, transparent 100%);
}
.about-story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.about-story__media { display: flex; justify-content: flex-start; }
.about-story__text { max-width: 560px; }
.about-story__text .eyebrow { display: block; margin-bottom: 18px; }
.about-story__text h2 { margin-bottom: 28px; }
.about-story__text p,
.about-approach p,
.about-clients p {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  max-width: 56ch;
  color: rgba(255,255,255,0.78);
  margin-bottom: 18px;
}

/* ----- SERVICES — WHAT WE DO ----- */
.about-services__head {
  max-width: 920px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.about-services__head .eyebrow { display: block; margin-bottom: 16px; }
.about-services__head h2 { margin-bottom: 24px; }
.about-services__head .lede {
  max-width: 56ch;
  color: rgba(255,255,255,0.7);
  font-size: clamp(15px, 1.1vw, 18px);
}
.about-services__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.about-services__list li {
  padding: clamp(20px, 2vw, 30px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 1.6vw, 28px);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: padding-left 400ms var(--ease-cinema),
              background 400ms ease,
              color 400ms ease;
  color: rgba(255,255,255,0.85);
  cursor: default;
}
.about-services__list li:nth-child(odd)  { padding-right: 32px; border-right: 1px solid rgba(255,255,255,0.1); }
.about-services__list li:nth-child(even) { padding-left: 32px; }
.about-services__list li:hover { color: #fff; background: rgba(255,255,255,0.025); }
.about-services__list li:nth-child(odd):hover  { padding-left: 12px; }
.about-services__list li:nth-child(even):hover { padding-left: 44px; }
.about-services__list .srv-num {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.4);
}

/* ----- CINEMA REEL (video 3 full-bleed) ----- */
.about-reel {
  padding: 0 !important;
}

/* ----- APPROACH + CLIENTS (two-column pair) ----- */
.about-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.about-pair__col { display: block; }
.about-approach,
.about-clients {
  /* These were previously full <section>s with their own padding —
     now they're columns inside .about-pair, so kill that padding. */
  padding: 0 !important;
}
.about-approach__inner,
.about-clients__inner { max-width: 100%; }
.about-approach .eyebrow,
.about-clients .eyebrow { display: block; margin-bottom: 16px; }
.about-approach h2,
.about-clients h2 { margin-bottom: 28px; }
.about-clients__edge {
  font-style: italic;
  color: rgba(255,255,255,0.6) !important;
  border-left: 2px solid rgba(255,255,255,0.2);
  padding-left: 18px;
  margin-top: 24px !important;
}

.link-arrow--light::after { background: rgba(255,255,255,0.5); }
.link-arrow--light { color: #fff; }

/* ----- FOOTER ----- */
.about-footer {
  display: flex;
  justify-content: space-between;
  padding: 28px var(--pad-x);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  background: #060606;
}

/* ----- ABOUT MOBILE ----- */
@media (max-width: 820px) {
  .about-hero__inner,
  .about-story__inner,
  .about-pair {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-hero__media,
  .about-story__media { justify-content: center; }
  .about-frame--portrait { max-width: 280px; }
  .about-frame--wide { max-width: 100%; aspect-ratio: 16 / 10; }
  .about-frame--cinema { aspect-ratio: 16 / 9; }

  .about-services__list { grid-template-columns: 1fr; }
  .about-services__list li:nth-child(odd) { padding-right: 0; border-right: 0; }
  .about-services__list li:nth-child(even) { padding-left: 0; }
  .about-services__list li:nth-child(even):hover,
  .about-services__list li:nth-child(odd):hover { padding-left: 8px; }

  .about-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal,
  .split-chars .char,
  .line-mask .line-inner,
  .fade-img__inner { opacity: 1; transform: none; filter: none; }
  .split-words .word { opacity: 1; filter: none; }
  .scrub-rise, .scrub-scale, .scrub-parallax-y { transform: none; opacity: 1; }
}

/* ============================================================
   FEATURED WORK CREAM BACKGROUND MATCH
   ============================================================ */
.sec-work {
  background: var(--c-bg-light);
  color: var(--c-ink);
}

.sec-work .eyebrow,
.sec-work .display-xl,
.sec-work .lede,
.sec-work .link-arrow,
.sec-work .work-footer h3 {
  color: var(--c-ink);
}

.sec-work .work-header .lede {
  color: rgba(0, 0, 0, 0.72);
}

.sec-work .work-header .hr-rule {
  background: var(--c-line);
}

.sec-work .bg-script {
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.08);
}

.sec-work .logo-marquee {
  border-top: 0;
  border-bottom: 0;
}

.page-home .site-footer--home {
  position: absolute;
  right: 42px;
  bottom: 32px;
  left: auto;
  width: auto;
  display: flex;
  justify-content: flex-end;
  text-align: right;
  z-index: 5;
}
