/* ==========================================================================
   COMPONENTS — reusable pieces. Each block is self-contained and reads
   semantic tokens, so it works on any data-theme ground.
     .btn        buttons (primary / ghost / small / large)
     .gate       preloader + entry gate
     .slider     range input
     .kpi        KPI tile
     .media      video panel with designed placeholder
     .player     audio player + .wave
     .accordion  FAQ disclosure
   ========================================================================== */

/* ---------- BUTTON ------------------------------------------------------
   States: default, hover, focus-visible, active. Crisp 4px corners. */
.btn {
  --btn-h: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: var(--btn-h);
  padding: 0 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-instant) var(--ease-out),
              border-color var(--dur-instant) var(--ease-out),
              color var(--dur-instant) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn .icon { transition: transform var(--dur-base) var(--ease-expo); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
/* Gold means booked: the booked outcome, and the main action that gets you
   there. So a PRIMARY button hovers to gold with Ink text (6.33:1) on every
   ground. Ghost and secondary buttons keep their own hover. The focus ring
   (blue, 2px, offset) sits outside the button, so it still shows on gold. */
.btn--primary:not(:disabled, [aria-disabled="true"]):hover,
.nav[data-tone="dark"] .btn--primary:hover { background: var(--c-gold-400); border-color: var(--c-gold-400); color: var(--c-ink-900); }
.btn--ghost { border-color: var(--color-line); color: var(--color-text); }
.btn__meta { font-family: var(--font-mono); font-size: .8125rem; font-weight: 400; color: var(--color-text-muted); }
/* A quiet note under a button (e.g. "opens your email"). */
.btn-note { font-size: .8125rem; color: var(--color-text-muted); }
/* Disabled (adopted from the design-system page's proposal). */
.btn:is(:disabled, [aria-disabled="true"]) {
  background: var(--color-bg-sunken);
  color: var(--color-text-muted);
  border-color: var(--color-line);
  cursor: not-allowed;
  transform: none;
}
.btn--ghost:hover { border-color: var(--color-text); }
.btn--small { --btn-h: 2.5rem; padding: 0 1rem; font-size: .9375rem; }
.btn--large { --btn-h: 3.75rem; padding: 0 1.75rem; font-size: 1.0625rem; }
.nav[data-tone="dark"] .btn--primary { background: var(--c-blue-300); color: var(--c-ink-950); }

/* ======================================================================
   GATE — preloader + entry. States on [data-state]:
     loading   the mark draws, a hairline tracks real asset loading
     idle      the field breathes; the left square pulses, waiting
     calling   ring + the line routes through the grid
     connected the right square is gold; the reply types on
     leaving   the whole overlay lifts away
   ====================================================================== */
.gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-gate);
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  /* Safety net: if main.js never arms the gate, it gets out of the way. */
  animation: gate-fallback 0s 6s forwards;
}
@keyframes gate-fallback { to { visibility: hidden; pointer-events: none; opacity: 0; } }
.js .gate { display: block; }
.js.intro-seen .gate { display: none; }
.gate.is-armed { animation: none; }
.gate.is-gone { display: none; }

