/* ============================================================
   72 Cloud Tech — shared styles
   Editorial / Swiss: paper, ink, one flare of vermilion.
   ============================================================ */

/* ------------------------------------------------------------
   Type.

   Two self-hosted variable faces, no third-party requests:

   Archivo   — a grotesque in the Helvetica lineage, carrying both a
               weight and a width axis. Full Latin, because people
               type their own words into the brand generator and the
               AI demo and a subset would fall back mid-word. 90 KB.

   Fraunces  — italic only, for the accent words in display type.
               Subset to the characters the markup actually sets and
               pinned to one weight, but the optical-size axis is
               kept: --serif runs from 0.55em to 7rem here, and the
               same outline can't serve both ends. 30 KB.

   The fallback face below is Arial remapped to Archivo's metrics, so
   the swap when the webfont lands doesn't move a single line.
   Measured off the shipped file: upem 1000, asc 878, desc 210,
   x-height 526 — against Arial's x-height ratio of 0.5186.
   ------------------------------------------------------------ */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 101.44%;
  ascent-override: 86.56%;
  descent-override: 20.7%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------
   Tokens.

   The whole design is two surfaces: --paper (the ground) and
   --ink (the slab that contrasts against it). Dark mode swaps
   what those two colours are, and every rule that was written
   in terms of them inverts correctly on its own.

   Anything that needs a translucent paper or ink is written as
   color-mix() against the token rather than a baked rgba(), so
   it follows the swap too. The only literal white left in the
   sheet is --on-flare, which sits on vermilion in both themes.
   ------------------------------------------------------------ */

:root {
  color-scheme: light;

  --paper: #f2efe9;
  --paper-2: #e8e4da;
  --ink: #121211;
  --ink-2: #1c1c1a;
  --ink-3: #232320;
  --ink-soft: #56534c;
  --flare: #ff3b1f;
  --on-flare: #fff;

  /* Shadows are cast light, not surface colour — they stay dark in both
     themes. Written as a token so dark mode can deepen them. */
  --shade: #121211;

  /* Derived from --ink, so they flip with the theme. */
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --line-soft: color-mix(in srgb, var(--ink) 9%, transparent);

  /* Translucent paper, for type sitting on an ink slab. */
  --on-ink: var(--paper);
  --on-ink-70: color-mix(in srgb, var(--paper) 70%, transparent);
  --on-ink-45: color-mix(in srgb, var(--paper) 45%, transparent);
  --on-ink-line: color-mix(in srgb, var(--paper) 18%, transparent);

  /* Status. Dark mode lifts these off the ground. */
  --ok: #0f7b5f;
  --warn: #a86400;
  --bad: #c0271a;

  /* Second data series — the "last year" line against vermilion's "this year". */
  --series-2: #8a867e;

  /* Sheen on tilted surfaces. */
  --glare: rgba(255, 255, 255, 0.55);
  --glare-soft: rgba(255, 255, 255, 0.28);

  --sans: "Archivo", "Archivo Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Fraunces", "Times New Roman", Times, Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1240px;
  --gut: clamp(20px, 4vw, 56px);
}

/* Dark: paper and ink trade places. Vermilion warms slightly so it
   still reads as the same accent against a dark ground. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --paper: #121211;
    --paper-2: #1a1a17;
    --ink: #f2efe9;
    --ink-2: #e8e4da;
    --ink-3: #f7f4ee;
    --ink-soft: #a49d92;
    --flare: #ff5236;
    --shade: #000;

    --ok: #3fbb92;
    --warn: #d69633;
    --bad: #ef6a55;
    --series-2: #8f887c;

    --glare: rgba(255, 255, 255, 0.3);
    --glare-soft: rgba(255, 255, 255, 0.14);
  }
}

/* Explicit choice always wins over the system preference. */
:root[data-theme="dark"] {
  color-scheme: dark;

  --paper: #121211;
  --paper-2: #1a1a17;
  --ink: #f2efe9;
  --ink-2: #e8e4da;
  --ink-3: #f7f4ee;
  --ink-soft: #a49d92;
  --flare: #ff5236;
  --shade: #000;

  --ok: #3fbb92;
  --warn: #d69633;
  --bad: #ef6a55;
  --series-2: #8f887c;

  --glare: rgba(255, 255, 255, 0.3);
  --glare-soft: rgba(255, 255, 255, 0.14);
}

