/* ============================================================================
   dean.school v2 — design layer on top of tokens.css. See DESIGN.md.
   Dark editorial, modernised: more product, less decoration. Tokens only —
   no new colours. Motion is fade-in only and off under reduced motion.
   ========================================================================= */

/* --- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk-dim);
  font: 400 var(--t-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
a { color: var(--violet-lift); text-underline-offset: 0.2em; }
a:hover { color: var(--chalk); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--chalk); margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 i, h2 i, h3 i, .h1 i, .h2 i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--violet-lift); }
p { margin: 0 0 1em; max-width: var(--read-max); }
:lang(de) .h2, :lang(de) .lead, :lang(fr) .h2, :lang(it) .h2, :lang(es) .h2 { hyphens: auto; }

.shell { width: 100%; max-width: var(--shell-max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; z-index: var(--z-overlay); background: var(--chalk); color: var(--ink); padding: 0.75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* --- Type ------------------------------------------------------------------ */
.eyebrow { font: 500 var(--t-micro)/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--chalk-faint); margin: 0 0 1rem; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.h1 { font-size: var(--t-hero); line-height: 0.95; }
.h2 { font-size: var(--t-scene); line-height: 1.02; margin-bottom: 1.25rem; }
.h3 { font-size: var(--t-sub); line-height: 1.1; margin-bottom: 0.75rem; }
.lead { font-size: var(--t-lead); line-height: 1.4; color: var(--chalk); }
.small { font-size: var(--t-small); color: var(--chalk-mute); }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.7rem 1.25rem; border-radius: var(--r-chip);
  font: 600 var(--t-small)/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-state), color var(--dur-fast) var(--ease-state), border-color var(--dur-fast) var(--ease-state);
}
/* violet-lift + ink = 8.7:1 (WCAG AA); chalk on violet is only 3.9:1. */
.btn--primary { background: var(--violet-lift); color: var(--ink); }
.btn--primary:hover { background: var(--chalk); color: var(--ink); }
.btn--ghost { border: 1px solid var(--hair-strong); color: var(--chalk); }
.btn--ghost:hover { border-color: var(--violet-lift); color: var(--chalk); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* --- Nav ------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: rgba(10, 8, 18, 0.82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--hair); }
.nav__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.nav__brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--chalk); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.nav__main { margin-left: auto; }
.nav__links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--chalk-mute); text-decoration: none; font-size: var(--t-small); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--chalk); }
.nav__lang { position: relative; }
.nav__lang summary { list-style: none; cursor: pointer; font: 500 var(--t-micro)/1 var(--mono); color: var(--chalk-mute); padding: 0.6rem 0.7rem; border: 1px solid var(--hair); border-radius: var(--r-chip); min-height: 36px; display: inline-flex; align-items: center; }
.nav__lang summary::-webkit-details-marker { display: none; }
.nav__lang ul { position: absolute; right: 0; top: calc(100% + 0.5rem); list-style: none; margin: 0; padding: 0.4rem; background: var(--ink-raise); border: 1px solid var(--hair-strong); border-radius: var(--r-panel); min-width: 10rem; }
.nav__lang li a { display: block; padding: 0.55rem 0.75rem; border-radius: 8px; color: var(--chalk-dim); text-decoration: none; font-size: var(--t-small); }
.nav__lang li a:hover, .nav__lang li a[aria-current="true"] { background: var(--violet-wash); color: var(--chalk); }
.nav__menu { display: none; position: relative; }
.nav__menu summary { list-style: none; cursor: pointer; font-size: var(--t-small); color: var(--chalk); padding: 0.6rem 0.9rem; border: 1px solid var(--hair-strong); border-radius: var(--r-chip); min-height: 40px; display: inline-flex; align-items: center; }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu ul { position: absolute; left: 0; top: calc(100% + 0.5rem); list-style: none; margin: 0; padding: 0.4rem; background: var(--ink-raise); border: 1px solid var(--hair-strong); border-radius: var(--r-panel); min-width: 12rem; }
.nav__menu li a { display: block; padding: 0.7rem 0.8rem; border-radius: 8px; color: var(--chalk-dim); text-decoration: none; }
.nav__menu li a:hover, .nav__menu li a[aria-current="page"] { background: var(--violet-wash); color: var(--chalk); }
@media (max-width: 860px) {
  .nav__main { display: none; }
  .nav__menu { display: block; margin-left: auto; }
  .nav__bar { gap: 0.6rem; }
  .nav__cta { padding-inline: 1rem; }
}
@media (max-width: 420px) { .nav__brand span { display: none; } }

/* --- Sections -------------------------------------------------------------- */
.section { padding-block: clamp(4rem, 10vw, 8.75rem); border-top: 1px solid var(--hair); }
.section--flush { border-top: 0; }
.section__head { max-width: 52rem; margin-bottom: clamp(2rem, 5vw, 4rem); }

/* --- Hero ------------------------------------------------------------------ */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 8vw, 7rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero__icef { display: inline-flex; gap: 0.5rem; align-items: center; font: 500 var(--t-micro)/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan); border: 1px solid rgba(53, 176, 247, 0.35); border-radius: var(--r-chip); padding: 0.45rem 0.8rem; margin-bottom: 1.5rem; text-decoration: none; }
.hero__icef:hover { color: var(--chalk); border-color: var(--cyan); }
.hero__word { font: 600 var(--t-hero)/0.92 var(--sans); letter-spacing: -0.04em; color: var(--chalk); margin: 0 0 1rem; }
.hero__word span { display: block; font-size: 0.42em; letter-spacing: 0.02em; color: var(--chalk-mute); margin-top: 0.35em; }
.hero__tag { font: 400 var(--t-scene)/1 var(--serif); font-style: italic; color: var(--violet-lift); margin: 0 0 1.5rem; }
.hero__avatar { justify-self: center; width: min(100%, 460px); }
@media (max-width: 899px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__avatar { order: -1; width: min(70%, 320px); }
}

/* --- Screens --------------------------------------------------------------- */
.screen { margin: 0; border-radius: var(--r-core); overflow: hidden; background: var(--ink-raise); border: 1px solid var(--hair-strong); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.4); }
.screen--browser { padding-top: 28px; position: relative; }
.screen--browser::before { content: ""; position: absolute; top: 10px; left: 14px; width: 42px; height: 8px; background: radial-gradient(circle at 4px 4px, var(--hair-strong) 3.5px, transparent 4px) 0 0 / 17px 8px repeat-x; }
.screen--phone { border-radius: 34px; padding: 10px; background: var(--ink-sunken); max-width: 300px; margin-inline: auto; }
.screen--phone img { border-radius: 26px; }
.screen figcaption { padding: 0.75rem 1rem; font-size: var(--t-small); color: var(--chalk-mute); }

/* --- Department blocks ----------------------------------------------------- */
.dept__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.dept--flip .dept__copy { order: 2; }
.dept__copy .lead { margin-bottom: 1rem; }
.badge--early { display: inline-flex; align-items: center; font: 500 var(--t-nano)/1 var(--mono); letter-spacing: 0.08em; color: var(--cyan); border: 1px solid rgba(53, 176, 247, 0.45); border-radius: var(--r-chip); padding: 0.3rem 0.55rem; }
.dept__points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.dept__points li { padding-left: 1.5rem; position: relative; color: var(--chalk-mute); }
.dept__points li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.6rem; height: 1px; background: var(--violet-lift); }
@media (max-width: 959px) {
  .dept__grid { grid-template-columns: 1fr; }
  .dept--flip .dept__copy { order: 0; }
}

/* --- Doors (School / Agent, joined by Network) ----------------------------- */
.doors { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: stretch; }
.door { background: var(--ink-raise); border: 1px solid var(--hair-strong); border-radius: var(--r-shell); padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: inherit; transition: border-color var(--dur-fast) var(--ease-state); }
.door:hover { border-color: var(--violet-lift); }
.door p { margin: 0; }
.door .btn { align-self: flex-start; margin-top: auto; }
.doors__join { display: grid; place-items: center; writing-mode: vertical-rl; font: 500 var(--t-micro)/1 var(--mono); text-transform: uppercase; letter-spacing: 0.18em; color: var(--violet-lift); border-inline: 1px dashed var(--hair-strong); padding-inline: 0.6rem; }
@media (max-width: 759px) {
  .doors { grid-template-columns: 1fr; }
  .doors__join { writing-mode: horizontal-tb; border-inline: 0; border-block: 1px dashed var(--hair-strong); padding: 0.6rem 0; }
}

/* --- Morning strip --------------------------------------------------------- */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.strip__item { display: flex; flex-direction: column; gap: 0.75rem; }
.strip__time { font: 500 var(--t-micro)/1 var(--mono); color: var(--cyan); letter-spacing: 0.08em; }
@media (max-width: 859px) { .strip { grid-template-columns: 1fr; } }

/* --- Comparison table ------------------------------------------------------ */
.compare__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--hair); border-radius: var(--r-panel); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--t-small); }
.compare th, .compare td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--hair); text-align: center; }
.compare th[scope="row"] { text-align: left; font-weight: 400; color: var(--chalk-dim); }
.compare thead th { font: 500 var(--t-micro)/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--chalk-faint); }
.compare__dean { background: var(--violet-wash); }
.compare .yes { color: var(--signal); } .compare .no { color: var(--chalk-faint); } .compare .varies { color: var(--chalk-mute); }
.compare__note { margin-top: 1rem; font-size: var(--t-small); color: var(--chalk-faint); }

