/* =====================================================================
   Assay · the style
   Corporate science for regulated manufacturers: Newsreader headlines
   with a cobalt italic, Albert Sans for reading, JetBrains Mono for every
   number and unit, on bench-white graph paper.
   Signature pieces: the chromatogram that runs and integrates its peaks
   (.chroma), the batch record that releases with a stamp (.lot), and
   spec-window bars (.spec) that put every result inside its limits.
   Motion: html.calm stills everything (footer switch, remembered as
   "site-motion"; default from prefers-reduced-motion).
   ===================================================================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
html.calm:focus-within { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.62 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-s); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; transition: top var(--d) var(--ease); }
.skip:focus { top: 12px; }

/* graph paper: the ground of the hero and the instrument panels */
.graph { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; }

/* ---------- type ---------- */
.h1, .h2, .h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; font-optical-sizing: auto; }
.h1 { font-size: var(--fs-h1); line-height: 0.98; font-weight: 450; letter-spacing: -0.028em; }
.h2 { font-size: var(--fs-h2); line-height: 1.04; font-weight: 450; letter-spacing: -0.022em; }
.h3 { font-size: var(--fs-h3); line-height: 1.22; font-weight: 550; letter-spacing: -0.01em; }
.h1 em, .h2 em, .h3 em { font-style: italic; font-weight: 400; color: var(--cobalt); }
.lead { font-size: var(--fs-lead); line-height: 1.56; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
/* the eyebrow: mono caps with an axis corner, like the origin of a plot */
.tag { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: ""; width: 9px; height: 9px; border-left: 1.5px solid var(--cobalt); border-bottom: 1.5px solid var(--cobalt); flex: none; transform: translateY(-1px); }
.num, .unit { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.unit { font-size: 0.42em; letter-spacing: 0; color: var(--muted); font-weight: 500; margin-left: 0.25em; }
.prose p + p { margin-top: 1em; }
.prose a, .link { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover, .link:hover { color: var(--cobalt-2); text-decoration-thickness: 2px; }

/* ---------- buttons: squared, exact ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: var(--r-s); border: 1.5px solid transparent; font: 600 15px/1 var(--body); letter-spacing: 0.005em; text-decoration: none; cursor: pointer; transition: transform var(--d-fast) var(--ease), background var(--d-fast), border-color var(--d-fast), color var(--d-fast); white-space: nowrap; }
.btn svg { width: 17px; height: 17px; flex: none; transition: transform var(--d) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-cobalt { background: var(--cobalt); color: var(--on-cobalt); }
.btn-cobalt:hover { background: var(--cobalt-2); }
.btn-line { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink); padding-inline: 6px; }
.btn-ghost:hover { color: var(--cobalt); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header and phone menu ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--d) var(--ease); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
/* the mark: one integrated peak inside a square, the shape of a measured result */
.brand-mark { position: relative; width: 34px; height: 34px; border-radius: 7px; background: var(--ink); flex: none; overflow: hidden; }
.brand-mark::before { content: ""; position: absolute; inset: 0; background: var(--cobalt); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M5 26h3c3 0 4-1 5.2-4.6C15 15 15.6 7 17 7s2 8 3.8 14.4C22 25 23 26 26 26h3v2H5z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M5 26h3c3 0 4-1 5.2-4.6C15 15 15.6 7 17 7s2 8 3.8 14.4C22 25 23 26 26 26h3v2H5z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.brand-mark::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 6px; height: 1.5px; background: var(--paper); opacity: 0.55; }
.brand-word { font: 500 23px/1 var(--display); letter-spacing: -0.02em; }
.brand-sub { display: block; font: 500 9.5px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color var(--d-fast); }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform var(--d) var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--card); cursor: pointer; place-items: center; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform var(--d) var(--ease), background var(--d-fast); }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; width: 12px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { width: 18px; transform: translateY(-6px) rotate(-45deg); }
/* the phone menu slides out of the header like an instrument drawer, each link indexed */
.site-menu { position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 20px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); counter-reset: m; animation: as-drawer var(--d-slow) var(--ease) both; }
.site-menu a { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 6px; padding: 15px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font: 450 24px/1.1 var(--display); letter-spacing: -0.01em; color: var(--ink); counter-increment: m; }
.site-menu a::before { content: counter(m, decimal-leading-zero); font: 500 11px/1 var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.site-menu a::after { content: ""; width: 8px; height: 8px; border-top: 1.5px solid var(--cobalt); border-right: 1.5px solid var(--cobalt); transform: rotate(45deg); align-self: center; }
.site-menu a[aria-current="page"] { color: var(--cobalt); }
.site-menu .btn { counter-increment: none; display: flex; margin-top: 16px; width: 100%; border: 0; font: 600 15px/1 var(--body); color: var(--on-cobalt); }
.site-menu .btn::before, .site-menu .btn::after { display: none; }
@keyframes as-drawer { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
html.calm .site-menu { animation: none; }
@media (max-width: 940px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav .nav-cta { display: none; }
}
@media (min-width: 941px) { .site-menu { display: none !important; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 124px); }
.section.alt { background: var(--well); }
.section.rule { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(32px, 4.5vw, 60px); }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: 24px 56px; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px; box-shadow: var(--shadow-card); min-width: 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 84px) clamp(56px, 8vw, 108px); border-bottom: 1px solid var(--line); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask: linear-gradient(180deg, #000 30%, transparent 96%); mask: linear-gradient(180deg, #000 30%, transparent 96%); opacity: 0.8; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; font: 500 12.5px/1.3 var(--mono); color: var(--muted); }
.hero-facts span { display: inline-flex; gap: 8px; align-items: center; }
.hero-facts svg { width: 15px; height: 15px; color: var(--cobalt); }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- the chromatogram ---------- */
.chroma { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-lift); overflow: hidden; min-width: 0; }
.chroma-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.chroma-head b { color: var(--ink); font-weight: 600; }
.chroma-head .live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.chroma-head .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.chroma.running .chroma-head .live i { background: var(--t2); box-shadow: 0 0 0 0 color-mix(in srgb, var(--t2) 60%, transparent); animation: as-blink 1.2s var(--ease) infinite; }
@keyframes as-blink { 70% { box-shadow: 0 0 0 7px transparent; } }
.chroma-plot { position: relative; padding: 34px 14px 0 46px; }
.chroma-plot::before { content: ""; position: absolute; inset: 34px 14px 0 46px; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 100% 25%, 10% 100%; border-left: 1px solid var(--ink-2); border-bottom: 1px solid var(--ink-2); }
.chroma svg { position: relative; width: 100%; height: auto; overflow: visible; }
.chroma .trace { fill: none; stroke: var(--cobalt); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chroma .area { opacity: 0; transition: opacity 600ms var(--ease); }
.chroma .area.on { opacity: 0.22; }
/* peak labels are HTML over the plot so they stay legible at any width */
.chroma .labels { position: absolute; inset: 34px 14px 0 46px; pointer-events: none; }
.chroma .peak-label { position: absolute; transform: translate(-50%, calc(-100% - 6px)); display: grid; justify-items: center; gap: 1px; padding-bottom: 9px; font: 600 11px/1.15 var(--mono); color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.chroma .peak-label small { font-weight: 500; font-size: 10.5px; color: var(--muted); }
.chroma .peak-label::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 7px; border-left: 1px dashed var(--ink-2); }
.chroma .peak-label.on { opacity: 1; transform: translate(-50%, calc(-100% - 2px)); }
.chroma .peak-label.edge-l { transform: translate(-12px, calc(-100% - 6px)); justify-items: start; }
.chroma .peak-label.edge-l.on { transform: translate(-12px, calc(-100% - 2px)); }
.chroma .peak-label.edge-l::after { left: 12px; }
.chroma .cursor { stroke: var(--t2); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; }
.chroma.running .cursor { opacity: 1; }
.chroma .axis-y { position: absolute; left: 6px; top: 34px; bottom: 0; width: 34px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font: 500 10px/1 var(--mono); color: var(--muted); }
.chroma .axis-x { display: flex; justify-content: space-between; padding: 6px 14px 10px 46px; font: 500 10px/1 var(--mono); color: var(--muted); }
.chroma-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.readout { display: flex; gap: 22px; font: 500 12px/1.3 var(--mono); color: var(--muted); }
.readout b { display: block; font: 600 20px/1.1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 3px; }
.chroma .rerun { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-s); padding: 8px 12px; font: 600 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.chroma .rerun:hover { border-color: var(--cobalt); color: var(--cobalt); }
.chroma .rerun svg { width: 14px; height: 14px; }
/* integration table under the plot */
.peaks { width: 100%; border-collapse: collapse; font: 500 12.5px/1.3 var(--mono); }
.peaks th, .peaks td { padding: 8px 18px; text-align: left; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.peaks th { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.peaks td.r, .peaks th.r { text-align: right; }
.peaks tbody tr { opacity: 0.25; transition: opacity 420ms var(--ease); }
.peaks tbody tr.on { opacity: 1; }
.peaks .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; background: currentColor; }
html.calm .chroma .area, html.calm .chroma .peak-label, html.calm .peaks tbody tr { transition: none; }
.chroma .axis-y span:last-child { transform: translateY(50%); } .chroma .axis-y span:first-child { transform: translateY(-50%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chroma .trace { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cobalt) 55%, transparent)); } }
:root[data-theme="dark"] .chroma .trace { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cobalt) 55%, transparent)); }
@media (max-width: 520px) { .chroma-plot { padding-left: 34px; } .chroma-plot::before, .chroma .labels { left: 34px; } .chroma .peak-label { font-size: 10px; } .chroma .axis-y { width: 24px; left: 4px; } .chroma .axis-x { padding-left: 34px; } .readout { gap: 14px; } .readout b { font-size: 17px; } .peaks th, .peaks td { padding: 7px 12px; } }