/* ------------------------------------------------------------
   Surfaces that never invert.

   A phone screen, a printed card, a generated PDF and the
   page-builder parody in the compare slider are pictures of
   something else — not part of this page's surface. They keep the
   light-theme token values in both themes, so every paper/ink mix
   inside them still resolves against the surface they actually sit
   on. Without this, type inside a mock would follow the theme and
   walk off its own background.
   ------------------------------------------------------------ */

.iphone,
.mail,
.mock,
.sad,
.shot,
.sview,
.story-full,
.reel-full,
.phone-screen,
.receipt,
.src-photo,
.tpl,
.old,
.sheet,
canvas.sig {
  --paper: #f2efe9;
  --paper-2: #e8e4da;
  --ink: #121211;
  --ink-2: #1c1c1a;
  --ink-3: #232320;
  --ink-soft: #56534c;
  --shade: #121211;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Fraunces carries an optical-size axis — let the browser drive it. */
  font-optical-sizing: auto;
}

/* Large type wants to sit slightly narrower than text does. Same face,
   width axis pulled in a little, so headlines read tighter without
   losing the grotesque's proportions. */
.display,
.cta h2,
.section-head h2,
.coast h3,
.aside-display,
.q { font-stretch: 96%; }

::selection { background: var(--flare); color: var(--on-flare); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- Type utilities ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.display {
  font-size: clamp(2.9rem, 8.4vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}

.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--flare);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hr { height: 1px; background: var(--line); border: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--flare); border-color: var(--flare); color: var(--on-flare); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--flare { background: var(--flare); border-color: var(--flare); color: var(--on-flare); }
.btn--flare:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--onink { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--onink:hover { background: var(--flare); border-color: var(--flare); color: var(--on-flare); }

.btn--wide { width: 100%; justify-content: center; }

.arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.03em;
}
.wordmark b {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--paper);
  padding: 5px 7px 4px;
}
.wordmark:hover b { background: var(--flare); color: var(--on-flare); }
.wordmark { align-items: center; }
.logo-mark { display: block; width: 28px; height: 28px; flex: none; }
@media (prefers-reduced-motion: reduce) { .logo-mark { content: url("favicon-32.png"); } }

.tag {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flare);
  border: 1px solid currentColor;
  padding: 4px 7px 3px;
  margin-left: 4px;
  transform: translateY(-1px);
}

.head-nav {
  display: flex;
  gap: 34px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.head-nav a { position: relative; padding-block: 4px; color: var(--ink-soft); }
.head-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--flare);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.head-nav a:hover { color: var(--ink); }
.head-nav a:hover::after { transform: scaleX(1); }

.head-cta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.head-cta a { border-bottom: 2px solid var(--flare); padding-bottom: 3px; }
.head-cta a:hover { color: var(--flare); }

@media (max-width: 860px) { .head-nav { display: none; } }

/* ---------- Theme toggle ---------- */

.head-end { display: flex; align-items: center; gap: 16px; }

.theme-tog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 6px 9px 5px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color .2s ease, color .2s ease;
}
.theme-tog:hover { color: var(--ink); border-color: var(--ink); }
.theme-tog:focus-visible { outline: 2px solid var(--flare); outline-offset: 2px; }

/* Three stops: day on the left, system in the middle, night on the right. */
.theme-tog-dial {
  position: relative;
  display: block;
  width: 22px;
  height: 10px;
  border: 1px solid currentColor;
}
.theme-tog-dial i {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 6px;
  left: 7px;
  background: var(--flare);
  transition: left .24s cubic-bezier(.2, .8, .2, 1);
}
.theme-tog[data-mode="light"] .theme-tog-dial i { left: 1px; }
.theme-tog[data-mode="dark"] .theme-tog-dial i { left: 13px; }

