/* =========================================================
   AMIRUS · site.css
   Concept: "Commissioned": the site as an engineering handover record.
   ========================================================= */

@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/onest.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: 'Parkinsans'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/parkinsans.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 {
  /* Color (OKLCH). Indigo leads, Coral marks things in flight. */
  --cloud: oklch(0.975 0.004 277);
  --sheet: oklch(1 0 0);
  --ink: oklch(0.205 0.012 270);
  --ink-2: oklch(0.40 0.016 270);
  --ink-3: oklch(0.52 0.018 270);
  --rule: oklch(0.905 0.008 277);
  --rule-2: oklch(0.86 0.012 277);
  --indigo: oklch(0.51 0.23 277);
  --indigo-hi: oklch(0.45 0.22 277);
  --indigo-deep: oklch(0.36 0.17 277);
  --indigo-wash: oklch(0.95 0.025 280);
  --iris: oklch(0.68 0.14 282);
  --coral: oklch(0.70 0.19 37);
  --coral-ink: oklch(0.55 0.19 35);
  --coral-wash: oklch(0.95 0.035 40);
  --on-indigo: oklch(0.985 0.01 280);
  --on-indigo-2: oklch(0.93 0.035 280);

  /* Type */
  --f-display: "Parkinsans", "Poppins", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Onest", ui-sans-serif, system-ui, sans-serif;
  --f-figures: "Onest", ui-sans-serif, system-ui, sans-serif; /* figures set tabular in the text face */
  --f-code: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; /* taste-skill-ignore: real code block */

  --t-h1: clamp(2.5rem, 1rem + 4.4vw, 4.75rem);
  --t-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --t-h3: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem);
  --t-lede: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);

  /* Space */
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(88px, 7vw + 48px, 168px);
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Z scale */
  --z-base: 1;
  --z-sticky: 20;
  --z-nav: 40;
  --z-menu: 50;
  --z-skip: 90;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--indigo); color: var(--on-indigo); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: var(--z-skip); background: var(--ink); color: var(--cloud); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.mono { font-family: var(--f-figures); font-size: 0.875rem; letter-spacing: 0; font-variant-numeric: tabular-nums; }

.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--ink-2);
  padding: 3px 10px 3px 8px;
  background: oklch(0.945 0.006 277);
  border-radius: 999px;
  white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--sheet); --fg: var(--ink); --bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  font-weight: 500;
  font-size: 0.975rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--primary { --bg: var(--indigo); --fg: var(--on-indigo); --bd: var(--indigo); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.025rem; }