/* --- Ribbon ---------------------------------------------------------------- */
.ribbon__grid { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.ribbon__law { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.ribbon__law span { font: 500 var(--t-micro)/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--hair-strong); border-radius: var(--r-chip); padding: 0.55rem 0.8rem; color: var(--chalk-mute); }

/* --- Forms ----------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 639px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-size: var(--t-small); color: var(--chalk); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 0.7rem 0.9rem; border-radius: 10px;
  background: var(--ink-sunken); border: 1px solid var(--hair-strong); color: var(--chalk); font: inherit;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--violet-lift); outline: none; box-shadow: 0 0 0 3px var(--violet-wash); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { display: inline-flex; gap: 0.5rem; align-items: center; border: 1px solid var(--hair-strong); border-radius: var(--r-chip); padding: 0.55rem 0.9rem; min-height: 44px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--violet-lift); background: var(--violet-wash); color: var(--chalk); }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--t-small); color: var(--chalk-mute); }
.consent input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; flex: none; }
.form__status { min-height: 1.5em; color: var(--signal); margin: 0; }

/* Field errors (ask.js / stand.js toggle .is-bad on the field). */
.field__err { display: none; color: var(--alert); font-size: var(--t-small); margin: 0; }
.field.is-bad .field__err { display: block; }
.field.is-bad input { border-color: var(--alert); }
.ask__fail { color: var(--alert); }
.ask__chat iframe { width: 100%; min-height: 560px; border: 1px solid var(--hair-strong); border-radius: var(--r-core); background: var(--ink-raise); }
.stand__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Pricing ----------------------------------------------------------------
   /pricing and the /school teaser: plan cards, seat tiles, calculator, package
   table. Every figure comes from src/data/pricing.ts. Tokens only. */
.plans-sec.section--flush { padding-top: 0; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.plan { position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.4rem, 2vw, 1.85rem); border: 1px solid var(--hair-strong); border-radius: var(--r-shell); background: linear-gradient(180deg, rgba(28, 23, 48, 0.92), rgba(14, 11, 24, 0.92)); transition: border-color var(--dur-fast) var(--ease-state); }
.plan:hover { border-color: rgba(183, 155, 255, 0.45); }
@supports (grid-template-rows: subgrid) {
  /* Prices, seats and buttons line up across cards however long each description runs. */
  .plan { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 1.1rem; align-content: start; }
}
.plan--pro { border-color: rgba(183, 155, 255, 0.6); background: radial-gradient(120% 55% at 50% 0%, rgba(139, 92, 246, 0.24), transparent 70%), linear-gradient(180deg, rgba(34, 26, 60, 0.96), rgba(14, 11, 24, 0.96)); box-shadow: 0 40px 120px -50px rgba(139, 92, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.plan--pro:hover { border-color: var(--violet-lift); }
.plan__flag { position: absolute; top: 0; left: clamp(1.4rem, 2vw, 1.85rem); transform: translateY(-50%); margin: 0; max-width: calc(100% - 2.4rem); font: 500 var(--t-nano)/1.25 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; text-wrap: balance; color: var(--cyan); background: var(--ink); border: 1px solid rgba(53, 176, 247, 0.55); border-radius: 10px; padding: 0.4rem 0.6rem; }
.plan__name { font: 600 clamp(1.35rem, 1.8vw, 1.6rem)/1.1 var(--sans); letter-spacing: -0.02em; }
.plan__for { margin: 0; color: var(--chalk-mute); font-size: var(--t-small); line-height: 1.5; }
.plan__price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.12em; color: var(--chalk); font: 600 clamp(2.6rem, 3.6vw, 3.5rem)/1 var(--sans); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.plan__cur { align-self: flex-start; margin-top: 0.18em; font-size: 0.5em; font-weight: 500; letter-spacing: 0; color: var(--chalk-mute); }
.plan__per { margin-left: 0.45rem; font: 500 var(--t-micro)/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--chalk-faint); }
.plan__price--quote { flex-direction: column; align-items: flex-start; gap: 0.7rem; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--violet-lift); }
.plan__price--quote .plan__per { margin-left: 0; font-style: normal; }
.plan__seats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.plan__seats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.4rem; padding: 0.75rem 0.85rem; background: rgba(10, 8, 18, 0.72); }
.plan__seats dd { margin: 0; font: 600 1.45rem/1 var(--sans); letter-spacing: -0.02em; color: var(--chalk); font-variant-numeric: tabular-nums; }
.plan__seats dt { font: 500 var(--t-nano)/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--chalk-faint); }
.plan--enterprise .plan__seats dd { font: 400 1.3rem/1 var(--serif); font-style: italic; letter-spacing: 0; color: var(--violet-lift); }
.plan__extra { margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: var(--t-small); color: var(--chalk-mute); }
.plan__extra b { color: var(--chalk); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan__cta { width: 100%; }
.plan__plus { margin: 0.35rem 0 0; font: 500 var(--t-micro)/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--violet-lift); }
.plan__list { margin: 0; gap: 0.55rem; align-content: start; font-size: var(--t-small); }
.plan__list li { line-height: 1.45; }
.plans__note { margin: 1.75rem 0 0; max-width: 72ch; font-size: var(--t-small); color: var(--chalk-faint); }
.plans__more { display: inline-flex; gap: 0.5rem; margin-top: 1.25rem; font: 500 var(--t-small)/1.3 var(--mono); color: var(--cyan); text-decoration: none; }
.plans__more:hover { color: var(--chalk); }
.plans__more span { transition: transform var(--dur-fast) var(--ease-state); }
.plans__more:hover span { transform: translateX(4px); }
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* Who needs a seat */
.seats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 22px; overflow: hidden; }
.seat { position: relative; display: flex; flex-direction: column; gap: 0.8rem; padding: clamp(1.5rem, 2.6vw, 2.25rem); background: var(--ink); }
.seat::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--seat, var(--violet-lift)); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-enter); }
.seat.is-in::after { transform: scaleX(1); }
.seat--admin { --seat: var(--violet-lift); } .seat--teacher { --seat: var(--cyan); } .seat--free { --seat: var(--signal); }
.seat__tag { align-self: flex-start; margin: 0; font: 500 var(--t-nano)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--seat); border: 1px solid currentColor; border-radius: var(--r-chip); padding: 0.4rem 0.65rem; }
.seat__who { margin: 0.2rem 0 0; font: 600 var(--t-sub)/1.1 var(--sans); }
.seat__fig { margin: 0; display: flex; flex-direction: column; gap: 0.45rem; font: 600 clamp(1.7rem, 2.6vw, 2.3rem)/1 var(--sans); letter-spacing: -0.03em; color: var(--chalk); font-variant-numeric: tabular-nums; }
.seat__fig small { font: 500 var(--t-micro)/1.3 var(--mono); letter-spacing: 0.04em; color: var(--chalk-faint); }
.seat--free .seat__fig { color: var(--signal); }
.seat__text { margin: 0; color: var(--chalk-mute); font-size: var(--t-small); line-height: 1.55; }
@media (max-width: 899px) { .seats { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .seat::after { transform: scaleX(1); transition: none; } }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-areas: "controls receipt" "presets receipt"; border: 1px solid var(--hair-strong); border-radius: var(--r-shell); overflow: hidden; background: linear-gradient(160deg, rgba(139, 92, 246, 0.09), rgba(10, 8, 18, 0.72) 45%); box-shadow: 0 40px 120px -60px rgba(139, 92, 246, 0.6); }
.calc__controls { grid-area: controls; display: grid; gap: 1.9rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) 0; }
.calc__presets { grid-area: presets; padding: 1.9rem clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.calc__receipt { grid-area: receipt; display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-left: 1px solid var(--hair); background: rgba(10, 8, 18, 0.6); }
.calc__label { margin: 0 0 0.8rem; font: 500 var(--t-micro)/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--chalk-faint); }
.calc__plans { min-width: 0; margin: 0; padding: 0; border: 0; }
.calc__plans legend { padding: 0; }
.calc__seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--hair-strong); border-radius: 16px; background: rgba(10, 8, 18, 0.6); }
.calc__opt { position: relative; cursor: pointer; }
.calc__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.calc__opt span { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.7rem 0.4rem; border-radius: 12px; color: var(--chalk-mute); transition: background var(--dur-fast) var(--ease-state), color var(--dur-fast) var(--ease-state); }
.calc__opt b { font-weight: 600; }
.calc__opt small { font: 500 var(--t-micro)/1 var(--mono); color: var(--chalk-faint); font-variant-numeric: tabular-nums; }
.calc__opt:hover span { color: var(--chalk); background: rgba(255, 255, 255, 0.04); }
.calc__opt input:checked + span { background: var(--violet-lift); color: var(--ink); }
.calc__opt input:checked + span small { color: rgba(10, 8, 18, 0.7); }
.calc__opt input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.calc__row .calc__label { margin: 0; }
.calc__count { font: 600 1.7rem/1 var(--sans); letter-spacing: -0.02em; color: var(--chalk); font-variant-numeric: tabular-nums; }
.calc__track { position: relative; margin-top: 0.7rem; padding-bottom: 1.5rem; --inc: 0.1; }
/* Track: included seats in violet, extra seats in cyan, the rest a hairline. Stops follow the thumb's centre. */
.calc__range { --p: 0.1; --inc: 0.1; --stop: calc(11px + var(--p) * (100% - 22px)); --istop: calc(11px + min(var(--p), var(--inc)) * (100% - 22px)); -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.calc__range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--violet-lift) 0 var(--istop), var(--cyan) 0 var(--stop), var(--hair-strong) 0); }
.calc__range::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--violet-lift) 0 var(--istop), var(--cyan) 0 var(--stop), var(--hair-strong) 0); }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border: 0; border-radius: 50%; background: var(--chalk); box-shadow: 0 0 0 6px var(--violet-wash), 0 4px 14px rgba(0, 0, 0, 0.5); }
.calc__range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--chalk); box-shadow: 0 0 0 6px var(--violet-wash), 0 4px 14px rgba(0, 0, 0, 0.5); }
.calc__range:focus-visible { outline: none; }
.calc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--cyan); }
.calc__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--cyan); }
.calc__inc { position: absolute; bottom: 0; left: calc(11px + var(--inc) * (100% - 22px)); transform: translateX(-50%); font: 500 var(--t-nano)/1 var(--mono); letter-spacing: 0.04em; color: var(--violet-lift); white-space: nowrap; pointer-events: none; }
.calc__inc::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 3px); width: 1px; height: 7px; background: var(--violet-lift); }
.calc__hint { margin: 0.6rem 0 0; font-size: var(--t-small); color: var(--chalk-faint); line-height: 1.5; }
.calc__presets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.calc__preset { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.35rem 1rem; padding: 0.75rem 1rem; border: 1px solid var(--hair); border-radius: 12px; background: rgba(10, 8, 18, 0.5); color: var(--chalk-dim); font: 500 var(--t-small)/1.3 var(--sans); text-align: left; cursor: pointer; transition: border-color var(--dur-fast) var(--ease-state), background var(--dur-fast) var(--ease-state); }
.calc__preset small { font: 500 var(--t-micro)/1.3 var(--mono); color: var(--chalk-faint); font-variant-numeric: tabular-nums; }
.calc__preset b { color: var(--chalk); font-weight: 600; }
.calc__preset:hover, .calc__preset[aria-pressed="true"] { border-color: var(--violet-lift); color: var(--chalk); }
.calc__preset[aria-pressed="true"] { background: var(--violet-wash); }
.calc__total { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; font: 600 clamp(3rem, 6vw, 4.75rem)/0.95 var(--sans); letter-spacing: -0.05em; color: var(--chalk); font-variant-numeric: tabular-nums; }
.calc__total small { font: 500 var(--t-micro)/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--chalk-faint); }
.calc__lines { margin: 0.4rem 0 0; border-top: 1px dashed var(--hair-strong); }
.calc__lines > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px dashed var(--hair-strong); }
.calc__lines dt { display: flex; flex-direction: column; gap: 0.3rem; color: var(--chalk); font-size: var(--t-small); }
.calc__lines dt small { font: 500 var(--t-micro)/1.3 var(--mono); color: var(--chalk-faint); font-variant-numeric: tabular-nums; }
.calc__lines dd { margin: 0; font: 500 var(--t-small)/1.4 var(--mono); color: var(--chalk); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__lines [data-line] dt small, .calc__lines [data-line] dd { color: var(--cyan); }
.calc__note { margin: 0; font-size: var(--t-micro); line-height: 1.5; color: var(--chalk-faint); }
.calc__incl { margin-top: 0.5rem; padding: 1.1rem 1.2rem; border: 1px solid var(--hair); border-radius: 14px; background: rgba(20, 16, 31, 0.6); }
.calc__incl .calc__label { margin-bottom: 0; color: var(--violet-lift); }
.calc__incl .ticks { margin-top: 0.8rem; gap: 0.45rem; font-size: var(--t-small); }
.calc__cta { align-self: flex-start; margin-top: auto; }
.calc__ent { margin: 0; font-size: var(--t-small); color: var(--chalk-mute); }
.no-js .calc__plans, .no-js .calc__field { display: none; }
@media (max-width: 959px) {
  .calc { grid-template-columns: 1fr; grid-template-areas: "controls" "receipt" "presets"; }
  .calc__controls { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
  .calc__receipt { border-left: 0; border-block: 1px solid var(--hair); }
}

/* Every package, line by line */
.matrix__wrap { border: 1px solid var(--hair-strong); border-radius: var(--r-core); overflow: clip; background: rgba(14, 11, 24, 0.72); }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: var(--t-small); }
.matrix thead th, .matrix__corner { position: sticky; top: 64px; z-index: 2; padding: 1.1rem 0.75rem; background: rgba(14, 11, 24, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair-strong); vertical-align: bottom; }
.matrix thead th { text-align: center; }
/* Fixed rem widths: Chrome treats a percentage inside clamp() on a table column as auto. */
.matrix__c-plan { width: 11.5rem; }
@media (max-width: 1100px) { .matrix__c-plan { width: 8.5rem; } }
.matrix__plan { display: block; font: 600 var(--t-lead)/1.1 var(--sans); letter-spacing: -0.02em; color: var(--chalk); }
.matrix__price { display: block; margin-top: 0.35rem; font: 500 var(--t-small)/1.2 var(--mono); color: var(--chalk-mute); font-variant-numeric: tabular-nums; }
.matrix__price small { margin-left: 0.1rem; color: var(--chalk-faint); }
.matrix thead th.matrix__col--pro { background: rgba(32, 24, 56, 0.97); box-shadow: inset 0 2px 0 var(--violet-lift); }
.matrix td.matrix__col--pro { background: var(--violet-wash); }
.matrix tbody tr > * { border-top: 1px solid var(--hair); }
.matrix tbody th[scope="row"] { padding: 1rem 1.25rem; text-align: left; font-weight: 400; vertical-align: top; }
.matrix__feat { display: block; font-weight: 600; color: var(--chalk); }
.matrix__detail { display: block; max-width: 64ch; margin-top: 0.3rem; line-height: 1.55; color: var(--chalk-faint); }
.matrix tbody td { padding: 1rem 0.5rem; text-align: center; vertical-align: middle; }
.matrix__group th { padding: 1.5rem 1.25rem 0.7rem; text-align: left; font: 500 var(--t-micro)/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--violet-lift); background: rgba(10, 8, 18, 0.55); }
.matrix__num { font: 600 var(--t-body)/1 var(--sans); color: var(--chalk); font-variant-numeric: tabular-nums; }
.matrix__yes { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--signal-wash); color: var(--signal); font-size: 0.85rem; font-weight: 700; }
.matrix__no { color: var(--chalk-faint); opacity: 0.55; }
.matrix__free { display: inline-block; padding: 0.35rem 0.55rem; font: 500 var(--t-nano)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); border: 1px solid rgba(86, 207, 160, 0.4); border-radius: var(--r-chip); }
@media (max-width: 720px) {
  /* Each row restacks: the feature across the top, its three package marks beneath, under a sticky header. */
  .matrix, .matrix tbody { display: block; }
  .matrix thead { display: block; position: sticky; top: 64px; z-index: 2; }
  .matrix tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .matrix thead th { position: static; width: auto; padding: 0.8rem 0.3rem; }
  .matrix__corner { display: none; }
  .matrix__plan { font-size: 1rem; }
  .matrix__price { font-size: var(--t-micro); }
  .matrix tbody th[scope="row"] { grid-column: 1 / -1; padding: 1rem 1rem 0.35rem; }
  .matrix tbody td { border-top: 0; padding: 0.45rem 0.4rem 1rem; }
  .matrix__group th { grid-column: 1 / -1; padding-inline: 1rem; }
}
.ent { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--hair-strong); border-radius: var(--r-core); background: linear-gradient(110deg, rgba(139, 92, 246, 0.13), rgba(53, 176, 247, 0.05) 60%, transparent); }
.ent > div { max-width: 60rem; }
.ent .h3 { margin-bottom: 0.6rem; }
.ent p:last-child { margin: 0; color: var(--chalk-mute); }

