/* ==========================================================================
   Cathasia Exim — site.v2.css
   One stylesheet for the whole site. No build step, no framework.
   IMPORTANT: /assets/* is cached for 1 year (immutable). When you edit this
   file, rename it (site.v3.css) and update the <link> in every page.
   Design rules live in /DESIGN.md.
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted, subset) -------------------------------
   Each file holds only: Basic Latin, Latin-1 (é, ü…), typographic punctuation,
   arrows, € and ₹ — about 67 KB for all three. Instrument Serif has no ₹ glyph,
   so the display stack falls back to Schibsted Grotesk for that character.
   The "fallback" faces below are local system fonts resized to the same
   width/height as the web fonts, so text doesn't jump when the fonts arrive. */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif.subset.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic.subset.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk.subset.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Noto Serif");
  unicode-range: U+0000-20B8, U+20BA-FFFF; /* not ₹ — let Schibsted draw it */
  size-adjust: 83.6%;
  ascent-override: 118.4%;
  descent-override: 37.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Schibsted Grotesk Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Roboto");
  size-adjust: 104.1%;
  ascent-override: 93.8%;
  descent-override: 24.8%;
  line-gap-override: 0%;
}

/* ---------- 2. Design tokens ---------------------------------------------
   Layer 1  Brand primitives  — the three brand colours. Change these only.
   Layer 2  Semantic tokens   — what a colour is FOR (bg, text, accent-text).
                                Defined once per theme.
   Layer 3  Components        — use ONLY semantic tokens, never primitives.

   Themes: .theme-light / .theme-dark on <html>. With no class, the theme
   follows the OS setting via prefers-color-scheme — no JavaScript needed.
   To add a theme (e.g. .theme-contrast): copy one semantic block, give it a
   new class, change values. Nothing else needs to change.
   ------------------------------------------------------------------------ */
:root {
  /* Layer 1 — brand primitives */
  --brand-ink: #0F1C26;     /* Harbour Ink */
  --brand-paper: #F2ECE1;   /* Manifest Paper */
  --brand-signal: #E8571F;  /* Signal Orange */

  /* Status colours (not brand — used for form feedback only) */
  --status-success-light: #1D6E46;
  --status-danger-light: #A8231C;
  --status-success-dark: #74D3A0;
  --status-danger-dark: #FF9A92;

  /* Type */
  --font-display: "Instrument Serif", "Instrument Serif Fallback", "Schibsted Grotesk", Georgia, serif;
  --font-body: "Schibsted Grotesk", "Schibsted Grotesk Fallback", "Helvetica Neue", sans-serif;

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.2vw, 4.5rem);
  --step-5: clamp(3rem, 1.9rem + 5vw, 6.25rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 18px;
  --radius-pill: 999px;

  --container: 76rem;
  --container-narrow: 46rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4.25rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;
}

