/* Avataria v3 mockup (from v2.1) */

/* Hanken Grotesk (variable, weights 400 to 600), served from this site; the two scripts cover English, Finnish and Swedish */
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken/hanken-grotesk-latin-ext.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "League Spartan"; src: url("/assets/fonts/league-spartan/LeagueSpartan-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "League Spartan"; src: url("/assets/fonts/league-spartan/LeagueSpartan-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "League Spartan"; src: url("/assets/fonts/league-spartan/LeagueSpartan-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --paper: #F2F0F7;      /* page */
  --paper-2: #E5E1EF;    /* venue zone, quiet fills */
  --card: #FBFAFE;
  --ink: #1C1838;        /* text, dark sections */
  --stage: #2A2452;      /* character stage, reaction keys */
  --signal: #7485E5;     /* brand periwinkle: reactions, live */
  --mint: #A6D8C8;       /* brand mint */
  --brand: linear-gradient(100deg, #7485E5 0%, #A6D8C8 100%);  /* the logo's gradient */
  --sky: #A6D8C8;        /* cloud, visitor speech */
  --muted: #5E587A;
  --line: #CFC9DE;

  --display: "League Spartan", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

h2 { font: 800 clamp(2rem, 4.2vw, 3.25rem)/1.02 var(--display); letter-spacing: -0.02em; }
h3 { font: 600 1.125rem/1.3 var(--body); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1 var(--body); text-decoration: none; transition: transform .12s ease, background-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 2.5rem; padding: 0 1.1rem; font-size: .9375rem; }
.btn-signal { background: var(--brand); color: var(--ink); }
.btn-signal:hover { background: linear-gradient(100deg, #8494EC 0%, #B6E2D4 100%); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--stage); }
.btn-ghost-light { border-color: rgba(242, 240, 247, .55); color: var(--paper); background: transparent; }
.btn-ghost-light:hover { border-color: var(--paper); background: rgba(242, 240, 247, .08); }

/* ---------- chrome ---------- */
.mock-note { margin: 0; padding: .35rem var(--gutter); background: var(--paper-2); color: var(--muted); font-size: .8125rem; text-align: center; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 2rem; padding: .75rem var(--gutter); background: rgba(242, 240, 247, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo img { height: 1.75rem; width: auto; }
.logo-footer { height: 1.4rem; width: auto; }
.site-header nav { margin-left: auto; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(86vh, 820px); background: var(--ink); color: var(--paper); overflow: hidden; display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0 0 0 30%; }
.hero-media img, .hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; background: #8E8E8E; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(28, 24, 56, .55) 16%, rgba(28, 24, 56, 0) 34%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; width: min(38rem, 46vw); padding: 4rem 0 4rem var(--gutter); }
.hero h1 { font: 900 clamp(2.75rem, 5.6vw, 5.25rem)/.94 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.hero-lead { margin-top: 1.5rem; max-width: 30rem; font-size: 1.1875rem; line-height: 1.55; color: rgba(242, 240, 247, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* the scripted reaction moment, under Tuukka's face */
.hero-moment { position: absolute; z-index: 1; left: 50%; bottom: 7%; width: min(25rem, 36vw); transform: translateX(-30%); display: grid; gap: .5rem; justify-items: start; }
.moment-line { padding: .6rem .9rem; border-radius: 14px; background: rgba(28, 24, 56, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 1rem; line-height: 1.4; }
.hero-moment em { font-style: normal; }
.moment-line span { display: block; font-size: .8125rem; font-weight: 600; color: var(--sky); }
.moment-answer { justify-self: end; }
.moment-answer span { color: #B9C2F5; }
.moment-react { justify-self: center; padding: .3rem .85rem; border-radius: 999px; background: var(--signal); color: var(--ink); font: 800 1rem/1.3 var(--display); padding-top: .4rem; }

/* captions follow the hero clip (app.js); without it, all three show */
.hero.is-synced .moment-line, .hero.is-synced .moment-react { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.hero.is-synced .moment-react { transform: scale(.6); transition: opacity .2s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.hero.is-synced .is-on { opacity: 1; transform: none; }

/* ---------- shared section layout ---------- */
.try, .characters, .reacts, .runs, .uses, .project, .contact { padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); }
.section-head { max-width: var(--max); margin: 0 auto clamp(2rem, 4vw, 3.25rem); }
.section-head p { margin-top: 1rem; max-width: 40rem; font-size: 1.1875rem; color: var(--muted); }
.try-live { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.try-live p { margin: 0; max-width: 30rem; font-size: 1rem; }

/* ---------- try it ---------- */
.playground { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "picker controls" "stage controls"; gap: 1rem clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.playground > .picker { grid-area: picker; } .playground > .stage { grid-area: stage; } .playground > .controls { grid-area: controls; }

.stage { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--stage); box-shadow: 0 30px 60px -30px rgba(28, 24, 56, .55); }
.stage-img, .stage-idle, .stage-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .25s ease; }
.stage-idle { opacity: 0; }
.stage.has-idle .stage-idle { opacity: 1; }
/* reaction clips sit over the idle loop and crossfade in and out of it */
.stage-clips { position: absolute; inset: 0; }
.stage-clip { opacity: 0; transition: opacity .35s ease; }
.stage-clip.is-on { opacity: 1; }
.stage-clip.is-cut { transition: none; }   /* match cut in from the idle loop */
.stage-img.is-swapping { opacity: 0; }
.stage:not(.has-clips)[data-state="reacting"] .stage-img, .stage:not(.has-clips)[data-state="speaking"] .stage-img { transform: scale(1.04); }
.stage-name { position: absolute; top: 1rem; left: 1rem; display: flex; align-items: baseline; gap: .5rem; padding: .45rem .8rem; border-radius: 999px; background: rgba(28, 24, 56, .72); color: var(--paper); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stage-name strong { font: 800 1.05rem/1 var(--display); padding-top: .15em; }
.stage-name span { font-size: .8125rem; color: rgba(242, 240, 247, .75); }
.stage-sound { position: absolute; top: 1rem; right: 1rem; padding: .45rem .8rem; border: 0; border-radius: 999px; background: rgba(28, 24, 56, .72); color: var(--paper); font-size: .8125rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stage-sound[aria-pressed="false"] { color: rgba(242, 240, 247, .6); }

.stage-react { position: absolute; top: 4.25rem; left: 50%; transform: translateX(-50%) scale(.6); opacity: 0; padding: .35rem 1rem .25rem; border-radius: 999px; background: var(--signal); color: var(--ink); font: 800 1.15rem/1.3 var(--display); transition: opacity .2s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.stage[data-state="reacting"] .stage-react, .stage[data-state="speaking"] .stage-react { opacity: 1; transform: translateX(-50%) scale(1); }

.stage-caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: .85rem; align-items: flex-end; min-height: 9rem; padding: 3.5rem 1.25rem 1.25rem; background: linear-gradient(180deg, rgba(28, 24, 56, 0) 0%, rgba(28, 24, 56, .88) 55%); color: var(--paper); }
.caption-text { font-size: 1.25rem; line-height: 1.4; font-weight: 500; text-wrap: pretty; }
.stage[data-state="idle"] .caption-text { color: rgba(242, 240, 247, .7); font-size: 1rem; }
.wave { display: flex; gap: 3px; align-items: center; height: 1.6rem; flex: none; margin-bottom: .1rem; }
.wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--signal); opacity: .35; }
.stage[data-state="speaking"] .wave i { opacity: 1; animation: wave .9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.2s !important; }
.wave i:nth-child(3) { animation-delay: -.45s !important; }
.wave i:nth-child(4) { animation-delay: -.1s !important; }
.wave i:nth-child(5) { animation-delay: -.6s !important; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.controls { display: grid; gap: 2rem; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .75rem; font-weight: 600; }
legend .hint { margin-left: .5rem; font-weight: 400; font-size: .875rem; color: var(--muted); }

.picker-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.pick { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .6rem; padding: .4rem .6rem .4rem .4rem; border: 2px solid var(--line); border-radius: 16px; background: var(--card); text-align: left; transition: border-color .15s ease; }
.pick:hover { border-color: var(--muted); }
.pick[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pick img { grid-row: span 2; width: 2.75rem; height: 2.75rem; aspect-ratio: 1; object-fit: cover; object-position: 50% 18%; border-radius: 50%; }
.pick-name { font: 800 1.05rem/1.1 var(--display); padding-top: .15em; }
.pick-style { font-size: .75rem; line-height: 1.3; color: var(--muted); }

.pad-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.key { position: relative; display: flex; align-items: flex-end; min-height: 4.5rem; padding: .75rem; border: 0; border-radius: 14px; background: var(--stage); color: var(--paper); font: 800 1.1rem/1.1 var(--display); text-align: left; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .28); transition: background-color .15s ease, transform .08s ease, box-shadow .08s ease; }
.key:hover { background: #383070; }
.key:active, .key.is-playing { transform: translateY(3px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .28); }
.key.is-playing { background: var(--signal); color: var(--ink); }
.key kbd { position: absolute; top: .55rem; left: .7rem; font: 500 .75rem/1 var(--body); opacity: .6; }

.live-card { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; padding: 1.5rem; border-radius: 20px; background: var(--ink); color: var(--paper); }
.live-card h3 { font: 800 1.45rem/1.1 var(--display); padding-top: .1em; }
.live-card p { margin: .5rem 0 1.1rem; color: rgba(242, 240, 247, .8); }
.live-timer { display: grid; place-content: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; border: 3px solid var(--mint); text-align: center; font-size: .75rem; line-height: 1; color: rgba(242, 240, 247, .8); }
.live-timer span { font: 900 1.8rem/1 var(--display); color: var(--paper); padding-top: .15em; }

.fineprint { max-width: var(--max); margin: 1.5rem auto 0; font-size: .875rem; color: var(--muted); }

/* ---------- characters ---------- */
.characters { background: var(--paper-2); }
.matrix { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 1rem; }
.axis { font: 800 1.05rem/1 var(--display); color: var(--muted); }
.axis-col { padding: 0 0 .25rem .25rem; }
.axis-c1 { grid-area: 1 / 2; } .axis-c2 { grid-area: 1 / 3; }
.axis-row { writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; justify-self: center; }
.axis-r1 { grid-area: 2 / 1; } .axis-r2 { grid-area: 3 / 1; }
.cell-11 { grid-area: 2 / 2; } .cell-12 { grid-area: 2 / 3; } .cell-21 { grid-area: 3 / 2; } .cell-22 { grid-area: 3 / 3; }

.cell { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr; gap: 1.25rem; padding: 1rem; border-radius: 18px; background: var(--card); }
.cell img, .cell-empty { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 12px; }
.cell-empty { display: grid; place-content: center; padding: 1rem; border: 2px dashed var(--line); color: var(--muted); font: 800 1rem/1.15 var(--display); text-align: center; }
.cell > div:last-child { align-self: center; }
.cell h3 { font: 800 1.35rem/1.1 var(--display); padding-top: .1em; }
.cell p { margin-top: .5rem; color: var(--muted); }
.cell .cell-demo { margin-top: .9rem; font-size: .875rem; color: var(--ink); font-weight: 500; }

/* ---------- reactions ---------- */
.reacts { background: var(--ink); color: var(--paper); }
.reacts .section-head p { color: rgba(242, 240, 247, .75); }

.beat { max-width: var(--max); margin: 0 auto; }
.beat-track { position: relative; display: grid; grid-template-columns: 4.5rem 1fr; row-gap: .75rem; padding-top: 2rem; }
.beat-row { display: contents; }
.beat-who { align-self: center; font-size: .875rem; color: rgba(242, 240, 247, .65); }
.beat-bar { position: relative; display: block; height: 3rem; padding: 0 1rem; border-radius: 10px; line-height: 3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--ink); }
.beat-visitor .beat-bar { width: 46%; background: var(--sky); }
.beat-face .beat-bar { margin-left: 56%; width: 44%; background: var(--signal); font: 800 1.1rem/3.1rem var(--display); }
.beat-voice .beat-bar { margin-left: 66%; width: 34%; background: var(--paper); }
.beat-gap { position: absolute; top: 0; bottom: 0; left: calc(4.5rem + (100% - 4.5rem) * .46); width: calc((100% - 4.5rem) * .10); border-left: 2px dashed rgba(242, 240, 247, .5); border-right: 2px dashed rgba(242, 240, 247, .5); }
.beat-gap span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font: 800 1rem/1 var(--display); color: var(--mint); white-space: nowrap; }
.beat figcaption { margin-top: 1.25rem; max-width: 40rem; color: rgba(242, 240, 247, .75); }

.facts { max-width: var(--max); margin: clamp(3rem, 6vw, 4.5rem) auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.facts li { padding-top: 1rem; border-top: 2px solid rgba(242, 240, 247, .2); }
.facts p { margin-top: .4rem; color: rgba(242, 240, 247, .75); }

/* ---------- runs anywhere ---------- */
.setups { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.setup h3 { font: 800 1.6rem/1.1 var(--display); }
.setup > p { margin-top: 1rem; color: var(--muted); }
.setup .setup-for { margin-top: .75rem; font-size: .9375rem; color: var(--ink); }
.setup .setup-for::before { content: "Good fit: "; font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.zone { display: flex; flex-direction: column; gap: .35rem; min-height: 9.5rem; padding: .75rem; border-radius: 14px; }
.zone-site { background: var(--card); border: 1.5px solid var(--line); }
.zone-cloud { background: rgba(140, 203, 234, .35); border: 1.5px solid rgba(140, 203, 234, .9); }
.zone-cloud.is-empty { background: transparent; border-style: dashed; border-color: var(--line); }
.zone-label { margin-bottom: .2rem; font-size: .8125rem; color: var(--muted); }
.zone b { padding: .3rem .55rem; border-radius: 8px; background: var(--stage); color: var(--paper); font-weight: 500; font-size: .875rem; }
.zone-cloud b { background: var(--ink); }
.zone b.is-screen { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.zone em { margin-top: auto; margin-bottom: auto; font-style: normal; font-size: .875rem; color: var(--muted); }

.runs-notes { max-width: var(--max); margin: clamp(3rem, 6vw, 4.5rem) auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.hardware { font: 800 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--display); text-wrap: balance; }
.public ul { margin: .75rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.public li + li { margin-top: .35rem; }

/* ---------- use cases + project ---------- */
.project { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.steps { display: grid; gap: 2rem; margin-top: 2rem; }
.steps p { margin-top: .5rem; color: var(--muted); }

.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; margin-bottom: .5rem; font: 900 2.5rem/1 var(--display); background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content; }

/* ---------- contact + footer ---------- */
.contact { background: var(--stage); color: var(--paper); text-align: left; }
.contact > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.contact h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.contact p { margin-top: 1rem; font-size: 1.1875rem; color: rgba(242, 240, 247, .8); }
.contact p, .contact h2 { max-width: var(--max); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.site-footer { padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 1.5rem; background: var(--ink); color: rgba(242, 240, 247, .7); font-size: .875rem; }

/* ---------- how it works: the body ---------- */
.how { padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); }
.anatomy { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(0, 40rem) 1fr; grid-template-areas: "left map right" "nerves nerves nerves"; align-items: center; gap: 2.5rem 2rem; }
.legend-left { grid-area: left; } .body-map { grid-area: map; } .legend-right { grid-area: right; } .platform { grid-area: nerves; }
/* the body: Desiree waving, rendered in Unreal; numbered pins beside her face (never on it), legends either side */
.how { --r-hear: #7CC6E8; --r-see: #F7D488; --r-feel: #F0A8A8; --r-think: #8E9BF0; --r-will: #C4A8F2; --r-touch: #F4B08A; --r-speak: #8FD9BF; --r-express: #F2C4D6; }
.body-map { position: relative; margin: 0; }
.body-map img, .body-video { display: block; width: 100%; height: auto; aspect-ratio: 1336 / 1080; border-radius: 22px; background: #8A8A8A; }
.body-map figcaption { margin-top: .6rem; text-align: center; font-size: .8125rem; color: var(--muted); }
.body-frame { position: relative; }
.pin-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pin-lines line { stroke: rgba(28, 24, 56, .7); stroke-width: 2.2; }
.pin { position: absolute; display: grid; place-content: center; width: 1.6rem; height: 1.6rem; margin: -.8rem 0 0 -.8rem; border-radius: 50%; border: 2px solid var(--ink); color: var(--ink); font: 800 .85rem/1 var(--display); padding-top: .12em; box-shadow: 0 0 0 3px rgba(242, 240, 247, .55); }
.pin-hear, .legend .lg-hear b { background: var(--r-hear); }
.pin-see, .legend .lg-see b { background: var(--r-see); }
.pin-feel, .legend .lg-feel b { background: var(--r-feel); }
.pin-think, .legend .lg-think b { background: var(--r-think); }
.pin-will, .legend .lg-will b { background: var(--r-will); }
.pin-touch, .legend .lg-touch b { background: var(--r-touch); }
.pin-speak, .legend .lg-speak b { background: var(--r-speak); }
.pin-express, .legend .lg-express b { background: var(--r-express); }


.legend { display: grid; gap: 2.25rem; margin: 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: .9rem; }
.legend-left li { flex-direction: row-reverse; text-align: right; }
.legend b { flex: none; display: grid; place-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--ink); color: var(--ink); font: 800 1.1rem/1 var(--display); padding-top: .15em; }
.legend span { font: 800 clamp(1.5rem, 2.4vw, 2rem)/1 var(--display); padding-top: .1em; }
.legend small { display: block; margin-top: .3rem; font: 600 .875rem/1.2 var(--body); color: var(--muted); }

.platform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-areas: "head list"; gap: 1.75rem 3rem; align-items: center; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 24px; background: var(--ink); color: var(--paper); }
.platform-head { grid-area: head; } .flow { grid-area: flow; } .platform-list { grid-area: list; }
.platform-head h3 { font: 800 clamp(1.6rem, 2.6vw, 2.1rem)/1.05 var(--display); padding-top: .1em; }
.platform-head p { margin-top: .5rem; color: var(--mint); }
.flow { width: 100%; height: auto; overflow: visible; }
.flow text { font: 500 13px var(--body); fill: rgba(242, 240, 247, .7); }
.flow-rows text { text-anchor: end; }
.flow-grid line { stroke: rgba(242, 240, 247, .2); }
.b-you { fill: rgba(242, 240, 247, .85); } .b-hear { fill: var(--r-hear); } .b-think { fill: var(--r-think); } .b-speak { fill: var(--r-speak); } .b-express { fill: var(--r-express); }
.flow .mark { stroke: rgba(242, 240, 247, .5); stroke-dasharray: 3 4; }
.flow .cut { stroke: var(--paper); stroke-width: 3; }
.callout circle { fill: var(--paper); } .callout text { fill: var(--ink); font: 800 13px var(--display); text-anchor: middle; }
.platform-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; margin: 0; padding: 0; list-style: none; }
.platform-list li { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: start; }
.platform-list .ico { grid-row: span 2; width: 2.6rem; height: 2.6rem; padding: .55rem; border-radius: 50%; background: rgba(166, 216, 200, .14); stroke: var(--mint); }
.platform-list b { font-weight: 600; }
.platform-list b i { display: inline-grid; place-content: center; width: 1.15rem; height: 1.15rem; margin-right: .2rem; border-radius: 50%; background: var(--paper); color: var(--ink); font: 800 .7rem/1 var(--display); font-style: normal; vertical-align: .1em; }
.platform-list span { font-size: .875rem; color: rgba(242, 240, 247, .72); }
.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tools, .rules { max-width: var(--max); margin: clamp(3rem, 6vw, 4.5rem) auto 0; }
.tools-head h3, .rules h3 { font: 800 clamp(1.5rem, 2.4vw, 1.9rem)/1.1 var(--display); padding-top: .1em; }
.tools-head p { margin-top: .5rem; max-width: 46rem; color: var(--muted); }
.tools-head em { font-style: normal; font-weight: 600; color: var(--ink); }
.tool-table { margin-top: 1.5rem; display: grid; gap: .6rem; }
.tool-row { display: grid; grid-template-columns: 3rem 1.15fr 1.35fr .9fr 1.3fr; gap: 1.75rem; align-items: center; }
.tool-row:not(.tool-cols) > .t-icon { display: grid; place-content: center; width: 3rem; height: 3rem; padding: 0; border-radius: 50%; background: var(--paper-2); }
.tool-row:not(.tool-cols) > .t-icon::after { display: none; }
.t-icon .ico { width: 1.5rem; height: 1.5rem; stroke: var(--ink); }
.tag { display: inline-grid; place-content: center; width: 1.2rem; height: 1.2rem; margin-right: .25rem; border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink); font: 800 .7rem/1 var(--display); font-style: normal; vertical-align: .05em; }
.tag-will { background: var(--r-will); } .tag-touch { background: var(--r-touch); }
.tool-cols span { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.tool-row:not(.tool-cols) > span { position: relative; padding: .65rem .9rem; border-radius: 14px; font-weight: 500; line-height: 1.35; }
.tool-row:not(.tool-cols) > span:not(:last-child)::after { content: "→"; position: absolute; right: -1.35rem; top: 50%; transform: translateY(-50%); font: 800 1.1rem/1 var(--display); color: var(--signal); }
.t-say { background: var(--mint); }
.t-call { background: color-mix(in srgb, var(--r-will) 35%, var(--paper)); }
.t-call code { font: 500 .85rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--stage); word-break: break-word; }
.t-ok { background: color-mix(in srgb, var(--r-touch) 35%, var(--paper)); }
.t-ok::before { content: "✓ "; font-weight: 700; }
.t-answer { background: var(--ink); color: var(--paper); }
.tools-note { margin-top: .75rem; font-size: .8125rem; color: var(--muted); }

.rules ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.rules li { padding: 1.25rem; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); }
.rules .ico { display: block; width: 2.6rem; height: 2.6rem; padding: .55rem; margin-bottom: .8rem; border-radius: 50%; background: var(--ink); stroke: var(--mint); }
.rules li b { display: block; font-weight: 600; }
.rules li span { display: block; margin-top: .35rem; font-size: .9375rem; color: var(--muted); }

/* ---------- what can you use it for? ---------- */
.use-cards { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: clamp(1.25rem, 3vw, 2rem); }
.use-media { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--stage); display: grid; place-content: center; }
.use-card-wide .use-media { aspect-ratio: 16 / 9; }
.use-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.use-card h3 { margin-top: 1.1rem; font: 800 1.75rem/1.05 var(--display); padding-top: .1em; }
.use-card p { margin-top: .4rem; color: var(--muted); }
.use-card ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.use-card li { padding: .25rem .7rem; border-radius: 999px; background: var(--paper-2); font-size: .8125rem; font-weight: 500; }

/* ---------- timing band ---------- */
.timing { padding: clamp(4rem, 9vw, 7rem) max(var(--gutter), calc((100% - var(--max)) / 2)); background: var(--brand); color: var(--ink); }
.timing h2 { font: 900 clamp(2.6rem, 7vw, 5.5rem)/.95 var(--display); letter-spacing: -0.03em; }
.timing p { margin-top: 1.25rem; font-size: 1.1875rem; }
.timing p:not(.equation):not(.source) { max-width: 44rem; }
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem !important; }
.equation .term { padding: .5rem .85rem .4rem; border-radius: 10px; background: var(--ink); color: var(--paper); font: 800 1rem/1.2 var(--display); }
.equation .op { font: 800 1.25rem/1 var(--display); }
.equation .term-sum { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.timing .source { margin-top: 2rem; font-size: .875rem; }

.contact .contact-mail { align-self: center; color: rgba(242, 240, 247, .8); }
.contact .contact-tag { margin-top: .75rem; font: 800 clamp(1.3rem, 2.4vw, 1.75rem)/1.2 var(--display); color: var(--mint); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .anatomy { grid-template-columns: 1fr 1fr; grid-template-areas: "map map" "left right" "nerves nerves"; max-width: 34rem; align-items: start; }
  .body-map { max-width: 34rem; justify-self: center; width: 100%; }
  .legend { gap: 1rem; }
  .legend-left li { flex-direction: row; text-align: left; }
  .legend span { font-size: 1.35rem; }
  .platform { grid-template-columns: 1fr; grid-template-areas: "head" "list"; }
  .platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools, .rules { max-width: 34rem; }
  .tool-cols { display: none !important; }
  .tool-row { grid-template-columns: 1fr; gap: 1.4rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
  .tool-row:not(.tool-cols) > .t-icon { margin-bottom: -.6rem; }
  .tool-row:not(.tool-cols) > span:not(:last-child)::after { content: "↓"; right: auto; left: 1.2rem; top: auto; bottom: -1.3rem; transform: none; }
  .rules ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use-cards { grid-template-columns: 1fr; max-width: 30rem; }

  .site-header .btn { margin-left: auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setups { grid-template-columns: 1fr; max-width: 34rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .playground { grid-template-columns: 1fr; grid-template-areas: "picker" "stage" "controls"; max-width: 34rem; }
  .stage { width: min(100%, 26rem); justify-self: center; }
  .playground > .picker { width: min(100%, 26rem); justify-self: center; }
}

@media (max-width: 760px) {
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; inset: auto; }
  .hero-video { display: block; height: auto; aspect-ratio: 4 / 3; }
  .hero-media img { object-position: 50% 15%; }
  .hero-media::after { bottom: auto; aspect-ratio: 4 / 3; background: linear-gradient(180deg, rgba(42, 36, 82, 0) 70%, var(--stage) 100%); }
  .hero-moment { position: relative; left: auto; bottom: auto; width: auto; transform: none; gap: .35rem; min-height: 11.5rem; margin-top: 0; padding: 1rem var(--gutter); align-content: start; background: var(--stage); }
  .hero-moment .moment-line { background: rgba(242, 240, 247, .1); }
  .moment-line { font-size: .875rem; padding: .45rem .7rem; }
  .moment-line span { font-size: .75rem; }
  .hero-copy { width: auto; padding: 1.5rem var(--gutter) 3rem; }

  .matrix { grid-template-columns: 1fr; grid-template-rows: none; }
  .axis { display: none; }
  .cell-11, .cell-12, .cell-21, .cell-22 { grid-area: auto; }
  .cell { grid-template-columns: 7rem 1fr; }
  .cell-11 h3::before { content: "Suspiciously real, already exists"; }
  .cell-12 h3::before { content: "Suspiciously real, made from scratch"; }
  .cell-21 h3::before { content: "Proudly cartoon, already exists"; }
  .cell-22 h3::before { content: "Proudly cartoon, made from scratch"; }
  .cell h3::before { display: block; margin-bottom: .35rem; font: 500 .8125rem/1.2 var(--body); color: var(--muted); }

  .pad-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .key { min-height: 4.25rem; }
  .live-card { grid-template-columns: 1fr; }
  .runs-notes { grid-template-columns: 1fr; }
  .beat-track { grid-template-columns: 3.5rem 1fr; }
  .beat-gap { left: calc(3.5rem + (100% - 3.5rem) * .46); width: calc((100% - 3.5rem) * .10); }
  .beat-bar { padding: 0 .6rem; font-size: .875rem; }
  .beat-face .beat-bar { font-size: .95rem; }
}

@media (max-width: 480px) {
  .rules ul { grid-template-columns: 1fr; }
  .facts, .steps { grid-template-columns: 1fr; }
  .picker-list { gap: .5rem; }
  .pick-style { display: none; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* the cast: a full-bleed lineup of MetaHumans drifting slowly sideways (two copies make the loop seamless) */
.cast { width: 100vw; margin: clamp(3.5rem, 7vw, 5rem) 0 0 calc(50% - 50vw); background: #B9B8B9; overflow: hidden; touch-action: pan-y; }
.cast-track { display: flex; width: max-content; animation: cast-drift 100s linear infinite; }
.cast:hover .cast-track { animation-play-state: paused; }
.cast img { display: block; height: clamp(17rem, 27vw, 25rem); width: auto; max-width: none; }
@keyframes cast-drift { to { transform: translateX(-50%); } }
.cast figcaption { padding: .9rem var(--gutter); background: var(--paper); color: var(--muted); text-align: center; }
.cast figcaption b { color: var(--ink); font-weight: 600; }

@media (hover: none) { legend .hint { display: none; } }

/* ---------- use-case scenes: a character's idle loop with the conversation cycling over it ---------- */
.uc { --cycle: 12s; display: block; isolation: isolate; }
.uc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.uc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 24, 56, 0) 45%, rgba(28, 24, 56, .55) 100%); pointer-events: none; }
.uc-tag { position: absolute; z-index: 2; top: .75rem; left: .75rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(28, 24, 56, .7); color: var(--paper); font-size: .75rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.uc-b { position: absolute; z-index: 2; max-width: 78%; margin: 0; padding: .5rem .75rem; border-radius: 14px; font-size: .8125rem; line-height: 1.35; opacity: 0; }
.uc-visitor { background: var(--mint); color: var(--ink); border-bottom-left-radius: 4px; left: .75rem; }
.uc-char { background: var(--ink); color: var(--paper); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); border-bottom-right-radius: 4px; right: .75rem; }
.uc-k1, .uc-k2, .uc-k3 { animation: var(--cycle) ease infinite; }
.uc-k1 { animation-name: uc-k1; } .uc-k2 { animation-name: uc-k2; } .uc-k3 { animation-name: uc-k3; }
@keyframes uc-k1 { 0%, 6% { opacity: 0; transform: translateY(8px); } 10%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes uc-k2 { 0%, 30% { opacity: 0; transform: translateY(8px); } 34%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes uc-k3 { 0%, 55% { opacity: 0; transform: translateY(8px); } 59%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
.uc-info .uc-k1 { bottom: 9.2rem; } .uc-info .uc-k2 { bottom: 5rem; } 
.uc-card { position: absolute; z-index: 2; left: .75rem; right: .75rem; bottom: .75rem; display: flex; align-items: center; gap: .7rem; padding: .5rem; border-radius: 14px; background: var(--card); color: var(--ink); font-size: .75rem; opacity: 0; }
.uc-card svg { width: 5.5rem; flex: none; }
.uc-card b { display: block; font: 800 .95rem/1.1 var(--display); padding-top: .1em; }
.m-bg { fill: var(--paper-2); } .m-route { fill: none; stroke: var(--signal); stroke-width: 3; stroke-dasharray: 4 4; stroke-linecap: round; } .m-you { fill: var(--ink); } .m-pin { fill: var(--signal); }
.uc-comp .uc-k1 { bottom: 9rem; } .uc-comp .uc-k2 { bottom: 5.4rem; } .uc-comp .uc-k3 { bottom: .9rem; }
.uc-teach { --cycle: 17.7s; }   /* the video loop: 18 s of animation with its last 0.3 s folded into the start */
.uc-teach .uc-slide, .uc-teach .uc-q { animation-play-state: paused; }   /* app.js seeks them to the video's time */
.uc-teach .uc-video { width: 58%; object-position: 50% 20%; }
.uc-teach::after { background: linear-gradient(90deg, rgba(28, 24, 56, 0) 40%, rgba(28, 24, 56, .35) 58%); }
.uc-slides { position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; width: 46%; padding: 3rem 1rem 1rem; background: var(--ink); }
.uc-slide { position: absolute; left: 1rem; right: 1rem; top: 3rem; margin: 0; opacity: 0; animation: var(--cycle) ease infinite; }
.uc-s1 { animation-name: uc-s1; } .uc-s2 { animation-name: uc-s2; } .uc-s3 { animation-name: uc-s3; }
@keyframes uc-s1 { 0% { opacity: 0; } 3%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateX(-12px); } }
@keyframes uc-s2 { 0%, 33% { opacity: 0; transform: translateX(12px); } 37%, 63% { opacity: 1; transform: none; } 67%, 100% { opacity: 0; transform: translateX(-12px); } }
@keyframes uc-s3 { 0%, 66% { opacity: 0; transform: translateX(12px); } 70%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.uc-art { aspect-ratio: 16 / 9; border-radius: 10px; }
.uc-art.aurora { background: radial-gradient(120% 80% at 30% 110%, #0b1630 30%, transparent 31%), linear-gradient(170deg, #0d1b3d 0%, #13305a 40%, #2fbf8f 55%, #9be8c4 62%, #6c5bd6 75%, #0d1b3d 100%); }
.uc-art.green { background: radial-gradient(circle at 50% 60%, #b8ffd9 0 8%, #46d39a 9% 30%, #155a49 31% 55%, #0b1f2a 56%); }
.uc-art.night { background: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent), radial-gradient(1px 1px at 45% 45%, #fff, transparent), radial-gradient(1px 1px at 85% 55%, #fff, transparent), linear-gradient(180deg, #0a1028 0%, #1c2a5a 70%, #2b2350 100%); }
.uc-slide figcaption { margin-top: .6rem; color: rgba(242, 240, 247, .8); font-size: .8125rem; line-height: 1.35; }
.uc-slide figcaption b { display: block; margin-bottom: .2rem; color: var(--paper); font: 800 1.05rem/1.1 var(--display); padding-top: .1em; }
.uc-q { position: absolute; left: calc(-100% + .75rem); right: auto; bottom: .9rem; max-width: 90%; animation: uc-q var(--cycle) ease infinite; }
@keyframes uc-q { 0%, 78% { opacity: 0; transform: translateY(8px); } 82%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.uc-k3.uc-card { animation-name: uc-k3; }
@media (max-width: 760px) {
  .uc-teach .uc-video { width: 54%; }
  .uc-slides { width: 50%; padding-top: 2.6rem; }
  .uc-slide { top: 2.6rem; left: .6rem; right: .6rem; }
  .uc-slide figcaption { font-size: .6875rem; } .uc-slide figcaption b { font-size: .85rem; }
  .uc-teach .uc-q { font-size: .6875rem; padding: .35rem .55rem; bottom: .6rem; }
}
.use-card .uc-b { margin: 0; }
.use-card .uc-char { color: var(--paper); }
.use-card .uc-visitor { color: var(--ink); }

/* Information and Companion: 9:16, the character speaking; the chat log builds up under the face in time with the video (app.js) */
.uc-tall { aspect-ratio: 9 / 16; background: #8C8C8C; }
.uc-tall .uc-video { object-position: 50% 0; }
.uc-tall::after { display: none; }
.uc-chat { position: absolute; z-index: 2; left: .7rem; right: .7rem; bottom: .7rem; display: flex; flex-direction: column; gap: .4rem; transition: opacity .4s ease; }
.uc-chat.is-clearing { opacity: 0; }
.uc-chat .uc-b { position: static; display: none; max-width: 88%; opacity: 1; animation: none; }
.uc-chat .uc-b.is-on { display: block; animation: uc-pop .35s ease both; }
.uc-chat .uc-visitor { align-self: flex-start; }
.uc-chat .uc-char { align-self: flex-end; }
@keyframes uc-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   v3: Avatar as a Service
   ===================================================================== */

.command, .formats, .channels, .onset { padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); }
.header-login { font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.header-login:hover { color: var(--ink); }
.hero-kicker, .kicker { margin-bottom: 1rem; font: 800 .875rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); padding-top: .1em; }
.fineprint { text-wrap: pretty; }

/* status badges, shared by the console and the channels */
.state { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.state-live { background: var(--mint); color: var(--ink); }
.state-soon { background: transparent; color: var(--muted); border: 1.5px dashed var(--line); }
.state-project { background: var(--signal); color: var(--ink); }

/* ---------- command centre ---------- */
.command { background: var(--paper-2); }
.command-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.console { border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 40px 70px -40px rgba(28, 24, 56, .55), 0 0 0 1px var(--line); }
.console-bar { display: flex; align-items: center; gap: 1rem; padding: .6rem .9rem; background: var(--ink); }
.console-dots { display: flex; gap: .35rem; }
.console-dots i { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(242, 240, 247, .25); }
.console-url { flex: 1; max-width: 22rem; margin: 0 auto; padding: .2rem .8rem; border-radius: 999px; background: rgba(242, 240, 247, .1); color: rgba(242, 240, 247, .75); font-size: .8125rem; text-align: center; }
.console-body { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); min-height: 25rem; }
.console-side { padding: 1rem .75rem; background: var(--stage); color: var(--paper); }
.console-deploy { padding: .25rem .5rem 1rem; }
.console-deploy b { display: block; font: 800 1.05rem/1.15 var(--display); padding-top: .1em; }
.console-deploy span { font-size: .8125rem; color: rgba(242, 240, 247, .7); }
.console-tabs { display: grid; gap: .2rem; }
.console-tabs button { padding: .55rem .75rem; border: 0; border-radius: 10px; background: transparent; color: rgba(242, 240, 247, .78); font-weight: 500; text-align: left; transition: background-color .15s ease; }
.console-tabs button:hover { background: rgba(242, 240, 247, .08); color: var(--paper); }
.console-tabs button[aria-selected="true"] { background: var(--brand); color: var(--ink); font-weight: 600; }
.console-panels { padding: clamp(1.1rem, 2.5vw, 1.75rem); }
.cpanel h3 { font: 800 1.45rem/1.1 var(--display); padding-top: .1em; }
.cpanel > * + * { margin-top: 1rem; }
.cp-quote { padding: .9rem 1rem; border-left: 4px solid var(--signal); border-radius: 0 12px 12px 0; background: var(--paper); font-size: 1rem; line-height: 1.5; }
.cp-row { display: grid; gap: .45rem; }
.cp-label { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.chips li { padding: .3rem .75rem; border-radius: 999px; background: color-mix(in srgb, var(--mint) 45%, var(--card)); font-size: .875rem; font-weight: 500; }
.chips-warn li { background: color-mix(in srgb, #F4B08A 35%, var(--card)); }
.cp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.25rem; margin: 1rem 0 0; }
.cp-fields dt { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.cp-fields dd { margin: .15rem 0 0; font-weight: 500; }
.cp-sliders { display: grid; gap: .5rem; }
.cp-sliders p { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: .75rem; font-size: .875rem; }
.cp-sliders i { position: relative; height: .45rem; border-radius: 999px; background: var(--paper-2); }
.cp-sliders i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: var(--brand); }
.cp-sliders i::after { content: ""; position: absolute; top: 50%; left: var(--v); width: 1rem; height: 1rem; margin: -.5rem 0 0 -.5rem; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); }
.cp-list { display: grid; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.cp-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon name end" "icon meta end"; column-gap: .8rem; align-items: center; padding: .65rem .8rem; border-radius: 12px; background: var(--paper); }
.cp-list b { grid-area: name; font-weight: 600; }
.cp-list small { grid-area: meta; font-size: .8125rem; color: var(--muted); }
.cp-list .state, .cp-list .toggle { grid-area: end; }
.cp-toggles li, .cp-chans li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name end" "meta end"; }
.cp-doc { grid-area: icon; display: grid; place-content: center; width: 2.4rem; height: 2.4rem; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: .6875rem; font-weight: 600; }
.toggle { position: relative; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--line); }
.toggle::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--card); transition: left .2s ease; }
.toggle.is-on { background: var(--signal); }
.toggle.is-on::after { left: 1.3rem; }
.cp-note { font-size: .875rem; color: var(--muted); }
.cp-note u { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.cp-stats p { padding: .8rem; border-radius: 12px; background: var(--paper); }
.cp-stats b { display: block; font: 900 1.7rem/1 var(--display); padding-top: .1em; }
.cp-stats span { font-size: .8125rem; color: var(--muted); }
.cp-bars { display: grid; gap: .45rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.cp-bars li { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .7rem; border-radius: 8px; overflow: hidden; font-size: .875rem; isolation: isolate; }
.cp-bars li::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: var(--v); background: color-mix(in srgb, var(--signal) 28%, var(--card)); }
.cp-bars b { font-weight: 600; }

.command-points { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.command-points li { padding-top: 1rem; border-top: 2px solid var(--ink); }
.command-points b { display: block; font: 800 1.35rem/1.1 var(--display); padding-top: .1em; }
.command-points span { display: block; margin-top: .4rem; color: var(--muted); }

/* ---------- formats ---------- */
.format-cards { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.fmt-media { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--stage); display: grid; place-items: center; }
.fmt-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.fmt-media svg { width: 62%; fill: rgba(242, 240, 247, .22); }
.fmt-video { background: linear-gradient(160deg, #3B3470 0%, var(--stage) 60%, #1C1838 100%); }
.fmt-video svg { align-self: end; width: 72%; }
.fmt-badge { position: absolute; top: .75rem; left: .75rem; display: flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(28, 24, 56, .7); color: var(--paper); font-size: .75rem; }
.fmt-badge i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--mint); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.fmt-image { background: var(--paper-2); }
.fmt-frame { width: 62%; aspect-ratio: 4 / 5; display: grid; place-items: end center; overflow: hidden; border: .55rem solid #C9B27A; border-radius: 4px; background: linear-gradient(180deg, #6E6A86 0%, #3F3A5E 100%); box-shadow: 0 14px 30px -14px rgba(28, 24, 56, .6), inset 0 0 0 2px rgba(0, 0, 0, .25); }
.fmt-frame svg { width: 88%; fill: rgba(242, 240, 247, .35); }
.fmt-wave { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; align-items: center; height: 1.8rem; }
.fmt-wave i { width: 4px; height: 35%; border-radius: 2px; background: var(--signal); animation: wave 1s ease-in-out infinite; }
.fmt-wave i:nth-child(2n) { animation-delay: -.35s; } .fmt-wave i:nth-child(3n) { animation-delay: -.6s; }
.fmt-voice { background: var(--ink); }
.fmt-wave-big { position: static; transform: none; height: 6rem; gap: 7px; }
.fmt-wave-big i { width: 9px; border-radius: 5px; background: var(--brand); }
.format h3 { margin-top: 1.1rem; font: 800 1.6rem/1.05 var(--display); padding-top: .1em; }
.format > p { margin-top: .5rem; color: var(--muted); }
.format .fmt-fit { margin-top: .75rem; font-size: .9375rem; color: var(--ink); }
.format .fmt-fit::before, .setup .setup-fmt::before { content: "Good fit: "; font-weight: 600; }
.setup .setup-fmt { margin-top: .75rem; font-size: .9375rem; color: var(--ink); }
.setup .setup-fmt::before { content: "Formats: "; }
.formats .fineprint, .command .fineprint { max-width: var(--max); }

/* ---------- channels ---------- */
.chan-grid { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.chan { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico state" "title title" "text text"; align-items: start; gap: .75rem; padding: 1.25rem; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); }
.chan .ico { grid-area: ico; width: 2.8rem; height: 2.8rem; padding: .6rem; border-radius: 50%; background: var(--ink); stroke: var(--mint); }
.chan .state { grid-area: state; justify-self: end; }
.chan h3 { grid-area: title; font: 800 1.35rem/1.1 var(--display); padding-top: .1em; }
.chan p { grid-area: text; margin-top: -.35rem; color: var(--muted); }
.chan p a { color: var(--ink); font-weight: 600; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.chan-link { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chan-link .ico { background: var(--stage); }
.chan-link p { color: rgba(242, 240, 247, .75); }
.chan-link p a { color: var(--paper); }
.chan-example { max-width: var(--max); margin: 1.5rem auto 0; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: baseline; padding: 1.25rem 1.5rem; border-radius: 18px; background: var(--brand); }
.chan-example-label { font: 800 .875rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.chan-example p:last-child { font-size: 1.125rem; }
.chan-example b { font-weight: 600; }

/* ---------- on set: film and TV ---------- */
.onset { background: var(--ink); color: var(--paper); }
.onset .section-head p:not(.kicker) { color: rgba(242, 240, 247, .78); max-width: 46rem; }
.set { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: stretch; }
.set-frame { position: relative; container-type: inline-size; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #050407; }
/* the picture is 2.39:1, letterboxed inside the 16:9 frame */
.set-scene { position: absolute; left: 0; right: 0; top: 12.8%; bottom: 12.8%; overflow: hidden; }
.lobby { position: absolute; inset: 0; background:
  radial-gradient(70% 60% at 62% 0%, rgba(255, 196, 130, .22), transparent 70%),
  repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 6.5%),
  linear-gradient(180deg, #2B1B12 0%, #3C2518 52%, #20140D 100%); }
/* grade: teal shadows, grain and vignette over everything except the subtitles */
.lobby::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; background:
  radial-gradient(120% 95% at 55% 45%, transparent 50%, rgba(0, 0, 0, .62) 100%),
  linear-gradient(180deg, rgba(18, 44, 56, .28), transparent 45%, rgba(10, 24, 34, .38)); }
.lobby::before { content: ""; position: absolute; inset: -50%; z-index: 6; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .5s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); } }
.bokeh { position: absolute; border-radius: 50%; filter: blur(3px); background: radial-gradient(circle, rgba(255, 205, 140, .85) 0%, rgba(255, 180, 110, .35) 45%, transparent 70%); }
.b1 { left: 30%; top: 8%; width: 3.2%; aspect-ratio: 1; } .b2 { left: 41%; top: 4%; width: 2.2%; aspect-ratio: 1; opacity: .7; }
.b3 { left: 47%; top: 14%; width: 4%; aspect-ratio: 1; opacity: .55; } .b4 { left: 79%; top: 6%; width: 2.8%; aspect-ratio: 1; }
.b5 { left: 88%; top: 16%; width: 4.4%; aspect-ratio: 1; opacity: .5; background: radial-gradient(circle, rgba(150, 200, 255, .7), transparent 70%); }
.b6 { left: 94%; top: 3%; width: 2%; aspect-ratio: 1; opacity: .8; }
.sconce { position: absolute; top: 18%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 160, .9) 0%, rgba(255, 170, 90, .3) 22%, transparent 62%); }
.s1 { left: 27%; } .s2 { left: 82%; }
.hotel-sign { position: absolute; left: 36%; top: 27%; color: #C9A46A; font: 600 1.25cqw/1 var(--display); letter-spacing: .45em; text-transform: uppercase; filter: blur(.6px); text-shadow: 0 0 10px rgba(255, 190, 110, .45); }
.counter { position: absolute; left: 0; right: 0; bottom: 0; height: 33%; background:
  linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%),
  repeating-linear-gradient(90deg, rgba(255, 220, 170, .05) 0 1px, transparent 1px 1.6%),
  linear-gradient(180deg, #2A170D 0%, #160C07 100%); }
.counter-top { position: absolute; left: 0; right: 0; top: -4%; height: 13%; background: linear-gradient(180deg, #E4D6BE 0%, #B9A588 55%, #6E5B45 100%); box-shadow: 0 6px 14px rgba(0, 0, 0, .55); }
.spill { position: absolute; left: 48.5%; top: -14%; width: 34%; height: 40%; background: radial-gradient(50% 50% at 50% 50%, rgba(150, 185, 255, .45), transparent 70%); mix-blend-mode: screen; }
.bell { position: absolute; left: 44%; bottom: 33.5%; width: 3.6%; fill: #C9A46A; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
.desk-screen { position: absolute; left: 56%; bottom: 34%; width: 17%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; border: .35cqw solid #0B0A10; background: #8C8C8C;
  box-shadow: 0 0 3cqw rgba(140, 175, 255, .45), 0 1.5cqw 2cqw -1cqw rgba(0, 0, 0, .8); }
.desk-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: saturate(.9) contrast(1.04) brightness(1.05); transition: opacity .35s ease; }
.desk-screen .set-video { transform: scale(1.16); transform-origin: 50% 0; }
.desk-screen .set-listen { opacity: 0; }
.set-frame:not(.is-talking) .desk-screen .set-listen { opacity: 1; }
.desk-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 40%), linear-gradient(180deg, rgba(120, 150, 255, .06), rgba(120, 150, 255, .16)); pointer-events: none; }
/* the guest, over the shoulder: out of focus, warm rim light from the lobby */
.guest { position: absolute; left: -5%; bottom: -2%; width: 40%; filter: blur(2.5px) drop-shadow(.3cqw -.2cqw .6cqw rgba(255, 170, 90, .5)); z-index: 4; }
.set-sub { position: absolute; z-index: 7; left: 50%; bottom: 7%; transform: translateX(-50%); width: max-content; max-width: 78%; text-align: center; color: #FFF; font: 500 clamp(.72rem, 2.05cqw, 1.2rem)/1.3 var(--body); text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .6); }
.set-sub b { display: block; margin-bottom: .2em; font-size: .62em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9FD9C3; }
.set-sub.is-guest b { color: #F2C08A; }
.set-sub.is-in { animation: sub-in .35s ease both; }
@keyframes sub-in { from { opacity: 0; } to { opacity: 1; } }
.set-hud { position: absolute; left: 0; right: 0; top: 0; height: 12.8%; display: flex; align-items: center; gap: 1.25rem; padding: 0 1rem; color: rgba(242, 240, 247, .8); font: 500 clamp(.56rem, 1.25cqw, .75rem)/1 ui-monospace, "SF Mono", Menlo, monospace; }
.set-hud b { font-weight: 500; }
.set-hud span:last-child { margin-left: auto; }
.set-hud-low { top: auto; bottom: 0; color: rgba(242, 240, 247, .5); }
.rec { display: flex; align-items: center; gap: .35rem; color: #FF8A8A; }
.rec i { width: .55rem; height: .55rem; border-radius: 50%; background: #FF5A5A; animation: blink 1.2s ease-in-out infinite; }
.cue { display: flex; flex-direction: column; padding: 1.25rem; border-radius: 18px; background: var(--stage); }
.cue-head { display: flex; justify-content: space-between; align-items: baseline; }
.cue-head b { font: 800 1.25rem/1 var(--display); padding-top: .1em; }
.cue-head span { font-size: .8125rem; color: rgba(242, 240, 247, .65); }
.cue ol { display: grid; gap: .5rem; margin: 1rem 0; padding: 0; list-style: none; counter-reset: cue; }
.cue li { counter-increment: cue; display: grid; grid-template-columns: 1.6rem 1fr; column-gap: .6rem; padding: .55rem .65rem; border-radius: 10px; background: rgba(242, 240, 247, .06); }
.cue li::before { content: counter(cue); grid-row: span 2; display: grid; place-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid rgba(242, 240, 247, .4); font: 800 .8rem/1 var(--display); padding-top: .1em; }
.cue li b { font-weight: 600; font-size: .9375rem; }
.cue li span { font-size: .8125rem; color: rgba(242, 240, 247, .65); }
.cue li.is-done { opacity: .55; }
.cue li.is-done::before { content: "✓"; background: var(--mint); border-color: var(--mint); color: var(--ink); }
.cue li.is-live { background: rgba(116, 133, 229, .22); box-shadow: inset 0 0 0 1.5px var(--signal); }
.cue li.is-live::before { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.cue-mode { display: flex; margin-top: auto; padding: .25rem; border-radius: 999px; background: rgba(242, 240, 247, .08); }
.cue-mode span { flex: 1; padding: .4rem; border-radius: 999px; text-align: center; font-size: .875rem; color: rgba(242, 240, 247, .7); }
.cue-mode .is-on { background: var(--paper); color: var(--ink); font-weight: 600; }
.onset .facts p { color: rgba(242, 240, 247, .75); }
.onset-cta { max-width: var(--max); margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.onset-cta p { color: rgba(242, 240, 247, .7); }

/* ---------- v3 responsive ---------- */
@media (max-width: 1180px) {
  .site-header .btn { margin-left: auto; }
  .format-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .command-grid { grid-template-columns: minmax(0, 1fr); }
  .command-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .console-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .console-side { padding: .75rem; }
  .console-deploy { padding: 0 .25rem .6rem; }
  .console-tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; margin: 0 -.75rem; padding: 0 .75rem; }
  .console-tabs::-webkit-scrollbar { display: none; }
  .console-tabs button { flex: none; padding: .45rem .7rem; }
  .cpanel { min-height: 24rem; }
  .cp-fields { grid-template-columns: 1fr; }
  .cp-stats b { font-size: 1.35rem; }
  .command-points { grid-template-columns: 1fr; }
  .chan-grid { grid-template-columns: 1fr; }
  .chan-example { grid-template-columns: 1fr; gap: .5rem; }
  .set-frame { border-radius: 12px; }
  .set-hud { gap: .75rem; padding: 0 .6rem; }
  .set-hud-low span:first-child { display: none; }
}
@media (max-width: 480px) {
  .format-cards { grid-template-columns: 1fr; max-width: 24rem; }
  .site-header { gap: 1rem; }
  .site-header .btn { white-space: nowrap; padding: 0 .9rem; }
  .cp-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- journeys ---------- */
.journeys { padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); }
.cp-stats span { display: block; margin-top: .3rem; line-height: 1.3; }
.journey { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: stretch; }
.j-stops { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); margin: 0; padding: 0; list-style: none; }
.j-stops::before { content: ""; position: absolute; left: 3rem; right: 3rem; top: 2rem; border-top: 3px dashed var(--signal); }
.j-stop { position: relative; display: flex; flex-direction: column; gap: .6rem; }
.j-place { display: flex; align-items: center; gap: .7rem; }
.j-place img { width: 4rem; height: 4rem; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #8C8C8C; box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--signal); }
.j-place span { font-size: .875rem; color: var(--muted); line-height: 1.25; background: var(--paper); padding-right: .4rem; }
.j-place b { display: block; font: 800 1.2rem/1.1 var(--display); color: var(--ink); padding-top: .1em; }
.j-say { padding: .75rem .9rem; border-radius: 14px; border-bottom-right-radius: 4px; background: var(--ink); color: var(--paper); font-size: .9375rem; line-height: 1.4; }
.j-event { align-self: flex-start; padding: .3rem .75rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.j-choice { background: var(--mint); }
.j-scan { background: color-mix(in srgb, var(--r-will, #C4A8F2) 45%, var(--card)); }
.j-scan::before { content: "⌁ "; }
.j-record { display: flex; flex-direction: column; padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); }
.j-record-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.j-record-head b { font: 800 1.15rem/1 var(--display); padding-top: .1em; }
.j-record-head span { font: 500 .75rem/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); }
.j-record ul { display: grid; gap: .4rem; margin: .9rem 0; padding: 0; list-style: none; }
.j-record li { padding: .4rem .6rem; border-radius: 8px; background: var(--paper); font-size: .875rem; }
.j-record li.is-new { background: color-mix(in srgb, var(--signal) 22%, var(--card)); }
.j-record-foot { margin-top: auto; font-size: .8125rem; color: var(--muted); }
.j-points { max-width: var(--max); margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.j-points li { padding-top: 1rem; border-top: 2px solid var(--ink); }
.j-points p { margin-top: .4rem; color: var(--muted); }
.journeys .fineprint { max-width: var(--max); }
@media (max-width: 1020px) {
  .journey { grid-template-columns: minmax(0, 1fr); }
  .j-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .j-stops { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .j-stops::before { left: 2rem; right: auto; top: 2rem; bottom: 2rem; border-top: 0; border-left: 3px dashed var(--signal); }
  .j-stop { padding-left: 0; }
  .j-say, .j-event { margin-left: 4.7rem; }
  .j-event { align-self: flex-start; }
}
@media (max-width: 480px) {
  .j-points { grid-template-columns: 1fr; }
}

/* ---------- taught in advance ---------- */
.taught { padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); background: var(--paper-2); }
.command { background: var(--paper); }
.formats { background: var(--paper-2); }
.decide { max-width: var(--max); margin: 0 auto; display: grid; justify-items: center; gap: 1.6rem; }
.d-in span, .d-q span { position: relative; display: inline-block; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600; text-align: center; }
.d-in span { background: var(--mint); }
.d-q span { background: var(--ink); color: var(--paper); font: 800 1.15rem/1.2 var(--display); padding-top: .8rem; }
.d-in, .d-q { position: relative; }
.d-in::after, .d-q::after { content: ""; position: absolute; left: 50%; top: 100%; height: 1.6rem; border-left: 3px solid var(--signal); }
.d-branches { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.25rem; padding-top: 1.6rem; }
.d-branches::before { content: ""; position: absolute; top: 0; left: 30%; right: 20%; height: 1.6rem; border: 3px solid var(--signal); border-bottom: 0; border-radius: 14px 14px 0 0; }
.d-yes, .d-no { padding: 1.25rem 1.4rem; border-radius: 18px; }
.d-yes { background: var(--ink); color: var(--paper); }
.d-no { background: var(--card); border: 1.5px dashed var(--line); }
.d-label { font: 800 .8125rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding-top: .1em; }
.d-yes .d-label { color: var(--mint); }
.d-no .d-label { color: var(--muted); }
.d-yes h3, .d-no h3 { margin-top: .5rem; font: 800 1.5rem/1.1 var(--display); padding-top: .1em; }
.decide ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.decide li { padding: .3rem .75rem; border-radius: 999px; font-size: .875rem; font-weight: 500; }
.d-yes li { background: rgba(166, 216, 200, .16); color: var(--paper); }
.d-no li { background: var(--paper-2); }
.t-points { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.green { max-width: var(--max); margin: clamp(3rem, 6vw, 4.5rem) auto 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: 24px; background: #1F3B34; color: var(--paper); }
.green .kicker { color: var(--mint); }
.green h3 { font: 900 clamp(1.8rem, 3.4vw, 2.75rem)/1.02 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.green-head p:last-child { margin-top: 1rem; color: rgba(242, 240, 247, .8); max-width: 38rem; }
.green-list { display: grid; gap: 1rem; align-content: center; margin: 0; padding: 0; list-style: none; }
.green-list li { padding: 1rem 1.1rem; border-radius: 14px; background: rgba(166, 216, 200, .1); border: 1.5px solid rgba(166, 216, 200, .25); }
.green-list b { display: block; font: 800 1.15rem/1.1 var(--display); color: var(--mint); padding-top: .1em; }
.green-list span { display: block; margin-top: .3rem; font-size: .9375rem; color: rgba(242, 240, 247, .8); }

@media (max-width: 1020px) {
  .green { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .d-branches { grid-template-columns: minmax(0, 1fr); }
  .d-branches::before { left: 50%; right: auto; border: 0; border-left: 3px solid var(--signal); border-radius: 0; }
  .d-q span { font-size: 1rem; }
}

/* ---------- three pillars (hero headline + overview) ---------- */
.hero h1.h1-three { font-size: clamp(2.5rem, 4.6vw, 4.6rem); line-height: .98; }
.h1-three span { display: block; }
.h1-three span:last-child { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

.pillars { padding: clamp(3.5rem, 7vw, 6rem) var(--gutter); }
.pillar-list { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.pillar { display: flex; flex-direction: column; padding-top: 1.25rem; border-top: 3px solid var(--ink); }
.pillar-n { font: 900 2.5rem/1 var(--display); background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content; }
.pillar h2 { margin-top: .6rem; font-size: clamp(1.9rem, 3vw, 2.5rem); }
.pillar p:not(.pillar-n) { margin-top: .75rem; color: var(--muted); }
.pillar a { margin-top: auto; padding-top: 1rem; font-weight: 600; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pillar a::after { content: " →"; }

/* kickers: periwinkle on light sections, mint on dark ones */
.section-head .kicker { color: #5160C4; }
.reacts .section-head .kicker, .onset .section-head .kicker { color: var(--mint); }

/* section rhythm */
.knowledge, .greenband { padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); }
.knowledge { background: var(--paper-2); }
.knowledge .tools { margin-top: 0; }
.formats { background: var(--paper); }
.taught { background: var(--paper-2); }
.journeys { background: var(--paper-2); }
.greenband { background: var(--paper); }
.greenband .green { margin-top: 0; }
.command { background: var(--paper-2); }
.runs { background: var(--paper-2); }

@media (max-width: 1020px) {
  .pillar-list { grid-template-columns: minmax(0, 1fr); max-width: 34rem; }
  .knowledge .tools, .knowledge .rules { max-width: 34rem; }
}
.knowledge { --r-hear: #7CC6E8; --r-see: #F7D488; --r-feel: #F0A8A8; --r-think: #8E9BF0; --r-will: #C4A8F2; --r-touch: #F4B08A; --r-speak: #8FD9BF; --r-express: #F2C4D6; }

/* format cards: live clips */
.fmt-clip { width: 100%; height: 100%; object-fit: cover; display: block; }
.fmt-clip-top { object-position: 50% 0; }
.fmt-video { background: #3E8F8C; }
.fmt-frame { place-items: stretch; }
.fmt-frame .fmt-clip { filter: sepia(.18) contrast(1.02); }

@media (prefers-reduced-motion: reduce) { .lobby::before { animation: none; } }

/* ---------- the mascot that talks back ---------- */
.mascot { padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); background: linear-gradient(160deg, #E9F6F0 0%, #EEEBFA 100%); overflow: hidden; }
.mascot-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.mascot .kicker { color: #5160C4; }
.mascot h2 { margin-top: .5rem; font: 800 clamp(2.2rem, 4.4vw, 3.6rem)/1 var(--display); padding-top: .08em; letter-spacing: -.01em; }
.mascot-lead { margin-top: 1.1rem; font-size: 1.1875rem; color: var(--muted); max-width: 34rem; }
.mascot-points { margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.75rem; }
.mascot-points li { padding-top: .9rem; border-top: 2px solid var(--ink); }
.mascot-points li:nth-child(3) { grid-column: 1 / -1; }
.mascot-points h3 { font: 800 1.15rem/1.1 var(--display); padding-top: .1em; }
.mascot-points p { margin-top: .35rem; font-size: .9375rem; color: var(--muted); }
.booth { position: relative; aspect-ratio: 5 / 6; container-type: inline-size; border-radius: 28px; overflow: hidden;
  background: radial-gradient(60% 45% at 50% 30%, rgba(255, 255, 255, .9), transparent 70%), linear-gradient(180deg, #F7F1FF 0%, #E4DDF7 70%, #D5CDEE 70.2%, #CFC6EA 100%); box-shadow: 0 30px 60px -30px rgba(28, 24, 56, .35); }
.bunting { position: absolute; left: -2%; right: -2%; top: 3%; display: flex; justify-content: space-between; }
.bunting i { width: 9%; aspect-ratio: 1 / 1.1; clip-path: polygon(0 0, 100% 0, 50% 100%); background: #8E9BF0; }
.bunting i:nth-child(3n+2) { background: #8FD9BF; } .bunting i:nth-child(3n) { background: #F2C4D6; }
.bunting::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(28, 24, 56, .3); }
.kiosk { position: absolute; left: 41%; bottom: 8%; width: 46%; display: flex; flex-direction: column; align-items: center; }
.kiosk-screen { position: relative; width: 100%; aspect-ratio: 9 / 15; border-radius: 4.5cqw; border: 2.2cqw solid var(--ink); overflow: hidden;
  background: radial-gradient(80% 50% at 50% 35%, #FFFFFF, transparent 70%), linear-gradient(180deg, #D9F1FF 0%, #EAF7F1 65%, #BFE7D6 65.2%, #A9DCC6 100%); box-shadow: 0 0 0 .6cqw rgba(255, 255, 255, .6) inset; }
.kiosk-name { position: absolute; left: 50%; top: 5%; transform: translateX(-50%); padding: .3em .9em; border-radius: 999px; background: rgba(28, 24, 56, .8); color: #fff; font: 700 2.6cqw/1 var(--display); padding-top: .4em; }
.kiosk-stand { width: 18%; height: 8cqw; background: linear-gradient(90deg, #2B2650, var(--ink)); }
.kiosk-stand::after { content: ""; display: block; width: 300%; margin-left: -100%; height: 1.6cqw; margin-top: 8cqw; border-radius: 1cqw; background: var(--ink); transform: translateY(-1.6cqw); }
.pip { position: absolute; left: 0; bottom: 5%; width: 100%; overflow: visible; }
.pip-shadow { fill: rgba(28, 24, 56, .18); }
.pip-ear, .pip-arm { transform-box: view-box; }
.kid { position: absolute; left: 17%; bottom: 0; width: 24%; fill: #2B2650; transform: scaleX(-1); }
.bubble { position: absolute; margin: 0; max-width: 46%; padding: .65em .9em; border-radius: 16px; font: 500 clamp(.8rem, 3.1cqw, 1.05rem)/1.3 var(--body); box-shadow: 0 10px 24px -14px rgba(28, 24, 56, .5);
  opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .3s ease, transform .3s ease; }
.bubble.is-on { opacity: 1; transform: none; }
.bubble-kid { left: 4%; top: 46%; background: #F2C4D6; color: var(--ink); border-bottom-left-radius: 4px; }
.bubble-pip { right: 4%; top: 12%; max-width: 50%; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
@media (max-width: 1020px) {
  .mascot-grid { grid-template-columns: minmax(0, 1fr); }
  .booth { max-width: 30rem; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) { .mascot-points { grid-template-columns: minmax(0, 1fr); } }


/* =====================================================================
   v3 as a site: shared chrome and the blocks the pages are built from
   ===================================================================== */

/* ---------- header: two menus and two links ---------- */
.nav-list { display: flex; align-items: center; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.nav-top, .nav-link { padding: .5rem 0; border: 0; background: none; font: 500 1rem/1.2 var(--body); color: var(--muted); text-decoration: none; }
.nav-top:hover, .nav-link:hover, .nav-group.is-open .nav-top, .nav-group[data-current] .nav-top, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-group[data-current] .nav-top, .nav-link[aria-current="page"] { font-weight: 600; }
.nav-top::after { content: ""; display: inline-block; width: .45em; height: .45em; margin: 0 0 .18em .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.nav-group.is-open .nav-top::after { transform: rotate(-135deg); margin-bottom: -.05em; }
.nav-group { position: relative; }
.nav-menu { position: absolute; top: calc(100% + .6rem); left: -1.25rem; z-index: 30; display: none; gap: .15rem; width: 23rem; margin: 0; padding: .6rem; list-style: none; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 28px 55px -26px rgba(28, 24, 56, .5); }
.nav-group.is-open .nav-menu { display: grid; }
.nav-menu a { display: grid; gap: .1rem; padding: .6rem .85rem; border-radius: 12px; text-decoration: none; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--paper-2); }
.nav-menu b { font-weight: 600; color: var(--ink); }
.nav-menu span { font-size: .875rem; line-height: 1.35; color: var(--muted); }
.nav-toggle { display: none; min-height: 2.5rem; padding: 0 1rem; border: 2px solid var(--ink); border-radius: 999px; background: none; font: 600 .9375rem/1 var(--body); }

/* ---------- page head (every page but the front page) ---------- */
.page-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(3.5rem, 7vw, 6rem) max(var(--gutter), calc((100vw - var(--max)) / 2)); background: var(--ink); color: var(--paper); }
.page-hero h1 { font: 900 clamp(2.5rem, 5vw, 4.4rem)/.98 var(--display); letter-spacing: -.025em; text-wrap: balance; padding-top: .06em; }
.page-lead { margin-top: 1.25rem; max-width: 34rem; font-size: 1.25rem; line-height: 1.5; color: rgba(242, 240, 247, .86); }
.page-hero-media { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: #8C8C8C; box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .7); }
.page-hero-tall { justify-self: end; width: min(100%, 25rem); aspect-ratio: 4 / 5; }
.page-hero-light { grid-template-columns: minmax(0, 1fr); padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); background: var(--paper); color: var(--ink); }
.page-hero-light .kicker { color: #5160C4; }
.page-hero-light .page-lead { max-width: 46rem; color: var(--muted); }
.page-hero-slim { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
.hero-bubble { position: absolute; z-index: 3; max-width: 72%; padding: .55rem .85rem; border-radius: 14px; font-size: .9375rem; line-height: 1.35; }
.hero-bubble-q { left: 5%; bottom: 25%; background: var(--mint); color: var(--ink); border-bottom-left-radius: 4px; }
.hero-bubble-a { right: 5%; bottom: 7%; background: rgba(28, 24, 56, .88); color: #fff; border-bottom-right-radius: 4px; }

/* ---------- front page: in use ---------- */
.inuse, .where, .why, .jobs, .takes, .scene, .split, .refcase, .about, .reach, .knowledge-tools { padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); }
.inuse-list { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.inuse-list li { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--card); border: 1.5px solid var(--line); }
.inuse-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.inuse-list li > div { padding: 1.25rem 1.4rem 1.5rem; }
.inuse-kind { font: 800 .75rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #5160C4; padding-top: .1em; }
.inuse-list h3 { margin-top: .5rem; font: 800 1.5rem/1.1 var(--display); padding-top: .1em; }
.inuse-list h3 + p { margin-top: .4rem; color: var(--muted); }
.inuse-list .inuse-text { justify-content: flex-end; min-height: 16rem; border: 0; background: linear-gradient(150deg, #2A2452 0%, #3B3470 55%, #5A6BD0 100%); color: var(--paper); }
.inuse-text .inuse-kind { color: var(--mint); }
.inuse-list .inuse-text h3 + p { color: rgba(242, 240, 247, .82); }

/* ---------- front page: where it works ---------- */
.where { background: var(--paper-2); }
.where-list { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2rem); }
.where-card { display: grid; gap: .35rem; text-decoration: none; }
.where-media { position: relative; container-type: inline-size; aspect-ratio: 4 / 3; margin-bottom: .75rem; border-radius: 20px; overflow: hidden; background: #8C8C8C; transition: transform .2s ease, box-shadow .2s ease; }
.where-card:hover .where-media { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(28, 24, 56, .55); }
.where-card b { font: 800 1.5rem/1.1 var(--display); padding-top: .1em; }
.where-card b::after { content: " →"; color: var(--signal); }
.where-card > span { color: var(--muted); }
.where-pip, .split-pip { display: grid; place-items: end center; background: radial-gradient(60% 50% at 50% 35%, #fff, transparent 70%), linear-gradient(180deg, #D9F1FF 0%, #EAF7F1 68%, #BFE7D6 68.2%, #A9DCC6 100%); }
.pip-still { width: 48%; margin-bottom: 4%; }
.where-film { background: #050407; }
.where-film .lobby { inset: 13% 0; overflow: hidden; }
.where-film .desk-screen { left: 54%; width: 21%; }
.where-rec { position: absolute; left: 4%; top: 3.5%; font: 500 2.6cqw/1 ui-monospace, "SF Mono", Menlo, monospace; color: #FF8A8A; font-style: normal; }
.where-rec::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .45em; border-radius: 50%; background: #FF5A5A; }

/* a reception desk in daylight (front-page card and the reception page) */
.desk { position: absolute; inset: 0; container-type: inline-size; overflow: hidden; background: linear-gradient(180deg, #F4ECDD 0%, #EADFCB 100%); }
.desk-window { position: absolute; left: 6%; top: 9%; width: 30%; height: 46%; border-radius: 1cqw; background: linear-gradient(160deg, #BFE2FF 0%, #EAF6FF 70%); box-shadow: inset 0 0 0 .9cqw #fff, 0 0 7cqw rgba(255, 255, 255, .9); }
.desk-window::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: .8cqw; margin-left: -.4cqw; background: #fff; }
.desk-sign { position: absolute; right: 7%; top: 12%; font: 800 2.5cqw/1 var(--display); letter-spacing: .38em; text-transform: uppercase; color: #9A7B4F; }
.desk-plant { position: absolute; right: 9%; bottom: 37.5%; width: 9%; aspect-ratio: 1 / 1.7; background: radial-gradient(ellipse 50% 36% at 50% 36%, #4F9E7C 0 98%, transparent 100%), radial-gradient(ellipse 30% 26% at 24% 50%, #64B391 0 98%, transparent 100%), radial-gradient(ellipse 30% 26% at 76% 48%, #3F8B6B 0 98%, transparent 100%), linear-gradient(#B9895B, #9A6E45) 50% 100% / 44% 30% no-repeat; z-index: 2; }
.desk-counter { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 1; background: repeating-linear-gradient(90deg, rgba(60, 35, 15, .1) 0 1px, transparent 1px 2.2%), linear-gradient(180deg, #FBF6EC 0 13%, #6E4D31 13% 15%, #A67C52 15% 100%); box-shadow: 0 -1.2cqw 2.5cqw rgba(70, 45, 20, .16); }
.desk-screen-day { position: absolute; left: 43%; bottom: 35%; z-index: 2; width: 24%; aspect-ratio: 3 / 4; overflow: hidden; border: .9cqw solid var(--ink); border-radius: 1.6cqw; background: #8C8C8C; box-shadow: 0 2.5cqw 3cqw -1.8cqw rgba(50, 30, 10, .6); }
.bell.bell-day { left: 28%; bottom: 35.5%; z-index: 2; width: 6.5%; }

/* ---------- front page: why ---------- */
.why { background: var(--ink); color: var(--paper); }
.why .section-head .kicker { color: var(--mint); }
.why-list { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); counter-reset: why; }
.why-list li { counter-increment: why; display: flex; flex-direction: column; padding-top: 1.25rem; border-top: 3px solid rgba(242, 240, 247, .25); }
.why-list li::before { content: counter(why); font: 900 2.5rem/1 var(--display); background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content; }
.why-list h3 { margin-top: .6rem; font: 800 clamp(1.6rem, 2.4vw, 2rem)/1.05 var(--display); padding-top: .1em; }
.why-list p { margin-top: .75rem; color: rgba(242, 240, 247, .8); }
.why-list a, .why-green a { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--paper); text-decoration-color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.why-list a::after, .text-link::after { content: " →"; }
.why-green { max-width: var(--max); margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; padding: 1.15rem 1.5rem; border-radius: 18px; background: #1E3A32; color: #D8EFE5; }
.why-green b { color: #A6E3C8; }
.why-green a { padding: 0; white-space: nowrap; }

/* ---------- playground: what the visitor said ---------- */
.pad-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.key { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: .3rem; min-height: 6rem; padding-top: 1.7rem; }
.key small { font: 500 .9375rem/1.3 var(--body); }
.key b { font: 800 .75rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.stage-visitor { position: absolute; z-index: 2; top: 3.9rem; left: 1rem; max-width: 72%; margin: 0; padding: .5rem .8rem; border-radius: 14px 14px 14px 4px; background: var(--mint); color: var(--ink); font-size: .9375rem; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.stage-visitor span { display: block; font-size: .6875rem; font-weight: 600; opacity: .7; }
.stage-visitor em { font-style: normal; }
.stage.has-visitor .stage-visitor { opacity: 1; transform: none; }
.stage.has-visitor .stage-react { top: 8.6rem; }
.fineprint a { color: inherit; font-weight: 600; }

/* ---------- solution pages ---------- */
.jobs > h2, .takes > h2, .reach > h2 { max-width: var(--max); margin: 0 auto clamp(1.75rem, 3.5vw, 2.75rem); }
.jobs-list { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); counter-reset: job; }
.jobs-list li { counter-increment: job; padding-top: 1.25rem; border-top: 3px solid var(--ink); }
.jobs-list li::before { content: counter(job); font: 900 2.5rem/1 var(--display); background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; width: max-content; }
.jobs-list h3 { margin-top: .6rem; font: 800 clamp(1.5rem, 2.3vw, 1.9rem)/1.05 var(--display); padding-top: .1em; }
.jobs-list p { margin-top: .65rem; color: var(--muted); }

.takes { background: var(--paper-2); }
.takes-list { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem clamp(1.25rem, 3vw, 2rem); }
.takes-list div { padding: 1.25rem 1.4rem; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); }
.takes-list dt { font: 800 1.3rem/1.1 var(--display); padding-top: .1em; }
.takes-list dd { margin: .45rem 0 0; color: var(--muted); }
.takes-list a, .text-link { font-weight: 600; color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
.takes-list a::after { content: " →"; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.split-mint { background: linear-gradient(160deg, #E9F6F0 0%, #EEEBFA 100%); }
.split-media { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; }
.split-portrait { display: grid; place-items: center; background: var(--paper-2); }
.split-portrait .fmt-frame { width: 36%; }
.split-pip .pip-still { width: 40%; }
.split-card { aspect-ratio: auto; overflow: visible; justify-self: center; width: min(100%, 19rem); }
.split-card .use-card > :not(.use-media) { display: none; }
.split-copy .kicker { color: #5160C4; }
.split-copy p:not(.kicker) { margin-top: 1rem; max-width: 34rem; font-size: 1.125rem; color: var(--muted); }
.split-copy .text-link { display: inline-block; margin-top: 1.25rem; }

.scene-one { max-width: 58rem; margin: 0 auto; }
.scene .section-head { max-width: 58rem; }

.refcase { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.refcase img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: 22px; }
.refcase .kicker { color: #5160C4; }
.refcase p:not(.kicker) { margin-top: .9rem; max-width: 38rem; font-size: 1.125rem; color: var(--muted); }
.refcase .text-link { display: inline-block; margin-top: 1.1rem; }
.refcase-text { grid-template-columns: minmax(0, 1fr); }
.refcase-text > div { padding-left: clamp(1.25rem, 3vw, 2rem); border-left: 4px solid var(--signal); }

/* ---------- next steps at the foot of a page ---------- */
.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; padding: clamp(2.5rem, 5vw, 4rem) max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.next a { display: grid; gap: .3rem; padding: 1.25rem 1.4rem; border: 1.5px solid var(--line); border-radius: 18px; background: var(--card); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.next a:hover { border-color: var(--ink); transform: translateY(-2px); }
.next span { font: 800 .75rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #5160C4; padding-top: .1em; }
.next b { font: 800 1.45rem/1.1 var(--display); padding-top: .1em; }
.next b::after { content: " →"; color: var(--signal); }
.next i { font-style: normal; color: var(--muted); }
.next-dark { background: var(--ink); }
.next-dark a { border-color: rgba(242, 240, 247, .2); background: rgba(242, 240, 247, .06); color: var(--paper); }
.next-dark a:hover { border-color: var(--paper); }
.next-dark span { color: var(--mint); } .next-dark i { color: rgba(242, 240, 247, .7); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.about-copy p { margin-top: 1.1rem; font-size: 1.125rem; color: var(--muted); }
.about-facts { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.about-facts li { padding-top: 1rem; border-top: 2px solid var(--ink); }
.about-facts b { display: block; font: 800 1.3rem/1.1 var(--display); padding-top: .1em; }
.about-facts span { display: block; margin-top: .35rem; color: var(--muted); }
.reach { background: var(--paper); }
.inuse { background: var(--paper-2); }
.inuse-list .inuse-text-alt { background: linear-gradient(150deg, #1E3A32 0%, #2B5A4C 55%, #5FAE8B 100%); }
.inuse-list h3 { text-wrap: balance; }
.reach-list { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.reach-list li { display: grid; gap: .4rem; padding: 1.25rem 1.4rem; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); }
.reach-list span { font: 800 .75rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #5160C4; padding-top: .1em; }
.reach-list a { font-weight: 600; overflow-wrap: anywhere; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- tools table: plain words first, the call as small print ---------- */
.t-call b { display: block; font-weight: 600; }
.t-call b + code { display: block; margin-top: .25rem; font-size: .75rem; opacity: .75; }
.knowledge-tools .tools { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer-brand p { margin-top: 1rem; max-width: 20rem; }
.site-footer h2 { font: 800 .8125rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); padding-top: .1em; }
.site-footer ul { display: grid; gap: .5rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(242, 240, 247, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { max-width: var(--max); margin: clamp(2rem, 4vw, 3rem) auto 0; padding-top: 1.25rem; border-top: 1px solid rgba(242, 240, 247, .15); }

/* ---------- site responsive ---------- */
@media (max-width: 900px) {
  .site-header { gap: .75rem; }
  .site-header .btn { margin-left: auto; }
  .nav-toggle { display: inline-flex; align-items: center; order: 3; }
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 4.5rem); max-height: calc(100dvh - 4.5rem); overflow-y: auto; margin: 0; padding: 1.25rem var(--gutter) 2rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(28, 24, 56, .4); }
  .site-header.is-open nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .nav-top { pointer-events: none; padding: 0; font: 800 .8125rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #5160C4; }
  .nav-top::after { display: none; }
  .nav-menu { position: static; display: grid; width: auto; margin-top: .6rem; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .nav-menu a { padding: .5rem 0; }
  .nav-link { font-size: 1.125rem; font-weight: 600; color: var(--ink); }
  .page-hero, .split, .refcase, .about { grid-template-columns: minmax(0, 1fr); }
  .page-hero-tall { justify-self: start; }
  .inuse-list, .where-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-list, .jobs-list { grid-template-columns: minmax(0, 1fr); }
  .takes-list { grid-template-columns: minmax(0, 1fr); }
  .reach-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .inuse-list, .where-list, .reach-list { grid-template-columns: minmax(0, 1fr); }
  .inuse-list .inuse-text { min-height: 0; }
  .pad-keys { grid-template-columns: minmax(0, 1fr); }
  .key { min-height: 4.5rem; }
  .page-lead { font-size: 1.125rem; }
  .hero-bubble { font-size: .8125rem; }
}

/* a page whose head already says what the section's own head says */
.no-head .section-head { display: none; }
.no-head .onset { padding-top: clamp(2rem, 4vw, 3rem); }
.page-hero-slim .page-lead { max-width: 46rem; }

/* pillar pages: the page title already names the pillar */
.no-kicker .section-head > .kicker, .no-kicker .mascot .kicker { display: none; }
.pillar-ico { width: 2.9rem; height: 2.9rem; padding: .6rem; margin-bottom: 1rem; border-radius: 50%; background: var(--ink); stroke: var(--mint); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- How it works: one fixed order ---------- */
.how-nav, .sol-nav { padding: 1rem max(var(--gutter), calc((100vw - var(--max)) / 2)) 0; background: var(--paper); }
.how-nav ol { display: flex; gap: .5rem; margin: 0; padding: 0 0 .25rem; list-style: none; overflow-x: auto; scrollbar-width: none; counter-reset: how; }
.how-nav ol::-webkit-scrollbar { display: none; }
.how-nav li { counter-increment: how; flex: none; }
.how-nav a { display: flex; align-items: center; gap: .55rem; padding: .45rem .95rem .45rem .5rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.how-nav a::before { content: counter(how); display: grid; place-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--paper-2); font: 800 .85rem/1 var(--display); padding-top: .12em; color: var(--ink); }
.how-nav a:hover { border-color: var(--ink); color: var(--ink); }
.how-nav a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.how-nav a[aria-current="page"]::before { background: var(--brand); }
.how-nav + .page-hero-light, .sol-nav + .page-hero-light { padding-top: clamp(2rem, 4vw, 3.25rem); }
/* Solutions: the same bar, without numbers, above the dark page hero */
.sol-nav ul { display: flex; gap: .5rem; margin: 0; padding: 0 0 .25rem; list-style: none; overflow-x: auto; scrollbar-width: none; }
.sol-nav ul::-webkit-scrollbar { display: none; }
.sol-nav li { flex: none; }
.sol-nav a { display: flex; align-items: center; padding: .55rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.sol-nav a:hover { border-color: var(--ink); color: var(--ink); }
.sol-nav a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pager { display: flex; justify-content: space-between; gap: 1rem; padding: clamp(2.5rem, 5vw, 4rem) max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.pager a { display: grid; gap: .3rem; text-decoration: none; }
.pager span { font: 800 .75rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #5160C4; padding-top: .1em; }
.pager b { font: 800 clamp(1.4rem, 2.6vw, 2rem)/1.1 var(--display); padding-top: .1em; }
.pager-prev b::before { content: "← "; color: var(--signal); }
.pager-next { margin-left: auto; text-align: right; }
.pager-next b::after { content: " →"; color: var(--signal); }
.pager a:hover b { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---------- about: the founder's story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding: clamp(2.5rem, 5vw, 4rem) max(var(--gutter), calc((100vw - var(--max)) / 2)) clamp(3.5rem, 8vw, 6.5rem); }
.story-side { position: sticky; top: 5.5rem; }
.story-portrait { margin: 0; }
.story-portrait video { aspect-ratio: 4 / 5; border-radius: 22px; background: #3E8F8C; }
.story-portrait figcaption { margin-top: .6rem; font-size: .875rem; color: var(--muted); }
.story-facts { display: grid; gap: .9rem; margin: 1.75rem 0 0; }
.story-facts div { padding-top: .8rem; border-top: 2px solid var(--ink); }
.story-facts dt { font: 800 .75rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #5160C4; padding-top: .1em; }
.story-facts dd { margin: .35rem 0 0; font-weight: 500; }
.story-copy { max-width: 40rem; }
.story-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.story-copy h2:not(:first-child) { margin-top: clamp(2.25rem, 4vw, 3rem); }
.story-copy p { margin-top: 1rem; font-size: 1.1875rem; line-height: 1.6; color: var(--muted); }
.refcase-two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.refcase-two h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
@media (max-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-side { position: static; display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
  .story-facts { margin-top: 0; }
  .refcase-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .pager b { font-size: 1.25rem; } }

/* ---------- about: one image ---------- */
.about-hero { position: relative; display: flex; align-items: center; min-height: min(90vh, 900px); overflow: hidden; background: #0C0A1C; color: var(--paper); }
.about-hero picture, .about-hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-hero img { object-fit: cover; object-position: 72% 30%; }
.about-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 10, 28, .92) 0%, rgba(12, 10, 28, .7) 30%, rgba(12, 10, 28, 0) 56%); pointer-events: none; }
.about-hero-copy { position: relative; z-index: 1; width: min(36rem, 46vw); margin-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding: 4rem 0; }
.about-hero h1 { font: 900 clamp(2.5rem, 5vw, 4.4rem)/.98 var(--display); letter-spacing: -.025em; text-wrap: balance; padding-top: .06em; }
.story-side .story-facts { margin-top: 0; }
.story-note { margin-top: 1.5rem; font-size: .875rem; color: var(--muted); }
@media (max-width: 900px) {
  .story-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .about-hero { display: block; min-height: 0; }
  .about-hero picture { position: relative; display: block; aspect-ratio: 1 / 1; }
  .about-hero img { object-position: 82% 30%; }
  .about-hero::after { display: none; }
  .about-hero-copy { width: auto; margin: 0; padding: 2rem var(--gutter) 2.75rem; }
}

/* about: Christoffer in numbers */
.stats { padding: clamp(1.75rem, 3.5vw, 2.5rem) max(var(--gutter), calc((100vw - var(--max)) / 2)); background: var(--ink); color: var(--paper); }
.stats ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.stats b { display: block; width: max-content; max-width: 100%; font: 900 clamp(2.2rem, 4.4vw, 3.6rem)/1 var(--display); letter-spacing: -.02em; padding-top: .08em; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: .4rem; color: rgba(242, 240, 247, .8); }
@media (max-width: 760px) { .stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.inuse-list img.inuse-left { object-position: 12% 38%; }
/* the film scene is drawn, and says so */
.onset .set + .fineprint { color: rgba(242, 240, 247, .6); }

/* ---------- privacy and other plain text pages ---------- */
.legal { padding: clamp(1rem, 3vw, 2rem) max(var(--gutter), calc((100vw - var(--max)) / 2)) clamp(4rem, 9vw, 7rem); }
.legal > * { max-width: 44rem; }
.legal h2 { margin-top: clamp(2.25rem, 4vw, 3rem); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.legal p, .legal ul { margin-top: 1rem; font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.legal ul { display: grid; gap: .75rem; padding-left: 1.25rem; }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); font-weight: 600; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.legal .legal-date { margin-top: 2.5rem; font-size: .9375rem; }

/* ---------- cookie notice: small and quiet ---------- */
.linklike { padding: 0; border: 0; background: none; font: inherit; color: rgba(242, 240, 247, .82); text-align: left; cursor: pointer; }
.linklike:hover { color: #fff; text-decoration: underline; }
.consent { position: fixed; z-index: 40; left: max(.875rem, env(safe-area-inset-left)); bottom: max(.875rem, env(safe-area-inset-bottom)); width: min(21rem, calc(100vw - 1.75rem)); padding: .8rem .95rem .7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 14px 34px -18px rgba(28, 24, 56, .45); opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.consent.is-in { opacity: 1; transform: none; }
.consent p { margin: 0; font-size: .875rem; line-height: 1.4; color: var(--muted); }
.consent-actions { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; }
.consent-actions button { min-height: 2rem; padding: 0 .9rem; border: 1.5px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font: 600 .8125rem/1 var(--body); }
.consent-actions button:hover { background: var(--ink); color: var(--paper); }
.consent-actions a { margin-left: auto; font-size: .8125rem; color: var(--muted); text-decoration-color: var(--line); text-underline-offset: 3px; }
.consent-actions a:hover { color: var(--ink); }
.consent-toast { position: fixed; z-index: 40; left: max(.875rem, env(safe-area-inset-left)); bottom: max(.875rem, env(safe-area-inset-bottom)); max-width: min(21rem, calc(100vw - 1.75rem)); margin: 0; padding: .55rem .9rem; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: .8125rem; line-height: 1.4; opacity: 0; transition: opacity .25s ease; }
.consent-toast.is-in { opacity: 1; }
@media (max-width: 560px) { .consent { left: .5rem; right: .5rem; bottom: .5rem; width: auto; } .consent-toast { left: .5rem; right: .5rem; bottom: .5rem; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .consent, .consent-toast { transition: none; } }