.btn__arrow { display: inline-block; transition: transform .25s var(--ease-out); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  transition: transform .22s var(--ease-out), background-color .3s;
}
.nav.is-scrolled { background: var(--cloud); }
.nav.is-hidden { transform: translateY(-100%); transition-duration: .35s; }
.nav:focus-within { transform: none; }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav__logo img { width: 124px; height: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  text-decoration: none; color: var(--ink-2); font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav__links a.is-current { color: var(--ink); }
.nav__cta { min-height: 42px; }
.nav__menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; }
.nav__burger, .nav__burger::before { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; margin: auto; transition: transform .3s var(--ease-expo); }
.nav__burger { position: relative; transform: translateY(-3px); }
.nav__burger::before { content: ""; position: absolute; left: 0; top: 7px; }
.nav__menu[aria-expanded="true"] .nav__burger { transform: translateY(1px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__burger::before { transform: translateY(-7px) rotate(-90deg); }
.menu {
  position: fixed; inset: 72px 0 auto 0; z-index: var(--z-menu);
  background: var(--cloud);
  padding: 12px var(--gutter) 28px;
  box-shadow: 0 24px 40px -24px oklch(0.2 0.02 270 / .25); /* taste-skill-ignore: overlay menu */
  display: grid; gap: 2px;
}
.menu[hidden] { display: none; }
.menu a:not(.btn) { padding: 14px 4px; font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; text-decoration: none; }
.menu .btn { margin-top: 18px; }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(112px, 12vh + 40px, 168px);
  padding-bottom: clamp(40px, 5vw, 80px);
  isolation: isolate;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-h1);
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.hero__title .line { padding-bottom: .06em; }
.intro-pending :is(.hero__copy, .plot) { visibility: hidden; }
.h2 .line { padding-bottom: .05em; }
.hero__lead { margin-top: 28px; font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.hero__scope { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__scope li {
  font-size: .9rem; font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sheet);
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof { margin-top: 28px; font-size: 1rem; color: var(--ink-2); max-width: 48ch; }
.hero__proof strong { color: var(--ink); font-weight: 600; }

.plot {
  background: var(--sheet);
  border-radius: var(--r-lg);
  padding: 18px 18px 14px;
}
.plot__head, .cluster__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 4px 10px; color: var(--ink-2); border-bottom: 1px dashed var(--rule-2); } /* taste-skill-ignore: interface fragment (data-ui) */
.plot__svg { width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.plot__wires path { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; opacity: .8; }
.node rect { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.6; }
.node text, .cluster__lb text, .pod text { font-family: var(--f-body); font-size: 16px; font-weight: 500; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.node text { dominant-baseline: auto; }
.node--key rect { fill: var(--indigo); stroke: var(--indigo); }
.node--key text { fill: var(--on-indigo); }
.node--soft rect { fill: var(--indigo-wash); stroke: var(--indigo); }
.node--store rect { stroke-dasharray: 4 4; }
.check path { fill: none; stroke: var(--indigo); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.check text { font-family: var(--f-body); font-size: 15px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.plot__packets use { fill: var(--coral); }
.plot__foot { display: flex; align-items: center; gap: 14px; padding: 10px 4px 0; border-top: 1px dashed var(--rule-2); margin-top: 6px; } /* taste-skill-ignore: interface fragment (data-ui) */
.plot__label { font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.plot__sign { width: 150px; height: 40px; flex: none; }
.plot__sign path { fill: none; stroke: var(--indigo); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plot__meta { margin-left: auto; color: var(--ink-3); white-space: nowrap; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .plot { padding: 12px 10px 10px; border-radius: var(--r); }
  .plot__meta { display: none; }
  .plot__sign { width: 120px; }
}

/* ---------- Scope ---------- */
.scope { padding-block: calc(var(--sec) * .8) calc(var(--sec) * .6); }
.scope__title { max-width: 18ch; }
.scope__list { margin-top: clamp(40px, 5vw, 72px); }
.scope__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .9fr);
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2.4vw, 32px);
  margin-inline: calc(clamp(16px, 2.4vw, 32px) * -1);
  border-radius: var(--r);
}
.scope__row:nth-child(odd) { background: var(--sheet); }
.scope__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; }
.scope__what { color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.scope__get { font-size: 1rem; }
.scope__get span { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: 4px; }
@media (max-width: 860px) {
  .scope__row { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- AI Bench ---------- */
.bench { padding-block: calc(var(--sec) * .5) var(--sec); }
.bench__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; }
.bench__intro .h2 { max-width: 12ch; }
.bench__panel {
  margin-top: clamp(36px, 4vw, 56px);
  background: var(--sheet);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tabs { position: relative; display: flex; align-items: center; gap: 4px; padding: 10px 12px 0; background: var(--cloud); }
.tabs [role="tab"] {
  appearance: none; border: 0; background: none; cursor: pointer;
  padding: 12px 16px 14px; font-weight: 500; color: var(--ink-2);
  transition: color .2s;
}
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); background: var(--sheet); border-radius: 12px 12px 0 0; }
.tabs__ink { position: absolute; bottom: 0; left: 0; height: 2px; width: 100px; background: var(--indigo); transform-origin: left; transform: scaleX(0); transition: transform .25s var(--ease-out); }
.tabs__tag { margin-left: auto; margin-bottom: 6px; }
.pane { padding: clamp(18px, 3vw, 36px); }
.pane[hidden] { display: none; }
.bench__panes { display: grid; }
.bench__panes > .pane { grid-area: 1 / 1; }
.bench__panes > .pane[hidden] { display: block; visibility: hidden; }

.rag__controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 18px 32px; }
.rag__qs { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 820px; }
.rag__qs label, .chips label { position: relative; cursor: pointer; }
.rag__qs input, .chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rag__qs span, .chips span {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 8px 14px;
  background: oklch(0.945 0.006 277); border-radius: 999px;
  font-size: .925rem; line-height: 1.3;
  transition: background-color .2s, color .2s, transform 160ms var(--ease-out);
}
.rag__qs input:checked + span, .chips input:checked + span { background: var(--ink); color: var(--cloud); }
.rag__qs label:active span, .chips label:active span { transform: scale(.97); }
.rag__qs input:focus-visible + span, .chips input:focus-visible + span { outline: 2.5px solid var(--indigo); outline-offset: 2px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; min-height: 40px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 44px; height: 26px; border-radius: 999px; background: var(--rule-2); position: relative; transition: background-color .25s var(--ease-out); }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--sheet); box-shadow: 0 1px 2px oklch(0 0 0 / .2); transition: transform .3s var(--ease-expo); } /* taste-skill-ignore: interface fragment (data-ui) */
.switch input:checked + .switch__track { background: var(--indigo); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(18px); } /* taste-skill-ignore: interface fragment (data-ui) */
.switch input:focus-visible + .switch__track { outline: 2.5px solid var(--indigo); outline-offset: 3px; }
.switch__label { font-weight: 500; font-size: .95rem; min-width: 7.5em; }

.rag__body { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.rag__colhead { display: flex; justify-content: space-between; gap: 12px; font-size: .825rem; color: var(--ink-3); padding-bottom: 10px; border-bottom: 1px solid var(--rule); } /* taste-skill-ignore: interface fragment (data-ui) */
.chunks { min-height: 268px; }
.rag__body { min-height: var(--rag-h, auto); }
.chunk {
  display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 6px 16px; align-items: center;
  padding: 12px 10px; margin-inline: -10px;
  border-bottom: 1px solid var(--rule); /* taste-skill-ignore: interface fragment (data-ui) */
  border-radius: 10px;
  transition: background-color .35s var(--ease-out);
}
.chunk__src { font-family: var(--f-figures); font-size: .8125rem; color: var(--ink-3); }
.chunk__txt { grid-column: 1; font-size: .925rem; line-height: 1.45; }
.chunk__score { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 6px; justify-items: end; }
.chunk__score b { font-family: var(--f-figures); font-weight: 500; font-size: .8125rem; }
.chunk__bar { width: 100%; height: 4px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.chunk__bar i { display: block; height: 100%; background: var(--iris); border-radius: inherit; transform-origin: left; }
.chunk.is-used { background: var(--indigo-wash); }
.chunk.is-used .chunk__bar i { background: var(--indigo); }
.chunk.is-dropped .chunk__txt, .chunk.is-dropped .chunk__src, .chunk.is-dropped .chunk__score b { color: var(--ink-3); }
.chunk.is-dropped .chunk__bar i { background: var(--rule-2); }
.chunk.is-dropped .chunk__src::after { content: " · below threshold"; color: var(--coral-ink); }
.chunk__cite { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-right: 6px; border-radius: 6px; background: var(--indigo); color: var(--on-indigo); font-family: var(--f-figures); font-size: .8125rem; font-weight: 600; vertical-align: 1px; }
.rag__guard { margin-top: 14px; font-size: .875rem; color: var(--ink-2); display: flex; align-items: center; gap: 8px; min-height: 1.5em; }
.rag__guard::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); flex: none; }
.rag__guard:empty::before { display: none; }

.answer { margin-top: 16px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; min-height: 7.5em; text-wrap: pretty; }
.answer sup { font-family: var(--f-figures); font-size: .75em; color: var(--indigo); font-weight: 500; margin-left: 1px; }
.answer .bad { text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.answer .caret { display: inline-block; width: .5ch; height: 1.1em; vertical-align: -.18em; background: var(--coral); margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.rag__note { margin-top: 14px; font-size: .9rem; color: var(--ink-2); padding: 12px 14px; border-radius: 12px; background: var(--cloud); }
.rag__note:empty { display: none; }
.rag__note.is-warn { background: var(--coral-wash); color: oklch(0.38 0.12 35); }

.fc__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: flex-start; }
.fc__head p { max-width: 60ch; color: var(--ink-2); }
.fc__head strong { color: var(--ink); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 18px; height: 10px; border-radius: 3px; }
.lg--hist { background: var(--ink); height: 2px; }
.lg--band { background: oklch(0.68 0.14 282 / .28); }
.lg--med { background: var(--indigo); height: 2px; }
.lg--act { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.fc__svg { width: 100%; height: auto; margin-top: 24px; overflow: visible; }
.fc__svg .axis { stroke: var(--rule-2); stroke-width: 1; }
.fc__svg .now { stroke: var(--ink-3); stroke-dasharray: 3 4; }
.fc__svg text { font-family: var(--f-body); font-size: 13px; font-variant-numeric: tabular-nums; fill: var(--ink-3); }
.fc__svg .hist { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.fc__svg .med { fill: none; stroke: var(--indigo); stroke-width: 2.2; stroke-dasharray: 6 5; stroke-linecap: round; }
.fc__svg .band { fill: oklch(0.68 0.14 282 / .26); }
.fc__svg .act { fill: var(--coral); stroke: var(--sheet); stroke-width: 2; }
.fc__svg .act.is-out { fill: var(--sheet); stroke: var(--coral); stroke-width: 2.5; }
.fc__svg .flag { font-family: var(--f-body); font-size: 13px; fill: var(--coral-ink); font-weight: 500; }
.fc__note { margin-top: 18px; max-width: 70ch; color: var(--ink-2); font-size: 1rem; }

@media (max-width: 860px) {
  .bench__intro, .rag__body { grid-template-columns: 1fr; }
}

/* ---------- Deployment ---------- */
.load { padding-block: var(--sec); background: var(--sheet); }
.load__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(20px, 4vw, 64px); align-items: end; }
.load__head .h2 { max-width: 14ch; }
.band { margin-top: clamp(40px, 5vw, 72px); }
.band__frame { overflow: hidden; border-radius: var(--r-lg); clip-path: inset(0 0 round var(--r-lg)); aspect-ratio: 21 / 8; background: var(--ink); }
.band__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform-origin: 50% 50%; }
.band figcaption, .topo__pic figcaption { margin-top: 12px; font-size: .9375rem; color: var(--ink-2); }
.band figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; }
.band__credit { color: var(--ink-3); }
.load__wrap { margin-top: clamp(48px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.load__intro { margin-bottom: 24px; }
.load__hint { margin-top: 8px; color: var(--ink-2); }
.load__hint--tap { display: none; }
.load__progress { margin-top: 18px; height: 4px; max-width: 320px; border-radius: 4px; background: var(--cloud); overflow: hidden; }
.load__progress span { display: block; height: 100%; background: var(--indigo); border-radius: inherit; transform-origin: left; transform: scaleX(.25); }
.stages { display: grid; gap: 6px; }
.stage { padding: 2px 18px; border-radius: var(--r); display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .5s var(--ease-expo); }
.stage.is-active { grid-template-rows: auto 1fr; background: var(--cloud); }
.stages.is-measuring .stage, .stages.is-measuring .stage p { transition: none; }
.stage__btn {
  appearance: none; background: none; border: 0; padding: 12px 0; width: 100%;
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em;
  color: var(--ink-3); transition: color .3s, transform 160ms var(--ease-out);
}
.stage__btn:active { transform: scale(.98); }
.stage__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rule-2); flex: none; transition: background-color .3s; }
.stage p { color: var(--ink-2); max-width: 46ch; min-height: 0; overflow: hidden; opacity: 0; transition: opacity .4s var(--ease-out); padding-left: 26px; }
.stage.is-active .stage__btn { color: var(--ink); }
.stage.is-active .stage__dot { background: var(--indigo); }
.stage[data-stage="2"].is-active .stage__dot { background: var(--coral); }
.stage.is-active p { opacity: 1; }
.stage p::after { content: ""; display: block; height: 14px; }

.cluster {
  background: var(--cloud);
  border-radius: var(--r-lg);
  padding: 18px;
}
.cluster__svg { width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.cluster__lb rect { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.6; }
.pod rect { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.6; transition: fill .4s var(--ease-out), stroke .4s var(--ease-out); }
.pod text { font-family: var(--f-body); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pod--canary rect { fill: var(--coral-wash); stroke: var(--coral); }
.pod--bad rect { fill: var(--coral); stroke: var(--coral); }
.pod--new rect { fill: var(--indigo-wash); stroke: var(--indigo); }
.flow path { fill: none; stroke: var(--rule-2); stroke-width: 1.4; }
.flow use { fill: var(--indigo); }
.flow use.is-canary { fill: var(--coral); }
.meters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.meter { background: var(--sheet); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; align-content: start; }
.meter__k { font-size: .8125rem; color: var(--ink-3); }
.meter__v { font-size: 1rem; font-weight: 500; }
.meter--err.is-bad .meter__v { color: var(--coral-ink); }
.spark { width: 100%; height: 24px; margin-top: 4px; }
.spark__slo { stroke: var(--coral); stroke-dasharray: 3 3; stroke-width: 1; }
.spark__line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.bar { display: block; height: 6px; border-radius: 6px; background: var(--rule); overflow: hidden; margin-top: 8px; }
.bar__fill { display: block; height: 100%; width: 100%; background: var(--indigo); transform-origin: left; transform: scaleX(0); border-radius: inherit; }
.bar__fill.is-canary { background: var(--coral); }
.cluster__log { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: oklch(0.9 0.01 270); min-height: 2.6em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.topo { margin-top: clamp(72px, 8vw, 128px); display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.topo__pic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); background: var(--cloud); }
.topo__copy > p { margin-top: 12px; color: var(--ink-2); max-width: 48ch; }
.seg { margin-top: 22px; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cloud); position: relative; }
.seg button { appearance: none; border: 0; background: none; cursor: pointer; padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: .925rem; color: var(--ink-2); transition: background-color .25s var(--ease-out), color .25s, transform 160ms var(--ease-out); min-height: 40px; }
.seg button:active { transform: scale(.97); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--cloud); }
.topo__diff { margin-top: 22px; display: grid; }
.topo__diff { gap: 12px; }
.topo__diff li { color: var(--ink-2); padding-left: 18px; position: relative; }
.topo__diff li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); }
.topo__diff b { color: var(--ink); font-weight: 600; }
.ci { margin: 0; padding: 22px 24px; border-radius: var(--r); background: var(--ink); color: oklch(0.86 0.01 270); font-family: var(--f-code); font-size: .875rem; line-height: 1.9; overflow-x: auto; } /* taste-skill-ignore: real code block */
.ci__ok { color: oklch(0.78 0.12 280); }
.ci__run { color: var(--coral); animation: blink 1.2s steps(2) infinite; }
.ci__wait { color: oklch(0.66 0.02 270); }