/* Layer 2 — LIGHT theme (default) */
:root,
.theme-light {
  color-scheme: light;
  --color-bg: var(--brand-paper);
  --color-surface: color-mix(in oklab, var(--brand-paper) 45%, #fff);
  --color-surface-sunken: color-mix(in oklab, var(--brand-paper) 93%, var(--brand-ink));
  --color-text: var(--brand-ink);
  --color-text-muted: color-mix(in oklab, var(--brand-ink) 74%, var(--brand-paper));
  --color-border: color-mix(in oklab, var(--brand-ink) 14%, transparent);
  --color-border-strong: color-mix(in oklab, var(--brand-ink) 58%, var(--brand-paper));
  --color-accent: var(--brand-signal);
  --color-accent-text: color-mix(in oklab, var(--brand-signal) 75%, #000);
  --color-on-accent: var(--brand-ink);
  --color-focus: var(--color-accent-text);
  --color-success: var(--status-success-light);
  --color-danger: var(--status-danger-light);
  --shadow-card: 0 1px 0 color-mix(in oklab, var(--brand-ink) 8%, transparent), 0 18px 40px -24px color-mix(in oklab, var(--brand-ink) 35%, transparent);

  /* Inverse tone (dark bands inside a light page) */
  --inverse-bg: var(--brand-ink);
  --inverse-surface: color-mix(in oklab, var(--brand-ink) 88%, var(--brand-paper));
  --inverse-text: var(--brand-paper);
  --inverse-text-muted: color-mix(in oklab, var(--brand-paper) 72%, var(--brand-ink));
  --inverse-border: color-mix(in oklab, var(--brand-paper) 16%, transparent);
  --inverse-border-strong: color-mix(in oklab, var(--brand-paper) 52%, var(--brand-ink));
  --inverse-accent-text: color-mix(in oklab, var(--brand-signal) 80%, var(--brand-paper));
  --inverse-success: var(--status-success-dark);
  --inverse-danger: var(--status-danger-dark);
}

/* Layer 2 — DARK theme. Same token names, different values.
   Duplicated once on purpose: the media query covers "no choice made, OS is
   dark"; the class covers "visitor chose dark". Keep the two blocks equal. */
@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) {
    color-scheme: dark;
    --color-bg: var(--brand-ink);
    --color-surface: color-mix(in oklab, var(--brand-ink) 90%, var(--brand-paper));
    --color-surface-sunken: color-mix(in oklab, var(--brand-ink) 78%, #000);
    --color-text: var(--brand-paper);
    --color-text-muted: color-mix(in oklab, var(--brand-paper) 72%, var(--brand-ink));
    --color-border: color-mix(in oklab, var(--brand-paper) 15%, transparent);
    --color-border-strong: color-mix(in oklab, var(--brand-paper) 52%, var(--brand-ink));
    --color-accent: var(--brand-signal);
    --color-accent-text: color-mix(in oklab, var(--brand-signal) 80%, var(--brand-paper));
    --color-on-accent: var(--brand-ink);
    --color-focus: var(--color-accent-text);
    --color-success: var(--status-success-dark);
    --color-danger: var(--status-danger-dark);
    --shadow-card: 0 1px 0 color-mix(in oklab, var(--brand-paper) 6%, transparent), 0 18px 40px -24px #000;
    --inverse-bg: color-mix(in oklab, var(--brand-ink) 70%, #000);
    --inverse-surface: color-mix(in oklab, var(--brand-ink) 92%, var(--brand-paper));
    --inverse-text: var(--brand-paper);
    --inverse-text-muted: color-mix(in oklab, var(--brand-paper) 72%, var(--brand-ink));
    --inverse-border: color-mix(in oklab, var(--brand-paper) 16%, transparent);
    --inverse-border-strong: color-mix(in oklab, var(--brand-paper) 52%, var(--brand-ink));
    --inverse-accent-text: color-mix(in oklab, var(--brand-signal) 80%, var(--brand-paper));
    --inverse-success: var(--status-success-dark);
    --inverse-danger: var(--status-danger-dark);
  }
}
.theme-dark {
  color-scheme: dark;
  --color-bg: var(--brand-ink);
  --color-surface: color-mix(in oklab, var(--brand-ink) 90%, var(--brand-paper));
  --color-surface-sunken: color-mix(in oklab, var(--brand-ink) 78%, #000);
  --color-text: var(--brand-paper);
  --color-text-muted: color-mix(in oklab, var(--brand-paper) 72%, var(--brand-ink));
  --color-border: color-mix(in oklab, var(--brand-paper) 15%, transparent);
  --color-border-strong: color-mix(in oklab, var(--brand-paper) 52%, var(--brand-ink));
  --color-accent: var(--brand-signal);
  --color-accent-text: color-mix(in oklab, var(--brand-signal) 80%, var(--brand-paper));
  --color-on-accent: var(--brand-ink);
  --color-focus: var(--color-accent-text);
  --color-success: var(--status-success-dark);
  --color-danger: var(--status-danger-dark);
  --shadow-card: 0 1px 0 color-mix(in oklab, var(--brand-paper) 6%, transparent), 0 18px 40px -24px #000;
  --inverse-bg: color-mix(in oklab, var(--brand-ink) 70%, #000);
  --inverse-surface: color-mix(in oklab, var(--brand-ink) 92%, var(--brand-paper));
  --inverse-text: var(--brand-paper);
  --inverse-text-muted: color-mix(in oklab, var(--brand-paper) 72%, var(--brand-ink));
  --inverse-border: color-mix(in oklab, var(--brand-paper) 16%, transparent);
  --inverse-border-strong: color-mix(in oklab, var(--brand-paper) 52%, var(--brand-ink));
  --inverse-accent-text: color-mix(in oklab, var(--brand-signal) 80%, var(--brand-paper));
  --inverse-success: var(--status-success-dark);
  --inverse-danger: var(--status-danger-dark);
}

/* Fallback for the rare browser without color-mix(): pre-computed hex values
   (same results, rounded). Light theme first, then dark overrides. */
@supports not (color: color-mix(in oklab, red 50%, blue)) {
  :root, .theme-light {
    --color-surface: #F9F6F1; --color-surface-sunken: #E0DCD2;
    --color-text-muted: #424B52; --color-border: rgba(15, 28, 38, .14);
    --color-border-strong: #656B6E; --color-accent-text: #9E3811;
    --shadow-card: 0 18px 40px -24px rgba(15, 28, 38, .35);
    --inverse-surface: #26313A; --inverse-text-muted: #ABACA8;
    --inverse-border: rgba(242, 236, 225, .16); --inverse-border-strong: #7B8081;
    --inverse-accent-text: #EE7950;
  }
  .theme-dark {
    --color-surface: #222D36; --color-surface-sunken: #071118;
    --color-text-muted: #ABACA8; --color-border: rgba(242, 236, 225, .15);
    --color-border-strong: #7B8081; --color-accent-text: #EE7950;
    --shadow-card: 0 18px 40px -24px #000;
    --inverse-bg: #050D13; --inverse-surface: #1E2A33;
  }
}

/* Layer 3 helper — any section with .tone-inverse remaps the semantic tokens
   to the inverse set, so components inside "just work" on a dark band. */
.tone-inverse {
  --color-bg: var(--inverse-bg);
  --color-surface: var(--inverse-surface);
  --color-text: var(--inverse-text);
  --color-text-muted: var(--inverse-text-muted);
  --color-border: var(--inverse-border);
  --color-border-strong: var(--inverse-border-strong);
  --color-accent-text: var(--inverse-accent-text);
  --color-focus: var(--inverse-accent-text);
  --color-success: var(--inverse-success);
  --color-danger: var(--inverse-danger);
  background: var(--color-bg);
  color: var(--color-text);
}

/* ---------- 3. Base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--color-accent-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--color-accent); color: var(--color-on-accent); }
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--color-accent); color: var(--color-on-accent);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-m);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

/* ---------- 4. Layout & type primitives ----------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--sunken { background: var(--color-surface-sunken); }
.section__head { display: grid; gap: var(--space-4); max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--split {
  max-width: none; grid-template-columns: 1fr; align-items: end;
}
@media (min-width: 56rem) { .section__head--split { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-7); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-accent-text);
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 1px; background: currentColor;
}
.display { font-family: var(--font-display); font-size: var(--step-4); letter-spacing: -0.015em; }
.display em, .h2 em { font-style: italic; color: var(--color-accent-text); }
.h2 { font-family: var(--font-display); font-size: var(--step-3); letter-spacing: -0.01em; }
.h3 { font-family: var(--font-body); font-size: var(--step-1); font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--color-text-muted); max-width: 38rem; }
.muted { color: var(--color-text-muted); }
.label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted); font-variant-numeric: tabular-nums;
}
.prose { display: grid; gap: var(--space-4); max-width: 42rem; }
.prose h2 { font-family: var(--font-display); font-size: var(--step-3); margin-top: var(--space-6); }
.prose h3 { font-size: var(--step-1); font-weight: 650; margin-top: var(--space-4); line-height: 1.3; }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: var(--space-2); }
.prose li::marker { color: var(--color-accent-text); }
.prose a { color: var(--color-accent-text); }

/* ---------- 5. Buttons ------------------------------------------------------ */
.btn {
  --btn-bg: transparent; --btn-fg: var(--color-text); --btn-bd: var(--color-border-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3.25rem; padding: 0.85rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--radius-pill);
  font-weight: 650; font-size: var(--step-0); line-height: 1; text-decoration: none;
  white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn--primary {
  --btn-bg: var(--color-accent); --btn-fg: var(--color-on-accent); --btn-bd: var(--color-accent);
  box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--brand-signal) 70%, transparent);
}
.btn--primary::after {
  /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, color-mix(in oklab, #fff 35%, transparent) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform var(--dur-slow) var(--ease-out);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--secondary:hover { --btn-bd: var(--color-text); background: color-mix(in oklab, var(--color-text) 6%, transparent); }
.btn--small { min-height: 2.75rem; padding: 0.6rem 1.1rem; font-size: var(--step--1); }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.75; }
.btn[aria-busy="true"]::before {
  content: ""; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em; font-weight: 650;
  color: var(--color-text); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size var(--dur) var(--ease-out), color var(--dur) ease;
}
.link-arrow:hover { background-size: 100% 1.5px; color: var(--color-accent-text); }
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Header & navigation ---------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 96%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: baseline; gap: 0.3rem; text-decoration: none; color: var(--color-text); margin-right: auto; }
.brand:hover { color: var(--color-text); }
.brand__mark { width: 1.6rem; height: 1.6rem; align-self: center; color: var(--color-accent); }
.brand__name { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; letter-spacing: -0.01em; }
.brand__suffix { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; color: var(--color-accent-text); }

.nav { display: none; }
.nav__list { list-style: none; display: flex; align-items: center; gap: var(--space-1); }
.nav__link {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.8rem;
  border-radius: var(--radius-pill); text-decoration: none; font-weight: 550; font-size: 0.95rem;
  color: var(--color-text-muted); transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav__link:hover { color: var(--color-text); background: color-mix(in oklab, var(--color-text) 6%, transparent); }
.nav__link[aria-current="page"] { color: var(--color-text); box-shadow: inset 0 -2px 0 var(--color-accent); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-cta { display: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; border: 1px solid var(--color-border); background: transparent; color: var(--color-text);
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { border-color: var(--color-border-strong); background: color-mix(in oklab, var(--color-text) 6%, transparent); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 1.2rem; height: 1.2rem; }
/* Theme icon: show moon in light, sun in dark */
.theme-toggle .icon-sun { display: none; }
.theme-dark .theme-toggle .icon-sun { display: block; }
.theme-dark .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) .theme-toggle .icon-sun { display: block; }
  :root:not(.theme-light) .theme-toggle .icon-moon { display: none; }
}
/* No JS = no toggle (it would do nothing) */
html:not(.js) .theme-toggle, html:not(.js) .nav-toggle { display: none; }

.nav-toggle .bar { transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) ease; transform-origin: center; }
.nav-toggle[aria-expanded="true"] .bar--1 { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar--2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar--3 { transform: translateY(-5px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--color-bg); padding: var(--space-5) var(--gutter) var(--space-8);
  overflow-y: auto; display: grid; align-content: start; gap: var(--space-6);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-nav__list { list-style: none; display: grid; }
.mobile-nav__list a {
  display: flex; justify-content: space-between; align-items: center; min-height: 3.5rem;
  border-bottom: 1px solid var(--color-border); text-decoration: none;
  font-family: var(--font-display); font-size: 1.85rem;
}
.mobile-nav__list a[aria-current="page"] { color: var(--color-accent-text); }
html:not(.js) .mobile-nav { display: none; }
body.menu-open { overflow: hidden; }

@media (min-width: 64rem) {
  .nav { display: block; }
  .nav-toggle, .mobile-nav { display: none !important; }
  .header-cta { display: inline-flex; }
}
/* Without JS on small screens, show the plain nav list below the header */
@media (max-width: 63.99rem) {
  html:not(.js) .nav { display: block; width: 100%; padding-bottom: var(--space-3); }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .nav__list { flex-wrap: wrap; }
}

/* ---------- 7. Hero -------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 7vw, 6rem); }
.hero::before {
  /* atmospheric glow + paper grain, pure CSS */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--brand-signal) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--color-border) 1px, transparent 1px), linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero__copy { display: grid; gap: var(--space-5); }
.hero__title { font-family: var(--font-display); font-size: clamp(2.75rem, 1.5rem + 4.6vw, 5.5rem); line-height: 0.98; letter-spacing: -0.025em; }
.hero__title em { font-style: italic; color: var(--color-accent-text); }
.hero__title .line { display: block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); padding-top: var(--space-2); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); padding-top: var(--space-3); list-style: none; }
.hero__trust li { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--step--1); color: var(--color-text-muted); font-weight: 550; }
.hero__trust svg { width: 1rem; height: 1rem; color: var(--color-accent-text); }

