/* Entune website. Tokens first; everything else reads var(--…). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0f0e17; --bg2: #15131f; --bg3: #1a1827;
  --line: #24213a; --line2: #302d48;
  --fg: #f3f1fb; --fg2: #c9c4e6; --fg3: #8f8aad;
  --accent: #a99cf2; --accent-ink: #0f0e17;
  --strike: #5e5a7a; --tab-on: #2c2946;
  --ok: #8fd4a6; --ok-bg: #15291d; --warn: #f0b36b; --warn-bg: #2d2114;
  --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  --card-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  --field-op: .2;
  --glass: rgba(255, 255, 255, .045);
  --tab-shadow: none;
  --chart-ok: #8676e0; --chart-bad: #c4843c;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(48px, 7vw, 96px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #faf9f6; --bg2: #ffffff; --bg3: #ecebf1;
  --line: #dedce6; --line2: #d9d7e3;
  --fg: #1c1a24; --fg2: #4a4757; --fg3: #6f6c7d;
  --accent: #6c5cd8; --accent-ink: #ffffff;
  --strike: #a4a1b4; --tab-on: #ffffff;
  --ok: #2f7d4f; --ok-bg: #e6f4ea; --warn: #8a4b00; --warn-bg: #fff1e0;
  --shadow: 0 10px 30px rgba(28, 26, 36, .16);
  --card-shadow: 0 24px 60px rgba(28, 26, 36, .16);
  --field-op: .14;
  --glass: rgba(255, 255, 255, .6);
  --tab-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  --chart-ok: #6c5cd8; --chart-bad: #c77a1e;
  color-scheme: light;
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-anchor: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .78; }
button { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  padding: 8px 14px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1168px; margin: 0 auto; width: 100%; }

.eyebrow {
  font-size: 13px; font-weight: 600; line-height: 1.4;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
h1 {
  font-weight: 600; font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.06; letter-spacing: -.025em; text-wrap: balance;
}
h2 {
  font-weight: 600; font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1; letter-spacing: -.02em; text-wrap: balance;
}
.h3 { font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.lead { font-size: 17px; line-height: 1.55; color: var(--fg2); text-wrap: pretty; }
.body { font-size: 15px; line-height: 1.55; color: var(--fg2); }
.small { font-size: 15px; line-height: 1.55; color: var(--fg2); max-width: 820px; text-wrap: pretty; }
.muted { color: var(--fg3); }
.note { font-size: 14px; color: var(--fg3); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg3); }
.measure { max-width: 720px; }
strong { color: var(--fg); font-weight: 600; }
a.inline { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.code { font: 500 14px var(--mono); color: var(--fg); overflow-wrap: anywhere; }

.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack-xs { display: flex; flex-direction: column; gap: 8px; }
.split {
  display: grid; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(32px, 5vw, 64px);
}
.split--center { align-items: center; }

/* Header */

.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 1280px; margin: 0 auto; padding: 22px var(--gutter);
  position: relative; z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--fg); }
.brand--small { gap: 8px; font-size: 15px; }
.brand .mark { width: auto; height: 30px; }
.brand--small .mark { height: 22px; }
:root[data-theme="light"] .mark--dark, :root:not([data-theme="light"]) .mark--light { display: none; }

.site-nav {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px clamp(14px, 2.5vw, 28px);
  font-size: 15px; font-weight: 500; color: var(--fg2);
}
.theme-toggle {
  border: 1px solid var(--line2); background: transparent; color: var(--fg2);
  cursor: pointer; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
}
.button-outline { padding: 9px 16px; border: 1px solid var(--accent); border-radius: 8px; color: var(--fg); }

/* Hero */

.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--header-h, 88px));
  min-height: calc(100svh - var(--header-h, 88px));
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(40px, 5vw, 64px);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(32px, 5vw, 64px);
}
.hero__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero__lead { margin-top: -6px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--fg2); text-wrap: pretty; }