@media (max-width: 960px) {
  .load__head, .load__wrap, .topo { grid-template-columns: 1fr; }
  .load__copy { display: contents; }
  .load__intro { order: 0; margin-bottom: 0; }
  .cluster { order: 1; }
  .stages { order: 2; }
  .load__hint--scroll { display: none; }
  .load__hint--tap { display: inline; }
  .band__frame { aspect-ratio: 4 / 3; }
  .topo__pic img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .meters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cluster { padding: 12px; }
}

/* ---------- Products (drenched) ---------- */
.products {
  background: var(--indigo);
  color: var(--on-indigo);
  padding-block: var(--sec);
  position: relative;
  overflow: hidden;
}
.products__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(20px, 4vw, 64px); align-items: end; }
.products__intro .h2 { max-width: 12ch; grid-row: span 2; }
.products .lede { color: var(--on-indigo-2); }
.replay {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  appearance: none; border: 1px solid var(--sheet); background: var(--sheet); color: var(--indigo-deep);
  border-radius: 999px; padding: 8px 16px 8px 12px; cursor: pointer; font-weight: 500; min-height: 40px;
  transition: background-color .2s, border-color .2s, transform 160ms var(--ease-out);
}
.replay:active { transform: scale(.97); }
.replay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.replay:focus-visible { outline-color: var(--on-indigo); }