.hero__visual { position: relative; }
.routes { width: 100%; height: auto; aspect-ratio: 600 / 520; color: var(--color-text); }
.routes .land { fill: color-mix(in oklab, var(--color-text) 9%, transparent); }
.routes .grid-line { stroke: var(--color-border); }
.routes .route {
  fill: none; stroke: var(--color-accent); stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 4 7; animation: dash 2.8s linear infinite;
}
.routes .route--faint { stroke: color-mix(in oklab, var(--color-text) 35%, transparent); stroke-width: 1; animation-duration: 5s; }
.routes .port { fill: var(--color-bg); stroke: var(--color-text); stroke-width: 1.5; }
.routes .port--home { fill: var(--color-accent); stroke: none; }
.routes .pulse { fill: none; stroke: var(--color-accent); stroke-width: 1.5; transform-origin: center; transform-box: fill-box; animation: pulse 2.4s var(--ease-out) infinite; }
.routes text { font-family: var(--font-body); font-size: 11px; font-weight: 650; letter-spacing: 0.1em; fill: var(--color-text-muted); }
@keyframes dash { to { stroke-dashoffset: -110; } }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }

.manifest {
  position: relative; margin: -4.5rem 0 0 auto; width: min(20rem, 92%);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-l);
  box-shadow: var(--shadow-card); padding: var(--space-5); display: grid; gap: var(--space-4);
  animation: float 7s ease-in-out infinite;
}
.manifest__top { display: flex; justify-content: space-between; align-items: center; }
.manifest__id { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.06em; font-size: 0.8rem; }
.status-pill {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 700; color: var(--color-success);
  background: color-mix(in oklab, var(--color-success) 12%, transparent);
}
.status-pill::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }
.manifest__route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3); }
.manifest__route strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; line-height: 1; letter-spacing: 0.02em; }
.manifest__route span { font-size: 0.8rem; color: var(--color-text-muted); }
.manifest__route .to { text-align: right; }
.manifest__line { width: 3.5rem; height: 1px; background: repeating-linear-gradient(90deg, var(--color-accent) 0 4px, transparent 4px 8px); position: relative; }
.manifest__line::after { content: ""; position: absolute; right: -2px; top: -3px; border: 3.5px solid transparent; border-left: 6px solid var(--color-accent); }
.manifest__steps { list-style: none; display: grid; gap: var(--space-2); border-top: 1px dashed var(--color-border-strong); padding-top: var(--space-4); }
.manifest__steps li { display: flex; justify-content: space-between; font-size: 0.85rem; }
.manifest__steps li span:last-child { font-weight: 650; }
.manifest__steps .done span:last-child { color: var(--color-success); }
.manifest__steps .now span:last-child { color: var(--color-accent-text); }
@media (min-width: 60rem) {
  .manifest { position: absolute; left: 0; bottom: 0; margin: 0; width: min(19rem, 58%); }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes blink { 50% { opacity: 0.35; } }

/* Photo slot (optional). Uses Netlify Image CDN — see README "Adding photos". */
.photo { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--color-surface-sunken); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 8. Ticker ------------------------------------------------------- */
.ticker { border-block: 1px solid var(--color-border); overflow: hidden; padding-block: var(--space-4); }
.ticker__track { display: flex; gap: var(--space-7); width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: baseline; gap: var(--space-3); white-space: nowrap; }
.ticker__item b { font-weight: 700; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--color-accent-text); }
.ticker__item span { font-family: var(--font-display); font-size: 1.5rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 9. Problem / solution ----------------------------------------- */
.compare { display: grid; gap: var(--space-5); }
@media (min-width: 52rem) { .compare { grid-template-columns: 1fr 1fr; gap: 0; } }
.compare__col { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--color-border); display: grid; gap: var(--space-5); align-content: start; }
.compare__col--before { border-radius: var(--radius-l); }
.compare__col--after { border-radius: var(--radius-l); background: var(--color-surface); box-shadow: var(--shadow-card); }
@media (min-width: 52rem) {
  .compare__col--before { border-radius: var(--radius-l) 0 0 var(--radius-l); border-right: 0; }
  .compare__col--after { border-radius: 0 var(--radius-l) var(--radius-l) 0; position: relative; transform: translateY(-1.5rem); }
}
.compare__list { list-style: none; display: grid; gap: var(--space-4); }
.compare__list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--space-3); align-items: start; }
.compare__list li svg { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; }
.compare__col--before li svg { color: var(--color-danger); }
.compare__col--before li strong { text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--color-danger) 60%, transparent); text-decoration-thickness: 1.5px; }
.compare__col--after li svg { color: var(--color-success); }
.compare__list strong { display: block; font-weight: 650; }
.compare__list span { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- 10. Feature rows (core services) ------------------------------ */
.features { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.feature { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 56rem) {
  .feature { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  .feature:nth-child(even) .feature__art { order: -1; }
}
.feature__body { display: grid; gap: var(--space-4); }
.feature__index { font-family: var(--font-display); font-size: var(--step-3); color: var(--color-accent-text); line-height: 1; font-style: italic; }
.feature__list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--color-border); margin-block: var(--space-2); }
.feature__list li { display: flex; gap: var(--space-3); padding-block: 0.8rem; border-bottom: 1px solid var(--color-border); font-weight: 520; }
.feature__list li::before { content: "→"; color: var(--color-accent-text); font-weight: 700; }
.feature__art {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-l); overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border);
  display: grid; place-items: center;
}
.feature__art svg { width: 78%; height: auto; color: var(--color-text); transition: transform var(--dur-slow) var(--ease-out); }
.feature:hover .feature__art svg { transform: scale(1.03) rotate(-0.5deg); }
.feature__art .accent { color: var(--color-accent); }
.feature__tag {
  position: absolute; left: var(--space-4); top: var(--space-4); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong); color: var(--color-text-muted); background: var(--color-bg);
}