.field {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  perspective: 900px; perspective-origin: 50% 35%;
}
.field__row {
  position: absolute; left: -15%; right: -15%;
  display: flex; align-items: flex-end; justify-content: center; gap: 16px;
}
.field__row i {
  flex: 0 0 auto; width: 14px; border-radius: 7px; background: var(--accent);
  transform-origin: bottom;
  animation: level var(--d) ease-in-out var(--o) infinite;
}
.field.is-paused i, .is-paused .bars i { animation-play-state: paused; }

@keyframes level { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.claims { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.claims__track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 2px calc(var(--gutter) + 96px) 6px 0;
  margin-right: calc(-1 * var(--gutter));
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent);
}
.claims__track::-webkit-scrollbar { display: none; }
.claim {
  flex: 0 0 min(78%, 300px); scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 20px 22px; border-radius: 14px; border: 1px solid var(--line2);
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 16px; line-height: 1.5; text-wrap: pretty;
}
.claim__label { font: 500 12px var(--mono); letter-spacing: .04em; color: var(--accent); }
.claims__nav { display: flex; gap: 6px; }
.round-button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2);
  background: transparent; color: var(--fg2); cursor: pointer; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

.get { display: flex; flex-direction: column; gap: 12px; }
.tabs { display: flex; gap: 2px; padding: 4px; border-radius: 10px; background: var(--bg3); align-self: flex-start; }
.tabs button {
  border: 0; cursor: pointer; padding: 8px 14px; border-radius: 8px;
  font-weight: 500; font-size: 14px; line-height: 20px; background: transparent; color: var(--fg3);
}
.tabs button[aria-pressed="true"] { background: var(--tab-on); color: var(--fg); box-shadow: var(--tab-shadow); }
.command {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 8px 8px 8px 18px; min-height: 52px;
  border: 1px solid var(--line2); border-radius: 12px; background: var(--bg2);
}
.command code { font: 500 15px var(--mono); overflow-wrap: anywhere; }
.command__prompt { color: var(--accent); }
.copy {
  border: 0; cursor: pointer; padding: 8px 14px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 13px; min-width: 66px;
}

.tour { position: relative; min-width: 0; }
.tour__frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #0f0e17;
  border-radius: 16px; border: 1px solid var(--line2); box-shadow: var(--shadow);
}
.tour video { width: 100%; height: 100%; object-fit: cover; }
.tour__pill { position: absolute; left: 18px; bottom: 64px; transition: opacity .3s; }
.tour.is-playing .tour__pill { opacity: 0; }
.tour figcaption { margin-top: 12px; font: 500 12px var(--mono); letter-spacing: .04em; color: var(--fg3); }

.pill {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: var(--bg2); border: 1px solid var(--line2); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 500;
}
.bars { display: flex; align-items: center; gap: 3px; height: 20px; }
.bars i { width: 4px; border-radius: 2px; background: var(--accent); animation: level 1s ease-in-out infinite; }
.bars i:nth-child(1), .bars i:nth-child(5) { height: 8px; }
.bars i:nth-child(2), .bars i:nth-child(4) { height: 14px; }
.bars i:nth-child(3) { height: 20px; }
.bars i:nth-child(1) { animation-duration: .9s; }
.bars i:nth-child(2) { animation-duration: 1.03s; }
.bars i:nth-child(3) { animation-duration: 1.16s; }
.bars i:nth-child(4) { animation-duration: 1.29s; }
.bars i:nth-child(5) { animation-duration: 1.42s; }

/* Feature story. Without .is-3d (no JavaScript, reduced motion, short
   screens) the cards are a plain grid. With it, they wind round the audio column. */

.story { position: relative; border-top: 1px solid var(--line); padding: var(--section-y) var(--gutter); }
.story__head { display: flex; flex-direction: column; gap: 10px; }
.story__head h2 { max-width: 620px; }
.story__stage { position: relative; margin-top: clamp(28px, 4vw, 40px); }

