/* ==========================================================================
   Cornerman AI Reception
   Colour rule: BLUE is Cornerman acting. ORANGE is a call nobody answered.
   One signature: a single line of sound (hero, scroll progress, every voice).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800; font-stretch: 72% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic-var.woff2") format("woff2");
  font-weight: 380 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 99.2%; ascent-override: 88.5%; descent-override: 21.2%; line-gap-override: 0%;
}

:root {
  --navy-950: #060C1D; --navy-900: #0A1330; --navy-850: #0D1839; --navy-800: #111E45; --navy-700: #1B2B5E;
  --blue: #3366FF; --blue-hi: #6E95FF; --blue-ink: #1B45D6;
  --ivory: #F3EEE3; --ivory-2: #E8E0CF; --paper: #FBF9F4;
  --ink: #0A1330; --ink-2: #333D58; --ink-3: #5A6279;
  --fog: #AEB8D2; --fog-2: #8D9ABB;
  --signal: #FF7A4D; --signal-ink: #B63A10;

  --sans: "Archivo", "Archivo Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --scripts: system-ui, -apple-system, "PingFang SC", "PingFang HK", "Microsoft YaHei", "Geeza Pro", "Segoe UI", "Kohinoor Devanagari", "Nirmala UI", "Noto Sans", sans-serif;

  --t-hero: clamp(2.25rem, min(5.7vw, 10.4vh), 5.75rem);
  --t-h2: clamp(2rem, 1.2rem + 3.3vw, 4.2rem);
  --t-h3: clamp(1.25rem, 1.08rem + .7vw, 1.65rem);
  --t-lede: clamp(1.06rem, 1rem + .42vw, 1.28rem);
  --t-say: clamp(1.18rem, 1rem + .85vw, 1.55rem);
  --t-sys: .84rem;

  --gut: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --section-y: clamp(88px, 12.5vw, 196px);
  --tap: 44px;
  --head-h: 64px;

  --ease-lock: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur-micro: 120ms; --dur-fast: 250ms; --dur-base: 450ms; --dur-slow: 850ms;
}

[data-theme="night"], [data-theme="deep"] {
  --bg: var(--navy-900); --bg-2: var(--navy-850); --raise: var(--navy-800);
  --fg: #EEF1F8; --fg-2: var(--fog); --fg-3: var(--fog-2);
  --line: rgb(174 184 210 / .18); --line-2: rgb(174 184 210 / .5);
  --acc: var(--blue-hi); --missed: var(--signal);
  color-scheme: dark;
}
[data-theme="deep"] { --bg: var(--navy-950); --bg-2: var(--navy-900); --raise: var(--navy-850); }
[data-theme="paper"], [data-theme="ivory"] {
  --bg: var(--paper); --bg-2: #fff; --raise: #fff;
  --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3);
  --line: rgb(10 19 48 / .14); --line-2: rgb(10 19 48 / .5);
  --acc: var(--blue-ink); --missed: var(--signal-ink);
  color-scheme: light;
}
[data-theme="ivory"] { --bg: var(--ivory); --bg-2: var(--paper); }
[data-theme] { background: var(--bg); color: var(--fg); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; background: var(--navy-900); color: #EEF1F8; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acc, var(--blue-hi)); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
@view-transition { navigation: auto; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: #fff; color: var(--ink); padding: 10px 16px; font-weight: 650; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }

/* Type roles: Cornerman (wide, heavy), the caller (serif italic), the record of work (condensed) */
.display { font-weight: 760; font-stretch: 112%; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.h2 { font-size: var(--t-h2); font-weight: 760; font-stretch: 112%; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; max-width: 18ch; }
.h3 { font-size: var(--t-h3); font-weight: 700; font-stretch: 108%; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
.lede { font-size: var(--t-lede); color: var(--fg-2); max-width: 44ch; line-height: 1.5; text-wrap: pretty; }
p { text-wrap: pretty; }
.sys { font-size: var(--t-sys); font-stretch: 88%; font-weight: 500; color: var(--fg-3); letter-spacing: .005em; line-height: 1.4; }
.say { font-family: var(--serif); font-style: italic; font-weight: 420; font-size: var(--t-say); line-height: 1.32; }
.own, .own-text { font-family: var(--scripts); letter-spacing: 0; }
.head { display: grid; gap: clamp(16px, 2vw, 26px); margin-bottom: clamp(44px, 6.5vw, 104px); }
.acc { color: var(--acc); }

/* ---------- Buttons: four corners lock on ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; font-weight: 650; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap; border-radius: 999px; transition: transform .3s ease, box-shadow .3s ease, background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.btn:active { transform: translateY(0); }
.btn--pri { background: linear-gradient(160deg, #1b45d6, #2f61fb 55%, #3366ff); color: #fff; box-shadow: rgb(51 102 255 / .4) 0 8px 22px -8px; }
.btn--pri:hover { transform: translateY(-2px); box-shadow: rgb(51 102 255 / .6) 0 14px 30px -8px; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--fg); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--blue-hi); background: rgb(51 102 255 / .12); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.06rem; }
.btn__dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.link { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }
.linkbtn { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; min-height: var(--tap); display: inline-flex; align-items: center; }
.linkbtn:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h); background: var(--navy-900); color: #EEF1F8; --fg: #EEF1F8; --line-2: rgb(174 184 210 / .5); --acc: var(--blue-hi); transition: box-shadow var(--dur-fast); }
.scrolled .top { box-shadow: 0 1px 0 rgb(174 184 210 / .18); }
.top__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; min-height: var(--tap); align-items: center; }
.brand__word { font-weight: 700; letter-spacing: .21em; font-size: .95rem; }
.brand__sub { font-size: var(--t-sys); font-stretch: 88%; color: var(--fog); }
.nav { display: none; gap: clamp(16px, 2.2vw, 34px); font-size: .95rem; }
.nav a { text-decoration: none; color: var(--fog); padding: 12px 0; transition: color var(--dur-fast); }
.nav a:hover, .nav a[aria-current="true"] { color: #fff; }
.top__act { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.top__book { font-size: .95rem; white-space: nowrap; }
.top__call { min-height: 40px; padding: 0 18px; font-size: .95rem; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--dur-fast), transform var(--dur-base) var(--ease-lock), visibility 0s var(--dur-fast); }
.past-picker .top__call { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (min-width: 1040px) { .nav { display: flex; } }
@media (max-width: 700px) { .brand__sub, .top__call { display: none; } }

/* ---------- The line as scroll progress ---------- */
.progress { position: fixed; z-index: 40; top: var(--head-h); right: clamp(4px, 1.4vw, 22px); bottom: 0; width: 26px; pointer-events: none; color: #4D7AFF; }
.progress svg { width: 100%; height: 100%; overflow: visible; }
.progress__rest { stroke: currentColor; opacity: .28; stroke-width: 1; }
.progress__done { stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.progress__head { fill: currentColor; }
@media (max-width: 700px) { .progress { width: 14px; right: 1px; } }

/* ---------- 1. Hero ---------- */
.hero { min-height: 100svh; padding-top: var(--head-h); display: flex; flex-direction: column; position: relative; }
.hero__copy { padding-top: clamp(20px, 5.2vh, 64px); display: grid; gap: clamp(14px, 2.2vh, 24px); justify-items: start; }
.hero__title { font-size: var(--t-hero); }
.hero__title span { display: block; }
.hero__sub { font-size: var(--t-lede); color: var(--fg-2); max-width: 54ch; line-height: 1.45; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 4px; }
.hero__note { flex-basis: 100%; }
@media (min-width: 1100px) { .hero__note { flex-basis: auto; margin-left: 10px; } }
.narrow-only { display: none; }

.hero__line { position: relative; height: clamp(40px, 8vh, 84px); margin-block: auto clamp(6px, 1.6vh, 18px); padding-top: clamp(6px, 1.6vh, 18px); box-sizing: content-box; flex: none; }
.hero__line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.line-missed, .line-live { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.line-missed { stroke: var(--missed); stroke-width: 1.5; }
.line-live { stroke: var(--acc); stroke-width: 1.75; }
.hero__tick { position: absolute; top: 0; }
.hero__tick--missed { left: var(--gut); color: var(--missed); }
.hero__tick--live { color: var(--acc); left: calc(27% + 6px); }

.picker { padding-bottom: clamp(18px, 3.4vh, 40px); display: grid; grid-template-columns: 1fr auto; grid-template-areas: "h biz" "agents agents"; align-items: center; gap: clamp(10px, 1.8vh, 18px) 24px; }
.picker__h { grid-area: h; }
.biz--head { grid-area: biz; }
.agents { grid-area: agents; }
.picker__h { font-size: clamp(1.1rem, 1rem + .7vw, 1.5rem); font-weight: 650; font-stretch: 104%; letter-spacing: -.015em; }
.biz { display: flex; align-items: center; gap: 10px; }
.biz__set { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.biz__set button { min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: .9rem; font-stretch: 92%; color: var(--fg-2); transition: background-color var(--dur-fast), color var(--dur-fast); }
.biz__set button[aria-checked="true"] { background: var(--acc); color: var(--navy-900); font-weight: 650; }
[data-theme="paper"] .biz__set button[aria-checked="true"], [data-theme="ivory"] .biz__set button[aria-checked="true"] { color: #fff; }

.agents { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); align-items: end; }
.agent { position: relative; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); display: grid; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.agent:hover { border-color: var(--line-2); }
.agent.is-sel { border-color: var(--acc); background: var(--raise); box-shadow: inset 0 0 0 1px var(--acc); }
.agent__pick { text-align: left; padding: clamp(10px, 1.1vw, 16px) clamp(10px, 1.1vw, 16px) 8px; display: grid; gap: 4px; width: 100%; }
.agent__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
.agent__vp { width: clamp(34px, 3.4vw, 50px); aspect-ratio: 100 / 120; color: var(--acc); display: block; }
.vp { width: 100%; height: 100%; }
.tag { font-size: .74rem; font-stretch: 88%; color: var(--fg-2); border: 1px solid var(--line-2); padding: 2px 7px; line-height: 1.3; }
.agent__name { font-size: clamp(1.7rem, .6rem + 2.2vw, 2.6rem); font-weight: 760; font-stretch: 112%; letter-spacing: -.045em; line-height: 1.08; }
.agent__lang { display: grid; font-size: .95rem; line-height: 1.3; justify-items: start; }
.agent__eng { font-weight: 500; }
.agent__lang .eng { color: var(--fg-3); font-size: .86rem; }
.agent__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 clamp(10px, 1.1vw, 16px) clamp(10px, 1.1vw, 14px); }
.bars { height: 18px; width: auto; max-width: 46%; color: var(--acc); opacity: .9; }
.agent__call { margin: 0 clamp(10px, 1.1vw, 16px) clamp(10px, 1.1vw, 16px); min-height: 42px; display: none; }
.agent.is-sel .agent__call { display: inline-flex; }
.agent__call::after { content: none; }

.hello { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .82rem; font-stretch: 90%; white-space: nowrap; position: relative; transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast); }
.hello::before { content: ""; position: absolute; inset: -7px 0; }
.hello:hover { border-color: var(--fg); }
.hello__icon { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; transition: all var(--dur-micro); }
.hello[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--navy-900); }
[data-theme="paper"] .hello[aria-pressed="true"], [data-theme="ivory"] .hello[aria-pressed="true"] { color: #fff; }
.hello[aria-pressed="true"] .hello__icon { width: 8px; height: 10px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.is-speaking .bars rect { animation: bar .5s var(--ease-io) infinite alternate; transform-origin: center; transform-box: fill-box; }
.is-speaking .bars rect:nth-child(3n) { animation-duration: .36s; }
.is-speaking .bars rect:nth-child(4n+1) { animation-duration: .62s; }
@keyframes bar { from { transform: scaleY(.35); } to { transform: scaleY(1.15); } }

.picker__sel { display: none; }
.dock { display: none; }

@media (max-width: 1040px) and (min-width: 701px) {
  .agents { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { min-height: 0; }
  .picker { margin-top: 20px; }
}
@media (max-width: 700px) {
  :root { --head-h: 54px; }
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .hero__copy { padding-top: clamp(10px, 2.4vh, 24px); gap: 10px; }
  .hero__sub { font-size: 1rem; }
  .hero__cta { display: none; }
  .hero__line { height: 30px; margin-block: auto 4px; padding-top: 4px; }
  .hero__tick { display: none; }
  .picker { padding-bottom: 92px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "agents" "sel" "biz2"; gap: 8px; }
  .picker__sel { grid-area: sel; }
  .picker__biz { grid-area: biz2; }
  .agents { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .agent__pick { padding: 8px 9px 9px; gap: 1px; }
  .agent__top { margin-bottom: 0; }
  .agent__vp { width: 26px; }
  .agent__name { font-size: clamp(1.28rem, 6.2vw, 1.6rem); }
  .agent__lang { font-size: .78rem; }
  .agent .tag, .agent__lang .eng, .agent__foot, .agent.is-sel .agent__call { display: none; }
  .picker__sel { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; font-size: .9rem; color: var(--fg-2); }
  .picker__sel b { color: var(--fg); font-weight: 650; }
  .picker__biz .biz__set { display: flex; flex: 1; }
  .picker__biz .biz__set button { flex: 1; padding: 0 6px; min-height: 40px; }
  .biz--head { display: none; }
  .dock { display: grid; gap: 4px; justify-items: center; position: fixed; z-index: 45; inset: auto 0 0; padding: 10px var(--gut) calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--navy-950); color: #EEF1F8; --acc: var(--blue-hi); border-top: 1px solid rgb(174 184 210 / .18); transition: transform var(--dur-base) var(--ease-lock); }
  .dock .btn { width: 100%; min-height: 50px; }
  .dock .btn::after { content: none; }
  .dock a { font-size: .86rem; min-height: 30px; display: inline-flex; align-items: center; }
  .dock-off .dock, .in-call .dock { transform: translateY(110%); }
}
@media (min-width: 701px) { .picker__biz { display: none; } }

/* Short laptop screens: the whole picker still sits on the first screen */
@media (min-width: 1041px) and (max-height: 820px) {
  .hero__copy { padding-top: clamp(12px, 2.6vh, 24px); gap: clamp(8px, 1.4vh, 14px); }
  .hero__title { font-size: clamp(2.25rem, min(5vw, 8.4vh), 5rem); }
  .hero__sub { max-width: 76ch; font-size: 1.06rem; }
  .hero__cta .btn--lg { min-height: 46px; padding: 0 24px; font-size: 1rem; }
  .hero__line { height: clamp(28px, 5.4vh, 44px); margin-bottom: 6px; padding-top: 6px; }
  .picker { padding-bottom: clamp(12px, 2.2vh, 20px); gap: 8px 24px; }
  .agent__pick { padding: 9px 12px 6px; gap: 2px; }
  .agent__vp { width: 30px; }
  .agent__name { font-size: clamp(1.5rem, 2vw, 2.1rem); }
  .agent__foot { padding: 0 12px 9px; }
  .agent__call { margin: 0 12px 10px; min-height: 38px; }
}

/* Load sequence: the line rings out, then is answered. Runs once. */
.motion .hero .line-missed, .motion .hero .line-live { stroke-dasharray: 1.02 2; stroke-dashoffset: 1.03; }
.motion .hero.is-in .line-missed { animation: draw .9s var(--ease-io) .15s forwards; }
.motion .hero.is-in .line-live { animation: draw 1.3s var(--ease-lock) 1.05s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.motion .hero .line-live.is-live { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }

/* ---------- 2. The missed call ---------- */
.scene { padding-block: var(--section-y); }
.scene__track { position: relative; }
.scene__title { max-width: 20ch; }
.scene__grid { display: grid; gap: clamp(20px, 3vw, 44px); margin-top: clamp(28px, 4vw, 56px); }
.call { border-top: 1px solid var(--line-2); padding-top: 18px; display: grid; gap: 16px; align-content: start; position: relative; }
.call__label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; align-items: baseline; }
.call__label b { white-space: nowrap; }
.call__label b { font-size: var(--t-h3); font-weight: 700; font-stretch: 108%; letter-spacing: -.025em; color: var(--fg); }
.call__wave { height: 44px; width: 100%; overflow: visible; }
.call--missed .call__wave path { stroke: var(--missed); stroke-width: 1.5; fill: none; }
.call--answered .call__wave path { stroke: var(--acc); stroke-width: 1.75; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.ringer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); padding: 14px 16px; background: var(--bg-2); }
.ringer__num { font-weight: 650; font-stretch: 104%; font-size: 1.15rem; letter-spacing: .01em; }
.ringer__pips { display: flex; gap: 8px; }
.ringer__pips i { width: 10px; height: 10px; border: 1.5px solid var(--missed); border-radius: 999px; }
.steps { display: grid; gap: 14px; }
.steps .say { max-width: 30ch; }
.who { display: block; font-family: var(--sans); font-style: normal; font-size: var(--t-sys); font-stretch: 88%; font-weight: 500; color: var(--fg-3); margin-bottom: 2px; }
.reply { font-weight: 600; font-stretch: 104%; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); line-height: 1.35; max-width: 32ch; letter-spacing: -.01em; }
.outcome { font-weight: 700; font-stretch: 108%; font-size: var(--t-h3); letter-spacing: -.025em; line-height: 1.15; }
.outcome--missed { color: var(--missed); }
.outcome--kept { color: var(--acc); }

.route { display: grid; }
.route li { position: relative; padding: 0 0 14px 26px; font-stretch: 94%; font-weight: 560; line-height: 1.35; }
.route li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 12px; height: 100%; border-left: 1.5px solid var(--acc); border-top: 1.5px solid var(--acc); }
.route li:last-child { padding-bottom: 0; }
.route li:last-child::before { border-left: 0; }
.route small { display: block; font-weight: 400; font-size: .86rem; color: var(--fg-3); }
.scene__foot { margin-top: 28px; }

/* Steps appear in order. Without JS or with reduced motion they are simply there. */
.motion [data-step] { opacity: 0; transform: translateY(10px); transition: opacity var(--dur-base) var(--ease-io), transform var(--dur-slow) var(--ease-lock); }
.motion [data-step].is-on { opacity: 1; transform: none; }
.motion .ringer__pips i { transition: background-color var(--dur-fast), box-shadow var(--dur-base); }
.ringer__pips i.is-on, html:not(.motion) .ringer__pips i { background: var(--missed); }
.motion .ringer__pips i.is-on { box-shadow: 0 0 0 5px rgb(255 122 77 / .16); }
.motion .call__wave path { stroke-dasharray: 1.02 2; stroke-dashoffset: 1.03; transition: stroke-dashoffset 1.2s var(--ease-lock); }
.motion .call.is-live .call__wave path { stroke-dashoffset: 0; }

@media (min-width: 900px) {
  .scene__grid { grid-template-columns: 1fr 1fr; }
  .motion .scene--pin { padding-block: 0; }
  .motion .scene--pin .scene__track { height: 300vh; }
  .motion .scene--pin .scene__stage { position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(16px, 3vh, 40px); }
  .motion .scene--pin .scene__title { font-size: clamp(1.8rem, min(3.6vw, 6.2vh), 3.6rem); max-width: 24ch; }
  .motion .scene--pin .scene__grid { margin-top: clamp(14px, 3vh, 40px); }
  .motion .scene--pin .steps { gap: clamp(8px, 1.6vh, 14px); }
  .motion .scene--pin .call { gap: clamp(8px, 1.8vh, 16px); }
}
@media (min-width: 900px) and (max-height: 800px) {
  .motion .scene--pin .call__wave { height: 30px; }
  .motion .scene--pin .say, .motion .scene--pin .reply { font-size: 1.05rem; }
  .motion .scene--pin .route li { padding-bottom: 6px; font-size: .95rem; }
  .motion .scene--pin .outcome { font-size: 1.2rem; }
  .motion .scene--pin .ringer { padding: 8px 14px; }
  .motion .scene--pin .scene__foot { margin-top: 10px; }
}

/* ---------- 3. What she does: one job at a time ---------- */
.jobs { display: grid; gap: clamp(36px, 6vw, 96px); }
.jobs__list { display: none; }
.jobs__panels { display: grid; gap: clamp(56px, 9vw, 96px); }
.do { display: grid; gap: 20px; align-content: center; }
.do__text p { color: var(--fg-2); font-size: var(--t-lede); line-height: 1.45; margin-top: 8px; max-width: 30ch; }
.do__demo { min-height: 240px; padding: clamp(24px, 3.4vw, 52px); padding-bottom: max(52px, clamp(24px, 3.4vw, 52px)); display: grid; }
.do__replay { justify-self: start; font-size: .9rem; color: var(--fg-2); }
@media (min-width: 960px) {
  .js .jobs { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .js .jobs__side { position: sticky; top: calc(var(--head-h) + 11vh); display: grid; gap: clamp(32px, 5vh, 64px); }
  .js .jobs__list { display: grid; position: relative; padding-left: clamp(22px, 2.4vw, 36px); }
  .jobs__list::before, .jobs__list::after { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1.5px; background: var(--line-2); }
  .jobs__list::after { background: var(--acc); transform-origin: top; transform: scaleY(var(--jobs-p, .25)); transition: transform var(--dur-slow) var(--ease-lock); }
  .jobs__list li { display: grid; padding: 9px 0; color: color-mix(in srgb, var(--fg) 52%, var(--bg)); cursor: pointer; transition: color var(--dur-base); }
  .jobs__list li:hover { color: color-mix(in srgb, var(--fg) 80%, var(--bg)); }
  .jobs__list b { font-size: clamp(2.1rem, 1rem + 2.9vw, 3.5rem); font-weight: 760; font-stretch: 112%; letter-spacing: -.045em; line-height: 1.12; }
  .jobs__list span { font-size: var(--t-lede); line-height: 1.4; color: var(--fg-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height var(--dur-base) var(--ease-lock), opacity var(--dur-base), padding var(--dur-base); }
  .jobs__list li.is-on { color: var(--fg); }
  .jobs__list li.is-on span { max-height: 4.4em; opacity: 1; padding: 6px 0 12px; }
  .js .do__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .js .do { position: relative; min-height: 68vh; }
  .js .do:first-child { min-height: 52vh; align-content: start; }
  .js .do__demo { min-height: clamp(320px, 46vh, 460px); }
  .motion .do .film { transition: filter var(--dur-slow); }
  .motion .do:not(.is-active) .film { filter: saturate(.55) brightness(.82); }
  .js .do__demo .pill { font-size: 1.05rem; padding: 7px 16px; }
  .js .do__demo .film__body { gap: 22px; padding-inline: clamp(0px, 2vw, 32px); }
  .js .do__demo .f-dot { width: 68px; height: 68px; }
  .js .do__demo .f-eq { height: 72px; width: min(100%, 380px); }
  .js .do__demo .reply { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); }
  .js .do__demo .say { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.2rem); }
  .js .do__demo .f-diary { width: min(100%, 500px); font-size: 1.08rem; }
  .js .do__demo .f-xfer { font-size: 1.15rem; width: min(100%, 500px); }
  .js .do__demo .sms { font-size: 1.08rem; max-width: 34ch; padding: 13px 18px; }
}
.pill { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-stretch: 90%; font-weight: 600; padding: 4px 10px; border: 1px solid currentColor; }
.pill--missed { color: var(--missed); }
.pill--done { color: var(--acc); }
.pill--person { color: var(--fg); }
.pill i { width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.sms { background: var(--ivory); color: var(--ink); padding: 10px 14px; font-size: .95rem; line-height: 1.4; max-width: 30ch; border-radius: 14px 14px 14px 3px; }
[data-theme="ivory"] .sms { background: #fff; }
.diary { display: grid; gap: 4px; font-size: .88rem; font-stretch: 92%; }
.diary div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border: 1px solid var(--line); color: var(--fg-3); position: relative; }
.diary .is-taken { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); }
.diary .is-slot b { font-weight: 600; color: var(--fg-2); }
.diary .is-slot.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.diary .is-slot.is-on b { color: #fff; }
.lockable::after { content: ""; position: absolute; inset: -12px; pointer-events: none; opacity: 0; transition: inset var(--dur-base) var(--ease-lock), opacity var(--dur-fast);
  --c: var(--acc); --l: 9px; --w: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--w), linear-gradient(var(--c), var(--c)) left top / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--w), linear-gradient(var(--c), var(--c)) right top / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--w), linear-gradient(var(--c), var(--c)) left bottom / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--w), linear-gradient(var(--c), var(--c)) right bottom / var(--w) var(--l);
  background-repeat: no-repeat; }
.lockable.is-on::after, html:not(.motion) .lockable::after { inset: -5px; opacity: 1; }
.motion .rules li { opacity: 0; transform: translateX(-10px); transition: opacity var(--dur-base), transform var(--dur-slow) var(--ease-lock); transition-delay: calc(var(--i, 0) * 110ms); }
.motion .rules.is-in li { opacity: 1; transform: none; }
.motion .do [data-beat], .motion .xfer [data-beat] { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-fast), transform var(--dur-base) var(--ease-lock); }
.motion .do [data-beat].is-on, .motion .xfer [data-beat].is-on { opacity: 1; transform: none; }
.motion .do .diary [data-beat] { opacity: 1; transform: none; }