/* ---------- 11. Steps ------------------------------------------------------ */
.steps { list-style: none; display: grid; gap: var(--space-5); counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; display: grid; align-content: start; gap: var(--space-3); padding-top: var(--space-5); border-top: 1.5px solid var(--color-text); position: relative; }
.step::before { content: "0" counter(step); font-family: var(--font-display); font-size: var(--step-3); line-height: 1; color: var(--color-accent-text); font-style: italic; }
.step p { color: var(--color-text-muted); }

/* ---------- 12. Service category grid & directory cards ------------------- */
.cat-grid { display: grid; gap: var(--space-4); }
@media (min-width: 44rem) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card {
  display: grid; gap: var(--space-4); align-content: start; padding: var(--space-5);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-l);
  text-decoration: none; color: var(--color-text);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--color-border-strong); box-shadow: var(--shadow-card); color: var(--color-text); }
.cat-card ul { list-style: none; display: grid; gap: 0.35rem; font-size: 0.92rem; color: var(--color-text-muted); }
.cat-card__count { font-variant-numeric: tabular-nums; }
.cat-card .link-arrow { margin-top: auto; }

.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0 1rem;
  border-radius: var(--radius-pill); border: 1px solid var(--color-border-strong);
  background: transparent; font-size: 0.92rem; font-weight: 600; color: var(--color-text);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.chip:hover { background: color-mix(in oklab, var(--color-text) 7%, transparent); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.chip__count { font-variant-numeric: tabular-nums; opacity: 0.7; font-weight: 500; }

.directory__controls {
  position: sticky; top: var(--header-h); z-index: 5; display: grid; gap: var(--space-4);
  padding-block: var(--space-4); background: var(--color-bg); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-6);
}
.directory__filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.search { position: relative; max-width: 30rem; }
.search svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 1.1rem; height: 1.1rem; color: var(--color-text-muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 3.25rem; padding: 0 2.75rem 0 2.75rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border-strong); background: var(--color-surface);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.search input:focus { outline: none; border-color: var(--color-focus); box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-accent) 22%, transparent); }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear { position: absolute; right: 0.4rem; top: 50%; translate: 0 -50%; border: 0; background: transparent; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; color: var(--color-text-muted); }
.search__clear:hover { color: var(--color-text); background: color-mix(in oklab, var(--color-text) 7%, transparent); }
.search__clear[hidden] { display: none; }
.directory__status { font-size: var(--step--1); color: var(--color-text-muted); min-height: 1.5em; }

