/* ==========================================================================
   DW WiFi · site.css · the shared shell
   FOUNDATION owns this file. Page builders: read only, put page styles in
   assets/css/<key>.css. Change requests go in _gauntlet/shell-requests/.
   Full guide: _gauntlet/notes/shell.md

    1 Tokens            8 Forms             15 Post card + grid
    2 Surfaces          9 Header            16 Reveal
    3 Reset + base     10 Mobile menu       17 Lottie, video, pan, copy
    4 Type             11 Footer            18 Utilities
    5 Layout           12 Components        19 Reduced motion
    6 Buttons          13 Prose             20 Print
    7 Links            14 Post template
   Colours are hex on purpose: Chrome/Edge 109 (Windows 7/8.1 offices) drop oklch().
   ========================================================================== */


/* 1 Tokens ---------------------------------------------------------------- */
/* Brand values are sampled from the DW logo (GROUNDWORK 2). Semantic tokens
   (--bg, --fg ...) are what components use; section 2 remaps them per surface. */
:root {
  /* brand, sampled */
  --navy-900: #0C2B4D;  /* logo navy tile */
  --lime-500: #88AE3E;  /* logo lime tile + arcs. NEVER text or borders on white (2.57:1) */
  --green-900: #104D20; /* old site secondary, Health Check band */
  --white: #FFFFFF;
  --mist: #EEF2ED;      /* logo keyline halo */
  /* the logo's five attenuation steps, lime over white */
  --arc-80: #A0BE65;
  --arc-60: #B8CE8B;
  --arc-40: #CFDFB2;
  --arc-20: #E7EFD8;
  /* derived, contrast-checked */
  --navy-950: #071B31;  /* hero, stages, footer */
  --navy-800: #123A63;  /* raised surface on navy */
  --lime-300: #A5C16C;  /* lime text on navy, 7.11:1 */
  --lime-ink: #627D2D;  /* lime as text on WHITE, 4.68:1 */
  --lime-ink-deep: #587028; /* lime as text on paper / mist / arc-20, 4.7 to 5.1:1 */
  --paper: #F4F6F2;     /* off-white panel */
  --slate: #4A5A6B;     /* secondary text on white, 7.08:1 */
  --fog: #B9C6D4;       /* secondary text on navy, 8.23:1 */
  --rule: #E6ECF2;      /* hairline on white */
  --rule-strong: #C9D3DD;
  --input-line: #748395; /* input border, 3.87:1 on white */
  --error: #B42318;      /* 6.57:1 on white */

  /* semantic defaults = light surface */
  --bg: var(--white);
  --fg: var(--navy-900);
  --fg-muted: var(--slate);
  --line: var(--rule);
  --line-strong: var(--rule-strong);
  --panel: var(--paper);
  --link: var(--navy-900);
  --link-line: var(--lime-ink);
  --focus: var(--navy-900);
  --accent-text: var(--lime-ink);
  --chip-bg: var(--mist);
  --pill-on-bg: var(--navy-900);
  --pill-on-fg: var(--white);

  /* type */
  --font-display: "Red Hat Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-text: "Red Hat Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Red Hat Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-display: clamp(2.75rem, 1.6rem + 4.2vw, 5rem);
  /* page H1: 40px at 390, 68px at 1440. Raised from 36/56 by the coherence pass
     (2026-10-03): five builders each overrode the old value with 63 to 76px. */
  --fs-h1: clamp(2.5rem, 1.5rem + 3.5vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.18rem + 0.25vw, 1.375rem);
  --fs-lead: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);   /* 16px at 390, 17px desktop */
  --fs-prose: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);   /* 16px at 390, 18px desktop */
  --fs-small: 0.9375rem;
  --fs-ui: 0.875rem;

  /* space + layout */
  --gutter: clamp(1rem, 5vw - 0.25rem, 2.5rem);          /* 16px at 390, 40px desktop */
  --section-y: clamp(4.5rem, 2.5rem + 8vw, 9.5rem);       /* ~72px at 390, 152px desktop */
  --hero-top: clamp(1.75rem, .25rem + 5.8vw, 5.5rem);     /* light page-hero top padding: 28px at 390, ~88px at 1440 (H1 lands ~160px down) */
  --container: 75rem;        /* 1200 */
  --container-wide: 85rem;   /* 1360 */
  --container-narrow: 47.5rem; /* 760 */
  --measure: 32em;           /* prose line length: ~70 characters of Red Hat Text (its 0 is wide, so ch overshoots) */
  --header-h: 72px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(7, 27, 49, .06), 0 6px 18px -8px rgba(7, 27, 49, .12);
  --shadow-2: 0 2px 6px rgba(7, 27, 49, .06), 0 24px 56px -22px rgba(7, 27, 49, .32);

  /* motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: 650ms;
  --dur-fast: 180ms;
}
@media (max-width: 1079px) {
  :root { --header-h: 64px; }
}


/* 2 Surfaces -------------------------------------------------------------- */
/* Put one class on a section to set its ground; everything inside (text, links,
   buttons, pills, cards, focus rings, form labels) adapts through the tokens. */
