/* ============================================================
   MARVINROSS.COM — FABLE 5 ALT
   Dark cinema. Gold thread. Gallery first, price sheet never.
   ============================================================ */

:root {
  --ink: #0a0a0b;
  --ink-2: #111113;
  --paper: #f2efe9;
  --paper-dim: rgba(242, 239, 233, 0.62);
  --gold: #c9a84c;
  --gold-dim: rgba(201, 168, 76, 0.55);
  --hair: rgba(242, 239, 233, 0.14);
  --serif: 'Bagel Fat One', cursive;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
}

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

/* No native scrollbar chrome anywhere — scrolling stays alive. */
html { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

html, body { background: var(--ink); color: var(--paper); }
body { font-family: var(--sans); font-weight: 300; }
/* hard horizontal lock — body-only hidden is ignored by iOS Safari, and
   clip avoids creating a new scroll container for the journey pins */
html, body { overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold); }
img { display: block; }

.page-eyebrow { font-size: 11px; letter-spacing: 6px; color: var(--gold); margin-bottom: 18px; }
.page-title { font-size: clamp(38px, 6vw, 76px); line-height: 1.04; font-weight: 600; letter-spacing: -1px; }
.page-sub { max-width: 520px; margin-top: 22px; color: var(--paper-dim); font-size: 16px; line-height: 1.7; }

/* soft in-app page cross-fade — navigate() dips #main out, swaps, breathes back */
#main { transition: opacity 0.3s ease; }
#main.page-fade-out { opacity: 0; transition-duration: 0.17s; }

/* ============ PAGE VEIL (HYBRID cross-app transitions) ============ */
.page-veil {
  position: fixed; inset: 0; z-index: 99990; background: #000;
  opacity: 1; pointer-events: none; transition: opacity 0.45s ease;
}
.page-veil.lifted { opacity: 0; }