.dir-group { margin-bottom: var(--space-8); }
.dir-group[hidden] { display: none; }
.dir-group__title { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-5); padding-bottom: var(--space-3); border-bottom: 1.5px solid var(--color-text); }
.dir-grid { list-style: none; display: grid; gap: var(--space-3); }
@media (min-width: 40rem) { .dir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .dir-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  height: 100%; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5);
  border: 1px solid var(--color-border); border-radius: var(--radius-m); background: var(--color-surface);
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.svc-card:hover { border-color: var(--color-border-strong); transform: translateY(-2px); }
.dir-grid li[hidden] { display: none; }
.svc-card h3 { font-size: 1.05rem; font-weight: 650; line-height: 1.3; }
.svc-card p { font-size: 0.93rem; color: var(--color-text-muted); }
.svc-card a { font-size: 0.9rem; font-weight: 650; color: var(--color-accent-text); text-decoration: none; margin-top: auto; padding-top: var(--space-2); }
.dir-group__title .label { font-family: var(--font-body); font-size: 0.8rem; }
.svc-card a:hover { text-decoration: underline; }
mark { background: color-mix(in oklab, var(--brand-signal) 28%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.empty-state { display: grid; gap: var(--space-4); justify-items: start; padding: var(--space-7) var(--space-5); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-l); }
.empty-state[hidden] { display: none; }

/* ---------- 13. Areas served ---------------------------------------------- */
.areas { display: grid; gap: var(--space-7); }
@media (min-width: 60rem) { .areas { grid-template-columns: 0.9fr 1.1fr; } }
.area-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-5); align-content: start; }
@media (min-width: 40rem) { .area-list { grid-template-columns: repeat(3, 1fr); } }
.area-list li { padding-block: 0.85rem; border-bottom: 1px solid var(--color-border); font-weight: 550; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.area-list li span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--color-text-muted); }
.gateways { list-style: none; display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.gateways li { display: flex; gap: var(--space-4); align-items: baseline; padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m); }
.gateways b { font-size: 0.78rem; letter-spacing: 0.12em; color: var(--color-accent-text); min-width: 4.5rem; }

