/* ==========================================================================
   HydraulicsUAE design system: "workshop monograph" (2026-10-19)
   Brand guideline: docs/BRAND.md. One stylesheet for the public site, account and admin.

   Ideas taken from Refero styles and made into one system:
   - Superlative: warm cream canvas, condensed uppercase "silkscreen" labels, one ember accent
   - T1 Energy: light display weight, documentary industrial photos, square-prefixed section labels
   - teenage engineering: zero radius, hairline grids with vertical rules, rear-panel spec footer
   - Figure: spec rails (big light values over grey labels, 1px rules)
   - Brex: one accent colour, used for the primary action only
   - ON.energy: dark / light section rhythm
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("/fonts/inter-var-3a07dd3930347845c2186d44e8dadb94.woff2?vsn=d") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  color-scheme: light;
  /* Colour: five neutrals, one dark, one signal. Nothing else. */
  --canvas: #f2f0eb;     /* warm workshop cream: page background */
  --paper: #ffffff;      /* inputs, raised panels, photo mats */
  --ink: #161513;        /* text, rules that matter, filled controls */
  --graphite: #5c5953;   /* secondary text (6.3:1 on canvas) */
  --ash: #8f8b83;        /* labels and meta, 14px+ condensed only */
  --rule: #d6d2c9;       /* hairlines */
  --onyx: #121211;       /* dark chapters, footer */
  --signal: #f05a12;     /* hydraulic orange: primary action, live dot, gauge needle. Never text. */
  --danger: #b42318;     /* form errors only */

  --on-dark: #f2f0eb;
  --on-dark-2: #a9a59c;
  --rule-dark: #2c2b28;

  /* Type: one family, Inter (owner choice 2026-10-19). Labels are Inter 500, small, uppercase, tracked. */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --cond: var(--sans);

  --t-display: clamp(2.5rem, 1.6rem + 3.6vw, 5rem);    /* 40 → 80 */
  --t-hero: clamp(2.1rem, 1.5rem + 2.6vw, 3.75rem);     /* 34 → 60 */
  --t-xl: clamp(1.75rem, 1.35rem + 1.5vw, 2.6rem);      /* 28 → 42 */
  --t-l: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem);       /* 21 → 26 */
  --t-m: 1.2rem;                                         /* 19 */
  --t-body: 1.0625rem;                                   /* 17 */
  --t-s: 0.9375rem;                                      /* 15 */
  --t-label: 0.75rem;                                    /* 12, uppercase labels */

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 136px;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --gap: 20px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 260ms;
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100dvh; background: var(--canvas); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-body); font-weight: 400; line-height: 1.55;
  letter-spacing: -0.006em; font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-synthesis-weight: none;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--t-hero); font-weight: 300; }
h2 { font-size: var(--t-xl); font-weight: 300; }
h3 { font-size: var(--t-m); font-weight: 500; letter-spacing: -0.01em; }
p, li, dd { text-wrap: pretty; overflow-wrap: break-word; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 500; }
small { font-size: var(--t-s); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
hr { border: 0; border-top: 1px solid var(--rule); margin-block: var(--s-7); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; padding: 1px 5px; background: var(--paper); border: 1px solid var(--rule); }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--canvas); }
main:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--canvas); }
.skip-link:focus-visible { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ---------- 3. Type helpers ---------------------------------------------- */
/* The "silkscreen" voice: condensed, uppercase, tracked. Labels, nav, buttons, spec plates. */
.label, .eyebrow, .masthead__kicker, .row__label, .section__label, .toc__label, .quote-aside__label,
.quote-cta__label, .footer-col h2, .field__label, .calc__label, .calc__out dt, .stats__list dt, .entry__n,
.notes__n, .shot__meta, .crumbs, .chip, .pill, .table th, .kv dt, .tag {
  font-family: var(--cond); font-weight: 500; font-size: var(--t-label); line-height: 1.25;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--graphite);
}
/* Section marker: a small square before the label (ink, or signal when it marks something live). */
.label--mark::before, .row__label::before, .masthead__kicker::before, .quote-aside__label::before, .quote-cta__label::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 10px; background: currentColor; vertical-align: 0.08em;
}
.t-display { font-size: var(--t-display); font-weight: 300; line-height: 0.98; letter-spacing: -0.035em; }
.t-hero { font-size: var(--t-hero); font-weight: 300; line-height: 1.04; letter-spacing: -0.03em; }
.t-xl { font-size: var(--t-xl); font-weight: 300; line-height: 1.08; letter-spacing: -0.025em; }
.t-l { font-size: var(--t-l); font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; }
.t-m { font-size: var(--t-m); font-weight: 500; line-height: 1.3; }
.muted, .grey, .text-muted { color: var(--graphite); }
.text-sm { font-size: var(--t-s); }
.tabular { font-variant-numeric: tabular-nums; }
.mt-4 { margin-block-start: var(--s-4); }
.mt-6 { margin-block-start: var(--s-6); }
.accent { color: var(--signal); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--graphite); }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-family: var(--cond); font-weight: 500; font-size: var(--t-label); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); }
.more:hover .arrow { transform: translateX(3px); }
.arrow { display: inline-block; flex: none; width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.arrow--ne { width: 12px; height: 12px; }
.arrow--back { transform: scaleX(-1); }
.icon { width: 18px; height: 18px; flex: none; }
.mark { display: inline-flex; align-items: center; gap: 8px; }
.mark--247::before, .live-dot { content: ""; display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 22%, transparent); }

