/* ============================================================
   KEEPOINT — design system v3 · August 2026
   Warm, contained, conversion-oriented. Soft elevation,
   rounded surfaces, cerulean on navy. Form lives in the hero.
   Shared by every page: /kp.css + /a11y.css
   ============================================================ */

/* ---------- 0. FONTS (self-hosted, SIL OFL 1.1 — see /fonts/OFL.txt) ---------- */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/archivo-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/archivo-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/archivo-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/archivo-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

/* ---------- 1. TOKENS ---------- */
:root {
  --brand:      #007BA7;
  --brand-dk:   #005F82;
  --brand-lt:   #2AA3CE;
  --brand-pale: #E8F3F8;

  --navy:       #0A2A44;
  --navy-dp:    #061C2E;

  --ink:        #16202B;
  --body:       #52616F;
  --muted:      #7C8896;
  --line:       #E2E8ED;
  --line-soft:  #EFF3F6;
  --line-dark:  rgba(255,255,255,.14);
  --surface:    #F4F8FA;
  --white:      #FFFFFF;

  --r:    8px;
  --r-md: 12px;
  --r-lg: 18px;

  --sh-1: 0 1px 2px rgba(10,42,68,.06), 0 1px 3px rgba(10,42,68,.05);
  --sh-2: 0 4px 12px rgba(10,42,68,.07), 0 2px 4px rgba(10,42,68,.04);
  --sh-3: 0 18px 40px -12px rgba(10,42,68,.18);
  --sh-4: 0 30px 70px -20px rgba(0,0,0,.45);

  --f: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --m: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --maxw: 1240px;
  --gutter: clamp(18px, 4vw, 40px);

  /* theme-aware component tokens (overridden in dark mode below) */
  --brand-btn:    #007BA7;   /* filled buttons + badges: always passes white-text contrast */
  --brand-btn-dk: #005F82;
  --hdr-bg:     rgba(255,255,255,.94);
  --plate-bg:   rgba(255,255,255,.96);
  --hover-line: #CFDDE6;
  --chip-line:  #BEDCE9;
  --logo-ink:   #0A2A44;
  --alert-bg:   #FDECEC;
  --alert-bd:   #F3C9C9;
  --alert-fg:   #8A2222;
  --arrow: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2352616F' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* ---------- 1b. DARK THEME ----------
   Set by the inline <head> script (saved choice, else the OS
   setting) and flipped by the header toggle in kp.js.
   Hero, band, footer and legal bar are already dark and
   need no overrides. */
:root[data-theme="dark"] {
  --brand:      #3FAFD9;
  --brand-dk:   #8FD3EE;
  --brand-lt:   #5CC0E6;
  --brand-pale: rgba(63,175,217,.14);

  --ink:        #EAF1F6;
  --body:       #B4C1CC;
  --muted:      #8C9CAB;
  --line:       #223A4E;
  --line-soft:  #1A2F41;
  --surface:    #11263A;
  --white:      #0C1B29;

  --sh-1: 0 1px 2px rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.25);
  --sh-2: 0 4px 12px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.25);
  --sh-3: 0 18px 40px -12px rgba(0,0,0,.6);

  --hdr-bg:     rgba(12,27,41,.92);
  --plate-bg:   rgba(17,38,58,.96);
  --hover-line: #36566F;
  --chip-line:  #2E5870;
  --logo-ink:   #EAF1F6;
  --alert-bg:   #3A1B1F;
  --alert-bd:   #6E2C33;
  --alert-fg:   #F6C1C1;
  --arrow: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23B4C1CC' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}
:root[data-theme="dark"] .fcard { border: 1px solid var(--line); }

