/* ============================================================
   MAJOR GIFT FILMS — by Communitas Creative
   Editorial-institutional register: cream paper dominant,
   ink reserved for the hero and the screening room.
   ============================================================ */
:root {
  --ink: #141F1A;
  --ink-2: #18241E;
  --cream: #EDE4D3;
  --cream-deep: #E4D9C4;
  --paper-ink: #2A2E28;          /* body text on cream */
  --paper-dim: #5B5F56;          /* secondary text on cream */
  --onink-dim: #B9B3A6;
  --gold: #C6A15B;
  --gold-deep: #9A7B3F;          /* gold that passes contrast on cream */
  --teal-link: #2E6B5E;          /* interactive accent on cream */
  --line-ink: rgba(20, 31, 26, 0.16);
  --line-cream: rgba(237, 228, 211, 0.16);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--paper-ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--teal-link); text-underline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(22px, 4vw, 44px); }
.wrap--narrow { max-width: 860px; }

/* Fraunces, locked to its serious configuration */
h1, h2, h3, .poem, .method__close, .lunch {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 100;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(34px, 4.6vw, 46px); line-height: 1.1; margin-bottom: 28px; color: var(--ink); }
h2 em, h1 em { font-style: normal; color: var(--gold-deep); }
h2.onink { color: var(--cream); }
h2.onink em { color: var(--gold); }

.kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 30px;
}
.kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.kicker--onink { color: var(--gold); }

.prose { max-width: 660px; color: var(--paper-ink); }
.prose p + p, .prose + .prose { margin-top: 18px; }
.prose strong, strong { color: var(--ink); font-weight: 600; }

/* Buttons: ink-filled on cream, cream-filled on ink. Gold is never a button. */
.btn {
  display: inline-block; font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; padding: 15px 30px; border: 1px solid transparent;
  cursor: pointer; transition: background 150ms, color 150ms, border-color 150ms;
}
.btn--ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--ink:hover { background: #0d1512; }
.btn--cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--cream:hover { background: #fff8ea; }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(237, 228, 211, 0.4); }
.btn--ghost:hover { border-color: var(--cream); }
.btn--nav { background: var(--ink); color: var(--cream); padding: 12px 24px; }
.btn--nav:hover { background: #0d1512; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(22px, 4vw, 44px);
  background: rgba(237, 228, 211, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-ink);
}
.nav__mark { display: flex; flex-direction: column; line-height: 1.15; }
.nav__name { font-family: var(--serif); font-weight: 600; font-variation-settings: 'SOFT' 0, 'WONK' 0; font-size: 20px; color: var(--ink); }
.nav__by { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-dim); margin-top: 3px; }

/* ============================================================
   Hero (ink) — static, no entrance animation, headline at first paint
   ============================================================ */
.hero {
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 90% 60% at 75% 15%, rgba(198, 161, 91, 0.08), transparent 60%),
    var(--ink);
  color: var(--cream);
  padding: clamp(80px, 12vh, 130px) 0 0;
}
.hero__title {
  font-size: clamp(52px, 8.5vw, 104px);
  line-height: 1.03;
  color: var(--cream);
  margin-bottom: 32px;
}
.hero__title .gold { color: var(--gold); }
.hero__para { font-size: 20px; line-height: 1.6; color: var(--onink-dim); max-width: 640px; margin-bottom: 40px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__reassure { font-size: 14px; color: var(--onink-dim); font-style: italic; margin-top: 18px; margin-bottom: clamp(46px, 8vh, 84px); }

/* ============================================================
   Sections on cream
   ============================================================ */
.sec { padding: clamp(72px, 11vh, 110px) 0; border-bottom: 1px solid var(--line-ink); }
.sec--ink {
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    var(--ink);
  border-bottom: none;
}
.sec--last { border-bottom: none; }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.split--who { grid-template-columns: 1.2fr 1fr; align-items: center; }

/* Stats: investment-memo register */
.stats { display: flex; flex-direction: column; gap: 30px; margin-top: 10px; }
.stat { border-left: 2px solid var(--gold); padding-left: 20px; }
.stat__n {
  font-family: var(--serif); font-weight: 600;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
  font-size: clamp(40px, 4.5vw, 54px);
  color: var(--ink); line-height: 1.05;
  font-variant-numeric: lining-nums;
}
.stat__n .fn, .fn { font-family: var(--mono); font-size: 0.35em; color: var(--gold-deep); vertical-align: super; }
.stat__d { font-size: 15px; color: var(--paper-dim); margin-top: 8px; max-width: 300px; }
.sources {
  margin-top: 26px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--paper-dim);
}
.sources sup { color: var(--gold-deep); }