/* ---------- 4. The handover ---------- */
.handover__grid { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 960px) { .handover__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.rules { margin-top: clamp(28px, 4vw, 52px); display: grid; max-width: 30em; }
.rules__title { margin-bottom: 8px; }
.rules li { padding: 14px 0; border-top: 1px solid var(--line); font-weight: 560; font-stretch: 100%; }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.handover__note { margin-top: 24px; color: var(--fg-2); max-width: 46ch; }
.xfer { background: var(--bg-2); border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 34px); display: grid; gap: 20px; }
.xfer__talk { display: grid; gap: 16px; }
.xfer__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; font-weight: 650; font-stretch: 104%; }
.xfer__bar span:first-child { color: var(--acc); }
.xfer__bar span:last-child { text-align: right; }
.xfer__arrow { width: clamp(40px, 12vw, 140px); height: 12px; border-bottom: 1.5px solid var(--fg); border-right: 1.5px solid var(--fg); transform: translateY(-6px); }
.xfer__card { border: 1px solid var(--line-2); padding: 16px 18px; position: relative; }
.kv { display: grid; gap: 0; margin-top: 8px; }
.kv div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.kv dt { font-size: var(--t-sys); font-stretch: 88%; color: var(--fg-3); padding-top: 2px; }
.kv dd { font-weight: 560; }
.kv .is-flag { color: var(--missed); }
.xfer__cap { color: var(--fg-3); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: space-between; }