/* ---------- 14. Testimonials ---------------------------------------------- */
.quotes { display: grid; gap: var(--space-4); }
@media (min-width: 56rem) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  margin: 0; display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-5); padding: var(--space-6);
  border-radius: var(--radius-l); border: 1px solid var(--color-border); background: var(--color-surface);
  transition: transform var(--dur) var(--ease-out);
}
.quote:hover { transform: translateY(-4px); }
.quote:nth-child(2) { background: var(--color-text); color: var(--color-bg); border-color: transparent; }
.quote:nth-child(2) .quote__meta span { color: inherit; opacity: 0.85; }
.quote:nth-child(2) .quote__mark { color: var(--color-accent); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; }
.quote__mark { font-family: var(--font-display); font-size: 4rem; line-height: 0.5; color: var(--color-accent-text); height: 1.5rem; }
.quote__meta { display: grid; gap: 0.15rem; font-size: 0.9rem; }
.quote__meta strong { font-weight: 650; }
.quote__meta span { color: var(--color-text-muted); }

/* ---------- 15. FAQ -------------------------------------------------------- */
.faq { display: grid; border-top: 1.5px solid var(--color-text); }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding-block: var(--space-5); font-size: var(--step-1); font-weight: 600; line-height: 1.35;
  transition: color var(--dur-fast) ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--color-accent-text); }
.faq__icon { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--color-border-strong); display: grid; place-items: center; transition: transform var(--dur) var(--ease-out), background-color var(--dur) ease; }
.faq__icon::before { content: "+"; font-size: 1.3rem; line-height: 1; font-weight: 400; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.faq__answer { padding-bottom: var(--space-5); max-width: 46rem; color: var(--color-text-muted); display: grid; gap: var(--space-3); }
.faq__answer a { color: var(--color-accent-text); }

/* ---------- 16. Final CTA + form ------------------------------------------ */
.cta-final { position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; left: -15%; bottom: -40%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--brand-signal) 26%, transparent), transparent 70%);
  pointer-events: none;
}
.cta-final__grid { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 60rem) { .cta-final__grid { grid-template-columns: 0.95fr 1.05fr; align-items: start; } }
.cta-final__copy { display: grid; gap: var(--space-5); }
.deadlines { list-style: none; display: grid; gap: var(--space-3); }
.deadlines li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-m); }
.deadlines b { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-text); padding-top: 0.2rem; min-width: 5.5rem; }
.deadlines span { color: var(--color-text-muted); font-size: 0.95rem; }
.deadlines strong { color: var(--color-text); display: block; font-weight: 650; }
.contact-lines { list-style: none; display: grid; gap: var(--space-2); }
.contact-lines li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.contact-lines a { font-weight: 650; font-size: var(--step-1); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

.form-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-l); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-card); display: grid; gap: var(--space-5); }
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 36rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 650; }
.field .req { color: var(--color-accent-text); }
.field__hint { font-size: 0.8rem; color: var(--color-text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 1rem; border-radius: var(--radius-m);
  border: 1.5px solid var(--color-border-strong); background: var(--color-bg); color: var(--color-text);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-focus); box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-accent) 22%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: var(--color-text-muted); opacity: 0.8; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--color-danger); }