.trio { position: relative; margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 44px); }
.trio__wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.trio__wire path { fill: none; stroke: oklch(1 0 0 / .35); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.trio__wire use { fill: var(--coral); }
.trio__wire path:not([data-wire-path]) { stroke: none; }
.unit { position: relative; z-index: 1; display: flex; flex-direction: column; }
.unit__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px 12px; }
.unit__name { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.unit__link { font-size: .875rem; color: var(--on-indigo-2); text-decoration: none; }
.unit__link:focus-visible { outline-color: var(--on-indigo); }
.unit__screen {
  background: var(--sheet); color: var(--ink);
  border-radius: var(--r);
  aspect-ratio: 4 / 3.6;
  padding: 18px;
  overflow: hidden;
  position: relative;
}
.unit__screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 3px var(--coral); opacity: 0; pointer-events: none; } /* taste-skill-ignore: arrival ring, invisible at rest */
.unit__screen.is-pulse::after { animation: ring .6s cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes ring { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.06); } }
.unit__cap { margin-top: 14px; padding-inline: 4px; color: var(--on-indigo-2); font-size: 1rem; }

.pos { display: grid; place-items: start center; background: var(--cloud); }
.receipt {
  width: min(100%, 260px);
  background: var(--sheet);
  padding: 16px 16px 18px;
  border-radius: 4px 4px 0 0;
  clip-path: inset(0 0 0 0);
  position: relative;
}
.receipt__top { color: var(--ink-3); font-size: .8125rem; line-height: 1.5; padding-bottom: 10px; border-bottom: 1px dashed var(--rule-2); } /* taste-skill-ignore: interface fragment (data-ui) */
.receipt__lines { padding-block: 8px; display: grid; gap: 6px; font-size: .8125rem; }
.receipt__lines li, .receipt__total { display: flex; justify-content: space-between; gap: 10px; }
.receipt__total { padding-top: 8px; border-top: 1px dashed var(--rule-2); font-size: .875rem; font-weight: 600; } /* taste-skill-ignore: interface fragment (data-ui) */
.receipt__paid { margin-top: 8px; font-size: .8125rem; color: var(--indigo); }

