/* ============================================================================
   styles.css — the studio site. Tokens at :root drive everything below.
   No framework. Fraunces for display, the system stack for everything
   functional. The 3D stage is fixed behind the hero and the acts.

   Theme: :root is Black Tie (true black, white, one gold), the only palette.
   Accents come from config.js (they shift per act); everything else is here.
   Colours with alpha go through --ink-rgb / --paper-rgb so each colour is
   stated once.
   ========================================================================== */

:root {
  --paper: #131210;
  --paper-2: #1A1916;
  --paper-3: #22201C;
  --bezel: #141414;
  --foot: #0D0C0B;
  --ink: #F4F1EA;
  --ink-2: #C4C4C4;
  --mute: #A8A8A8;
  --ink-rgb: 244, 241, 234;
  --paper-rgb: 19, 18, 16;
  --line: rgba(var(--ink-rgb), .12);
  --line-strong: rgba(var(--ink-rgb), .3);
  --accent: #D9B25F;
  --accent-ink: #E9CB86;
  --on-accent: #000000;
  --night: #0D0C0B;
  --night-line: rgba(var(--ink-rgb), .14);
  --night-mute: rgba(var(--ink-rgb), .64);
  --ok: #E0BE6E;

  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --label: var(--body);   /* small letter-spaced labels: the body sans, not a code font */
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Roboto Mono", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --rhythm: clamp(72px, 10vw, 150px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
/* app.js fills every section synchronously, then lifts this: the page never paints half-rendered (CLS) */
.pending main, .pending footer { visibility: hidden; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; font-variation-settings: "opsz" 144; letter-spacing: -.018em; line-height: 1.02; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ─────────────────────────────────────────────────────────────── buttons */
.btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: var(--h); padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: var(--accent-ink); color: var(--on-accent); }
.btn-ghost { border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn-ico { width: 18px; height: 18px; }
.btn-ico svg { width: 100%; height: 100%; fill: currentColor; }

/* ──────────────────────────────────────────────────────────────── brand */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-height: 44px; }
.brand-name { font-family: var(--display); font-size: 25px; letter-spacing: -.01em; font-variation-settings: "opsz" 48; }
.brand-mark { width: 26px; height: 26px; position: relative; display: block; border-radius: 27%; background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.brand-mark i { position: absolute; background: var(--accent); border-radius: 99px; width: 10%; }
.brand-mark i:nth-child(1) { left: 30%; top: 22%; height: 56%; }
.brand-mark i:nth-child(2) { left: 35%; top: 45%; width: 42%; height: 10%; transform-origin: 0 50%; transform: rotate(-45deg); }
.brand-mark i:nth-child(3) { left: 35%; top: 45%; width: 42%; height: 10%; transform-origin: 0 50%; transform: rotate(45deg); }
.brand-k { color: var(--accent); }

/* ───────────────────────────────────────────────────────────────── boot */
.boot { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 24px; background: var(--paper); transition: opacity .7s var(--ease), visibility .7s; }
.boot.gone { opacity: 0; visibility: hidden; }
.boot-mark { width: 54px; height: 54px; animation: bootPulse 1.6s var(--ease) infinite alternate; }
@keyframes bootPulse { to { transform: scale(1.08); } }
.boot-bar { width: 168px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.boot-bar i { display: block; height: 100%; width: 30%; background: var(--accent); animation: bootRun 1.1s ease-in-out infinite; }
@keyframes bootRun { 0% { transform: translateX(-110%); } 100% { transform: translateX(400%); } }
.boot-txt { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }

/* ─────────────────────────────────────────────────────────── ambience */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grainShift 6s steps(6) infinite; }
@keyframes grainShift { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.cursor-glow { position: fixed; z-index: 1; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent) 0%, color-mix(in srgb, var(--accent) 7%, transparent) 38%, transparent 70%); transition: opacity .5s; will-change: transform; }
.cursor-glow.on { opacity: 1; }
.rail { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.rail i { display: block; height: 100%; width: 0; background: var(--accent); transition: background .6s; }

/* ────────────────────────────────────────────────────────────────── nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; padding-inline: var(--gutter); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.stuck { background: color-mix(in srgb, var(--paper) 72%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.nav-links { display: flex; gap: 26px; justify-content: center; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 12px 2px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { color: var(--accent-ink); }
.nav-cta { display: flex; gap: 10px; }
.nav-burger { display: none; width: 46px; height: 46px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-burger span { width: 18px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.sheet { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 22px; box-shadow: 0 24px 40px -20px #000; }
.sheet nav { display: grid; }
.sheet nav a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 19px; font-family: var(--display); }
.sheet-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
@media (max-width: 900px) { .nav { grid-template-columns: auto 1fr auto; gap: 12px; } .nav-links, .nav-cta { display: none; } .nav-burger { display: inline-flex; justify-self: end; } }

/* ───────────────────────────────────────────────────────────────── stage */
.stage { position: fixed; inset: 0; z-index: 0; opacity: 0; transition: opacity 1.1s var(--ease); will-change: opacity; transform: translateZ(0); contain: strict; }
.stage.on { opacity: 1; }
.stage.dim { opacity: 0; }
#gl { display: block; width: 100%; height: 100%; }
.stage-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 85% at 50% 42%, transparent 40%, rgba(var(--paper-rgb), .5) 78%, var(--paper) 100%), linear-gradient(to bottom, rgba(var(--paper-rgb), .7) 0%, transparent 20%, transparent 74%, var(--paper) 100%); }
main { position: relative; z-index: 1; }