/* Studio poem */
.poem {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.34;
  color: var(--ink);
  max-width: 920px;
  font-weight: 500;
}
.poem .dim { color: var(--paper-dim); }
.poem-second { margin-top: 32px; }

/* Who */
.who__photo img { border-radius: 3px; filter: contrast(1.02); }
.lunch {
  display: inline-block;
  font-size: 20px; font-weight: 500; color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px; margin-top: 28px;
}

/* Method: memo rows with hairline rules, not cards */
.method { margin-top: 48px; border-top: 1px solid var(--line-ink); }
.mrow {
  display: grid; grid-template-columns: 64px 250px 1fr;
  gap: 26px; align-items: start;
  padding: 34px 0; border-bottom: 1px solid var(--line-ink);
}
.mrow__num { font-family: var(--mono); font-size: 13px; color: var(--gold-deep); padding-top: 6px; }
.mrow__t { font-size: 24px; color: var(--ink); font-weight: 600; }
.mrow__b { font-size: 16px; color: var(--paper-ink); max-width: 620px; }
.method__close { font-size: 24px; color: var(--ink); margin-top: 40px; }
.method__close em { font-style: normal; color: var(--gold-deep); }

/* ============================================================
   Screening room (ink)
   ============================================================ */
.films { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.film {
  position: relative; display: block; width: 100%;
  padding: 0; border: 1px solid var(--line-cream); border-radius: 3px;
  background: var(--ink-2); cursor: pointer; overflow: hidden;
  text-align: left;
}
.film img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity 150ms; }
.film:hover img { opacity: 0.88; }
.film:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.film__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 40px 22px 18px;
  background: linear-gradient(to top, rgba(20, 31, 26, 0.92), transparent);
}
.film__t { font-family: var(--serif); font-weight: 600; font-variation-settings: 'SOFT' 0, 'WONK' 0; font-size: 21px; color: var(--cream); }
.film__m { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--onink-dim); white-space: nowrap; }