/* ============ INTRO ============ */
.intro {
  position: fixed; inset: 0; z-index: 1000; background: #000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
}
.intro-flash-frame {
  position: relative;
  width: min(58vw, 460px); height: min(72vh, 600px);
  overflow: hidden;
}
.intro-flash-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0;
}
.intro-flash-img.on { opacity: 1; }
.intro-name {
  position: absolute; top: 10vh; left: 0; right: 0; text-align: center;
  font-size: clamp(22px, 4vw, 44px); letter-spacing: 14px; font-weight: 600;
  mix-blend-mode: difference; pointer-events: none;
}
.intro-name span { display: inline-block; opacity: 0; transform: translateY(18px); }
.intro-counter {
  position: absolute; bottom: 9vh; left: 0; right: 0; text-align: center;
  font-size: 10px; letter-spacing: 5px; color: rgba(242,239,233,0.4); pointer-events: none;
}
.intro-enter {
  /* lowered again — clamped so it can never slip off-screen */
  position: absolute; bottom: max(12px, calc(13vh - 120px)); left: 0; right: 0; text-align: center; pointer-events: none;
}
.intro-enter span {
  position: relative; display: inline-block;
  font-size: 13px; letter-spacing: 10px; color: var(--paper);
  padding: 14px 40px 14px 50px; border: none; border-radius: 40px;
  background: radial-gradient(120% 190% at 50% 50%, rgba(201, 168, 76, 0.14), rgba(201, 168, 76, 0.03) 55%, transparent 78%);
  animation: enterBreathe 2.6s ease-in-out infinite;
}
@keyframes enterBreathe {
  0%, 100% {
    transform: scale(1); border-color: var(--gold-dim); opacity: 0.8;
    box-shadow: 0 0 18px rgba(201, 168, 76, 0.10), inset 0 0 14px rgba(201, 168, 76, 0.06);
  }
  50% {
    transform: scale(1.045); border-color: var(--gold); opacity: 1;
    box-shadow: 0 0 42px rgba(201, 168, 76, 0.30), inset 0 0 20px rgba(201, 168, 76, 0.12);
  }
}
@keyframes enterPulse {
  0%, 100% { opacity: 0.45; border-color: var(--hair); }
  50% { opacity: 1; border-color: var(--gold-dim); }
}
.intro.leaving { cursor: default; }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 22px clamp(20px, 4vw, 56px);
  display: flex; opacity: 0; transform: translateY(-12px);
  transition: opacity 0.8s ease, transform 0.8s ease, background 0.4s ease;
  pointer-events: none;
}
.site-header.shown { opacity: 1; transform: none; pointer-events: auto; }
.site-header.scrolled { background: linear-gradient(rgba(10,10,11,0.92), rgba(10,10,11,0)); }
.header-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 15px; letter-spacing: 7px; font-weight: 600; }
.logo-group { display: flex; align-items: center; gap: 16px; }
/* ABOUT hides the wordmark + BACKDOOR pill — the hero already carries the name */
body.on-about .logo-group { display: none; }
.backdoor-link {
  font-size: 9px; letter-spacing: 3px; color: var(--gold-dim);
  border: 1px solid var(--hair); border-radius: 999px; padding: 5px 12px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.backdoor-link:hover { color: var(--gold); border-color: var(--gold); }
.nav { display: flex; gap: 34px; }
.nav-link {
  font-size: 11px; letter-spacing: 4px; color: var(--paper-dim);
  position: relative; padding: 6px 0; transition: color 0.3s ease;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s ease;
}
.nav-link:hover, .nav-link.active { color: var(--paper); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 1.5px; background: var(--paper); margin: 5px 0; transition: 0.3s; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 190; background: rgba(10,10,11,0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav-link { font-size: 22px; letter-spacing: 8px; color: var(--paper); }

/* ============ HOME HERO ============ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  position: relative; padding: 0 20px;
}
.hero-kicker { font-size: 11px; letter-spacing: 8px; color: var(--gold); margin-bottom: 26px; }
.hero-name {
  font-size: clamp(44px, 11vw, 150px); font-weight: 700; letter-spacing: clamp(2px, 1vw, 14px);
  line-height: 1; white-space: nowrap;
}
.hero-name .ch { display: inline-block; }
.hero-roles { margin-top: 28px; height: 26px; font-size: 14px; letter-spacing: 6px; color: var(--paper-dim); }
.hero-scroll-cue {
  position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 5px; color: var(--paper-dim);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cue-line { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); display: block; animation: cueDrop 2s ease-in-out infinite; }
@keyframes cueDrop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ HOME CHAPTERS ============ */
.chapter { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 9vh clamp(20px, 5vw, 70px); }
.chapter-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; width: 100%; max-width: 1380px; margin: 0 auto; }
.chapter.flip .chapter-inner { grid-template-columns: 1fr 1.15fr; }
.chapter.flip .chapter-media { order: 2; }
.chapter-media { position: relative; overflow: hidden; aspect-ratio: 4/5; max-height: 76vh; }
.chapter-media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.chapter-media .ch-num {
  position: absolute; top: 18px; left: 22px; font-size: 12px; letter-spacing: 4px;
  color: rgba(255,255,255,0.85); text-shadow: 0 1px 8px rgba(0,0,0,0.5); z-index: 2;
}
.chapter-copy .ch-title {
  font-size: clamp(34px, 4.6vw, 64px); font-weight: 600; letter-spacing: 0;
  line-height: 1.05; margin-bottom: 20px;
}
.chapter-copy .ch-title .ch { display: inline-block; }
.chapter-copy .ch-desc { color: var(--paper-dim); font-size: 16px; line-height: 1.75; max-width: 480px; }
.chapter-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chapter-tags span {
  font-size: 10px; letter-spacing: 3px; color: var(--paper-dim);
  border: 1px solid var(--hair); border-radius: 30px; padding: 7px 14px;
}
.chapter-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.ch-enter, .ch-pkg {
  font-size: 11px; letter-spacing: 4px; padding: 14px 26px; border-radius: 40px;
  cursor: pointer; transition: all 0.35s ease; border: 1px solid var(--hair); background: none; color: var(--paper);
}
.ch-enter:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.ch-pkg { color: var(--gold-dim); border-color: transparent; }
.ch-pkg:hover { color: var(--gold); border-color: var(--gold-dim); }
.chapter-rule { position: absolute; bottom: 0; left: 8%; right: 8%; height: 1px; background: var(--hair); transform: scaleX(0); }

/* ============ HOME OUTRO ============ */
.home-outro { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.outro-eyebrow { font-size: 11px; letter-spacing: 7px; color: var(--gold); margin-bottom: 24px; }
.outro-title { font-size: clamp(40px, 7vw, 92px); font-weight: 600; line-height: 1.05; }
.outro-cta {
  margin-top: 46px; font-size: 12px; letter-spacing: 6px; color: var(--ink);
  background: var(--paper); padding: 20px 52px; border-radius: 50px; transition: all 0.35s ease;
}
.outro-cta:hover { background: var(--gold); transform: translateY(-3px); }

/* ============ STYLES PAGE ============ */
.styles-hero { min-height: 56vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 18vh clamp(20px, 6vw, 80px) 8vh; }
.styles-flow { padding: 0 clamp(20px, 6vw, 80px) 14vh; }
.sf-block {
  display: grid; grid-template-columns: 90px 1fr 1.1fr;
  /* row-gap 0: the MC video strip row must sit flush against its 03 row
     (Marvin, 2026-06-11) — columns keep the original spacing */
  column-gap: clamp(20px, 4vw, 60px); row-gap: 0;
  padding: 9vh 0; border-top: 1px solid var(--hair); align-items: center;
}
.sf-num { font-size: 13px; letter-spacing: 3px; color: var(--gold-dim); }
.sf-copy h3 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; margin-bottom: 16px; }
.sf-copy p { color: var(--paper-dim); font-size: 15px; line-height: 1.75; max-width: 440px; }
.sf-links { display: flex; gap: 18px; margin-top: 24px; }
.sf-links a, .sf-links button {
  font-size: 10px; letter-spacing: 3px; color: var(--gold-dim); background: none; border: none;
  cursor: pointer; padding: 4px 0; border-bottom: 1px solid transparent; transition: 0.3s;
}
.sf-links a:hover, .sf-links button:hover { color: var(--gold); border-bottom-color: var(--gold-dim); }
.sf-media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.sf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.sf-media img.on { opacity: 1; }
.sf-media .sf-veil { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,10,11,0.25), transparent 40%); }
/* Every style: two separated photo cards, pairs crossfade together */
.sf-media.sf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); overflow: visible; }
/* no card surface — just the clean photo floating on the page */
.sf-slot { position: relative; }
.sf-slot img.on { filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.5)); }
.sf-slot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0; /* hard cut between pairs — no crossfade */
}
.sf-slot img.on { opacity: 1; }
/* Main Character: silent looping video strip ABOVE the section (above the
   03 number — Marvin, 2026-06-11). order:-2 keeps it on top even on mobile
   where .sf-media jumps to order:-1. Collapsed to a 1px sliver until the
   video is actually PLAYING (iOS won't start a display:none video) — it
   never sits there as an empty black rectangle. pointer-events off =
   can't be paused/scrubbed. */