.wms { display: flex; flex-direction: column; gap: 12px; }
.floor { width: 100%; height: auto; flex: 1; }
.floor .bin { fill: var(--cloud); stroke: var(--rule-2); stroke-width: 1; transition: fill .3s; }
.floor .bin.is-hit { fill: var(--coral); stroke: var(--coral); }
.floor .bin.is-low { fill: var(--coral-wash); stroke: var(--coral); }
.floor .aisle { font-family: var(--f-body); font-size: 10px; fill: var(--ink-3); }
.floor .path { fill: none; stroke: var(--indigo); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 0; }
.floor .dock { fill: var(--ink); }
.wms__status { color: var(--ink-2); font-size: .8125rem; }
.wms__status b { color: var(--coral-ink); font-weight: 500; }

.chat, .sl { display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; background: var(--cloud); }
.msg--in { align-self: flex-end; background: var(--ink); color: var(--cloud); padding: 9px 12px; border-radius: 14px 14px 4px 14px; }
.chip--ok { background: var(--indigo-wash); color: var(--indigo-deep); }
.msg { max-width: 92%; font-size: .875rem; line-height: 1.45; }
.msg--sys { align-self: flex-start; font-size: .8125rem; color: var(--indigo); background: var(--indigo-wash); padding: 4px 8px; border-radius: 8px; }
.msg--ai { align-self: flex-start; background: var(--sheet); border: 1px solid var(--rule); padding: 9px 12px; border-radius: 14px 14px 14px 4px; } /* taste-skill-ignore: interface fragment (data-ui) */
.msg__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .8125rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--sheet); } /* taste-skill-ignore: interface fragment (data-ui) */
.chip--go { background: var(--indigo); border-color: var(--indigo); color: var(--on-indigo); }