.surface-white, .surface-paper, .surface-mist, .surface-arc,
.surface-navy, .surface-deep, .surface-green {
  background-color: var(--bg);
  color: var(--fg);
}
.surface-white { --bg: var(--white); }
.surface-paper { --bg: var(--paper); --panel: var(--white); --accent-text: var(--lime-ink-deep); --link-line: var(--lime-ink-deep); }
.surface-mist  { --bg: var(--mist);  --panel: var(--white); --accent-text: var(--lime-ink-deep); --link-line: var(--lime-ink-deep); --chip-bg: var(--white); }
.surface-arc   { --bg: var(--arc-20); --panel: var(--white); --accent-text: var(--lime-ink-deep); --link-line: var(--lime-ink-deep); --chip-bg: var(--white); }
.surface-navy, .surface-deep, .surface-green {
  --fg: var(--white);
  --fg-muted: var(--fog);
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .32);
  --link: var(--white);
  --link-line: var(--lime-500);
  --focus: var(--lime-500);
  --accent-text: var(--lime-300);
  --chip-bg: rgba(255, 255, 255, .09);
  --pill-on-bg: var(--lime-500);
  --pill-on-fg: var(--navy-950);
  --error: #FFB4A9;
  color-scheme: dark;
}
.surface-navy  { --bg: var(--navy-900); --panel: var(--navy-800); }
.surface-deep  { --bg: var(--navy-950); --panel: var(--navy-900); }
.surface-green { --bg: var(--green-900); --panel: #0B3F18; --accent-text: var(--arc-40); --link-line: var(--arc-40); --focus: var(--arc-40); --pill-on-bg: var(--arc-40); }


/* 3 Reset + base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* safe for position: sticky, unlike overflow: hidden */
}
:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd) { margin: 0; }
:where(ul, ol)[role="list"], .list-reset { list-style: none; padding: 0; margin: 0; }
img, picture, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
[hidden] { display: none !important; }
main { display: block; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--arc-40); color: var(--navy-950); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }


/* 4 Type ------------------------------------------------------------------ */
/* Display/H1/H2 Red Hat Display; body Red Hat Text; every measurement, model,
   part number, phone number and date in Red Hat Mono (.readout). Never tracked
   uppercase, never a kicker above a heading. */
h1, h2, h3, h4, .display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: inherit;
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.025em; }
h1, .h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.03em; font-weight: 750; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.015em; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.005em; font-weight: 650; }
h4, .h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: 0; font-weight: 700; }
p, li, dd { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--fg-muted); max-width: 56ch; }
.small { font-size: var(--fs-small); }
.ui { font-size: var(--fs-ui); font-weight: 500; }
.muted { color: var(--fg-muted); }
.accent { color: var(--accent-text); }
strong, b { font-weight: 600; }
.readout, .mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.94em;
  font-variant-numeric: tabular-nums slashed-zero;
  letter-spacing: 0;
}
.nw { white-space: nowrap; } /* write headings as <span class="nw">Wi-Fi</span> so it never splits */


/* 5 Layout ---------------------------------------------------------------- */
.container, .container-wide, .container-narrow {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container { max-width: calc(var(--container) + 2 * var(--gutter)); }
.container-wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }
.container-narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section-sm { padding-block: calc(var(--section-y) * .6); }
.section-flush-top { padding-top: 0; }
.section-head { max-width: 46rem; margin: 0 auto clamp(2rem, 1.4rem + 2.4vw, 3.5rem); text-align: center; }
.section-head > * + * { margin-top: 1rem; }
.section-head .lead { margin-inline: auto; }
.section-head.align-left { margin-inline: 0; text-align: left; }
.flow > * + * { margin-top: var(--flow, 1rem); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 1rem); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, .75rem); }
.grid { display: grid; gap: var(--gap, clamp(1rem, .6rem + 1.6vw, 2rem)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 17.5rem)), 1fr)); }
@media (max-width: 999px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split-60-40 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .split-40-60 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .split.align-start { align-items: start; }
  .split.reverse > :first-child { order: 2; }
}
.center { text-align: center; }
.mx-auto { margin-inline: auto; }


