/* Flyora — white-hot. The page is the drone's thermal view: black ground, grey modules,
   and white only for heat, headlines and the action. One family: Anek Latin (Ek Type, OFL). */

@font-face {
  font-family: "Anek Latin";
  src: url("../fonts/anek-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 125%;
  font-display: swap;
  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: "Anek Latin";
  src: url("../fonts/anek-latin-ext.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  /* brand: black, chrome, white */
  --black: #0A0B0D;
  --chrome: #C5CAD1;
  --white: #FFFFFF;
  /* thermal greys, one step each */
  --surface: #121418;
  --raised: #1A1D22;
  --line: #2C3036;
  --module: #5D646E;
  --muted: #9AA0A8;
  --frame: #0E1012;          /* behind the thermal frame */
  --scale-2: #40454C;        /* thermal key steps between the named greys */
  --scale-4: #8A9099;
  /* inks on the white field */
  --ink-2: #30353C;
  --ink-3: #4A5058;
  --ink-4: #5B616A;
  --ink-5: #6B717A;

  --font: "Anek Latin", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 3.4vw, 48px);
  --max: 1344px;
  --section: clamp(88px, 9vw, 136px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
  /* type scale: six sizes */
  --fs-ui: 1rem;
  --fs-body: 1.125rem;
  --fs-lead: clamp(1.1875rem, 1.45vw, 1.3125rem);
  --fs-sub: clamp(1.375rem, 2vw, 1.75rem);
  --fs-h2: clamp(2rem, 3.9vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); scrollbar-color: var(--module) var(--black); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--chrome);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  font-stretch: 100%;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
::selection { background: var(--white); color: var(--black); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
input, select, textarea, button { font: inherit; color: inherit; }

h1, h2, h3 { color: var(--white); margin: 0; font-weight: 560; text-wrap: balance; }
h1, h2 { font-stretch: 125%; letter-spacing: -0.025em; line-height: 0.98; }
h2 { font-size: var(--fs-h2); max-width: 22ch; }
h3 { font-size: var(--fs-body); font-stretch: 112%; line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--chrome); max-width: 38ch; }
.num, .id { font-variant-numeric: tabular-nums; }

a { color: var(--white); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
.text-link { font-weight: 500; font-stretch: 112%; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 30; background: var(--white); color: var(--black); padding: 12px 18px; font-weight: 600; }
.skip:focus { top: 12px; }

/* buttons: square, flat, one fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font-weight: 600; font-stretch: 112%; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-primary:hover { background: var(--black); color: var(--white); }
.btn-quiet { background: transparent; color: var(--chrome); border-color: var(--module); min-height: 44px; padding: 0 18px; }
.btn-quiet:hover { border-color: var(--white); color: var(--white); }
.btn-ink { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-ink:hover { background: var(--white); color: var(--black); }

/* navigation: a plain bar */
.nav { position: sticky; top: 0; z-index: 20; background: var(--black); }
.nav-bar { height: var(--nav-h); display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.brand { margin-right: auto; display: block; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.nav-links a { color: var(--chrome); text-decoration: none; font-size: 1rem; }
.nav-links a:hover { color: var(--white); text-decoration: underline; text-decoration-thickness: 2px; }
.nav-cta { min-height: 42px; padding: 0 18px; }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 4px; color: var(--white); font-weight: 500; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu nav { position: absolute; right: 0; top: calc(100% + 12px); background: var(--raised); min-width: 220px; padding: 8px 0; display: grid; outline: 2px solid var(--line); }
.nav-menu nav a { padding: 12px 20px; color: var(--chrome); text-decoration: none; }
.nav-menu nav a:hover { color: var(--white); background: var(--line); }

/* hero */
.hero { padding-top: clamp(36px, 6vh, 80px); }
.hero-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; }
.hero-title { grid-column: 1 / span 8; container-type: inline-size; }
h1 { font-size: min(6rem, 9.4cqi); }
.hero-side { grid-column: 9 / span 4; display: grid; gap: 24px; padding-bottom: 0.4em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* the spot meter */
.meter { margin: clamp(28px, 5vh, 56px) 0 0; }
.meter-view { position: relative; height: clamp(230px, 40vh, 440px); background: var(--frame); cursor: crosshair; touch-action: pan-y; }
.meter-view svg { width: 100%; height: 100%; }
.ir { image-rendering: pixelated; }
.bracket path, .zoom path { fill: none; stroke: var(--white); stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-linecap: square; }
.bracket { transition: transform 150ms var(--ease); }
.meter-view:focus-visible { outline-offset: -4px; }
.meter-bar { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; padding-top: 20px; align-items: start; }
.readout { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0; }
.readout div { min-width: 0; }
.readout dt { font-size: var(--fs-ui); color: var(--muted); }
.readout dd { margin: 2px 0 0; color: var(--white); font-size: 1.125rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter-tools { display: flex; gap: 12px; }
.meter-tag { position: absolute; left: 0; top: 0; margin: 0; padding: 6px 10px; background: var(--black); color: var(--chrome); font-size: var(--fs-ui); line-height: 1.3; white-space: nowrap; pointer-events: none; }
.meter-tag strong { color: var(--white); font-weight: 560; }
.meter-key { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--fs-ui); color: var(--muted); }
.meter-key .scale { display: inline-flex; }
.meter-key .scale i { display: block; width: 26px; height: 12px; }
.meter-key .scale i:nth-child(1) { background: var(--line); }
.meter-key .scale i:nth-child(2) { background: var(--scale-2); }
.meter-key .scale i:nth-child(3) { background: var(--module); }
.meter-key .scale i:nth-child(4) { background: var(--scale-4); }
.meter-key .scale i:nth-child(5) { background: var(--chrome); }
.meter-key .scale i:nth-child(6) { background: var(--white); }
.meter-key .stamp { margin-left: auto; color: var(--chrome); }
.meter-note { grid-column: 1 / -1; font-size: var(--fs-ui); color: var(--muted); max-width: 90ch; }
.meter-note [data-k="note"] { color: var(--chrome); }
.meter-note [data-k="note"]:empty { display: none; }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-touch { display: inline; } .hint-pointer { display: none; } }

/* sections */
section { scroll-margin-top: var(--nav-h); }
.how, .find, .station, .who, .company { padding-block: var(--section); }
.how { padding-top: calc(var(--section) * 0.9); }

/* how it works: the held thermal frame */
.how h2 { margin-bottom: clamp(40px, 6vw, 80px); }
.how-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.steps { grid-column: 1 / span 4; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { counter-increment: step; padding: 0 0 40px; }
.step h3 { font-size: var(--fs-sub); margin-bottom: 10px; }
.step h3::before { content: counter(step) ". "; color: var(--muted); }
.step p { max-width: 36ch; }
.stage-col { grid-column: 6 / span 7; position: sticky; top: calc(var(--nav-h) + 32px); }
.stage { background: var(--surface); padding: clamp(16px, 2vw, 28px); }
.stage-plant { width: 100%; height: auto; overflow: hidden; }
.stage-plant .s1-cover rect { fill: var(--surface); transform-box: fill-box; transform-origin: 100% 50%; transform: scaleX(1); transition: transform 1100ms steps(36, end); }
.stage-plant .s1-ghost rect rect, .stage-plant pattern rect { fill: none; stroke: var(--module); stroke-width: 1.5px; }
.stage-plant .s1-ghost { transition: opacity 400ms var(--ease) 700ms; }
.stage-plant .s2-route { fill: none; stroke: var(--muted); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms steps(18, end), opacity 400ms var(--ease); }
.stage-plant .s3-loops path { fill: none; stroke: var(--chrome); stroke-width: 2.5px; vector-effect: non-scaling-stroke; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 420ms steps(6, end); }
.stage-plant .s3-loops path:nth-child(2) { transition-delay: 120ms; }
.stage-plant .s3-loops path:nth-child(3) { transition-delay: 240ms; }
.stage-plant .s3-loops path:nth-child(4) { transition-delay: 360ms; }
.stage-plant .s4-tags text { fill: var(--chrome); font-size: 21px; font-weight: 500; font-family: var(--font); opacity: 0; transition: opacity 240ms var(--ease); }
.stage-plant .s6-fixed .ir { clip-path: inset(0 100% 0 0); transition: clip-path 1200ms steps(36, end); }
/* cumulative states, set by the page script (ge-1 … ge-6); the markup ships at ge-4 */
.stage.ge-1 .s1-cover rect { transform: scaleX(0); }
.stage.ge-1 .s1-ghost { opacity: 0; }
.stage.ge-2 .s2-route { stroke-dashoffset: 0; }
.stage.ge-3 .s3-loops path { stroke-dashoffset: 0; }
.stage.ge-3 .s2-route { opacity: 0.35; }
.stage.ge-4 .s4-tags text { opacity: 1; }
.stage-plant .s4-chips { opacity: 0; transition: opacity 240ms var(--ease); }
.stage-plant .s4-chips rect { fill: var(--black); }
.stage-plant .s4-chips text { fill: var(--chrome); font-size: 17px; font-weight: 500; font-family: var(--font); }
.stage.ge-4 .s4-chips { opacity: 1; }
.stage.ge-4 .s4-tags .tag-crew, .stage.ge-4 .s4-tags .tag-fixed { opacity: 0; }
.stage.ge-5 .s4-tags .tag-price { opacity: 0; }
.stage.ge-5 .s4-tags .tag-crew { opacity: 1; }
.stage.ge-6 .s4-tags .tag-crew { opacity: 0; }
.stage.ge-6 .s4-tags .tag-fixed { opacity: 1; }
.stage.ge-6 .s6-fixed .ir { clip-path: inset(0 0 0 0); }
.stage-readout { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-top: clamp(16px, 2vw, 24px); min-height: 168px; }
.zoom { width: 104px; height: 168px; background: var(--black); }
.zoom image, .zoom path { opacity: 0; transition: opacity 300ms steps(3, end); }
.zoom .zoom-ghost { fill: none; stroke: var(--module); stroke-width: 1.5px; vector-effect: non-scaling-stroke; transition: fill 300ms steps(3, end); }
.stage.ge-1 .zoom .zoom-ghost { fill: var(--line); }
.stage.ge-3 .zoom image, .stage.ge-3 .zoom path { opacity: 1; }
.stage.ge-3 .zoom .zoom-ghost { opacity: 0; }
.readouts { display: grid; }
.readouts .r { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 240ms var(--ease), visibility 0s linear 240ms; max-width: 34ch; }
.readouts .r strong { display: block; color: var(--white); font-size: var(--fs-sub); font-weight: 560; font-stretch: 112%; line-height: 1.15; margin-bottom: 6px; }
.stage[data-step="1"] .r1, .stage[data-step="2"] .r2, .stage[data-step="3"] .r3,
.stage[data-step="4"] .r4, .stage[data-step="5"] .r5, .stage[data-step="6"] .r6 { opacity: 1; visibility: visible; transition-delay: 0s; }
.stage-note { margin-top: 14px; font-size: var(--fs-ui); color: var(--muted); }

/* live scene: each step holds the frame for most of a screen */
.scene-live .step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 0; }
.scene-live .step h3, .scene-live .step p { transition: color 240ms var(--ease); }
.scene-live .step:not(.is-active) h3 { color: var(--module); }
.scene-live .step:not(.is-active) p { color: var(--muted); }
.scene-live .step:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 6vh; }

/* what we find */
.find { background: var(--surface); }
.find h2 { margin-bottom: clamp(40px, 5vw, 64px); }
.find-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.find-intro { grid-column: 1 / span 4; }
.list-title { margin-top: 44px; color: var(--white); }
.facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; max-width: 40ch; }
.facts strong { color: var(--white); font-weight: 560; }
.specimens { grid-column: 5 / span 8; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 22px; }
.specimens img { width: 100%; height: auto; aspect-ratio: 3 / 5; image-rendering: pixelated; background: var(--black); margin-bottom: 14px; }
.specimens h3 { margin-bottom: 6px; }
.specimens p { font-size: var(--fs-ui); line-height: 1.45; color: var(--muted); }
.specimens .crew { margin-top: 8px; color: var(--chrome); }
.specimens .crew span { color: var(--muted); }
.specimens li { position: relative; }

/* ground station: fragments of the real app, data-ui keeps its own lines */
.station-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.station-head h2 { grid-column: 1 / span 7; }
.station-head .lead { grid-column: 8 / span 5; }
.app { margin: 0; background: var(--surface); }
.app-bar { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; padding: 16px 22px; background: var(--raised); font-size: var(--fs-ui); color: var(--muted); }
.app-bar strong { color: var(--white); font-size: var(--fs-ui); font-weight: 560; font-stretch: 112%; }
.app-count { margin-left: auto; }
.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.table-scroll { overflow-x: auto; }
.register { width: 100%; border-collapse: collapse; font-size: 1rem; }
.register th { text-align: left; font-weight: 500; font-size: var(--fs-ui); color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.register td { padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--chrome); }
.register .num { text-align: right; }
.register .id { color: var(--white); }
.register tr.sel td { background: var(--raised); }
.prio { display: inline-flex; align-items: center; gap: 8px; }
.prio::before { content: ""; width: 10px; height: 10px; background: currentColor; }
.p-high { color: var(--white); }
.p-med { color: var(--chrome); }
.p-med::before { background: var(--muted); }
.p-low { color: var(--muted); }
.p-low::before { background: var(--module); }
.detail { padding: 20px 22px 24px; background: var(--raised); }
.detail-id { color: var(--white); font-size: var(--fs-sub); font-weight: 560; font-stretch: 112%; }
.detail-fault { color: var(--muted); font-size: 1rem; }
.detail-risk { margin-top: 16px; color: var(--white); font-variant-numeric: tabular-nums; }
.detail-risk span { color: var(--muted); margin-right: 8px; }
.history { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; font-size: 1rem; }
.history li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; }
.history li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.history li:last-child { color: var(--white); }
.app figcaption { padding: 14px 22px 18px; font-size: var(--fs-ui); color: var(--muted); }
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.wash, .trend { padding: 20px 22px 8px; }
.wash-total, .trend-total { color: var(--chrome); margin-bottom: 18px; }
.wash-total strong, .trend-total strong { color: var(--white); font-weight: 560; margin-right: 6px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 76px 1fr 76px; gap: 14px; align-items: center; font-size: 1rem; }
.bars .bar { height: 14px; background: var(--line); position: relative; }
.bars .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: var(--chrome); }
.bars .num { text-align: right; color: var(--white); }
.cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: end; height: 190px; }
.cols li { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 8px; text-align: center; font-size: var(--fs-ui); }
.cols .col { align-self: end; height: calc(var(--v) * 100%); background: var(--module); }
.cols li:last-child .col { background: var(--white); }
.cols .num { color: var(--white); align-self: end; }
.cols li > span:last-child { color: var(--muted); }
.station-foot { margin-top: 40px; max-width: 60ch; }