@media (max-width: 960px) {
  .products__intro { grid-template-columns: 1fr; }
  .products__intro .h2 { grid-row: auto; }
}
@media (max-width: 960px) {
  .trio { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 40px; }
  .unit__screen { aspect-ratio: 4 / 3.6; }
}

.family { margin-top: clamp(72px, 8vw, 128px); background: var(--indigo-deep); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); }
.family__title { color: var(--on-indigo); }
.family__list { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.family__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); letter-spacing: -0.015em; color: var(--on-indigo); text-decoration: none; }
.family__name span { display: inline-block; font-size: .8em; transition: transform .25s var(--ease-out); }
.family__name:focus-visible { outline-color: var(--on-indigo); }
.family__line { margin-top: 6px; color: var(--on-indigo); font-weight: 500; }
.family__what { margin-top: 8px; color: var(--on-indigo-2); max-width: 44ch; text-wrap: pretty; }
@media (hover: hover) and (pointer: fine) {
  .family__name:hover { text-decoration: underline; text-underline-offset: 4px; }
  .family__name:hover span { transform: translate(3px, -3px); }
}
@media (max-width: 860px) {
  .family__list { grid-template-columns: 1fr; }
}

/* ---------- Work ---------- */
.work { padding-block: calc(var(--sec) * 1.1) calc(var(--sec) * .5); }
.work__intro { display: grid; gap: 16px; }
.work__intro .h2 { max-width: 22ch; }
.work__grid { margin-top: clamp(36px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.records { display: grid; gap: 4px; }
.record a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 18px; align-items: baseline;
  padding: 20px 16px; margin-inline: -16px; text-decoration: none; border-radius: 14px;
  transition: background-color .3s var(--ease-out);
}
.record__id { grid-row: 1; color: var(--ink-2); font-size: .875rem; }
.record__name { grid-row: 1; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); letter-spacing: -0.015em; line-height: 1.2; }
.record__go { grid-row: 1; color: var(--ink-3); transition: transform .25s var(--ease-out), color .2s; }
.record__what { grid-column: 2; color: var(--ink-2); font-size: 1rem; max-width: 52ch; text-wrap: pretty; }
.record__kind { grid-column: 2; font-size: .875rem; color: var(--ink-3); }
.record.is-active a { background: var(--sheet); }
.record.is-active .record__go { color: var(--indigo); transform: translate(3px, -3px); }
.record__thumb { display: none; }

.preview { position: sticky; top: 104px; }
.preview__frame { border-radius: var(--r); background: var(--sheet); overflow: hidden; }
.preview__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--rule); color: var(--ink-3); } /* taste-skill-ignore: interface fragment (data-ui) */
.preview__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-2); }
.preview__bar span { margin-left: 10px; font-size: .8125rem; }
.preview__stage { position: relative; aspect-ratio: 16 / 10; background: var(--cloud); }
.preview__stage > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; clip-path: inset(0 0 100% 0); }
.preview__stage > .is-on { clip-path: inset(0 0 0 0); }
.sketch { display: grid; place-items: center; background-color: var(--cloud); }
.sketch svg { width: 86%; height: auto; }
.sketch rect { stroke: var(--ink); stroke-width: 1.6; fill: var(--sheet); }
.sketch path { stroke: var(--indigo); stroke-width: 1.6; }
.sketch__t text { font-family: var(--f-body); font-size: 15px; font-weight: 500; text-anchor: middle; dominant-baseline: middle; fill: var(--ink); }
.sketch p { position: absolute; left: 16px; bottom: 12px; color: var(--ink-3); font-size: .8125rem; }
.work__also { margin-top: 36px; color: var(--ink-2); max-width: 70ch; }

