/* ==========================================================================
   Aarlika shell: the shared theme for aarlika.com and every division site.
   Sections 1-3 (font, tokens, shell components) are the shared layer that
   ai.aarlika.com, foods.aarlika.com and labs.aarlika.com should carry
   unchanged; each division sets only --accent* through [data-division].
   See docs/SPEC.md §1 for the token contract.
   ========================================================================== */

/* ---------- 1. Font ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Tokens ---------- */
/* Light is the base. Dark applies when theme.js sets data-theme="dark",
   or, with no script, when the OS prefers dark. */
:root {
  --bg: #f8fafc;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --nav-bg: rgba(248, 250, 252, 0.82);
  --card-shadow: rgba(15, 23, 42, 0.14);
  --danger: #b91c1c;

  /* Division accents (fixed across all sites) */
  --ai: #2563eb;
  --foods: #b45309;
  --leaf: #2d6a4f;
  --labs: #6d28d9;

  /* Active accent: aarlika.com is ink; divisions override below */
  --accent: #0b2257;
  --accent-hover: #1e3a8a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(11, 34, 87, 0.07);
  --glow-a: rgba(37, 99, 235, 0.10);
  --glow-b: rgba(180, 83, 9, 0.08);

  --radius: 14px;
  --radius-sm: 10px;
  --max: 1140px;
  --gutter: 24px;
  --nav-h: 64px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0e17;
  --bg-elev: #111723;
  --bg-card: #131a28;
  --border: #1f2937;
  --border-strong: #2b3648;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --nav-bg: rgba(10, 14, 23, 0.8);
  --card-shadow: rgba(0, 0, 0, 0.6);
  --danger: #f87171;

  --ai: #3b82f6;
  --foods: #f59e0b;
  --leaf: #52b788;
  --labs: #a78bfa;

  --accent: #e2e8f0;
  --accent-hover: #ffffff;
  --accent-ink: #0a0e17;
  --accent-soft: rgba(226, 232, 240, 0.08);
  --glow-a: rgba(59, 130, 246, 0.16);
  --glow-b: rgba(245, 158, 11, 0.10);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0a0e17; --bg-elev: #111723; --bg-card: #131a28;
    --border: #1f2937; --border-strong: #2b3648;
    --text: #f1f5f9; --text-muted: #94a3b8; --text-dim: #64748b;
    --nav-bg: rgba(10, 14, 23, 0.8); --card-shadow: rgba(0, 0, 0, 0.6); --danger: #f87171;
    --ai: #3b82f6; --foods: #f59e0b; --leaf: #52b788; --labs: #a78bfa;
    --accent: #e2e8f0; --accent-hover: #ffffff; --accent-ink: #0a0e17;
    --accent-soft: rgba(226, 232, 240, 0.08);
    --glow-a: rgba(59, 130, 246, 0.16); --glow-b: rgba(245, 158, 11, 0.10);
    color-scheme: dark;
  }
}

/* Division scopes: a division site sets <html data-division="ai|foods|labs">.
   Used here to tint the division cards. */
/* --mark is the logo notch: the parent uses a gradient of its two operating
   divisions (defined once in the header SVG); a division uses its accent. */
