/* ============ Tokens ============ */
:root {
  --night: #1a110b;
  --night-2: #24170e;
  --night-3: #2f1e12;
  --moon: #f4ecd9;
  --cream: #f5eee2;
  --paper: #ede3d2;
  --ink: #1f1a16;
  --ink-2: #5d5249;
  --ink-3: #8b7e72;
  --amber: #f0a24a;
  --amber-2: #ffbf6e;
  --cookie: #c98a45;
  --choc: #3b2417;
  --sage: #8ea089;
  --plaid: #8c2e36;
  --studio-a: #b8bbbf;
  --studio-b: #d3d5d7;
  --line-dark: rgba(244, 236, 217, 0.14);
  --line-light: rgba(31, 26, 22, 0.12);

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 5vw, 72px);
  --radius: 22px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--moon);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: -0.02em; font-optical-sizing: auto; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber-2);
  margin-bottom: 22px;
}
.eyebrow.ink { color: var(--plaid); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(240,162,74,0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(240,162,74,0); } }

.section-lede { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); max-width: 520px; }

/* split text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; will-change: transform; }

/* ============ Buttons ============ */
.btn {
  --bg: var(--moon); --fg: var(--night);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  background: var(--bg); color: var(--fg);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.25s;
  isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.35s var(--ease-out); }
.btn-primary { --bg: var(--amber); --fg: #24150a; box-shadow: 0 10px 30px -10px rgba(240,162,74,0.6), inset 0 -2px 0 rgba(0,0,0,0.12); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(240,162,74,0.7), inset 0 -2px 0 rgba(0,0,0,0.12); }
.btn-primary:hover svg { transform: translateX(2px); }
.btn-ghost { --bg: transparent; --fg: var(--moon); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(244,236,217,0.5); transform: translateY(-2px); }

/* ============ Curtain / grain ============ */
.curtain {
  position: fixed; inset: 0; z-index: 100; background: var(--night);
  display: grid; place-items: center; pointer-events: none;
  transition: opacity 0.9s var(--ease-out) 0.15s, visibility 0s linear 1.1s;
}
.curtain-mark { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.01em; opacity: 0; animation: fadeUp 0.7s var(--ease-out) 0.1s forwards; }
.curtain-mark i { font-weight: 300; color: var(--amber-2); }
body:not(.is-loading) .curtain { opacity: 0; visibility: hidden; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  transition: background 0.4s, padding 0.4s var(--ease-out), color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease-out);
}
.nav.is-scrolled { background: rgba(26,17,11,0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line-dark); }
.nav.is-light { background: rgba(245,238,226,0.82); color: var(--ink); box-shadow: 0 1px 0 var(--line-light); }
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; transition: transform 0.6s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-25deg); }
.brand-word { font-family: var(--f-display); font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-word i { font-weight: 300; color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); font-size: 14px; font-weight: 600; }
.nav-links a:not(.nav-cta) { position: relative; opacity: 0.85; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
.nav-links a:not(.nav-cta):hover { opacity: 1; }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; transition: background 0.3s, color 0.3s; }
.nav-cta:hover { background: var(--amber); color: #24150a; box-shadow: inset 0 0 0 1.5px var(--amber); }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background:
    radial-gradient(70% 60% at 76% 22%, rgba(240,162,74,0.20) 0%, rgba(240,162,74,0) 60%),
    radial-gradient(60% 50% at 8% 100%, rgba(140,46,54,0.22) 0%, rgba(140,46,54,0) 70%),
    linear-gradient(180deg, #160e09 0%, var(--night-2) 65%, #2c1b10 100%);
  display: flex; align-items: center;
  padding: 110px 0 90px;
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.stars { position: absolute; inset: 0; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff8e8; opacity: 0.6; animation: twinkle var(--d, 4s) ease-in-out var(--delay, 0s) infinite; }
@keyframes twinkle { 50% { opacity: 0.08; transform: scale(0.6); } }
.moon {
  position: absolute; top: 12%; right: 9%; width: clamp(90px, 11vw, 160px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffaf0 0%, #f1e6cc 45%, #d8c9a8 100%);
  box-shadow: 0 0 60px 10px rgba(255,214,150,0.28), 0 0 200px 70px rgba(240,162,74,0.16);
}
.moon span { position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 60%, rgba(160,140,110,0.35) 0 9%, transparent 10%),
    radial-gradient(circle at 62% 30%, rgba(160,140,110,0.28) 0 7%, transparent 8%),
    radial-gradient(circle at 66% 68%, rgba(160,140,110,0.22) 0 12%, transparent 13%);
}
.window-glow { position: absolute; left: -10%; bottom: -30%; width: 70%; height: 70%; background: radial-gradient(closest-side, rgba(240,162,74,0.16), transparent); filter: blur(20px); }

.cookie-canvas { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease-out) 0.5s; }
.cookie-canvas.is-ready { opacity: 1; }
.cookie-canvas canvas { width: 100% !important; height: 100% !important; display: block; }

.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(24px, 4vw, 60px);
}
.hero-title { font-size: clamp(46px, 6.4vw, 104px); font-weight: 400; line-height: 0.96; letter-spacing: -0.035em; margin-bottom: 28px; }
.hero-title em { color: var(--amber-2); }
.hero-lede { font-size: clamp(16px, 1.45vw, 19px); color: rgba(244,236,217,0.72); max-width: 480px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stage { position: relative; height: min(72vh, 680px); perspective: 1600px; display: flex; align-items: center; justify-content: center; }
.stage-rig { position: relative; height: 100%; aspect-ratio: 9 / 16; transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(5deg); will-change: transform; }
.reel, .still { position: absolute; inset: 0; margin: 0; border-radius: 26px; overflow: hidden; }
.reel { transform: translateZ(40px); background: #000; box-shadow: 0 50px 100px -30px rgba(0,0,0,0.75), 0 0 0 1px rgba(244,236,217,0.12); }
.reel-video { width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 22%, transparent 62%, rgba(0,0,0,0.7) 100%); pointer-events: none; }
.reel-hud { position: absolute; z-index: 2; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: rgba(255,255,255,0.85); font-variant-numeric: tabular-nums; }
.rec { display: inline-flex; align-items: center; gap: 7px; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a4a; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.reel-title { position: absolute; z-index: 2; left: 20px; bottom: 20px; right: 20px; display: flex; flex-direction: column; }
.reel-title span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,0.75); }
.reel-title strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; font-style: italic; }
.still { filter: saturate(0.85) brightness(0.8); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.still img { width: 100%; height: 100%; object-fit: cover; }
.still-a { transform: translate3d(-38%, 6%, -120px) rotateZ(-7deg) scale(0.82); }
.still-b { transform: translate3d(36%, -5%, -200px) rotateZ(6deg) scale(0.78); }
.stage-shadow { position: absolute; bottom: -4%; left: 50%; width: 60%; height: 40px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,0,0,0.55), transparent); filter: blur(8px); }