/* 6 Buttons --------------------------------------------------------------- */
/* .btn-primary = lime fill + navy label (5.56:1), the one coloured button.
   .btn-secondary = navy fill. .btn-ghost = outline in the surface's text colour.
   48px tall (44px for .btn-sm), so every size passes the 44px tap rule. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur-fast) ease; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { background: var(--lime-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--lime-300); }
.btn-secondary { background: var(--navy-900); color: var(--white); }
.btn-secondary:hover { background: var(--navy-800); }
.surface-navy .btn-secondary, .surface-deep .btn-secondary, .surface-green .btn-secondary { background: var(--white); color: var(--navy-900); }
.surface-navy .btn-secondary:hover, .surface-deep .btn-secondary:hover, .surface-green .btn-secondary:hover { background: var(--mist); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: currentColor; background: rgba(12, 43, 77, .04); }
.surface-navy .btn-ghost:hover, .surface-deep .btn-ghost:hover, .surface-green .btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: .9rem 1.75rem; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
@media (max-width: 479px) { .btn-row-fill > .btn { flex: 1 1 100%; } }


/* 7 Links ----------------------------------------------------------------- */
/* Links in running text: surface text colour + a 2px lime underline
   (lime-ink on light grounds, lime-500 on navy). */
a { color: inherit; }
.link, .prose a:not([class]) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  transition: text-decoration-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.link:hover, .prose a:not([class]):hover { text-decoration-color: currentColor; }
/* Phone numbers and email addresses written into a sentence are the rescue route
   on a phone, so give them a 44px tall hit area there. Vertical padding on an
   inline box widens the tap area without moving a single line of text
   (coherence pass 2026-10-03: flagged on home, about, accessories, cambium, blog). */
@media (max-width: 719px) {
  a.link[href^="tel:"], a.link[href^="mailto:"] { padding-block: 14px; }
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}
.link-arrow .icon { transition: transform var(--dur-fast) ease; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: .22em; }


/* 8 Forms ----------------------------------------------------------------- */
/* Inputs stay white on every surface (navy text, navy chevron), 48px tall,
   16px text so iOS never zooms. Errors: .field-error, created by site.js. */
.form { display: grid; gap: 1.25rem; }
.form-grid { display: grid; gap: 1.25rem 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid > .span-2, .form-grid > .field-wide { grid-column: 1 / -1; }
}
.field { display: grid; gap: .45rem; min-width: 0; align-content: start; }
.field > label, .field-label, fieldset > legend {
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
}
.req { color: var(--accent-text); margin-left: .15em; }
.optional { font-weight: 400; color: var(--fg-muted); }
.hint { font-size: .875rem; line-height: 1.45; color: var(--fg-muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset > legend { padding: 0; margin-bottom: .5rem; }
.input,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  border: 1.5px solid var(--input-line);
  border-radius: 10px;
  background-color: var(--white);
  color: var(--navy-900);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C2B4D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 1.15rem;
}
.field input::placeholder, .field textarea::placeholder { color: #6B7A8B; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-900); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--navy-900);
}
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-error {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--error);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  min-height: 44px;
  padding-block: .55rem;
  cursor: pointer;
  line-height: 1.45;
}
.check input { width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; flex: none; accent-color: var(--navy-900); }
.surface-navy .check input, .surface-deep .check input, .surface-green .check input { accent-color: var(--lime-500); }
.char-count { justify-self: end; font-size: .8125rem; color: var(--fg-muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.form-status { font-size: .9375rem; font-weight: 600; color: var(--error); }
.form-status:empty { display: none; }

/* the honest hand-off note shown after the email is composed (never "sent") */
.enquiry-note {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--arc-20);
  color: var(--navy-900);
}
.surface-navy .enquiry-note, .surface-deep .enquiry-note, .surface-green .enquiry-note { background: var(--navy-800); color: var(--white); }
.enquiry-note p { line-height: 1.55; }
.enquiry-note a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; text-decoration-color: currentColor; }
@media (max-width: 719px) { .enquiry-note p a { padding-block: 14px; } }  /* 44px tap area, no layout change (see section 7) */
.enquiry-note-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.enquiry-note:focus { outline: none; }


