/* Teleseme design tokens. Generated by hand from tokens.json; keep the two in step.
   Light is the default; dark follows prefers-color-scheme, and [data-theme] forces either. */
:root {
  --t-nickel: #EDEFEC;
  --t-plate: #F7F8F6;
  --t-glass: #DCE3E1;
  --t-ink: #121A1F;
  --t-slate: #4B5862;
  --t-rule: #BFC7CA;
  --t-control: #7D8A92;
  --t-red: #B42318;          /* push-button red: fills */
  --t-red-text: #B42318;     /* push-button red: text and small marks */
  --t-on-red: #FFFFFF;

  --t-status-alert: #B42318;
  --t-status-ok: #067647;
  --t-ok-text: #067647;       /* acknowledged, as text */
  --t-status-warning: #B54708;
  --t-status-demo: #FEC84B;
  --t-status-demo-text: #3D2700;

  --t-font-display: "Archivo Narrow Teleseme", "Archivo", "Arial Narrow", sans-serif;
  --t-font-text: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --t-font-mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace;

  --t-size-label: 0.8125rem;
  --t-size-small: 0.9375rem;
  --t-size-body: 1.125rem;
  --t-size-lead: 1.375rem;
  --t-size-h3: 1.75rem;
  --t-size-h2: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --t-size-h1: clamp(2.75rem, 1.4rem + 5.6vw, 6rem);
  --t-lh-display: 0.98;
  --t-lh-heading: 1.08;
  --t-lh-body: 1.55;

  --t-space-1: 4px;
  --t-space-2: 8px;
  --t-space-3: 12px;
  --t-space-4: 16px;
  --t-space-5: 24px;
  --t-space-6: 32px;
  --t-space-7: 48px;
  --t-space-8: 64px;
  --t-space-9: 96px;
  --t-space-10: 128px;

  --t-radius-s: 4px;
  --t-radius-m: 10px;
  --t-radius-button: 999px;

  --t-motion-quick: 140ms;
  --t-motion-settle: 600ms;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --t-nickel: #0D1316;
    --t-plate: #161E23;
    --t-glass: #1F2A30;
    --t-ink: #E6EAE7;
    --t-slate: #9BA7AE;
    --t-rule: #2E3A41;
    --t-control: #5A6872;
    --t-red-text: #F97066;
    --t-ok-text: #47B881;
  }
}

:root[data-theme="dark"] {
  --t-nickel: #0D1316;
  --t-plate: #161E23;
  --t-glass: #1F2A30;
  --t-ink: #E6EAE7;
  --t-slate: #9BA7AE;
  --t-rule: #2E3A41;
  --t-control: #5A6872;
  --t-red-text: #F97066;
  --t-ok-text: #47B881;
}

/* Teleseme marketing site. Tokens live in tokens.css (copied from the brand repo). */

@font-face {
  font-family: "Archivo Narrow Teleseme";
  src: url("/assets/fonts/archivo-narrow.woff2") format("woff2");
  font-weight: 500 800;
  font-display: optional;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-next.woff2") format("woff2");
  font-weight: 400 700;
  font-display: optional;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/assets/fonts/atkinson-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: optional;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--t-nickel);
  color: var(--t-ink);
  font: 400 var(--t-size-body)/var(--t-lh-body) var(--t-font-text);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--t-font-display); font-weight: 700; line-height: var(--t-lh-heading); letter-spacing: -0.005em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 3px solid var(--t-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--t-ink); color: var(--t-nickel); padding: 10px 16px; border-radius: var(--t-radius-s);
}
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }

.label {
  font-family: var(--t-font-display);
  font-weight: 650;
  font-size: var(--t-size-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-slate);
}
.mono { font-family: var(--t-font-mono); font-variant-numeric: tabular-nums; }

/* Buttons: round-ended, after the push button. Red is the primary action only. */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--t-radius-button);
  font: 700 1.0625rem/1 var(--t-font-text);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t-motion-quick) ease, background-color var(--t-motion-quick) ease;
}
.btn:active { transform: translateY(1px); }
.btn-push { background: var(--t-red); color: var(--t-on-red); }
.btn-push:hover { background: #8F1C13; }
.btn-push::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--t-on-red); box-shadow: 0 0 0 3px rgb(255 255 255 / 0.28);
}
.btn-line { background: transparent; color: var(--t-ink); border-color: var(--t-control); }
.btn-line:hover { border-color: var(--t-ink); }