/* who it's for */
.who { background: var(--surface); }
.who h2 { margin-bottom: clamp(40px, 5vw, 72px); }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(32px, 4vw, 52px); }
.roles li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 8px; align-items: baseline; }
.roles h3 { grid-column: 1 / span 5; font-size: var(--fs-sub); font-stretch: 112%; font-weight: 560; }
.roles p { grid-column: 6 / span 6; font-size: var(--fs-lead); }

/* company */
.company-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; }
.company h2 { grid-column: 1 / -1; }
.company-text { grid-column: 1 / span 7; }
.company-facts { grid-column: 9 / span 4; margin: 0; display: grid; gap: 18px; align-content: start; }
.company-facts dt { color: var(--muted); font-size: var(--fs-ui); }
.company-facts dd { margin: 4px 0 0; color: var(--white); font-size: var(--fs-body); }
.statement { font-size: var(--fs-sub); line-height: 1.35; color: var(--white); max-width: 52ch; font-weight: 400; }

/* book a demo: the one white field on the page, the hottest thing here */
.demo { background: var(--white); color: var(--black); padding-block: var(--section); }
.demo h2, .demo a { color: var(--black); }
.demo ::selection { background: var(--black); color: var(--white); }
.demo :focus-visible { outline-color: var(--black); }
.demo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.demo-intro { grid-column: 1 / span 4; }
.demo .lead { color: var(--ink-2); margin-top: 24px; }
.demo-mail { margin-top: 28px; color: var(--ink-3); }
.demo-form { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* taste-skill-ignore: spam honeypot, visually hidden, not a rule */
.field label { font-size: 1rem; font-weight: 500; }
.field label span { color: var(--ink-4); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--white); color: var(--black);
  border: 2px solid var(--scale-4); border-radius: 0; caret-color: var(--black); font-size: var(--fs-ui);
  transition: border-color 160ms var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); outline: 2px solid var(--black); outline-offset: 0; }