/* ────────────────────────────────────────────────────────────────── hero */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--nav-h)); min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + clamp(28px, 5vw, 72px)) var(--gutter) clamp(72px, 9vw, 120px); pointer-events: none; }
/* the film: a sample's own hero, poster first; it covers the 3D stage, which takes over in the acts */
.hero-film { position: absolute; inset: 0; z-index: -1; background: var(--paper); -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.hero-film picture { display: contents; }
.hero-film img, .hero-film video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-film video { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-film video.on { opacity: 1; }
.hero-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--paper-rgb), .94) 0%, rgba(var(--paper-rgb), .84) 42%, rgba(var(--paper-rgb), .2) 76%, rgba(var(--paper-rgb), .35) 100%), linear-gradient(to bottom, rgba(var(--paper-rgb), .8) 0%, transparent 24%, transparent 60%, var(--paper) 100%); }
.hero-credit { position: absolute; right: var(--gutter); bottom: 22px; min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; color: var(--ink-2); text-decoration: none; pointer-events: auto; }
.hero-credit:hover { color: var(--accent-ink); }
@media (max-width: 700px) { .hero-credit { display: none; } .hero-film::after { background: linear-gradient(to bottom, rgba(var(--paper-rgb), .72) 0%, rgba(var(--paper-rgb), .12) 18%, rgba(var(--paper-rgb), .7) 38%, rgba(var(--paper-rgb), .94) 60%, var(--paper) 100%); } }
.hero-inner { width: min(var(--wrap), 100%); margin-inline: auto; max-width: 100%; pointer-events: auto; }
@media (min-width: 1000px) { .hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } .hero-inner > * { grid-column: 1; } }
.eyebrow, .kicker { font-family: var(--label); font-weight: 600; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before, .kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); transition: background .6s; }
.hero-title { margin-top: 22px; font-size: clamp(2.5rem, 6.1vw, 5.6rem); line-height: .98; }
.rl { display: block; white-space: nowrap; }
.rl > span { display: block; transform: translateY(.28em); animation: rise 1s var(--ease) forwards; }
.rl:nth-child(1) > span { animation-delay: .1s; }
.rl:nth-child(2) > span { animation-delay: .2s; }
.rl:nth-child(3) > span { animation-delay: .3s; }
.rl.accent > span { color: var(--accent); font-style: italic; transition: color .6s; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-sub { margin-top: 28px; max-width: 52ch; font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); opacity: 0; animation: fadeUp 1s .7s var(--ease) forwards; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fadeUp 1s .86s var(--ease) forwards; }
.hero-fine { margin-top: 18px; font-family: var(--label); font-size: 13.5px; color: var(--mute); letter-spacing: .02em; opacity: 0; animation: fadeUp 1s 1s var(--ease) forwards; }
.scroll-hint { position: absolute; left: var(--gutter); bottom: 22px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); min-height: 44px; pointer-events: auto; }
.scroll-hint i { width: 1px; height: 34px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(-100%); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ────────────────────────────────────────────────────────────────── acts */
.act { height: 220svh; position: relative; pointer-events: none; }
.no-stage .act { height: 105svh; }
.no-stage .hero { min-height: 80svh; }
.act-copy { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding: 0 var(--gutter); }
.act:nth-child(even) .act-copy { justify-content: flex-end; }
.act-box { max-width: 480px; pointer-events: auto; padding: 30px 32px; border-radius: 22px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 58%, transparent); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 40px 90px -50px #000, inset 0 1px 0 rgba(255, 255, 255, .05); opacity: 0; transform: translateY(38px) scale(.985); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.act-box.in { opacity: 1; transform: none; }
.act-box .kicker { margin-bottom: 16px; }
.act-box h3 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.02; margin-bottom: 16px; white-space: pre-line; }
.act-box h3 em { font-style: italic; color: var(--accent); transition: color .6s; }
.act-box p { color: var(--ink-2); font-size: 15.5px; }
.act-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 20px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.act-stats li { line-height: 1.25; }
.act-stats b { display: block; font-family: var(--display); font-size: 1.45rem; white-space: nowrap; font-weight: 400; color: var(--ink); transition: color .6s; }
.act-stats i { display: block; font-style: normal; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-top: 4px; }
@media (max-width: 700px) {
  .hero { align-items: end; padding-top: 40svh; }
  .hero-title { font-size: clamp(2.1rem, 10.4vw, 3.4rem); }
  .hero-sub { font-size: 15.5px; }
  .act { height: 190svh; }
  .act-copy { align-items: flex-end; padding-bottom: 28px; }
  .act:nth-child(even) .act-copy { justify-content: flex-start; }
  .act-box { padding: 20px 20px 22px; max-width: none; width: 100%; }
  .act-box h3 { font-size: 1.75rem; margin-bottom: 12px; }
  .act-box p { font-size: 14.5px; }
  .act-stats { gap: 12px 14px; margin-top: 16px; padding-top: 14px; }
  .act-stats b { font-size: 1.2rem; }
}