/* ---------- 4. Layout ----------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
@media (max-width: 47.99rem) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stack { display: flex; flex-direction: column; gap: var(--s-5); }
.stack--sm { gap: var(--s-3); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

/* The one section pattern: a hairline, a label in columns 1-3, content from column 4. */
/* The rule is drawn inside the gutters, so it lines up with the content, not the screen edge. */
.row { padding-block: var(--s-5) var(--s-9); background: linear-gradient(var(--ink), var(--ink)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.row--tight { padding-block-end: var(--s-8); }
.row--open { background: none; padding-block-start: var(--s-6); }
.row__label { grid-column: 1 / span 3; padding-top: 6px; color: var(--ink); }
.row__label .muted, .row__label .more { display: flex; margin-top: var(--s-3); color: var(--graphite); }
.row__label .more { color: var(--ink); }
.row__main { grid-column: 4 / span 6; }
.row__wide { grid-column: 4 / -1; min-width: 0; }
.row__full { grid-column: 1 / -1; }
.row__head { font-size: var(--t-xl); font-weight: 300; line-height: 1.08; letter-spacing: -0.025em; }
.row__text { margin-block-start: var(--s-5); max-width: 40em; color: var(--graphite); }
@media (max-width: 63.99rem) {
  .row__label { grid-column: 1 / -1; margin-block-end: var(--s-6); }
  .row__main, .row__wide { grid-column: 1 / -1; }
}

/* ---------- 5. Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink);
  font-family: var(--sans); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { background: var(--ink); color: var(--canvas); }
.btn:hover .arrow { transform: translateX(3px); }
/* Primary: the one orange thing in a view. */
.btn--ink, .btn--primary { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--ink:hover, .btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.btn--dark { background: var(--ink); color: var(--canvas); }
.btn--dark:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--ghost { border-color: transparent; padding-inline: 12px; }
.btn--ghost:hover { background: transparent; color: var(--graphite); }
.btn--danger { border-color: var(--danger); color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn--lg { min-height: 56px; padding: 0 28px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.on-dark .btn { border-color: var(--on-dark); color: var(--on-dark); }
.on-dark .btn:hover { background: var(--on-dark); color: var(--ink); }
.on-dark .btn--ink { border-color: var(--signal); color: var(--ink); }

/* ---------- 6. Header and navigation -------------------------------------- */
.topbar { background: var(--onyx); color: var(--on-dark-2); font-family: var(--cond); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.07em; text-transform: uppercase; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 36px; }
.topbar a { color: var(--on-dark); }
.topbar__live { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); }
.topbar__links { display: flex; gap: var(--s-5); }
@media (max-width: 47.99rem) { .topbar__links { display: none; } }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-6); min-height: var(--header-h); }
/* Wordmark: "hydraulics" all lowercase, "UAE" in a small ink plate (owner 2026-10-19). Visual only; titles keep "HydraulicsUAE". */
.brand { display: inline-flex; align-items: baseline; gap: 0; margin-inline-end: auto; font-family: var(--sans); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; text-transform: lowercase; }
.brand span { font-family: var(--cond); font-weight: 600; font-size: 0.5625rem; letter-spacing: 0.07em; text-transform: uppercase; margin-inline-start: 4px; padding: 2px 4px 1.5px; background: var(--ink); color: var(--canvas); transform: translateY(-2px); }
.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav > a:not(.btn) { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-family: var(--cond); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav > a:not(.btn):hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { margin-inline-start: var(--s-2); }
.menu-btn { display: none; min-height: 44px; padding: 0; border: 0; background: none; font-family: var(--cond); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.cta-short { display: none; }
@media (max-width: 63.99rem) {
  .nav > a:not(.btn) { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .site-header__inner { gap: var(--s-4); }
}
@media (max-width: 30rem) { .header-cta .cta-full { display: none; } .header-cta .cta-short { display: inline; } }
.mobile-nav { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0 var(--gutter) var(--s-6); border: 0; background: var(--onyx); color: var(--on-dark); overflow-y: auto; }
.mobile-nav::backdrop { background: transparent; }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); border-bottom: 1px solid var(--rule-dark); }
.mobile-nav .brand span { background: var(--on-dark); color: var(--ink); }
.mobile-nav .menu-btn { color: var(--on-dark); }
.mobile-nav__links { margin-block: var(--s-6); font-size: var(--t-xl); font-weight: 300; letter-spacing: -0.02em; line-height: 1.25; }
.mobile-nav__links li { border-bottom: 1px solid var(--rule-dark); }
.mobile-nav__links a { display: block; padding-block: 10px; }
.mobile-nav .btn-row { flex-direction: column; align-items: stretch; }
.mobile-nav .btn { border-color: var(--on-dark); color: var(--on-dark); }
.mobile-nav .btn--ink { border-color: var(--signal); color: var(--ink); }

/* ---------- 7. Hero (home) ------------------------------------------------- */
.hero { padding-block: clamp(40px, 6vw, 96px) clamp(48px, 6vw, 96px); align-items: end; row-gap: var(--s-7); }
.hero__text { grid-column: 1 / span 7; }
.hero__kicker { display: flex; align-items: center; gap: 10px; margin-block-end: var(--s-6); color: var(--ink); }
.statement { font-size: var(--t-display); font-weight: 300; line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.statement .grey { color: var(--ash); }
.hero__lede { margin-block-start: var(--s-6); max-width: 34em; font-size: var(--t-m); line-height: 1.5; color: var(--graphite); }
.hero__media { grid-column: 8 / -1; position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__plate { position: absolute; left: 0; bottom: 0; display: grid; gap: 2px; padding: 14px 16px; background: var(--onyx); color: var(--on-dark); min-width: 62%; }
.hero__plate b { font-family: var(--cond); font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; font-size: var(--t-label); color: var(--on-dark-2); }
.hero__plate span { font-size: var(--t-s); }
@media (max-width: 63.99rem) { .hero__text, .hero__media { grid-column: 1 / -1; } .hero__media img { aspect-ratio: 4 / 3; } }

/* "We need ___ in ___" sentence form, as a control strip */
.ask { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1.4fr) auto minmax(0, 1fr) auto; align-items: end; gap: 0 var(--s-4); padding: var(--s-5); background: var(--paper); border: 1px solid var(--ink); }
.ask__word { padding-bottom: 12px; font-family: var(--cond); font-weight: 500; font-size: var(--t-label); letter-spacing: 0.07em; text-transform: uppercase; color: var(--graphite); }
.ask__field select {
  width: 100%; min-height: 52px; padding: 0 28px 6px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent;
  font-size: var(--t-l); font-weight: 400; letter-spacing: -0.015em; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%);
  background-position: right 6px top 50%, right 0 top 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.ask__field select:invalid { color: var(--ash); }
.ask__field select option { font-size: 1rem; color: #161513; background: #fff; }
.ask__field select:focus { border-bottom: 2px solid var(--signal); }
.popular { grid-column: 1 / -1; color: var(--graphite); font-size: var(--t-s); }
.popular a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 63.99rem) {
  .ask { grid-template-columns: 1fr; gap: var(--s-2); }
  .ask__word { padding: var(--s-3) 0 0; }
  .ask__submit { margin-top: var(--s-4); }
}

/* ---------- 8. Spec rail (figures) ---------------------------------------- */
.stats { padding-block: 0 var(--s-9); }
.stats__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.stats__list > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: var(--s-5) var(--s-5) 0 0; border-right: 1px solid var(--rule); }
.stats__list > div + div { padding-left: var(--s-5); }
.stats__list > div:last-child { border-right: 0; }
.stats__list dd { font-size: var(--t-xl); font-weight: 300; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats__list dt { max-width: 18em; }
@media (max-width: 47.99rem) {
  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__list > div { padding: var(--s-5) var(--s-4) var(--s-5) 0 !important; border-bottom: 1px solid var(--rule); }
  .stats__list > div:nth-child(2n) { border-right: 0; padding-left: var(--s-4) !important; }
}

/* ---------- 9. Index lists and the hairline matrix ------------------------ */
.entries { border-top: 1px solid var(--rule); }
.entry { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 4fr) 28px; column-gap: var(--gap); align-items: baseline; padding-block: var(--s-5); border-bottom: 1px solid var(--rule); transition: background-color var(--dur) var(--ease); }
.entry::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--signal); transition: width 420ms var(--ease); }
a.entry:hover::before { width: 100%; }
.entry__n { color: var(--ash); font-variant-numeric: tabular-nums; }
.entry__title { font-size: var(--t-l); line-height: 1.2; letter-spacing: -0.015em; }
.entry__text { color: var(--graphite); font-size: var(--t-s); max-width: 34em; }
.entry__text small { display: block; margin-top: 6px; font-family: var(--cond); font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; font-size: var(--t-label); color: var(--ash); }
.entry > .arrow { justify-self: end; align-self: center; }
a.entry:hover .arrow { transform: translateX(4px); }
.entries--compact .entry__title { font-size: var(--t-m); }
.entries--stacked .entry { grid-template-columns: 7rem minmax(0, 1fr) 28px; }
@media (max-width: 63.99rem) {
  .entry { grid-template-columns: 2.5rem minmax(0, 1fr) 24px; row-gap: 6px; }
  .entry__title, .entry__text { grid-column: 2; }
  .entry > .arrow { grid-column: 3; grid-row: 1; }
  .entries--stacked .entry { grid-template-columns: minmax(0, 1fr) 24px; }
  .entries--stacked .entry__n { grid-column: 1; }
  .entries--stacked .entry__title { grid-column: 1; }
  .entries--stacked .entry > .arrow { grid-column: 2; grid-row: 1 / span 2; }
}

/* The matrix: cells share 1px rules, no gaps (teenage engineering / Freitag). */
.matrix { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.matrix--4 { --cols: 4; }
.matrix > * { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cell { position: relative; display: flex; flex-direction: column; gap: var(--s-3); min-height: 15rem; padding: var(--s-5); background: transparent; transition: background-color var(--dur) var(--ease); }
a.cell:hover { background: var(--paper); }
.cell__n { font-family: var(--cond); font-weight: 500; font-size: var(--t-label); letter-spacing: 0.07em; color: var(--ash); }
.cell__title { margin-top: auto; font-size: var(--t-l); line-height: 1.15; letter-spacing: -0.015em; }
.cell__text { color: var(--graphite); font-size: var(--t-s); }
.cell .arrow { position: absolute; top: var(--s-5); right: var(--s-5); }
a.cell:hover .arrow { color: var(--signal); transform: translate(2px, -2px) rotate(-45deg); }
@media (max-width: 63.99rem) { .matrix, .matrix--4 { --cols: 2; } }
@media (max-width: 40rem) { .matrix, .matrix--4 { --cols: 1; } .cell { min-height: 0; } .cell__title { margin-top: var(--s-4); } }

.col-list { columns: 2 18rem; column-gap: var(--gap); border-top: 1px solid var(--rule); }
.col-list li { break-inside: avoid; }
.col-list a { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 52px; padding-block: 12px; border-bottom: 1px solid var(--rule); transition: color 200ms var(--ease); }
.col-list a:hover { color: var(--graphite); }
.col-list a:hover .arrow { transform: translateX(3px); }

.words { display: flex; flex-wrap: wrap; column-gap: 0.32em; font-size: var(--t-xl); font-weight: 300; line-height: 1.2; letter-spacing: -0.025em; }
.words a { color: var(--ash); transition: color 200ms var(--ease); }
.words a:hover { color: var(--ink); }
.words li:not(:last-child)::after { content: "/"; margin-inline-start: 0.32em; color: var(--rule); }

/* Numbered notes: process steps */
.notes { display: grid; grid-template-columns: repeat(var(--notes, 3), minmax(0, 1fr)); gap: 0; }
.notes--4 { --notes: 4; }
.notes li { padding: var(--s-5) var(--s-5) 0 0; border-top: 1px solid var(--ink); }
.notes li + li { padding-left: var(--s-5); border-left: 1px solid var(--rule); }
.notes__n { display: block; margin-bottom: var(--s-6); color: var(--signal); }
.notes h3 { font-size: var(--t-m); }
.notes p { margin-top: var(--s-3); color: var(--graphite); font-size: var(--t-s); }
@media (max-width: 63.99rem) { .notes, .notes--4 { --notes: 2; row-gap: var(--s-6); } .notes li:nth-child(odd) { padding-left: 0; border-left: 0; } }
@media (max-width: 40rem) { .notes, .notes--4 { --notes: 1; } .notes li { padding-left: 0 !important; border-left: 0 !important; } }

/* ---------- 10. Photography ----------------------------------------------- */
.figure img, .shot__media img, .photo-grid img { width: 100%; object-fit: cover; background: var(--rule); }
.figure figcaption { display: flex; justify-content: space-between; gap: var(--s-4); padding-top: 10px; font-size: var(--t-s); color: var(--graphite); }
.figure--hero img { aspect-ratio: 21 / 9; }
.home-band { margin-block-end: var(--s-9); }
.photo-band { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2px; }
.photo-band a { display: block; overflow: hidden; position: relative; }
.photo-band img { width: 100%; height: clamp(260px, 30vw, 420px); object-fit: cover; transition: transform 900ms var(--ease); }
.photo-band a:hover img { transform: scale(1.03); }
.photo-band figcaption { position: absolute; left: 0; bottom: 0; padding: 8px 10px; background: var(--onyx); color: var(--on-dark); font-family: var(--cond); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.07em; text-transform: uppercase; max-width: 100%; }
@media (max-width: 47.99rem) { .photo-band { grid-template-columns: repeat(4, 70%); overflow-x: auto; scroll-snap-type: x mandatory; } .photo-band a { scroll-snap-align: start; } }

.shots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--gap); }
.shots--in-row { grid-column: 4 / -1; }
.shot { position: relative; }
.shot__media { display: block; overflow: hidden; background: var(--rule); }
.shot__media img { aspect-ratio: 4 / 3; transition: transform 900ms var(--ease); }
.shot:hover .shot__media img { transform: scale(1.03); }
.shot__placeholder { display: block; aspect-ratio: 4 / 3; background: repeating-linear-gradient(-45deg, var(--rule) 0 1px, transparent 1px 10px); }
.shot__title { margin-top: var(--s-4); font-size: var(--t-m); font-weight: 500; line-height: 1.3; }
.shot__title a::after { content: ""; position: absolute; inset: 0; }
.shot__meta { margin-top: 6px; }
@media (max-width: 63.99rem) { .shots, .shots--in-row { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .shots { grid-template-columns: 1fr; } }

.photo-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.photo-grid a { display: block; cursor: zoom-in; }
.photo-grid img { aspect-ratio: 4 / 3; }
.photo-grid figcaption { padding-top: 8px; font-size: var(--t-s); color: var(--graphite); }
@media (max-width: 47.99rem) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.logos > img, .logos > span { width: 100%; height: 96px; padding: 26px 22px; object-fit: contain; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); filter: grayscale(1) contrast(1.05); opacity: 0.62; mix-blend-mode: multiply; transition: opacity var(--dur) var(--ease); }
.logos > img:hover { opacity: 1; }
@media (max-width: 63.99rem) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgb(18 18 17 / 0.97); color: var(--on-dark); }
.lightbox__stage { display: flex; max-width: 92vw; max-height: 86vh; }
.lightbox__stage img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; min-height: 44px; padding: 0 12px; border: 0; background: none; color: inherit; font-family: var(--cond); font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; }
.lightbox__close { top: 12px; right: var(--gutter); }
.lightbox__prev { left: var(--gutter); top: 50%; translate: 0 -50%; }
.lightbox__next { right: var(--gutter); top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; font-size: var(--t-s); color: var(--on-dark-2); }
body.lightbox-open { overflow: hidden; }