/* 9 Header ---------------------------------------------------------------- */
/* Always visible (sticky) so pinned scenes can sit under it at top: var(--header-h).
   The blur lives on ::before: a backdrop-filter on the header itself would trap
   the fixed mobile menu inside the header box. */
.skip-link {
  position: absolute;
  left: .75rem;
  top: -100px;
  z-index: 200;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: .75rem; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--navy-900);
  isolation: isolate;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before { background: var(--white); }
}
.site-header.is-scrolled::before {
  border-bottom-color: var(--rule);
  box-shadow: 0 12px 32px -26px rgba(7, 27, 49, .5);
}
.hdr-bar {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, .2rem + 1.2vw, 2rem);
  height: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; flex: none; height: 100%; padding-block: 8px; border-radius: var(--radius-sm); }
.brand img { width: auto; height: 52px; }
.hdr-nav { flex: 1 1 auto; min-width: 0; }
.hdr-nav ul { display: flex; align-items: center; gap: .125rem; list-style: none; margin: 0; padding: 0; }
.hdr-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .8rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.hdr-nav a:hover { color: var(--navy-900); background: var(--paper); }
.hdr-nav a[aria-current="page"] { color: var(--navy-900); font-weight: 600; }
.hdr-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime-ink);
}
.hdr-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex: none; }
.hdr-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 44px;
  min-height: 44px;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: .9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--navy-900);
  text-decoration: none;
  white-space: nowrap;
}
.hdr-phone:hover { background: var(--paper); }
.hdr-phone .icon { width: 18px; height: 18px; color: var(--lime-ink); }
.hdr-cta { white-space: nowrap; }
.menu-btn, .menu-nojs { display: none; }
@media (min-width: 1080px) and (max-width: 1279px) {
  .hdr-phone-num { display: none; }
  .hdr-phone { padding: 0; width: 44px; }
}
@media (max-width: 1079px) {
  .hdr-nav { display: none; }
  .brand img { height: 46px; }
  .hdr-phone-num { display: none; }
  .hdr-phone { width: 44px; padding: 0; border: 1.5px solid var(--rule-strong); border-radius: 10px; }
  .hdr-phone .icon { color: var(--navy-900); }
  .js .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -6px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--navy-900);
  }
  .no-js .menu-nojs { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .5rem; font-weight: 600; }
}
@media (max-width: 359px) {
  .hdr-phone { display: none; }
}
.menu-icon { position: relative; display: block; width: 22px; height: 14px; }
.menu-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease-out), top .25s var(--ease-out);
}
.menu-icon span:first-child { top: 2px; }
.menu-icon span:last-child { top: 10px; }
.menu-btn[aria-expanded="true"] .menu-icon span:first-child { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon span:last-child { top: 6px; transform: rotate(-45deg); }


/* 10 Mobile menu ----------------------------------------------------------- */
/* Below 1080px. Full-height sheet under the header; focus is trapped in the
   header while open, Esc closes, the rest of the page is inert. */
.menu-panel { display: none; }
@media (max-width: 1079px) {
  .js .menu-panel {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--rule);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), visibility 0s linear .22s;
  }
  .js .menu-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), visibility 0s;
  }
  .menu-open, .menu-open body { overflow: hidden; }
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  text-decoration: none;
}
.menu-list a[aria-current="page"]::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 0 4px var(--arc-20);
}
.menu-foot { display: grid; gap: 1.25rem; margin-top: 1.75rem; max-width: 30rem; }
.menu-contact { list-style: none; margin: 0; padding: 0; }
.menu-contact a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  border-bottom: 1px solid var(--rule);
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 500;
}
.menu-k { color: var(--slate); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .js .menu-panel .menu-list li { opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
  .js .menu-panel.is-open .menu-list li { opacity: 1; transform: none; }
  .js .menu-panel.is-open .menu-list li:nth-child(2) { transition-delay: 30ms; }
  .js .menu-panel.is-open .menu-list li:nth-child(3) { transition-delay: 60ms; }
  .js .menu-panel.is-open .menu-list li:nth-child(4) { transition-delay: 90ms; }
  .js .menu-panel.is-open .menu-list li:nth-child(5) { transition-delay: 120ms; }
  .js .menu-panel.is-open .menu-list li:nth-child(6) { transition-delay: 150ms; }
  .js .menu-panel.is-open .menu-list li:nth-child(7) { transition-delay: 180ms; }
}


/* 11 Footer ---------------------------------------------------------------- */
/* The faint top hairline only shows when a page ends on a dark band (it vanishes
   against white), so a navy closing section never melts into the footer. */
.site-footer { position: relative; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-main {
  display: grid;
  gap: 2.5rem 2rem;
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .footer-main { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.1fr); } }
.footer-logo { display: inline-block; border-radius: var(--radius-sm); }
.footer-logo img { width: auto; height: 64px; }
.footer-blurb { margin-top: 1.25rem; max-width: 36ch; font-size: var(--fs-small); color: var(--fog); }
.footer-cta { margin-top: 1.5rem; }
.footer-h {
  margin-bottom: .75rem;
  font-family: var(--font-text);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--white);
}
.footer-menu ul { list-style: none; margin: 0; padding: 0; }
.footer-menu a, .footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--fog);
  text-decoration: none;
}
.footer-menu a:hover, .footer-contact a:hover, .footer-top:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--lime-500);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}
.footer-contact dl { display: grid; gap: .35rem; margin: 0; }
.footer-contact dt { font-size: .8125rem; color: var(--fog); opacity: .85; }
.footer-contact dd { margin: 0; }
.footer-contact dd a { min-height: 32px; color: var(--white); overflow-wrap: anywhere; }
@media (max-width: 1079px) { .footer-menu a, .footer-contact a, .footer-contact dd a { min-height: 44px; min-width: 44px; } }
@media (max-width: 719px) { .footer-menu ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; } }
.footer-partner {
  align-self: start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, .08);
}
.footer-cn { display: inline-block; border-radius: var(--radius-sm); }
.footer-cn img { width: auto; height: 52px; }
.footer-partner p { margin-top: 1rem; font-size: var(--fs-small); color: var(--fog); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .875rem;
  color: var(--fog);
}
.footer-base a:not(.footer-top) {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--lime-500);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}
.footer-top { display: inline-flex; align-items: center; min-height: 44px; color: var(--fog); text-decoration: none; }
/* Elev8 credit: 44px tall tap area on touch widths (services-r2 request). Inline
   vertical padding, so the copyright line keeps its look and height. */