.gate__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.gate__field .g-dot { fill: none; stroke: #4F4A4C; stroke-width: 1; }
.gate__field .g-dot-c { fill: #4F4A4C; }
.gate__field .g-dot.is-lit { stroke: var(--c-blue-300); }
.gate__field .g-dot-c.is-lit { fill: var(--c-blue-300); }
.gate__field .g-route { stroke: var(--c-blue-300); stroke-width: 1.5; fill: none; stroke-linecap: square; }
.gate__field .g-route.is-done { stroke: var(--c-gold-400); transition: stroke var(--dur-slow) var(--ease-out); }
.gate__field .g-call { stroke: var(--c-gold-400); stroke-width: 2; fill: none; } /* width set in px by gate.js: the logo's line weight */
.gate__mark .mark__ai { transition: fill var(--dur-fast) var(--ease-out); }
.gate__mark .mark__ai.is-lit { fill: var(--c-gold-200); }     /* the call: gold, it is being answered */
/* Proportions match the official vertical lockup (assets/ds/logo/vertical.svg):
   NEW DAY is 138.4% of the mark's width, sitting 8% of the mark's width below it.
   It overhangs the mark-wrap equally on both sides (-19.2% each). */
.gate__wordmark { display: block; width: 138.4%; max-width: none; margin: 8% 0 0 -19.2%; fill: var(--c-dawn-100); opacity: .4; transition: opacity var(--dur-base) var(--ease-out); }
.gate[data-state="calling"] .gate__wordmark, .gate[data-state="connected"] .gate__wordmark, .gate[data-state="leaving"] .gate__wordmark { opacity: 0 !important; }
.gate__field .g-drag { stroke: var(--c-blue-200); stroke-width: 1.5; stroke-dasharray: 3 5; fill: none; }

.gate__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--margin);
  pointer-events: none;
}
.gate__center > * { pointer-events: auto; }
.gate__mark-wrap { position: relative; width: clamp(196px, 22vw, 320px); }
@media (max-width: 599px) { .gate__mark-wrap { width: min(62vw, 420px); } } /* 62vw keeps the wider NEW DAY (x1.384 = 86vw) inside the screen */
.gate__mark { width: 100%; height: auto; overflow: visible; color: var(--c-dawn-100); }
.gate__mark .mark__bracket { fill: none; }
.gate__mark .mark__nodes { stroke: var(--c-blue-300); fill: none; }
.gate__mark .mark__sq { fill: transparent; transition: fill var(--dur-base) var(--ease-out), stroke var(--dur-base) var(--ease-out); }
.gate__mark .mark__sq--l.is-active { fill: var(--c-blue-300); }
.gate__mark .mark__sq--r.is-gold { stroke: var(--c-gold-400); fill: var(--c-gold-400); }
.gate__mark .mark__dash--r.is-gold { stroke: var(--c-gold-400); }
/* the call passing through: each part turns gold as the line reaches it */
.gate__mark .mark__dash { transition: stroke var(--dur-fast) var(--ease-out); }
.gate__mark .mark__dash--l.is-gold { stroke: var(--c-gold-400); }
.gate__mark .mark__sq--l.is-passed { stroke: var(--c-gold-400); fill: transparent; transition-duration: var(--dur-fast); }

/* The hit area over the left square: 13.4% x 26.5% of the mark, grown to a
   comfortable touch target with an invisible halo. */