.field input::placeholder { color: var(--ink-5); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230A0B0D' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; color-scheme: light; }
.field [aria-invalid="true"] { border-color: var(--black); border-width: 3px; }
.field-error { font-size: var(--fs-ui); color: var(--black); font-weight: 500; }
.field-error::before { content: "Needed: "; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.form-note { font-size: var(--fs-ui); color: var(--ink-3); }

/* credits page */
.credits-page { padding-block: clamp(64px, 8vw, 120px); display: grid; gap: 28px; justify-items: start; }
.credits-page h1 { font-size: var(--fs-h2); }
.credits-page pre { font-family: var(--font); margin: 0; padding: 24px; background: var(--surface); color: var(--chrome); font-size: var(--fs-ui); line-height: 1.5; white-space: pre-wrap; max-width: 80ch; }

/* legal pages: a reading measure, quiet headings */
.legal { padding-block: clamp(56px, 7vw, 104px) clamp(72px, 9vw, 136px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.legal-text { grid-column: 1 / span 8; max-width: 72ch; }
.legal-toc { grid-column: 10 / span 3; position: sticky; top: calc(var(--nav-h) + 32px); font-size: var(--fs-ui); }
.legal-toc p { color: var(--white); font-weight: 560; font-stretch: 112%; margin-bottom: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal-toc a { color: var(--chrome); text-decoration: none; }
.legal-toc a:hover { color: var(--white); text-decoration: underline; }
.legal ul + p { margin-top: 14px; }
@media (max-width: 1023px) { .legal-text { grid-column: 1 / -1; } .legal-toc { display: none; } }
.legal h1 { font-size: var(--fs-h2); max-width: 22ch; }
.legal .updated { margin-top: 16px; color: var(--muted); font-size: var(--fs-ui); }
.legal .lead { margin-top: 32px; max-width: 60ch; }
.legal h2 { margin: 48px 0 14px; font-size: var(--fs-sub); font-stretch: 112%; letter-spacing: 0; line-height: 1.2; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 1.2em; display: grid; gap: 10px; }
.legal li::marker { color: var(--muted); }
.legal strong { color: var(--white); font-weight: 560; }
.legal-cta { min-height: 42px; padding: 0 18px; }
.legal-footer { padding-top: 40px; }
.legal-footer .footer-row { margin-top: 0; }
.footer-row [aria-current="page"] { color: var(--white); }

/* footer: the name returns at full width */
.footer { padding: clamp(72px, 9vw, 128px) 0 40px; }
.footer-mark { width: 100%; height: auto; }
.footer-row { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: clamp(32px, 4vw, 56px); color: var(--muted); font-size: 1rem; align-items: baseline; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-left: auto; }
.footer-row a { color: var(--chrome); }
.footer-row nav a { text-decoration: none; }
.footer-row nav a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: 20px; font-size: var(--fs-ui); color: var(--muted); }
.footer-legal nav { display: flex; gap: 24px; }
.footer-legal a { color: var(--chrome); }
.form-privacy { font-size: var(--fs-ui); color: var(--ink-3); }

/* reveal, driven by the scroll itself: outside its entry range an element is simply visible (so print,
   captures and browsers without scroll timelines show everything); as it enters the screen it rises in,
   and thermal images "develop" in five steps like a camera warming up */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes develop { from { filter: brightness(0.15); } to { filter: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      animation: rise var(--ease) none; animation-timeline: view();
      animation-range: entry calc(var(--d, 0) * 6%) entry calc(55% + var(--d, 0) * 6%);
    }
    .specimens img {
      animation: develop steps(5, end) none; animation-timeline: view();
      animation-range: entry 20% entry 90%;
    }
  }
}
@media print { [data-reveal], .specimens img { animation: none !important; } }

/* tablets */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .hero-title, .hero-side { grid-column: 1 / -1; }
  .hero-side { padding-bottom: 0; }
  .meter-bar { grid-template-columns: 1fr; }
  /* the frame plays through its six states as it passes; the steps read as a list under it */
  .steps { grid-column: 1 / -1; }
  .stage-col { grid-column: 1 / -1; position: relative; top: auto; margin-bottom: 44px; order: -1; }
  .scene-live .step, .scene-live .step:first-child { min-height: 0; display: block; padding: 0 0 32px; }
  .scene-live .step:not(.is-active) h3 { color: var(--white); }
  .scene-live .step:not(.is-active) p { color: var(--chrome); }
  .find-intro, .specimens { grid-column: 1 / -1; }
  .station-head h2, .station-head .lead { grid-column: 1 / -1; }
  .app-body { grid-template-columns: 1fr; }
  .app-row { grid-template-columns: 1fr; }
  .roles h3, .roles p { grid-column: 1 / -1; }
  .company h2, .company-text, .company-facts { grid-column: 1 / -1; }
  .statement { max-width: none; }
  .demo-intro, .demo-form { grid-column: 1 / -1; }
}

/* phones */
@media (max-width: 767px) {
  :root { --nav-h: 60px; }
  .nav-cta { display: none; }
  .brand img { height: 32px; }
  h1 { font-size: 10.4cqi; font-stretch: 108%; }
  h2 { font-size: clamp(1.875rem, 8.2vw, 2.25rem); font-stretch: 112%; }
  .readout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .readout dd { white-space: normal; }
  .meter-tools .btn { flex: 1; }
  .meter-key .stamp { margin-left: 0; flex-basis: 100%; }
  .stage-col { margin-inline: calc(var(--gutter) * -1); }
  .stage { padding: 12px var(--gutter) 14px; }
  .stage-plant .s4-tags, .stage-plant .s4-chips { display: none; }
  .stage-readout { grid-template-columns: 64px 1fr; gap: 16px; min-height: 104px; margin-top: 10px; }
  .zoom { width: 64px; height: 104px; }
  .readouts .r { font-size: var(--fs-ui); }
  .stage-note { display: none; }
  /* the legend becomes a list: picture beside its words */
  .specimens { grid-template-columns: 1fr; gap: 22px; }
  .specimens li { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto 1fr; column-gap: 18px; align-content: start; }
  .specimens img { grid-row: 1 / span 2; margin: 0; }
  /* the register stacks into the app's own phone list */
  .table-scroll { overflow: visible; }
  .register thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .register, .register tbody, .register td { display: block; }
  .register tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .register td { padding: 0; border: 0; white-space: normal; }
  .register td:nth-child(1) { grid-column: 2; grid-row: 2; justify-self: end; }
  .register td:nth-child(2) { grid-column: 1; grid-row: 1; }
  .register td:nth-child(3), .register td:nth-child(5) { display: none; }
  .register td:nth-child(4) { grid-column: 1; grid-row: 2; }
  .register td:nth-child(6) { grid-column: 2; grid-row: 1; }
  .register td:nth-child(7) { grid-column: 2; grid-row: 3; justify-self: end; color: var(--muted); }
  .register td:nth-child(8) { grid-column: 1; grid-row: 3; color: var(--muted); }
  .register tbody tr:nth-child(n+4):not(.sel) { display: none; }
  .register tr.sel { background: var(--raised); }
  .register tr.sel td { background: none; }
  .demo-form { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: 64px 1fr 64px; gap: 10px; }
  .footer-row nav { margin-left: 0; }
}

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