/* ─────────────────────────────────────────────────────────────────────────────
   voice.simple-forge.com

   Hand-written on purpose: this site is NOT on the shared hugo-saasify-theme,
   whose served stylesheet is Tailwind-purged and will silently drop a class it
   did not see at build time.

   The system in one line: the page speaks meeting-client, and colour + typeface
   both encode the same distinction — warm is human, cold is machine.
     · amber  is used ONLY for live/on-air states
     · cyan + mono are used ONLY for machine traces (timecodes, tool calls)
   Speech is set in the human face; telemetry is set in the machine face. Nothing
   decorative borrows either accent.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --room:    #12151b;   /* the room at night — blue-grey, not a tinted black */
  --room-2:  #171b23;   /* tile surface */
  --room-3:  #1d232d;   /* raised surface */
  --well:    #0d1015;   /* the stage well, deepest */
  --line:    rgba(232, 228, 220, 0.10);
  --line-2:  rgba(232, 228, 220, 0.26);

  --ink:     #e8e4dc;   /* warm off-white — room light, not screen white */
  --ink-2:   rgba(232, 228, 220, 0.72);
  --ink-3:   rgba(232, 228, 220, 0.54);

  --onair:   #e8863c;   /* tungsten. live, speaking, on air. nothing else. */
  --onair-w: rgba(232, 134, 60, 0.13);
  --trace:   #6fd3d8;   /* cold. machine traces only. */
  --trace-w: rgba(111, 211, 216, 0.11);
  --rec:     #d8574a;

  --human: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --machine: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1240px;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}
#stage, #platforms, #demo { scroll-margin-top: 86px; }

body {
  margin: 0;
  background: var(--room);
  color: var(--ink);
  font-family: var(--human);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--onair);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s, background-color 0.18s, color 0.18s;
}
.btn:hover { border-color: var(--ink-3); background: rgba(232, 228, 220, 0.05); }
.btn--primary { background: var(--ink); color: var(--room); border-color: var(--ink); }
.btn--primary:hover { background: #fff; border-color: #fff; }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn--wide { width: 100%; max-width: 22rem; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn[disabled]:hover { border-color: var(--line-2); background: transparent; }

/* ── top bar: a meeting client's chrome, not a marketing nav ─────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  padding: 0.85rem var(--pad);
  background: rgba(18, 21, 27, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.bar__brand { display: flex; align-items: center; gap: 0.6rem; min-height: 40px; text-decoration: none; }
.bar__mark {
  width: 11px; height: 11px; border-radius: 3px;
  background: var(--onair);
  box-shadow: 0 0 0 4px var(--onair-w);
}
.bar__name { font-weight: 600; font-variation-settings: "wdth" 112; letter-spacing: -0.01em; }
.bar__name-sub { color: var(--ink-3); margin-left: 0.3rem; font-weight: 400; }
.bar__nav { display: flex; gap: 1.5rem; margin-left: auto; font-size: 0.92rem; }
.bar__nav a { padding: 0.5rem 0; color: var(--ink-2); text-decoration: none; transition: color 0.18s; }
.bar__nav a:hover { color: var(--ink); }
.bar__right { display: flex; align-items: center; gap: 0.75rem; }

.lang { position: relative; }
.lang__btn {
  min-height: 40px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.lang__btn:hover { color: var(--ink); border-color: var(--ink-3); }
.lang__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  padding: 0.35rem;
  background: var(--room-3);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.lang__list a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
}
.lang__list a:hover { background: rgba(232, 228, 220, 0.07); color: var(--ink); }
.lang__list a[aria-current] { color: var(--onair); }

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--pad) clamp(3.5rem, 8vw, 7rem);
}

.hero__copy h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.75rem);
  line-height: 1.05;
  font-variation-settings: "wdth" 114;
  font-weight: 600;
  text-wrap: balance;
}
.lede {
  margin-top: 1.25rem;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 1.06rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* the call frame */
.callframe {
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.callframe__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-3);
}
.callframe__rec {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rec);
}
.callframe__clock { margin-left: auto; font-family: var(--machine); font-size: 0.7rem; }
.callframe__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
}
.callframe__caption {
  min-height: 4.6rem;
  padding: 0.7rem 0.95rem 0.95rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9rem;
}
.callframe__caption b { color: var(--onair); font-weight: 500; }
.callframe__caption span { color: var(--ink); }