.theme-tog-lab { min-width: 3ch; text-align: left; }

/* On the ink panel the toggle borrows paper for its outline. */
.split-aside .theme-tog { border-color: var(--on-ink-line); color: var(--on-ink-45); }
.split-aside .theme-tog:hover { border-color: var(--on-ink-70); color: var(--paper); }

@media (max-width: 520px) { .theme-tog-lab { display: none; } }

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 20px;
}
.skip:focus { left: 0; }

/* ---------- Hero ---------- */

.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }

/* The one place the width axis is allowed to move: the hero headline
   opens from condensed to its resting width as the page settles. */
@media (prefers-reduced-motion: no-preference) {
  .hero .display { animation: heroWidth 1.2s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes heroWidth {
  from { font-stretch: 82%; }
  to { font-stretch: 96%; }
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 5vw, 52px);
}
.pulse {
  width: 8px; height: 8px;
  background: var(--flare);
  border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--flare) 55%, transparent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } }

.hero-side { display: grid; gap: 26px; padding-bottom: 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.spec dt { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.16em; font-size: 10.5px; padding-top: 2px; }
.spec dd { text-align: right; }

/* ---------- Marquee ---------- */

.marquee {
  border-block: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 38s linear infinite;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-inline: 26px;
  white-space: nowrap;
}
.marquee-track span i { color: var(--flare); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 64px);
}
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

.section-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 18ch;
}
.section-head p { color: var(--ink-soft); margin-top: 16px; max-width: 52ch; }

/* ---------- Services index ---------- */

.index { border-top: 1px solid var(--line); }

.index-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1.15fr) 44px;
  gap: 20px;
  align-items: baseline;
  padding: clamp(22px, 3vw, 34px) clamp(10px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.index-row:hover { background: var(--ink); color: var(--paper); padding-left: clamp(18px, 3vw, 34px); }

.index-row .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.index-row:hover .num { color: var(--flare); }

.index-row h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  letter-spacing: -0.03em;
  font-weight: 600;
}
.index-row p { color: var(--ink-soft); font-size: 0.98rem; }
.index-row:hover p { color: color-mix(in srgb, var(--paper) 72%, transparent); }

.index-row .go {
  font-family: var(--mono);
  text-align: right;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
.index-row:hover .go { opacity: 1; transform: none; color: var(--flare); }

@media (max-width: 760px) {
  .index-row { grid-template-columns: 52px minmax(0, 1fr); gap: 6px 14px; }
  .index-row .go { display: none; }
  .index-row p { grid-column: 2; }
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step { background: var(--paper); padding: clamp(24px, 3vw, 38px); }
.section--tint .step { background: var(--paper-2); }
.step .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--flare);
  display: block;
  margin-bottom: 22px;
}
.step h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 10px; font-weight: 600; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat { background: var(--paper); padding: clamp(24px, 3vw, 40px); }
.section--tint .stat { background: var(--paper-2); }
.stat .n {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin-bottom: 14px;
}
.stat .n em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--flare); }
.stat .l {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footnote {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* ---------- Locations ---------- */

.coasts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 760px) { .coasts { grid-template-columns: 1fr; } }

.coast { background: var(--paper); padding: clamp(28px, 4vw, 52px); display: grid; gap: 18px; }
.coast--dark { background: var(--ink); color: var(--paper); }
.coast--dark .coast-desc { color: color-mix(in srgb, var(--paper) 66%, transparent); }

.coast h3 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.coast-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-top: 1px solid currentColor;
  padding-top: 14px;
  opacity: 0.72;
}
.clock { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.coast-desc { color: var(--ink-soft); max-width: 38ch; }

/* ---------- CTA block ---------- */

.cta {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 11vw, 150px) 0;
}
.cta h2 {
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 14ch;
}
.cta h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--flare); }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  padding-top: 28px;
}
.cta-row p { color: color-mix(in srgb, var(--paper) 66%, transparent); max-width: 42ch; }