/* ---------- 5. Built for your front desk ---------- */
.tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-2); margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { min-height: 52px; padding: 0 clamp(14px, 1.8vw, 26px); white-space: nowrap; font-weight: 600; font-stretch: 104%; color: var(--fg-3); transition: color var(--dur-fast), box-shadow var(--dur-fast); }
.tabs button:first-child { padding-left: 0; }
.tabs button { position: relative; }
.tabs button[aria-selected="true"] { color: var(--fg); box-shadow: inset 0 -3px 0 var(--line); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--acc); transform-origin: left; transform: scaleX(var(--film-p, 1)); }
.desk { padding-top: clamp(28px, 4vw, 52px); display: grid; gap: clamp(28px, 4vw, 56px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 clamp(20px, 3vw, 48px); }
.facts div { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.facts dd { font-weight: 520; font-size: .98rem; line-height: 1.45; }
.caveat { margin-top: clamp(36px, 5vw, 72px); max-width: 60ch; color: var(--fg-2); font-size: .98rem; border-left: 2px solid var(--line-2); padding-left: 16px; }
.motion .desk.is-swap { animation: swap var(--dur-base) var(--ease-lock); }
@keyframes swap { from { opacity: 0; transform: translateX(18px); } }

/* ---------- 6. Languages ---------- */
.voices-wrap { display: grid; gap: clamp(20px, 4vw, 72px); }
.voices { border-top: 1px solid var(--line-2); }
.voice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px clamp(14px, 2vw, 32px); align-items: center; padding: clamp(14px, 1.6vw, 22px) 0; border-bottom: 1px solid var(--line); transition: border-color var(--dur-fast); }
.voice:hover, .voice:focus-within { border-bottom-color: var(--acc); }
.voice__name { grid-column: 1; font-size: clamp(2rem, 1rem + 3.2vw, 3.7rem); font-weight: 760; font-stretch: 112%; letter-spacing: -.05em; line-height: 1.12; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; transition: color var(--dur-fast); }
.voice:hover .voice__name, .voice:focus-within .voice__name, .voice.is-speaking .voice__name { color: var(--acc); }
.voice__name small { font-size: clamp(.95rem, .9rem + .3vw, 1.1rem); font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--fg-2); }
.voice__says { grid-column: 1; display: grid; gap: 2px; }
.voice__greet { font-size: clamp(1.02rem, 1rem + .3vw, 1.2rem); line-height: 1.45; color: var(--fg); }
.voice__greet:lang(en) { font-family: var(--serif); font-style: italic; }
.voice__gloss { font-size: .92rem; color: var(--fg-3); }
.voice__gloss[dir="rtl"] { text-align: left; }
.voice__act { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 8px; align-items: center; }
.voice__call { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.voice__play { width: 44px; height: 44px; border: 1px solid var(--line-2); display: grid; place-items: center; }
.voice__play[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--navy-900); }
.voice__play .hello__icon { border-width: 7px 0 7px 11px; }
.voice__play[aria-pressed="true"] .hello__icon { width: 11px; height: 13px; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
@media (max-width: 560px) {
  .voice { grid-template-columns: minmax(0, 1fr); }
  .voice__act { grid-column: 1; grid-row: auto; margin-top: 8px; }
}

/* ---------- 7. Setup: four steps on one line ---------- */
.setup { display: grid; gap: clamp(44px, 6vw, 64px) 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 244px), 1fr)); }
.stage { position: relative; border-top: 1.5px solid var(--line-2); padding: clamp(28px, 3vw, 44px) clamp(20px, 3vw, 48px) 0 0; display: grid; gap: 10px; align-content: start; }
.stage::before { content: ""; position: absolute; left: 0; top: -6px; width: 10.5px; height: 10.5px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--acc); z-index: 1; transition: background var(--dur-fast) var(--dur-base); }
.stage::after { content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 1.5px; background: var(--acc); transform-origin: left; }
.motion .stage::after { transform: scaleX(0); transition: transform 1.1s var(--ease-io); }
.motion .stage.is-reached::after { transform: scaleX(1); }
.stage.is-reached::before, html:not(.motion) .stage::before { background: var(--acc); }
.stage > p:not(.sys) { color: var(--fg-2); font-size: 1.02rem; line-height: 1.5; max-width: 28ch; }
.motion .stage > :not(.glyph) { opacity: 0; transform: translateY(10px); transition: opacity var(--dur-base) .25s, transform var(--dur-slow) var(--ease-lock) .25s; }
.motion .stage.is-reached > * { opacity: 1; transform: none; }