/* ---------------------------------------------------------------- header */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px;
}
.brand-link { display: inline-flex; color: var(--t-ink); }
.brand-link svg { height: 30px; width: auto; }
.lg-ink { fill: var(--t-ink); }
.lg-red { fill: var(--t-red); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 24px; }
.site-nav ul a { text-decoration: none; font-weight: 600; font-size: 1rem; }
.site-nav ul a:hover { text-decoration: underline; }
.site-nav .btn { min-height: 44px; padding: 0 18px; font-size: 1rem; }
@media (min-width: 860px) { .site-nav ul { display: flex; } }
@media (max-width: 379px) {
  .brand-link svg { height: 24px; }
  .site-nav .btn { padding: 0 14px; }
  .site-nav .btn::before { display: none; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding-block: clamp(24px, 5vw, 64px) clamp(64px, 8vw, 112px); }
.hero .wrap { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.hero h1 {
  font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5rem);
  line-height: var(--t-lh-display);
  font-weight: 750;
  letter-spacing: -0.012em;
  margin-top: 18px;
}
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--t-slate); margin-top: 0.12em; }
.hero .lead { margin-top: 28px; font-size: clamp(1.125rem, 1rem + 0.5vw, var(--t-size-lead)); max-width: 34em; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero .note { color: var(--t-slate); font-size: var(--t-size-small); }

/* The dial: the signature. */
.hero-dial { margin: 0; container-type: inline-size; position: relative; max-width: 620px; justify-self: center; width: 100%; }
.dial { width: 100%; height: auto; aspect-ratio: 1; }
.d-bezel { fill: none; stroke: var(--t-control); stroke-width: 1.5; }
.d-plate { fill: var(--t-plate); }
.d-cell, .d-time { fill: var(--t-glass); transition: fill var(--t-motion-settle) ease; }
.d-label { font: 650 12.5px var(--t-font-display); letter-spacing: 0.04em; fill: var(--t-ink); text-anchor: middle; dominant-baseline: central; transition: fill var(--t-motion-settle) ease; }
.d-head { font: 700 12px var(--t-font-display); letter-spacing: 0.32em; fill: var(--t-slate); text-anchor: middle; }
.d-tlabel { font: 500 13px var(--t-font-mono); fill: var(--t-slate); text-anchor: middle; dominant-baseline: central; }
.d-centre { font: 700 10.5px var(--t-font-display); letter-spacing: 0.28em; fill: var(--t-slate); text-anchor: middle; }
.d-rule { fill: none; stroke: var(--t-rule); stroke-width: 1.5; }
.d-push-ring { fill: var(--t-plate); stroke: var(--t-control); stroke-width: 1.5; }
.d-push-btn { fill: var(--t-red); transform-box: fill-box; transform-origin: center; transition: transform 160ms ease; }
.d-push.pressed .d-push-btn { transform: scale(0.82); }
.d-pointer { transform-box: view-box; transform-origin: 300px 300px; transform: rotate(var(--angle)); transition: transform var(--t-motion-settle) cubic-bezier(.5, 0, .2, 1); }
.d-arm, .d-knob, .d-hub { fill: var(--t-ink); }
.d-knob-pin, .d-hub-pin { fill: var(--t-plate); }
.d-cell.lit { fill: var(--t-red); }
.d-label.lit { fill: var(--t-on-red); }

.ticket {
  margin-top: 20px;
  background: var(--t-plate);
  border: 1px solid var(--t-rule);
  border-radius: var(--t-radius-m);
  padding: 16px 18px;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.ticket .label { display: block; margin-bottom: 8px; }
.ticket p + p { margin-top: 4px; }
.ticket .t-main { font-weight: 700; font-size: 1.0625rem; }
.ticket .t-main .mono { font-weight: 600; }
.ticket .t-status { color: var(--t-slate); }
.dial-controls { display: flex; justify-content: center; margin-top: 16px; }
@container (min-width: 460px) {
  .ticket {
    position: absolute; margin: 0;
    left: 9%; top: 53.5%; width: 37%;
    padding: 0; background: none; border: 0; border-radius: 0;
    font-size: clamp(0.8125rem, 2.6cqi, 0.9375rem);
  }
  .ticket .t-main { font-size: clamp(0.9375rem, 3.1cqi, 1.125rem); }
}

/* -------------------------------------------------------------- sections */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { max-width: 52rem; }
.section-head h2 { font-size: var(--t-size-h2); margin-top: 14px; }
.section-head p { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--t-slate); max-width: 40em; }

/* Story: a real timeline, so it is an ordered list with dates. */
.story { border-top: 1px solid var(--t-rule); }
.timeline { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; gap: 40px; }
@media (min-width: 860px) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); } }
.timeline li { display: grid; align-content: start; gap: 14px; }
.timeline .art {
  aspect-ratio: 1; width: min(100%, 240px);
  color: var(--t-ink);
}
.timeline .art.mark { display: grid; place-items: center; }
.timeline .art.mark svg { width: 150px; height: auto; }
.timeline h3 { font-size: var(--t-size-h3); }
.timeline .when { font-family: var(--t-font-mono); font-size: 0.9375rem; color: var(--t-slate); }
.timeline p { color: var(--t-ink); }
.timeline figcaption, .credit { font-size: 0.8125rem; color: var(--t-slate); }
.drawing { width: 100%; height: auto; }
.drawing .ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drawing .thin { stroke-width: 1.1; }
.drawing .text { stroke-width: 2.4; opacity: 0.45; }
.drawing .arm { stroke-width: 3.5; }
.drawing .fill-ink { fill: currentColor; }
.drawing .fill-red { fill: var(--t-red); }