/* ---------- Footer ---------- */

.site-foot { border-top: 1px solid var(--line); padding: 34px 0; }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.foot-inner a:hover { color: var(--flare); }

/* ---------- Live transcript demo ---------- */

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }

.terminal { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 50%, transparent);
}
.terminal-bar .live { display: flex; align-items: center; gap: 9px; color: var(--paper); }
.terminal-bar .live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--flare);
  animation: pulse 2.4s infinite;
}
.terminal-bar .timer { font-variant-numeric: tabular-nums; }

.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.tab {
  flex: 1 1 auto;
  background: transparent;
  border: 0;
  border-right: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  color: color-mix(in srgb, var(--paper) 45%, transparent);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 13px 10px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.tab:last-child { border-right: 0; }
.tab:hover { color: var(--paper); }
.tab.on { background: var(--flare); color: var(--on-flare); }

.transcript {
  padding: 22px 18px;
  min-height: 356px;
  display: none;
  flex-direction: column;
  gap: 13px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
}
.transcript.on { display: flex; }

.t-line {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.t-line.in { opacity: 1; transform: none; }
.t-line .who {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 40%, transparent);
  padding-top: 2px;
}
.t-line .said { color: color-mix(in srgb, var(--paper) 66%, transparent); }
.t-line--ai .who { color: var(--flare); }
.t-line--ai .said { color: var(--paper); }

.t-done {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}
.t-done span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--paper) 28%, transparent);
  padding: 6px 10px;
  opacity: 0;
  transition: opacity .5s ease;
}
.t-done span::before { content: "✓ "; color: var(--flare); }
.t-done.in span { opacity: 1; }

/* ---------- Capability board ---------- */

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.board-cell {
  background: var(--paper);
  padding: clamp(22px, 2.6vw, 34px);
  transition: background .22s ease, color .22s ease;
}
.section--tint .board-cell { background: var(--paper-2); }
.board-cell .k {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flare);
  margin-bottom: 14px;
}
.board-cell h3 { font-size: 1.2rem; letter-spacing: -0.025em; font-weight: 600; }
.board-cell ul { list-style: none; display: grid; gap: 9px; margin-top: 18px; }
.board-cell li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  font-size: 0.93rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.board-cell li::before { content: "→"; color: var(--flare); opacity: 0.55; }
.board-cell:hover { background: var(--ink); color: var(--paper); }
.board-cell:hover li { color: color-mix(in srgb, var(--paper) 70%, transparent); }

/* ---------- Modality strip ---------- */

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.mode { background: var(--paper); padding: clamp(20px, 2.4vw, 28px); }
.section--tint .mode { background: var(--paper-2); }
.mode b {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flare);
  margin-bottom: 14px;
}
.mode span { display: block; font-size: 1.25rem; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 8px; }
.mode p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- App screen mockup ---------- */

.screen { border: 1px solid var(--ink); background: var(--paper); overflow: hidden; }

.screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.screen-bar .dots { display: flex; gap: 6px; }
.screen-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--paper) 30%, transparent); }
.screen-bar .dots i:first-child { background: var(--flare); }

.screen-body { display: grid; grid-template-columns: 152px minmax(0, 1fr); }
@media (max-width: 700px) { .screen-body { grid-template-columns: 1fr; } .screen-side { display: none; } }

.screen-side { border-right: 1px solid var(--line); padding: 16px 0; display: grid; gap: 1px; align-content: start; }
.screen-side span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 9px 16px;
  border-left: 2px solid transparent;
}
.screen-side span.on { color: var(--ink); border-left-color: var(--flare); background: var(--paper-2); }