@media (max-width: 1079px) { .footer-base a:not(.footer-top) { padding-block: 13px; } }


/* 12 Components ------------------------------------------------------------ */
/* Pills (ui.com's switcher habit). Use role="tablist" + data-tabs for real tabs,
   or a nav of links. Selected = navy fill on light, lime fill on navy. */
.pills {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: 3px;
  margin: -3px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.pills::-webkit-scrollbar { display: none; }
.pills-center > :first-child { margin-left: auto; }
.pills-center > :last-child { margin-right: auto; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex: none;
  min-height: 44px;
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--fg);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  scroll-snap-align: center;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.pill:hover { border-color: currentColor; }
.pill[aria-selected="true"], .pill[aria-current="true"], .pill[aria-current="page"], .pill.is-active, .pill[aria-pressed="true"] {
  background: var(--pill-on-bg);
  border-color: var(--pill-on-bg);
  color: var(--pill-on-fg);
}

/* Cards and panels. .panel is the big rounded stage (ui.com grey box).
   Note: .panel clips overflow, so never put a sticky element inside one. */
.card { background: var(--panel); border-radius: var(--radius-lg); padding: clamp(1.25rem, .9rem + 1.4vw, 2rem); }
.card-outline { background: transparent; border: 1px solid var(--line); }
.card-link { display: block; color: inherit; text-decoration: none; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.panel { background: var(--panel); border-radius: var(--radius-xl); overflow: hidden; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  color: var(--fg);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
}
.chip:empty { display: none; }
.chip-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-500); }

/* Frame: thin window chrome for REAL deliverables (TamoGraph, Chanalyzer,
   cnMaestro screenshots). Never recolour what is inside it. */
.frame {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-2);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 36px;
  padding: .35rem .9rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
}
.frame-bar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-500); box-shadow: 0 0 0 3px var(--arc-20); flex: none; }
.frame > img, .frame > picture img { width: 100%; }
.surface-navy .frame, .surface-deep .frame, .frame-dark { border-color: rgba(255, 255, 255, .12); background: var(--navy-950); }
.surface-navy .frame-bar, .surface-deep .frame-bar, .frame-dark .frame-bar { background: var(--navy-800); border-bottom-color: rgba(255, 255, 255, .1); color: var(--fog); }
.surface-navy .frame-bar::before, .surface-deep .frame-bar::before, .frame-dark .frame-bar::before { box-shadow: 0 0 0 3px rgba(136, 174, 62, .25); }