/* ───────────────────────────────────────────────────────── flat sections */
.flat { position: relative; z-index: 2; background: var(--paper); border-top: 1px solid var(--line); }
.sec { padding-block: var(--rhythm); position: relative; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec.dark { background: var(--night); color: var(--ink); border-top: 0; }
.sec.dark + .sec { border-top: 0; }
/* one cream section: every colour is restated here, so the components inside need no light variants */
.sec.light { --paper: #F3EEE3; --paper-2: #EAE4D6; --paper-3: #E2DBCB; --ink: #17150F; --ink-2: #45413A; --mute: #666156; --ink-rgb: 23, 21, 15; --paper-rgb: 243, 238, 227; --line: rgba(var(--ink-rgb), .14); --line-strong: rgba(var(--ink-rgb), .34); --accent-ink: #76560F; background: var(--paper); color: var(--ink); border-top: 0; }
.sec.light + .sec { border-top: 0; }
.sec.light :focus-visible { outline-color: var(--ink); }
.sec.light .excl li::before { color: var(--accent-ink); }
.sec.light .care { --ink: #F4F1EA; --ink-rgb: 244, 241, 234; --line: rgba(var(--ink-rgb), .12); border-color: transparent; }
.sec-head { display: grid; gap: 18px; max-width: 900px; }
.kicker { display: flex; }
.dark .kicker { color: var(--night-mute); }
.sec-title { font-size: clamp(2rem, 4.6vw, 3.7rem); }
.sec-body { font-size: clamp(16.5px, 1.3vw, 19px); color: var(--ink-2); max-width: 62ch; }
.dark .sec-body { color: var(--night-mute); }
.sec-inner { margin-top: clamp(40px, 5vw, 72px); }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────────────────────── search */
.search-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.phone { position: sticky; top: calc(var(--nav-h) + 24px); background: var(--bezel); border-radius: 40px; padding: 12px; box-shadow: 0 40px 80px -40px #000, inset 0 0 0 1px rgba(255, 255, 255, .1); }
.phone-screen { background: #fff; border-radius: 30px; padding: 22px 16px 26px; color: #1f1f1f; font-family: var(--body); min-height: 560px; overflow: hidden; }
.phone-notch { width: 96px; height: 26px; background: var(--bezel); border-radius: 999px; margin: -8px auto 18px; }
.sbar { display: flex; align-items: center; gap: 10px; border: 1px solid #dadce0; border-radius: 999px; padding: 11px 16px; box-shadow: 0 1px 6px rgba(32, 33, 36, .18); font-size: 15px; color: #202124; }
.sbar svg { width: 18px; height: 18px; fill: #9aa0a6; flex: none; }
.sbar b { font-weight: 400; white-space: nowrap; overflow: hidden; border-right: 2px solid #4285f4; }
.sbar b.typed { animation: caret 1s step-end infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.sres { display: grid; gap: 20px; margin-top: 22px; }
.sr { display: grid; gap: 3px; opacity: 0; }
.sr-url { font-size: 12.5px; color: #4d5156; display: flex; align-items: center; gap: 8px; }
.sr-url i { width: 22px; height: 22px; border-radius: 50%; background: #f1f3f4; display: inline-grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: #5f6368; }
.sr-title { color: #1a0dab; font-size: 17px; line-height: 1.3; }
.sr-desc { color: #4d5156; font-size: 13.5px; line-height: 1.45; }
.sr--stale .sr-title { font-family: "Times New Roman", Times, serif; color: #0000ee; text-decoration: underline; }
.sr--stale .sr-desc { font-family: "Times New Roman", Times, serif; }
.sr--stale .sr-url i { background: #ffe97d; color: #7a5b00; }
.sr.on { animation: srin .6s var(--ease) both; }
@keyframes srin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.snotes { display: grid; }
.snote { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: baseline; }
.snote:last-child { border-bottom: 1px solid var(--line); }
.snote-n { font-family: var(--label); font-size: 13.5px; color: var(--accent); letter-spacing: .08em; }
.snote-k { font-family: var(--label); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin-bottom: 8px; }
.snote-t { font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.2; }
.search-close { margin-top: 40px; font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.25; max-width: 30ch; }
.search-close em { color: var(--accent); font-style: italic; }
@media (max-width: 860px) { .search-grid { grid-template-columns: 1fr; } .phone { position: relative; top: 0; max-width: 400px; } }

/* ─────────────────────────────────────────────────────────────── spec */
.spec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.spec h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.spec p { margin-top: 16px; color: var(--night-mute); }
.spec-list { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 14.5px; }
.spec-list li { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--night-line); }
.spec-list li span:first-child { color: var(--night-mute); }
.spec-list li i { flex: 1; border-bottom: 1px dotted var(--night-line); transform: translateY(-4px); min-width: 20px; }
.spec-list li b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.spec-foot { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--accent-ink); display: flex; align-items: center; gap: 10px; }
.spec-foot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
@media (max-width: 800px) { .spec { grid-template-columns: 1fr; } }

/* ───────────────────────────────────────────────────────────────── work
   A film index: the flagship wide with its phone, then a 3 x 3 grid of stills
   shot from each sample's own hero (tools/shoot-work-stills.mjs). */
.film { display: grid; align-content: start; gap: 14px; text-decoration: none; color: inherit; }
.film-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--paper-3); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -48px rgba(0, 0, 0, .7); transition: box-shadow .5s var(--ease); }
.film-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.4s var(--ease), filter .8s var(--ease); filter: saturate(.92); }
.film-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); border-radius: inherit; }
.film:hover .film-frame, .film:focus-visible .film-frame { box-shadow: 0 0 0 1px var(--line-strong), 0 50px 90px -46px rgba(0, 0, 0, .8); }
.film:hover .film-still, .film:focus-visible .film-still { transform: scale(1.035); filter: saturate(1.05); }
.film-meta { display: flex; gap: 14px; align-items: baseline; margin-top: 8px; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.film-meta span:first-child { color: var(--accent-ink); }
.film h3 { font-size: clamp(1.6rem, 2.1vw, 2rem); }
.film p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 52ch; }
.film-sign { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--accent-ink); }
.film-sign i { font-style: normal; font-family: var(--label); font-weight: 400; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.film-sign svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform .35s var(--ease); }
.film:hover .film-sign svg { transform: translateX(6px); }

.film--lead { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.film--lead .film-frame { overflow: visible; }
.film--lead .film-frame > .film-still { border-radius: 14px; }
.film--lead h3 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
.film-phone { position: absolute; right: clamp(-28px, -2vw, -12px); bottom: -8%; width: 21%; height: auto; border-radius: 26px; border: 6px solid var(--bezel); background: var(--bezel); box-shadow: 0 40px 70px -30px #000, 0 0 0 1px rgba(255, 255, 255, .14); transition: transform 1s var(--ease); }
.film--lead:hover .film-phone { transform: translateY(-10px); }

.films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(22px, 2.4vw, 40px); margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.work-note { margin-top: 40px; font-family: var(--label); font-size: 13px; color: var(--mute); }
@media (max-width: 1099px) { .films { grid-template-columns: repeat(2, minmax(0, 1fr)); } .film--lead { grid-template-columns: 1fr; } .film-phone { right: 12px; width: 19%; } }
@media (max-width: 699px) { .films { grid-template-columns: 1fr; gap: 44px; } .films .film-frame { aspect-ratio: 4 / 5; } .films .film-still { object-position: top; } .film-phone { width: 24%; border-width: 4px; border-radius: 18px; bottom: -10%; } .film--lead .film-copy { margin-top: 18px; } }

/* ────────────────────────────────────────────────────────────── pricing */
.price-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.price-amt { font-family: var(--display); font-size: clamp(4.2rem, 12vw, 9.5rem); line-height: .9; letter-spacing: -.03em; font-variation-settings: "opsz" 144; }
.price-amt small { display: block; font-size: clamp(1rem, 1.6vw, 1.35rem); font-family: var(--label); letter-spacing: 0; margin-top: 16px; color: var(--accent-ink); }
.price-note { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-family: var(--display); line-height: 1.3; color: var(--ink-2); max-width: 30ch; }
.price-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: 40px; }
.price-h { font-family: var(--label); font-weight: 600; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; }
.incl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.incl li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.incl b { font-weight: 600; font-size: 15.5px; }
.incl span { color: var(--mute); font-size: 14.5px; }
.excl { list-style: none; margin: 0; padding: 0; }
.excl li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); font-size: 15px; }
.excl li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.addons { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.addons table { width: 100%; border-collapse: collapse; font-size: 15px; }
.addons th { text-align: left; font-family: var(--label); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 500; padding: 0 0 12px; border-bottom: 1px solid var(--line-strong); }
.addons td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.addons td:not(:first-child), .addons th:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 16px; }
.addons td:last-child { color: var(--mute); }
.care { background: var(--night); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 36px); position: relative; overflow: hidden; }
.care::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; bottom: -130px; border-radius: 50%; border: 1px solid rgba(var(--ink-rgb), .18); }
.care::before { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; bottom: -90px; border-radius: 50%; background: var(--accent); opacity: .85; }
.care .price-h { color: rgba(var(--ink-rgb), .6); }
.care b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 400; margin-bottom: 14px; position: relative; }
.care p { color: rgba(var(--ink-rgb), .78); font-size: 15px; position: relative; max-width: 40ch; }
.price-terms { margin-top: 36px; font-family: var(--label); font-size: 13.5px; color: var(--mute); max-width: 70ch; }
@media (max-width: 860px) { .price-hero, .price-cols, .addons { grid-template-columns: 1fr; } .incl { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────────────────────── process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--line-strong); }
.step { padding: 0 24px 0 0; position: relative; }
.step + .step { padding-left: 24px; }
.step-dot { width: 60px; height: 60px; border-radius: 50%; background: var(--paper-2); border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-family: var(--display); font-size: 24px; position: relative; z-index: 1; }
.step:first-child .step-dot { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.step-when { margin-top: 20px; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.step h3 { margin-top: 8px; font-size: 1.35rem; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .steps::before { left: 30px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; padding: 0 0 30px !important; }
  .step-dot { grid-row: 1 / 4; }
  .step-when { margin-top: 18px; }
}

/* ───────────────────────────────────────────────────────────────── fit */
.fit { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fit-item { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.fit-item + .fit-item { padding-left: 28px; border-left: 1px solid var(--line); }
.fit-item h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.fit-item p { margin-top: 14px; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } .fit-item + .fit-item { padding-left: 0; border-left: 0; } }

/* ────────────────────────────────────────────────────────────── honest */
.nop { display: grid; border-top: 1px solid var(--night-line); }
.nop-item { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 64px); padding: 34px 0; border-bottom: 1px solid var(--night-line); align-items: start; }
.nop-no { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.1; justify-self: start; text-decoration: line-through; text-decoration-color: transparent; text-decoration-thickness: 3px; transition: text-decoration-color .9s var(--ease) .2s; }
.in .nop-no { text-decoration-color: var(--accent); }
.nop-yes { color: var(--night-mute); font-size: 16.5px; max-width: 52ch; padding-top: 8px; }
.nop-yes::before { content: "Instead: "; color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .nop-item { grid-template-columns: 1fr; gap: 12px; } }

/* ──────────────────────────────────────────────────────────────── faq */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 16px; padding: 22px 0; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.25; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; position: relative; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; width: 14px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details[open] summary i { border-color: var(--accent); }
.faq .faq-a { padding: 0 60px 26px 0; color: var(--ink-2); max-width: 64ch; }

/* ─────────────────────────────────────────────────────────────── contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact-ways { display: grid; gap: 10px; }
.way { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; background: var(--paper-2); transition: border-color .3s, transform .4s var(--ease); min-height: 44px; }
.way:hover { border-color: var(--ink); transform: translateY(-2px); }
.way-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.way-ico svg { width: 24px; height: 24px; fill: currentColor; }
.way--wa .way-ico { background: #1D8F4E; color: #fff; }
.way b { display: block; font-weight: 600; }
.way span { display: block; color: var(--mute); font-size: 14px; }
.way svg.arr { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.contact-hours { margin-top: 22px; font-family: var(--label); font-size: 13px; color: var(--mute); line-height: 1.8; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field label small { color: var(--mute); font-weight: 400; }
.field input, .field textarea { font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--paper-2); color: var(--ink); min-height: 50px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-msg { font-size: 14.5px; color: var(--ok); font-weight: 600; }
.form-msg[data-err] { color: var(--accent-ink); }
@media (max-width: 860px) { .contact-grid, .form-row { grid-template-columns: 1fr; } }

/* ──────────────────────────────────────────────────────────────── footer */
.foot { position: relative; z-index: 2; background: var(--foot); color: var(--ink); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) var(--gutter) 28px; }
.foot-inner { width: min(var(--wrap), 100%); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.foot-brand b { font-family: var(--display); font-weight: 400; font-size: 26px; display: block; margin-top: 14px; }
.foot-brand p { margin-top: 12px; color: rgba(var(--ink-rgb), .62); font-size: 14.5px; max-width: 42ch; }
.foot-h { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--ink-rgb), .55); margin-bottom: 14px; }
.foot-col { display: grid; align-content: start; gap: 4px; }
.foot-col a, .foot-col span { color: var(--ink); text-decoration: none; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; font-size: 15.5px; }
.foot-col a:hover { color: var(--accent-ink); }
.foot-col [data-foot-legal] { display: grid; gap: 4px; }
.foot-credit { width: min(var(--wrap), 100%); margin: 56px auto 0; padding-top: 22px; border-top: 1px solid var(--night-line); font-family: var(--label); font-size: 13.5px; color: rgba(var(--ink-rgb), .5); display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 760px) { .foot-inner { grid-template-columns: 1fr; gap: 28px; } }

.noscript { padding: 40px var(--gutter); max-width: 720px; margin: 0 auto; position: relative; z-index: 3; }
.demo-badge { position: fixed; right: 12px; bottom: 12px; z-index: 95; display: grid; justify-items: center; gap: 2px; font-family: var(--label); font-size: 11px; letter-spacing: .04em; max-width: 60vw; text-align: center; background: var(--paper-3); color: var(--ink); border: 1px solid var(--line); padding: 8px 12px 2px; border-radius: 18px; opacity: .94; }
.demo-themes { display: flex; flex-wrap: wrap; justify-content: center; }
.demo-themes a, .demo-themes b { min-height: 44px; min-width: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; }
.demo-themes a { color: var(--mute); text-decoration: underline; text-underline-offset: .25em; }
.demo-themes b { color: var(--accent-ink); font-weight: 600; }

/* ───────────────────────────────────────────── reduced motion (§5.2) */
@media (max-width: 700px) { .demo-badge { left: 12px; right: 12px; bottom: 10px; max-width: none; font-size: 10.5px; padding-top: 6px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .rl > span { transform: none; animation: none; }
  .hero-sub, .hero-cta, .hero-fine { opacity: 1; animation: none; }
  .scroll-hint i::after { animation: none; transform: none; opacity: .6; }
  .grain { animation: none; }
  .stage { transition: none; }
  .boot-mark, .boot-bar i { animation: none; }
  .sbar b.typed { animation: none; }
  .sr.on { animation: none; opacity: 1; }
  .btn, .way, .film-frame, .film-still, .film-phone, .film-sign svg, .act-box { transition: none; }
  .act-box { opacity: 1; transform: none; }
}