/* Products */
.products { background: var(--t-glass); }
.product-grid { list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product {
  background: var(--t-plate);
  border-radius: var(--t-radius-m);
  padding: clamp(24px, 3vw, 36px);
  display: grid; align-content: start; gap: 12px;
}
.product .icon { width: 44px; height: 44px; color: var(--t-ink); margin-bottom: 12px; }
.icon .ln { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon .lit { fill: var(--t-red); }
.product h3 { font-size: 2.25rem; line-height: 1; }
.product h3 .label { display: block; margin-bottom: 6px; font-size: 0.8125rem; }
.product p { color: var(--t-ink); }
.product ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--t-slate); }
.product li + li { margin-top: 6px; }
.products .status { margin-top: 24px; color: var(--t-slate); font-size: var(--t-size-small); }

/* Why now */
.why-grid { display: grid; gap: 48px; margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 960px) { .why-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.reason + .reason { margin-top: 40px; }
.reason h3 { font-size: var(--t-size-h3); }
.reason p { margin-top: 12px; }
.reason ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.reason li { padding-left: 28px; position: relative; }
.reason li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--t-ink);
}
.fineprint { margin-top: 20px; font-size: var(--t-size-small); color: var(--t-slate); }

/* The annunciator: one lit cell, always labelled. */
.annunciator { margin: 0; }
.ann-panel {
  background: var(--t-glass);
  border-radius: var(--t-radius-m);
  padding: clamp(14px, 3vw, 28px);
}
.ann-floor { display: grid; grid-template-columns: 3.4em repeat(6, minmax(0, 1fr)); gap: clamp(4px, 1vw, 8px); align-items: center; }
.ann-floor + .ann-floor { margin-top: clamp(4px, 1vw, 8px); }
.ann-floor .fl { font-family: var(--t-font-display); font-weight: 650; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--t-slate); text-transform: uppercase; }
.ann-cell {
  aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--t-plate);
  font-family: var(--t-font-mono); font-size: clamp(0.625rem, 0.5rem + 0.6vw, 0.875rem); color: var(--t-slate);
}
.ann-cell.lit {
  background: var(--t-red); color: var(--t-on-red); font-weight: 600;
  outline: 3px solid var(--t-ink); outline-offset: 3px;
}
.annunciator figcaption {
  margin-top: 18px; display: grid; gap: 4px;
  padding-left: 18px; border-left: 4px solid var(--t-red);
}
.annunciator figcaption strong { font-family: var(--t-font-display); font-size: 1.5rem; line-height: 1.1; }

/* How it works: a real sequence. */
.how { border-top: 1px solid var(--t-rule); }
.steps { list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.steps li { counter-increment: step; display: grid; gap: 12px; align-content: start; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--t-ink);
  font: 700 1.125rem/1 var(--t-font-mono);
}
.steps h3 { font-size: var(--t-size-h3); }
.steps p { color: var(--t-ink); }

/* Pilot */
.pilot-panel {
  position: relative; overflow: hidden;
  background: var(--t-ink); color: var(--t-nickel);
  border-radius: 16px;
  padding: clamp(28px, 6vw, 80px);
  display: grid; gap: 40px;
}
@media (min-width: 960px) { .pilot-panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; } }
.pilot-panel h2 { font-size: var(--t-size-h2); }
.pilot-panel p { margin-top: 18px; max-width: 34em; }
.pilot-panel .label { color: inherit; opacity: 0.8; }
.pilot-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pilot-panel li { padding-left: 28px; position: relative; }
.pilot-panel li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; }
.pilot-panel .btn-push { margin-top: 28px; }
.pilot-panel :focus-visible { outline-color: var(--t-nickel); }
.pilot-panel .mail { display: block; margin-top: 14px; font-size: var(--t-size-small); opacity: 0.85; }
.pilot-rings { position: absolute; right: -140px; top: -140px; width: min(420px, 70vw); height: min(420px, 70vw); pointer-events: none; opacity: 0.14; }
.pilot-rings circle { fill: none; stroke: currentColor; stroke-width: 18; }
.pilot-panel > :not(.pilot-rings) { position: relative; }

/* Footer */
.site-footer { padding-block: 48px 56px; border-top: 1px solid var(--t-rule); }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer svg { height: 28px; width: auto; }
.site-footer p { margin-top: 12px; color: var(--t-slate); font-size: var(--t-size-small); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--t-size-small); }

/* Simple pages */
.page { padding-block: clamp(32px, 6vw, 80px) clamp(72px, 9vw, 128px); }
.page h1 { font-size: var(--t-size-h2); margin-top: 14px; }
.prose { max-width: 40rem; }
.prose p, .prose ul { margin-top: 18px; }
.prose h2 { font-size: 1.75rem; margin-top: 40px; }
.prose li + li { margin-top: 6px; }
.notfound { min-height: 50vh; display: grid; align-content: center; gap: 20px; }
.notfound svg { width: 96px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