.band {
  margin-top: 52px; border: 1px solid var(--line-cream); border-radius: 3px;
  padding: 36px 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.band__text { font-family: var(--serif); font-weight: 500; font-variation-settings: 'SOFT' 0, 'WONK' 0; font-size: 24px; color: var(--cream); max-width: 560px; }

/* ============================================================
   Rate card
   ============================================================ */
.promise {
  border-left: 2px solid var(--gold);
  padding-left: 22px; margin: 30px 0 14px;
  color: var(--paper-dim); font-style: italic; max-width: 560px;
}
.rate { margin-top: 42px; border-top: 1px solid var(--line-ink); }
.rrow {
  display: grid; grid-template-columns: 60px 230px 1fr 220px;
  gap: 28px; align-items: start;
  padding: 40px 0; border-bottom: 1px solid var(--line-ink);
}
.rrow--flag { background: linear-gradient(90deg, rgba(198, 161, 91, 0.07), transparent 65%); border-left: 2px solid var(--gold); padding-left: 18px; margin-left: -20px; }
.rrow__num { font-family: var(--mono); font-size: 13px; color: var(--gold-deep); padding-top: 8px; }
.rrow__name h3 { font-size: 30px; color: var(--ink); line-height: 1.1; display: inline; }
.flag {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; background: var(--ink); color: var(--cream);
  border-radius: 3px; padding: 4px 9px; margin-left: 10px; vertical-align: middle;
}
.rrow__body { font-size: 16px; color: var(--paper-ink); max-width: 600px; }
.rrow__price {
  text-align: right; font-family: var(--mono); font-size: 14px;
  color: var(--ink); line-height: 1.9; font-variant-numeric: lining-nums;
}
.rrow__price span { color: var(--paper-dim); font-size: 12.5px; }

/* ============================================================
   Practical
   ============================================================ */
.prac { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 70px; margin-top: 44px; }
.prac__q { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 9px; }
.prac p:not(.prac__q) { font-size: 16px; color: var(--paper-ink); }

/* ============================================================
   Form
   ============================================================ */
.fgroup { border: 0; margin: 34px 0 0; }
.fgroup legend {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--paper-dim); margin-bottom: 14px;
}
.fgroup.error legend { color: #9c3b26; }
.fgroup .opt { text-transform: none; letter-spacing: 0.06em; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--paper-ink);
  border: 1px solid var(--line-ink); border-radius: 999px;
  padding: 12px 20px; cursor: pointer;
  transition: border-color 150ms, background 150ms, color 150ms;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip input:focus-visible + span { outline: 2px solid var(--teal-link); outline-offset: 2px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 34px; margin: 40px 0 8px; }
.field {
  border: 0; border-bottom: 1px solid rgba(20, 31, 26, 0.35);
  background: transparent; padding: 12px 2px;
  font-family: var(--sans); font-size: 17px; color: var(--ink);
  resize: vertical;
}
.field::placeholder { color: var(--paper-dim); }
.field:focus { outline: none; border-bottom-color: var(--ink); }
.field--full { grid-column: 1 / -1; }

.gnote { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--gold-deep); margin: 26px 0 20px; }
.ferror { font-family: var(--mono); font-size: 13px; color: #9c3b26; margin-bottom: 18px; }
.small { font-size: 14px; color: var(--paper-dim); margin-top: 18px; }
.fsuccess {
  margin-top: 40px; border: 1px solid var(--line-ink); border-radius: 3px;
  padding: 36px 38px; background: rgba(20, 31, 26, 0.03);
}
.fsuccess__t { font-family: var(--serif); font-weight: 600; font-variation-settings: 'SOFT' 0, 'WONK' 0; font-size: 24px; color: var(--ink); margin-bottom: 8px; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(10, 16, 13, 0.93); }
.lightbox__stage { position: relative; margin: 0; }
.lightbox__frame { width: min(92vw, 150vh); aspect-ratio: 16 / 9; max-height: 78vh; background: #000; border-radius: 3px; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; border-radius: 3px; }
.lightbox__meta {
  position: absolute; left: 0; top: -2.5rem;
  display: flex; gap: 16px; align-items: baseline;
  font-family: var(--serif); font-weight: 600; font-variation-settings: 'SOFT' 0, 'WONK' 0;
  font-size: 19px; color: var(--cream);
}
.lightbox__m { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--onink-dim); }
.lightbox__close {
  position: absolute; right: 0; top: -2.8rem;
  background: none; border: 1px solid var(--line-cream); border-radius: 999px;
  color: var(--onink-dim); font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 18px; cursor: pointer;
}
.lightbox__close:hover { color: var(--cream); border-color: var(--cream); }
body.lb-open { overflow: hidden; }

/* ============================================================
   Footer (ink)
   ============================================================ */
.footer {
  background: var(--ink); color: var(--onink-dim);
  padding: 44px clamp(22px, 4vw, 44px);
  display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap;
}
.footer .nav__name { color: var(--cream); }
.footer .nav__by { color: var(--onink-dim); }
.footer__cols { display: flex; gap: 28px; align-items: baseline; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; }
.footer__cols a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--line-cream); }
.footer__cols a:hover { border-color: var(--cream); }
.footer__legal { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; width: 100%; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .split, .split--who, .films, .prac, .fields { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 48px 1fr; }
  .mrow__b { grid-column: 2; }
  .rrow { grid-template-columns: 48px 1fr; gap: 14px; }
  .rrow__body { grid-column: 2; }
  .rrow__price { grid-column: 2; text-align: left; margin-top: 6px; }
  .rrow--flag { margin-left: 0; padding-left: 16px; }
  .band { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Print: the board-pack path. White ground, ink text,
   films as posters, sources visible, no chrome.
   ============================================================ */
@media print {
  :root { --cream: #ffffff; }
  * { background: #fff !important; color: #111 !important; box-shadow: none !important; }
  body { font-size: 11pt; }
  .nav, .hero__ctas, .hero__reassure, .btn, .band a, .lightbox, form#askForm .chips input, .ferror { display: none !important; }
  .hero, .sec--ink, .footer { background: #fff !important; }
  .hero__title, h2, h3, .film__t, .band__text { color: #111 !important; }
  .hero__title .gold, h2 em, .stat__n { color: #7a5c22 !important; }
  .hero { padding: 20px 0 0; }
  .sec { padding: 26px 0; border-bottom: 1px solid #ddd; }
  .stats, .rate, .rrow, .mrow, .film { break-inside: avoid; }
  .film { border: 1px solid #ccc; }
  .film__meta { position: static; background: none !important; padding: 6px 0 0; }
  .film__m::after { content: " — watch at majorgiftfilms.com"; text-transform: none; letter-spacing: 0; }
  .sources { font-size: 9pt; }
  form#askForm { display: none; }
  #ask .wrap::after {
    content: "Enquiries: hello@communitascreative.com — we reply within one working day.";
    display: block; font-family: var(--mono); font-size: 10pt; margin-top: 10px;
  }
  .footer { padding: 16px 0; }
}


/* ============================================================
   MOTION LAYER — scroll choreography. Every animation serves
   the argument; prefers-reduced-motion gets the still page.
   ============================================================ */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); }

.rv { opacity: 0; transform: translateY(26px); transition: opacity 700ms cubic-bezier(0.22,1,0.36,1), transform 700ms cubic-bezier(0.22,1,0.36,1); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.hero__title .rv { display: inline-block; }

.nav__links { display: flex; gap: 26px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.nav__links a { color: var(--paper-dim); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 3px; transition: color 150ms, border-color 150ms; }
.nav__links a:hover { color: var(--ink); border-color: var(--gold); }

.hero__cue { display: flex; justify-content: center; padding: 0 0 26px; }
.hero__cue span { display: block; width: 1px; height: 44px; background: linear-gradient(to bottom, transparent, var(--gold)); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(8px); opacity: 1; } }

/* Data wall */
.datawall { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); margin: 46px 0 10px; }
.dcell { border-top: 2px solid var(--gold); padding-top: 18px; }
.dcell__n { font-family: var(--serif); font-weight: 600; font-variation-settings: 'SOFT' 0, 'WONK' 0; font-size: clamp(34px, 3.6vw, 50px); color: var(--ink); line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.dcell__d { font-size: 14.5px; color: var(--paper-dim); margin-top: 8px; }

/* Chart */
.chart { margin: 54px auto 46px; max-width: 760px; }
.chart svg { width: 100%; height: auto; }
.chart .ax { stroke: var(--line-ink); stroke-width: 1; }
.chart .ln { stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: var(--len, 900); stroke-dashoffset: var(--len, 900); }
.chart.drawn .ln { transition: stroke-dashoffset 1600ms cubic-bezier(0.4,0,0.2,1); stroke-dashoffset: 0; }
.chart.drawn .ln--up { transition-delay: 350ms; }
.ln--down { stroke: var(--paper-dim); }
.ln--up { stroke: var(--gold-deep); }
.chart .lbl { font-family: var(--mono); font-size: 12px; fill: var(--paper-dim); letter-spacing: 0.08em; }
.chart .lbl--gold { fill: var(--gold-deep); }
.chart .tick { font-family: var(--mono); font-size: 11px; fill: var(--paper-dim); }
.chart .sources, .chart figcaption { text-align: center; }

.prose--center { max-width: 680px; margin: 0 auto; text-align: center; }
.prose--center p { font-family: var(--serif); font-weight: 500; font-variation-settings: 'SOFT' 0, 'WONK' 0; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.45; color: var(--ink); }

/* Pattern bars */
.pattern { display: grid; grid-template-columns: 300px 1fr; gap: clamp(36px, 5vw, 70px); align-items: end; margin-top: 56px; }
.pattern__bars { display: flex; gap: 26px; align-items: flex-end; height: 190px; }
.pbar { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.pbar__fill { width: 100%; height: 0; background: var(--ink); border-radius: 2px 2px 0 0; transition: height 900ms cubic-bezier(0.22,1,0.36,1); }
.pattern.in .pbar:nth-child(2) .pbar__fill { transition-delay: 150ms; }
.pattern.in .pbar:nth-child(3) .pbar__fill { transition-delay: 300ms; }
.pbar__v { position: absolute; top: -26px; font-family: var(--mono); font-size: 12.5px; color: var(--gold-deep); opacity: 0; transition: opacity 400ms 700ms; }
.pattern.in .pbar__v { opacity: 1; }
.pbar__y { font-family: var(--mono); font-size: 11px; color: var(--paper-dim); margin-top: 8px; }
.pattern__copy p:first-child { font-size: 17px; color: var(--paper-ink); max-width: 480px; }

/* Two languages toggle */
.onink-dim { color: var(--onink-dim); }
.onink-dim strong, .oncream-strong { color: var(--cream); }
.lang { margin: 52px 0; border: 1px solid var(--line-cream); border-radius: 4px; overflow: hidden; }
.lang__tabs { display: flex; border-bottom: 1px solid var(--line-cream); }
.lang__tab { flex: 1; background: transparent; border: 0; cursor: pointer; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--onink-dim); padding: 18px; transition: background 200ms, color 200ms; }
.lang__tab.is-on { background: var(--cream); color: var(--ink); }
.lang__tab:not(.is-on):hover { color: var(--cream); }
.lang__panel { padding: clamp(28px, 4vw, 46px); min-height: 250px; }
.lang__side { animation: langin 420ms cubic-bezier(0.22,1,0.36,1); }
@keyframes langin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lang__big { font-family: var(--serif); font-weight: 600; font-variation-settings: 'SOFT' 0, 'WONK' 0; font-size: clamp(24px, 3vw, 34px); color: var(--cream); margin-bottom: 20px; }
.lang__list { list-style: none; }
.lang__list li { color: var(--onink-dim); font-size: 16.5px; padding: 10px 0 10px 26px; position: relative; border-top: 1px solid var(--line-cream); }
.lang__list li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* Method stepper — a full-viewport pinned scene, composed on purpose */
.stepper { position: relative; margin-top: 30px; }
.stepper__sticky {
  position: sticky; top: 0; z-index: 2;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--cream);
  overflow: hidden;
  border-top: 1px solid var(--line-ink);
  border-bottom: 1px solid var(--line-ink);
}
.stepghost {
  position: absolute; right: clamp(10px, 4vw, 60px); top: 50%;
  transform: translateY(-50%);
  pointer-events: none; line-height: 1;
}
.stepghost span {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-weight: 600;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
  font-size: clamp(220px, 34vw, 460px);
  color: rgba(20, 31, 26, 0.055);
  opacity: 0; transition: opacity 600ms ease;
  font-variant-numeric: lining-nums tabular-nums;
}
.stepghost span.is-on { opacity: 1; }
.stepper__grid { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(22px, 4vw, 44px); display: grid; grid-template-columns: 320px 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.stepper__rail { position: relative; display: flex; flex-direction: column; gap: 6px; }
.step { display: flex; gap: 16px; align-items: baseline; background: none; border: 0; cursor: pointer; text-align: left; padding: 14px 12px; border-radius: 4px; transition: background 200ms; }
.step:hover { background: rgba(20,31,26,0.05); }
.step__num { font-family: var(--mono); font-size: 12px; color: var(--paper-dim); transition: color 200ms; }
.step__t { font-family: var(--serif); font-weight: 600; font-variation-settings: 'SOFT' 0, 'WONK' 0; font-size: 20px; color: var(--paper-dim); transition: color 200ms; }
.step.is-on .step__num { color: var(--gold-deep); }
.step.is-on .step__t { color: var(--ink); }
.stepper__line { position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--line-ink); }
.stepper__line span { display: block; width: 100%; height: 0%; background: var(--gold); transition: height 300ms ease-out; }
.stepper__panel { position: relative; min-height: 260px; max-width: 620px; }
.steppane { position: absolute; inset: 0; opacity: 0; transform: translateY(16px); transition: opacity 450ms cubic-bezier(0.22,1,0.36,1), transform 450ms cubic-bezier(0.22,1,0.36,1); pointer-events: none; }
.steppane.is-on { opacity: 1; transform: none; pointer-events: auto; }
.steppane h3 { font-size: clamp(30px, 3.6vw, 42px); color: var(--ink); margin-bottom: 18px; }
.steppane p { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--paper-ink); max-width: 560px; }
.steppane .steppane__k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; display: block; }
.stepper__space { height: 85vh; }

/* Gift math */
.math { margin-top: 44px; border: 1px solid var(--line-ink); border-radius: 4px; padding: clamp(26px, 4vw, 44px); background: rgba(20,31,26,0.025); }
.math__row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.math__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-dim); }
.math__gift { font-family: var(--serif); font-weight: 600; font-variation-settings: 'SOFT' 0, 'WONK' 0; font-size: clamp(34px, 4vw, 48px); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
#giftRange { width: 100%; margin: 18px 0 6px; accent-color: #9A7B3F; height: 34px; cursor: pointer; }
.math__marks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--paper-dim); }
.math__out { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 36px); margin-top: 34px; }
.math__cell { border-top: 2px solid var(--line-ink); padding-top: 14px; }
.math__n { display: block; font-family: var(--serif); font-weight: 600; font-variation-settings: 'SOFT' 0, 'WONK' 0; font-size: clamp(26px, 3vw, 36px); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.math__n--gold { color: var(--gold-deep); }
.math__d { display: block; font-size: 14px; color: var(--paper-dim); margin-top: 6px; }
.math__note { margin-top: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--paper-dim); }