/* Small drawings, one per step, in the same line as everything else. */
.glyph { width: 120px; height: 72px; overflow: visible; fill: none; stroke: var(--acc); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: clamp(12px, 2vw, 24px); }
.g-track { stroke: var(--line-2); }
.g-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.g-node { fill: var(--bg); }
.g-node--miss { stroke: var(--missed); fill: var(--missed); transform-box: fill-box; transform-origin: center; }
.g-flat { stroke: var(--missed); opacity: .3; }
.g-orbit { stroke-dasharray: .22 .78; transform-box: fill-box; transform-origin: center; }
.g-sw__t { stroke: var(--line-2); }
.g-sw__k { stroke: none; fill: var(--fg-3); }
.g-sw--a .g-sw__t, .g-sw--b .g-sw__t { stroke: var(--acc); }
.g-sw--a .g-sw__k, .g-sw--b .g-sw__k { fill: var(--acc); transform: translateX(20px); }
.motion .stage .glyph { opacity: 0; transition: opacity var(--dur-base); }
.motion .stage.is-reached .glyph { opacity: 1; }
.motion .is-reached .g-draw { animation: g-draw 5s var(--ease-io) infinite; }
.motion .is-reached .g-draw--late { animation-name: g-draw-late; }
.motion .is-reached .g-node--miss { animation: g-found 5s var(--ease-io) infinite; }
.motion .is-reached .g-flat { animation: g-flat 5s var(--ease-io) infinite; }
.motion .is-reached .g-orbit { animation: g-orbit 5s linear infinite; }
.motion .is-reached .g-sw--a .g-sw__k { animation: g-knob-a 5s var(--ease-lock) infinite; }
.motion .is-reached .g-sw--b .g-sw__k { animation: g-knob-b 5s var(--ease-lock) infinite; }
.motion .is-reached .g-sw--a .g-sw__t { animation: g-rail-a 5s infinite; }
.motion .is-reached .g-sw--b .g-sw__t { animation: g-rail-b 5s infinite; }
@keyframes g-draw { 0% { stroke-dashoffset: 1; } 42%, 100% { stroke-dashoffset: 0; } }
@keyframes g-draw-late { 0%, 22% { stroke-dashoffset: 1; } 62%, 100% { stroke-dashoffset: 0; } }
@keyframes g-found { 0%, 26% { transform: scale(.5); opacity: .25; } 40% { transform: scale(1.7); opacity: 1; } 56%, 100% { transform: scale(1); opacity: 1; } }
@keyframes g-flat { 0%, 20% { opacity: 1; } 60%, 100% { opacity: .22; } }
@keyframes g-orbit { to { transform: rotate(360deg); } }
@keyframes g-knob-a { 0%, 10% { transform: none; fill: var(--fg-3); } 22%, 100% { transform: translateX(20px); fill: var(--acc); } }
@keyframes g-knob-b { 0%, 30% { transform: none; fill: var(--fg-3); } 42%, 100% { transform: translateX(20px); fill: var(--acc); } }
@keyframes g-rail-a { 0%, 10% { stroke: var(--line-2); } 22%, 100% { stroke: var(--acc); } }
@keyframes g-rail-b { 0%, 30% { stroke: var(--line-2); } 42%, 100% { stroke: var(--acc); } }
.slot { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-stretch: 90%; padding: 4px 10px; border: 1px dashed var(--missed); color: var(--missed); }