/* Media helpers */
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1 { aspect-ratio: 1; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.logo-chip { display: inline-flex; align-items: center; padding: .5rem .85rem; border-radius: var(--radius-sm); background: var(--white); }
.logo-chip img { height: 36px; width: auto; }

/* Tables (spec tables, comparisons). Wrap every table in .table-wrap so a wide
   one scrolls inside itself at 390, never the page. */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.table-wrap > table { width: 100%; min-width: var(--table-min, 30rem); }
.table-wrap th, .table-wrap td { padding: .75rem .95rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--panel); font-weight: 600; font-size: .9375rem; }
.table-wrap tbody th { font-weight: 600; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap caption { caption-side: bottom; padding: .75rem .95rem; text-align: left; font-size: .875rem; color: var(--fg-muted); }

/* CTA band (shared by the post template; pages may reuse it) */
.cta-band {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--radius-xl);
}
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-band-title { font-size: var(--fs-h2); }
.cta-band-copy p { margin-top: .75rem; color: var(--fg-muted); max-width: 52ch; }
@media (min-width: 900px) { .cta-band-actions { justify-content: flex-end; max-width: 26rem; } }


/* 13 Prose ----------------------------------------------------------------- */
/* Long-form text: blog posts, policy text, long service copy. Line length is
   --measure (~70 characters). Vocabulary: _gauntlet/POST-NOTES.md.
   .prose-layout adds a wide column for figures, tables and diagrams. */
.prose {
  --flow: 1.15em;
  max-width: var(--measure);
  font-size: var(--fs-prose);
  line-height: 1.68;
  color: var(--fg);
}
.prose > * + * { margin-top: var(--flow); }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); line-height: 1.18; margin-top: 2.1em; }
.prose h3 { font-size: clamp(1.1875rem, 1.12rem + .35vw, 1.375rem); line-height: 1.3; margin-top: 1.75em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .45em; }
.prose li > ul, .prose li > ol { margin-top: .45em; }
.prose ul > li::marker { color: var(--lime-ink); }
.prose ol > li::marker { color: var(--fg-muted); font-family: var(--font-mono); font-size: .9em; }
.prose p.lead { font-size: 1.15em; line-height: 1.55; color: var(--fg); max-width: none; }
.prose code { font-family: var(--font-mono); font-size: .88em; padding: .1em .35em; border-radius: 5px; background: var(--paper); }
.prose blockquote {
  padding: 1.25em 1.5em;
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 1.18em;
  font-weight: 500;
  line-height: 1.45;
}
.prose blockquote > * + * { margin-top: .6em; }
.prose blockquote footer, .prose blockquote cite { display: block; font-family: var(--font-text); font-size: .8em; font-style: normal; font-weight: 500; color: var(--fg-muted); }
.prose hr { margin-block: 2.5em; }
.prose dl > dt { font-weight: 600; }
.prose dl > dd { margin: .2em 0 .8em; }
.prose figure { margin-top: 2em; margin-bottom: .5em; }
.prose figure img { width: 100%; border-radius: var(--radius); }
.prose figure.shot img, .prose figure.diagram .pan { border: 1px solid var(--rule); }
.prose figcaption { margin-top: .7em; font-size: .875em; line-height: 1.5; color: var(--fg-muted); }
.prose figcaption a { color: var(--fg); }
.prose .table-wrap { margin-top: 1.75em; font-size: .9em; }

/* optional classes */
.prose aside.note {
  padding: 1.1em 1.3em;
  border-radius: var(--radius);
  background: var(--arc-20);
  color: var(--navy-900);
  --link-line: var(--lime-ink-deep);
}
.prose aside.note > * + * { margin-top: .6em; }
.prose ol.steps { list-style: none; padding: 0; counter-reset: step; }
.prose ol.steps > li { position: relative; padding-left: 3rem; counter-increment: step; min-height: 2rem; }
.prose ol.steps > li + li { margin-top: 1.1em; }
.prose ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -.05em;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 500;
}
.prose ol.steps > li > strong:first-child { display: block; font-family: var(--font-display); font-size: 1.05em; }

/* diagrams that are too wide for a phone pan inside .pan (set --pan-min on the
   figure, e.g. style="--pan-min: 60rem" for a 1888px-wide chart) */