:root { --mark: url(#aarlika-notch); --on-accent: #ffffff; }
:root[data-theme="dark"] [data-division="foods"] { --on-accent: #1a1206; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) [data-division="foods"] { --on-accent: #1a1206; } }
[data-division="ai"]    { --accent: var(--ai);    --mark: var(--ai);    --accent-soft: color-mix(in srgb, var(--ai) 12%, transparent); }
[data-division="foods"] { --accent: var(--foods); --mark: var(--foods); --accent-soft: color-mix(in srgb, var(--foods) 12%, transparent); }
[data-division="labs"]  { --accent: var(--labs);  --mark: var(--labs);  --accent-soft: color-mix(in srgb, var(--labs) 12%, transparent); }

/* ---------- 3. Shell: base, nav, buttons, footer ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }
main:focus { outline: none; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

/* The mark: the outer A takes the text colour; the inner notch takes the
   active accent, so each division's mark carries its own colour. */
.logo-mark { width: 30px; height: auto; flex-shrink: 0; color: var(--text); }
.logo-mark .logo-accent { fill: var(--mark); }
.notch-a { stop-color: var(--ai); }
.notch-b { stop-color: var(--foods); }
.logo .division { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 20px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links > li > a,
.switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font: inherit;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-links > li > a:hover,
.switcher-btn:hover,
.switcher-btn[aria-expanded="true"] { color: var(--text); }

.nav-links .nav-cta {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  transition: background 0.2s;
}
.nav-links .nav-cta:hover { background: var(--accent-hover); color: var(--accent-ink); }

/* Division switcher */
.switcher { position: relative; }
.switcher-btn svg { width: 14px; height: 14px; transition: transform 0.2s; }
.switcher-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.switcher-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 320px;
  padding: 8px;
  list-style: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -20px var(--card-shadow);
  transform: translateX(-50%);
}
.switcher-menu[hidden] { display: none; }

.switcher-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: start;
  gap: 4px 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
a.switcher-item:hover { background: var(--accent-soft); }
.switcher-item .dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.switcher-item .logo-mark.mini { width: 20px; margin-top: 3px; }
.switcher-item strong { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.switcher-item small {
  grid-column: 2 / -1;
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.switcher-item .host { font-size: 0.75rem; color: var(--text-dim); padding-top: 3px; }
.switcher-item.is-current { background: var(--accent-soft); }
.switcher-item.is-pending { cursor: default; }
.switcher-item.is-pending strong { color: var(--text-muted); }

/* Icon buttons (theme, mobile menu) */
.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.3s;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-dim); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-menu-btn { display: none; }
.nav-menu-btn .icon-close { display: none; }
.nav-menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.nav-menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* Buttons */
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 0.975rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-secondary { background: var(--bg-elev); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-dim); transform: translateY(-1px); }

.btn .chip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.btn .chip-ai { background: var(--ai); }
.btn .chip-foods { background: var(--foods); }

/* Division CTA: equal weight, each in its own accent */
.btn-division {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 260px;
  padding: 14px 22px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid transparent;
  text-align: left;
}
.btn-division:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-division .btn-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}
.btn-division .btn-title { display: inline-flex; align-items: center; gap: 8px; font-size: 1.025rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 2px; }
.footer-col a, .footer-col span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 0.925rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-col .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.footer-col .muted-tag { font-size: 0.75rem; color: var(--text-dim); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-top: 28px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover { color: var(--text); }

/* ---------- 4. Page: aarlika.com homepage ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero {
  position: relative;
  padding: 136px 0 120px;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 50% at 30% 0%, var(--glow-a), transparent 70%),
    radial-gradient(ellipse 45% 50% at 70% 0%, var(--glow-b), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 880px;
  margin: 0 auto 24px;
  text-wrap: balance;
}

.hero .sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
  text-wrap: pretty;
}

section { padding: 104px 0; }
section + section { border-top: 1px solid var(--border); }

.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { margin: 0 auto 56px; text-align: center; }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  text-wrap: balance;
}
.section-head p { color: var(--text-muted); font-size: 1.075rem; }

/* Overview */
.overview-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
}
.overview-grid .section-head { margin-bottom: 0; }
.overview-body p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 18px; }
.overview-body p strong { color: var(--text); font-weight: 600; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 40px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  grid-column: 1 / -1;
}
.fact { background: var(--bg-elev); padding: 22px 24px; }
.fact dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.fact dd { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

/* Divisions */
.division-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.division-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.division-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 28px; right: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.division-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px var(--card-shadow);
}

.division-card {
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 55%),
    var(--bg-card);
  overflow: hidden;
}

.division-media {
  position: relative;
  margin: -36px -36px 28px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.division-media img,
.division-media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.division-media img { object-position: 50% 62%; }
.division-media figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
}

/* Precision AI Vision schematic (theme-aware strokes) */
.schematic { background: var(--bg); }
.schematic .s-grid { fill: none; stroke: var(--border); stroke-width: 1; }
.schematic .s-part { fill: none; stroke: var(--text); stroke-width: 2.5; }
.schematic .s-axis { fill: none; stroke: var(--text-dim); stroke-width: 1; stroke-dasharray: 8 6; }
.schematic .s-box { fill: none; stroke: var(--ai); stroke-width: 3; }
.schematic .s-dim { fill: none; stroke: var(--ai); stroke-width: 1.5; }
.schematic .s-tag { fill: var(--bg-elev); stroke: var(--ai); stroke-width: 1.5; }
.schematic .s-text { fill: var(--text); font: 600 15px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; }
.schematic .s-flag { stroke: var(--foods); stroke-width: 3; }
.schematic .s-flagline { stroke: var(--foods); }
.schematic .s-flagtag { stroke: var(--foods); }
.schematic .s-flagtext { fill: var(--foods); }