/* ---------- 8. Questions ---------- */
.faq__grid { display: grid; gap: clamp(28px, 5vw, 80px); }
@media (min-width: 960px) { .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } .faq__grid .head { position: sticky; top: calc(var(--head-h) + 32px); margin-bottom: 0; } }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--serif); font-style: italic; font-size: var(--t-say); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--fg); border-bottom: 1.5px solid var(--fg); transform: translateY(-70%) rotate(45deg); transition: transform var(--dur-base) var(--ease-lock); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 22px; max-width: 62ch; color: var(--fg-2); }
.faq__more { margin-top: 22px; color: var(--fg-2); }

/* ---------- 9. Final ---------- */
.final { text-align: left; }
.final__title { font-size: clamp(2.4rem, 1rem + 6.4vw, 6.4rem); max-width: 14ch; }
.final__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 4vw, 44px); }
.final__contact { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--fg-2); }
.final__contact a { min-height: var(--tap); display: inline-flex; align-items: center; }

/* ---------- Footer ---------- */
.foot { padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: .95rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: center; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 26px; color: var(--fg-2); }
.foot__links a, .foot__links button { min-height: var(--tap); display: inline-flex; align-items: center; text-decoration: none; }
.foot__links a:hover, .foot__links button:hover { color: var(--fg); text-decoration: underline; text-underline-offset: .22em; }
.foot__small { color: var(--fg-3); font-size: .88rem; flex-basis: 100%; }
@media (max-width: 700px) { .foot { padding-bottom: 120px; } }