/* ---------- 11. Inner pages ---------------------------------------------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; padding: var(--s-5) 0 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--rule); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current="page"] { color: var(--ink); }
.masthead { row-gap: var(--s-5); padding-block: clamp(36px, 5vw, 80px) clamp(36px, 4vw, 64px); }
.masthead__kicker { grid-column: 1 / span 3; padding-top: 0.9em; color: var(--ink); }
.masthead__kicker .muted { display: block; margin-top: 6px; margin-left: 17px; color: var(--graphite); }
.masthead__title { grid-column: 4 / span 9; font-size: var(--t-hero); font-weight: 300; line-height: 1.02; letter-spacing: -0.035em; }
.masthead__title .grey { display: block; color: var(--ash); }
.masthead__intro { grid-column: 4 / span 7; max-width: 38em; font-size: var(--t-m); line-height: 1.5; color: var(--graphite); }
.masthead__body { grid-column: 4 / -1; }
@media (max-width: 63.99rem) { .masthead__kicker, .masthead__title, .masthead__intro, .masthead__body { grid-column: 1 / -1; } .masthead__kicker { padding: 0; } }
.page-hero { margin-block-end: var(--s-8); }
.page-hero img { max-height: 560px; }

.page-body { align-items: start; padding-block-end: var(--s-9); }
.page-body__main { grid-column: 1 / span 8; min-width: 0; }
@media (max-width: 63.99rem) { .page-body__main { grid-column: 1 / -1; } }
.section__head { font-size: var(--t-xl); font-weight: 300; line-height: 1.08; letter-spacing: -0.025em; }

.toc { padding-block: var(--s-5) var(--s-6); border-top: 1px solid var(--ink); }
.toc__label { margin-block-end: var(--s-3); color: var(--ink); }
.toc ol { columns: 2 16rem; column-gap: var(--gap); list-style: none; padding: 0; counter-reset: toc; }
.toc li { break-inside: avoid; counter-increment: toc; }
.toc a { display: flex; gap: 12px; align-items: baseline; padding-block: 9px; border-bottom: 1px solid var(--rule); font-size: var(--t-s); transition: color 200ms var(--ease); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--cond); font-weight: 500; font-size: var(--t-label); letter-spacing: 0.07em; color: var(--ash); }
.toc a:hover { color: var(--graphite); }

.prose, .article-prose { max-width: 40em; font-size: 1.125rem; line-height: 1.62; }
.content-prose { padding-block: var(--s-6) var(--s-7); border-top: 1px solid var(--rule); }
.article-prose > * + * { margin-block-start: 1.05em; }
.article-prose > p:first-child { font-size: 1.375rem; line-height: 1.45; letter-spacing: -0.012em; }
.article-prose h2 { margin-block-start: 2em; font-size: var(--t-l); font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; scroll-margin-top: calc(var(--header-h) + 24px); }
.article-prose h2::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 18px; background: var(--signal); }
.article-prose h3 { margin-block-start: 1.6em; font-size: var(--t-m); }
.article-prose h2 + *, .article-prose h3 + * { margin-block-start: 0.6em; }
.article-prose ul, .article-prose ol { padding-inline-start: 1.2em; }
.article-prose li + li { margin-block-start: 0.4em; }
.article-prose li::marker { color: var(--ash); }
.article-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--ash); }
.article-prose a:hover { text-decoration-color: var(--signal); }
.article-prose blockquote { padding-inline-start: var(--s-4); border-inline-start: 2px solid var(--signal); color: var(--graphite); }
.prose :is(p, ul, ol) + :is(p, ul, ol) { margin-top: 1em; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.article-prose table, .tool-notes table { width: 100%; min-width: 30rem; font-size: var(--t-s); font-variant-numeric: tabular-nums; border-top: 1px solid var(--ink); }
.article-prose th, .tool-notes th { padding: 12px 16px 10px 0; text-align: start; font-family: var(--cond); font-weight: 500; font-size: var(--t-label); letter-spacing: 0.07em; text-transform: uppercase; color: var(--graphite); border-bottom: 1px solid var(--rule); vertical-align: bottom; }
.article-prose td, .tool-notes td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.45; }

.content-gallery { padding-block: var(--s-6); border-top: 1px solid var(--rule); }
.content-faq, .content-related { padding-block: var(--s-6) var(--s-7); border-top: 1px solid var(--ink); }
.content-faq .faq, .content-related .entries { margin-block-start: var(--s-5); }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 64px; padding-block: 14px; list-style: none; cursor: pointer; font-size: var(--t-m); font-weight: 400; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { max-width: 40em; padding-block-end: var(--s-5); color: var(--graphite); }
.faq details > div > * + * { margin-top: 0.6em; }

/* Sticky quote aside: a spec plate */
.quote-aside { grid-column: 10 / -1; position: sticky; top: calc(var(--header-h) + 24px); padding: var(--s-5); background: var(--paper); border: 1px solid var(--ink); }
.quote-aside__label { color: var(--ink); margin-bottom: var(--s-4); }
.quote-aside__title { font-size: var(--t-l); font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; }
.quote-aside__text { margin-block: var(--s-3) var(--s-5); color: var(--graphite); font-size: var(--t-s); }
.quote-aside dl { margin-block: var(--s-5); border-top: 1px solid var(--rule); }
.quote-aside dl div { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-3); padding-block: 10px; border-bottom: 1px solid var(--rule); font-size: var(--t-s); }
.quote-aside dt { font-family: var(--cond); font-weight: 500; font-size: var(--t-label); letter-spacing: 0.07em; text-transform: uppercase; color: var(--graphite); padding-top: 2px; }
.quote-aside__links { margin-block-start: var(--s-6); }
.quote-aside__links h3 { margin-block-end: var(--s-2); font-family: var(--cond); font-weight: 500; font-size: var(--t-label); letter-spacing: 0.07em; text-transform: uppercase; color: var(--graphite); }
.quote-aside__links a { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 42px; padding-block: 8px; border-bottom: 1px solid var(--rule); font-size: var(--t-s); }
.quote-aside__links a:hover .arrow { transform: translateX(3px); }
.quote-steps { border-top: 1px solid var(--rule); }
.quote-steps li { padding-block: var(--s-4); border-bottom: 1px solid var(--rule); }
.quote-steps h3 { font-size: var(--t-body); }
.quote-steps p { margin-top: 4px; font-size: var(--t-s); color: var(--graphite); }
@media (max-width: 63.99rem) { .quote-aside { grid-column: 1 / -1; position: static; margin-top: var(--s-7); } }