.division-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.division-head .logo-mark { width: 36px; }
.division-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.division-card h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.division-card .value {
  font-size: 1.075rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-wrap: balance;
}
.division-card .desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }

.offerings {
  list-style: none;
  border-top: 1px solid var(--border);
  margin-bottom: 28px;
  flex-grow: 1;
}
.offerings li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.offerings strong { font-size: 0.95rem; font-weight: 600; }
.offerings span { font-size: 0.875rem; color: var(--text-muted); }

.division-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  transition: gap 0.2s;
}
.division-link:hover { gap: 12px; }
.division-link svg { width: 15px; height: 15px; }

/* Operations */
.ops { background: var(--bg-elev); }
.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ops-item { background: var(--bg-elev); padding: 36px 32px; }
.ops-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.ops-item h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.ops-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Proof strip */
.proof {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--foods);
  border-radius: var(--radius);
}
.proof-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.proof-head h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.proof-head p { font-size: 0.85rem; color: var(--text-dim); }
.proof-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 24px; }
.proof-list li { display: flex; gap: 10px; align-items: flex-start; }
.proof-list svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--leaf); }
.proof-list strong { display: block; font-size: 0.925rem; font-weight: 600; margin-bottom: 2px; }
.proof-list span { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.proof-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-dim); }

/* Restrained scroll reveal (only applied by site.js to off-screen blocks) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Future */
.future-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.future-inner .section-head { margin-bottom: 0; }
.future-note {
  padding: 28px 32px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.future-note .row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.future-note .logo-mark { width: 26px; }
.future-note strong { font-weight: 600; }
.future-note .status {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.future-note p { color: var(--text-muted); font-size: 0.95rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 64px;
  align-items: start;
}
.contact-grid .section-head { margin-bottom: 32px; }

.contact-info { list-style: none; border-top: 1px solid var(--border); }
.contact-info li { padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-info .k {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.contact-info a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.contact-info a:hover { text-decoration-color: currentColor; }
.contact-info .route { display: block; color: var(--text-muted); font-size: 0.925rem; }

.form {
  padding: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}
.field .req { color: var(--text-dim); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem; /* 16px+ stops iOS zooming on focus */
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn:disabled { opacity: 0.6; cursor: progress; }
.form-status { min-height: 1.5em; margin-top: 14px; font-size: 0.925rem; color: var(--text-muted); }
.form-status.is-ok { color: var(--text); }
.form-status.is-error { color: var(--danger); }
.form-note { margin-top: 6px; font-size: 0.85rem; color: var(--text-dim); }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Legal + 404 */
.legal { padding: 72px 0 96px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.legal-updated { color: var(--text-dim); font-size: 0.9rem; margin: 8px 0 32px; }
.legal h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 14px; }
.legal ul { padding-left: 1.25rem; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-back { margin-top: 48px; }

/* ---------- 5. Responsive ---------- */
@media (max-width: 960px) {
  .overview-grid, .future-inner, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-actions { gap: 10px; }
  .nav-menu-btn { display: grid; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px -16px var(--card-shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links > li { border-bottom: 1px solid var(--border); }
  .nav-links > li:last-child { border-bottom: 0; }
  .nav-links > li > a,
  .switcher-btn { display: flex; width: 100%; padding: 14px 0; font-size: 1rem; }
  .switcher-btn svg { margin-left: auto; }

  .switcher-menu {
    position: static;
    width: auto;
    margin: 0 0 12px;
    padding: 4px;
    box-shadow: none;
    transform: none;
  }

  .nav-links .nav-cta { justify-content: center; margin-top: 16px; padding: 12px 16px; }
}

@media (max-width: 960px) {
  .proof-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .division-grid, .ops-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .hero { padding: 96px 0 88px; }
  section { padding: 80px 0; }
  .btn-row .btn { width: 100%; }
  .division-card { padding: 28px 22px; }
  .division-media { margin: -28px -22px 24px; }
  .btn-division { min-width: 0; }
  .proof { padding: 22px 18px; }
  .proof-list { grid-template-columns: 1fr; }
  .ops-item { padding: 28px 22px; }
  .facts { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; }
  .form-fields { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