/* ---------- The ring: one 3D circle behind the night sections ---------- */
.ringstage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }
.has-ring [data-ring] { background: transparent; }
.ring-anchor { position: absolute; aspect-ratio: 1; pointer-events: none; }
.ring-anchor--hero { right: -7vw; top: calc(var(--head-h) - 3vh); width: min(56vw, 88vh); }
/* In the pinned scene the ring stands between the two outcomes of the same call. */
.scene__ring { display: none; position: relative; align-self: center; width: 100%; aspect-ratio: 1; pointer-events: none; }
@media (min-width: 900px) {
  .has-ring.motion .scene--pin .scene__grid { grid-template-columns: minmax(0, 1fr) minmax(190px, 27vw) minmax(0, 1fr); }
  .has-ring.motion .scene--pin .scene__ring { display: block; }
}
/* The ring's boxes reach past the right edge on purpose; they must never widen the page. */
html { overflow-x: clip; }
.hero, .final { overflow: clip; }
.ring-anchor--final { right: -5vw; top: 50%; width: min(50vw, 82vh); transform: translateY(-50%); }
.voices__ring { position: relative; order: -1; width: 100%; aspect-ratio: 16 / 10; }
@media (min-width: 960px) {
  .voices-wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
  .voices__ring { order: 0; position: sticky; top: calc(var(--head-h) + 8vh); aspect-ratio: 1; }
}
@media (max-width: 700px) {
  .ring-anchor--hero { right: -52vw; top: 8px; width: 128vw; }
  .ring-anchor--final { right: -48vw; top: 34%; width: 120vw; }
}
html:not(.has-ring) .voices__ring { display: none; }