.sf-video-strip {
  grid-column: 1 / -1; order: -2; height: 1px; overflow: hidden; opacity: 0.01;
  margin: 0; transition: opacity 0.6s ease;
}
.sf-video-strip.live { height: auto; opacity: 1; }
/* The block that carries the strip pins its text to the TOP of the row —
   without this, align-items:center floats the 03/title halfway down the
   tall photo pair, leaving a huge dead gap under the video (Marvin,
   2026-06-11). Title writes straight underneath the video. */
.sf-block.sf-has-strip { align-items: start; }
.sf-video-strip video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; pointer-events: none; }
/* Pitch Deck: live scrollable window into the real deck */
.sf-media.sf-deckwin { display: block; position: relative; border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; }
.sf-deck-frame { width: 100%; height: 100%; border: none; display: block; }
.sf-deck-tag {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center; cursor: pointer;
  font-size: 9px; letter-spacing: 3px; color: var(--gold-dim);
  padding: 10px 0; background: linear-gradient(transparent, rgba(10, 10, 11, 0.85));
}
.sf-deck-tag:hover { color: var(--gold); }

/* ============ GALLERY ============ */
.g-hero { min-height: 78vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 clamp(20px, 6vw, 80px) 9vh; position: relative; }
.g-number { font-size: 13px; letter-spacing: 4px; color: var(--gold); margin-bottom: 14px; }
.g-title { font-size: clamp(48px, 9vw, 120px); font-weight: 700; line-height: 1; }
.g-desc { max-width: 540px; margin-top: 24px; color: var(--paper-dim); font-size: 16px; line-height: 1.7; }
.g-scroll-hint { position: absolute; right: clamp(20px, 6vw, 80px); bottom: 9vh; font-size: 10px; letter-spacing: 5px; color: var(--paper-dim); }
.g-images { display: flex; flex-direction: column; gap: 12vh; padding: 6vh clamp(20px, 8vw, 120px) 16vh; }
.g-wrap { position: relative; overflow: hidden; opacity: 0; transform: translateY(60px); transition: opacity 1s ease, transform 1s ease; }
.g-wrap.seen { opacity: 1; transform: none; }
.g-wrap:nth-child(odd) { width: min(100%, 760px); align-self: flex-start; }
.g-wrap:nth-child(even) { width: min(100%, 640px); align-self: flex-end; }
.g-wrap img, .g-wrap video { width: 100%; height: auto; display: block; }
.g-counter { position: absolute; bottom: 14px; right: 16px; font-size: 10px; letter-spacing: 3px; color: rgba(255,255,255,0.7); text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.g-card {
  align-self: center !important; width: min(100%, 560px) !important;
  border: 1px solid var(--hair); padding: 44px 40px; text-align: center; cursor: pointer; transition: border-color 0.35s;
}
.g-card:hover { border-color: var(--gold-dim); }
.g-card .gc-eyebrow { font-size: 10px; letter-spacing: 4px; color: var(--gold); margin-bottom: 14px; }
.g-card .gc-title { font-size: 30px; font-weight: 600; margin-bottom: 12px; }
.g-card .gc-tagline { color: var(--paper-dim); font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.g-card .gc-action { font-size: 11px; letter-spacing: 4px; color: var(--gold-dim); }
.g-back, .timeline-back {
  position: fixed; bottom: 30px; left: 30px; z-index: 150;
  background: rgba(10,10,11,0.8); border: 1px solid var(--hair); color: var(--paper);
  font-size: 11px; letter-spacing: 3px; padding: 13px 22px; border-radius: 40px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
  backdrop-filter: blur(8px);
}
.g-back.visible { opacity: 1; pointer-events: auto; }

/* ============ ABOUT ============ */
.about-hero { position: relative; height: 92vh; overflow: hidden; }
.about-hero-img { width: 100%; height: 116%; object-fit: cover; object-position: center 20%; will-change: transform; }
.about-hero-shade { position: absolute; inset: 0; background: linear-gradient(rgba(10,10,11,0.1) 40%, var(--ink) 96%); }
.about-hero-text { position: absolute; bottom: 9vh; left: clamp(20px, 6vw, 80px); }
.about-name { font-size: clamp(42px, 7vw, 96px); font-weight: 700; line-height: 1; }
.about-tagline { margin-top: 16px; font-size: 13px; letter-spacing: 3px; line-height: 2; color: var(--paper-dim); }
.about-body { max-width: 760px; margin: 0 auto; padding: 10vh 24px 14vh; }
.about-block { margin-bottom: 9vh; }
.about-block h3 { font-size: 12px; letter-spacing: 6px; color: var(--gold); margin-bottom: 26px; }
.about-block p { color: var(--paper-dim); font-size: 16.5px; line-height: 1.85; margin-bottom: 18px; }
.proof-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin: 0 3px;
  padding: 4px 11px;
  border: 1px solid rgba(212, 184, 106, 0.42);
  border-radius: 999px;
  background: rgba(212, 184, 106, 0.1);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: baseline;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.proof-pill:hover {
  border-color: rgba(212, 184, 106, 0.8);
  background: rgba(212, 184, 106, 0.18);
  color: var(--paper);
  transform: translateY(-1px);
}
.spidey-proof-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.spidey-proof-overlay.active { opacity: 1; pointer-events: auto; }
.spidey-proof-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(16px);
}
.spidey-proof-card {
  position: relative;
  width: min(86vw, 560px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #090909;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  transform: scale(0.96);
  transition: transform 0.28s ease;
}
.spidey-proof-overlay.active .spidey-proof-card { transform: scale(1); }
.spidey-proof-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spidey-proof-img-two { opacity: 0; transition: opacity 0.7s ease; }
.spidey-proof-overlay.show-second .spidey-proof-img-two { opacity: 1; }
.cant-mark { text-decoration-line: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-skip-ink: none; }
.story-door {
  display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 30px;
  border: 1px solid var(--hair); padding: 46px 44px; position: relative; overflow: hidden;
  text-align: center;
  transition: border-color 0.4s ease;
}
.story-door::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(201,168,76,0.07) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.9s ease;
}
.story-door:hover::before { transform: translateX(100%); }
.story-door:hover { border-color: var(--gold-dim); }
.story-door-eyebrow { font-size: 10px; letter-spacing: 5px; color: var(--gold); }
.story-door-title { font-size: clamp(34px, 4vw, 52px); font-weight: 700; }
.story-door-cue {
  align-self: center;
  margin-top: 24px;
  min-width: 120px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--paper-dim);
  text-align: center;
  transform: translateX(4px);
}
.about-social { text-align: center; }
.social-link { font-size: 11px; letter-spacing: 5px; color: var(--paper-dim); border-bottom: 1px solid var(--hair); padding-bottom: 6px; transition: 0.3s; }
.social-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ============ THEN. NOW. JOURNEY ============ */
#page-journey { background: #070708; }
.j-cover { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.j-cover-eyebrow { font-size: 11px; letter-spacing: 7px; color: var(--gold); margin-bottom: 30px; }
.j-cover-title { font-size: clamp(64px, 14vw, 190px); font-weight: 700; line-height: 0.95; display: flex; flex-direction: column; }
.j-cover-title .j-now { color: var(--gold); }
.j-cover-sub { margin-top: 34px; color: var(--paper-dim); font-size: 16px; line-height: 1.8; letter-spacing: 1px; }
.j-cover-hint { margin-top: 60px; font-size: 10px; letter-spacing: 6px; color: var(--paper-dim); animation: enterPulse 2s ease-in-out infinite; }

.j-road { position: relative; padding: 4vh 0 10vh; }
.j-road-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
#j-road-path { stroke: var(--gold-dim); stroke-width: 1.5; }

.j-chapter {
  position: relative; min-height: 96vh;
  display: flex; align-items: center; justify-content: center;
  padding: 6vh clamp(20px, 6vw, 80px);
}
.j-chapter-inner { display: flex; align-items: center; gap: clamp(24px, 5vw, 90px); max-width: 1100px; width: 100%; }
.j-chapter.left .j-chapter-inner { flex-direction: row; }
.j-chapter.right .j-chapter-inner { flex-direction: row-reverse; }
.j-frame { position: relative; flex: 0 1 560px; }
.j-frame canvas, .j-frame img {
  width: 100%; height: auto; max-height: 70vh; object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55)); will-change: transform;
}
.j-text { flex: 1; }
.j-step-num { font-size: 12px; letter-spacing: 5px; color: var(--gold-dim); margin-bottom: 16px; }
.j-era { font-size: clamp(32px, 4.6vw, 60px); font-weight: 600; line-height: 1.06; }
.j-era .ch { display: inline-block; }