.notice-actions { grid-column: 4 / -1; margin-block-start: var(--s-6); }
@media (max-width: 63.99rem) { .notice-actions { grid-column: 1 / -1; } }

/* ---------- 12. Dark chapter: quote call-out ------------------------------- */
.quote-cta { margin-block-start: var(--s-9); background: var(--onyx); color: var(--on-dark); }
.quote-cta__panel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: stretch; padding-block: clamp(48px, 7vw, 112px); }
.quote-cta__text { grid-column: 1 / span 7; display: flex; flex-direction: column; }
.quote-cta__label { color: var(--signal); margin-bottom: var(--s-6); }
.quote-cta__title { font-size: var(--t-hero); font-weight: 300; line-height: 1.02; letter-spacing: -0.035em; }
.quote-cta__title .grey { display: block; color: var(--on-dark-2); }
.quote-cta__text > p:not([class]) { max-width: 34em; margin-top: var(--s-5); color: var(--on-dark-2); }
.quote-cta__actions { margin-top: var(--s-7); }
.quote-cta__actions .btn:not(.btn--ink) { border-color: var(--on-dark); color: var(--on-dark); }
.quote-cta__actions .btn:not(.btn--ink):hover { background: var(--on-dark); color: var(--ink); }
.quote-cta__checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: auto; padding-top: var(--s-8); }
.quote-cta__checks li { padding: 12px 12px 0 0; border-top: 1px solid var(--rule-dark); font-family: var(--cond); font-weight: 500; font-size: var(--t-label); letter-spacing: 0.07em; text-transform: uppercase; color: var(--on-dark-2); }
.quote-cta__media { grid-column: 9 / -1; }
.quote-cta__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; filter: grayscale(0.25) contrast(1.05); }
@media (max-width: 63.99rem) { .quote-cta__text, .quote-cta__media { grid-column: 1 / -1; } .quote-cta__media { margin-top: var(--s-7); } .quote-cta__checks { grid-template-columns: 1fr; } }