/* Moving to Dean, and the small print */
.move { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.move__head { position: sticky; top: 96px; }
.move__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 22px; overflow: hidden; }
.move__steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; padding: clamp(1.25rem, 2.2vw, 1.75rem); background: var(--ink); }
.move__n { font: 500 var(--t-micro)/1.7 var(--mono); color: var(--violet-lift); }
.move__steps h3 { margin: 0 0 0.35rem; font: 600 clamp(1.05rem, 1.4vw, 1.2rem)/1.3 var(--sans); }
.move__steps p { margin: 0; font-size: var(--t-small); line-height: 1.55; color: var(--chalk-mute); }
@media (max-width: 959px) { .move { grid-template-columns: 1fr; } .move__head { position: static; } }
.terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; font-size: var(--t-small); line-height: 1.6; color: var(--chalk-mute); }
.terms li { padding-top: 1.25rem; border-top: 1px solid var(--hair); }
.terms b { display: block; margin-bottom: 0.3rem; font-size: var(--t-body); font-weight: 600; color: var(--chalk); }
@media (max-width: 759px) { .terms { grid-template-columns: 1fr; } }

/* --- Legal / prose pages --------------------------------------------------- */
.prose { max-width: 48rem; }
.prose h1 { font-size: var(--t-scene); margin-bottom: 1.5rem; }
.prose h2 { font-size: var(--t-sub); margin: 2.5rem 0 1rem; }
.prose li { margin-bottom: 0.5rem; }

/* --- Footer ---------------------------------------------------------------- */
.foot { border-top: 1px solid var(--hair); padding-block: 3rem 4rem; background: var(--ink-sunken); }
.foot__grid { display: grid; gap: 1.5rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.foot__links a { color: var(--chalk-mute); font-size: var(--t-small); }
.foot__legal { font-size: var(--t-micro); line-height: 1.6; color: var(--chalk-faint); max-width: 80ch; margin: 0; }

/* --- Reveal ---------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-mid) var(--ease-enter), transform var(--dur-mid) var(--ease-enter); }
[data-reveal].is-in, .no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ============================================================================
   Story hero — "seven tools become one" (src/scripts/story-hero.ts)
   Static by default; `.is-enhanced` (JS, motion allowed, ≥900px, WebGL) turns it into a
   pinned 3D scene: chaos → "into one place" → Dean's screen and the headline.
   ========================================================================= */
.story-hero { position: relative; }
.sh-stage { position: relative; }
.sh-canvas { display: none; }
.sh-copy--mid, .sh-hint { display: none; }
.sh-copy--chaos { padding-block: clamp(3rem, 8vw, 6rem) 0; }
.sh-chaos-title { font-size: var(--t-scene); }
.sh-tools { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sh-tools li { font: 500 var(--t-micro)/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--chalk-mute); border: 1px solid var(--hair-strong); border-radius: var(--r-chip); padding: 0.55rem 0.8rem; text-decoration: line-through; text-decoration-color: rgba(183, 155, 255, 0.6); }
.sh-final { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 8vw, 6rem); }
.sh-final__visual { position: relative; }
.sh-screen { margin: 0; border-radius: var(--r-core); overflow: hidden; border: 1px solid var(--hair-strong); box-shadow: 0 40px 120px -40px rgba(139, 92, 246, 0.45), 0 30px 80px -30px rgba(0, 0, 0, 0.8); transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transform-origin: 60% 50%; }
.sh-avatar { position: absolute; right: -4%; bottom: -14%; width: min(30%, 230px); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }
.sh-avatar .pose { width: 100%; height: auto; }
@media (max-width: 899px) {
  .sh-final { grid-template-columns: 1fr; }
  .sh-avatar { position: relative; right: auto; bottom: auto; width: min(60%, 260px); margin: -3rem auto 0; }
}

.story-hero.is-enhanced { height: 420vh; }
.story-hero.is-enhanced .sh-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.story-hero.is-enhanced .sh-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.story-hero.is-enhanced .sh-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 var(--gutter); pointer-events: none; z-index: 2; }
.story-hero.is-enhanced .sh-copy--chaos { justify-content: flex-start; padding-top: 12vh; }
.story-hero.is-enhanced .sh-copy--chaos .h1, .story-hero.is-enhanced .sh-copy--mid .h1 { text-shadow: 0 4px 40px rgba(10, 8, 18, 0.9), 0 0 2px rgba(10, 8, 18, 0.9); }
.story-hero.is-enhanced .sh-tools li { background: rgba(10, 8, 18, 0.75); }
/* The tools land on the right, so the "into one place" line sits on the left. */
.story-hero.is-enhanced .sh-copy--mid { align-items: flex-start; text-align: left; padding-left: max(var(--gutter), calc((100vw - var(--shell-max)) / 2 + var(--gutter))); padding-right: 52vw; }
.story-hero.is-enhanced .sh-copy--mid { display: flex; opacity: 0; }
.story-hero.is-enhanced .sh-tools { justify-content: center; }
.story-hero.is-enhanced .sh-tools li { text-decoration: none; }
.story-hero.is-enhanced .sh-final { position: absolute; inset: 0; margin: 0 auto; padding-block: 0; z-index: 3; }
.story-hero.is-enhanced .sh-final__copy, .story-hero.is-enhanced .sh-avatar, .story-hero.is-enhanced .sh-screen { opacity: 0; }
.story-hero.is-enhanced .sh-hint { display: block; position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%); font: 500 var(--t-micro)/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--chalk-faint); z-index: 2; }
.story-hero.is-enhanced .sh-final__copy .actions, .story-hero.is-enhanced .sh-final__copy a, .story-hero.is-enhanced .sh-avatar { pointer-events: auto; }

/* ============================================================================
   Journey — one student, every department (src/scripts/journey.ts)
   ========================================================================= */
.journey { padding-block: clamp(4rem, 10vw, 8rem) 0; border-top: 1px solid var(--hair); }
.journey__head { text-align: center; max-width: 54rem; margin-inline: auto; }
.journey__head .eyebrow { justify-content: center; }
.journey__head .lead { margin-inline: auto; }
.journey__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; padding-block: 3rem; }
.journey__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem; }
.journey__dept { font: 500 var(--t-micro)/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--cyan); margin: 0 0 0.75rem; }
.journey__num { color: var(--violet-lift); margin-right: 0.4rem; }
.journey__static { margin-top: 1.25rem; }
.journey__device { display: none; }
@media (max-width: 899px) { .journey__grid { grid-template-columns: 1fr; } }

.journey.is-enhanced .journey__pin { height: 100vh; display: flex; align-items: center; }
.journey.is-enhanced .journey__grid { width: 100%; padding-block: 0; }
.journey.is-enhanced .journey__steps { position: relative; display: block; min-height: 18rem; }
.journey.is-enhanced .journey__step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(16px); transition: opacity var(--dur-mid) var(--ease-enter), transform var(--dur-mid) var(--ease-enter); }
.journey.is-enhanced .journey__step.is-active { opacity: 1; transform: none; }
.journey.is-enhanced .journey__static { display: none; }
.journey.is-enhanced .journey__device { display: block; }
.laptop { --turn: -12; transform: perspective(1800px) rotateY(calc(var(--turn) * 1deg)) rotateX(6deg); transform-style: preserve-3d; transition: transform 0.2s linear; }
.laptop__lid { background: #1b1726; border-radius: 18px 18px 6px 6px; padding: 14px 14px 18px; border: 1px solid var(--hair-strong); box-shadow: 0 50px 120px -40px rgba(139, 92, 246, 0.4), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.laptop__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #f5f3fb; }
.laptop__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.02); transition: opacity 0.45s var(--ease-enter), transform 0.6s var(--ease-enter); }
.laptop__shot.is-active { opacity: 1; transform: none; }
.laptop__base { height: 16px; margin: 0 -5%; background: linear-gradient(#2a2538, #15121f); border-radius: 0 0 22px 22px; box-shadow: 0 30px 40px -24px rgba(0, 0, 0, 0.9); }
.journey__device { position: relative; }
.journey__pose { position: absolute; left: -16%; bottom: -6%; width: 21%; z-index: 2; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.6)); pointer-events: none; }
.journey__dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.journey__dots span { width: 28px; height: 3px; border-radius: 2px; background: var(--hair-strong); transition: background var(--dur-fast); }
.journey__dots span.is-active { background: var(--violet-lift); }

/* ============================================================================
   Outlink-style dark theme: faint grid, violet glow, numbered section labels.
   ========================================================================= */
body { background:
  radial-gradient(1200px 600px at 70% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
  linear-gradient(rgba(196, 178, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
  linear-gradient(90deg, rgba(196, 178, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
  var(--ink); }
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: 10% 15% auto; height: 60%; background: radial-gradient(closest-side, rgba(139, 92, 246, 0.22), transparent); filter: blur(30px); z-index: -1; pointer-events: none; }
.eyebrow .num { color: var(--violet-lift); }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--chalk-dim); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--signal); font-weight: 700; }
.pose { display: block; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55)); pointer-events: none; }

/* --- 01 Agent Dean ---------------------------------------------------------- */
.agent__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.agent__visual { position: relative; }
.agent__visual { padding-right: 15%; }
.agent__avatar { position: absolute; right: -9%; bottom: -14%; width: min(27%, 220px); z-index: 2; }
.agent__avatar .phero__avatar { width: 100%; }
@media (max-width: 959px) { .agent__grid { grid-template-columns: 1fr; } .agent__avatar { position: relative; right: auto; bottom: auto; width: min(55%, 240px); margin: -2rem auto 0; } }

.console { background: linear-gradient(180deg, #110d1d, #0c0916); border: 1px solid var(--hair-strong); border-radius: var(--r-core); box-shadow: 0 40px 120px -40px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04); overflow: hidden; font-family: var(--mono); }
.console__bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--hair); font-size: var(--t-micro); color: var(--chalk-mute); }
.console__dots { display: inline-flex; gap: 6px; } .console__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--hair-strong); }
.console__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console__live { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--signal); }
.console__live span, .chat__live { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(86, 207, 160, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(86, 207, 160, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(86, 207, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(86, 207, 160, 0); } }
@media (prefers-reduced-motion: reduce) { .console__live span, .chat__live { animation: none; } }
.console__stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-bottom: 1px solid var(--hair); }
.console__stats div { padding: 0.9rem 1rem; border-right: 1px solid var(--hair); } .console__stats div:last-child { border-right: 0; }
.console__stats dt { font: 600 1.6rem/1 var(--sans); color: var(--chalk); }
.console__stats dd { margin: 0.35rem 0 0; font-size: var(--t-nano); text-transform: uppercase; letter-spacing: 0.08em; color: var(--chalk-faint); }
.console__log { list-style: none; margin: 0; padding: 0.6rem 0; }
.console__line { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto 3rem; gap: 0.75rem; align-items: center; padding: 0.55rem 1rem; font-size: var(--t-micro); border-left: 2px solid transparent; }
.console__line:first-child { border-left-color: var(--signal); background: rgba(86, 207, 160, 0.06); }
.console__verb { color: var(--violet-lift); text-transform: lowercase; }
.console__detail { color: var(--chalk-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sans); font-size: var(--t-small); }
.console__state { font-size: var(--t-nano); border-radius: var(--r-chip); padding: 0.25rem 0.5rem; white-space: nowrap; }
.console__state--done { color: var(--signal); background: var(--signal-wash); }
.console__state--approve { color: var(--alert); background: var(--alert-wash); }
.console__time { color: var(--chalk-faint); text-align: right; }
.console__guard { margin: 0; padding: 0.75rem 1rem; border-top: 1px solid var(--hair); font-size: var(--t-micro); color: var(--chalk-mute); }
.console__guard span { color: var(--signal); }
.console.is-live .console__line { opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease-enter), transform 0.4s var(--ease-enter); }
.console.is-live .console__line.is-in { opacity: 1; transform: none; }
@media (max-width: 639px) { .console__stats { grid-template-columns: repeat(2, 1fr); } .console__line { grid-template-columns: minmax(0, 1fr) auto; } .console__verb, .console__time { display: none; } }

.loop { margin-top: clamp(3rem, 7vw, 5rem); border: 1px solid var(--hair); border-radius: var(--r-shell); padding: clamp(1.5rem, 3vw, 2.5rem); background: rgba(20, 16, 31, 0.6); }
.loop__title { font: 500 var(--t-micro)/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--chalk-faint); margin: 0 0 1.5rem; }
.loop__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.75rem; position: relative; }
.loop__step { display: grid; gap: 0.35rem; justify-items: center; text-align: center; font-size: var(--t-small); }
.loop__step b { color: var(--chalk); font-weight: 600; }
.loop__step span:last-child { color: var(--chalk-faint); font-size: var(--t-micro); }
.loop__dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 600 var(--t-micro)/1 var(--mono); border: 1px solid var(--hair-strong); color: var(--chalk-mute); background: var(--ink); transition: all 0.35s var(--ease-state); }
.loop__step.is-on .loop__dot { background: var(--violet); border-color: var(--violet-lift); color: var(--chalk); }
.loop__step.is-now .loop__dot { box-shadow: 0 0 0 6px var(--violet-wash); }
.loop:not(.is-live) .loop__dot { background: var(--violet-wash); color: var(--chalk); }
@media (max-width: 959px) { .loop__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1.5rem; } }