.pan { overflow-x: auto; border-radius: var(--radius); background: var(--white); -webkit-overflow-scrolling: touch; }
.pan img, .prose .pan img, .prose figure .pan img { max-width: none; width: max(100%, var(--pan-min, 100%)); border-radius: 0; }
.pan-hint { display: none; margin-top: .5em; font-size: .8125em; color: var(--fg-muted); }
.is-pannable > .pan-hint, figure.is-pannable .pan-hint { display: block; }

/* the wide column: figures, diagrams, tables and videos may break out */
.prose-layout {
  --content: min(var(--measure), 100% - 2 * var(--gutter));
  display: grid;
  max-width: none;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [wide-start] minmax(0, 7rem)
    [content-start] var(--content)
    [content-end] minmax(0, 7rem)
    [wide-end] minmax(var(--gutter), 1fr)
    [full-end];
}
.prose-layout > * { grid-column: content; min-width: 0; }
.prose-layout > .wide, .prose-layout > figure.diagram, .prose-layout > figure.video, .prose-layout > .table-wrap.wide { grid-column: wide; }
@media (max-width: 719px) {
  .prose-layout { grid-template-columns: [full-start wide-start] var(--gutter) [content-start] minmax(0, 1fr) [content-end] var(--gutter) [wide-end full-end]; }
  .prose-layout > * { grid-column: content; }
  .prose-layout > .wide, .prose-layout > figure.diagram, .prose-layout > figure.video, .prose-layout > .table-wrap.wide { grid-column: content; }
}


/* 14 Post template ---------------------------------------------------------- */
/* Baseline for src/templates/post.html. The POST piece owns the template and
   assets/css/post.css after foundation; refine there. .post-head, .post-head-inner and
   .post-cta-wrap were removed 2026-10-03 (post-r1 request: the template no longer uses them). */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  margin-left: -.25rem;
  padding-inline: .25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--fg-muted);
  text-decoration: none;
}
.back-link:hover { color: var(--fg); }
.back-link .icon { width: 1.1em; height: 1.1em; }
.post-topic { margin-top: 1.25rem; }
.post-title { margin-top: .85rem; font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); line-height: 1.1; }
.post-standfirst { margin-top: 1.1rem; font-size: var(--fs-lead); line-height: 1.5; color: var(--fg-muted); max-width: 60ch; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .6rem;
  margin-top: 1.5rem;
  font-size: .9375rem;
  color: var(--fg-muted);
}
.post-meta time { font-family: var(--font-mono); font-size: .9em; font-weight: 500; }
.post-author { font-weight: 600; color: var(--fg); }
.post-author-role::before { content: ", "; }
.post-author-role:empty { display: none; }
.post-cover { margin-top: clamp(1.75rem, 1rem + 2.5vw, 3rem); max-width: calc(68rem + 2 * var(--gutter)); }
.post-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); background: var(--navy-900); }
.post-body { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.post-more { padding-bottom: var(--section-y); }
.post-more-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.75rem; }


/* 15 Post card + grid ------------------------------------------------------ */
/* Rendered from src/templates/post-card.html (BLOG piece owns the markup) on the
   blog index AND under every post, so card styles live here, not in blog.css. */
/* Card = white panel with a hairline that lifts on hover (moved here from blog.css,
   blog-r1 shell request, 2026-10-03), so "Related articles" under posts and any
   home use match the blog index. The card pins its own light tokens, so it reads
   correctly on any surface, navy included. */