/* the caret only exists while a line is still arriving */
.callframe__caption.is-typing span::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--onair);
  animation: caret 0.9s step-end infinite;
}
@keyframes caret {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.tile {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--room-2);
  border-radius: 9px;
  overflow: hidden;
}
.tile__figure {
  width: 46px;
  height: 46px;
  fill: rgba(232, 228, 220, 0.16);
}
.tile__chip {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  background: rgba(13, 16, 21, 0.72);
  font-size: 0.72rem;
  color: var(--ink-2);
}
.tile__role {
  position: absolute;
  right: 9px;
  bottom: 9px;
  font-family: var(--machine);
  font-size: 0.68rem;
  color: var(--ink-2);
}
.tile--agent {
  background: linear-gradient(180deg, #1b1a1c 0%, #191c22 100%);
  box-shadow: inset 0 0 0 1px rgba(232, 134, 60, 0.28);
}
.tile__chip--agent { color: var(--ink); }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--onair);
}
.dot--rec { background: var(--rec); }

.tile__wave { display: flex; align-items: center; gap: 3px; height: 42px; }
.tile__wave i {
  display: block;
  width: 3px;
  height: 20%;
  border-radius: 2px;
  background: var(--onair);
  opacity: 0.85;
}

/* the one orchestrated motion on the page: the agent arriving */
[data-join-scene] .tile--agent {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
}
[data-join-scene].is-joined .tile--agent {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.tile--agent.is-live .tile__wave i { animation: vu 1.1s ease-in-out infinite; }

/* whoever is speaking is lit — amber for the agent, neutral for people */
.tile.is-live { box-shadow: inset 0 0 0 2px rgba(232, 228, 220, 0.34); }
.tile--agent.is-live { box-shadow: inset 0 0 0 2px rgba(232, 134, 60, 0.62); }
.tile { transition: box-shadow 0.3s ease; }
.tile__wave i:nth-child(1) { animation-delay: 0.00s }
.tile__wave i:nth-child(2) { animation-delay: 0.09s }
.tile__wave i:nth-child(3) { animation-delay: 0.18s }
.tile__wave i:nth-child(4) { animation-delay: 0.27s }
.tile__wave i:nth-child(5) { animation-delay: 0.36s }
.tile__wave i:nth-child(6) { animation-delay: 0.45s }
.tile__wave i:nth-child(7) { animation-delay: 0.54s }
.tile__wave i:nth-child(8) { animation-delay: 0.63s }
.tile__wave i:nth-child(9) { animation-delay: 0.72s }
@keyframes vu {
  0%, 100% { height: 18%; }
  50%      { height: 82%; }
}

.replay {
  display: block;
  min-height: 40px;
  margin: 0.6rem auto 0;
  padding: 0.5rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.replay:hover { color: var(--ink); border-color: var(--line-2); }

/* ── stage ───────────────────────────────────────────────────────────────── */

.stage {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad);
  border-top: 1px solid var(--line);
}
.stage__h {
  max-width: 22ch;
  font-size: clamp(1.6rem, 2.9vw, 2.35rem);
  line-height: 1.12;
  font-variation-settings: "wdth" 108;
  text-wrap: balance;
}

.modes { display: flex; gap: 0.4rem; margin: 2rem 0 1.25rem; }
.modes__btn {
  min-height: 42px;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background-color 0.18s;
}
.modes__btn:hover { color: var(--ink-2); }
.modes__btn.is-on { color: var(--ink); border-color: var(--ink-3); background: rgba(232, 228, 220, 0.06); }

.panel {
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1rem, 2.5vw, 1.75rem);
}
.panel__head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.panel__meta { font-family: var(--machine); font-size: 0.68rem; color: var(--ink-3); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
}
.badge--rec { background: rgba(216, 87, 74, 0.13); color: #eda096; }
.badge--scn { background: var(--trace-w); color: var(--trace); font-family: var(--machine); font-size: 0.64rem; }

.notice {
  margin-bottom: 1.25rem;
  padding: 0.8rem 0.95rem;
  border-left: 2px solid var(--onair);
  background: var(--onair-w);
  border-radius: 0 8px 8px 0;
  color: var(--ink-2);
  font-size: 0.88rem;
}
.notice--quiet {
  border-left-color: var(--line-2);
  background: rgba(232, 228, 220, 0.035);
  color: var(--ink-2);
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
}
.cols--scn { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.cols--scn .cue__text { max-width: none; }
.col { min-width: 0; }
.col__h {
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-3);
}

/* speech — human face, warm */
.talk {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: 25rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 2.5rem), transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 2.5rem), transparent 100%);
}
.talk--static { -webkit-mask-image: none; mask-image: none; }
.cue { display: flex; gap: 0.7rem; opacity: 0.42; transition: opacity 0.35s; }
.cue.is-now, .talk--static .cue { opacity: 1; }
.cue.is-past { opacity: 0.62; }
.cue__t { font-family: var(--machine); font-size: 0.62rem; color: var(--ink-3); padding-top: 0.28rem; flex: none; }
.cue__body { min-width: 0; }
.cue__who { display: block; font-size: 0.76rem; color: var(--ink-3); margin-bottom: 0.1rem; }
.cue__text { display: block; font-size: 0.95rem; max-width: 52ch; }
.cue--agent .cue__who { color: var(--onair); }
.cue--agent .cue__text { color: var(--ink); }