@media (max-width: 960px) {
  .work__intro, .work__grid { grid-template-columns: 1fr; }
  .preview { display: none; }
  .record__thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 12px; margin: 0 0 20px; background: var(--sheet); }
}

/* ---------- Process ---------- */
.process { padding-block: calc(var(--sec) * .6) calc(var(--sec) * .9); }
.process__intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px clamp(20px, 4vw, 64px); align-items: start; }
.process__intro .h2 { max-width: 20ch; }
.process__intro .lede { padding-top: .6em; }
.table-wrap { margin-top: clamp(32px, 4vw, 56px); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.proc { width: 100%; border-collapse: collapse; min-width: 760px; }
.proc th, .proc td { text-align: left; vertical-align: top; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--rule-2); } /* taste-skill-ignore: interface fragment (data-ui) */
.proc thead th { font-size: .875rem; font-weight: 500; color: var(--ink-3); padding-block: 0 12px; border-bottom: 1px solid var(--ink); } /* taste-skill-ignore: interface fragment (data-ui) */
.proc tbody th { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; white-space: nowrap; }
.proc td { color: var(--ink-2); }
.proc td:first-child { width: 44px; }
.proc td:nth-child(3) { color: var(--ink); max-width: 40ch; }
.proc td.mono { white-space: nowrap; font-size: .9375rem; padding-top: 22px; }
.tick { width: 24px; height: 24px; margin-top: 2px; }
.tick rect { fill: none; stroke: var(--rule-2); stroke-width: 1.6; transition: fill .3s, stroke .3s; }
.tick path { fill: none; stroke: var(--on-indigo); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.is-done .tick rect { fill: var(--indigo); stroke: var(--indigo); }

@media (max-width: 860px) {
  .process__intro { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .proc { min-width: 0; }
  .proc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .proc tbody, .proc tr { display: block; }
  .proc tr { display: grid; grid-template-columns: 36px 1fr; column-gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--rule-2); } /* taste-skill-ignore: interface fragment (data-ui) */
  .proc th, .proc td { border: 0; padding: 0; }
  .proc td:first-child { width: auto; grid-row: 1; }
  .proc tbody th { grid-row: 1; grid-column: 2; padding-top: 1px; }
  .proc td[data-label] { grid-column: 2; margin-top: 8px; font-size: .95rem; }
  .proc td[data-label]::before { content: attr(data-label); display: block; font-family: var(--f-body); font-size: .8125rem; color: var(--ink-3); margin-bottom: 1px; }
  .proc td.mono { padding-top: 0; }
}

/* ---------- FAQ ---------- */
.faq { padding-block: calc(var(--sec) * .5) var(--sec); }
.faq__wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
.faq__intro { position: sticky; top: 112px; }
.faq__intro .h2 { max-width: 14ch; }
.faq__intro .lede { margin-top: 18px; }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--rule-2); } /* taste-skill-ignore: interface fragment (data-ui) */
.faq__item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; border-radius: var(--r-sm); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; }
.faq__q { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.35; letter-spacing: -0.01em; text-wrap: balance; }
.faq__item summary:hover .faq__q { color: var(--indigo-hi); }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--indigo-wash); transition: background-color .25s var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--indigo); transition: transform .3s var(--ease-out), background-color .25s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--indigo); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--on-indigo); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.faq__a a { color: var(--indigo-hi); text-underline-offset: 3px; }
@media (max-width: 860px) {
  .faq__wrap { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
  .faq__a { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .faq__icon, .faq__icon::before, .faq__icon::after { transition: none; }
}

/* ---------- Start ---------- */
.start { padding-block: var(--sec); background: var(--ink); color: var(--cloud); }
.start__wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.start .lede { color: oklch(0.8 0.012 270); margin-top: 18px; }
.next { margin-top: 40px; display: grid; gap: 22px; }
.next li { padding-left: 22px; position: relative; }
.next li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--iris); }
.next b { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; color: var(--cloud); letter-spacing: -0.01em; }
.next p { margin-top: 2px; color: oklch(0.8 0.012 270); font-size: 1rem; }
.start__contact { margin-top: 48px; display: grid; gap: 16px; }
.start__contact div { display: grid; gap: 2px; }
.start__contact dt { font-size: .875rem; color: oklch(0.72 0.012 270); }
.start__contact a { text-decoration: none; }
.start__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.start :focus-visible { outline-color: var(--iris); }
.order :focus-visible { outline-color: var(--indigo); }

