/* ============================================================================
   IRONWOOD SECURITY GROUP — Design system
   Committed dark theme. OKLCH tokens. Archivo + Spectral + JetBrains Mono.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Surfaces — cool near-black, faint marine tint (deep-harbour-at-dawn) */
  --bg:        oklch(0.155 0.012 240);
  --bg-2:      oklch(0.175 0.012 240);
  --surface-1: oklch(0.198 0.013 240);
  --surface-2: oklch(0.238 0.015 240);
  --hairline:  oklch(0.330 0.014 240);
  --hairline-2: oklch(0.270 0.013 240);

  /* Ink */
  --ink:    oklch(0.948 0.006 240);
  --muted:  oklch(0.745 0.013 240);
  --faint:  oklch(0.635 0.014 240);

  /* Brand */
  --primary:   oklch(0.700 0.110 232);
  --primary-2: oklch(0.620 0.108 232);
  --brass:     oklch(0.805 0.128 76);
  --brass-2:   oklch(0.855 0.110 78);
  --brass-ink: oklch(0.205 0.034 70);

  --good: oklch(0.770 0.105 158);

  /* Topographic motif tint (matches SVG fallback) */
  --topo: oklch(0.62 0.055 235);

  /* Typography */
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Fluid type scale (~1.28 ratio) */
  --t--1: clamp(0.80rem, 0.78rem + 0.10vw, 0.86rem);
  --t-0:  clamp(1.00rem, 0.97rem + 0.14vw, 1.10rem);
  --t-1:  clamp(1.18rem, 1.10rem + 0.40vw, 1.40rem);
  --t-2:  clamp(1.45rem, 1.30rem + 0.75vw, 1.90rem);
  --t-3:  clamp(1.80rem, 1.55rem + 1.25vw, 2.60rem);
  --t-4:  clamp(2.20rem, 1.80rem + 2.00vw, 3.50rem);
  --t-5:  clamp(2.70rem, 2.10rem + 3.00vw, 4.60rem);
  --t-6:  clamp(3.10rem, 2.30rem + 4.10vw, 5.60rem);

  /* Spacing */
  --sp-1: 0.4rem;  --sp-2: 0.8rem;  --sp-3: 1.2rem;  --sp-4: 1.8rem;
  --sp-5: 2.6rem;  --sp-6: 3.6rem;  --sp-7: 5rem;     --sp-8: 7rem;
  --section-y: clamp(4rem, 3rem + 6vw, 8rem);

  --container: 1200px;
  --container-narrow: 880px;

  --radius:   4px;
  --radius-lg: 8px;

  --border: 1px solid var(--hairline-2);

  --shadow-1: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-2: 0 18px 50px -24px oklch(0 0 0 / 0.75);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);     /* expo-ish */
  --ease-out-q: cubic-bezier(0.22, 1, 0.36, 1);  /* quint */
  --dur: 0.55s;

  /* z-index scale */
  --z-base: 1; --z-header: 100; --z-dropdown: 200;
  --z-backdrop: 900; --z-modal: 1000; --z-toast: 1100;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--t-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: var(--brass); color: var(--brass-ink); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 120%;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--t-6); letter-spacing: -0.03em; }
h2 { font-size: var(--t-4); }
h3 { font-size: var(--t-2); font-stretch: 112%; letter-spacing: -0.018em; }
h4 { font-size: var(--t-1); font-stretch: 108%; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.serif { font-family: var(--font-serif); font-stretch: normal; font-weight: 400; letter-spacing: 0; }
.mono {
  font-family: var(--font-mono); font-weight: 500;
  font-size: var(--t--1); letter-spacing: 0.06em; text-transform: uppercase;
}

.lead {
  font-family: var(--font-serif);
  font-size: var(--t-2);
  line-height: 1.5;
  font-weight: 300;
  color: oklch(0.90 0.01 240);
  max-width: 40ch;
}
.prose { max-width: 68ch; color: var(--muted); }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--ink); font-weight: 600; }