/* ---------- the batch record ---------- */
.lot { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-lift); overflow: hidden; min-width: 0; }
.lot-head { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 20px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--cobalt-soft), transparent 70%); }
.lot-head .k { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lot-head .v { font: 600 17px/1.3 var(--mono); letter-spacing: 0.02em; }
.lot-head .r { text-align: right; }
.lot-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.lot-checks li b { font-weight: 600; }
.lot-checks li small { display: block; font: 500 11.5px/1.3 var(--mono); color: var(--muted); }
.lot-checks .res { font: 600 13px/1.2 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.lot-checks .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background var(--d) var(--ease), border-color var(--d) var(--ease); }
.lot-checks .tick::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--on-cobalt); border-bottom: 2px solid var(--on-cobalt); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 360ms cubic-bezier(0.3, 1.6, 0.5, 1); }
.lot-checks li.ok .tick { background: var(--pass); border-color: var(--pass); }
.lot-checks li.ok .tick::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.lot-foot { position: relative; display: flex; justify-content: space-between; gap: 16px; align-items: end; padding: 16px 20px 18px; min-height: 110px; }
.lot-foot .sign { font: 500 11.5px/1.5 var(--mono); color: var(--muted); }
.lot-foot .sign b { display: block; font: italic 400 22px/1.1 var(--display); color: var(--ink); margin-top: 2px; letter-spacing: 0; }
/* the release stamp */
.stamp { position: absolute; right: 26px; bottom: 24px; padding: 8px 14px 7px; border: 2.5px solid var(--pass); border-radius: 6px; color: var(--pass); font: 700 17px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-align: center; transform: rotate(-9deg) scale(1.7); opacity: 0; box-shadow: inset 0 0 0 2px var(--card), inset 0 0 0 3.5px var(--pass); }
.stamp small { display: block; margin-top: 4px; font-size: 9.5px; letter-spacing: 0.1em; font-weight: 600; }
.lot.released .stamp { animation: as-stamp 520ms cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
@keyframes as-stamp { 0% { opacity: 0; transform: rotate(-4deg) scale(1.8); } 60% { opacity: 1; transform: rotate(-10deg) scale(0.94); } 100% { opacity: 0.94; transform: rotate(-9deg) scale(1); } }
html.calm .lot.released .stamp { animation: none; opacity: 0.94; transform: rotate(-9deg); }
html.calm .lot-checks .tick, html.calm .lot-checks .tick::after { transition: none; }

/* ---------- spec-window bars: the result inside its limits ---------- */
.spec { --lo: 20%; --hi: 80%; --v: 50%; position: relative; display: block; width: 100%; min-width: 120px; height: 18px; }
.spec::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--line); }
.spec::after { content: ""; position: absolute; left: var(--lo); right: calc(100% - var(--hi)); top: 4px; height: 10px; border-radius: 2px; background: var(--cobalt-soft); border-left: 1.5px solid var(--cobalt); border-right: 1.5px solid var(--cobalt); }
.spec i { position: absolute; z-index: 1; top: 3px; left: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 3px var(--card); transition: left 1.1s var(--run); }
.spec.on i, html.calm .spec i { left: var(--v); }
html.calm .spec i { transition: none; }
.spec.fail i { background: var(--alert); }