/* ---------- 13. Footer: rear-panel spec plate ---------------------------- */
.site-footer { background: var(--onyx); color: var(--on-dark); padding-block: var(--s-8) var(--s-6); border-top: 1px solid var(--rule-dark); }
.quote-cta + .site-footer { padding-top: 0; border-top: 0; }
.quote-cta + .site-footer .wrap { border-top: 1px solid var(--rule-dark); padding-top: var(--s-8); }
.site-footer .brand span { background: var(--on-dark); color: var(--ink); }
.footer-intro { grid-column: 1 / span 4; }
.footer-statement { max-width: 24em; margin-block: var(--s-5); color: var(--on-dark-2); font-size: var(--t-s); }
.footer-cols { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-7); }
.footer-col h2 { margin-bottom: var(--s-4); padding-bottom: 10px; border-bottom: 1px solid var(--rule-dark); color: var(--on-dark-2); }
.footer-col li a { display: inline-block; padding-block: 5px; font-size: var(--t-s); color: var(--on-dark); opacity: 0.86; }
.footer-col li a:hover { opacity: 1; color: var(--signal); }
.footer-contact { display: grid; gap: 8px; margin-top: var(--s-5); list-style: none; padding: 0; font-size: var(--t-s); }
.footer-contact a { color: var(--on-dark); }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-8); padding-top: var(--s-4); border-top: 1px solid var(--rule-dark); font-family: var(--cond); font-weight: 500; font-size: var(--t-label); letter-spacing: 0.07em; text-transform: uppercase; color: var(--on-dark-2); }
.footer-bottom a:hover { color: var(--on-dark); }
.site-footer .btn { border-color: var(--on-dark); color: var(--on-dark); }
.site-footer .btn--ink { border-color: var(--signal); color: var(--ink); }
@media (max-width: 63.99rem) { .footer-intro, .footer-cols { grid-column: 1 / -1; } .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-7); } }