/* Section kicker — a single named brand device (the operational tag), used
   with restraint, not as an eyebrow over every block. */
.tag {
  font-family: var(--font-mono);
  font-size: var(--t--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.tag::before {
  content: "";
  width: 1.6em; height: 1px;
  background: var(--primary);
  opacity: 0.8;
}

/* ---- Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 0.5rem + 3vw, 3rem);
}
.container.narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section + .section { border-top: 1px solid var(--hairline-2); }

.grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-12-7 { grid-template-columns: 5fr 7fr; align-items: center; }
  .grid-7-12 { grid-template-columns: 7fr 5fr; align-items: center; }
}

.stack > * + * { margin-top: var(--flow, 1rem); }
.measure { max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }

.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: 0.8rem; }
.section-head .lead { margin-top: 1.2rem; }

/* ---- Topographic motif backdrop ---------------------------------------- */
.topo-bg { position: relative; isolation: isolate; }
.topo-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/topo.svg") center/cover no-repeat;
  opacity: 0.5;
  z-index: -1;
  -webkit-mask-image: radial-gradient(120% 100% at 70% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 100% at 70% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--brass); color: var(--brass-ink); }
.btn-primary:hover { background: var(--brass-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--hairline); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-lg { padding: 1em 1.8em; font-size: var(--t-0); letter-spacing: 0.02em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  color: var(--primary); font-weight: 600;
  font-size: var(--t--1); letter-spacing: 0.04em; text-transform: uppercase;
  transition: gap 0.25s var(--ease-out), color 0.25s;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease-out); }
.link-arrow:hover { color: var(--brass); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-header);
  background: oklch(0.155 0.012 240 / 0.4);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s;
}
.site-header.is-scrolled {
  background: oklch(0.150 0.012 240 / 0.88);
  border-bottom-color: var(--hairline-2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  height: 74px;
}
.wordmark { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.wordmark svg { width: 30px; height: 30px; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark-name {
  font-family: var(--font-display); font-weight: 700; font-stretch: 118%;
  font-size: 1.04rem; letter-spacing: 0.04em;
}
.wordmark-sub {
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.34em;
  color: var(--faint); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 0.5rem + 1.2vw, 2.1rem); }
.nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--muted);
  position: relative; padding-block: 0.3em;
  transition: color 0.25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after, .nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav-cta { display: none; } /* only surfaces inside the mobile menu */

/* Language switcher */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 2px; gap: 1px;
}
.lang-switch button {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  padding: 0.45em 0.7em; border-radius: 999px; color: var(--faint);
  transition: color 0.2s, background-color 0.2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }

.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  padding-top: 120px; padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(0.155 0.012 240 / 0.55) 0%, oklch(0.155 0.012 240 / 0.2) 35%, oklch(0.155 0.012 240 / 0.82) 82%, var(--bg) 100%),
    linear-gradient(90deg, oklch(0.155 0.012 240 / 0.78) 0%, oklch(0.155 0.012 240 / 0.1) 60%);
  mix-blend-mode: normal;
}
.hero-media img { filter: saturate(0.72) contrast(1.04) brightness(0.82); }
.hero-grid {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/topo.svg") center/cover no-repeat;
  opacity: 0.28; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
          mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.hero-inner { position: relative; max-width: 46rem; }
.hero h1 { margin-top: 1.2rem; }
.hero .lead { margin-top: 1.6rem; color: oklch(0.92 0.01 240); max-width: 44ch; }
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* coordinates / location chip */
.geo-chip {
  position: absolute; right: clamp(1.2rem, 3vw, 3rem); bottom: clamp(1.2rem, 3vw, 3rem);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  color: var(--faint); text-align: right; line-height: 1.8;
  border-right: 1px solid var(--hairline); padding-right: 0.9rem;
}
.geo-chip strong { color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .geo-chip { display: none; } }

/* ---- Capability / value row -------------------------------------------- */
.cap-row { display: grid; gap: 0; }
@media (min-width: 760px) { .cap-row { grid-template-columns: repeat(4, 1fr); } }
.cap {
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
  border-top: 2px solid var(--hairline);
  position: relative;
}
.cap + .cap { border-left: 1px solid var(--hairline-2); }
@media (max-width: 759px) { .cap + .cap { border-left: none; } }
.cap-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--primary); letter-spacing: 0.1em; }
.cap h3 { margin-top: 0.8rem; font-size: var(--t-1); }
.cap p { margin-top: 0.6rem; color: var(--muted); font-size: 0.96rem; }