.post-grid { display: grid; gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem) clamp(1rem, .6rem + 1.4vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.post-card { min-width: 0; }
.post-card-link {
  --fg: var(--navy-900);
  --fg-muted: var(--slate);
  --line: var(--rule);
  --link-line: var(--lime-ink);
  --chip-bg: var(--mist);
  --focus: var(--navy-900);
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--fg);
  text-decoration: none;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s ease;
}
.post-card-link:hover { transform: translateY(-4px); border-color: var(--rule-strong); box-shadow: var(--shadow-2); }
.post-card-link:focus-visible { outline: 3px solid var(--navy-900); outline-offset: 3px; }
.surface-navy .post-card-link:focus-visible, .surface-deep .post-card-link:focus-visible, .surface-green .post-card-link:focus-visible { outline-color: var(--lime-500); }
.post-card-media { display: block; overflow: hidden; border-radius: 0; background: var(--navy-900); aspect-ratio: 16 / 10; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.post-card-link:hover .post-card-media img { transform: scale(1.03); }
.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .7rem;
  padding: clamp(1.15rem, 1rem + .5vw, 1.5rem) clamp(1.15rem, 1rem + .6vw, 1.625rem) clamp(1.25rem, 1.05rem + .6vw, 1.625rem);
}
.post-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; }
.post-card-read { font-size: .8125rem; color: var(--fg-muted); }
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .45rem;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--rule);
  font-size: .875rem;
  color: var(--fg-muted);
}
.post-card-meta time { font-family: var(--font-mono); font-weight: 500; font-size: .95em; }
.post-card-author { font-weight: 600; color: var(--fg); }
.post-card-title { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 650; }
.post-card-link:hover .post-card-title { text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.post-card-excerpt { font-size: .9375rem; line-height: 1.55; color: var(--fg-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 719px) {
  .post-card-body { gap: .55rem; padding: 1rem 1.1rem 1.1rem; }
  .post-card-meta { padding-top: .7rem; }
}


/* 16 Reveal ---------------------------------------------------------------- */
/* Resting state is VISIBLE. site.js adds .reveal-pre only to [data-reveal]
   elements that start below the fold, then removes it on intersection.
   data-reveal="" (rise, default) | "left" | "fade" | "scale".
   data-reveal-stagger on a parent reveals its children 80ms apart. */
.reveal-pre { opacity: 0; transform: translate3d(0, 24px, 0); }
.reveal-pre[data-reveal="left"] { transform: translate3d(-28px, 0, 0); }
.reveal-pre[data-reveal="fade"] { transform: none; }
.reveal-pre[data-reveal="scale"] { transform: scale(.97); }
.reveal-run {
  transition:
    opacity var(--dur) var(--ease-out) calc(var(--reveal-i, 0) * 80ms),
    transform var(--dur) var(--ease-out) calc(var(--reveal-i, 0) * 80ms) !important;
}


/* 17 Lottie, video, pan, copy ----------------------------------------------- */
/* Lottie: <div data-lottie="assets/lottie/green-wifi.json"></div>. Give the box a
   width + aspect-ratio in page CSS (green-wifi 1/1, scene-a 4/5, cafe 809/865). */
[data-lottie] { display: block; width: 100%; }
[data-lottie] svg { display: block; }

/* YouTube facade: <div class="yt" data-id="ID" data-title="Title">fallback link</div> */
.yt { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--navy-950); color: var(--white); }
.yt > a { display: flex; align-items: center; justify-content: center; height: 100%; padding: 1rem; text-align: center; color: var(--white); }
.yt-btn { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.yt-btn img.yt-poster { width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: .88; transition: opacity .25s ease; }
.yt-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 27, 49, 0) 45%, rgba(7, 27, 49, .85)); }
.yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: var(--lime-500);
  color: var(--navy-950);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5);
  transition: transform .25s var(--ease-out);
}
.yt-play svg { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
.yt-title { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1; font-weight: 600; line-height: 1.3; }
.yt-btn:hover .yt-play { transform: scale(1.06); }
.yt-btn:hover img.yt-poster { opacity: 1; }
.yt-btn:focus-visible { outline-offset: -4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* copy buttons: <button data-copy="PCKX600S">Copy</button> */
[data-copy].is-copied { border-color: var(--lime-500); }


/* 18 Utilities -------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; }
.measure { max-width: var(--measure); }
.balance { text-wrap: balance; }
.w-full { width: 100%; }
@media (max-width: 719px) { .hide-sm { display: none !important; } }
@media (min-width: 720px) { .show-sm { display: none !important; } }
@media (max-width: 1079px) { .hide-md { display: none !important; } }
@media (min-width: 1080px) { .show-md { display: none !important; } }


/* 19 Reduced motion -------------------------------------------------------- */
/* Safety net for transitions everywhere. Animations are handled per component
   (a blanket animation kill can freeze a blink on its invisible frame). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal-pre { opacity: 1 !important; transform: none !important; }
  .card-link:hover, .post-card-link:hover, .post-card-link:hover .post-card-media img, .btn:hover .icon-arrow, .link-arrow:hover .icon { transform: none; }
}


/* 20 Print ----------------------------------------------------------------- */
@media print {
  .site-header, .menu-panel, .skip-link, .footer-cta, .footer-top { display: none !important; }
  .reveal-pre { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .surface-navy, .surface-deep, .surface-green { background: #fff !important; color: #000 !important; }
}