/* telemetry — machine face, cold */
.trace { display: flex; flex-direction: column; gap: 0.5rem; }
.ev {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(111, 211, 216, 0.035);
  font-family: var(--machine);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--ink-2);
  opacity: 0.45;
  transition: opacity 0.35s, border-color 0.35s;
}
.ev.is-now { opacity: 1; border-color: rgba(111, 211, 216, 0.45); }
.ev.is-past { opacity: 0.75; }
.trace--static .ev { opacity: 1; }
.ev__t { color: var(--trace); flex: none; }
.ev__text { min-width: 0; }

/* transport */
.ctl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(232, 228, 220, 0.02);
}
.ctl__wave { display: flex; align-items: center; gap: 2px; height: 46px; width: 100%; justify-content: center; }
.ctl__wave i {
  display: block;
  width: 3px;
  height: 12%;
  border-radius: 2px;
  background: var(--ink-3);
  transition: height 0.12s linear, background-color 0.2s;
}
.ctl.is-playing .ctl__wave i { background: var(--onair); }
.ctl__time { font-family: var(--machine); font-size: 0.68rem; color: var(--ink-3); }
.ctl__btns { display: flex; gap: 0.5rem; }
.ctl__note { font-size: 0.72rem; color: var(--ink-3); text-align: center; max-width: 18ch; }

.artifact {
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--room-2);
}
.artifact--scn { margin-top: 1.25rem; }
.artifact__label { font-size: 0.78rem; font-weight: 500; color: var(--ink-3); margin-bottom: 0.5rem; }
.artifact__title { font-size: 1.02rem; font-variation-settings: "wdth" 106; max-width: 48ch; }
.artifact__meta { margin-top: 0.35rem; font-family: var(--machine); font-size: 0.64rem; color: var(--trace); }
.artifact__pending { margin-top: 0.6rem; font-size: 0.78rem; color: var(--ink-3); }

/* pickers */
.picks { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-bottom: 1.75rem; }
.pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.pick legend { padding: 0; margin-bottom: 0.6rem; font-size: 0.82rem; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.87rem;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, background-color 0.16s;
}
.chip:hover { color: var(--ink-2); border-color: var(--ink-3); }
.chip[aria-checked="true"], .chip.is-on {
  color: var(--room);
  background: var(--ink);
  border-color: var(--ink);
}

/* ── platforms ───────────────────────────────────────────────────────────── */

.platforms {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad);
  border-top: 1px solid var(--line);
}
.platforms h2 {
  max-width: 20ch;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.14;
  font-variation-settings: "wdth" 108;
}
.platforms__live {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.plat { padding: 1.5rem 1.5rem; background: var(--room); }
.plat--only h3 { font-size: 1.3rem; }
.plat--only p { max-width: 52ch; }
.plat h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.08rem; font-variation-settings: "wdth" 108; }
.plat p { margin-top: 0.55rem; color: var(--ink-2); font-size: 0.9rem; max-width: 40ch; }
.platforms__soon {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1.5rem;
  color: var(--ink-3);
  font-size: 0.85rem;
  max-width: 68ch;
}
.platforms__soon-tag {
  flex: none;
  margin-top: 0.15rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-family: var(--machine);
  font-size: 0.58rem;
}

/* ── demo form ───────────────────────────────────────────────────────────── */