/* ---------- figures (big serif numbers, mono units) ---------- */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures > div { padding: 26px 22px 24px; display: grid; gap: 8px; align-content: start; }
.figures > div + div { border-left: 1px solid var(--line); }
.figures b { font: 400 clamp(40px, 4.4vw, 64px)/0.95 var(--display); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.figures > div > span { font-size: 14.5px; color: var(--ink-2); }
.figures small { font: 500 11px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 860px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figures > div:nth-child(3) { border-left: 0; } .figures > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 420px) { .figures { grid-template-columns: 1fr; } .figures > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- capability cards ---------- */
.cap { display: grid; gap: 14px; align-content: start; transition: border-color var(--d) var(--ease), transform var(--d) var(--ease); }
.cap:hover { border-color: var(--cobalt); transform: translateY(-2px); }
.cap .ic { width: 44px; height: 44px; border-radius: var(--r-s); display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt); }
.cap .ic svg { width: 22px; height: 22px; }
.cap .idx { position: absolute; right: 22px; top: 24px; font: 500 11px/1 var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.cap p { color: var(--ink-2); }
.cap .more { font-weight: 600; color: var(--cobalt); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; font-size: 15px; }
.cap .more svg { width: 15px; height: 15px; transition: transform var(--d) var(--ease); }
.cap .more:hover svg { transform: translateX(3px); }

/* ---------- process: a numbered line with stations ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 18px; counter-reset: st; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 1.5px; background: var(--line); }
.process::after { content: ""; position: absolute; left: 0; top: 15px; height: 1.5px; width: 100%; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--run); }
.process.entered::after { transform: scaleX(1); }
.process li { position: relative; display: grid; gap: 8px; align-content: start; counter-increment: st; padding-top: 46px; }
.process li::before { content: counter(st, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--cobalt); font: 600 11px/1 var(--mono); color: var(--cobalt); z-index: 1; }
.section.alt .process li::before { background: var(--well); }
.process li b { font: 550 18px/1.25 var(--display); }
.process li p { font-size: 15px; color: var(--ink-2); }
html.calm .process::after { transition: none; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 22px; }
  .process::before, .process::after { left: 15px; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; }
  .process::after { transform: scaleY(0); transform-origin: top; }
  .process.entered::after { transform: scaleY(1); }
  .process li { padding: 2px 0 0 52px; }
}

/* ---------- notices (regulatory and safety) ---------- */
.notice { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px 18px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--t2); font-size: 14.5px; color: var(--ink-2); }
.notice svg { width: 20px; height: 20px; color: var(--t2); margin-top: 1px; }
.notice b { color: var(--ink); }
.notice.safety { border-left-color: var(--alert); }
.notice.safety svg { color: var(--alert); }

/* ---------- announcements ---------- */
.ann { border-top: 1px solid var(--line); }
.ann li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 18px 2px; border-bottom: 1px solid var(--line); }
.ann time { font: 500 12.5px/1.3 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.ann a { font: 450 20px/1.3 var(--display); text-decoration: none; letter-spacing: -0.005em; }
.ann a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ann .meta { font: 500 11.5px/1.3 var(--mono); color: var(--muted); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 3px; font: 600 10.5px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; background: var(--cobalt-soft); color: var(--cobalt); vertical-align: 2px; margin-left: 8px; }
.badge.ps { background: color-mix(in srgb, var(--t2) 16%, var(--card)); color: color-mix(in srgb, var(--t2) 70%, var(--ink)); }
@media (max-width: 640px) { .ann li { grid-template-columns: 1fr; gap: 6px; } .ann a { font-size: 18px; } }

/* ---------- gate (who is this for?) ---------- */
.gate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gate button { display: grid; gap: 10px; align-content: start; text-align: left; padding: 26px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--card); cursor: pointer; transition: border-color var(--d-fast), transform var(--d-fast) var(--ease), box-shadow var(--d); }
.gate button:hover { border-color: var(--cobalt); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.gate button b { font: 500 24px/1.15 var(--display); letter-spacing: -0.01em; }
.gate button span { color: var(--ink-2); font-size: 15px; }
.gate button[aria-pressed="true"] { border-color: var(--cobalt); box-shadow: 0 0 0 1px var(--cobalt); }
@media (max-width: 720px) { .gate { grid-template-columns: 1fr; } }

/* ---------- facility plan with the pressure cascade ---------- */
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; box-shadow: var(--shadow-card); }
.plan svg { width: 100%; height: auto; }
.plan .room { fill: var(--well); stroke: var(--ink-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill var(--d); }
.plan .room.g7 { fill: color-mix(in srgb, var(--cobalt) 16%, var(--card)); }
.plan .room.g8 { fill: color-mix(in srgb, var(--cobalt) 8%, var(--card)); }
.plan g:hover .room, .plan g:focus .room { fill: color-mix(in srgb, var(--t2) 22%, var(--card)); }
.plan text { font: 600 12px var(--mono); fill: var(--ink); }
.plan text.sub { font-weight: 500; font-size: 10.5px; fill: var(--muted); }
.plan .flow { fill: none; stroke: var(--t2); stroke-width: 2; stroke-dasharray: 5 7; vector-effect: non-scaling-stroke; animation: as-flow 1.4s linear infinite; }
.plan .flow-head { fill: var(--t2); }
@keyframes as-flow { to { stroke-dashoffset: -24; } }
html.calm .plan .flow { animation: none; }
.plan-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font: 500 11.5px/1.3 var(--mono); color: var(--muted); }
.plan-key span { display: inline-flex; gap: 8px; align-items: center; }
.plan-key i { width: 14px; height: 10px; border: 1.5px solid var(--ink-2); border-radius: 2px; }