.field__error { font-size: 0.82rem; font-weight: 600; color: var(--color-danger); min-height: 0; }
.field__error:empty { display: none; }
.field.is-valid input { border-color: color-mix(in oklab, var(--color-success) 70%, var(--color-border-strong)); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__footnote { font-size: 0.8rem; color: var(--color-text-muted); }
.form__footnote a { color: inherit; }
.form-status { display: grid; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-m); border: 1.5px solid; }
.form-status[hidden] { display: none; }
.form-status--success { border-color: var(--color-success); background: color-mix(in oklab, var(--color-success) 10%, transparent); }
.form-status--error { border-color: var(--color-danger); background: color-mix(in oklab, var(--color-danger) 8%, transparent); }
.form-status h3 { font-family: var(--font-display); font-size: var(--step-2); }
.form-status .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- 17. Footer ---------------------------------------------------- */
.site-footer { padding-block: var(--space-9) var(--space-6); border-top: 1px solid var(--color-border); }
.footer__grid { display: grid; gap: var(--space-7); }
@media (min-width: 56rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand { display: grid; gap: var(--space-4); align-content: start; max-width: 22rem; }
.footer__col { display: grid; gap: var(--space-3); align-content: start; }
.footer__col ul { list-style: none; display: grid; gap: 0.15rem; }
.footer__col a { display: inline-flex; align-items: center; min-height: 2.25rem; text-decoration: none; color: var(--color-text-muted); font-size: 0.95rem; }
.footer__col a:hover { color: var(--color-text); text-decoration: underline; }
.footer__col address { font-style: normal; color: var(--color-text-muted); font-size: 0.95rem; display: grid; gap: var(--space-2); }
.footer__bottom { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--color-border); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); justify-content: space-between; font-size: 0.85rem; color: var(--color-text-muted); }
.footer__wordmark { font-family: var(--font-display); font-size: clamp(4rem, 17vw, 15rem); line-height: 0.8; letter-spacing: -0.04em; margin-top: var(--space-8); color: color-mix(in oklab, var(--color-text) 8%, transparent); user-select: none; white-space: nowrap; overflow: hidden; }
.footer__wordmark::before { content: "Cathasia Exim"; } /* decorative: drawn by CSS so it is not read as low-contrast text */

/* ---------- 18. Mobile action bar (WhatsApp is primary) ------------------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: var(--space-2);
  padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--color-bg) 97%, transparent);
  border-top: 1px solid var(--color-border);
  transition: transform var(--dur) var(--ease-out);
}
.action-bar.is-hidden { transform: translateY(110%); }
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  min-height: 3.25rem; min-width: 48px; border-radius: var(--radius-m); text-decoration: none;
  font-size: 0.75rem; font-weight: 700; color: var(--color-text); border: 1px solid var(--color-border-strong);
}
.action-bar a svg { width: 1.25rem; height: 1.25rem; }
.action-bar .action-bar__wa { flex-direction: row; gap: 0.5rem; font-size: 0.95rem; background: var(--color-accent); color: var(--color-on-accent); border-color: var(--color-accent); }
.action-bar a:active { transform: scale(0.97); }
@media (min-width: 64rem) { .action-bar { display: none; } }
@media (max-width: 63.99rem) { body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); } }

/* ---------- 19. Inner pages: breadcrumbs, article + aside ----------------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--color-border); position: relative; overflow: hidden; }
.page-hero__inner { display: grid; gap: var(--space-5); position: relative; }
.page-hero__inner > * { max-width: 52rem; }
.page-hero h1 { font-family: var(--font-display); font-size: var(--step-4); letter-spacing: -0.02em; }
.page-hero h1 em { font-style: italic; color: var(--color-accent-text); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--color-text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: var(--color-text); }
.breadcrumbs [aria-current] { color: var(--color-text); }

.article-layout { display: grid; gap: var(--space-8); padding-block: clamp(3rem, 6vw, 5rem); }
@media (min-width: 64rem) { .article-layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: var(--space-9); align-items: start; } }
.article-layout > article { min-width: 0; }
.aside-card { position: sticky; top: calc(var(--header-h) + var(--space-5)); display: grid; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-l); }
.aside-card .h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 400; }
.aside-card ul { list-style: none; display: grid; gap: var(--space-2); font-size: 0.95rem; }
.aside-card li { display: flex; gap: var(--space-2); }
.aside-card li::before { content: "✓"; color: var(--color-accent-text); font-weight: 700; }

.toc { padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-m); display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.toc ol { padding-left: 1.2rem; display: grid; gap: 0.25rem; font-size: 0.95rem; }
.toc a { text-decoration: none; color: var(--color-text-muted); }
.toc a:hover { color: var(--color-accent-text); text-decoration: underline; }

.checklist { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; border: 1px solid var(--color-border); border-radius: var(--radius-m); overflow: hidden; }
.checklist li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.checklist li:last-child { border-bottom: 0; }
.checklist__head { background: var(--color-surface-sunken) !important; font-weight: 650; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.25rem; padding: 0 0.75rem;
  border-radius: var(--radius-pill); border: 1px solid var(--color-border-strong); background: transparent;
  font-size: 0.8rem; font-weight: 650; color: var(--color-text); white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.copy-btn:hover { background: color-mix(in oklab, var(--color-text) 7%, transparent); }
.copy-btn svg { width: 0.95rem; height: 0.95rem; }
.copy-btn.is-copied { background: var(--color-success); border-color: var(--color-success); color: var(--color-bg); }
html:not(.js) .copy-btn { display: none; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--color-border); vertical-align: top; }
.data-table th { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 650; }
.data-table code { white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-m); background: var(--color-surface); }

code, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.88em; }
:not(pre) > code { background: var(--color-surface-sunken); padding: 0.1em 0.35em; border-radius: var(--radius-s); }
.code-block { position: relative; border-radius: var(--radius-m); background: var(--color-surface-sunken); border: 1px solid var(--color-border); }
.code-block pre { margin: 0; padding: var(--space-5); padding-top: 3rem; overflow-x: auto; line-height: 1.55; }
.code-block__bar { position: absolute; top: 0.5rem; left: var(--space-4); right: 0.5rem; display: flex; justify-content: space-between; align-items: center; }

/* Map facade on /contact/ */
.map-facade { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface-sunken); }
.map-facade iframe { width: 100%; height: 100%; border: 0; }
.map-facade__placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: var(--space-4); text-align: center; padding: var(--space-5); background-image: linear-gradient(var(--color-border) 1px, transparent 1px), linear-gradient(90deg, var(--color-border) 1px, transparent 1px); background-size: 32px 32px; }
.map-facade .map-facade__pin { width: 3rem; height: 3rem; color: var(--color-accent); }