.j-closer { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10vh 20px; }
.j-closer-frame { width: min(86vw, 720px); }
/* canvas too — whiteToAlpha swaps the img for a canvas, which otherwise
   renders at raw pixel size and swallows the whole phone screen */
.j-closer-frame canvas, .j-closer-frame img {
  width: 100%; height: auto; max-height: 58vh; object-fit: contain;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,0.6));
}
.j-closer-line { margin-top: 56px; font-size: clamp(26px, 4vw, 46px); font-weight: 600; line-height: 1.35; }
.j-back { margin-top: 60px; font-size: 11px; letter-spacing: 4px; color: var(--paper-dim); border: 1px solid var(--hair); padding: 14px 28px; border-radius: 40px; transition: 0.3s; }
.j-back:hover { color: var(--gold); border-color: var(--gold-dim); }

/* ============ APPS ============ */
.apps-hero { min-height: 60vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 18vh clamp(20px, 6vw, 80px) 6vh; }
.apps-deck { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; padding: 4vh clamp(20px, 6vw, 80px) 16vh; max-width: 1280px; }
.app-card {
  position: relative; border: 1px solid var(--hair); padding: 46px 38px 42px; overflow: hidden;
  background: var(--ink-2); transition: transform 0.4s ease, border-color 0.4s ease; cursor: pointer;
  display: flex; flex-direction: column; min-height: 300px;
}
.app-card:hover { transform: translateY(-6px); border-color: var(--gold-dim); }
.app-card::after {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 20%), rgba(201,168,76,0.10), transparent 60%);
}
.app-card:hover::after { opacity: 1; }
.app-glyph { font-size: 13px; letter-spacing: 3px; color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 12px; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.app-card h3 { font-size: 27px; font-weight: 600; margin-bottom: 14px; }
.app-tease { color: var(--paper-dim); font-size: 15px; line-height: 1.7; font-style: italic; flex: 1; }
.app-meta { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; }
.app-status { font-size: 10px; letter-spacing: 3px; color: var(--paper-dim); display: flex; align-items: center; gap: 8px; }
.app-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: dotPulse 1.6s ease-in-out infinite; }
@keyframes dotPulse { 50% { opacity: 0.3; } }
.app-visit { font-size: 10px; letter-spacing: 3px; color: var(--gold); }
.apps-footnote { grid-column: 1 / -1; margin-top: 30px; color: var(--paper-dim); font-size: 13px; letter-spacing: 1px; text-align: center; }