/* Flag row draw-in */
.rrow--flag { position: relative; border-left: 0; }
.rrow--flag::before { content: ''; position: absolute; left: -20px; top: 0; width: 2px; height: 0; background: var(--gold); transition: height 900ms cubic-bezier(0.22,1,0.36,1) 200ms; }
.rrow--flag.in::before { height: 100%; }

/* Films entrance already via .rv; add hover lift */
.film { transition: transform 350ms cubic-bezier(0.22,1,0.36,1), box-shadow 350ms; }
.film:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,0,0,0.35); }

@media (max-width: 900px) {
  .datawall { grid-template-columns: 1fr 1fr; }
  .pattern { grid-template-columns: 1fr; }
  .stepper__sticky { position: static; min-height: 0; display: block; padding: 10px 0 30px; border: 0; }
  .stepghost { display: none; }
  .stepper__grid { grid-template-columns: 1fr; }
  .stepper__rail { display: none; }
  .stepper__space { display: none; }
  .stepper__panel { min-height: 0; }
  .steppane { position: static; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 34px; }
  .math__out { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .chart .ln { stroke-dashoffset: 0 !important; transition: none !important; }
  .pbar__fill { transition: none !important; }
  .pattern .pbar__fill { height: var(--static-h, 100%) !important; }
  .pbar__v { opacity: 1 !important; }
  .hero__cue span { animation: none; }
  .steppane { transition: none; }
  .progress { display: none; }
}

@media print {
  .progress, .hero__cue, .nav__links { display: none !important; }
  .stepper__sticky { position: static; }
  .stepper__space { display: none; }
  .steppane { position: static; opacity: 1 !important; transform: none !important; margin-bottom: 14px; }
  .lang__side[hidden] { display: block !important; }
  .lang__tabs { display: none; }
  .rv { opacity: 1 !important; transform: none !important; }
  .pbar__fill { height: 60% !important; }
  .math input, .math__marks { display: none !important; }
}