.features {
  max-width: 1168px; margin: 0 auto;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.feature {
  display: flex; flex-direction: column; gap: 16px;
  padding: 18px 20px 20px; border-radius: 16px;
  border: 1px solid var(--line2); background: var(--bg2);
  font-size: 13.5px; line-height: 1.4; overflow: hidden;
}
.feature__scene { display: flex; flex-direction: column; justify-content: center; gap: 7px; min-height: 128px; min-width: 0; }
.feature__text { display: flex; flex-direction: column; gap: 6px; }
.feature__num { font: 500 11px var(--mono); letter-spacing: .06em; color: var(--fg3); }
.feature h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.feature p { font-size: 15px; line-height: 1.5; color: var(--fg2); text-wrap: pretty; }

.signal {
  display: flex; align-items: center; gap: 16px; width: max-content; margin: 0 auto 28px;
  padding: 14px 24px 14px 18px; border-radius: 999px;
  background: var(--bg2); border: 1px solid var(--line2); box-shadow: var(--shadow);
  font-size: 15px; font-weight: 500; white-space: nowrap;
}
.signal__bars { display: flex; align-items: center; gap: 4px; height: 44px; }
.signal__bars i { width: 5px; border-radius: 3px; background: var(--accent); transform-origin: center; animation: level 1.1s ease-in-out infinite; }
.signal__bars i:nth-child(1), .signal__bars i:nth-child(9) { height: 12px; animation-duration: .9s; }
.signal__bars i:nth-child(2), .signal__bars i:nth-child(8) { height: 20px; animation-duration: 1.2s; }
.signal__bars i:nth-child(3), .signal__bars i:nth-child(7) { height: 30px; animation-duration: 1s; }
.signal__bars i:nth-child(4), .signal__bars i:nth-child(6) { height: 38px; animation-duration: 1.3s; }
.signal__bars i:nth-child(5) { height: 44px; animation-duration: 1.1s; }
.signal__label { min-width: 11ch; }

.story.is-3d { padding: 0; height: calc(100svh + var(--steps, 8) * 72svh); }
.story.is-3d.is-passed { height: 100vh; height: 100svh; }
.is-3d .story__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(20px, 4vh, 40px) var(--gutter) clamp(16px, 3vh, 28px);
}
.is-3d .story__stage {
  flex: 1; min-height: 0; margin: 0 calc(-1 * var(--gutter));
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 56px);
  mask-image: linear-gradient(to bottom, transparent, #000 56px);
}
.is-3d .features { position: absolute; inset: 0; display: block; max-width: none; }
.is-3d .feature {
  position: absolute; left: 50%; top: var(--cy, 50%);
  width: var(--cw, 420px); height: var(--ch, auto);
  margin-left: calc(var(--cw, 420px) / -2); margin-top: calc(var(--ch, 340px) / -2);
  box-shadow: var(--card-shadow); cursor: pointer;
  will-change: transform, opacity; backface-visibility: hidden;
}
.is-3d .feature.is-active { cursor: default; }
.is-3d .feature__scene { flex: 1; }
.is-3d .signal {
  position: absolute; left: 50%; top: 0; margin: 0;
  transform: translate(-50%, -50%); z-index: 101;
  padding: 9px 18px 9px 13px; gap: 12px; font-size: 14px;
}
.is-3d .signal__bars { height: 24px; gap: 3px; }
.is-3d .signal__bars i { width: 4px; animation: none; }
.is-3d .signal__bars i:nth-child(1), .is-3d .signal__bars i:nth-child(9) { height: 7px; }
.is-3d .signal__bars i:nth-child(2), .is-3d .signal__bars i:nth-child(8) { height: 11px; }
.is-3d .signal__bars i:nth-child(3), .is-3d .signal__bars i:nth-child(7) { height: 16px; }
.is-3d .signal__bars i:nth-child(4), .is-3d .signal__bars i:nth-child(6) { height: 20px; }
.is-3d .signal__bars i:nth-child(5) { height: 24px; }
.column { display: none; }
.is-3d .column { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 100; }
.is-3d .column::before {
  content: ''; position: absolute; left: 50%; top: var(--cy, 50%);
  width: 2px; height: var(--axis, 0); margin-left: -1px; transform: translateY(-50%);
  border-radius: 1px; background: var(--accent); opacity: .55;
}
.column i {
  position: absolute; left: 50%; top: var(--cy, 50%); border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  will-change: transform;
}