.screen-main { padding: 16px; display: grid; gap: 14px; min-width: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 6px 10px;
  color: var(--ink-soft);
}
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.kpi { background: var(--paper); padding: 14px; }
.kpi .l {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.kpi .v { display: block; font-size: 1.5rem; line-height: 1; letter-spacing: -0.04em; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi svg { display: block; }
.kpi .d {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  margin-top: 8px;
}
.d--up { color: var(--ok); }
.d--down { color: var(--bad); }

.charts { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 760px) { .charts { grid-template-columns: 1fr; } }

.panel { border: 1px solid var(--line); padding: 14px; min-width: 0; }
.panel h4 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
.panel .big { font-size: 1.35rem; letter-spacing: -0.035em; font-weight: 700; font-variant-numeric: tabular-nums; }
.panel .sub { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 10px; }

.legend {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.legend i { display: inline-block; width: 10px; height: 3px; margin-right: 6px; vertical-align: 3px; }

.scroll-x { overflow-x: auto; }

table.data { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
table.data th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 10px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr:hover td { background: var(--paper-2); }
table.data .right { text-align: right; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-good { color: var(--ok); }
.s-warn { color: var(--warn); }
.s-crit { color: var(--bad); }
.s-idle { color: var(--ink-soft); }

.tableview { margin-top: 12px; }
.tableview summary {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
}
.tableview summary:hover { color: var(--flare); }

.tip {
  position: fixed;
  z-index: 99;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  padding: 9px 11px;
  white-space: nowrap;
}
.tip.on { opacity: 1; }
.tip b { color: var(--flare); font-weight: 400; }

/* ---------- Inline contact block ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-grid .lede { margin-bottom: 26px; }

/* ---------- Split pages (login / request) ---------- */

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); min-height: 100vh; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; min-height: 0; } }

.split-aside {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  position: sticky;
  top: 0;
  height: 100vh;
}
@media (max-width: 900px) { .split-aside { position: static; height: auto; gap: 28px; } }

.split-aside .wordmark b { background: var(--paper); color: var(--ink); }
.split-aside .wordmark:hover b { background: var(--flare); color: var(--on-flare); }

.aside-display {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 15ch;
}
.aside-display em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--flare); }

.aside-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}
.aside-list li { list-style: none; display: flex; gap: 12px; }
.aside-list li::before { content: "→"; color: var(--flare); }

.aside-foot {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 45%, transparent);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.split-main {
  padding: clamp(40px, 6vw, 92px) clamp(22px, 5vw, 80px);
  display: flex;
  align-items: center;
}
.form-shell { width: 100%; max-width: 560px; margin: 0 auto; }
.form-shell--narrow { max-width: 420px; }

.form-shell h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 14px 0 12px;
}
.form-shell .sub { color: var(--ink-soft); margin-bottom: clamp(28px, 4vw, 42px); max-width: 46ch; }

/* ---------- Form controls ---------- */

.field { margin-bottom: 26px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; gap: 0; } }

label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.02rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
  transition: border-color .18s ease;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--ink) 32%, transparent); }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--flare); }
.field:focus-within label { color: var(--flare); }

textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 6px center, right 1px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 22px;
  cursor: pointer;
}

.form-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--ink-soft);
  border-left: 2px solid var(--flare);
  padding-left: 14px;
  margin-top: 30px;
}

.alt-link { margin-top: 26px; font-size: 0.95rem; color: var(--ink-soft); }
.alt-link a { border-bottom: 1px solid var(--flare); padding-bottom: 2px; color: var(--ink); }
.alt-link a:hover { color: var(--flare); }

.error {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-flare);
  background: var(--flare);
  padding: 10px 14px;
  margin-bottom: 22px;
}

/* Success state */
.success { display: none; }
.success .mark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flare);
  margin-bottom: 20px;
}
.success h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.success p { color: var(--ink-soft); margin-bottom: 32px; max-width: 44ch; }

/* ---------- Conversational flow (one question at a time) ---------- */

.flow { width: 100%; max-width: 580px; margin: 0 auto; }