/* ============ POSE DECK ============ */
#page-posedeck {
  position: fixed; inset: 0; z-index: 180; background: var(--ink);
  overflow-y: auto; -webkit-overflow-scrolling: touch; /* the deck scrolls in here */
}
.pd-frame { width: 100%; height: 100%; border: none; display: block; }
.pd-back {
  position: fixed; top: 22px; left: 24px; z-index: 185;
  background: rgba(10,10,11,0.8); border: 1px solid var(--hair); color: var(--paper);
  font-size: 11px; letter-spacing: 3px; padding: 12px 20px; border-radius: 40px;
  backdrop-filter: blur(8px); transition: 0.3s;
}
.pd-back:hover { color: var(--gold); border-color: var(--gold-dim); }
body.pd-fullscreen .site-header { display: none; }

/* ============ CONTACT ============ */
.contact-wrap { max-width: 680px; margin: 0 auto; padding: 22vh 24px 16vh; }
.contact-form { margin-top: 7vh; display: flex; flex-direction: column; gap: 34px; }
.form-group { display: flex; flex-direction: column; gap: 12px; }
.form-group label { font-size: 10px; letter-spacing: 4px; color: var(--gold-dim); }
.form-group input, .form-group textarea {
  background: none; border: none; border-bottom: 1px solid var(--hair);
  color: var(--paper); font-family: var(--sans); font-size: 17px; padding: 10px 2px 14px;
  outline: none; transition: border-color 0.3s ease; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-bottom-color: var(--gold); }