.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: rgba(244,236,217,0.6); }
.scroll-cue i { width: 1.5px; height: 42px; background: linear-gradient(var(--moon), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--amber); animation: drip 2s var(--ease-out) infinite; }
@keyframes drip { to { top: 110%; } }

/* ============ Story ============ */
.story { position: relative; background: var(--night); transition: background-color 0.9s ease; overflow: hidden; }
.story.is-lit { background: #33200f; }
.story-lamp { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s ease;
  background: radial-gradient(70% 60% at 50% -5%, rgba(255,196,120,0.38), transparent 70%), radial-gradient(40% 40% at 85% 100%, rgba(240,162,74,0.16), transparent 70%); }
.story.is-lit .story-lamp { opacity: 1; }
.story-pin { position: relative; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story-track { display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); padding: 0 var(--gutter); will-change: transform; perspective: 1400px; }
.story-intro { flex: 0 0 auto; width: min(420px, 80vw); padding-right: 2vw; }
.story-intro h2 { font-size: clamp(44px, 6vw, 88px); margin-bottom: 22px; letter-spacing: -0.03em; }
.story-intro h2 em { color: var(--amber-2); }
.story-intro p:last-of-type { color: rgba(244,236,217,0.7); max-width: 340px; }
.swipe-hint { display: none; margin-top: 26px; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber-2); }
.swipe-hint i { display: inline-block; margin-left: 8px; animation: nudge 1.6s var(--ease-out) infinite; font-style: normal; }
@keyframes nudge { 50% { transform: translateX(6px); } }