.demo {
  border-top: 1px solid var(--line);
  background: var(--well);
}
.demo__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad);
}
.demo h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-variation-settings: "wdth" 108; }
.form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.form__label { display: block; font-size: 0.82rem; color: var(--ink-3); margin-bottom: 0.45rem; }
.form__hint { margin-top: 0.4rem; font-size: 0.76rem; color: var(--ink-3); }
.form__case {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(232, 228, 220, 0.03);
}
.form__case-text { font-size: 1rem; color: var(--ink); max-width: 52ch; }
.form__row { border: 0; padding: 0; margin: 0; min-width: 0; }
.form__row legend { padding: 0; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: block; min-width: 0; }
.field input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--room-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus-visible { border-color: var(--onair); outline: 2px solid var(--onair); outline-offset: 2px; }
.field input:focus { border-color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__err { color: var(--onair); font-size: 0.86rem; }

.done {
  margin-top: 2rem;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--room-2);
}
.done h3 { font-size: 1.25rem; font-variation-settings: "wdth" 108; }
.done p { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.95rem; max-width: 50ch; }
.done__dev {
  font-family: var(--machine);
  font-size: 0.64rem;
  color: var(--trace);
}
.done .btn { margin-top: 1.2rem; }

/* ── footer ──────────────────────────────────────────────────────────────── */

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.85rem;
}
.foot a { color: var(--ink-2); }

/* ── responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .cols { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .col--ctl { grid-column: 1 / -1; order: 3; }
  .ctl { flex-direction: row; justify-content: center; }
  .ctl__wave { width: auto; flex: 1; max-width: 300px; }
  .ctl__note { max-width: 24ch; text-align: left; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__stage { order: 2; }
  .hero__copy { order: 1; }
}

@media (max-width: 900px) {
  .bar__nav { gap: 1rem; font-size: 0.84rem; }
  .bar__nav a:last-child { display: none; }   /* lives in the footer on small screens */
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .cols, .cols--scn { grid-template-columns: 1fr; }
  .col--ctl { order: 0; }
  .form__grid { grid-template-columns: 1fr; }
  .talk { max-height: 30rem; }
  /* 4.6rem holds three lines at this width, and captions over ~85 characters
     wrap to four — the strip grew and snapped back roughly twelve times per
     playthrough, nudging the whole page by ~21px each time. Reserve four
     lines and shave the type so the longest cue still fits. */
  .callframe__caption { min-height: 6.2rem; font-size: 0.85rem; }
  .ctl { flex-direction: column; }
  .ctl__wave { width: 100%; max-width: none; }
  .ctl__note { max-width: none; text-align: center; }
  .bar { gap: 0.75rem; }
  .bar__nav { gap: 0.85rem; font-size: 0.8rem; }
  .btn--wide { max-width: none; }
}

@media (max-width: 460px) {
  .bar__nav { display: none; }
}

/* ── reduced motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-join-scene] .tile--agent { opacity: 1; transform: none; }
  .cue, .ev { opacity: 1; }
}

.foot__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot__nav a { padding: 0.35rem 0; text-decoration: none; }
.foot__nav a:hover { color: var(--ink); }

/* the interim mail outcome carries two controls */
.done .btn + .btn { margin-left: 0.5rem; }

/* Turnstile's own iframe. It sizes itself; we only give it room and keep it
   from stretching the form's grid. data-appearance="interaction-only" means
   most visitors never see it at all, so this must collapse to nothing. */
.form__turnstile { margin: 0 0 14px; }
.form__turnstile:empty { display: none; margin: 0; }


/* ───────────────────────────────────────────────────────────────────────
   Submit, in progress.

   The JS already disabled the button and swapped its label before this
   existed, and none of it was visible: no :disabled rule anywhere, so a
   dead button looked exactly like a live one and the only signal was a
   shorter word on a wide button. The operator's report was the plain
   version of that — "you press it and you cannot tell whether you pressed
   it, and three to six seconds later it says sent".

   Three seconds is a real wait: the public stack proxies to the admin one,
   which writes the lead and asks the notifier for a mail. So the wait is
   honest and the feedback has to be too.
   ─────────────────────────────────────────────────────────────────────── */
.btn:disabled,
.btn[disabled] {
  opacity: .62;
  cursor: not-allowed;
}

/* Motion is the part that reads as "working" rather than "broken". It rides
   on aria-busy so the accessible state and the visible one cannot drift. */
.btn[aria-busy="true"] {
  cursor: progress;
  pointer-events: none;
}

.btn[aria-busy="true"]::after {
  content: "";
  display: inline-block;
  width: .75em;
  height: .75em;
  margin-left: .6em;
  vertical-align: -.06em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}

@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Reduced motion still needs a signal, so the ring stops turning and stays
   as a static mark rather than disappearing. */
@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"]::after { animation: none; opacity: .7; }
}