.form-submit {
  align-self: flex-start; margin-top: 10px; background: var(--paper); color: var(--ink); border: none;
  font-size: 11px; letter-spacing: 5px; padding: 18px 44px; border-radius: 50px; cursor: pointer; transition: 0.35s;
}
.form-submit:hover { background: var(--gold); }
.form-done { display: none; font-size: 15px; color: var(--gold); letter-spacing: 1px; }

/* ============ PACKAGE OVERLAY ============ */
.pkg-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(7,7,8,0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.pkg-overlay.open { opacity: 1; pointer-events: auto; overscroll-behavior: contain; }
/* page is frozen while a package card is up — no scroll bleeding through */
body.pkg-locked { overflow: hidden; touch-action: none; }
body.pkg-locked .pkg-card { touch-action: pan-y; overscroll-behavior: contain; }
.pkg-card {
  position: relative; width: min(94vw, 560px); max-height: 86vh; overflow-y: auto;
  border: 1px solid var(--hair); background: rgba(14,14,16,0.9); padding: 54px 48px 46px;
  transform: translateY(26px); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.pkg-overlay.open .pkg-card { transform: none; }
.pkg-badge { font-size: 9px; letter-spacing: 5px; color: var(--gold); border: 1px solid var(--gold-dim); display: inline-block; padding: 6px 14px; border-radius: 30px; margin-bottom: 24px; }
/* package titles sit CENTERED on the card (Marvin, 2026-06-11);
   pre-line honors the \n in multi-line names so "The Construct" lines up
   evenly under "The Sketch" instead of sticking out */
.pkg-name { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.15; text-align: center; white-space: pre-line; }
.pkg-cat { font-size: 11px; letter-spacing: 4px; color: var(--paper-dim); margin: 10px 0 30px; text-align: center; }
.pkg-rows { border-top: 1px solid var(--hair); }
.pkg-row { display: flex; justify-content: space-between; gap: 22px; padding: 15px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.pkg-row .k { color: var(--paper-dim); letter-spacing: 1px; white-space: nowrap; }
.pkg-row .v { text-align: right; line-height: 1.55; }
.pkg-note { margin-top: 20px; font-size: 12.5px; line-height: 1.7; color: var(--gold-dim); }
.pkg-price { margin-top: 26px; font-size: 34px; font-weight: 700; color: var(--gold); }
.pkg-loc { font-size: 11px; letter-spacing: 3px; color: var(--paper-dim); margin-top: 8px; }
.pkg-book { display: inline-block; margin-top: 30px; font-size: 11px; letter-spacing: 4px; background: var(--paper); color: var(--ink); padding: 15px 36px; border-radius: 40px; transition: 0.3s; }
.pkg-book:hover { background: var(--gold); }
.pkg-close { position: absolute; top: 18px; right: 20px; background: none; border: none; color: var(--paper-dim); font-size: 30px; cursor: pointer; line-height: 1; transition: color 0.3s; }
.pkg-close:hover { color: var(--paper); }

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .intro-flash-frame { width: 80vw; height: 62vh; }
  .intro-name { letter-spacing: 8px; }
  .hero-name { white-space: normal; }
  .chapter { min-height: auto; padding: 8vh 22px; }
  .chapter-inner, .chapter.flip .chapter-inner { grid-template-columns: 1fr; gap: 26px; }
  .chapter.flip .chapter-media { order: 0; }
  .chapter-media { max-height: 58vh; }
  .sf-block { grid-template-columns: 1fr; gap: 20px; padding: 7vh 0; }
  .sf-media { order: -1; }
  /* MC strip block on phone: video first, then 03 + title + copy, photos
     after — the title writes straight under the video here too */
  .sf-block.sf-has-strip .sf-media { order: 0; }
  .g-wrap:nth-child(odd), .g-wrap:nth-child(even) { width: 100%; align-self: center; }
  .g-images { gap: 7vh; }
  .j-chapter { min-height: auto; padding: 9vh 22px; }
  .j-chapter-inner, .j-chapter.left .j-chapter-inner, .j-chapter.right .j-chapter-inner { flex-direction: column; gap: 30px; }
  .j-frame { flex: none; width: min(82vw, 420px); }
  .j-text { text-align: center; }
  /* the closing group photo stays modest on a phone — fit, don't fill */
  .j-closer-frame { width: min(88vw, 400px); }
  .j-closer-frame canvas, .j-closer-frame img { max-height: 48vh; }
  .pkg-card { padding: 44px 28px 38px; }
  .apps-deck { padding-bottom: 12vh; }
  .contact-wrap { padding-top: 16vh; }
}

/* ============ DESKTOP-ONLY LIST (Marvin 2026-06-12, parity with ALT) ============ */
@media (min-width: 901px) {
  /* 1. home chapters: the FULL photo, no cropping */
  .chapter-media { aspect-ratio: auto; max-height: none; }
  .chapter-media img { height: auto; }
  /* 2. outro: the verbiage goes, BOOK A SHOOT becomes the statement */
  .outro-eyebrow, .outro-title { display: none; }
  .outro-cta {
    margin-top: 0;
    font-size: clamp(40px, 5.5vw, 84px);
    font-weight: 800; letter-spacing: 0.08em;
    padding: 36px 96px; border-radius: 999px;
  }
  /* 4. pitch deck window: tall, not the landscape rectangle */
  .sf-media.sf-deckwin { aspect-ratio: auto; height: min(82vh, 950px); }
}

/* ============ ROUND 2026-06-12B ============ */
/* MARVIN ROSS logo fade while scrolling styles */
.site-header .logo { transition: opacity 0.45s ease; }
.site-header .logo.logo-fade { opacity: 0; pointer-events: none; }
/* slab-logo: opaque dark backing — guards any transparency/inversion quirk */
.slab-logo { background: #0d0d13; }
/* MAIN CHARACTER is the landscape section: words go WIDE under the looping
   video — title + copy side by side spanning the row, not bunched in a column */
@media (min-width: 901px) {
  .sf-block.sf-has-strip { grid-template-columns: 90px 1fr; }
  .sf-block.sf-has-strip .sf-copy {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) 1.3fr;
    column-gap: clamp(30px, 4vw, 70px);
    align-items: start;
  }
  .sf-block.sf-has-strip .sf-copy h3 { grid-column: 1; }
  .sf-block.sf-has-strip .sf-copy p { grid-column: 2; margin: 0; max-width: none; }
  .sf-block.sf-has-strip .sf-links { grid-column: 1 / -1; margin-top: 26px; }
}

/* ROUND 2026-06-12C: MC home card video + LightVault spotlight tagline */
.chapter-media video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; pointer-events: none; }
.slab-tagline {
  position: absolute; bottom: -94px; left: 50%; transform: translate(-50%, 14px);
  font-size: 13px; font-style: italic; letter-spacing: 0.04em; white-space: nowrap;
  color: rgba(245, 222, 160, 0.88);
  text-shadow: 0 0 22px rgba(201, 168, 76, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 1.1s ease 0.55s, transform 1.1s ease 0.55s;
}
.apps-stage.invite .app-slab[data-pos="0"] .slab-tagline { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) {
  .slab-tagline { bottom: -76px; font-size: 11px; white-space: normal; width: 86vw; text-align: center; }
}

/* FORCED-DARK / INVERT DEFENSE (2026-06-12): declare the page dark so
   Chrome Auto Dark Mode and kin skip it entirely (they were inverting the
   dark LightVault icon to white-with-gold on Marvin desktop); and if the
   OS itself is running inverted colors, counter-invert the icon. */
:root { color-scheme: dark; }
@media (inverted-colors: inverted) {
  .slab-logo { filter: invert(1) hue-rotate(180deg); }
}

/* Fine Art title tag — full-nudity note next to the title (Marvin, 2026-06-12) */
.title-tag {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dim, rgba(201, 168, 76, 0.55));
  margin: 10px 0 2px; line-height: 1.5;
}

/* package card: price + location + BOOK THIS centered (Marvin, 2026-06-12) */
.pkg-price, .pkg-loc { text-align: center; }
.pkg-book { display: block; width: max-content; margin-left: auto; margin-right: auto; }

/* the "can't" twist gets an underline on the Then/Now cover (Marvin, 2026-06-12) */
.u-cant { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* MC landscape words: dropped lower — centered in the area beneath the
   looping video instead of hugging it (Marvin, 2026-06-12) */
@media (min-width: 901px) {
  .sf-block.sf-has-strip .sf-num,
  .sf-block.sf-has-strip .sf-copy { margin-top: clamp(48px, 9vh, 110px); }
}

/* Content Creation chapter: edited cover crossfades to the RAW frame */
.chapter-media .cc-raw {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.6s ease;
}
@media (min-width: 901px) {
  /* the full-image rule gives the box the edit's natural aspect; the raw
     overlay fills the same box */
  .chapter-media .cc-raw { object-fit: contain; }
}

/* MC gallery: one clean centered column, no staggered offsets */
.g-images.g-straight .g-wrap:nth-child(odd),
.g-images.g-straight .g-wrap:nth-child(even) {
  width: min(100%, 880px);
  align-self: center;
}

/* then/now "can't" underline: a quarter inch lower, in the Now. gold */
.u-cant {
  text-underline-offset: 4px; /* back under the word (Marvin reverted the drop, 2026-06-12) */
  text-decoration-color: var(--gold);
}