/* Arrive: a block settles in once, the first time it is seen. No masks, so no clipped letters. */
.motion .rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-io), transform .95s var(--ease-lock); }
.motion .rv.is-in { opacity: 1; transform: none; }
.motion .rv--2 { transition-delay: .09s; }
.motion .rv--3 { transition-delay: .18s; }

/* ---------- Depth: every section sits in its own light ---------- */
main > .section:not([data-ring]) { overflow: clip; }
main > .section:not([data-ring])::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(58% 46% at 88% 6%, rgb(51 102 255 / .2), transparent 70%), radial-gradient(40% 36% at 4% 96%, rgb(51 102 255 / .1), transparent 70%); }
main > .section:not([data-ring]):nth-of-type(odd)::before { background: radial-gradient(58% 46% at 10% 4%, rgb(51 102 255 / .2), transparent 70%), radial-gradient(40% 36% at 96% 98%, rgb(51 102 255 / .1), transparent 70%); }
main > .section > .wrap { position: relative; }

/* ---------- Films: small looping scenes that act out the work ---------- */
.film { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; border: 1px solid rgb(174 184 210 / .2);
  background: linear-gradient(155deg, rgb(27 43 94 / .62), rgb(10 19 48 / .92) 62%);
  box-shadow: 0 50px 120px -50px rgb(0 0 0 / .75), inset 0 1px 0 rgb(255 255 255 / .07); }
.film::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(460px circle at var(--mx, 82%) var(--my, 0%), rgb(110 149 255 / .2), transparent 62%); }
.film::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--acc); transform-origin: left; transform: scaleX(var(--film-p, 0)); z-index: 2; }
html:not(.motion) .film::after { display: none; }
.film__body { position: relative; z-index: 1; display: grid; gap: 16px; align-content: center; justify-items: start; }
.film__toggle { position: absolute; right: 8px; bottom: 6px; z-index: 3; min-height: 44px; padding: 0 14px; font-size: .8rem; font-stretch: 90%; color: var(--fg-3); }
.film__toggle:hover { color: var(--fg); }
.motion [data-film] [data-at] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-fast), transform var(--dur-slow) var(--ease-lock); }
.motion [data-film] [data-at].is-on { opacity: 1; transform: none; }
.motion [data-film] .film__body, .motion [data-film] .film__routes { transition: opacity .4s; }
.motion [data-film].is-ending .film__body, .motion [data-film].is-ending .film__routes { opacity: 0; }
.motion [data-film].is-rewind *, .motion [data-film].is-rewind { transition: none !important; }
html:not(.motion) [data-film] [data-out] { display: none; }
.motion [data-type] .w { opacity: 0; transition: opacity .3s; }
.motion [data-type].is-on .w { opacity: 1; transition-delay: calc(var(--w) * 60ms); }
@supports (animation-timeline: view()) {
  .motion .film { animation: film-in linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
}
@keyframes film-in { from { opacity: .2; transform: translateY(70px) scale(.92); } to { opacity: 1; transform: none; } }

/* Pieces the films are made from */
.f-row { display: flex; align-items: center; gap: 18px; }
.f-swap { display: grid; }
.f-swap > * { grid-area: 1 / 1; justify-self: start; }
.f-dot { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--missed); transition: background var(--dur-base); }
.f-dot::before, .f-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--missed); }
.motion .f-dot::before, .motion .f-dot::after { animation: f-ring 1.15s ease-out infinite; }
.motion .f-dot::after { animation-delay: .38s; }
.is-live .f-dot { background: var(--blue); }
.is-live .f-dot::before, .is-live .f-dot::after { border-color: var(--acc); animation: none; transform: scale(1.26); opacity: .5; }
.is-live .f-dot::after { transform: scale(1.52); opacity: .22; }
@keyframes f-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.f-eq { display: flex; align-items: center; gap: 3px; height: 54px; width: min(100%, 300px); }
.f-eq i { flex: 1; height: 100%; border-radius: 2px; background: var(--acc); transform: scaleY(.12); }
.motion .f-eq.is-on i { animation: f-eq 1.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -173ms); }
.motion .f-eq.is-on i:nth-child(3n) { animation-duration: .85s; }
.motion .f-eq.is-on i:nth-child(4n + 1) { animation-duration: 1.5s; }
html:not(.motion) .f-eq i:nth-child(odd) { transform: scaleY(.7); }
html:not(.motion) .f-eq i:nth-child(3n) { transform: scaleY(.4); }
@keyframes f-eq { 0% { transform: scaleY(.14); } 35% { transform: scaleY(.95); } 65% { transform: scaleY(.32); } 100% { transform: scaleY(.72); } }
.film .reply { font-size: clamp(1.2rem, 1rem + .9vw, 1.7rem); max-width: 22ch; }
.film .say { font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem); max-width: 24ch; }
.film mark { background: none; color: inherit; box-shadow: inset 0 -2px 0 transparent; transition: color var(--dur-base), box-shadow var(--dur-base); }
.is-flag mark, html:not(.motion) .film mark { color: var(--missed); box-shadow: inset 0 -2px 0 var(--missed); }