/* ---- Service blocks ----------------------------------------------------- */
.svc { padding: var(--sp-5) 0; border-top: 1px solid var(--hairline-2); }
.svc:first-child { border-top: none; }
.svc-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.svc-index { font-family: var(--font-mono); color: var(--primary); font-size: 0.8rem; letter-spacing: 0.1em; }
.svc h3 { font-size: var(--t-3); }
.svc-body { margin-top: 1.4rem; }
.svc-list { columns: 2; column-gap: 2.5rem; }
@media (max-width: 600px) { .svc-list { columns: 1; } }
.svc-list li {
  padding: 0.55em 0; border-bottom: 1px solid var(--hairline-2);
  color: var(--muted); break-inside: avoid;
  display: flex; gap: 0.7em; align-items: baseline;
}
.svc-list li::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; margin-top: 0.6em; background: var(--brass); }

/* ---- Panels / feature media -------------------------------------------- */
.panel {
  background: var(--surface-1); border: 1px solid var(--hairline-2);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem);
}
.media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--hairline-2);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(1.03) brightness(0.9); }
.media-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, oklch(0.155 0.012 240 / 0.45));
}
.media-tag {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 1;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  color: var(--ink); background: oklch(0.155 0.012 240 / 0.6); backdrop-filter: blur(6px);
  padding: 0.4em 0.7em; border-radius: 3px; border: 1px solid var(--hairline-2);
}

/* ---- Process / model steps --------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 1rem + 1.5vw, 2.4rem);
  padding: var(--sp-5) 0; border-top: 1px solid var(--hairline-2);
  align-items: start;
}
.step:first-child { border-top: none; }
.step-marker {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--primary);
  letter-spacing: 0.08em; padding-top: 0.4em;
}
.step h3 { font-size: var(--t-2); }
.step p { margin-top: 0.7rem; color: var(--muted); max-width: 60ch; }

/* ---- Quote / manifesto -------------------------------------------------- */
.manifesto { text-align: left; }
.manifesto blockquote {
  font-family: var(--font-serif); font-weight: 300;
  font-size: var(--t-3); line-height: 1.35; color: var(--ink);
  max-width: 22ch;
}
.manifesto .emph { color: var(--brass); font-style: italic; }
.manifesto figcaption { margin-top: 1.6rem; color: var(--muted); font-size: 0.95rem; }
.manifesto figcaption strong { color: var(--ink); font-weight: 600; display: block; font-family: var(--font-display); font-stretch: 110%; letter-spacing: 0.01em; }

/* ---- Coverage ----------------------------------------------------------- */
.coverage-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.coverage-list li {
  font-family: var(--font-body); font-size: 0.92rem; color: var(--muted);
  border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 0.45em 1em; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
  user-select: none;
}
.coverage-list li:hover { border-color: var(--primary); color: var(--ink); }
.coverage-list li.lead-region { border-color: var(--hairline-2); color: var(--muted); }
.coverage-list li.active {
  background: var(--primary); color: oklch(0.155 0.012 240);
  border-color: var(--primary); font-weight: 500;
}