/* --- 03 Customer service ------------------------------------------------------ */
.service__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.service__visual { position: relative; padding-right: 18%; }
.service__pose { position: absolute; right: -4%; bottom: -10%; width: 26%; }
.chat { background: #0f0c1a; border: 1px solid var(--hair-strong); border-radius: var(--r-core); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(53, 176, 247, 0.35); }
.chat__bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--hair); font-size: var(--t-small); color: var(--chalk); }
.chat__time { margin-left: auto; font: 500 var(--t-micro)/1 var(--mono); color: var(--chalk-faint); }
.chat__msgs { list-style: none; margin: 0; padding: 1rem; display: grid; gap: 0.6rem; }
.chat__msg { max-width: 82%; padding: 0.65rem 0.85rem; border-radius: 14px; font-size: var(--t-small); line-height: 1.45; }
.chat__msg--visitor { background: var(--ink-raise-2); color: var(--chalk-dim); border-bottom-left-radius: 4px; }
.chat__msg--dean { justify-self: end; background: var(--violet); color: var(--chalk); border-bottom-right-radius: 4px; }
.chat__msg--handoff { justify-self: center; max-width: none; padding: 0; }
.chat__handoff { font: 500 var(--t-micro)/1.3 var(--mono); color: var(--signal); border: 1px solid rgba(86, 207, 160, 0.35); border-radius: var(--r-chip); padding: 0.4rem 0.7rem; display: inline-block; }
.chat__note { margin: 0; padding: 0.7rem 1rem; border-top: 1px solid var(--hair); font-size: var(--t-micro); color: var(--chalk-faint); }
.chat.is-live .chat__msg { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease-enter), transform 0.4s var(--ease-enter); }
.chat.is-live .chat__msg.is-in { opacity: 1; transform: none; }
@media (max-width: 959px) { .service__grid { grid-template-columns: 1fr; } .service__visual { padding-right: 0; } .service__pose { display: none; } }

/* --- 04 Everyone gets their own Dean ----------------------------------------- */
.roles__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.role { background: linear-gradient(180deg, rgba(28, 23, 48, 0.9), rgba(20, 16, 31, 0.9)); border: 1px solid var(--hair); border-radius: var(--r-core); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; transition: border-color var(--dur-fast), transform var(--dur-fast); }
.role:hover { border-color: var(--violet-lift); transform: translateY(-3px); }
.role__who { margin: 0; font-weight: 600; color: var(--chalk); }
.role__what { margin: 0; font-size: var(--t-small); color: var(--chalk-mute); }
.role__mini { list-style: none; margin: auto 0 0; padding: 0.7rem; display: grid; gap: 0.4rem; background: rgba(10, 8, 18, 0.7); border: 1px solid var(--hair); border-radius: 10px; }
.role__mini li { display: flex; justify-content: space-between; gap: 0.5rem; font-size: var(--t-nano); color: var(--chalk-faint); }
.role__mini b { color: var(--chalk-dim); font-weight: 500; white-space: nowrap; }
@media (max-width: 1199px) { .roles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 759px) { .roles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 459px) { .roles__grid { grid-template-columns: 1fr; } }

/* --- 05 Network with the 3D emblem ------------------------------------------- */
.network__head { text-align: center; margin-inline: auto; } .network__head .eyebrow { justify-content: center; } .network__head .lead { margin-inline: auto; }
.network__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.network__core { position: relative; display: grid; place-items: center; min-height: 420px; }
.network__emblem { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.network__core.has-3d .network__emblem { display: block; }
.network__core.has-3d .network__emblem-still { visibility: hidden; }
.network__emblem-still { width: 46%; height: auto; }
.network__pose { position: absolute; right: -6%; bottom: -4%; width: 34%; }
.network__label { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; margin: 0; font: 500 var(--t-micro)/1 var(--mono); text-transform: uppercase; letter-spacing: 0.18em; }
.network__core::before, .network__core::after { content: ""; position: absolute; top: 50%; width: 28%; height: 1px; background: linear-gradient(90deg, transparent, var(--violet-lift)); }
.network__core::before { left: -10%; } .network__core::after { right: -10%; transform: scaleX(-1); }
@media (max-width: 959px) { .network__grid { grid-template-columns: 1fr; } .network__core { min-height: 300px; order: -1; } }

/* --- Closing band + giant footer wordmark ----------------------------------- */
.ctaband { border-top: 1px solid var(--hair); padding-block: clamp(4rem, 9vw, 7rem) 0; overflow: hidden; }
.ctaband__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: end; gap: 2rem; }
.ctaband__grid .h1 { font-size: var(--t-scene); }
.ctaband__pose { width: min(100%, 300px); justify-self: center; margin-bottom: -2px; }
@media (max-width: 759px) { .ctaband__grid { grid-template-columns: 1fr; } .ctaband__pose { width: 55%; } }
.foot__wordmark { font: 700 clamp(6rem, 24vw, 22rem)/0.8 var(--sans); letter-spacing: -0.06em; color: transparent; background: linear-gradient(180deg, rgba(247, 245, 255, 0.10), rgba(247, 245, 255, 0)); -webkit-background-clip: text; background-clip: text; margin: 2rem 0 -0.12em; user-select: none; }

/* --- Statement (word by word), marquee, portal, sliding roles ---------------- */
.statement { padding-block: clamp(5rem, 14vw, 11rem); }
.statement__text { font: 600 clamp(2rem, 4.6vw, 4.2rem)/1.12 var(--sans); letter-spacing: -0.03em; color: var(--chalk); max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.statement__text .w--accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--violet-lift); letter-spacing: 0; }
.marquee { overflow: hidden; border-block: 1px solid var(--hair); padding-block: 1.1rem; background: rgba(20, 16, 31, 0.6); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; }
.marquee__item { font: 600 clamp(1.4rem, 3vw, 2.4rem)/1 var(--sans); letter-spacing: -0.02em; color: var(--chalk); padding-right: 2.2rem; white-space: nowrap; }
.marquee__item i { font-style: normal; color: var(--violet-lift); margin-left: 2.2rem; font-size: 0.6em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.portal.is-enhanced { --r: 6%; clip-path: circle(var(--r) at 50% 45%); position: relative; }
.portal.is-enhanced::after { content: ""; position: absolute; left: 50%; top: 45%; width: calc(var(--r) * 2.2); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 2px rgba(183, 155, 255, 0.55), 0 0 80px 20px rgba(139, 92, 246, 0.45), inset 0 0 60px rgba(53, 176, 247, 0.35); pointer-events: none; }
.roles.is-enhanced { min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.roles.is-enhanced > .shell { width: 100%; }
.roles.is-enhanced .roles__grid { display: flex; gap: 1.25rem; width: auto; overflow: visible; }
.roles.is-enhanced .role { flex: 0 0 clamp(260px, 24vw, 330px); min-height: 300px; }

/* ============================================================================
   Dean's theatre — Dean + the real software on devices, one 3D story.
   Default (no JS / reduced motion / small screens): chapters stack as sections.
   `.is-enhanced`: one sticky stage, chapters layered, 3D transitions (theatre.ts).
   ========================================================================= */
.theatre { position: relative; }
.theatre__sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.theatre__night { position: absolute; inset: 0; opacity: 0; background:
  radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 68%, #fff 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 58% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 76% 44%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 88% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 46% 84%, #fff 50%, transparent 51%),
  radial-gradient(900px 500px at 75% 30%, rgba(53, 176, 247, 0.16), transparent 60%), #05040b; }
.ch { padding-block: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--hair); }
.ch--hero { border-top: 0; padding-top: clamp(2rem, 5vw, 4rem); }
.ch__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.ch__title { font: 600 var(--t-scene)/1.02 var(--sans); letter-spacing: -0.03em; color: var(--chalk); margin: 0 0 1.25rem; text-wrap: balance; }
.ch__title i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--violet-lift); letter-spacing: 0; }
.ch__title--hero { font-size: clamp(3rem, 6.8vw, 6.6rem); line-height: 0.96; }
.ch__scene { position: relative; min-height: 460px; display: grid; place-items: center; perspective: 1600px; transform-style: preserve-3d; }
.ch__dean { position: absolute; right: -2%; bottom: -4%; width: clamp(120px, 15vw, 210px); z-index: 3; transform: translateZ(160px); }
.ch__dean--left { right: auto; left: -4%; }
@media (max-width: 899px) { .ch__grid { grid-template-columns: 1fr; } .ch__scene { min-height: 380px; } }

/* Devices: plain CSS frames around real screens. */
.dev { position: relative; transform-style: preserve-3d; will-change: transform, opacity; }
.dev img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dev--laptop { width: min(100%, 640px); }
.dev__lid { position: relative; aspect-ratio: 16 / 10; background: #1b1726; border: 1px solid var(--hair-strong); border-radius: 16px 16px 6px 6px; padding: 12px 12px 16px; box-shadow: 0 60px 120px -50px rgba(139, 92, 246, 0.55), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.dev__lid img { border-radius: 5px; position: absolute; inset: 12px 12px 16px; width: calc(100% - 24px); height: calc(100% - 28px); }
.dev__lid img[data-desk] { opacity: 0; transition: opacity 0.45s var(--ease-enter); }
.dev__lid img[data-desk].is-on { opacity: 1; }
.dev__base { height: 14px; margin: 0 -6%; background: linear-gradient(#2a2538, #13101c); border-radius: 0 0 20px 20px; box-shadow: 0 30px 40px -24px rgba(0, 0, 0, 0.9); }
.dev--turn { transform: rotateY(-14deg) rotateX(4deg); }
.dev--phone, .dev--tablet { background: #0d0b14; border: 1px solid var(--hair-strong); padding: 9px; box-shadow: 0 50px 90px -40px rgba(139, 92, 246, 0.55), 0 30px 50px -25px rgba(0, 0, 0, 0.9); }
.dev--phone { width: clamp(150px, 15vw, 210px); aspect-ratio: 9 / 19; border-radius: 30px; }
.dev--phone img { border-radius: 22px; }
.dev--tablet { width: clamp(240px, 24vw, 330px); aspect-ratio: 3 / 4; border-radius: 22px; }
.dev--tablet img { border-radius: 14px; }
.ch__scene--fan { display: flex; justify-content: center; align-items: center; }
.ch__scene--fan .dev--l { transform: translateX(28%) rotateY(24deg) rotateZ(-5deg) scale(0.9); z-index: 1; }
.ch__scene--fan .dev--c { z-index: 2; }
.ch__scene--fan .dev--r { transform: translateX(-28%) rotateY(-24deg) rotateZ(5deg) scale(0.9); z-index: 1; }
.ch__scene--partners { display: flex; justify-content: center; align-items: center; gap: 0; }
.ch__scene--partners .dev--tablet { transform: rotateY(16deg) rotateX(4deg); }
.ch__scene--partners .dev--small { transform: translate(-22%, 12%) rotateY(-14deg); }
.dev--solo { transform: rotateY(-12deg) rotateX(4deg); width: clamp(180px, 18vw, 240px); }
.ch__scene--cluster { display: flex; justify-content: center; align-items: center; }
.ch__scene--cluster .dev--laptop { width: min(80%, 520px); transform: rotateY(-10deg); }
.ch__scene--cluster .dev--tablet.dev--small { width: clamp(150px, 12vw, 190px); position: absolute; left: 4%; bottom: 0; transform: rotateY(18deg); }
.ch__scene--cluster .dev--phone.dev--small { width: clamp(110px, 9vw, 140px); position: absolute; right: 18%; bottom: -4%; transform: rotateY(-18deg); }

/* The hero Dean: flies in, lands, then stands in the reveal pose (on load, not on scroll). */
.hero-dean { position: absolute; right: -4%; bottom: -8%; width: clamp(170px, 20vw, 290px); z-index: 3; aspect-ratio: 799 / 1680; transform: translateZ(180px); transform-style: preserve-3d; }
.hero-dean img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-dean__fly, .hero-dean__land { opacity: 0; }
.ch--hero .dev--laptop { animation: laptop-rise 1.1s var(--ease-enter) both 0.15s; transform: rotateY(-10deg) rotateX(4deg); }
@keyframes laptop-rise { from { opacity: 0; transform: translateY(80px) rotateX(18deg) rotateY(-10deg); } }
.hero-dean__fly { animation: dean-fly 0.9s cubic-bezier(.2,.8,.2,1) both 0.3s; }
.hero-dean__land { animation: dean-land 0.55s ease-out both 1.15s; }
.hero-dean__reveal { animation: dean-reveal 0.6s cubic-bezier(.2,1.4,.4,1) both 1.6s; }
@keyframes dean-fly { 0% { opacity: 0; transform: translate(60%, -90%) scale(0.7) rotate(-6deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(0, -6%) scale(1); } }
@keyframes dean-land { 0% { opacity: 1; transform: translateY(-4%); } 60% { opacity: 1; transform: translateY(2%) scaleY(0.98); } 100% { opacity: 0; transform: none; } }
@keyframes dean-reveal { from { opacity: 0; transform: scale(0.92); filter: drop-shadow(0 0 0 rgba(139, 92, 246, 0)); } to { opacity: 1; transform: none; filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.5)) drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55)); } }
@media (prefers-reduced-motion: reduce) {
  .ch--hero .dev--laptop, .hero-dean__fly, .hero-dean__land, .hero-dean__reveal { animation: none; }
  .hero-dean__reveal { opacity: 1; }
}

/* Enhanced: one sticky stage; chapters layered in 3D. */
.theatre__progress { display: none; }
.theatre.is-enhanced { height: 1100vh; }
.theatre.is-enhanced .theatre__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; perspective: 1800px; }
.theatre.is-enhanced .ch { position: absolute; inset: 0; display: flex; align-items: center; border: 0; padding: 0; transform-style: preserve-3d; transform: rotateY(calc(var(--tx, 0) * 1deg)) rotateX(calc(var(--ty, 0) * 1deg)); transition: transform 0.6s var(--ease-state); }
.theatre.is-enhanced .ch__grid { width: 100%; }
.theatre.is-enhanced .ch__scene { min-height: 70vh; }
.theatre.is-enhanced .theatre__progress { display: flex; flex-direction: column; gap: 0.5rem; position: absolute; right: clamp(0.75rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); z-index: 5; }
.theatre__progress span { width: 3px; height: 26px; border-radius: 2px; background: var(--hair-strong); transition: background var(--dur-fast); }
.theatre__progress span.is-on { background: var(--violet-lift); }