.wa-float {
  position: fixed; z-index: 45; right: calc(var(--gutter) + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  background: var(--ink); color: var(--canvas); font-family: var(--cond); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background-color var(--dur) var(--ease);
}
.wa-float:hover { background: #128c4a; }
@media (max-width: 47.99rem) { .wa-float span { display: none; } .wa-float { width: 52px; padding: 0; justify-content: center; } }

/* ---------- 14. Forms ------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { color: var(--graphite); }
.field__optional { color: var(--ash); text-transform: none; letter-spacing: 0.02em; }
.field__hint { font-size: var(--t-s); color: var(--graphite); }
.field__error { display: flex; gap: 6px; align-items: center; font-size: var(--t-s); color: var(--danger); }
.field__error .icon { width: 14px; height: 14px; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; outline: none; font-size: var(--t-body); }
.input:focus, .select:focus, .textarea:focus { border-bottom: 2px solid var(--signal); padding-bottom: 7px; }
.input::placeholder, .textarea::placeholder { color: var(--ash); opacity: 1; }
.field--error .input, .field--error .select, .field--error .textarea, [aria-invalid="true"] { border-color: var(--danger); }
.textarea { min-height: 9rem; resize: vertical; line-height: 1.5; padding: 12px; border: 1px solid var(--ink); background: var(--paper); }
.textarea:focus { border: 1px solid var(--signal); box-shadow: inset 0 0 0 1px var(--signal); padding: 12px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 24px; background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 6px top 50% / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--ink) 50%) right 0 top 50% / 6px 6px no-repeat; }
.select option { color: #161513; background: #fff; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

.quote-form { grid-column: 1 / span 8; }
.form-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: var(--gap); padding-block: var(--s-5) var(--s-7); border-top: 1px solid var(--ink); }
.form-section > :not(.form-section__intro) { grid-column: 2; }
.form-section > :not(.form-section__intro) ~ :not(.form-section__intro) { margin-top: var(--s-6); }
.form-section > .form-section__intro { grid-row: 1 / span 4; }
.form-section__intro .notes__n { margin-bottom: var(--s-2); color: var(--signal); }
.form-section__intro h2 { font-size: var(--t-m); font-weight: 500; letter-spacing: -0.01em; }
.form-section__intro p { margin-top: var(--s-2); max-width: 20rem; font-size: var(--t-s); color: var(--graphite); }
@media (max-width: 63.99rem) { .quote-form { grid-column: 1 / -1; } .form-section { grid-template-columns: 1fr; row-gap: var(--s-5); } .form-section > * { grid-column: 1 !important; } .form-section > .form-section__intro { grid-row: auto; } }
.form-grid--3 { display: grid; gap: var(--s-5) var(--s-6); }
@media (min-width: 48rem) { .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding-block: var(--s-5); border-top: 1px solid var(--ink); }
@media (min-width: 64rem) { .form-actions { padding-inline-start: calc((100% - var(--gap)) / 4 + var(--gap)); } }
.form-actions p { font-size: var(--t-s); color: var(--graphite); }
.dropzone { display: grid; justify-items: start; gap: 4px; width: 100%; padding: var(--s-6) var(--s-5); border: 1px dashed var(--ink); background: var(--paper); cursor: pointer; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.dropzone:hover, .dropzone.is-over { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 5%, var(--paper)); }
.dropzone__title { font-size: var(--t-m); font-weight: 500; }
.dropzone__hint { font-size: var(--t-s); color: var(--graphite); }
.upload-list { display: grid; margin-top: var(--s-3); }
.upload-row { display: flex; align-items: center; gap: var(--s-3); padding-block: 10px; border-bottom: 1px solid var(--rule); }
.upload-row__body { flex: 1; min-width: 0; }
.upload-row__head { display: flex; justify-content: space-between; gap: var(--s-3); }
.upload-row__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-row__status { font-size: var(--t-s); color: var(--graphite); white-space: nowrap; }
.upload-row.is-error .upload-row__status { color: var(--danger); }
.upload-row__remove { width: 40px; height: 40px; border: 0; background: none; color: var(--graphite); font-size: 1.2rem; }
.auth-form { max-width: 34rem; padding-block: var(--s-6); }
.gate-form { padding-block: var(--s-6); border-top: 1px solid var(--ink); }
.checklist-actions { padding-block: var(--s-5); }
.checklist ul { list-style: none; padding-inline-start: 0; }
.checklist ul li { position: relative; padding-inline-start: 32px; }
.checklist ul li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 16px; height: 16px; border: 1px solid var(--ink); }

/* ---------- 15. Calculators: an instrument panel --------------------------- */
.calc { border: 1px solid var(--ink); background: var(--paper); margin-block-end: var(--s-7); }
.calc__inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: var(--s-5) var(--gap); padding: var(--s-5); border-bottom: 1px solid var(--ink); }
.calc__field { display: flex; flex-direction: column; gap: 6px; }
.calc__input { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--ink); }
.calc__input input { width: 100%; min-width: 0; min-height: 48px; padding: 0; border: 0; background: none; outline: none; font-size: var(--t-l); font-weight: 400; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.calc__input input::-webkit-outer-spin-button, .calc__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__input:focus-within { border-bottom: 2px solid var(--signal); }
.calc__input .select { border: 0; min-height: 48px; }
.calc__unit { flex: none; font-family: var(--cond); font-weight: 500; font-size: var(--t-label); letter-spacing: 0.07em; text-transform: uppercase; color: var(--graphite); }
.calc__outputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); background: var(--onyx); color: var(--on-dark); }
.calc__out { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: var(--s-4) var(--s-5); border-right: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); }
.calc__out dt { color: var(--on-dark-2); }
.calc__out dd { display: flex; align-items: baseline; gap: 6px; font-size: var(--t-l); font-weight: 400; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.calc__out dd .calc__unit { color: var(--on-dark-2); }
.calc__out--big { grid-column: 1 / -1; padding-block: var(--s-6); }
.calc__out--big dd { font-size: var(--t-display); font-weight: 300; line-height: 0.95; letter-spacing: -0.04em; }
.calc__out--big dd output { color: var(--on-dark); }
.calc__out--big dt::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 30%, transparent); vertical-align: 0.05em; }
.calc__note { padding: var(--s-4) var(--s-5); max-width: none; font-size: var(--t-s); color: var(--graphite); border-top: 1px solid var(--rule); }
.calc__note[data-warn] { color: var(--danger); }
.calc .table-scroll { padding: 0 var(--s-5) var(--s-4); }
.calc__table { width: 100%; min-width: 30rem; margin-top: var(--s-4); }
.calc__table tr.is-over td { color: var(--ash); }
.calc__table tr.is-pick td { font-weight: 500; }
.calc__table tr.is-pick td:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--signal); vertical-align: 0.1em; }