/* Country panel */
.country-panel {
  margin-top: 1.4rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  animation: panel-in 0.28s var(--ease-out);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(-7px); }
  to   { opacity: 1; transform: none; }
}
.panel-country-name {
  font-family: var(--font-display); font-stretch: 115%;
  font-weight: 700; font-size: var(--t-1); color: var(--ink);
  letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
}
.risk-badge {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.18em 0.8em; border-radius: 999px; border: 1px solid;
  font-weight: 400; flex-shrink: 0;
}
.tier-low      { color: oklch(0.82 0.11 158); border-color: oklch(0.82 0.11 158 / 0.35); background: oklch(0.82 0.11 158 / 0.07); }
.tier-moderate { color: var(--good); border-color: oklch(0.77 0.105 158 / 0.35); background: oklch(0.77 0.105 158 / 0.07); }
.tier-elevated { color: var(--brass); border-color: oklch(0.805 0.128 76 / 0.35); background: oklch(0.805 0.128 76 / 0.07); }
.tier-high     { color: oklch(0.72 0.165 40); border-color: oklch(0.72 0.165 40 / 0.35); background: oklch(0.72 0.165 40 / 0.07); }
.panel-data { margin-top: 0.9rem; display: grid; gap: 0.55rem; }
.panel-row {
  display: grid; grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem; align-items: baseline;
  font-size: 0.875rem; line-height: 1.5;
}
.panel-row .plabel {
  color: var(--muted); font-size: 0.73rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  font-family: var(--font-mono);
}
.panel-row .pvalue { color: var(--ink); }
.panel-read-wrap { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hairline-2); }
.panel-read-label {
  color: var(--muted); font-size: 0.73rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  font-family: var(--font-mono); margin-bottom: 0.45rem;
}
.panel-read-text {
  font-family: var(--font-serif); font-style: italic;
  color: var(--muted); font-size: 0.91rem; line-height: 1.65;
}
@media (max-width: 480px) {
  .panel-row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 1.8rem + 3vw, 4.5rem);
  border: 1px solid var(--hairline-2);
}
.cta-band h2 { max-width: 18ch; }
.cta-band .lead { margin-top: 1rem; }
.cta-band .hero-actions { margin-top: 2rem; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline); background: var(--bg-2);
  padding-block: var(--sp-7) var(--sp-5);
}
.footer-top { display: grid; gap: var(--sp-5); }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand .wordmark { margin-bottom: 1.2rem; }
.footer-brand p { color: var(--muted); max-width: 32ch; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; font-stretch: normal; font-weight: 500; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a, .footer-col li { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline-2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  color: var(--faint); font-size: 0.82rem;
}
.footer-bottom .mono { color: var(--faint); }

/* ---- Forms -------------------------------------------------------------- */
.field { display: grid; gap: 0.5rem; margin-bottom: 1.3rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.field .req { color: var(--brass); }
.field input, .field select, .field textarea {
  background: var(--surface-2); border: 1px solid var(--hairline-2);
  border-radius: var(--radius); padding: 0.85em 1em; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.700 0.110 232 / 0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; gap: 1.3rem; }
@media (min-width: 620px) { .form-row.two { grid-template-columns: 1fr 1fr; gap: 1.3rem; } }
.form-note { font-size: 0.82rem; color: var(--faint); margin-top: 0.4rem; }
.form-status { margin-top: 1rem; font-size: 0.92rem; }
.form-status.ok { color: var(--good); }

/* contact aside */
.contact-aside dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 1.6rem; }
.contact-aside dd { color: var(--ink); margin-top: 0.3rem; }
.contact-aside dd a { color: var(--primary); }

/* ---- Page header (interior) -------------------------------------------- */
.page-head { padding-top: calc(74px + clamp(3rem, 2rem + 4vw, 6rem)); padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); position: relative; }
.page-head h1 { font-size: var(--t-5); max-width: 18ch; }
.page-head .lead { margin-top: 1.4rem; }
.page-head .tag { margin-bottom: 1.2rem; }