.gate__call {
  position: absolute;
  left: 1.82%; top: 36.73%;
  width: 13.39%; height: 26.54%;
  border-radius: 0;
  touch-action: none;
  cursor: grab;
}
/* Hit area: at least 48 x 48 at every size (the square alone is ~26px on a phone). */
.gate__call::before { content: ""; position: absolute; inset: -24px; }
.gate__call:active { cursor: grabbing; }
.gate__call:focus-visible { outline-offset: 8px; }
.gate__pulse, .gate__pulse::after {
  position: absolute; inset: 0;
  border: 1.5px solid var(--c-blue-200);
  opacity: 0;
}
.gate__pulse::after { content: ""; inset: -1.5px; }
.gate[data-state="idle"] .gate__pulse { animation: gate-pulse 2.4s var(--ease-out) infinite; }
.gate[data-state="idle"] .gate__pulse::after { animation: gate-pulse 2.4s var(--ease-out) 1.2s infinite; }
@keyframes gate-pulse {
  0%   { transform: scale(1);   opacity: .9; }
  70%  { opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
.gate__drop { position: absolute; right: 1.82%; top: 36.73%; width: 13.39%; height: 26.54%; pointer-events: none; }
.gate__mark-box { position: relative; }

.gate__loader {
  position: absolute; left: 50%; top: .5rem;
  width: clamp(120px, 14vw, 180px);
  transform: translateX(-50%);
  transition: opacity var(--dur-base) var(--ease-out);
}
.gate__loader-bar { display: block; height: 1px; background: var(--c-ink-700); overflow: hidden; }
.gate__loader-bar i { display: block; height: 100%; background: var(--c-blue-300); transform-origin: left; transform: scaleX(0); }
.gate:not([data-state="loading"]) .gate__loader { opacity: 0; }

.gate__copy {
  position: relative;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  min-height: 7.5rem;
  width: min(100%, 44rem);
  text-align: center;
}
.gate__prompt {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 360;
  font-style: italic;
  color: var(--c-dawn-100);
}
.gate__hint { margin-top: var(--space-3); font-size: var(--text-kicker); font-weight: 500; color: var(--c-graphite-200); }
.gate__hint { max-width: 44rem; margin-inline: auto; text-wrap: balance; } /* one line on desktop; an even two-line split on phones */
/* the small disclaimer, with a real way out to the contact form */
.gate__note { margin-top: var(--space-2); font-size: .8125rem; color: var(--c-graphite-300); }
.gate__note a { color: var(--c-blue-200); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.gate__note a:hover { color: var(--c-dawn-100); }

.gate__prompt, .gate__hint, .gate__note { transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-slow) var(--ease-expo); }
.gate[data-state="loading"] :is(.gate__prompt, .gate__hint, .gate__note) { opacity: 0; transform: translateY(8px); }
.gate:is([data-state="calling"], [data-state="connected"], [data-state="leaving"]) :is(.gate__prompt, .gate__hint, .gate__note) { opacity: 0; transform: translateY(-8px); }

.gate__status {
  position: absolute; left: 0; right: 0; top: 0;
  font-size: .8125rem; font-weight: 500;
  color: var(--c-blue-200);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.gate[data-state="calling"] .gate__status,
.gate[data-state="connected"] .gate__status { opacity: 1; }
.gate[data-state="connected"] .gate__status { color: var(--c-gold-200); }
.gate__reply {
  position: absolute; left: 0; right: 0; top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.1rem + 2.2vw, 2.75rem);
  font-weight: 360;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--c-dawn-100);
  text-wrap: balance;
}
/* The whole reply is laid out from the start (each character hidden until
   typed), so the line breaks never move while it types. The caret takes no
   width: it is drawn by a pseudo-element, so moving it never reflows. */
.gate__reply .ch { visibility: hidden; }
.gate__reply .ch.is-on { visibility: visible; }
.gate__reply .ch.is-head { position: relative; }
.gate__reply .ch.is-head::after {
  content: ""; position: absolute; left: 100%; top: .08em; height: .9em; width: 2px; margin-left: .04em;
  background: var(--c-gold-400);
  animation: caret 1s steps(1) infinite;
}
/* Desktop: the reply is ONE line, sized to fit, centred on the mark and
   free of the 44rem copy column. Phones keep a balanced two-line wrap. */
@media (min-width: 768px) {
  .gate__reply {
    left: 50%; right: auto; translate: -50% 0;
    width: max-content; max-width: calc(100vw - 2 * var(--margin));
    white-space: nowrap;
    font-size: clamp(1.75rem, .6rem + 2.6vw, 2.75rem);
  }
}
.gate__caret {
  display: inline-block; position: relative;
  width: 0; height: .9em;
  vertical-align: -.1em;
  opacity: 0;
}
.gate__caret::after {
  content: ""; position: absolute; left: .04em; top: 0; bottom: 0; width: 2px;
  background: var(--c-gold-400);
}
.gate[data-state="connected"] .gate__caret { opacity: 1; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.gate__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) var(--margin) max(var(--space-5), env(safe-area-inset-bottom));
}
.gate__bar { color: var(--c-graphite-300); }
.gate__sound, .gate__skip {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8125rem; font-weight: 500; letter-spacing: 0; color: var(--c-graphite-300);
  min-height: 44px; padding: 0 .25rem;
  transition: color var(--dur-instant) var(--ease-out);
}
.gate__sound:hover, .gate__skip:hover { color: var(--c-dawn-100); }
.gate__sound .icon { width: 1.35em; height: 1.35em; stroke-width: 1.75; }
.gate__brand { font-size: var(--text-kicker); font-weight: 500; color: var(--c-graphite-200); text-align: center; }
@media (max-width: 599px) {
  /* the positioning line gets its own row above the controls on phones */
  .gate__bar { flex-wrap: wrap; row-gap: var(--space-2); }
  .gate__brand { order: -1; flex: 1 1 100%; }
}
/* No flash of the finished logo before the scripts draw it (round-3 P0-2).
   pathLength="1" is in the markup, so CSS alone can hide the strokes. The
   6s gate failsafe still clears everything if JS never runs. */