.ctaband__avatar { width: min(100%, 300px); justify-self: center; }
.ctaband__avatar .phero__avatar { width: 100%; }
/* Phones: keep every scene inside the screen. */
.theatre { overflow-x: clip; }
@media (max-width: 899px) {
  .ch__scene { overflow: visible; max-width: 100%; }
  .dev--phone { width: 30vw; border-radius: 20px; padding: 6px; }
  .dev--phone img { border-radius: 15px; }
  .ch__scene--fan .dev--l { transform: translateX(22%) rotateY(18deg) scale(0.9); }
  .ch__scene--fan .dev--r { transform: translateX(-22%) rotateY(-18deg) scale(0.9); }
  .dev--tablet { width: 52vw; }
  .dev--solo { width: 44vw; }
  .ch__dean, .hero-dean { width: 30vw; }
  .ch__scene--cluster .dev--tablet.dev--small { width: 26vw; }
  .ch__scene--cluster .dev--phone.dev--small { width: 18vw; }
}
@media (max-width: 899px) { .ch__dean, .hero-dean { right: 0; } .ch__dean--left { left: 0; } }
@media (max-width: 899px) { .ch__dean, .hero-dean { transform: none; } .theatre .ch__scene { perspective: none; } }

/* ============================================================================
   Apple-style devices (MacBook, iPhone, iPad) — pure CSS around real screens.
   ========================================================================= */
.mac, .iphone, .ipad { position: relative; transform-style: preserve-3d; will-change: transform, opacity; }
[data-screen] { position: relative; overflow: hidden; background: #f5f3fb; }
[data-screen] > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
/* A tall capture pans slowly from top to bottom and back while the device is on screen. */
[data-screen].is-tall.is-playing > img { animation: screen-pan 16s ease-in-out 1s infinite alternate; }
@keyframes screen-pan { 0%, 8% { object-position: 50% 0%; } 92%, 100% { object-position: 50% 100%; } }
@media (prefers-reduced-motion: reduce) { [data-screen].is-tall.is-playing > img { animation: none; } }
/* Glass: a soft diagonal reflection over every screen. */
[data-screen]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 32%, transparent 33%, transparent 100%); }