.flow-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.flow-bar { position: relative; height: 2px; background: var(--line); margin-bottom: clamp(30px, 5vw, 52px); }
.flow-bar i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--flare);
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

.step { animation: stepIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.ack {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--flare);
  margin-bottom: 16px;
  text-wrap: balance;
}

.q {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
  margin-bottom: 12px;
}
/* When a greeting leads, it takes the display size and the question steps down. */
.ack + .q { font-size: clamp(1.35rem, 2.5vw, 1.85rem); letter-spacing: -0.03em; }

.q-hint { color: var(--ink-soft); margin-bottom: 30px; max-width: 44ch; }

.flow input, .flow textarea { font-size: clamp(1.05rem, 2vw, 1.3rem); padding: 12px 0; }
.flow textarea { min-height: 130px; }

.choices { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.choice {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 15px 16px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.choice .kk { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-soft); }
.choice .gg { font-family: var(--mono); text-align: right; opacity: 0; transition: opacity .16s ease; }
.choice:hover, .choice:focus-visible, .choice.sel { background: var(--ink); color: var(--paper); outline: none; }
.choice:hover .kk, .choice:focus-visible .kk, .choice.sel .kk { color: var(--flare); }
.choice:hover .gg, .choice:focus-visible .gg, .choice.sel .gg { opacity: 1; color: var(--flare); }

.flow-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

.ghost-link {
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ghost-link:hover { color: var(--flare); }

.enter-hint {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: auto;
}
.enter-hint b { font-weight: 400; border: 1px solid var(--line); padding: 3px 6px; margin-right: 4px; }
@media (max-width: 560px) { .enter-hint { display: none; } }

.flow-error {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-flare);
  background: var(--flare);
  padding: 8px 12px;
  margin-top: 16px;
}

/* Review list */
.review { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 8px; }
.review-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  background: var(--paper);
  padding: 14px 16px;
}
@media (max-width: 520px) { .review-row { grid-template-columns: 1fr auto; } .review-row dt { grid-column: 1 / -1; } }
.review-row dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.review-row dd { font-size: 0.98rem; }
.review-row button {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.review-row button:hover { color: var(--flare); }

/* Answers echoed in the ink panel */
.summary { display: grid; gap: 0; margin-top: 26px; }
.summary div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  animation: stepIn .4s ease;
}
.summary dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 45%, transparent);
}
.summary dd { font-size: 0.95rem; color: var(--paper); }

/* ------------------------------------------------------------
   Cross-document view transitions.

   These are separate HTML files with no framework between them.
   Naming the header, the footer and the ink panel holds them
   still across the navigation while the body of the page changes
   underneath — so index → marketing reads as one document turning
   a page rather than two documents swapping.

   Browsers without support ignore the whole block and navigate
   normally. Nothing here is load-bearing.
   ------------------------------------------------------------ */

@view-transition { navigation: auto; }

/* Held in place across the navigation. */
.site-head { view-transition-name: site-head; }
.site-foot { view-transition-name: site-foot; }
.split-aside { view-transition-name: split-aside; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: vtOut .26s cubic-bezier(.4, 0, 1, 1) both;
  }
  ::view-transition-new(root) {
    animation: vtIn .44s cubic-bezier(.16, 1, .3, 1) both;
  }
  /* The ink panel on the form pages slides rather than fades. */
  ::view-transition-old(split-aside),
  ::view-transition-new(split-aside) {
    animation-duration: .44s;
    animation-timing-function: cubic-bezier(.16, 1, .3, 1);
  }
}

@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }

/* A theme flip shouldn't cross-fade the whole document. */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .pulse { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- The footer's own measurements ----------
   Populated by app.js from the Performance API. Hidden until it has
   something true to say, so it never shows a row of dashes. */

.vitals {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  width: 100%;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.vitals b { font-weight: 400; color: var(--flare); margin-right: 6px; }
.split-aside .vitals { border-color: var(--on-ink-line); color: var(--on-ink-45); }