.js:not(.intro-seen):not(.reduced-motion) .gate[data-state="loading"] :is(.mark__bracket, .mark__dash, .mark__sq) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js:not(.intro-seen):not(.reduced-motion) .gate[data-state="loading"] :is(.mark__ai, .gate__wordmark) { opacity: 0; }

/* ---------- SLIDER (range) ----------------------------------------------
   A 2px rail, a filled portion, and the brand square as the thumb. */
.slider + .slider { margin-top: var(--space-7); }
.slider__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.slider__top label { font-size: var(--text-body); font-weight: 500; color: var(--color-text); }
.slider__val {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--color-text);
}
.slider__track { position: relative; height: 2.25rem; margin-top: var(--space-2); }
.slider__track::before, .slider__fill {
  content: ""; position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px;
  pointer-events: none;
}
.slider__track::before { right: 0; background: var(--color-line); }
.slider__fill { width: calc(9px + (100% - 18px) * var(--p, .5)); background: var(--color-accent); z-index: 1; }
.slider input[type="range"] {
  -webkit-appearance: none; appearance: none;
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  background: transparent;
  touch-action: pan-y;
  cursor: pointer;
}
.slider input[type="range"]:focus-visible { outline: none; }
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-accent);
  border-radius: 0;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.slider input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-accent);
  border-radius: 0;
}
.slider input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
.slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--color-accent), 0 0 0 6px var(--c-blue-100); }
.slider input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--color-accent), 0 0 0 6px var(--c-blue-100); }

/* ---------- KPI TILE ----------------------------------------------------
   The same shape the dashboard uses: label, big numeral, a small visual,
   a one-line footnote. */