.story__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative; z-index: 150; padding-top: 12px;
}
.story__hint { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg3); }
.story__dots { display: flex; align-items: center; gap: 2px; }
.story__dots button {
  width: 22px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.story__dots button::before {
  content: ''; width: 6px; height: 6px; border-radius: 3px; background: var(--line2);
  transition: width .3s, background-color .3s;
}
.story__dots button[aria-current="true"]::before { width: 18px; background: var(--accent); }
.story__count { font: 500 12px var(--mono); letter-spacing: .08em; color: var(--fg3); white-space: nowrap; }
.story__count b { font: 600 clamp(28px, 4vh, 44px)/1 var(--sans); letter-spacing: -.03em; color: var(--accent); margin-right: 4px; }
@media (max-width: 520px) {
  .story__hint { display: none; }
  .story__dots button { width: 16px; }
}

/* Feature scenes. The resting state is the finished demonstration; in
   the helix, cards away from the front rewind it and replay it when they arrive. */

.sentence { font-size: 19px; font-weight: 500; line-height: 1.3; }
.sentence--muted { color: var(--fg2); font-size: 18px; }
.scene-fillers .sentence { font-size: 18px; line-height: 1.4; }
.scene-correct s, .scene-fillers s, .example s {
  color: var(--strike); text-decoration: line-through; text-decoration-color: var(--strike);
}
.scene-correct b, .example b { display: inline-block; font-weight: inherit; color: var(--accent); }
.kept { text-decoration: underline dotted var(--strike); text-underline-offset: 5px; }
.scene-correct .tag { vertical-align: 3px; margin-left: 4px; }

.row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg);
  min-width: 0;
}
.row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__meta { color: var(--fg3); font-size: 12px; white-space: nowrap; }
.row__link { color: var(--accent); font-size: 12px; }
.row__mono { font: 500 12px var(--mono); color: var(--fg3); }
.row--blur { filter: blur(4px); color: var(--fg2); }

.tag {
  display: inline-block; font-size: 12px; font-weight: 500; line-height: 1.4;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}