.beat { flex: 0 0 auto; width: calc(min(64vh, 620px) * 9 / 16); transform-style: preserve-3d; will-change: transform; }
.beat-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(244,236,217,0.1); }
.beat-frame img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.beat-meta { padding: 18px 4px 0; }
.beat-meta .tc { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--amber-2); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.beat-meta h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 6px; }
.beat-meta p { color: rgba(244,236,217,0.66); font-size: 14.5px; }
.click { display: inline-block; }
.story.is-lit .click { animation: clickPop 0.5s var(--ease-out); color: var(--amber-2); }
@keyframes clickPop { 0% { transform: scale(0.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

.story-outro { flex: 0 0 auto; width: min(360px, 80vw); padding: 0 4vw 0 1vw; }
.story-outro p { font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; margin-bottom: 26px; letter-spacing: -0.02em; }

.story-hud { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(18px, 4vh, 34px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 20px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: rgba(244,236,217,0.6); }
.hud-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hud-tc { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-tc b { color: var(--moon); font-weight: 800; }
.hud-bar { grid-column: 1 / -1; height: 2px; background: var(--line-dark); border-radius: 2px; overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); }

/* ============ Family ============ */
.family { position: relative; background: var(--cream); color: var(--ink); padding: clamp(90px, 12vw, 160px) 0 clamp(80px, 10vw, 130px); border-radius: 36px 36px 0 0; margin-top: -36px; z-index: 2; }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); align-items: end; gap: 20px 40px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section-head h2 { font-size: clamp(44px, 7vw, 104px); letter-spacing: -0.035em; }
.section-head h2 em { color: var(--plaid); }

.cast { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); perspective: 1200px; }
.card { position: relative; transform-style: preserve-3d; transition: transform 0.6s var(--ease-out); will-change: transform; }
.card-stage {
  position: relative; aspect-ratio: 3 / 4.6; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(90% 60% at 50% 100%, rgba(0,0,0,0.08), transparent 70%), linear-gradient(180deg, var(--studio-a) 0%, var(--studio-b) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 24px 50px -28px rgba(60,40,20,0.45);
  transition: box-shadow 0.5s var(--ease-out);
}
.card:hover .card-stage { box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 40px 70px -30px rgba(60,40,20,0.55); }
.card-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 40% at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,0.35), transparent 70%); opacity: 0; transition: opacity 0.4s; }
.card:hover .card-stage::after { opacity: 1; }
.card-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%;
  transform-origin: 50% 100%;
  transition: transform 0.8s var(--ease-out);
  user-select: none; -webkit-user-drag: none;
}
.card:hover .card-stage:not(.turn) .card-img { transform: scale(1.045); }
.turn { cursor: grab; touch-action: pan-y; }
.turn.is-dragging { cursor: grabbing; }
.turn .card-img { opacity: 0; visibility: hidden; transition: none; }
.turn .card-img.is-on { opacity: 1; visibility: visible; }
.turn .card-img.is-flip { transform: scaleX(-1); }
.card-no { position: absolute; top: 14px; left: 16px; font-family: var(--f-display); font-size: 14px; color: rgba(31,26,22,0.55); font-variant-numeric: tabular-nums; }
.turn-hint { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px; border-radius: 999px; background: rgba(255,255,255,0.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 11px; font-weight: 700; color: var(--ink); transition: opacity 0.4s; }
.turn-hint svg { width: 14px; height: 14px; }
.turn.has-turned .turn-hint { opacity: 0; }
.card-body { padding: 18px 6px 0; }
.role { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--plaid); margin-bottom: 6px; }
.card-body h3 { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 8px; }
.card-body p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