/* ---- Misc --------------------------------------------------------------- */
.divider-strong { height: 2px; background: linear-gradient(90deg, var(--brass), transparent); width: 64px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: var(--z-toast);
  background: var(--brass); color: var(--brass-ink); padding: 0.7em 1.2em; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }
[hidden] { display: none !important; }

/* ---- Service mini (home overview) -------------------------------------- */
.svc-mini { padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
.svc-mini .svc-index { font-family: var(--font-mono); color: var(--primary); font-size: 0.78rem; letter-spacing: 0.1em; }
.svc-mini h3 { margin-top: 0.7rem; font-size: var(--t-2); }
.svc-mini p { margin-top: 0.7rem; color: var(--muted); font-size: 0.98rem; }
.svc-link-wrap { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }

/* ---- Value grid (approach) --------------------------------------------- */
.val-grid { display: grid; gap: 1px; background: var(--hairline-2); border: 1px solid var(--hairline-2); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .val-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .val-grid { grid-template-columns: repeat(3, 1fr); } }
.val {
  background: var(--bg); padding: var(--sp-4);
  display: flex; align-items: center; gap: 1rem;
  font-size: 1rem; color: var(--ink);
  transition: background-color 0.25s;
}
.val:hover { background: var(--surface-1); }
.val .val-n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--brass); letter-spacing: 0.08em; }

/* ---- About: what we bring ---------------------------------------------- */
.bring-list { display: grid; gap: 0; }
.bring-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem;
  padding: 1.3rem 0; border-top: 1px solid var(--hairline-2);
  color: var(--muted); align-items: start;
}
.bring-list li:first-child { border-top: none; }
.bring-list .b-mark { color: var(--primary); font-family: var(--font-mono); font-size: 0.8rem; padding-top: 0.25em; letter-spacing: 0.06em; }

/* ---- Crisis callout ----------------------------------------------------- */
.callout {
  background: var(--surface-1); border: 1px solid var(--hairline-2);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 1.4rem + 2vw, 3rem);
  position: relative; overflow: hidden;
}
.callout .tag { color: var(--brass); }
.callout .tag::before { background: var(--brass); }
.callout h2 { margin-top: 0.8rem; max-width: 20ch; }
.callout p { margin-top: 1.2rem; color: var(--muted); max-width: 62ch; }

/* ---- Motion / reveal ---------------------------------------------------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.7s var(--ease-out-q), transform 0.7s var(--ease-out-q);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
  }
  .reveal.is-in { opacity: 1; transform: none; }

  /* Orchestrated hero load */
  .hero-anim { opacity: 0; transform: translateY(26px); }
  .hero.is-ready .hero-anim {
    opacity: 1; transform: none;
    transition: opacity 0.9s var(--ease-out-q), transform 0.9s var(--ease-out-q);
    transition-delay: var(--d, 0s);
  }
  .hero-grid { animation: drift 90s linear infinite alternate; }
  @keyframes drift { to { transform: translate3d(-3%, -2%, 0) scale(1.05); } }
}

/* ---- Mobile nav --------------------------------------------------------- */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-primary { display: none; }
  .nav {
    /* The header uses backdrop-filter, so this fixed child resolves against the
       header box, not the viewport. The 74px top intentionally matches the
       header height; keep them in sync if the header height ever changes. */
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: oklch(0.150 0.012 240 / 0.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hairline);
    padding: var(--sp-2) clamp(1.2rem, 0.5rem + 3vw, 3rem) var(--sp-4);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 1em 0; border-bottom: 1px solid var(--hairline-2); font-size: 1.1rem; }
  .nav a::after { display: none; }
  .nav .nav-cta { display: inline-flex; margin-top: var(--sp-3); border-bottom: none; }
}
@media (max-width: 600px) {
  .header-inner { gap: var(--sp-2); }
  .wordmark-sub { display: none; }
  .wordmark svg { width: 26px; height: 26px; }
  .header-actions { gap: 0.6rem; }
  .lang-switch button { padding: 0.42em 0.55em; font-size: 0.6rem; }
}