.order { position: relative; background: var(--sheet); color: var(--ink); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }
.order__head { display: flex; justify-content: space-between; color: var(--ink-3); padding-bottom: 6px; margin-bottom: 4px; }
.field { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.field legend, .field label:not(.chips label) { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea {
  width: 100%; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--cloud); /* taste-skill-ignore: interface fragment (data-ui) */
  padding: 12px 14px; min-height: 48px; font-size: 1rem;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo); background: var(--sheet); box-shadow: 0 0 0 4px oklch(0.51 0.23 277 / .14); } /* taste-skill-ignore: interface fragment (data-ui) */
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.err { display: none; margin-top: 6px; font-size: .85rem; color: var(--coral-ink); }
.is-invalid .err { display: block; }
.is-invalid input { border-color: var(--coral-ink) !important; }
.order__submit { margin-top: 28px; width: 100%; }
.order__submit[disabled] { opacity: .7; cursor: progress; }
.order__fine { margin-top: 12px; font-size: .85rem; color: var(--ink-3); text-align: center; }
.order__receipt { display: grid; justify-items: start; gap: 14px; padding: 12px 0; }
.order__receipt[hidden] { display: none; }
.order__receipt:focus { outline: none; }
.order__receipt p { color: var(--ink-2); max-width: 46ch; }
.order__check { width: 56px; height: 56px; }
.order__check circle { fill: var(--indigo-wash); stroke: var(--indigo); stroke-width: 2; }
.order__check path { fill: none; stroke: var(--indigo); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 960px) {
  .start__wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field--row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.foot { background: oklch(0.165 0.012 270); color: oklch(0.8 0.012 270); padding-block: 0 32px; }
.foot__grid { display: grid; grid-template-columns: 2fr repeat(2, 1fr); gap: 32px; padding-top: 64px; }
.foot__brand img { width: 150px; }
.foot__brand p { margin-top: 18px; line-height: 1.5; }
.foot__col { display: grid; gap: 8px; align-content: start; }
.foot__h { color: var(--cloud); font-weight: 500; margin-bottom: 6px; }
.foot__col a { text-decoration: none; width: fit-content; }
.foot :focus-visible { outline-color: var(--iris); }
.foot__base { margin-top: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .875rem; color: oklch(0.7 0.012 270); }
.foot__top { text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.foot__credit { display: inline-block; margin-top: 8px; font-size: .8125rem; color: oklch(0.7 0.012 270); max-width: 90ch; }
.foot__credit a { color: inherit; }
@media (max-width: 760px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: opacity, color, background-color, border-color, fill, stroke !important;
    transition-duration: .2s !important;
  }
}

/* Diagram labels scale down with their SVG; keep them legible on phones */
@media (max-width: 560px) {
  .node text { font-size: 20px; }
  .check text { font-size: 18px; }
  .pod text { font-size: 17px; }
  .cluster__lb text { font-size: 19px; }
}

[tabindex="-1"]:focus { outline: none; }

.nav__menu { transition: transform 160ms var(--ease-out); }
.nav__menu:active { transform: scale(.94); }

/* Hover only where there is a real pointer */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { --bg: var(--indigo-hi); --bd: var(--indigo-hi); }
  .btn--ghost:hover { --bg: oklch(0.945 0.006 277); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
  .nav__links a:hover { color: var(--ink); background: oklch(0.205 0.012 270 / .05); }
  .rag__qs label:hover input:not(:checked) + span, .chips label:hover input:not(:checked) + span { background: oklch(0.92 0.01 277); }
  .replay:hover { background: var(--indigo-wash); border-color: var(--indigo-wash); }
  .unit__link:hover { color: var(--on-indigo); text-decoration: underline; text-underline-offset: 3px; }
  .record a:hover { background: var(--sheet); }
  .record a:hover .record__go { color: var(--indigo); transform: translate(3px, -3px); }
  .foot__col a:hover, .foot__top:hover { color: var(--cloud); text-decoration: underline; text-underline-offset: 3px; }
  .scope__row { transition: background-color .3s var(--ease-out); }
  .scope__row:hover { background: var(--indigo-wash); }
}
.order .btn--ghost { --bg: var(--cloud); }