.tag--ok { color: var(--ok); background: var(--ok-bg); }
.tag--warn { color: var(--warn); background: var(--warn-bg); white-space: normal; text-align: right; max-width: 190px; }
.chip { font-size: 12px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line2); white-space: nowrap; }
.chip--accent { font-weight: 600; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip--file { font: 500 11px var(--mono); border: 0; background: var(--bg3); color: var(--fg2); padding: 3px 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.progress { width: 96px; height: 6px; border-radius: 3px; background: var(--bg3); overflow: hidden; flex: 0 0 auto; }
.progress__fill { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--accent); }

.scene-format { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; font-size: 12.5px; color: var(--fg2); }
.box { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.box--out { display: flex; flex-direction: column; gap: 1px; color: var(--fg); }

.dropzone {
  min-height: 120px; border: 1.5px dashed var(--line2); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--fg3); padding: 12px; text-align: center;
}
.files { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

.scene-pill { align-items: flex-start; gap: 10px; }
.pill--demo { box-shadow: none; padding: 7px 14px 7px 11px; gap: 10px; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pill__dot--ok { background: var(--ok); }

.is-3d .feature s { transition: color .5s .25s, text-decoration-color .5s .25s; }
.is-3d .feature b, .is-3d .feature .step, .is-3d .scene-correct .tag {
  transition: opacity .45s calc(var(--i, 1) * 200ms + 350ms), transform .45s calc(var(--i, 1) * 200ms + 350ms);
}
.is-3d .progress__fill { transition: width 1.4s .35s cubic-bezier(.3, .6, .3, 1); }
.is-3d .row--blur { transition: filter .6s .4s; }

.is-3d .feature:not(.is-active) s { color: inherit; text-decoration-color: transparent; }
.is-3d .feature:not(.is-active) b,
.is-3d .feature:not(.is-active) .step,
.is-3d .feature:not(.is-active) .scene-correct .tag { opacity: 0; transform: translateY(6px); transition-delay: 0s; }
.is-3d .feature:not(.is-active) .chip--file { transform: translateY(-14px); }
.is-3d .feature:not(.is-active) .progress__fill { width: 0; transition-delay: 0s; }
.is-3d .feature:not(.is-active) .row--blur { filter: blur(0); transition-delay: 0s; }
.is-3d .feature:not(.is-active) * { transition-duration: .2s; }

/* Sections */

.section { border-top: 1px solid var(--line); padding: var(--section-y) var(--gutter); }
.section--alt { background: var(--bg2); }

.panel { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line2); border-radius: 16px; background: var(--bg); }
.example__note { font-size: 14px; line-height: 1.5; color: var(--fg3); }

/* Live decision demo */
.decide { display: flex; flex-direction: column; gap: 18px; transition: opacity .35s; }
.decide.is-swapping { opacity: 0; }
.decide__head { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--fg2); }
.decide__entry { margin-left: auto; font: 500 12px var(--mono); color: var(--fg3); }
.bars--small { height: 14px; gap: 2px; }
.bars--small i { width: 3px; }
.bars--small i:nth-child(1), .bars--small i:nth-child(5) { height: 5px; }
.bars--small i:nth-child(2), .bars--small i:nth-child(4) { height: 9px; }
.bars--small i:nth-child(3) { height: 14px; }
.decision { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.decision__text { font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; letter-spacing: -.015em; min-height: 1.3em; }
.match { border-radius: 5px; padding: 0 2px; margin: 0 -2px; transition: background-color .3s, box-shadow .3s; }
.match s { text-decoration-line: line-through; text-decoration-color: transparent; color: inherit; transition: color .4s, text-decoration-color .4s; }
.match b {
  display: inline-block; max-width: 0; opacity: 0; overflow: hidden; vertical-align: bottom; white-space: nowrap;
  font-weight: inherit; color: var(--accent); transition: max-width .5s, opacity .4s .1s, margin .5s;
}
.decision[data-state="matched"] .match, .decision[data-state="choosing"] .match {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.decision[data-state="replaced"] .match s { color: var(--strike); text-decoration-color: var(--strike); }
.decision[data-state="replaced"] .match b { max-width: 7em; opacity: 1; margin-left: .25em; }
.decision[data-state="kept"] .match s { text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: var(--strike); text-underline-offset: 5px; }
.decision__choice { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 26px; font-size: 13px; }
.choice {
  font: 500 12px var(--mono); padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line2); color: var(--fg2);
  transition: opacity .3s, background-color .3s, color .3s, border-color .3s;
}
.decision__verdict { margin-left: 4px; color: var(--fg3); transition: opacity .3s; }
.decision[data-state="idle"] .choice,
.decision[data-state="idle"] .decision__verdict,
.decision[data-state="matched"] .decision__verdict,
.decision[data-state="choosing"] .decision__verdict { opacity: 0; }
.decision[data-state="matched"] .choice { opacity: 1; }
.decision[data-state="choosing"] .choice { animation: weigh .5s ease-in-out infinite alternate; }
.decision[data-state="choosing"] .choice + .choice { animation-delay: .25s; }
.decision[data-state="replaced"] .choice.is-chosen, .decision[data-state="kept"] .choice.is-chosen { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.decision[data-state="replaced"] .choice:not(.is-chosen), .decision[data-state="kept"] .choice:not(.is-chosen) { opacity: .4; }
@keyframes weigh { from { border-color: var(--line2); } to { border-color: var(--accent); } }

.table-scroll { position: relative; overflow-x: auto; }
.results { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; border-top: 1px solid var(--line2); }
.results th, .results td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: right; font-weight: 400; }
.results thead th { padding: 12px 0; color: var(--fg3); }
.results th:first-child { text-align: left; width: 34%; }
.results td { font-family: var(--mono); }
.results tbody tr:nth-child(2) td:nth-child(5) { color: var(--accent); font-weight: 600; }
.results th:first-child { width: 30%; }
.results .results__barcol, .results .results__bar { width: 34%; padding-left: 20px; padding-right: 8px; }
.bar { display: flex; gap: 2px; height: 14px; }
.seg { display: block; height: 100%; border-radius: 4px; transition: width 1s cubic-bezier(.2, .7, .3, 1) calc(var(--i, 0) * 140ms + 200ms); }
.seg--ok { width: calc(var(--n-ok) / 121 * 100%); background: var(--chart-ok); }
.seg--bad { width: calc(var(--n-bad) / 121 * 100%); background: var(--chart-bad); }
.js [data-reveal]:not(.is-in) .seg { width: 0; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--fg2); }
.legend__key { width: 12px; height: 12px; border-radius: 3px; }
.legend__key--ok { background: var(--chart-ok); }
.legend__key--bad { background: var(--chart-bad); margin-left: 12px; }

/* Three jobs: speech and the dictionary both feed the decision step. */
.jobs { display: grid; grid-template-columns: 1fr; gap: 64px; }
.job {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px;
  border: 1px solid var(--line2); border-radius: 16px; background: var(--bg2);
  transition: border-color .3s, transform .3s;
}
.job:hover { border-color: var(--accent); transform: translateY(-2px); }
.job--center { border-color: color-mix(in srgb, var(--accent) 55%, var(--line2)); }
.job__num { font: 500 12px var(--mono); letter-spacing: .04em; color: var(--accent); }
.job h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.job__when { font-size: 14px; color: var(--fg3); margin-bottom: 8px; }
.job__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.job__kind { flex: 0 0 52px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fg3); }
.tech { font-size: 14px; line-height: 1.4; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg); }
.tech small { font-size: 12px; color: var(--fg3); margin-left: 3px; }
.tech--start { border-color: var(--accent); }
.tech--start::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.job__link {
  position: absolute; left: 50%; width: 2px; height: 64px; margin-left: -1px;
  background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 14px);
  background-size: 2px 14px; animation: flow-down .7s linear infinite;
}
.job__link--in { bottom: 100%; }
.job__link--entries { top: 100%; animation-direction: reverse; }
.job__link span {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font: 500 11px var(--mono); letter-spacing: .04em; color: var(--fg3); white-space: nowrap;
}
@keyframes flow-down { to { background-position: 0 14px; } }
@keyframes flow-right { to { background-position: 14px 0; } }
@media (min-width: 960px) {
  .jobs { grid-template-columns: repeat(3, 1fr); gap: 96px; }
  .job__link {
    top: 50%; bottom: auto; left: auto; width: 96px; height: 2px; margin: -1px 0 0;
    background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 14px);
    background-size: 14px 2px; animation-name: flow-right;
  }
  .job__link--in { right: 100%; }
  .job__link--entries { left: 100%; }
  .job__link span { left: 50%; top: -22px; transform: translateX(-50%); }
}
.jobs.is-paused .job__link { animation-play-state: paused; }