/* ---------- 16. Tables, flashes, chips (admin + account) ------------------ */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.table { width: 100%; font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.table th { padding: 12px 16px 10px 0; text-align: start; white-space: nowrap; border-bottom: 1px solid var(--rule); }
.table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tbody tr:hover { background: color-mix(in srgb, var(--paper) 70%, transparent); }
.table__primary { font-weight: 500; font-size: var(--t-body); }
.table__primary:hover { color: var(--graphite); }
.table__sub { display: block; font-size: var(--t-s); color: var(--graphite); }
.table__num { text-align: end !important; }
.table__actions { text-align: end; white-space: nowrap; }
.flash-stack { display: grid; gap: var(--s-2); padding-block-start: var(--s-4); }
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--ink); border-left: 4px solid var(--ink); }
.flash--alert { border-color: var(--danger); border-left-color: var(--danger); }
.flash--alert > .icon { color: var(--danger); }
.flash__body { flex: 1; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-5); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--graphite); }
.chip:hover { color: var(--ink); }
.chip[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); }
.chip__count { color: var(--ash); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s-6); }
.filter-bar__search { flex: 0 1 280px; }
.filter-bar__search input { width: 100%; min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--rule); background: none; outline: none; }
.filter-bar__search input:focus { border-color: var(--signal); }
.points { border-top: 1px solid var(--rule); }
.points li { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: 12px; border-bottom: 1px solid var(--rule); font-size: var(--t-s); }
.points li span { color: var(--graphite); }