/* ============ Craft ============ */
.craft { position: relative; background: var(--paper); color: var(--ink); padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.craft-reel { position: relative; height: clamp(280px, 34vw, 440px); margin-bottom: clamp(50px, 7vw, 90px); perspective: 1200px; }
.reel-row { position: absolute; left: 0; display: flex; gap: 14px; width: max-content; transform-style: preserve-3d; will-change: transform; }
.reel-row:first-child { top: 0; }
.reel-row:last-child { top: 52%; }
.reel-row img { height: clamp(120px, 15vw, 200px); width: auto; border-radius: 14px; box-shadow: 0 18px 30px -18px rgba(60,40,20,0.5); }
.reel-row:first-child img { background: linear-gradient(180deg, var(--studio-a), var(--studio-b)); }
.craft-reel::before, .craft-reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none; }
.craft-reel::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.craft-reel::after { right: 0; background: linear-gradient(-90deg, var(--paper), transparent); }
.craft-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.craft-copy h2 { font-size: clamp(40px, 5.4vw, 80px); letter-spacing: -0.03em; margin-bottom: 24px; }
.craft-copy h2 em { color: var(--plaid); }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line-light); }
.steps li > span { font-family: var(--f-display); font-size: 15px; color: var(--ink-3); padding-top: 6px; }
.steps h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* ============ Follow ============ */
.follow { background: var(--amber); color: #24150a; padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.follow-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.follow h2 { font-size: clamp(42px, 7vw, 108px); letter-spacing: -0.035em; margin-bottom: 18px; }
.follow p { font-size: 18px; margin-bottom: 40px; opacity: 0.8; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 18px; border-radius: 999px; background: #24150a; color: var(--cream); font-weight: 700; font-size: 15px; transition: transform 0.4s var(--ease-out), background 0.3s; }
.social svg { width: 20px; height: 20px; }
.social:hover { transform: translateY(-4px) rotate(-1.5deg); background: #3b2417; }

/* ============ Contact ============ */
.contact { background: var(--cream); color: var(--ink); padding: clamp(90px, 11vw, 150px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-copy h2 { font-size: clamp(40px, 5.2vw, 76px); letter-spacing: -0.03em; margin-bottom: 22px; }
.contact-copy h2 em { color: var(--plaid); }
.contact-photo { margin: 40px 0 0; width: min(100%, 380px); aspect-ratio: 768 / 760; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--studio-a), var(--studio-b)); transform: rotate(-2deg); box-shadow: 0 30px 60px -30px rgba(60,40,20,0.5); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.form { background: #fffaf2; border-radius: 28px; padding: clamp(24px, 3.6vw, 44px); box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 40px 80px -50px rgba(60,40,20,0.5), 0 0 0 1px var(--line-light); display: flex; flex-direction: column; gap: 22px; }
.field > label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 9px; letter-spacing: 0.01em; }
.field input[type=text], .field input[type=email], .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--line-light); border-radius: 0; padding: 10px 0 12px; resize: vertical;
  transition: border-color 0.3s;
}
.field textarea { min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #b3a698; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--plaid); }
.field.has-error input, .field.has-error textarea { border-color: #c2402f; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line-light); cursor: pointer; transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.chip span:hover { box-shadow: inset 0 0 0 1.5px rgba(31,26,22,0.35); }
.chip input:checked + span { background: var(--ink); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.btn-send { align-self: flex-start; }
.form-note { font-size: 13px; color: var(--ink-3); }
.form-note.is-ok { color: #3e6b45; }
.form-note.is-err { color: #c2402f; }

/* ============ Lightbox ============ */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(16,10,6,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.45s var(--ease-out); }
.lb-frame { position: relative; height: min(88vh, 860px); max-width: 100%; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 60px 120px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(244,236,217,0.12); opacity: 0; transform: translateY(40px) scale(0.94); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
.lb-frame video { width: 100%; height: 100%; object-fit: cover; }
.lb-frame video::cue { font-family: var(--f-body); font-weight: 700; background: rgba(0,0,0,0.55); color: #fff; }
.lb-close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--moon); color: var(--ink); cursor: pointer; opacity: 0; transition: opacity 0.4s, transform 0.3s var(--ease-out); }
.lb-close:hover { transform: rotate(90deg); }
.lb-close svg { width: 20px; height: 20px; }
.lightbox.is-open .lb-backdrop, .lightbox.is-open .lb-close { opacity: 1; }
.lightbox.is-open .lb-frame { opacity: 1; transform: none; }
@media (max-width: 520px) { .lightbox { padding: 0; } .lb-frame { height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; } .lb-close { top: 14px; right: 14px; } }

/* ============ Footer ============ */
.footer { background: var(--cream); color: var(--ink); padding: 0 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; padding-top: 30px; background: linear-gradient(var(--line-light), var(--line-light)) 50% 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.footer nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
.footer .fine { font-size: 13px; color: var(--ink-3); width: 100%; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding-top: 100px; padding-bottom: 80px; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-stage { height: min(62vh, 540px); margin-top: 10px; }
  .stage-rig { transform: rotateY(-8deg) rotateX(4deg); }
  .still-a { transform: translate3d(-30%, 6%, -120px) rotateZ(-7deg) scale(0.82); }
  .still-b { transform: translate3d(28%, -5%, -200px) rotateZ(6deg) scale(0.78); }
  .moon { top: 9%; right: 6%; }
  .scroll-cue { display: none; }

  .story-pin { height: auto; padding: 90px 0 110px; }
  .story-track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 10px; scroll-padding: 0 var(--gutter); }
  .story-track::-webkit-scrollbar { display: none; }
  .story-intro, .beat, .story-outro { scroll-snap-align: start; }
  .story-intro { width: min(300px, 74vw); }
  .swipe-hint { display: block; }
  .beat { width: min(68vw, 300px); }
  .story-hud { bottom: 40px; }

  .section-head { grid-template-columns: 1fr; }
  .craft-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cast { gap: 12px; row-gap: 32px; }
  .card-body { padding-top: 14px; }
  .card-body h3 { font-size: 26px; }
  .card-body p { font-size: 13.5px; }
  .turn-hint { top: 8px; right: 8px; font-size: 10px; padding: 5px 8px 5px 6px; }
  .card-no { top: 10px; left: 12px; }
}
@media (max-width: 420px) {
  .hero-title { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .grain { display: none; }
}