/* ---------- 2. BASE ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f);
  background: var(--white);
  color: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
:focus-visible { outline: 3px solid var(--brand-lt); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-btn); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 20px; z-index: 200; }
.skip:focus { left: 0; }

/* eyebrow pill */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-pale);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow.on-dark { color: #BFE4F2; background: rgba(255,255,255,.1); }
.eyebrow .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 3. HEADER ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: var(--hdr-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.hdr-r { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 30px; height: 30px; }
.hdr .brand svg rect:first-child { stroke: var(--logo-ink); }

/* light / dark toggle */
.theme-btn { width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); transition: border-color .18s, color .18s; }
.theme-btn:hover { border-color: var(--brand); color: var(--brand); }
.theme-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.brand-txt { font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.brand-txt i { font-style: normal; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--body); }
.nav a:hover, .nav a.on { color: var(--brand); }

.burger { display: none; width: 42px; height: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); align-items: center; justify-content: center; }
.burger svg { width: 18px; height: 18px; stroke: var(--ink); }
.sheet {
  position: fixed; inset: 0; background: var(--white); z-index: 70;
  padding: 88px var(--gutter) 32px; transform: translateY(-101%);
  transition: transform .3s cubic-bezier(.2,.7,.2,1); display: flex; flex-direction: column;
}
.sheet.open { transform: translateY(0); }
.sheet a { font-weight: 600; font-size: 22px; color: var(--ink); padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.sheet-x svg { stroke: var(--ink); }
.sheet-x { position: absolute; top: 16px; right: var(--gutter); width: 42px; height: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; align-items: center; justify-content: center; }

/* ---------- 4. BUTTONS ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  background: var(--brand-btn); color: #fff; border: 1px solid var(--brand-btn);
  padding: 13px 24px; border-radius: var(--r); box-shadow: var(--sh-1);
  transition: background .18s, box-shadow .18s, transform .18s, color .18s, border-color .18s;
}
.cta:hover { background: var(--brand-btn-dk); border-color: var(--brand-btn-dk); box-shadow: var(--sh-2); transform: translateY(-1px); }
.cta.lg { padding: 17px 32px; font-size: 16.5px; }
.cta.block { width: 100%; }
.cta.ghost { background: var(--white); color: var(--brand); border-color: var(--line); }
.cta.ghost:hover { background: var(--surface); color: var(--brand-dk); border-color: var(--brand); }
.cta.ghost-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); box-shadow: none; }
.cta.ghost-dark:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.cta.on-band { background: #FFFFFF; color: #005F82; border-color: #FFFFFF; }
.cta.on-band:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cta:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.cta .ar { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* ---------- 5. SECTIONS ---------- */
.sec { padding: clamp(56px, 7vw, 96px) 0; }
.sec.alt { background: var(--surface); }
.sec-hd { max-width: 660px; margin-bottom: clamp(34px, 4vw, 52px); }
.sec-hd.mid { margin-left: auto; margin-right: auto; text-align: center; }
.sec-hd .eyebrow { margin-bottom: 18px; }
.sec-hd h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.14; letter-spacing: -.028em; font-weight: 700; }
.sec-hd p { margin: 16px 0 0; font-size: 17.5px; line-height: 1.62; }

/* ---------- 6. HERO ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 88% 8%, rgba(0,163,217,.28), transparent 62%),
    linear-gradient(135deg, var(--navy-dp) 0%, var(--navy) 52%, #0A4A6B 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 20% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 20% 40%, #000, transparent 75%);
}
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 452px; gap: clamp(32px, 5vw, 72px); align-items: start; padding: clamp(48px, 6vw, 78px) 0 clamp(52px, 6vw, 82px); }
.hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 55px); line-height: 1.1; letter-spacing: -.032em; font-weight: 700; margin: 20px 0 20px; max-width: 17ch; }
.hero h1 em { font-style: normal; color: #7FD0EE; }
.hero .sub { font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.62; color: rgba(255,255,255,.82); max-width: 50ch; margin: 0 0 28px; }
.ticks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 16px; color: rgba(255,255,255,.9); }
.ticks .ck { width: 22px; height: 22px; border-radius: 50%; background: rgba(127,208,238,.18); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.ticks .ck svg { width: 12px; height: 12px; stroke: #7FD0EE; fill: none; stroke-width: 3; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* strip under hero */
.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 26px 0; }
.strip-i { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; }
.strip-i .ic { width: 34px; height: 34px; border-radius: var(--r); background: var(--brand-pale); display: flex; align-items: center; justify-content: center; }
.strip-i .ic svg { width: 17px; height: 17px; stroke: var(--brand); fill: none; stroke-width: 1.9; }
.strip-i b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.strip-i span { font-size: 13px; color: var(--muted); }