/* Admin */
.admin-main { padding-block: var(--s-5) var(--s-9); }
.admin .nav--admin { gap: var(--s-5); flex-wrap: wrap; }
.admin .nav--admin a { display: inline-flex !important; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-4); padding-block: var(--s-6) var(--s-5); }
.admin-head .muted { max-width: 40em; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: var(--s-7) var(--s-6); margin-top: var(--s-6); }
.admin-card { padding-top: var(--s-4); border-top: 1px solid var(--ink); min-width: 0; }
.admin-card > h2 { margin-bottom: var(--s-4); }
.admin-card--wide { grid-column: 1 / -1; }
.hbars { display: grid; gap: 8px; list-style: none; padding: 0; font-size: var(--t-s); }
.hbars li { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 3rem; gap: 12px; align-items: center; }
.hbars li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars__t { height: 6px; background: var(--rule); }
.hbars__t span { display: block; height: 100%; background: var(--ink); }
.hbars li > span:last-child { text-align: end; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding-block: var(--s-3); border-bottom: 1px solid var(--rule); }
.spark__bar { flex: 1; min-width: 2px; max-width: 28px; background: var(--ink); }
.spark__bar:hover { background: var(--signal); }
.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; background: var(--rule); color: var(--ink); }
.pill--new { background: var(--signal); }
.pill--won { box-shadow: inset 0 0 0 1px var(--ink); background: none; }
.pill--off { color: var(--ash); }
.kv div { display: grid; grid-template-columns: 8rem 1fr; gap: var(--s-3); padding-block: 9px; border-bottom: 1px solid var(--rule); font-size: var(--t-s); }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
.lead-message { margin-top: var(--s-5); white-space: pre-wrap; max-width: 40em; }
.secret { margin-block: var(--s-5); padding: var(--s-5); background: var(--paper); border: 1px solid var(--ink); border-left: 4px solid var(--signal); }
.secret pre { margin-top: var(--s-3); font-size: 1rem; user-select: all; white-space: pre-wrap; }
.trail { list-style: none; padding: 0; font-size: var(--t-s); border-top: 1px solid var(--rule); }
.trail li { display: grid; grid-template-columns: 11rem 9rem 1fr; gap: var(--s-3); padding-block: 8px; border-bottom: 1px solid var(--rule); }
@media (max-width: 47.99rem) { .trail li { grid-template-columns: 1fr; gap: 2px; } }
.notes-list { list-style: none; padding: 0; margin-bottom: var(--s-4); }
.notes-list li { padding-block: 10px; border-bottom: 1px solid var(--rule); }
.notes-list p { white-space: pre-wrap; }
.file-actions { display: inline-flex; gap: 10px; align-items: baseline; font-size: var(--t-s); }
.logo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--s-5) var(--gap); list-style: none; padding: 0; }
.logo-admin li { display: grid; gap: 10px; padding-top: var(--s-4); border-top: 1px solid var(--rule); justify-items: start; }
.logo-admin img { width: 112px; height: 36px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.logo-admin li.is-off img { opacity: 0.3; filter: grayscale(1); }
.settings-form { display: grid; gap: var(--s-5); max-width: 44rem; }
.admin-inline-form { align-items: end; }
.crumbs-inline { padding-top: var(--s-5); }

/* ---------- 17. Print -------------------------------------------------------- */
@media print {
  .topbar, .site-header, .site-footer, .quote-cta, .quote-aside, .wa-float, .crumbs, .no-print, .flash-stack, .mobile-nav { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .page-body__main { grid-column: 1 / -1; }
  .content-prose { border: 0; padding: 0; }
  a { text-decoration: none !important; }
}