.kpi {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2.4vw, 3rem);
  display: flex; flex-direction: column;
  gap: var(--space-5);
  overflow: hidden;
}
.kpi__value {
  display: flex; align-items: flex-start;
  font-family: var(--font-display);
  font-size: calc(var(--text-numeral) * var(--kpi-fit, 1)); /* --kpi-fit: calc.js shrinks 8+ digit answers */
  transition: font-size var(--dur-base) var(--ease-out);
  font-weight: 330;
  line-height: .9;
  letter-spacing: -.045em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--color-text);
}
.kpi__cur { font-size: .42em; margin: .12em .08em 0 0; color: var(--color-text-muted); letter-spacing: 0; }
.kpi__weeks {
  display: grid;
  grid-template-columns: repeat(26, 1fr);
  gap: 5px;
  max-width: 34rem;
}
.kpi__weeks i {
  aspect-ratio: 1;
  border: 1px solid var(--c-ink-700);
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.kpi__weeks i.is-on { background: var(--color-accent); border-color: var(--color-accent); } /* blue, not clay (round 5) */
.kpi__foot { color: var(--color-text-soft); max-width: 30rem; }
.kpi__per { color: var(--color-accent); font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; } /* blue ink, never underlined: not a link */

/* ---------- MEDIA PANEL -------------------------------------------------
   <figure class="media" data-icon="i-notes"><video …></figure>
   Until footage exists, JS renders a designed placeholder: a warm duotone
   ground, the item's icon, and a thin looping progress line. When the video
   (or its poster) loads, .has-poster / .is-playing reveal it. */
.media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 18% 12%, rgb(201 154 52 / .10), transparent 55%),
    radial-gradient(90% 80% at 85% 100%, rgb(108 155 194 / .10), transparent 60%),
    linear-gradient(160deg, #3A322E 0%, #2A2425 55%, #1F1B1C 100%);
  isolation: isolate;
}
.media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.media.has-poster video, .media.is-playing video { opacity: 1; }
.media__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgb(247 245 239 / .78);
}
.media.has-poster .media__ph { opacity: 0; }
.media__ph-icon {
  display: grid; place-items: center;
  width: clamp(72px, 8vw, 112px); aspect-ratio: 1;
  border: 1px solid rgb(247 245 239 / .22);
  background: rgb(23 20 21 / .25);
}
.media__ph .icon { width: clamp(1.75rem, 1.4rem + 1vw, 2.5rem); height: clamp(1.75rem, 1.4rem + 1vw, 2.5rem); stroke-width: 1.5; }
@media (max-width: 799px) { .media__ph-num { display: none; } }
.media__ph-num {
  position: absolute; right: 1.25rem; bottom: .6rem;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(3rem, 2rem + 4vw, 6.5rem); line-height: 1;
  color: rgb(247 245 239 / .08);
}
.media__ph-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgb(247 245 239 / .12) 1px, transparent 1.5px);
  background-size: 28px 28px;
  background-position: 14px 14px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 80%);
}
.media__ph-cap {
  position: absolute; left: 1.25rem; bottom: 1.35rem;
  color: rgb(247 245 239 / .72);
}
.media__ph-line {
  position: absolute; left: 1.25rem; right: 1.25rem; bottom: .85rem;
  height: 1px; background: rgb(247 245 239 / .16); overflow: hidden;
}
.media__ph-line i {
  display: block; height: 100%; width: 100%;
  background: rgb(247 245 239 / .7);
  transform-origin: left; transform: scaleX(0);
  animation: media-progress 6s linear infinite;
}
@keyframes media-progress { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .media__ph-line i { animation: none; transform: scaleX(.35); } }

/* ---------- AUDIO PLAYER + WAVE ------------------------------------------ */
.player {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, .8rem + 2vw, 2.25rem);
  box-shadow: var(--shadow-1);
}
.player__top { display: flex; align-items: center; gap: var(--space-5); }
.player__btn {
  display: grid; place-items: center;
  width: 4rem; height: 4rem; flex: none;
  background: var(--color-accent); color: var(--color-on-accent);
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-instant) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.player__btn:hover { background: var(--color-accent-strong); }
.player__btn:active { transform: scale(.97); }
.player__btn .icon { width: 1.4rem; height: 1.4rem; }
.player__btn .icon--play { fill: currentColor; stroke-width: 1.5; }
.player__btn .icon--pause { display: none; stroke-width: 3; }
.player.is-playing .player__btn .icon--play { display: none; }
.player.is-playing .player__btn .icon--pause { display: block; }
.player__title { font-weight: 600; font-size: 1.0625rem; }
.player__time { margin-top: .2rem; font-variant-numeric: tabular-nums; }