/* Generic cards row (contact page) */
.info-grid { display: grid; gap: var(--space-4); }
@media (min-width: 44rem) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
.info-card { padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-m); background: var(--color-surface); display: grid; gap: var(--space-2); align-content: start; }
.info-card a { font-weight: 650; font-size: var(--step-1); text-decoration: none; overflow-wrap: anywhere; }
.info-card a:hover { text-decoration: underline; }
/* Email is wider than the card at display size; smaller size fits the 212px content box without mid-word splits. */
.info-card a.info-card__email { font-size: var(--step--1); overflow-wrap: normal; }
.nowrap { white-space: nowrap; }

/* ---------- 20. Toast (copy feedback) ------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom)); z-index: 60;
  translate: -50% 0; padding: 0.75rem 1.1rem; border-radius: var(--radius-pill);
  background: var(--color-text); color: var(--color-bg); font-weight: 650; font-size: 0.9rem;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: none; }
@media (min-width: 64rem) { .toast { bottom: var(--space-6); } }

/* ---------- 20b. Rendering performance ----------------------------------
   - Glassy header blur only on large, mouse-driven screens (cheap there; on
     phones backdrop-filter re-blurs every scrolled frame).
   - content-visibility: the browser skips layout/paint for sections that are
     off-screen until the visitor scrolls near them. contain-intrinsic-size
     reserves an estimated height so the scrollbar doesn't jump.
   - .is-paused: main.js adds it to animated blocks that are off-screen. */
@media (min-width: 64rem) and (hover: hover) {
  .site-header { background: color-mix(in oklab, var(--color-bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
}
main > section:not(:first-child) { content-visibility: auto; contain-intrinsic-size: auto 900px; }
/* main.js adds .cv-off before any in-page jump (#get-quote etc.) so the browser
   measures real heights and lands exactly on the target. */
.cv-off main > section { content-visibility: visible; }
/* Grid children may not shrink below their content by default — allow it. */
.hero__grid > *, .cta-final__grid > *, .areas > *, .compare > *, .feature > *, .footer__grid > * { min-width: 0; }
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* ---------- 21. Scroll reveal -------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- 22. Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* ---------- 23. Print ---------------------------------------------------- */
@media print {
  .site-header, .action-bar, .mobile-nav, .cta-final::before, .hero::before, .hero::after, .footer__wordmark { display: none !important; }
  body { padding: 0; }
}

/* ---------- 24. Small utilities (no inline styles — CSP blocks them) ------ */
.h2--sm { font-size: var(--step-2); }
.mt-2 { margin-top: var(--space-2); }
.justify-start { justify-self: start; }
.delay-1 { --reveal-delay: 120ms; }
.stack { display: grid; gap: var(--space-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.feature__art .wheel { fill: var(--color-surface); }
.routes .home-label { fill: var(--color-text); font-weight: 750; }
/* Default size for sprite icons; component rules above override it */
.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }
.contact-lines a { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer__col address > span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- 25. UX review fixes (see UX-REVIEW.md) ----------------------- */
/* Optional form fields collapsed by default — 3 required fields up front */
.form__more { border: 1px dashed var(--color-border-strong); border-radius: var(--radius-m); }
.form__more > summary { list-style: none; cursor: pointer; min-height: 3rem; display: flex; align-items: center; gap: 0.5rem; padding: 0 1rem; font-size: 0.9rem; font-weight: 650; }
.form__more > summary::-webkit-details-marker { display: none; }
.form__more > summary::before { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--color-accent-text); transition: transform var(--dur) var(--ease-out); }
.form__more[open] > summary::before { transform: rotate(45deg); }
.form__more > summary:hover { color: var(--color-accent-text); }
.form__more-body { display: grid; gap: var(--space-4); padding: 0 1rem 1rem; }
/* Feature illustrations are links now: show it */
a.feature__art { cursor: pointer; transition: border-color var(--dur) ease, box-shadow var(--dur) ease; }
a.feature__art:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-card); }
/* Phones: compact sticky filter bar — chips scroll sideways instead of wrapping into 3 rows */
@media (max-width: 47.99rem) {
  .directory__controls { gap: var(--space-3); padding-block: var(--space-3); }
  .directory__filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 2.5rem), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 2.5rem), transparent); }
  .directory__filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .search input { min-height: 3rem; }
  /* Hero map: scale labels up so they stay legible (the SVG shrinks to ~60%) */
  .routes text { font-size: 17px; }
  .routes text.home-label { font-size: 15px; }
  .routes { overflow: visible; }
  .routes .geo-label { display: none; }
}
