/* Persona Maison — site styles
   Palette: studio paper, ink, chroma-key green (accent), tally red (REC dot only). */
@font-face { font-family: "Shoulders"; src: url("/assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Shoulders"; src: url("/assets/fonts/big-shoulders-display-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f2f3ef;
  --paper-2: #e7eae3;
  --ink: #0f1915;
  --graphite: #48534f;
  --line: #d3d9d1;
  --chroma: #12b85f;
  --chroma-deep: #0a7a3e;
  --chroma-wash: #dcf3e5;
  --tally: #e0362c;
  --night: #111a16;
  --night-2: #1a2621;
  --night-ink: #e3e9e4;
  --night-quiet: #9fb0a7;

  --display: "Shoulders", "Arial Narrow", sans-serif;
  --body: "Instrument", "Segoe UI", system-ui, sans-serif;

  --r-tag: 3px; --r-btn: 6px; --r-panel: 10px; --r-device: 26px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.25, 1, 0.5, 1);
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 56px);
  --sec: clamp(72px, 10vw, 128px);
  --shadow: 0 1px 2px rgba(15, 30, 22, .06), 0 10px 30px -12px rgba(15, 30, 22, .22);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--paper); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 400 17px/1.6 var(--body); font-feature-settings: "ss01"; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--chroma-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--chroma); color: var(--ink); }
:focus-visible { outline: 2px solid var(--chroma-deep); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; border-radius: var(--r-btn); }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(56px, 9vw, 128px); }
h2 { font-size: clamp(44px, 6vw, 84px); }
h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1; }
.thin { font-weight: 300; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--graphite); max-width: 52ch; }
.quiet { color: var(--graphite); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r-btn); font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink); transition: transform .2s var(--ease-ui), background-color .2s var(--ease-ui), color .2s var(--ease-ui), box-shadow .2s var(--ease-ui); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #1d2b25; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-chroma { background: var(--chroma); border-color: var(--chroma); color: var(--ink); }
.btn-chroma:hover { background: #18c96a; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(242, 243, 239, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 26px/1 var(--display); letter-spacing: .01em; }
.brand-mark { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--chroma-deep); }
.nav a[aria-current=page] { text-decoration: underline; text-decoration-color: var(--chroma); text-decoration-thickness: 2px; }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: var(--r-btn); height: 40px; padding: 0 14px; font: 600 15px var(--body); color: var(--ink); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { position: fixed; inset: 68px 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 32px var(--pad); gap: 22px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { font-size: 22px; }
}