.wave {
  display: flex; align-items: center; gap: clamp(1px, .35vw, 3px);
  height: clamp(5.5rem, 4rem + 4vw, 8rem);
  margin-top: var(--space-6);
  cursor: pointer;
  border-radius: var(--radius-xs);
}
.wave i {
  flex: 1 1 0;
  min-width: 1px;
  height: calc(10% + var(--h, .5) * 90%);
  background: var(--color-text-muted);
  opacity: 1;
  transform-origin: center;
  transition: background-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.wave i.is-played { background: var(--color-accent); opacity: 1; }
.player.is-playing .wave i.is-head { animation: wave-head .5s var(--ease-in-out) infinite alternate; }
/* Idle: the unplayed wave breathes gently while on screen, an invitation. */
.player.is-visible:not(.is-playing) .wave i:not(.is-played) {
  animation: wave-idle 2.6s var(--ease-in-out) infinite alternate;
  animation-delay: calc(var(--i, 0) * -90ms);
}
@keyframes wave-idle { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .player .wave i { animation: none !important; } }
.player__title { display: flex; align-items: center; gap: .6em; }
.player__title::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--color-accent); flex: none; }
.player.is-playing .player__title::before { background: var(--color-accent); animation: live 1.2s steps(2) infinite; }
@keyframes live { 50% { opacity: .25; } }
@keyframes wave-head { to { transform: scaleY(1.25); } }
.player__transcript { margin-top: var(--space-5); border-top: 1px solid var(--color-line); }
.player__transcript summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 3rem; cursor: pointer;
}
.player__transcript summary .icon { transition: transform var(--dur-base) var(--ease-expo); }
.player__transcript[open] summary .icon { transform: rotate(45deg); }
.player__transcript-body { padding-bottom: var(--space-3); color: var(--color-text-muted); font-size: var(--text-small); }

/* ---------- ACCORDION ---------------------------------------------------- */
.accordion { border-bottom: 1px solid var(--color-line); }
.accordion__item { border-top: 1px solid var(--color-line); }
.accordion__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding: var(--space-5) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.012em;
  transition: color var(--dur-instant) var(--ease-out);
}
.accordion__item summary:hover { color: var(--color-accent-text); }
.accordion__item summary .icon {
  width: 1.25rem; height: 1.25rem; stroke-width: 1.75;
  color: var(--color-accent);
  transition: transform var(--dur-base) var(--ease-expo);
}
.accordion__item[open] summary .icon { transform: rotate(45deg); }
.accordion__panel { overflow: hidden; }
.accordion__panel p { padding-bottom: var(--space-6); max-width: var(--measure); color: var(--color-text-soft); }

/* gate: states that block input, target highlight, reduced motion */
.gate[data-state="loading"] .gate__call,
.gate[data-state="calling"] .gate__call,
.gate[data-state="connected"] .gate__call,
.gate[data-state="leaving"] .gate__call { pointer-events: none; }
.gate__mark .mark__sq--r.is-target { stroke: var(--c-blue-200); fill: rgb(143 176 204 / .25); }
/* Only the brackets and letters get a CSS transform box. The squares and
   dashes are never scaled (P0-1: CSS + GSAP origins used to stack). */
.gate__mark .mark__brackets, .gate__mark .mark__ai { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  .gate__pulse, .gate__pulse::after { animation: none !important; opacity: .6; transform: scale(1.6); }
  .gate__pulse::after { display: none; }
}

/* ---------- FORM FIELDS (round 6: the contact form) ----------------------
   .field > .field__label + [.field__hint] + .field__input + .field__error
   States: default, :focus-visible (blue ring, the site's focus), error
   ([aria-invalid="true"]: clay, the reserved attention colour, with the
   message in words, never colour alone), disabled (sunken, muted). */