/* ---------- closing band ---------- */
.close { padding-block: clamp(56px, 8vw, 108px); }
.close-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 32px; align-items: end; padding: clamp(30px, 5vw, 68px); border-radius: var(--r-l); background: #0b1324; color: #e8edf7; isolation: isolate; }
.close-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 28px 28px; }
.close-card .h2 { color: #fff; }
.close-card .h2 em { color: #8ea4ff; }
.close-card p { color: #bec8dc; max-width: 54ch; margin-top: 14px; }
.close-card .tag { color: #8e99b1; }
.close-card .tag::before { border-color: #8ea4ff; }
.close-card .btn-cobalt { background: #8ea4ff; color: #071033; }
.close-card .btn-cobalt:hover { background: #b3c1ff; }
.close-card .btn-line { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.close-card .btn-line:hover { border-color: #fff; }
.close-card .deco { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; z-index: -1; opacity: 0.55; pointer-events: none; }
.close-card .deco path { fill: none; stroke: #8ea4ff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.close-card .deco path.fill { fill: rgba(142, 164, 255, 0.08); stroke: none; }
@media (max-width: 860px) { .close-card { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { padding-block: 60px 32px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font: 500 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.foot a:hover { color: var(--cobalt); }
.foot-reg { margin-top: 36px; padding: 16px 18px; border-radius: var(--r-s); background: var(--well); font: 500 12px/1.6 var(--mono); color: var(--muted); }
.foot-base { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot-switches { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- switch (Motion, Night shift, and any form switch) ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); cursor: pointer; font: 500 13.5px/1 var(--body); color: var(--ink-2); }
.switch .sw { position: relative; width: 36px; height: 20px; border-radius: 4px; background: var(--well); box-shadow: var(--shadow-press); transition: background var(--d-fast); flex: none; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 2px; background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform var(--d) var(--ease); }
.switch[aria-checked="true"] .sw { background: var(--cobalt); }
.switch[aria-checked="true"] .sw::after { transform: translateX(16px); background: #fff; }

/* ---------- reveal on scroll ---------- */
.js [data-enter] { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js [data-enter].entered { opacity: 1; transform: none; }
html.calm [data-enter] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* =====================================================================
   Multi-page kit
   ===================================================================== */
.page-head { position: relative; padding-block: clamp(30px, 4.5vw, 60px) clamp(34px, 4.5vw, 60px); border-bottom: 1px solid var(--line); isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask: linear-gradient(90deg, transparent 30%, #000); mask: linear-gradient(90deg, transparent 30%, #000); opacity: 0.8; }
.page-head .h1 { font-size: clamp(40px, 5vw, 72px); margin-top: 16px; }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px/1.3 var(--mono); color: var(--muted); letter-spacing: 0.02em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cobalt); }
.crumbs span[aria-hidden] { opacity: 0.6; }

.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .field > label, .field legend { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.field small { color: var(--muted); font-size: 13px; }
.field input, .field textarea, .field select, .select select { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--card); color: var(--ink); transition: border-color var(--d-fast), box-shadow var(--d-fast); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .select select:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 20%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.select { position: relative; }
.select select, .field select { appearance: none; -webkit-appearance: none; padding-right: 42px; }
.select::after { content: ""; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
fieldset.field-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow-card); display: grid; gap: 18px; }
.form-done { padding: 16px 18px; border-radius: var(--r-s); background: var(--cobalt-soft); color: var(--ink); font-weight: 550; border-left: 3px solid var(--cobalt); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--card); transition: border-color var(--d-fast), background var(--d-fast); }
.choice > span b { font-weight: 600; }
.choice > span small { color: var(--muted); font-size: 13px; }
.choice:hover > span { border-color: var(--ink-2); }
.choice input:checked + span { border-color: var(--cobalt); background: var(--cobalt-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--card); overflow: hidden; }
.seg button, .seg label { position: relative; padding: 9px 16px; border: 0; background: transparent; cursor: pointer; font: 600 13px/1.2 var(--mono); letter-spacing: 0.02em; color: var(--ink-2); }
.seg button + button, .seg label + label { border-left: 1.5px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--ink); color: var(--paper); }

input.range { --p: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--cobalt) 0 var(--p), var(--line) var(--p) 100%); cursor: pointer; }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 3px; background: var(--card); border: 2px solid var(--cobalt); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
input.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 3px; background: var(--card); border: 2px solid var(--cobalt); }

.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table caption { text-align: left; padding: 14px 18px 0; font: 500 var(--fs-label)/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.table th, .table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font: 500 11px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--well) 60%, var(--card)); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table td.r, .table th.r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.table td.m { font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; }
@media (max-width: 680px) {
  .table.stack { overflow: visible; border: 0; background: transparent; }
  .table.stack table, .table.stack tbody, .table.stack tr, .table.stack td, .table.stack th { display: block; }
  .table.stack caption { display: block; padding: 0 0 10px; }
  .table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stack tr { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 10px; padding: 6px 0; }
  .table.stack td, .table.stack th { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 12px; align-items: center; border: 0; padding: 8px 16px; text-align: left !important; }
  .table.stack td::before, .table.stack th::before { content: attr(data-label); font: 500 11px/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
}

@media print { .nav, .foot-switches, .menu-btn, .site-menu { display: none !important; } body { background: #fff; } .hero::before, .page-head::before { display: none; } }