/* ---------- 7. FORM CARD ---------- */
.fcard { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-4); padding: clamp(24px, 2.4vw, 32px); }
.fcard .fh { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.fcard .fh h2 { font-size: 22px; font-weight: 700; letter-spacing: -.022em; margin-bottom: 6px; }
.fcard .fh p { margin: 0; font-size: 14.5px; color: var(--body); line-height: 1.55; }

.fld { margin-bottom: 15px; }
.fld label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.fld label i { font-style: normal; font-weight: 400; color: var(--muted); }
.fld input, .fld textarea, .fld select {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; transition: border-color .16s, box-shadow .16s, background .16s;
  -webkit-appearance: none; appearance: none;
}
.fld select {
  background-image: var(--arrow);
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.fld textarea { min-height: 88px; resize: vertical; line-height: 1.55; }
.fld input:focus, .fld textarea:focus, .fld select:focus {
  outline: none; background: var(--white); border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,123,167,.18);
}
.fld input::placeholder, .fld textarea::placeholder { color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fineprint { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.55; text-align: center; }
.fineprint a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.alert { display: none; background: var(--alert-bg); border: 1px solid var(--alert-bd); color: var(--alert-fg); border-radius: var(--r); padding: 11px 14px; margin-bottom: 16px; font-size: 14.5px; line-height: 1.5; }
.alert.show { display: block; }
.done { display: none; text-align: center; padding: 18px 4px 8px; }
.done.show { display: block; }
.done .bar { width: 54px; height: 54px; border-radius: 50%; background: var(--brand-pale); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.done .bar svg { width: 26px; height: 26px; stroke: var(--brand); fill: none; stroke-width: 2.6; }
.done h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.done p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; }
.done .ref { font-family: var(--m); font-size: 12.5px; color: var(--brand); }

/* ---------- 8. CARD GRIDS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 24px; box-shadow: var(--sh-1);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--sh-3); transform: translateY(-3px); border-color: var(--hover-line); }
.card .ic { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--brand-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18.5px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 9px; }
.card p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.card .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.card .tags b { font-size: 11.5px; font-weight: 600; color: var(--brand-dk); background: var(--brand-pale); padding: 4px 9px; border-radius: 999px; }
.card.lead { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--sh-2); }
.card .flag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--brand-btn); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }

/* ---------- 9. PROCESS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px; position: relative; box-shadow: var(--sh-1); }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-btn); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.step h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { margin: 0; font-size: 15.5px; line-height: 1.6; }

/* ---------- 10. SPLIT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.split p { font-size: 17px; line-height: 1.68; margin: 0 0 16px; }
.split p:last-child { margin-bottom: 0; }
.split b { color: var(--ink); font-weight: 600; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.panel h3 { font-size: 19px; font-weight: 700; margin-bottom: 16px; letter-spacing: -.02em; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; }
.plist li:last-child { border-bottom: 0; padding-bottom: 0; }
.plist .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-pale); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.plist .ck svg { width: 12px; height: 12px; stroke: var(--brand); fill: none; stroke-width: 3; }
.plist b { color: var(--ink); font-weight: 600; }

/* ---------- 11. BAND ---------- */
.band { background: linear-gradient(120deg, var(--navy-dp) 0%, var(--navy) 55%, #0A4A6B 100%); color: #fff; }
.band-in { padding: clamp(48px, 6vw, 76px) 0; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.16; letter-spacing: -.028em; font-weight: 700; max-width: 20ch; }
.band p { margin: 14px 0 0; font-size: 17px; color: rgba(255,255,255,.82); max-width: 50ch; }

/* ---------- 12. FOOTER ---------- */
.ftr { background: var(--navy-dp); color: rgba(255,255,255,.66); }
.ftr-in { padding: clamp(44px, 5vw, 64px) 0 26px; }
.ftr-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line-dark); }
.ftr .brand-txt { color: #fff; }
.ftr .brand-txt i { color: var(--brand-lt); }
.ftr-top p { margin: 16px 0 0; font-size: 15px; line-height: 1.65; max-width: 36ch; }
.ftr h4 { color: #fff; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.ftr-col a { display: block; font-size: 15px; padding: 6px 0; }
.ftr-col a:hover { color: var(--brand-lt); }
.ftr-btm { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.ftr-btm a { margin-right: 18px; }
.ftr-btm a:hover { color: var(--brand-lt); }

/* ============================================================
   13. LEGAL PAGES
   ============================================================ */
.lg-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(38px, 5vw, 58px) 0; }
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs .sep { color: var(--line); }
.crumbs .now { color: var(--brand); font-weight: 500; }
.lg-hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; margin-bottom: 20px; }
.lg-hero h1 .out { color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px;
}
.chip b { color: var(--ink); font-weight: 600; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.chip.act { cursor: pointer; color: var(--brand); border-color: var(--chip-line); }
.chip.act:hover { background: var(--brand-btn); color: #fff; border-color: var(--brand-btn); }
.summary { margin-top: 24px; max-width: 74ch; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r-md); padding: 18px 22px; font-size: 16px; line-height: 1.65; }
.summary b { color: var(--ink); font-weight: 600; }
.statement {
  margin-top: 22px; background: linear-gradient(120deg, var(--navy-dp), #0A4A6B); color: #fff;
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px);
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
}
.statement .mk { width: 56px; height: 56px; border-radius: var(--r-md); background: rgba(255,255,255,.13); display: flex; align-items: center; justify-content: center; flex: none; }
.statement .mk svg { width: 26px; height: 26px; stroke: #7FD0EE; fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.statement .lb { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7FD0EE; margin-bottom: 8px; }
.statement h2 { color: #fff; font-size: clamp(19px, 2.2vw, 27px); line-height: 1.22; letter-spacing: -.022em; font-weight: 700; }
.statement h2 em { font-style: normal; color: #7FD0EE; }

.lg-grid { display: grid; grid-template-columns: 262px 1fr; gap: clamp(30px, 4vw, 60px); align-items: start; padding: clamp(38px, 5vw, 60px) 0 clamp(56px, 7vw, 88px); }
.toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.toc .hd { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.toc .hd b { color: var(--brand); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 9px 0; font-size: 14px; line-height: 1.35; color: var(--body); border-bottom: 1px solid var(--line-soft); }
.toc a .n { color: var(--muted); font-size: 12.5px; }
.toc a:hover, .toc a.on { color: var(--brand); }
.toc a.on .n { color: var(--brand); }

.doc { max-width: 76ch; }
.doc article { scroll-margin-top: 96px; padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
.doc article:first-child { padding-top: 0; }
.doc h2 { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.2; letter-spacing: -.026em; font-weight: 700; margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.doc h2 .n { font-size: 13px; font-weight: 700; color: var(--brand); flex: none; }
.doc p { margin: 0 0 15px; font-size: 16.5px; line-height: 1.72; }
.doc p:last-child { margin-bottom: 0; }
.doc ul { margin: 6px 0 16px; padding: 0; list-style: none; }
.doc ul li { position: relative; padding: 8px 0 8px 26px; font-size: 16.5px; line-height: 1.62; }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-lt); }
.doc a.in { color: var(--brand); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.doc code { font-family: var(--m); font-size: .86em; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r-md); padding: 18px 22px; margin: 6px 0 16px; font-size: 16px; line-height: 1.65; }
.doc .top { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--brand); font-weight: 500; }

.tbl { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 8px 0 16px; }
.tbl-row { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 20px; padding: 18px 20px; background: var(--surface); align-items: start; }
.tbl-row .k { font-family: var(--m); font-size: 13.5px; color: var(--ink); font-weight: 500; }
.tbl-row .k small { display: block; font-family: var(--f); font-size: 12px; color: var(--muted); margin-top: 5px; }
.tbl-row .v { font-size: 15px; line-height: 1.55; }
.tbl-row .t { font-size: 12.5px; color: var(--brand); font-weight: 600; white-space: nowrap; }
.brw { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 8px 0 16px; }
.brw div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 17px; }
.brw .n { font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.brw .p { font-size: 13px; line-height: 1.5; color: var(--body); }

.prog { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; }
.prog i { display: block; height: 100%; background: var(--brand-lt); width: 0%; }

/* 404 */
.nf { background: linear-gradient(135deg, var(--navy-dp) 0%, var(--navy) 55%, #0A4A6B 100%); color: #fff; min-height: 58vh; display: flex; align-items: center; }
.nf-in { padding: clamp(56px, 8vw, 100px) 0; width: 100%; text-align: center; }
.nf h1 { color: #fff; font-size: clamp(38px, 6vw, 68px); letter-spacing: -.03em; font-weight: 700; margin: 18px 0 16px; }
.nf p { font-size: 18px; color: rgba(255,255,255,.8); margin: 0 auto 30px; max-width: 46ch; }
.nf .acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ============================================================
   13b. MEDIA / IMAGERY
   Every image slot layers the photo OVER a brand gradient:
     background-image: url(photo), linear-gradient(...)
   If the file is missing or fails to load, the gradient still
   paints, so the layout never shows a broken image. Drop real
   files into /public/img/ using the names below and they
   appear automatically — no CSS or HTML change needed.
   ============================================================ */
.media {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background-color: var(--navy);
  background-repeat: no-repeat; background-size: cover; background-position: center;
  box-shadow: var(--sh-3);
  min-height: 320px;
}
.media.tall { min-height: 420px; }
.media.short { min-height: 240px; }

/* named slots
   Ships with original SVG artwork (license-free, ~5 KB each, scales to any
   screen). To swap in a photograph later, drop e.g. team.jpg into /public/img/
   and change that one line from .svg to .jpg — nothing else needs to change. */
.m-team    { background-image: url('/img/team.svg'),     linear-gradient(135deg, #061C2E, #0A4A6B); }
.m-cloud   { background-image: url('/img/cloud.svg'),    linear-gradient(135deg, #0A2A44, #1B7FA8); }
.m-security{ background-image: url('/img/security.svg'), linear-gradient(135deg, #061C2E, #14607F); }
.m-network { background-image: url('/img/network.svg'),  linear-gradient(135deg, #0A2A44, #0A6E93); }
.m-desk    { background-image: url('/img/desk.svg'),     linear-gradient(135deg, #0A2A44, #0A4A6B); }
.m-meeting { background-image: url('/img/meeting.svg'),  linear-gradient(135deg, #061C2E, #0A5C7E); }

/* caption card floating on a media panel */
.media .plate {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  background: var(--plate-bg); border-radius: var(--r-md);
  padding: 18px 20px; box-shadow: var(--sh-2);
}
.media .plate b { display: block; font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin-bottom: 4px; }
.media .plate span { font-size: 14.5px; color: var(--body); line-height: 1.5; }

/* full-bleed image band with copy over it */
.imgband {
  position: relative; color: #fff;
  background-color: var(--navy-dp);
  background-repeat: no-repeat; background-size: cover; background-position: center;
}
.imgband::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,28,46,.94) 0%, rgba(10,42,68,.86) 48%, rgba(10,74,107,.62) 100%);
}
.imgband-in { position: relative; z-index: 2; padding: clamp(48px, 6vw, 78px) 0; }
.imgband h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.16; letter-spacing: -.028em; font-weight: 700; max-width: 20ch; }
.imgband p { margin: 16px 0 0; font-size: 17.5px; color: rgba(255,255,255,.85); max-width: 56ch; line-height: 1.62; }

/* card with a photo header */
.card.photo { padding: 0; overflow: hidden; }
.card.photo .ph {
  height: 168px; background-color: var(--navy);
  background-repeat: no-repeat; background-size: cover; background-position: center;
}
.card.photo .bd { padding: 24px; }
.card.photo:hover .ph { filter: saturate(1.08); }

/* ---------- 13c. INTERIOR PAGE HERO ---------- */
.phero {
  position: relative; color: #fff;
  background-color: var(--navy-dp);
  background-repeat: no-repeat; background-size: cover; background-position: center;
}
.phero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(6,28,46,.95) 0%, rgba(10,42,68,.88) 55%, rgba(10,74,107,.7) 100%);
}
.phero-in { position: relative; z-index: 2; padding: clamp(44px, 5.5vw, 76px) 0; max-width: 760px; }
.phero h1 { color: #fff; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; margin: 18px 0 18px; }
.phero p { font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.62; color: rgba(255,255,255,.84); max-width: 56ch; margin: 0; }
.phero .crumbs { color: rgba(255,255,255,.6); margin-bottom: 0; }
.phero .crumbs a:hover { color: #fff; }
.phero .crumbs .sep { color: rgba(255,255,255,.3); }
.phero .crumbs .now { color: #7FD0EE; }

/* inline mini form used on interior pages */
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px); }
.mini h3 { font-size: 21px; font-weight: 700; letter-spacing: -.022em; margin-bottom: 8px; }
.mini > p { margin: 0 0 20px; font-size: 15.5px; }

/* detailed service row (services page) */
.srow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(36px, 4.5vw, 56px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.srow:last-child { border-bottom: 0; }
.srow:nth-child(even) .srow-txt { order: 2; }
.srow h2 { font-size: clamp(24px, 2.8vw, 33px); line-height: 1.16; letter-spacing: -.026em; font-weight: 700; margin: 14px 0 14px; }
.srow p { font-size: 16.5px; line-height: 1.68; margin: 0 0 16px; }
.srow .ic { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--brand-pale); display: flex; align-items: center; justify-content: center; }
.srow .ic svg { width: 23px; height: 23px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.srow .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.srow .tags b { font-size: 12px; font-weight: 600; color: var(--brand-dk); background: var(--brand-pale); padding: 5px 11px; border-radius: 999px; }

@media (max-width: 1080px) {
  .srow { grid-template-columns: 1fr; gap: 24px; }
  .srow:nth-child(even) .srow-txt { order: 0; }
  .media { min-height: 260px; }
  .media.tall { min-height: 320px; }
}

/* ---------- 14. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .fcard { max-width: 560px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .strip-in { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .split, .band-in, .lg-grid { grid-template-columns: 1fr; }
  .band-in { align-items: start; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .toc { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .nav, .hdr .cta { display: none; }
  .burger { display: flex; }
  .grid-3, .grid-4, .steps, .strip-in, .brw { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .ftr-top { grid-template-columns: 1fr; }
  .statement { grid-template-columns: 1fr; }
  .tbl-row { grid-template-columns: 1fr; gap: 10px; }
  .doc h2 { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
/* ============================================================
   15. SINGLE-SCREEN PAGES  (body class="fit")
   Home, Services, About and Contact are laid out to fill one
   desktop screen with nothing below the fold. Nothing is
   locked: on a short viewport, at high browser zoom, or on a
   phone the page scrolls normally. Legal pages (privacy,
   terms, cookies, 404) keep the full footer and scroll.
   ============================================================ */
body.fit { display: flex; flex-direction: column; min-height: 100vh; }
@supports (min-height: 100dvh) { body.fit { min-height: 100dvh; } }
body.fit .hdr { flex: 0 0 auto; }
body.fit main { flex: 1 1 auto; display: flex; flex-direction: column; }
body.fit main > * { flex: 1 1 auto; }

/* home hero, tightened to fit */
body.fit .hero { display: flex; align-items: center; }
body.fit .hero > .wrap { width: 100%; }
body.fit .hero-in { padding: clamp(24px, 3.4vh, 54px) 0; align-items: center; }
body.fit .hero h1 { margin: 16px 0 16px; }
body.fit .hero .sub { margin-bottom: 22px; }
body.fit .ticks { margin-bottom: 24px; gap: 10px; }

/* interior single-screen section */
.onescreen { padding: clamp(24px, 3.4vh, 52px) 0; display: flex; align-items: center; }
.onescreen > .wrap { width: 100%; }
.onescreen.alt { background: var(--surface); }
.pg-hd { max-width: 720px; margin-bottom: clamp(20px, 2.6vh, 34px); }
.pg-hd .eyebrow { margin-bottom: 14px; }
.pg-hd h1 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; margin: 0 0 12px; }
.pg-hd p { margin: 0; font-size: 17px; line-height: 1.6; max-width: 62ch; }

/* compact 9-up service list */
.slist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sitem { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; box-shadow: var(--sh-1); transition: box-shadow .2s, transform .2s, border-color .2s; }
.sitem:hover { box-shadow: var(--sh-3); transform: translateY(-3px); border-color: var(--hover-line); }
.sitem .hd { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sitem .ic { width: 34px; height: 34px; flex: none; border-radius: var(--r); background: var(--brand-pale); display: flex; align-items: center; justify-content: center; }
.sitem .ic svg { width: 17px; height: 17px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sitem h2 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.sitem p { margin: 0; font-size: 14.5px; line-height: 1.5; }

/* compact numbered steps */
.qsteps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 15px; }
.qsteps li { display: grid; grid-template-columns: 30px 1fr; gap: 13px; align-items: start; }
.qsteps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-btn); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.qsteps b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 3px; letter-spacing: -.012em; }
.qsteps span { display: block; font-size: 14.5px; line-height: 1.55; }

/* thin legal bar replaces the full footer on .fit pages */
.legal-bar { flex: 0 0 auto; background: var(--navy-dp); color: rgba(255,255,255,.62); font-size: 13px; }
.legal-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 13px; padding-bottom: 13px; }
.legal-bar nav a { margin-left: 18px; }
.legal-bar nav a:first-child { margin-left: 0; }
.legal-bar a:hover { color: var(--brand-lt); }

@media (max-width: 1080px) {
  .slist { grid-template-columns: repeat(2, 1fr); }
  .onescreen { display: block; }
  body.fit .hero { display: block; }
  body.fit .hero-in { align-items: start; }
}
@media (max-width: 760px) {
  .slist { grid-template-columns: 1fr; }
  body.fit { min-height: 0; }
  .legal-bar .wrap { justify-content: flex-start; }
  .legal-bar nav a { margin-left: 0; margin-right: 16px; }
}

/* ---------- 16. COOKIE NOTICE (injected by kp.js) ---------- */
.kp-notice {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: min(420px, calc(100vw - 40px));
  background: var(--white); color: var(--body);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3);
  padding: 18px 20px; opacity: 0; transform: translateY(12px);
  transition: opacity .25s, transform .25s;
}
.kp-notice.show { opacity: 1; transform: none; }
.kp-notice p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; }
.kp-notice b { color: var(--ink); font-weight: 600; }
.kp-notice-acts { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.kp-notice-acts a { font-size: 14px; font-weight: 500; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.kp-notice .cta { padding: 10px 22px; font-size: 14.5px; }
@media (max-width: 760px) {
  .kp-notice { left: 16px; right: 16px; width: auto; bottom: 86px; }
}

@media print {
  :root[data-theme="dark"] { --ink: #16202B; --body: #333; --muted: #555; --white: #fff; --surface: #F4F8FA; --line: #E2E8ED; --brand: #007BA7; color-scheme: light; }
  .hdr, .sheet, .prog, .band, .ftr, .toc, .chip.act, .statement, .legal-bar, .kp-notice, .theme-btn { display: none !important; }
  .lg-grid { grid-template-columns: 1fr; padding: 0; }
  .doc { max-width: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .doc article { break-inside: avoid; }
}

/* ---------- 17. CASE STUDY (work.html) ---------- */
.cs { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 18px; align-items: stretch; }
.cs .panel, .cs .mini { padding: clamp(20px, 2.2vw, 26px); }
.cs h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.cs .plist li { font-size: 14.5px; padding: 9px 0; }
.cs .qsteps { margin: 0; gap: 13px; }
.cs .qsteps b { font-size: 15px; }
.cs .qsteps span span { font-size: 14px; }
.cs-side { background: var(--white); }
.cs-before .ck { background: var(--line-soft); }
.cs-before .ck svg { stroke: var(--muted); }
.cs-after { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.cs-mid { background: var(--white); }
.cs-foot { margin-top: clamp(18px, 2.4vh, 28px); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cs-note { margin: 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 1080px) { .cs { grid-template-columns: 1fr; } }
.cs-hd { max-width: 1000px; }
.cs-hd p { max-width: 74ch; }
.cs .plist li { padding: 7px 0; }
.cs .qsteps { gap: 10px; }

/* services grid: tightened to fit one desktop screen */
.slist { gap: 14px; }
.sitem { padding: 15px 17px; }
.sitem .hd { margin-bottom: 8px; }
.sitem p { line-height: 1.48; }
.svc-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(20px, 2.6vh, 34px); }
.svc-top .pg-hd { margin-bottom: 0; }
.svc-cta { flex: none; }
@media (max-width: 1080px) { .svc-top { flex-direction: column; align-items: flex-start; } }