/* MacBook */
.mac { width: min(100%, 680px); }
.mac__lid { position: relative; padding: 2.2% 2.2% 2.6%; border-radius: 18px 18px 8px 8px; background: #0b0b0f; box-shadow: inset 0 0 0 1.5px #3b3b44, inset 0 0 0 3px #111, 0 70px 120px -55px rgba(139, 92, 246, 0.55), 0 40px 60px -40px rgba(0, 0, 0, 0.9); }
.mac__notch { position: absolute; top: 2.2%; left: 50%; width: 15%; height: 3.6%; transform: translateX(-50%); background: #0b0b0f; border-radius: 0 0 8px 8px; z-index: 3; }
.mac__screen { aspect-ratio: 16 / 10; border-radius: 6px; }
.mac__base { position: relative; height: clamp(10px, 1.6vw, 18px); margin: 0 -7.5%; border-radius: 2px 2px 14px 14px / 2px 2px 18px 18px;
  background: linear-gradient(180deg, #e9e9ee 0%, #c9c9d0 40%, #9c9ca6 100%); box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 24px 30px -18px rgba(0, 0, 0, 0.85); }
.mac__base span { position: absolute; top: 0; left: 50%; width: 16%; height: 45%; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: linear-gradient(180deg, #a9a9b2, #d9d9df); }

/* iPhone */
.iphone { width: clamp(170px, 16vw, 236px); aspect-ratio: 9 / 19.4; }
.iphone__body { position: absolute; inset: 0; border-radius: 17% / 8%; padding: 3.6%;
  background: linear-gradient(135deg, #8d8a85, #d8d4cc 22%, #6f6c67 48%, #cfcbc2 72%, #7e7b76); box-shadow: 0 60px 100px -45px rgba(139, 92, 246, 0.55), 0 30px 50px -25px rgba(0, 0, 0, 0.9); }
.iphone__body::before { content: ""; position: absolute; inset: 1.2%; border-radius: 16% / 7.5%; background: #050507; }
.iphone__screen { position: relative; height: 100%; border-radius: 13.5% / 6.4%; z-index: 1; }
.iphone__island { position: absolute; top: 2.2%; left: 50%; width: 31%; height: 3.4%; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 4; }
.iphone__status { position: absolute; top: 2.3%; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 9%; font: 600 clamp(7px, 0.62vw, 10px)/1 var(--sans); color: #111; z-index: 3; }
.iphone__icons { display: inline-flex; gap: 3px; align-items: center; }
.iphone__icons i { width: 1.1em; height: 0.7em; border-radius: 2px; background: #111; opacity: 0.85; }
.iphone__icons i:last-child { width: 1.7em; border-radius: 3px; }
.iphone__screen > img { padding-top: 0; }
.iphone__btn { position: absolute; width: 1.6%; background: linear-gradient(90deg, #6e6b66, #bdb9b1); border-radius: 2px; z-index: 0; }
.iphone__btn--action { left: -1.2%; top: 17%; height: 4.5%; }
.iphone__btn--up { left: -1.2%; top: 25%; height: 8%; }
.iphone__btn--down { left: -1.2%; top: 35%; height: 8%; }
.iphone__btn--power { right: -1.2%; top: 28%; height: 12%; }

/* iPad */
.ipad { width: clamp(250px, 26vw, 360px); aspect-ratio: 3 / 4; }
.ipad--land { width: clamp(380px, 40vw, 600px); aspect-ratio: 4 / 3; }
.ipad__body { position: absolute; inset: 0; border-radius: 6% / 4.5%; padding: 3.4%; background: #0b0b0f; box-shadow: inset 0 0 0 1.5px #44444e, inset 0 0 0 4px #c9c9cf, 0 60px 110px -50px rgba(139, 92, 246, 0.5), 0 30px 50px -25px rgba(0, 0, 0, 0.9); }
.ipad--land .ipad__body { border-radius: 4.5% / 6%; }
.ipad__cam { position: absolute; top: 1.6%; left: 50%; width: 1.2%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #1d2433; box-shadow: 0 0 0 1px #2a2f3c; z-index: 2; }
.ipad--land .ipad__cam { top: 50%; left: 1.6%; transform: translateY(-50%); width: auto; height: 1.2%; }
.ipad__screen { height: 100%; border-radius: 2.6% / 2%; }

/* Live overlays inside a screen: notifications and the cursor. */
.live-toast { position: absolute; right: 3%; width: 42%; padding: 0.55rem 0.7rem; border-radius: 10px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 10px 30px -10px rgba(20, 16, 31, 0.5); font: 500 clamp(8px, 0.72vw, 11px)/1.35 var(--sans); color: #14101f; opacity: 0; transform: translateX(20px); transition: opacity 0.45s var(--ease-enter), transform 0.45s var(--ease-enter); z-index: 4; }
.live-toast b { display: block; font-weight: 650; margin-bottom: 0.15rem; }
.live-toast small { color: #6b6680; }
.live-toast.is-in { opacity: 1; transform: none; }
.live-toast__ok { display: inline-block; margin-top: 0.35rem; padding: 0.25rem 0.55rem; border-radius: 999px; background: #6d4ae0; color: #fff; font-weight: 600; transition: background 0.2s; }
.live-toast__ok.is-pressed { background: #2f9e6b; }
.live-cursor { position: absolute; width: 20px; height: 20px; left: 30%; top: 70%; z-index: 6; transition: left 1.1s cubic-bezier(.45,.05,.3,1), top 1.1s cubic-bezier(.45,.05,.3,1); pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4)); }
.live-cursor::after { content: ""; position: absolute; left: -10px; top: -10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(109, 74, 224, 0.35); transform: scale(0); }
.live-cursor.is-click::after { animation: click-ring 0.5s ease-out; }
@keyframes click-ring { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* --- CSS 3D emblem ------------------------------------------------------------ */
.emblem { width: clamp(140px, 16vw, 220px); aspect-ratio: 640 / 672; perspective: 900px; }
.emblem__spin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: emblem-spin 9s linear infinite; }
.emblem__face, .emblem__edge { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; }
.emblem__face--front { transform: translateZ(9px); filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.45)); }
.emblem__face--back { transform: rotateY(180deg) translateZ(9px); }
.emblem__edge { backface-visibility: visible; transform: translateZ(calc(var(--i) * 1.8px - 8px)); filter: brightness(0.32) saturate(1.4); }
@keyframes emblem-spin { from { transform: rotateY(0deg) rotateX(6deg); } to { transform: rotateY(360deg) rotateX(6deg); } }
@media (prefers-reduced-motion: reduce) { .emblem__spin { animation: none; transform: rotateY(-18deg) rotateX(6deg); } }

/* --- Smarter form controls (Ashley, 17 Oct: buttons too big) ----------------------- */
.form .btn--primary { min-height: 40px; padding: 0.6rem 1.15rem; font-size: 0.875rem; }
.choice { min-height: 36px; padding: 0.4rem 0.75rem; font-size: 0.875rem; gap: 0.4rem; }
.choice input { width: 0.95rem; height: 0.95rem; }
.field input, .field textarea { min-height: 40px; padding: 0.55rem 0.8rem; font-size: 0.95rem; }
.field label, .field legend { font-size: 0.85rem; }
.hero__typed { font: 500 var(--t-small)/1.4 var(--mono); color: var(--cyan); min-height: 1.4em; margin: 0.5rem 0 0; }
/* On phones every typed phrase wraps to two lines: reserve both, so typing and deleting never moves the hero (CLS). */
@media (max-width: 899px) { .hero__typed { min-height: 2.8em; } }
.hero__caret { display: inline-block; width: 0.55em; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: var(--cyan); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__caret { animation: none; } }

/* --- Theatre v2: alternating sides, stage length per chapter, multi-device scenes -------- */
.theatre.is-enhanced { height: calc(var(--chapters, 10) * 105vh); }
.ch--flip .ch__copy { order: 2; }
.ch__scene--duo { display: flex; align-items: center; justify-content: center; }
.ch__scene--duo > :nth-child(2) { margin-left: -9%; transform: translateY(10%); z-index: 2; }
.ch__scene--trio { display: flex; align-items: center; justify-content: center; }
.ch__scene--trio .iphone:nth-child(1) { transform: translateX(26%) rotateY(22deg) rotateZ(-4deg) scale(0.9); z-index: 1; }
.ch__scene--trio .iphone:nth-child(2) { z-index: 2; }
.ch__scene--trio .iphone:nth-child(3) { transform: translateX(-26%) rotateY(-22deg) rotateZ(4deg) scale(0.9); z-index: 1; }
.ch__scene .mac { transform: rotateY(var(--ry, -10deg)) rotateX(4deg); }
.ch--flip .ch__scene .mac { --ry: 10deg; }
.ch__steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; counter-reset: s; }
.ch__steps li { position: relative; padding-left: 3rem; color: var(--chalk-dim); }
.ch__steps li::before { counter-increment: s; content: "0" counter(s); position: absolute; left: 0; top: 0.1rem; font: 600 var(--t-micro)/1 var(--mono); color: var(--violet-lift); border: 1px solid var(--hair-strong); border-radius: 50%; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; }
.ch__steps b { color: var(--chalk); display: block; }
@media (max-width: 899px) { .ch--flip .ch__copy { order: 0; } .ch__scene--duo > :nth-child(2) { margin-left: -20%; } }

/* Chat replay inside the iPhone: the real receptionist conversation. */
.chatlive { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f7f6fb; font-family: var(--sans); }
.chatlive__head { display: flex; align-items: center; gap: 0.5rem; padding: 18% 7% 4%; background: linear-gradient(135deg, #6d4ae0, #8b5cf6); color: #fff; }
.chatlive__head img { width: 30%; max-width: 64px; margin-left: auto; margin-bottom: -18%; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35)); }
.chatlive__name { font: 700 clamp(11px, 1vw, 15px)/1.1 var(--sans); }
.chatlive__sub { font: 500 clamp(7px, 0.6vw, 9px)/1.2 var(--sans); opacity: 0.85; }
.chatlive__msgs { flex: 1; overflow: hidden; padding: 6% 5% 3%; display: flex; flex-direction: column; gap: 0.45rem; justify-content: flex-end; }
.chatlive__msg { max-width: 84%; padding: 0.45rem 0.6rem; border-radius: 12px; font: 500 clamp(7.5px, 0.66vw, 10.5px)/1.4 var(--sans); }
.chatlive__msg--visitor { align-self: flex-end; background: #6d4ae0; color: #fff; border-bottom-right-radius: 4px; }
.chatlive__msg--dean { align-self: flex-start; background: #fff; color: #1b1726; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(20, 16, 31, 0.08); }
.chatlive__typing { align-self: flex-start; display: none; gap: 3px; padding: 0.5rem 0.6rem; background: #fff; border-radius: 12px; }
.chatlive__typing.is-in { display: inline-flex; }
.chatlive__typing i { width: 5px; height: 5px; border-radius: 50%; background: #8b86a0; animation: typing 1s infinite; }
.chatlive__typing i:nth-child(2) { animation-delay: 0.15s; } .chatlive__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 50% { transform: translateY(-3px); opacity: 0.5; } }
.chatlive__input { margin: 0 5% 7%; padding: 0.5rem 0.7rem; border-radius: 999px; background: #fff; border: 1px solid #e3e0ec; font: 500 clamp(7px, 0.62vw, 10px)/1 var(--sans); color: #9893ab; }
.chatlive__note { margin: 0 5% 5%; font: 500 clamp(6px, 0.5vw, 8px)/1.3 var(--sans); color: #9893ab; text-align: center; }
[data-chat-replay] [data-msg] { display: none; }
[data-chat-replay] [data-msg].is-in, .is-still [data-msg] { display: block; animation: msg-in 0.35s var(--ease-enter); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
/* Screen sequences: screens slide like an app changing tab. */
[data-seq] > [data-seq-shot] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; opacity: 0; transform: translateX(14%); transition: opacity 0.55s var(--ease-enter), transform 0.65s var(--ease-enter); }
[data-seq] > [data-seq-shot].is-on { opacity: 1; transform: none; z-index: 1; }
[data-seq] > [data-seq-shot].is-off { opacity: 0; transform: translateX(-14%); }
.is-still [data-seq] > [data-seq-shot]:first-of-type { opacity: 1; transform: none; }

/* --- Story v3 (17 Oct): notification stack, chat phone, second iPad, closing emblem ------ */
.live-toasts { position: absolute; top: 5%; right: 3%; width: 40%; display: flex; flex-direction: column; gap: 0.45rem; z-index: 4; }
.live-toasts .live-toast { position: relative; right: auto; width: 100%; }
.is-still .live-toast { opacity: 1; transform: none; }
.is-still .live-cursor { display: none; }
.iphone--lg { width: clamp(220px, 21vw, 300px); }
.ipad--land.ipad--sm { width: clamp(220px, 22vw, 330px); }
.ch__scene--duo > .ipad, .ch__scene--duo > .iphone { flex: none; }
.ch__scene--duo > .mac { flex: 0 1 auto; width: min(82%, 600px); }
.ch--flip .ch__scene--duo { flex-direction: row-reverse; }
.ch--flip .ch__scene--duo > :nth-child(2) { margin-left: 0; margin-right: -9%; }
.ch__scene--end { display: grid; place-items: center; }
.ch__scene--end .emblem { width: clamp(180px, 20vw, 280px); }
.ctaband__pose { width: 100%; height: auto; }
.chatlive__msgs { overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; justify-content: flex-start; }
.chatlive__msgs::-webkit-scrollbar { display: none; }
.chatlive__msgs > :first-child { margin-top: auto; }
@media (max-width: 899px) {
  .iphone, .iphone--lg { width: min(44vw, 220px); }
  .ch__scene--trio .iphone { width: 31vw; }
  .ch__scene--duo > .mac { width: 86%; }
  .ipad--land, .ipad--land.ipad--sm { width: min(86vw, 420px); }
  .ch__scene--duo > .ipad--sm { width: 44vw; }
}
.phero__avatar.is-following { transition: opacity 0.4s var(--ease-state), transform 0.4s var(--ease-state); }
body.in-story .phero__avatar.is-following { opacity: 0; transform: translateY(24px); pointer-events: none; }
body.in-story .phero__avatar.is-following .phero__avatar-controls { pointer-events: none; }

/* --- Story motion v4 (17 Oct): typed agent line, next-chapter cue, honest emblem sway ---- */
.ch__doing { display: flex; align-items: center; gap: 0.5rem; min-height: 1.4em; margin: -0.25rem 0 1rem; font: 500 var(--t-small)/1.4 var(--mono); color: var(--cyan); }
.ch__doing-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(53, 176, 247, 0.6); animation: doing-pulse 1.6s ease-out infinite; }
@keyframes doing-pulse { 70% { box-shadow: 0 0 0 9px rgba(53, 176, 247, 0); } 100% { box-shadow: 0 0 0 0 rgba(53, 176, 247, 0); } }
.ch__doing .hero__caret { margin-left: 0; }
.theatre.is-enhanced { height: calc(var(--chapters, 10) * 150vh); }
.theatre__next { display: none; }
.theatre.is-enhanced .theatre__next { position: absolute; left: 50%; bottom: clamp(1rem, 3vh, 2rem); transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.9rem; border: 1px solid var(--hair-strong); border-radius: 999px; background: rgba(12, 9, 22, 0.72); backdrop-filter: blur(10px); font: 500 var(--t-micro)/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--chalk-dim); transition: opacity 0.4s; }
.theatre__next-k { color: var(--violet-lift); }
.theatre__next i { position: relative; width: 72px; height: 2px; border-radius: 2px; background: var(--hair-strong); overflow: hidden; }
.theatre__next b { position: absolute; inset: 0; background: linear-gradient(90deg, var(--violet-lift), var(--cyan)); transform-origin: left; transform: scaleX(0); }
.theatre__next.is-gone { opacity: 0; }
.theatre.is-enhanced .ch__scene { perspective: none; }
/* The emblem sways to show its depth but never turns its back: the back of a flat logo is not
   a real side of it (Ashley, 17 Oct: "the reverse doesn't look right"). */
.emblem__spin { animation: emblem-sway 6s ease-in-out infinite alternate; }
.emblem__face--back { display: none; }
@keyframes emblem-sway { from { transform: rotateY(-34deg) rotateX(8deg); } to { transform: rotateY(34deg) rotateX(2deg); } }
@media (prefers-reduced-motion: reduce) { .emblem__spin { animation: none; transform: rotateY(-18deg) rotateX(6deg); } .ch__doing-dot { animation: none; } }
/* The lid has a real back (silver, with the Dean mark), so a spinning laptop looks like one. */
.mac__lid { transform-style: preserve-3d; backface-visibility: hidden; }
.mac__lid > [data-screen], .mac__notch { backface-visibility: hidden; }
.mac__back { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 18px 18px 8px 8px; transform: rotateY(180deg) translateZ(1px); backface-visibility: hidden;
  background: linear-gradient(135deg, #d9d9df 0%, #f4f4f7 38%, #babac3 70%, #e3e3e8 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 40px 60px -40px rgba(0,0,0,0.9); }
.mac__back img { width: 13%; height: auto; opacity: 0.9; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25)); }
/* Hero: the place the talking Dean leaves when he starts following the visitor. */
.hero__slot { position: relative; align-self: end; justify-self: center; width: clamp(255px, 26vw, 350px); aspect-ratio: 14 / 27; }
.hero__slot > .phero__avatar:not(.is-following) { width: 100%; }
.hero__reveal { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; opacity: 0; transform: translateY(18px) scale(0.94); filter: blur(8px) drop-shadow(0 30px 50px rgba(139, 92, 246, 0.35)); transition: opacity 0.9s var(--ease-enter) 0.15s, transform 1.1s var(--ease-enter) 0.15s, filter 0.9s var(--ease-enter) 0.15s; pointer-events: none; }
body.has-dean-following .hero__reveal { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 30px 50px rgba(139, 92, 246, 0.35)); }
@media (max-width: 899px) { .hero__slot { width: min(240px, 64vw); } }
@media (prefers-reduced-motion: reduce) { .hero__reveal { transition: opacity 0.3s; transform: none; filter: none; } }
/* Dean in ten seconds */
.brief { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--hair); }
.brief__head { max-width: 46rem; margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.brief__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; }
.brief__item { position: relative; padding: clamp(1.25rem, 2.4vw, 2rem); background: var(--ink, #0c0916); transition: background var(--dur-fast); }
.brief__item:hover { background: rgba(139, 92, 246, 0.07); }
.brief__item::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--violet-lift), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-enter); }
.brief__item.is-in::after, .brief__item:hover::after { transform: scaleX(1); }
.brief__n { font: 500 var(--t-micro)/1 var(--mono); color: var(--violet-lift); }
.brief__h { margin: 0.9rem 0 0.5rem; font: 600 clamp(1.15rem, 1.6vw, 1.4rem)/1.2 var(--sans); color: var(--chalk); letter-spacing: -0.01em; }
.brief__item p { margin: 0; color: var(--chalk-dim); font-size: var(--t-small); line-height: 1.5; }
.brief__more { display: inline-flex; gap: 0.5rem; margin-top: 1.5rem; font: 500 var(--t-small)/1 var(--mono); color: var(--cyan); text-decoration: none; }
.brief__more span { animation: brief-nudge 1.6s ease-in-out infinite; }
@keyframes brief-nudge { 50% { transform: translateY(4px); } }
@media (max-width: 899px) { .brief__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .brief__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .brief__more span { animation: none; } }

/* --- Lens: a detail lifted out of the screen and brought close (17 Oct) ------------------ */
.lens { position: absolute; z-index: 5; bottom: 4%; left: 0; width: clamp(200px, 19vw, 290px); pointer-events: none; }
.ch--flip .lens { left: auto; right: 0; }
.lens__glass { display: block; aspect-ratio: 16 / 10; border-radius: 14px; background-color: #f5f3fb; background-image: var(--img); background-repeat: no-repeat;
  background-size: calc(var(--z) * 100%) auto; background-position: var(--x) var(--y);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.7), 0 0 0 5px rgba(139, 92, 246, 0.35), 0 40px 70px -20px rgba(0, 0, 0, 0.85), 0 0 60px -10px rgba(139, 92, 246, 0.6); }
.lens--phone { width: clamp(170px, 15vw, 230px); }
.lens--phone .lens__glass { aspect-ratio: 4 / 3; background-size: calc(var(--z) * 100%) auto; }
.lens__label { display: inline-block; margin-top: 0.6rem; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(12, 9, 22, 0.82); border: 1px solid var(--hair-strong); font: 500 var(--t-micro)/1.2 var(--mono); color: var(--chalk); letter-spacing: 0.02em; }
.lens__label::before { content: "● "; color: var(--cyan); }
.is-still .lens { position: relative; bottom: auto; margin-top: 1rem; }
/* Layering: Dean in front of everything, lens in front of devices, devices behind. Dean and the
   lens sit on opposite sides of the scene, so they never cover each other or the copy. */
.ch__dean { right: -7%; bottom: 2%; z-index: 7; }
.ch__dean--left { left: -8%; right: auto; }
.live-toasts { right: auto; left: 3%; }
@media (max-width: 899px) {
  .lens { width: 46vw; left: 2%; bottom: -2%; }
  .ch--flip .lens { right: 2%; }
  .ch__dean { right: 0; } .ch__dean--left { left: 0; }
}
/* The first-morning chapter: the slides get a big, nearly full-width laptop. */
.ch__scene--duo > .mac.mac--wide { width: min(96%, 720px); }
/* Light ↔ dark: a screen's dark twin fades in halfway through its chapter. */
[data-screen] img[data-dark] { transition: opacity 0.28s ease, transform 0.65s var(--ease-enter); }
[data-screen] img.is-fading { opacity: 0 !important; }
/* iPad landscape at the real iPad Pro shape (≈ 1.43:1), so 16:10 screens are barely cropped
   and nothing important is cut off at the edges (Ashley, 17 Oct). */
.ipad--land { aspect-ratio: 1.46; }
.ipad--land [data-screen] > img, .ipad--land [data-seq] > [data-seq-shot] { object-position: 0% 0%; }

/* --- Everything Dean does (feature atlas) ------------------------------------------------ */
.atlas__box { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 0; border: 1px solid var(--hair-strong); border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, rgba(139, 92, 246, 0.08), rgba(10, 8, 18, 0.6) 40%); }
.atlas__tabs { display: flex; flex-direction: column; padding: 0.75rem; gap: 2px; border-right: 1px solid var(--hair); background: rgba(10, 8, 18, 0.55); }
.atlas__tab { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; padding: 0.6rem 0.8rem; border: 0; border-radius: 10px; background: none; color: var(--chalk-dim); font: 500 0.9rem/1.2 var(--sans); text-align: left; cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast); }
.atlas__tab b { font: 500 var(--t-micro)/1 var(--mono); color: var(--violet-lift); opacity: 0.8; }
.atlas__tab:hover { background: rgba(255, 255, 255, 0.04); color: var(--chalk); }
.atlas__tab[aria-selected="true"] { background: rgba(139, 92, 246, 0.16); color: var(--chalk); box-shadow: inset 2px 0 0 var(--violet-lift); }
.atlas__tab:focus-visible { outline: 2px solid var(--violet-lift); outline-offset: -2px; }
.atlas__panel { padding: clamp(1.25rem, 2.6vw, 2.25rem); }
.atlas__box:not(.is-tabbed) .atlas__panel + .atlas__panel { border-top: 1px solid var(--hair); }
.atlas__sum { margin: 0 0 1.25rem; font: 600 clamp(1.2rem, 1.9vw, 1.6rem)/1.25 var(--sans); color: var(--chalk); letter-spacing: -0.01em; }
.atlas__sum span { display: block; margin-bottom: 0.35rem; font: 500 var(--t-micro)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.atlas__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.6rem; }
.atlas__item { display: flex; gap: 0.65rem; padding: 0.8rem 0.9rem; border: 1px solid var(--hair); border-radius: 12px; background: rgba(255, 255, 255, 0.02); transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast); }
.atlas__item:hover { border-color: rgba(139, 92, 246, 0.45); background: rgba(139, 92, 246, 0.06); transform: translateY(-1px); }
.atlas__item svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--cyan); }
.atlas__item b { font: 600 0.92rem/1.3 var(--sans); color: var(--chalk); }
.atlas__item p { margin: 0.2rem 0 0; font-size: 0.82rem; line-height: 1.4; color: var(--chalk-dim); }
.atlas__early { display: inline-block; margin-left: 0.4rem; padding: 0.12rem 0.4rem; border-radius: 999px; border: 1px solid rgba(53, 176, 247, 0.35); font: 500 0.62rem/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--cyan); vertical-align: 2px; }
.atlas__note { margin: 0.9rem 0 0; font-size: var(--t-micro); color: var(--chalk-dim); }
.atlas__panel.is-in .atlas__item { animation: atlas-in 0.45s var(--ease-enter) both; }
.atlas__panel.is-in .atlas__item:nth-child(n) { animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes atlas-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 899px) {
  .atlas__box { grid-template-columns: 1fr; }
  .atlas__tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hair); scrollbar-width: none; }
  .atlas__tab { width: auto; flex: none; white-space: nowrap; }
  .atlas__tab[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--violet-lift); }
}
@media (prefers-reduced-motion: reduce) { .atlas__panel.is-in .atlas__item { animation: none; } }
.iphone--sm { width: clamp(120px, 10.5vw, 160px); }
.ch__scene--duo > .mac--wide + .iphone--sm { margin-left: -6%; transform: translateY(14%); }
.ch--flip .ch__scene--duo > .mac--wide + .iphone--sm { margin-left: 0; margin-right: -6%; }
.lens { left: 6%; }
.ch--flip .lens { right: 6%; left: auto; }
/* Chat: one recorded conversation per language, with the language shown on top. */
.chatlive__msg { white-space: pre-line; }
.chatlive__langs { display: flex; gap: 4px; justify-content: center; padding: 3% 0 0; }
.chatlive__langs span { padding: 0.15rem 0.45rem; border-radius: 999px; font: 600 clamp(6.5px, 0.55vw, 9px)/1.2 var(--mono); color: #8b86a0; background: #ece9f5; transition: background 0.3s, color 0.3s; }
.chatlive__langs span.is-on { background: #6d4ae0; color: #fff; }
.is-still [data-convo][hidden] { display: none; }
body.in-atlas .phero__avatar.is-following { opacity: 0; transform: translateY(24px); pointer-events: none; }
body.in-atlas .phero__avatar.is-following .phero__avatar-controls { pointer-events: none; }
/* A phone beside a laptop sits low at the laptop's outer corner, never over its middle. */
.ch__scene--duo > .mac + .iphone--sm { margin-left: -7%; transform: translateY(18%); }
.ch--flip .ch__scene--duo > .mac + .iphone--sm { margin-left: 0; margin-right: -7%; }
/* Dean stands clear of a laptop on a flipped chapter's outer edge. */
.ch--flip .ch__dean--left { left: -12%; width: clamp(110px, 13vw, 190px); }
/* Room to come closer: a laptop rests a little smaller than its column, so the zoom never clips. */
.theatre.is-enhanced .ch__scene .mac { width: min(90%, 640px); }
.theatre.is-enhanced .ch__scene--duo > .mac { width: min(80%, 580px); }
.theatre.is-enhanced .ch__scene--duo > .mac.mac--wide { width: min(88%, 640px); }
/* First morning: the phone stands beside the laptop, not over its screen. */
.ch__scene--duo > .mac--wide + .iphone--sm, .ch--flip .ch__scene--duo > .mac--wide + .iphone--sm { margin-left: 1.5%; margin-right: 1.5%; transform: translateY(12%); }
/* Agent Dean's own panel inside the laptop, replaying real staff conversations. */
.agentpanel { position: absolute; top: 4%; right: 2.5%; bottom: 4%; width: 42%; z-index: 3; display: flex; flex-direction: column; border-radius: 10px; background: #fbfaff; box-shadow: 0 0 0 1px rgba(20, 16, 31, 0.08), -18px 0 40px -18px rgba(20, 16, 31, 0.45); overflow: hidden; font-family: var(--sans); }
.agentpanel__head { display: flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.6rem; background: linear-gradient(135deg, #6d4ae0, #8b5cf6); color: #fff; }
.agentpanel__head img { width: 18%; max-width: 34px; height: auto; margin: -4% 0 -10%; filter: drop-shadow(0 3px 5px rgba(0,0,0,0.35)); }
.agentpanel__head b { display: block; font: 700 clamp(8px, 0.75vw, 12px)/1.1 var(--sans); }
.agentpanel__head small { font: 500 clamp(6px, 0.5vw, 8.5px)/1.2 var(--sans); opacity: 0.85; }
.agentpanel__msgs { padding: 5% 5% 2%; gap: 0.35rem; }
.agentpanel .chatlive__msg { max-width: 92%; font-size: clamp(6.5px, 0.58vw, 9.5px); }
.agentpanel .chatlive__msg b { font-weight: 700; }
.agentpanel__checked { display: none; align-self: flex-start; max-width: 92%; margin: 0; font: 500 clamp(6px, 0.5vw, 8.5px)/1.5 var(--sans); color: #6b6680; }
.agentpanel__checked.is-in, .is-still .agentpanel__checked { display: block; animation: msg-in 0.35s var(--ease-enter); }
.agentpanel__checked span { font-weight: 700; color: #3d3852; }
.agentpanel__checked i { display: inline-block; margin: 0.12rem 0.15rem 0 0; padding: 0.05rem 0.35rem; border-radius: 999px; background: #ece9f5; font-style: normal; }
.agentpanel__note { margin: 0; padding: 0.35rem 0.6rem 0.5rem; font: 500 clamp(5.5px, 0.45vw, 7.5px)/1.35 var(--sans); color: #9893ab; border-top: 1px solid #ece9f5; }
/* Atlas: every tile opens a card with the full story of that feature. */
.atlas__grid > li { display: flex; }
.atlas__item { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; align-items: flex-start; }
.atlas__item:focus-visible { outline: 2px solid var(--violet-lift); outline-offset: 2px; }
.atlas__txt { flex: 1; min-width: 0; }
.atlas__txt b { font: 600 0.92rem/1.3 var(--sans); color: var(--chalk); }
.atlas__what { display: block; margin-top: 0.2rem; font-size: 0.82rem; line-height: 1.4; color: var(--chalk-dim); }
.atlas__plus { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hair-strong); color: var(--violet-lift); font: 500 0.9rem/1 var(--sans); transition: background var(--dur-fast), transform var(--dur-fast); }
.atlas__item:hover .atlas__plus { background: rgba(139, 92, 246, 0.18); transform: rotate(90deg); }
.atlas__dlg { width: min(640px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 1px solid var(--hair-strong); border-radius: 20px; background: #110d1d; color: var(--chalk); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 80px -20px rgba(139, 92, 246, 0.45); }
.atlas__dlg::backdrop { background: rgba(6, 4, 12, 0.72); backdrop-filter: blur(4px); }
.atlas__dlg[open] { animation: dlg-in 0.35s var(--ease-enter); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.atlas__dlg-card { position: relative; padding: clamp(1.25rem, 3vw, 2rem); }
.atlas__dlg-x { position: absolute; top: 0.8rem; right: 0.8rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hair-strong); background: none; color: var(--chalk); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.atlas__dlg-x:focus-visible { outline: 2px solid var(--violet-lift); }
.atlas__dlg-group { margin: 0 0 0.4rem; font: 500 var(--t-micro)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.atlas__dlg-h { margin: 0 2.5rem 0.4rem 0; font: 600 clamp(1.3rem, 2.4vw, 1.75rem)/1.2 var(--sans); letter-spacing: -0.015em; }
.atlas__dlg .atlas__early { margin-left: 0; }
.atlas__dlg-more { margin: 0.9rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--chalk-dim); }
.atlas__dlg-shot { display: block; width: 100%; margin-top: 1.25rem; border-radius: 12px; border: 1px solid var(--hair); }
@media (prefers-reduced-motion: reduce) { .atlas__dlg[open] { animation: none; } }
/* Mobile menu: a full-width sheet under the bar, so it never slices through the page text. */
@media (max-width: 1039px) {
  .nav__menu { position: static; }
  .nav__menu ul { position: fixed; left: 0; right: 0; top: 64px; min-width: 0; padding: 0.75rem clamp(16px, 5vw, 2rem) 1.25rem; border-radius: 0 0 18px 18px; border-left: 0; border-right: 0; background: #110d1d; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
  .nav__menu li a { display: block; padding: 0.85rem 0.5rem; font-size: 1.05rem; border-bottom: 1px solid var(--hair); }
  .nav__menu li:last-child a { border-bottom: 0; }
  .nav__menu[open] summary { background: rgba(139, 92, 246, 0.16); }
}
html { scroll-padding-top: 76px; }
@media (max-width: 420px) { .hero__icef { font-size: 0.68rem; letter-spacing: 0.04em; } }
/* Home: Dean on shift beside its heading; the family steps; trailer call-to-action. */
.console-sec__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
@media (max-width: 899px) { .console-sec__grid { grid-template-columns: 1fr; } }
.family__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; }
.family__step { padding: clamp(1.25rem, 2.6vw, 2.25rem); background: var(--ink); }
.family__n { font: 500 var(--t-micro)/1 var(--mono); color: var(--violet-lift); }
.family__who { margin: 0.9rem 0 0.25rem; font: 500 var(--t-micro)/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.family__h { margin: 0 0 0.5rem; font: 600 clamp(1.2rem, 1.8vw, 1.5rem)/1.2 var(--sans); color: var(--chalk); }
.family__step p:last-child { margin: 0; color: var(--chalk-dim); }
@media (max-width: 899px) { .family__steps { grid-template-columns: 1fr; } }
.ch__cta { margin-top: 1.25rem; }
body.after-story .phero__avatar.is-following { opacity: 0; transform: translateY(24px); pointer-events: none; }
body.after-story .phero__avatar.is-following .phero__avatar-controls { pointer-events: none; }
/* Chat replay: words stream in; the question types into the box first. */
[data-chat-replay] .w { opacity: 0; transition: opacity 0.18s ease; }
[data-chat-replay] .w.is-on, .is-still [data-chat-replay] .w { opacity: 1; }
.chatlive__input.is-typing { color: #1b1726; border-color: #c9bdf7; }
.chatlive__input.is-typing::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: -0.15em; background: #6d4ae0; animation: caret 1s steps(1) infinite; }
.agentpanel__input { margin: 0 5% 3%; }
/* Big tablets (Planning, Teaching, Accommodation): as large as the stage allows. */
.ipad--land.ipad--xl, .ch__scene > .ipad--land:only-of-type { width: min(46vw, 720px, calc((100vh - 170px) * 1.46)); }
/* The chat phone never grows taller than the space under the header. */
.iphone--lg { width: min(clamp(220px, 21vw, 300px), calc((100vh - 190px) * 9 / 19.4)); }
.ipad--land.ipad--xl { width: min(43vw, 680px, calc((100vh - 180px) * 1.46)); }
/* Big-tablet chapters give the scene more of the width; the tablet never exceeds its column. */
@media (min-width: 900px) { .ch__grid:has(.ipad--xl) { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); } }
.ipad--land.ipad--xl { width: min(88%, 720px, calc((100vh - 180px) * 1.46)); }
.theatre.is-enhanced .ch--flip .lens { bottom: auto; top: 2%; }
/* Closing chapter: the phone sits on the far side of the laptop from Dean. */
.ch--end:not(.ch--flip) .ch__scene--duo { flex-direction: row-reverse; }
.ch--end:not(.ch--flip) .ch__scene--duo > .mac--wide + .iphone--sm { margin: 0 1.5% 0 0; }
/* Laptop + phone: the phone always sits on the side away from Dean (Dean stands on the outer
   edge: right on normal chapters, left on flipped ones). Overrides the earlier per-chapter rules. */
.theatre .ch__scene--duo { flex-direction: row-reverse; }
.theatre .ch--flip .ch__scene--duo { flex-direction: row; }
.theatre .ch__scene--duo > .mac + .iphone, .theatre .ch__scene--duo > .mac + .ipad { margin: 0 -5% 0 0; transform: translateY(14%); }
.theatre .ch--flip .ch__scene--duo > .mac + .iphone, .theatre .ch--flip .ch__scene--duo > .mac + .ipad { margin: 0 0 0 -5%; }
.theatre .ch__scene--duo > .mac--wide + .iphone--sm { margin: 0 1.5% 0 0; }
.theatre .ch--flip .ch__scene--duo > .mac--wide + .iphone--sm { margin: 0 0 0 1.5%; }
/* Tour: the clock in the eyebrow. */
.ch__clock { font: 600 var(--t-small)/1 var(--mono); color: var(--cyan); margin-right: 0.35rem; }
.tour__note { margin-block: 1rem 0; color: var(--chalk-dim); }
/* Ask Dean: the live chat inside an iPhone, Dean beside it. */
.ask__phone { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; margin-top: 0.75rem; }
.ask__iphone { width: min(320px, 78vw, calc((100vh - 200px) * 9 / 19.4)); }
.ask__iphone iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding-top: 12%; background: #fff; }
.ask__dean { width: clamp(110px, 12vw, 170px); margin-left: -4%; z-index: 2; }
@media (max-width: 899px) { .ask__dean { display: none; } }
/* Book a demo: Dean beside a laptop above the form. */
.bookhero { padding-block: clamp(2rem, 5vw, 4rem) 0; }
.bookhero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.bookhero__scene { position: relative; display: grid; place-items: center; perspective: 1600px; }
.bookhero__scene .mac { width: min(100%, 560px); transform: rotateY(-12deg) rotateX(4deg); animation: laptop-rise 1.1s var(--ease-enter) both 0.15s; }
.bookhero__dean { position: absolute; right: -4%; bottom: -6%; width: clamp(110px, 12vw, 170px); }
.bookhero__cta .btn { min-height: 44px; }
.bookcal { align-items: start; }
.bookflow { margin: 1.5rem 0; padding-left: 1.25rem; display: grid; gap: 0.75rem; font-size: var(--t-small); line-height: 1.55; color: var(--chalk-mute); }
.bookflow b { color: var(--chalk); font-weight: 600; }
.bookcal .form p { margin: 0; }
.bookcal [data-slot-fields] { display: grid; gap: 1.1rem; }
.bookcal [data-slot-fields][hidden], .bookcal [data-slot-picker][hidden] { display: none; }
.bookcal [data-slot-picker] { display: grid; gap: 1.1rem; }
.bookcal .choice { min-height: 44px; }
.bookcal__more { background: transparent; font: inherit; font-size: var(--t-small); min-height: 44px; cursor: pointer; }
@media (max-width: 599px) { .bookcal .form__row { grid-template-columns: 1fr; } }
.bookhero__cta { margin-top: 1.5rem; }
@media (max-width: 899px) { .bookhero__grid { grid-template-columns: 1fr; } .bookhero__scene .mac { transform: none; } .bookhero__dean { right: 0; width: 26vw; } }
/* Big tablets, final: the scene column is the wide one on BOTH sides, and the tablet never exceeds it. */
/* Desktop only: on phones the chapter stays one column (this rule used to squeeze the copy). */
@media (min-width: 900px) { .ch--flip .ch__grid:has(.ipad--xl) { grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr); } }
.ch__scene > .ipad--land.ipad--xl, .ch__scene > .ipad--land:only-of-type { width: min(88%, 720px, calc((100vh - 180px) * 1.46)); }
.theatre .ch__scene--duo > .mac + .iphone:not(.iphone--sm) { margin: 0 -2% 0 0; }
.theatre .ch--flip .ch__scene--duo > .mac + .iphone:not(.iphone--sm) { margin: 0 0 0 -2%; }
.theatre .ch__scene--duo > .mac:not(.mac--wide) + .iphone--sm { margin: 0 1% 0 0; }
.theatre .ch--flip .ch__scene--duo > .mac:not(.mac--wide) + .iphone--sm { margin: 0 0 0 1%; }
/* ICEF stand page (phone-first). */
.standx { position: relative; padding-block: clamp(1.5rem, 5vw, 4rem) 1rem; overflow: hidden; }
.standx__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.standx__copy { position: relative; padding-bottom: clamp(0rem, 14vw, 12rem); }
.standx__does { color: var(--chalk-dim); max-width: 34rem; }
.standx__dean { position: absolute; left: 0; bottom: -2rem; width: clamp(120px, 15vw, 210px); animation: standx-in 1s var(--ease-enter) both 0.2s; }
@keyframes standx-in { from { opacity: 0; transform: translateY(30px) scale(0.96); } }
.standx__form { background: var(--ink-raise); border: 1px solid var(--hair-strong); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 40px 100px -40px rgba(139, 92, 246, 0.45); }
.standx__form .stand__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.standx__form .btn--big { width: 100%; justify-content: center; }
.standx__fict { margin-top: 1rem; font: 500 var(--t-micro)/1.3 var(--mono); color: var(--chalk-mute); }
.standx__phones { display: flex; justify-content: center; align-items: center; gap: clamp(0.5rem, 3vw, 2.5rem); perspective: 1400px; }
.standx__phones .iphone { width: clamp(120px, 22vw, 240px); }
.standx__phones .iphone:first-child { transform: rotateY(18deg) translateY(6%); }
.standx__phones .iphone:last-child { transform: rotateY(-18deg) translateY(6%); }
.standx__mid { z-index: 2; }
.standx__doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.standx__door { display: flex; flex-direction: column; gap: 0.35rem; text-decoration: none; }
.standx__door .mac, .standx__door .ipad { width: 100%; margin-bottom: 0.75rem; }
@media (max-width: 899px) {
  .standx__grid, .standx__doors { grid-template-columns: 1fr; }
  .standx__copy { padding-bottom: 0; }
  .standx__dean { position: relative; left: auto; bottom: auto; display: block; width: 34vw; margin: 0.5rem auto -1rem; }
}
@media (prefers-reduced-motion: reduce) { .standx__dean { animation: none; } }
.standx__copy { padding-bottom: 0; }
.standx__dean { position: relative; left: auto; bottom: auto; display: block; width: clamp(130px, 13vw, 190px); margin: 1.25rem 0 0; }
@media (max-width: 899px) { .standx__dean { width: 34vw; margin: 0.5rem auto -1rem; } }

/* Staging review status belongs alongside the proposed package figures. */
.pricing-review { margin: 0 0 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--violet-lift); border-radius: 12px; color: var(--chalk); background: var(--ink-raise); }
.pricing-review p { margin: 0; max-width: 90ch; line-height: 1.6; }
.pricing-review p + p { margin-top: .5rem; }
.pricing-review strong { color: var(--violet-lift); }
.site-review { padding: .8rem 0; border-block: 1px solid var(--hair); background: var(--ink-raise); color: var(--chalk-mute); font-size: var(--t-small); line-height: 1.55; }
.site-review strong { color: var(--violet-lift); }
.site-review a, .pricing-nav a { text-decoration: underline; text-underline-offset: .2em; }
.pricing-nav { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }

/* Phone chat replay, drawn at twice its size and scaled down by half: it looks exactly as before,
   but every letter is real 12px+ text, which is what Google's mobile readability check measures
   (Tour page, 28 Oct 2026). Percent paddings follow the doubled box on their own; px and rem
   values are doubled here. Scoped to .chatlive so Agent Dean's laptop panel is untouched. */
.chatlive { inset: auto; top: 0; left: 0; width: 200%; height: 200%; transform: scale(0.5); transform-origin: 0 0; }
.chatlive .chatlive__head { gap: 1rem; }
.chatlive .chatlive__head img { max-width: 128px; filter: drop-shadow(0 12px 20px rgba(0,0,0,0.35)); }
.chatlive .chatlive__name { font-size: clamp(22px, 2vw, 30px); }
.chatlive .chatlive__sub { font-size: clamp(14px, 1.2vw, 18px); }
.chatlive .chatlive__msgs { gap: 0.9rem; }
.chatlive .chatlive__msg { padding: 0.9rem 1.2rem; border-radius: 24px; font-size: clamp(15px, 1.32vw, 21px); }
.chatlive .chatlive__msg--visitor { border-bottom-right-radius: 8px; }
.chatlive .chatlive__msg--dean { border-bottom-left-radius: 8px; box-shadow: 0 4px 16px rgba(20, 16, 31, 0.08); }
.chatlive .chatlive__typing { gap: 6px; padding: 1rem 1.2rem; border-radius: 24px; }
.chatlive .chatlive__typing i { width: 10px; height: 10px; animation-name: typing-2x; }
@keyframes typing-2x { 50% { transform: translateY(-6px); opacity: 0.5; } }
.chatlive .chatlive__input { padding: 1rem 1.4rem; border-width: 2px; font-size: clamp(14px, 1.24vw, 20px); }
.chatlive .chatlive__note { font-size: clamp(12px, 1vw, 16px); }
.chatlive .chatlive__langs { gap: 8px; }
.chatlive .chatlive__langs span { padding: 0.3rem 0.9rem; font-size: clamp(13px, 1.1vw, 18px); }
.chatlive .chatlive__input.is-typing::after { width: 2px; margin-left: 2px; }

/* Ask Dean: written questions and answers (native details, no script) */
.qa { max-width: 46rem; margin-top: 2.5rem; border-top: 1px solid var(--hair-strong); }
.qa__item { border-bottom: 1px solid var(--hair-strong); }
.qa__item summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; position: relative; }
.qa__item summary::-webkit-details-marker { display: none; }
.qa__item summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; font-weight: 400; font-size: 1.4rem; line-height: 1; }
.qa__item[open] summary::after { content: "\2212"; }
.qa__item summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.qa__item p { margin: 0 0 1.25rem; max-width: 40rem; }
.qa__more { margin-top: 1.5rem; }

/* Post-event "as seen at" band (6 Nov 2026). */
.events__badge { display: inline-block; margin: 0.25rem 0 0; padding: 0.35rem 0.8rem; border: 1px solid var(--hair-strong); border-radius: 999px; font: 500 var(--t-micro)/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--violet-lift); }
.events__photo { margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--hair-strong); background: var(--ink-raise); box-shadow: 0 40px 100px -50px rgba(139, 92, 246, 0.45); }
.events__photo img { display: block; width: 100%; height: auto; }
.events__cards { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.events__card { padding: 1.25rem 1.5rem; background: var(--ink-raise); border: 1px solid var(--hair); border-radius: 16px; }
.events__card p { margin: 0.2rem 0 0; color: var(--chalk-dim); }
.events__card .events__stand { font: 500 var(--t-micro)/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-lift); }
.events .actions { margin-top: 1.5rem; }
@media (max-width: 599px) { .events__cards { grid-template-columns: 1fr; } .events__photo { border-radius: 14px; } }

/* Phones and small tablets (the stacked layout, <900 px): Dean gets a band of his own under the
   mock-up instead of standing behind it. He is fully visible, never clipped at the screen edge,
   and covers no text, screen or button. Desktop (>=900 px) is untouched. Same exact-art images,
   no filters or blend modes. */
@media (max-width: 1199px) {
  .theatre .ch__scene { --dw: clamp(96px, 12vw, 130px); padding-bottom: calc(var(--dw) * 2.1 + 0.75rem); }
  .theatre .ch__scene .ch__dean { width: var(--dw); right: 4%; left: auto; bottom: 0; transform: none; z-index: 7; }
  .theatre .ch--flip .ch__scene .ch__dean, .theatre .ch__scene .ch__dean.ch__dean--left { left: 4%; right: auto; }
}
@media (max-width: 899px) {
  .theatre .ch__scene { --dw: min(27vw, 118px); }
  .bookhero__scene { padding-bottom: 0; }
  .bookhero__dean { position: relative; right: auto; bottom: auto; width: min(27vw, 118px); margin: 0.5rem 4% 0 auto; }
}
/* The talking Dean who follows the visitor (a fixed corner figure) is smaller on phones, so he passes
   over less of the text column. Desktop is untouched. */
@media (max-width: 599px) {
  .phero__avatar.is-following { width: min(84px, 22vw); right: 8px; bottom: 8px; }
  .phero__avatar.is-following .phero__avatar-controls { bottom: 0.4rem; }
  .phero__avatar.is-following .phero__avatar-sound { width: 34px; min-height: 34px; }
  .phero__avatar.is-following .phero__avatar-control { min-height: 34px; }
}