/* Dictionary story */
.chatgpt { display: flex; flex-direction: column; gap: 10px; border-color: color-mix(in srgb, var(--accent) 55%, var(--line2)); }
.chatgpt__title { font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.learn { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.learn__step {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px;
  border: 1px solid var(--line2); border-radius: 16px; background: var(--bg);
  transition: opacity .6s calc(var(--i) * 320ms), transform .6s calc(var(--i) * 320ms);
}
.learn__step h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.learn__step > p:not(.learn__visual) { font-size: 15px; line-height: 1.5; color: var(--fg2); }
.learn__visual { margin-top: auto; padding-top: 10px; }
.learn__visual.files { justify-content: flex-start; }
.learn__heard { font: 500 13px/1.7 var(--mono); color: var(--fg2); }
.learn__heard u { text-decoration: underline wavy var(--chart-bad); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.learn__entries { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.learn__entries span { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); transition: opacity .4s, transform .4s; }
.learn__entries i { font: 500 12px var(--mono); font-style: normal; color: var(--fg3); }
.learn__entries span:nth-child(1) { transition-delay: 1.1s; }
.learn__entries span:nth-child(2) { transition-delay: 1.3s; }
.learn__entries span:nth-child(3) { transition-delay: 1.5s; }
.learn__label { display: block; margin-bottom: 4px; font: 600 11px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--fg3); }
.learn__entries i { margin-left: 6px; }
.learn__fixed { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--fg); }
.learn__kept { color: var(--fg2); }
.learn__kept .tag { margin-left: 4px; vertical-align: 1px; }
.install__after { margin-top: 24px; }
.js [data-reveal]:not(.is-in) .learn__step { opacity: 0; transform: translateY(16px); }
.js [data-reveal]:not(.is-in) .learn__entries span { opacity: 0; transform: translateX(-6px); }
@media (min-width: 1040px) {
  .learn__step:not(:last-child)::after {
    content: '→'; position: absolute; right: -22px; top: 22px; color: var(--accent); font-size: 16px;
  }
}

.steps { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 22px 24px; background: var(--bg); }
.steps--alt li { background: var(--bg2); }
.steps__num { font: 500 14px var(--mono); color: var(--accent); margin-top: 3px; }
.steps h3 { font-size: 17px; font-weight: 600; }
.steps p { font-size: 15px; line-height: 1.5; color: var(--fg2); margin-top: 4px; }

.switches { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.switches li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; background: var(--bg2); }
.switches li > div { display: flex; flex-direction: column; gap: 2px; }
.switches__name { font-size: 16px; font-weight: 500; }
.switches__hint { font-size: 14px; color: var(--fg3); }
.switch {
  position: relative; flex: 0 0 auto; width: 36px; height: 20px; padding: 0; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--line2); background: var(--bg3);
  transition: background-color .2s, border-color .2s;
}
.switch::after {
  content: ''; position: absolute; top: 1px; left: 1px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--fg3); transition: transform .2s, background-color .2s;
}
.switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(16px); background: var(--accent-ink); }

.board { background: var(--bg); border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; }
.board__head {
  display: flex; justify-content: space-between; gap: 12px; padding: 16px 22px;
  border-bottom: 1px solid var(--line); font-size: 13px; color: var(--fg3);
}
.board__head span:first-child { font-weight: 600; color: var(--fg); }
.board__row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.board__row > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.board__name { font-weight: 600; font-size: 15px; }
.board__hint { font-size: 13px; color: var(--fg3); }
.board__summary { padding: 16px 22px 6px; background: var(--bg3); font-size: 14px; line-height: 1.45; font-weight: 500; }
.board__foot { padding: 0 22px 16px; background: var(--bg3); font-size: 13px; line-height: 1.45; color: var(--fg3); }
.segment { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 9px; background: var(--bg3); align-self: flex-start; }
.segment button {
  border: 0; cursor: pointer; padding: 6px 12px; border-radius: 7px;
  font-size: 13px; font-weight: 500; background: transparent; color: var(--fg3);
}
.segment button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 40px var(--gutter) 56px; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; font-size: 14px; color: var(--fg3); }
.site-footer__cols { display: flex; gap: 48px; flex-wrap: wrap; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__title { font-weight: 600; color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