.form { display: grid; gap: var(--space-5); }
.form[hidden] { display: none; }
.form__required { font-size: .8125rem; color: var(--color-text-muted); }
.form__grid { display: grid; gap: var(--space-5) var(--space-5); }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; align-content: start; min-width: 0; }
.field__label { font-size: var(--text-small); font-weight: 600; color: var(--color-text); }
.field__opt { font-weight: 400; color: var(--color-text-muted); }
.field__hint { font-size: .8125rem; color: var(--color-text-muted); margin-top: -.15rem; }
.field__input {
  width: 100%; min-height: 3rem; padding: .7rem .85rem;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--color-text);
  background: var(--c-dawn-50); border: 1px solid var(--c-ink-600); border-radius: var(--radius-sm);
  transition: border-color var(--dur-instant) var(--ease-out), box-shadow var(--dur-instant) var(--ease-out);
}
.field__input--area { min-height: 8.5rem; resize: vertical; }
.field__input:hover { border-color: var(--color-text); }
.field__input:focus-visible, .field__input.ds-focus { outline: none; border-color: var(--c-blue-500); box-shadow: 0 0 0 3px var(--c-blue-100); }
.field__input[aria-invalid="true"] { border-color: var(--c-clay-600); box-shadow: 0 0 0 1px var(--c-clay-600); }
.field__input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 1px var(--c-clay-600), 0 0 0 4px var(--c-blue-100); }
.field__input:disabled { background: var(--color-bg-sunken); color: var(--color-text-muted); border-color: var(--color-line); cursor: not-allowed; }
.field__error { font-size: .8125rem; font-weight: 500; color: var(--c-clay-600); min-height: 0; }
.field__error:empty { display: none; }
.field__error::before { content: "! "; font-weight: 700; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.form__status { font-size: var(--text-small); color: var(--color-text-soft); }
.form__status.is-error { color: var(--c-clay-600); font-weight: 500; }
.form__submit[aria-busy="true"] { cursor: progress; opacity: .8; }
.form__done { display: grid; gap: var(--space-3); justify-items: start; padding-block: var(--space-4); }
.form__done[hidden] { display: none; }
.form__done-mark { width: 14px; height: 14px; background: var(--c-blue-500); }
.form__done-title { font-family: var(--font-display); font-size: var(--text-title); font-weight: 380; line-height: 1.08; outline: none; }
.form__done-text { color: var(--color-text-soft); max-width: 44ch; }


/* ---------- BRAND CURSOR (round 8, cursor.js) ----------------------------
   Only active when JS adds .has-cursor (mouse + motion allowed). Form fields,
   sliders and video keep the real system cursor. */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), textarea, [contenteditable=""], [contenteditable="true"]) { cursor: text !important; }
html.has-cursor :is(select, input[type="range"], input[type="checkbox"], input[type="radio"], video, audio, iframe) { cursor: auto !important; }
.cur { position: fixed; inset: 0 auto auto 0; z-index: 120; pointer-events: none; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out);
  --cur-ink: var(--c-ink-900); --cur-dot: var(--c-blue-500); }
.cur.on-dark { --cur-ink: var(--c-dawn-100); --cur-dot: var(--c-blue-300); }
.cur.is-on { opacity: 1; }
.cur.is-native { opacity: 0; }
.cur__dot, .cur__frame { position: absolute; left: 0; top: 0; display: block; will-change: transform; }
/* the dot: centred on the pointer, never delayed */
.cur__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--cur-dot);
  transition: width var(--dur-fast) var(--ease-out), height var(--dur-fast) var(--ease-out), margin var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
/* the frame: the logo's two brackets, top and bottom, open at the sides */
.cur__frame { color: var(--cur-ink); transition: color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.cur__frame::before, .cur__frame::after { content: ""; position: absolute; left: 0; right: 0; height: min(34%, 12px); border: 1.5px solid currentColor; }
.cur__frame::before { top: 0; border-bottom: 0; }
.cur__frame::after { bottom: 0; border-top: 0; }
.cur.is-press .cur__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.cur.is-gold .cur__frame { color: var(--c-gold-400); }
.cur.is-gold .cur__dot { background: var(--c-gold-400); }
/* over running text the dot becomes a text bar and the frame steps back */
.cur.is-text .cur__dot { width: 2px; height: 20px; margin: -10px 0 0 -1px; background: var(--cur-ink); }
.cur.is-text .cur__frame { opacity: 0; }
.cur.is-down .cur__frame { scale: .9; }