.f-diary { position: relative; display: grid; gap: 4px; width: min(100%, 440px); font-size: 1rem; font-stretch: 92%; }
.f-diary > div { height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--fg-2); transition: background var(--dur-base), border-color var(--dur-base), color var(--dur-base); }
.f-diary .is-taken { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); }
.f-diary .is-slot b { display: none; font-weight: 650; }
.is-booked .f-diary .is-slot, html:not(.js) .f-diary .is-slot { background: var(--blue); border-color: var(--blue); color: #fff; }
.is-booked .f-diary .is-slot b, html:not(.js) .f-diary .is-slot b { display: inline; }
.is-booked .f-free, html:not(.js) .f-free { display: none; }
.f-scan { position: absolute; left: -6px; right: -6px; top: -4px; height: 54px; border: 1.5px solid var(--acc); border-radius: 12px; pointer-events: none; }
.motion [data-film] .f-scan.is-on { animation: f-scan 2.5s var(--ease-io) both; }
@keyframes f-scan { 0%, 22% { transform: translateY(0); } 36%, 58% { transform: translateY(50px); } 72%, 100% { transform: translateY(100px); } }

.f-thread { align-content: end; gap: 10px; min-height: 100%; }
.motion .f-thread > :not(.is-on) { display: none; }
.motion .f-thread > .is-on { animation: f-pop .5s var(--ease-lock) both; }
@keyframes f-pop { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.film .sms { font-size: 1.05rem; padding: 13px 18px; max-width: 32ch; transform-origin: left bottom; }
.f-meta { margin: -4px 0 6px 4px; }

.f-xfer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: min(100%, 440px); font-weight: 650; font-stretch: 104%; }
.f-xfer span:first-child { color: var(--acc); }
.f-xfer__line { position: relative; height: 1.5px; background: var(--line-2); }
.f-xfer__line i { position: absolute; top: -4.5px; left: calc(100% - 10px); width: 10px; height: 10px; border-radius: 50%; background: var(--acc); }
.motion .f-xfer.is-on .f-xfer__line i { animation: f-travel 1.7s var(--ease-io) infinite; }
@keyframes f-travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.f-note { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 16px; font-size: .98rem; color: var(--fg-2); max-width: 36ch; }

/* The front desk film: a caller, the receptionist, three pieces of work */
.film--desk { display: grid; min-height: clamp(440px, 58vh, 580px); padding: clamp(26px, 4.4vw, 72px); padding-bottom: max(56px, clamp(26px, 4.4vw, 72px)); }
.film__routes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; fill: none; stroke: var(--acc); stroke-width: 1.5; }
.film__routes path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion [data-film] .film__routes path { opacity: 1; transform: none; stroke-dashoffset: 1; transition: stroke-dashoffset .75s var(--ease-io); }
.motion [data-film] .film__routes path.is-on { stroke-dashoffset: 0; }
.fd { gap: 26px; align-content: center; justify-items: stretch; width: 100%; }
.fd-in { display: grid; gap: 10px; }
.film .fd-quote { font-size: clamp(1.4rem, 1rem + 1.7vw, 2.3rem); line-height: 1.24; max-width: 17ch; }
.fd-mia { display: flex; align-items: center; gap: 14px; }
.fd-mia b { font-weight: 720; font-stretch: 108%; font-size: 1.15rem; letter-spacing: -.02em; }
.fd-orb { position: relative; flex: none; width: 46px; aspect-ratio: 1; border-radius: 50%; background: var(--missed); transition: background var(--dur-base), box-shadow var(--dur-base); }
.fd-orb::before, .fd-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--missed); }
.motion .fd-orb::before, .motion .fd-orb::after { animation: f-ring 1.15s ease-out infinite; }
.motion .fd-orb::after { animation-delay: .38s; }
.is-live .fd-orb, html:not(.motion) .fd-orb { background: radial-gradient(circle at 34% 30%, #9db8ff, var(--blue) 55%, var(--blue-ink)); box-shadow: 0 22px 44px -20px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .25); }
.is-live .fd-orb::before, .is-live .fd-orb::after, html:not(.motion) .fd-orb::before, html:not(.motion) .fd-orb::after { border-color: var(--acc); animation: none; transform: scale(1.24); opacity: .5; }
.is-live .fd-orb::after, html:not(.motion) .fd-orb::after { transform: scale(1.48); opacity: .22; }
.fd-out { display: grid; gap: 12px; margin-left: 36px; }
.fd-out li { position: relative; display: grid; gap: 2px; padding: 15px 20px; border: 1px solid rgb(174 184 210 / .28); border-radius: 12px; background: rgb(10 19 48 / .78); }
.fd-out b { font-weight: 650; font-stretch: 104%; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); letter-spacing: -.012em; line-height: 1.25; }
.fd-out span { color: var(--fg-2); font-size: .93rem; }
.fd-out .lockable::after { content: none; }
.fd-out li { transition: opacity var(--dur-fast), transform var(--dur-slow) var(--ease-lock), border-color var(--dur-base) .3s, box-shadow var(--dur-base) .3s; }
.fd-out li.is-on, html:not(.motion) .fd-out li { border-color: rgb(110 149 255 / .75); box-shadow: 0 20px 40px -24px rgb(0 0 0 / .85); }
@media (min-width: 900px) {
  .fd { grid-template-columns: minmax(0, 5fr) auto minmax(0, 5fr); gap: clamp(48px, 8vw, 140px); align-items: center; }
  .fd-mia { flex-direction: column; gap: 12px; }
  .fd-orb { width: clamp(72px, 7.4vw, 108px); }
  .fd-out { margin-left: 0; gap: 16px; }
}

/* ---------- The calls that come in: caller questions drifting with the scroll ---------- */
.callers { overflow: clip; padding-block: clamp(48px, 8vw, 120px) 0; display: grid; gap: clamp(4px, 1vw, 14px); }
.callers__row { display: flex; gap: clamp(28px, 4.5vw, 72px); white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 1rem + 4.4vw, 5rem); line-height: 1.28; color: var(--fg); transform: translate3d(var(--drift, 0px), 0, 0); will-change: transform; }
.callers__row span:nth-child(even) { color: var(--fg-3); }
.callers__row--back { transform: translate3d(calc(-45% - var(--drift, 0px)), 0, 0); }

/* Headings arrive a word at a time */
.motion .h2.sw .wd { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .7s var(--ease-io), transform 1s var(--ease-lock); transition-delay: calc(var(--w) * 60ms); }
.motion .h2.sw.is-in .wd { opacity: 1; transform: none; }

/* ---------- Motion safety net ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