/* Hero */
.hero { padding: clamp(32px, 4vw, 56px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(54px, 7.2vw, 104px); }
.hero h1 .line { display: block; }
@media (min-width: 941px) { .hero h1 .line { white-space: nowrap; } }
.hero .lead { margin-top: 28px; }
.hero .btn-row { margin-top: 34px; }
.hero-fact { margin-top: 28px; font-size: 15px; color: var(--graphite); display: flex; align-items: center; gap: 10px; }
.tally { width: 9px; height: 9px; border-radius: 50%; background: var(--tally); display: inline-block; box-shadow: 0 0 0 4px rgba(224, 54, 44, .15); flex: none; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

/* The monitor: phone frame with live captions */
.monitor { position: relative; justify-self: center; width: min(310px, 100%); }
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-device); background: var(--night); overflow: hidden; box-shadow: 0 30px 60px -28px rgba(10, 30, 20, .55), 0 0 0 10px var(--ink); }
.phone video, .phone .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene { background: radial-gradient(120% 70% at 30% 20%, #2c4a3c 0%, #14211b 55%, #0c1410 100%); }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 14, 0) 45%, rgba(10, 18, 14, .78) 100%); }
.hud { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; color: #fff; font: 600 12px/1 var(--body); z-index: 2; }
.hud .rec { display: inline-flex; align-items: center; gap: 7px; background: rgba(0,0,0,.35); padding: 6px 9px; border-radius: 20px; }
.hud .rec .tally { width: 7px; height: 7px; box-shadow: none; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.captions { position: absolute; left: 18px; right: 18px; bottom: 66px; z-index: 2; font: 800 30px/1.02 var(--display); color: #fff; text-transform: none; min-height: 3.1em; }
.captions .w { opacity: .38; transition: opacity .12s linear, color .12s linear; }
.captions .w.on { opacity: 1; }
.captions .w.now { color: var(--chroma); }
.persona-tag { position: absolute; left: 18px; bottom: 26px; z-index: 2; color: #fff; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.persona-tag b { font-weight: 600; }
.persona-tag span { opacity: .75; }
.slate { margin-top: 26px; border-top: 1.5px solid var(--ink); }
.slate-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.slate-row dt { color: var(--graphite); }
.slate-row dd { margin: 0; font-weight: 600; }

/* Sections */
section { scroll-margin-top: 80px; }
.sec { padding: var(--sec) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head p { margin: 0; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }
.band-night { background: var(--night); color: var(--night-ink); }
.band-night .quiet, .band-night .lead { color: var(--night-quiet); }
.band-night a { color: #6fe0a2; }
.band-paper2 { background: var(--paper-2); }

/* Month spec: a call sheet, not a stat grid */
.callsheet { width: 100%; border-collapse: collapse; font-size: 16px; }
.callsheet th, .callsheet td { text-align: left; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.callsheet th { font: 800 44px/1 var(--display); width: 140px; color: var(--ink); }
.callsheet td:last-child { color: var(--graphite); width: 38%; }
.callsheet tr:first-child th, .callsheet tr:first-child td { border-top: 1.5px solid var(--ink); }
@media (max-width: 700px) { .callsheet td:last-child { display: none; } .callsheet th { width: 96px; font-size: 36px; } }

/* Process: real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1.5px solid currentColor; }
.steps li { counter-increment: s; padding: 22px 20px 6px 0; position: relative; }
.steps li::before { content: counter(s); font: 300 64px/1 var(--display); display: block; margin-bottom: 18px; color: #6fe0a2; }
.steps h3 { font-size: 30px; margin-bottom: 10px; }
.steps p { font-size: 15px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Presenter modes: rows with an accent rule */
.modes { display: grid; gap: 0; }
.mode { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) auto; gap: 32px; padding: 30px 0; border-top: 1px solid var(--line); align-items: start; }
.mode:last-child { border-bottom: 1px solid var(--line); }
.mode h3 { font-size: clamp(30px, 3.4vw, 46px); }
.mode .who { font-size: 14px; color: var(--graphite); margin-top: 10px; }
.mode .tag { justify-self: end; font-size: 13px; padding: 6px 10px; border: 1px solid var(--ink); border-radius: var(--r-tag); white-space: nowrap; }
.mode.feature { background: var(--chroma-wash); margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); border-top-color: var(--chroma); }
@media (max-width: 800px) { .mode { grid-template-columns: 1fr; gap: 12px; } .mode .tag { justify-self: start; } }

/* Cast */
.cast { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cast-card { grid-column: span 2; position: relative; background: var(--night-2); color: var(--night-ink); border-radius: var(--r-panel); padding: 26px 24px 24px; min-height: 300px; display: flex; flex-direction: column; text-decoration: none; overflow: hidden; transition: transform .25s var(--ease-ui), box-shadow .25s var(--ease-ui); }
.cast-card:nth-child(4), .cast-card:nth-child(5) { grid-column: span 3; }
.cast-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); text-decoration: none; }
.cast-card .swatch { position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; opacity: .9; }
.cast-card .role { font-size: 13px; color: var(--night-quiet); position: relative; }
.cast-card h3 { font-size: clamp(40px, 4vw, 56px); margin: 70px 0 10px; color: #fff; position: relative; }
.cast-card p { font-size: 15px; color: var(--night-quiet); margin-bottom: 18px; position: relative; }
.cast-card .wave { margin-top: auto; height: 28px; width: 100%; color: var(--night-quiet); }
.cast-card .go { color: #6fe0a2; font-weight: 600; font-size: 15px; margin-top: 14px; }
@media (max-width: 960px) { .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cast-card, .cast-card:nth-child(4), .cast-card:nth-child(5) { grid-column: span 1; } }
@media (max-width: 560px) { .cast { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.plan { padding: 28px 24px 30px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.plan + .plan { padding-left: 24px; }
.plan:last-child { border-right: 0; }
.plan h3 { font-size: 34px; }
.plan .price { font: 800 60px/1 var(--display); margin: 20px 0 4px; }
.plan .price small { font: 400 15px var(--body); color: var(--graphite); }
.plan .for { font-size: 15px; color: var(--graphite); min-height: 3.2em; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 26px; font-size: 15px; }
.plan li { padding: 8px 0; border-top: 1px solid var(--line); }
.plan .btn { margin-top: auto; justify-content: center; }
.plan.pick { background: var(--ink); color: var(--paper); border-radius: 0 0 var(--r-panel) var(--r-panel); padding-left: 24px; padding-right: 24px; border-right: 0; }
.plan.pick .for, .plan.pick .price small { color: var(--night-quiet); }
.plan.pick li { border-top-color: #2a3832; }
.plan.pick .btn { background: var(--chroma); border-color: var(--chroma); color: var(--ink); }
.plan .pick-note { font-size: 13px; color: #6fe0a2; margin-bottom: 8px; }
.pilot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pilot p { margin: 0; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan:nth-child(2) { border-right: 0; } .plan:nth-child(3) { padding-left: 0; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } .plan, .plan + .plan { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); } .plan.pick { padding-left: 20px; } }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: 400 16px/1.4 var(--body); color: var(--ink); background: #fff; border: 1.5px solid #b9c2bb; border-radius: var(--r-btn); padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--chroma); outline-offset: 0; }
.field .err { color: #b3261e; font-size: 13px; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--graphite); grid-column: 1 / -1; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--chroma-deep); flex: none; }
.form-status { grid-column: 1 / -1; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: var(--chroma-deep); font-weight: 600; }
.form-status.bad { color: #b3261e; }
.band-night .field input, .band-night .field select, .band-night .field textarea { background: var(--night-2); color: var(--night-ink); border-color: #33443c; }
.band-night .field input:focus, .band-night .field textarea:focus, .band-night .field select:focus { border-color: #6fe0a2; }
.band-night .check { color: var(--night-quiet); }
.band-night .form-status.ok { color: #6fe0a2; }
.band-night .form-status.bad { color: #ff8a80; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.sample-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .sample-grid { grid-template-columns: 1fr; } }
.deliver { list-style: none; padding: 0; margin: 28px 0 0; }
.deliver li { padding: 14px 0; border-top: 1px solid #2a3832; display: flex; gap: 14px; }
.deliver li b { font: 800 24px/1 var(--display); color: #6fe0a2; min-width: 56px; }

/* FAQ */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font: 600 19px/1.35 var(--body); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 30px; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .25s var(--ease-ui); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq details p { color: var(--graphite); padding-bottom: 14px; }

/* Close + footer */
.close { padding: var(--sec) 0; }
.close h2 { font-size: clamp(56px, 10vw, 148px); max-width: 12ch; }
.close .btn-row { margin-top: 36px; }
.site-foot { background: var(--night); color: var(--night-quiet); padding: 64px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-foot h4 { color: var(--night-ink); font: 600 15px var(--body); margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 8px 0; }
.site-foot a { color: var(--night-quiet); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot .brand { color: #fff; }
.foot-news { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 380px; }
.foot-news input[type=email] { flex: 1 1 180px; min-width: 0; background: var(--night-2); border: 1.5px solid #33443c; color: var(--night-ink); border-radius: var(--r-btn); padding: 0 12px; min-height: 44px; font: 15px var(--body); }
.foot-news .btn { min-height: 44px; }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid #2a3832; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Shop */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.product { display: grid; grid-template-columns: 132px 1fr; gap: 24px; padding: 30px 24px 30px 0; border-bottom: 1px solid var(--line); }
.product:nth-child(odd) { border-right: 1px solid var(--line); }
.product:nth-child(even) { padding-left: 24px; }
.cover { aspect-ratio: 3 / 4; border-radius: 4px; padding: 14px 12px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; font: 800 22px/1 var(--display); box-shadow: 8px 10px 0 -2px rgba(15, 25, 21, .12); }
.cover small { font: 600 11px/1.2 var(--body); opacity: .85; }
.product h3 { font-size: 34px; }
.product .by { font-size: 14px; color: var(--graphite); margin: 6px 0 12px; }
.product .price-line { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.product .price-line b { font: 800 40px/1 var(--display); }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } .product:nth-child(odd) { border-right: 0; } .product:nth-child(even) { padding-left: 0; } }
@media (max-width: 460px) { .product { grid-template-columns: 1fr; } .cover { max-width: 160px; } }

/* Legal / plain pages */
.page-head { padding: clamp(48px, 7vw, 96px) 0 32px; border-bottom: 1px solid var(--line); }
.prose { padding: 48px 0 96px; }
.prose h2 { font-size: 40px; margin: 40px 0 14px; }
.prose li { margin: 6px 0; max-width: 62ch; }

/* Consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; background: var(--ink); color: var(--night-ink); border-radius: var(--r-panel); padding: 20px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); font-size: 15px; display: none; }
.consent.show { display: block; }
.consent p { margin: 0 0 14px; }
.consent a { color: #6fe0a2; }
.consent .btn { min-height: 42px; padding: 0 16px; font-size: 15px; }
.consent .btn-ghost { color: var(--night-ink); border-color: #4a5a52; }
.consent .btn-ghost:hover { background: var(--night-2); }
.consent-opts { display: none; margin: 4px 0 14px; }
.consent-opts.show { display: block; }
.consent-opts label { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.consent-opts input { width: 18px; height: 18px; accent-color: var(--chroma); }

/* Chat */
.chat-launch { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); border: 0; border-radius: 30px; height: 52px; padding: 0 20px 0 16px; font: 600 15px var(--body); cursor: pointer; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); transition: transform .2s var(--ease-ui); }
.chat-launch:hover { transform: translateY(-2px); }
.chat-launch .tally { background: var(--chroma); box-shadow: 0 0 0 4px rgba(18, 184, 95, .2); }
.chat { position: fixed; right: 18px; bottom: 84px; z-index: 56; width: min(380px, calc(100vw - 36px)); height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 14px; box-shadow: 0 30px 70px -24px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: bottom right; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.chat.open { opacity: 1; visibility: visible; transform: none; }
.chat-top { background: var(--ink); color: var(--paper); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.chat-top b { font: 800 22px/1 var(--display); letter-spacing: .01em; }
.chat-top span { display: block; font-size: 12px; color: var(--night-quiet); margin-top: 4px; }
.chat-top button { background: none; border: 0; color: var(--paper); font-size: 22px; width: 40px; height: 40px; cursor: pointer; border-radius: 8px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 12px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--ink); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--graphite); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: var(--paper); }
.chips button { border: 1px solid var(--ink); background: transparent; border-radius: 16px; padding: 6px 11px; font: 14px var(--body); cursor: pointer; color: var(--ink); min-height: 34px; }
.chips button:hover { background: var(--chroma-wash); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; border: 1.5px solid #b9c2bb; border-radius: 8px; padding: 0 12px; min-height: 44px; font: 15px var(--body); }
.chat-form button { min-height: 44px; }
.chat-note { font-size: 11.5px; color: var(--graphite); padding: 0 12px 8px; background: #fff; }

/* Entrance: one orchestrated moment in the hero only */
@media (prefers-reduced-motion: no-preference) {
  .enter .line { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) forwards; }
  .enter .line:nth-child(2) { animation-delay: .08s; }
  .enter .line:nth-child(3) { animation-delay: .16s; }
  .enter .lead, .enter .btn-row, .enter .hero-fact { opacity: 0; animation: fade .8s var(--ease) .35s forwards; }
  .enter .monitor { opacity: 0; transform: translateY(18px) scale(.985); animation: rise 1s var(--ease) .2s forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Admin */
body.admin { background: var(--paper-2); min-height: 100vh; }
html:has(body.admin) { background: var(--paper-2); }
.admin-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0; }
.tabs button { border: 1.5px solid var(--ink); background: transparent; border-radius: var(--r-btn); min-height: 40px; padding: 0 14px; font: 600 14px var(--body); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: #fff; border-radius: var(--r-panel); padding: 18px; border: 1px solid var(--line); }
.kpi b { display: block; font: 800 44px/1 var(--display); margin-top: 8px; }
.kpi span { font-size: 13px; color: var(--graphite); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); margin-top: 16px; }
.dt { width: 100%; border-collapse: collapse; font-size: 14px; }
.dt th, .dt td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dt th { background: var(--paper); font-weight: 600; position: sticky; top: 0; }
.dt select { font: 14px var(--body); padding: 4px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); padding: 22px; margin-top: 16px; }
.bars { display: grid; gap: 6px; margin-top: 10px; }
.bar { display: grid; grid-template-columns: 140px 1fr 48px; gap: 10px; align-items: center; font-size: 13px; }
.bar i { display: block; height: 10px; background: var(--chroma); border-radius: 2px; }

.presenter { position: absolute; left: 50%; bottom: 0; width: 86%; transform: translateX(-50%); color: #2f5646; opacity: .9; }

/* ===================== v2: cinematic layer ===================== */
/* Header floats over the dark hero on the home page, turns to paper once scrolled. */
body.home .site-head { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; color: #fff; }
body.home .site-head .brand, body.home .site-head .nav a:not(.btn) { color: #fff; }
body.home .site-head .nav-toggle { color: #fff; border-color: rgba(255,255,255,.7); }
body.home .site-head .btn-primary { background: var(--chroma); border-color: var(--chroma); color: var(--ink); }
body.home .site-head.scrolled { background: rgba(242, 243, 239, .92); backdrop-filter: saturate(1.4) blur(10px); color: var(--ink); }
body.home .site-head.scrolled .brand, body.home .site-head.scrolled .nav a:not(.btn) { color: var(--ink); }
body.home .site-head.scrolled .nav-toggle { color: var(--ink); border-color: var(--ink); }
@media (max-width: 860px) { body.home .nav.open a:not(.btn) { color: var(--ink); } }

.cine { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; isolation: isolate; }
.cine-media { position: absolute; inset: 0; z-index: -2; }
.cine-media video, .cine-media img { width: 100%; height: 100%; object-fit: cover; }
.cine::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(10, 16, 13, .86) 0%, rgba(10, 16, 13, .55) 42%, rgba(10, 16, 13, .1) 75%),
  linear-gradient(0deg, rgba(10, 16, 13, .92) 0%, rgba(10, 16, 13, 0) 45%); }
.cine-body { width: 100%; padding-top: 140px; padding-bottom: clamp(36px, 6vw, 72px); }
.cine h1 { font-size: clamp(60px, 9.4vw, 148px); color: #fff; max-width: 11ch; }
.cine .lead { color: #c9d4ce; margin-top: 26px; max-width: 46ch; }
.cine .btn-row { margin-top: 34px; }
.cine .btn-ghost { color: #fff; border-color: rgba(255,255,255,.75); }
.cine .btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-play { gap: 12px; }
.btn-play .tri { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.cine-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(40px, 7vw, 88px); padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); font-size: 14px; color: #b7c4bd; }
.cine-foot span { display: inline-flex; align-items: center; gap: 10px; }
.cine-rec { position: absolute; top: 92px; right: var(--pad); display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--body); color: #fff; background: rgba(0,0,0,.35); padding: 7px 10px; border-radius: 20px; }
.cine-rec .tally { width: 7px; height: 7px; box-shadow: none; animation: blink 1.6s steps(1) infinite; }
@media (max-width: 700px) { .cine-rec { display: none; } .cine::before { background: linear-gradient(0deg, rgba(10,16,13,.94) 0%, rgba(10,16,13,.55) 60%, rgba(10,16,13,.35) 100%); } }

/* Work grid */
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 22px; border: 1.5px solid currentColor; background: transparent; color: inherit; font: 600 14px var(--body); cursor: pointer; opacity: .75; transition: opacity .15s, background-color .15s, color .15s; }
.chip:hover { opacity: 1; }
.chip[aria-pressed="true"] { background: var(--chroma); border-color: var(--chroma); color: var(--ink); opacity: 1; }
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.clip { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #0b120f; border-radius: var(--r-panel); overflow: hidden; cursor: pointer; text-align: left; color: #fff; aspect-ratio: 16 / 9; }
.clip.feat { grid-column: span 2; grid-row: span 2; }
.clip img, .clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.clip video { opacity: 0; transition: opacity .25s; }
.clip.previewing video { opacity: 1; }
.clip:hover img, .clip:hover video { transform: scale(1.03); }
.clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,13,11,.85) 0%, rgba(8,13,11,0) 55%); pointer-events: none; }
.clip-meta { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.clip-meta b { display: block; font: 800 26px/1 var(--display); }
.clip.feat .clip-meta b { font-size: clamp(32px, 3.6vw, 52px); }
.clip-meta span { font-size: 13px; color: #c9d4ce; }
.clip-play { flex: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; transition: transform .2s var(--ease-ui); }
.clip-play i { width: 0; height: 0; border-left: 12px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.clip:hover .clip-play { transform: scale(1.08); }
.clip-ai { position: absolute; top: 12px; right: 12px; z-index: 1; font: 600 11.5px var(--body); background: rgba(0,0,0,.45); padding: 5px 9px; border-radius: 14px; }
.clip[hidden] { display: none; }
@media (max-width: 900px) { .work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .work { grid-template-columns: 1fr; } .clip.feat { grid-column: auto; grid-row: auto; } }

/* Script to screen */
.s2s { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.beats { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); counter-reset: b; }
.beat { counter-increment: b; display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .2s; }
.beat::before { content: counter(b); font: 300 48px/1 var(--display); color: #b9c2bb; grid-row: span 3; transition: color .2s; }
.beat .t { font-size: 13px; color: var(--graphite); }
.beat h3 { font-size: 26px; }
.beat p { margin: 0; font-size: 16px; color: var(--graphite); }
.beat:hover { background: var(--paper-2); }
.beat.on::before { color: var(--chroma-deep); }
.beat.on h3 { text-decoration: underline; text-decoration-color: var(--chroma); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.player { position: sticky; top: 96px; }
.player-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-panel); overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(10, 30, 20, .5); }
.player-frame video { width: 100%; height: 100%; display: block; }
.player-bar { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 14px; color: var(--graphite); }
.player-bar button { min-height: 40px; }
.scrub { flex: 1; height: 4px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.scrub i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--chroma-deep); }
.pipeline { display: flex; flex-wrap: wrap; gap: 0; margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.pipeline li { list-style: none; flex: 1 1 140px; padding: 16px 16px 0 0; font-size: 14px; color: var(--graphite); }
.pipeline li b { display: block; font: 800 22px/1.1 var(--display); color: var(--ink); margin-bottom: 4px; }
@media (max-width: 900px) { .s2s { grid-template-columns: 1fr; } .player { position: static; order: -1; } }

/* Vertical rail */
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.vphone { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #0b120f; box-shadow: 0 0 0 7px var(--ink), 0 26px 50px -26px rgba(0,0,0,.6); }
.vphone video, .vphone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vphone figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; font: 600 13px var(--body); display: flex; align-items: center; gap: 8px; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.rail figure { margin: 0; }
.rail .plat { margin-top: 16px; font-size: 14px; color: var(--night-quiet); }
@media (max-width: 860px) { .rail { grid-template-columns: repeat(4, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 8px 16px; } .rail figure { scroll-snap-align: start; } }

/* About / company film */
.film { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.film-poster { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 16 / 9; border-radius: var(--r-panel); overflow: hidden; cursor: pointer; background: #000; }
.film-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.film-poster:hover img { transform: scale(1.03); }
.film-poster .clip-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); }
.film-poster:hover .clip-play { transform: translate(-50%, -50%) scale(1.06); }
.film-poster .clip-play i { border-left-width: 20px; border-top-width: 13px; border-bottom-width: 13px; margin-left: 6px; }
.film-poster .len { position: absolute; left: 16px; bottom: 14px; color: #fff; font: 600 14px var(--body); background: rgba(0,0,0,.45); padding: 6px 10px; border-radius: 14px; }
.pledges { list-style: none; margin: 26px 0 0; padding: 0; }
.pledges li { padding: 14px 0; border-top: 1px solid var(--line); }
.pledges b { display: block; font: 800 26px/1.1 var(--display); }
@media (max-width: 900px) { .film { grid-template-columns: 1fr; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(6, 10, 8, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lb.open { display: flex; }
.lb-box { width: min(1180px, 100%); }
.lb-box.tall { width: min(420px, 100%); }
.lb video { width: 100%; max-height: 78vh; background: #000; border-radius: 8px; display: block; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; margin-bottom: 12px; }
.lb-top b { font: 800 28px/1.05 var(--display); }
.lb-top button { background: none; border: 1.5px solid rgba(255,255,255,.6); color: #fff; border-radius: var(--r-btn); min-height: 42px; padding: 0 14px; font: 600 15px var(--body); cursor: pointer; }
.lb-note { color: #b7c4bd; font-size: 14px; margin-top: 10px; max-width: 80ch; }

/* Shop trailers */
.cover-wrap { position: relative; }
.trailer { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 4px; }
.trailer span { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.94); color: var(--ink); font: 600 12px var(--body); padding: 5px 8px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; }
.trailer span i { width: 0; height: 0; border-left: 7px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.cine h1 .line { display: block; }
@media (min-width: 700px) { .cine h1 { max-width: none; } .cine h1 .line { white-space: nowrap; } }

/* Announcement bar from the admin */
.announce { background: var(--chroma); color: var(--ink); text-align: center; font: 600 14px/1.4 var(--body); padding: 9px var(--pad); position: relative; z-index: 45; }
body.home.has-announce .site-head { top: 38px; }
body.home.has-announce .site-head.scrolled { top: 0; }

/* ---------- Checkout ---------- */
.checkout { max-width: 640px; }
.checkout h1 { font-size: clamp(40px, 6vw, 72px); }
.checkout .by { color: var(--quiet, #5b665f); margin-top: 8px; }
.co-price { margin-top: 18px; font-size: 18px; }
.co-price .num { font-size: 40px; }
.co-form { margin-top: 26px; grid-template-columns: 1fr; }
.co-buttons { gap: 12px; }
.co-buttons .btn { justify-content: center; width: 100%; }
