/* Copyright (c) 2026 Stable Cyber LLC. All Rights Reserved.
   SPDX-License-Identifier: LicenseRef-Stable-Cyber-Proprietary
   Stable Cyber design system — palette and ratios per the Mini Brand Style Guide. */

/* ============================================================ TOKENS */
:root {
  /* Brand palette */
  --cyan:        #09D3E6;   /* highlight, dividers, CTA      ~10% */
  --deep:        #062D71;   /* headlines, wordmark, trust    ~25% */
  --system-blue: #0B6EB1;   /* charts, section headers; darkened from #0D82D1 to pass 4.5:1 on cloud */
  --brown:       #6B4B35;   /* organic accent, sparing        ~5% */
  --olive:       #6E8E1C;   /* restrained accent              ~5% */
  --steel:       #5F6B7A;   /* secondary text, captions           */
  --charcoal:    #1C2430;   /* primary dark background       ~25% */
  --cloud:       #EEF2F5;   /* soft light background         ~60% */
  --white:       #FFFFFF;

  /* Derived */
  --deep-2:   #041F52;
  --ink:      #101722;
  --line:     #D7DFE7;
  --line-dk:  rgba(255, 255, 255, .14);
  --cyan-dim: rgba(9, 211, 230, .14);

  /* Type — system stack, no CDN fonts. Inter first if locally installed. */
  --sans: "Inter", "Aptos", "Avenir Next", "Segoe UI", -apple-system,
          BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* Fluid scale */
  --t-hero:  clamp(2.05rem, 1.2rem + 3vw, 3.55rem);
  --t-h2:    clamp(1.7rem, 1.2rem + 1.7vw, 2.6rem);
  --t-h3:    clamp(1.12rem, 1rem + .5vw, 1.4rem);
  --t-lead:  clamp(1.04rem, .97rem + .42vw, 1.3rem);
  --t-body:  1rem;
  --t-small: .875rem;
  --t-micro: .77rem;

  /* Rhythm */
  --wrap: 1180px;
  --gut: clamp(1.15rem, .6rem + 2vw, 2.5rem);
  --sec: clamp(3rem, 1.9rem + 3.8vw, 5.25rem);
  --r: 12px;
  --r-lg: 18px;

  --shadow:    0 1px 2px rgba(16, 23, 34, .05), 0 8px 24px rgba(16, 23, 34, .07);
  --shadow-lg: 0 2px 4px rgba(16, 23, 34, .06), 0 20px 48px rgba(16, 23, 34, .13);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ============================================================ RESET */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); text-decoration-color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--system-blue); }
h1, h2, h3, h4 { line-height: 1.16; margin: 0 0 .6em; color: var(--deep); font-weight: 700; letter-spacing: -.021em; }
h1 { font-size: var(--t-hero); letter-spacing: -.032em; }
h2 { font-size: var(--t-h2); letter-spacing: -.026em; }
h3 { font-size: var(--t-h3); }
p { margin: 0 0 1.05em; }
ul { margin: 0 0 1.05em; padding-left: 1.15em; }
li { margin-bottom: .42em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }

/* ============================================================ LAYOUT */
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--sec); }
.section--tight { padding-block: clamp(2.6rem, 1.6rem + 3.4vw, 4.4rem); }
.section--cloud { background: var(--cloud); }
.section--dark { background: var(--charcoal); color: #CFD8E2; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a { color: var(--cyan); }

.grid { display: grid; gap: clamp(1rem, .55rem + 1.7vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

/* ============================================================ TYPE HELPERS */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--t-micro); font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--system-blue); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--cyan); flex: none; }
.section--dark .eyebrow { color: var(--cyan); }

.lead { font-size: var(--t-lead); line-height: 1.58; color: var(--steel); max-width: 62ch; }
.section--dark .lead { color: #B3C0CE; }
.measure { max-width: 68ch; }
.center { text-align: center; }
.center .lead, .center .measure { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.55rem; border-radius: 999px; border: 2px solid transparent;
  font-size: .94rem; font-weight: 700; letter-spacing: -.008em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cyan); color: #04202C; box-shadow: 0 6px 20px rgba(9, 211, 230, .34); }
.btn--primary:hover { background: #23E2F4; color: #04202C; box-shadow: 0 10px 28px rgba(9, 211, 230, .45); }
.btn--solid { background: var(--deep); color: var(--white); }
.btn--solid:hover { background: var(--system-blue); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .34); color: var(--white); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(9, 211, 230, .08); }
.btn--outline { border-color: var(--deep); color: var(--deep); }
.btn--outline:hover { background: var(--deep); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }

/* ============================================================ HEADER */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(28, 36, 48, .93);
  border-bottom: 1px solid var(--line-dk);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 92px; }
/* The mark is an illustrated lockup carrying its own wordmark. It needs real
   height to read, so the header bar is sized around it rather than the reverse. */
.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; flex: none; }
.brand img { display: block; height: 68px; width: auto; }
@media (max-width: 900px) {
  .site-header__inner { min-height: 76px; }
  .brand img { height: 54px; }
}

.nav { display: flex; align-items: center; gap: .3rem; }
/* :not(.btn) is load-bearing. Without it these rules outrank .btn--primary on
   specificity (0,1,1 vs 0,1,0) and repaint the CTA's dark ink light gray,
   which lands at 1.19:1 against Shield Cyan. */
.nav a:not(.btn) {
  padding: .52rem .85rem; border-radius: 8px; text-decoration: none;
  font-size: .925rem; font-weight: 600; color: #C6D2DE;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav a:not(.btn):hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.nav a:not(.btn)[aria-current="page"] { color: var(--cyan); }
.nav .btn { margin-left: .5rem; padding: .6rem 1.15rem; font-size: .88rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-dk);
  border-radius: 9px; background: transparent; cursor: pointer; color: var(--white);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 19px; height: 2px; background: currentColor;
  border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { margin: 0 auto; position: relative; }
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after  { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 76px 0 auto; flex-direction: column; align-items: stretch;
    gap: .15rem; padding: .85rem var(--gut) 1.35rem;
    background: var(--charcoal); border-bottom: 1px solid var(--line-dk);
    box-shadow: var(--shadow-lg);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .75rem .6rem; font-size: 1rem; }
  .nav .btn { margin: .55rem 0 0; justify-content: center; padding: .8rem 1.2rem; }
}

/* ============================================================ HERO */
.hero {
  position: relative; overflow: hidden; color: #C9D5E2;
  background:
    radial-gradient(760px 420px at 78% 8%,  rgba(9, 211, 230, .19), transparent 62%),
    radial-gradient(900px 560px at 8% 100%, rgba(13, 130, 209, .22), transparent 60%),
    linear-gradient(158deg, var(--charcoal) 0%, #10233F 46%, var(--deep-2) 100%);
  padding-block: clamp(2rem, 1.25rem + 2.4vw, 3.25rem);
}
/* Fine engineering grid — CSS only, no raster asset. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(112% 88% at 68% 14%, #000 12%, transparent 76%);
  -webkit-mask-image: radial-gradient(112% 88% at 68% 14%, #000 12%, transparent 76%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--system-blue) 46%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: .55em; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero__lead { font-size: var(--t-lead); line-height: 1.6; color: #BCCADA; max-width: 60ch; margin-bottom: 1.9rem; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, .92fr); gap: clamp(1.8rem, 1rem + 3vw, 3.6rem); align-items: start; }
@media (max-width: 950px) { .hero__grid { grid-template-columns: 1fr; } }
/* Side panels in content sections size to their own content, not the prose column. */
.hero__grid > aside.card { height: auto; align-self: start; }

.hero__chip {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem;
  padding: .42rem 1rem .42rem .55rem; border-radius: 999px;
  background: rgba(9, 211, 230, .1); border: 1px solid rgba(9, 211, 230, .32);
  font-size: var(--t-small); font-weight: 600; color: #DDF7FB;
}
.hero__chip b { color: var(--cyan); font-weight: 800; }
.hero__chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-left: .35rem; box-shadow: 0 0 0 4px rgba(9, 211, 230, .2); }

/* Framework panel */
.panel {
  border: 1px solid var(--line-dk); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  padding: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.panel__title {
  font-size: var(--t-micro); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line-dk);
}
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip-group {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #8FA3B8; margin: 1rem 0 .45rem;
}
.panel__title + .chip-group { margin-top: 0; }
.chip {
  padding: .32rem .6rem; border-radius: 7px; font-size: .77rem; font-weight: 600;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .11); color: #D9E3EE;
}
.chip--key { background: var(--cyan-dim); border-color: rgba(9, 211, 230, .34); color: #C5F4FA; }

/* ============================================================ STAT BAND */
.stats { border-block: 1px solid var(--line); background: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: clamp(1.5rem, 1rem + 1.4vw, 2.3rem) 1.15rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
@media (max-width: 760px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}
.stat__num {
  display: block; font-size: clamp(1.95rem, 1.35rem + 2.1vw, 3.05rem); font-weight: 800;
  line-height: 1; letter-spacing: -.045em; color: var(--deep); margin-bottom: .5rem;
}
.stat__num sup { font-size: .46em; color: var(--system-blue); vertical-align: super; margin-left: .06em; }
.stat__lbl { font-size: var(--t-small); color: var(--steel); line-height: 1.4; display: block; }

/* ============================================================ CARDS */
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: clamp(1.45rem, 1.1rem + 1.1vw, 2.1rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(9, 211, 230, .5); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card__no {
  font-family: var(--mono); font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em;
  color: var(--system-blue); display: block; margin-bottom: .75rem;
}
.section--dark .card__no { color: var(--cyan); }
.card__foot { margin-top: auto; padding-top: 1.1rem; }
.card__link {
  font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--system-blue);
  display: inline-flex; align-items: center; gap: .38rem;
}
.card__link::after { content: "\2192"; transition: transform .18s var(--ease); }
.card__link:hover::after { transform: translateX(4px); }

/* Accent rail on top of a card */
.card--rail { border-top: 3px solid var(--cyan); border-radius: 3px var(--r-lg) var(--r-lg) var(--r-lg); }
.card--rail-blue  { border-top-color: var(--system-blue); }
.card--rail-olive { border-top-color: var(--olive); }
.card--rail-brown { border-top-color: var(--brown); }
.card--rail-deep  { border-top-color: var(--deep); }
.card--rail-steel { border-top-color: var(--steel); }

/* Dark-section card */
.section--dark .card {
  background: rgba(255, 255, 255, .045); border-color: var(--line-dk); color: #C2CFDC;
}
.section--dark .card--lift:hover { border-color: rgba(9, 211, 230, .5); background: rgba(255, 255, 255, .07); }

/* ============================================================ PILLARS (two-domain split) */
.pillar {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white);
}
.pillar__head { padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); color: var(--white); position: relative; }
.pillar--ai  .pillar__head { background: linear-gradient(140deg, var(--deep) 0%, var(--system-blue) 100%); }
.pillar--ot  .pillar__head { background: linear-gradient(140deg, var(--charcoal) 0%, #3B4A3A 78%, var(--olive) 165%); }
.pillar__head h3 { color: var(--white); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.72rem); margin-bottom: .35rem; }
.pillar__kicker { font-size: var(--t-micro); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: .7rem; display: block; }
.pillar--ot .pillar__kicker { color: #C4E06A; }
.pillar__head p { color: rgba(255, 255, 255, .86); margin: 0; font-size: .96rem; }
.pillar__body { padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); flex: 1; display: flex; flex-direction: column; }
.pillar__body ul { list-style: none; padding: 0; margin: 0 0 1.3rem; }
.pillar__body li { position: relative; padding-left: 1.6rem; margin-bottom: .78rem; font-size: .955rem; }
.pillar__body li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--cyan); transform: rotate(45deg);
}
.pillar--ot .pillar__body li::before { background: var(--olive); }
.pillar__body li b { color: var(--deep); font-weight: 700; }
.pillar__body .card__foot { padding-top: 0; }

/* ============================================================ PROOF / ENGAGEMENTS */
.proof {
  border-left: 3px solid var(--cyan); border-radius: 3px var(--r) var(--r) 3px;
  background: var(--white); border-top: 1px solid var(--line);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(1.3rem, 1rem + 1vw, 1.85rem); height: 100%;
}
.proof--olive { border-left-color: var(--olive); }
.proof--brown { border-left-color: var(--brown); }
.proof__who { font-size: var(--t-micro); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--steel); display: block; margin-bottom: .75rem; }
.proof .proof__big { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.35rem); font-weight: 800; letter-spacing: -.035em; color: var(--deep); line-height: 1.05; margin-bottom: .45rem; }
.proof p { font-size: .94rem; color: var(--steel); margin: 0; }

.roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 196px), 1fr)); gap: 1.7rem 1.8rem; }
/* min-height keeps the rules aligned when a heading wraps to two lines */
.roster h4 { font-size: var(--t-micro); letter-spacing: .13em; text-transform: uppercase; color: var(--cyan); margin: 0 0 .85rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line-dk); line-height: 1.32; min-height: calc(2 * 1.32em + .6rem + 1px); }
.roster ul { list-style: none; padding: 0; margin: 0; }
.roster li { font-size: .95rem; color: #CBD6E3; margin-bottom: .42rem; font-weight: 600; }
.roster li span { display: block; font-size: var(--t-micro); font-weight: 400; color: #8492A4; letter-spacing: 0; text-transform: none; }

/* ============================================================ PUBLICATIONS */
.pub {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1.15rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line);
}
.pub:last-child { border-bottom: 0; }
.pub__yr {
  font-family: var(--mono); font-size: .82rem; font-weight: 700; color: var(--cyan);
  background: var(--charcoal); border-radius: 6px; padding: .3rem .55rem; height: fit-content;
}
.pub__t { font-weight: 700; color: var(--deep); margin: 0 0 .3rem; font-size: 1.02rem; line-height: 1.35; }
.pub__m { font-size: .89rem; color: var(--steel); margin: 0; }
.pub__m em { font-style: normal; font-weight: 600; color: var(--system-blue); }
.pub__m a { font-family: var(--mono); font-size: .82rem; }
.section--dark .pub { border-bottom-color: var(--line-dk); }
.section--dark .pub__t { color: var(--white); }
.section--dark .pub__m { color: #94A3B4; }
.section--dark .pub__m em { color: #5FB4EA; }
.section--dark .pub__yr { background: rgba(9, 211, 230, .13); }

/* ============================================================ FEATURE BAND */
.feature {
  position: relative; overflow: hidden; color: #C6D3E2;
  background:
    radial-gradient(680px 380px at 88% 10%, rgba(110, 142, 28, .24), transparent 62%),
    radial-gradient(760px 460px at 6% 96%, rgba(9, 211, 230, .16), transparent 60%),
    linear-gradient(150deg, var(--charcoal) 0%, #14283C 52%, #1E3326 138%);
  padding-block: clamp(3.4rem, 2.2rem + 4.2vw, 5.6rem);
}
.feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(108% 84% at 76% 18%, #000 10%, transparent 74%);
  -webkit-mask-image: radial-gradient(108% 84% at 76% 18%, #000 10%, transparent 74%);
}
.feature .wrap { position: relative; z-index: 1; }
.feature h2, .feature h3 { color: var(--white); }
.feature .eyebrow { color: #C4E06A; }
.feature .eyebrow::before { background: var(--olive); }
.feature .lead { color: #B6C4D4; }
.feature .card {
  background: rgba(255, 255, 255, .05); border-color: var(--line-dk); color: #BDCBD9;
}
.feature .card--rail { border-top-color: var(--olive); }
.feature .pub__yr { background: rgba(110, 142, 28, .22); color: #C4E06A; }

/* ============================================================ CTA BAND */
.cta {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(620px 340px at 88% 0%, rgba(9, 211, 230, .26), transparent 64%),
    linear-gradient(120deg, var(--deep-2) 0%, var(--deep) 52%, var(--system-blue) 148%);
  padding-block: clamp(3.2rem, 2.2rem + 3.6vw, 5rem);
}
.cta h2 { color: var(--white); }
.cta .lead { color: rgba(255, 255, 255, .84); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(1.6rem, 1rem + 2.4vw, 3.2rem); align-items: center; }
@media (max-width: 880px) { .cta__grid { grid-template-columns: 1fr; } }

/* ============================================================ CONTACT */
.contact-line { display: flex; align-items: flex-start; gap: .95rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line__k { font-size: var(--t-micro); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--steel); min-width: 92px; padding-top: .28rem; }
.contact-line__v { font-size: 1.04rem; font-weight: 600; color: var(--deep); }
.contact-line__v a { text-decoration: none; }
.contact-line__v a:hover { text-decoration: underline; }
.contact-line__v small { display: block; font-size: var(--t-small); font-weight: 400; color: var(--steel); margin-top: .12rem; }
.section--dark .contact-line { border-bottom-color: var(--line-dk); }
.section--dark .contact-line__v { color: var(--white); }

.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec th, .spec td { text-align: left; padding: .72rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { color: var(--deep); font-weight: 700; width: 38%; }
.spec td { color: var(--steel); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* ============================================================ FOOTER */
.site-footer { background: var(--charcoal); color: #93A2B3; padding-block: clamp(2.6rem, 1.8rem + 2.6vw, 4rem) 1.9rem; font-size: .91rem; }
.site-footer h4 { color: var(--white); font-size: var(--t-micro); letter-spacing: .13em; text-transform: uppercase; margin: 0 0 .9rem; }
.site-footer a { color: #B9C6D4; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .48rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; }
/* Footer has room for the full illustrated lockup — it needs ~96px to read.
   The header does not, which is why the header uses the inline SVG mark. */
.footer__logo { display: block; margin: 0 0 1.15rem; width: fit-content; }
.footer__logo img { height: 96px; width: auto; }
.footer__bottom {
  margin-top: clamp(2rem, 1.4rem + 1.8vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line-dk);
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between;
  font-size: var(--t-micro); color: #93A2B3;
}

/* ============================================================ MISC */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cyan); color: #04202C; padding: .8rem 1.3rem; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }
.rule { height: 3px; width: 54px; background: var(--cyan); border: 0; border-radius: 2px; margin: 0 0 1.5rem; }
.center .rule { margin-inline: auto; }
.note {
  font-size: var(--t-small); color: var(--steel); border-left: 3px solid var(--line);
  padding: .25rem 0 .25rem 1rem; margin: 1.5rem 0;
}
.section--dark .note { color: #8B99AA; border-left-color: var(--line-dk); }

/* ============================================================ FORM */
.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--t-small); font-weight: 700; color: var(--deep); }
.field label .req { color: var(--brown); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 9px; padding: .72rem .9rem; width: 100%;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(9, 211, 230, .2);
}
.field__hint { font-size: var(--t-micro); color: var(--steel); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.form__note {
  font-size: var(--t-small); color: var(--steel); background: var(--cloud);
  border-radius: 9px; padding: .85rem 1rem; margin: 0;
}

/* ============================================================ FIGURES */
.figure {
  margin: 0; padding: clamp(1.3rem, 1rem + 1.1vw, 2rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption {
  margin-top: 1.1rem; padding-top: .95rem; border-top: 1px solid var(--line);
  font-size: var(--t-small); line-height: 1.55; color: var(--steel);
}
.figure figcaption b { color: var(--deep); font-weight: 700; }
.fig-t {
  font-size: var(--t-micro); font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--system-blue); margin: 0 0 1.1rem;
}
.section--dark .figure, .feature .figure {
  background: rgba(255, 255, 255, .05); border-color: var(--line-dk);
}
.section--dark .figure figcaption, .feature .figure figcaption {
  color: #9AA8B8; border-top-color: var(--line-dk);
}
.section--dark .figure figcaption b, .feature .figure figcaption b { color: var(--white); }

/* ============================================================ PORTRAIT */
.portrait {
  margin: 0 0 1.25rem; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--charcoal); box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: auto; display: block; }
.portrait figcaption { padding: 1rem 1.2rem 1.05rem; background: var(--charcoal); }
.portrait .p-name {
  display: block; font-weight: 800; font-size: 1.05rem; color: var(--white); letter-spacing: -.024em;
}
.portrait .p-role {
  display: block; margin-top: .22rem; font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--cyan);
}

/* ============================================================ TIMELINE */
.tl { list-style: none; margin: 0; padding: 0 0 0 1.75rem; position: relative; }
.tl::before { content: ""; position: absolute; left: 5px; top: .6rem; bottom: .6rem; width: 2px; background: var(--line); }
.section--dark .tl::before { background: var(--line-dk); }
.tl > li { position: relative; margin-bottom: 1.9rem; padding: 0; }
.tl > li:last-child { margin-bottom: 0; }
.tl > li::before {
  content: ""; position: absolute; left: -1.75rem; top: .48rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--white); border: 3px solid var(--cyan);
}
.section--dark .tl > li::before { background: var(--charcoal); }
.tl__when { font-family: var(--mono); font-size: var(--t-micro); font-weight: 700; letter-spacing: .06em; color: var(--steel); display: block; margin-bottom: .2rem; }
.tl__what { font-size: 1.04rem; font-weight: 700; color: var(--deep); display: block; margin-bottom: .1rem; line-height: 1.35; }
.section--dark .tl__what { color: var(--white); }
.tl__where { font-size: .93rem; color: var(--system-blue); font-weight: 600; display: block; margin-bottom: .35rem; }
.tl p { font-size: .93rem; color: var(--steel); margin: 0; }
.section--dark .tl p { color: #93A2B3; }
.section--dark .tl__when { color: #93A2B3; }
.section--dark .tl__where { color: #5FB4EA; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .cta, .nav-toggle, .skip { display: none !important; }
  body { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* Inline-SVG figures inherit the page type stack */
.figure svg text { font-family: var(--sans); }

/* ============================================================ 404 */
.e404 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        gap: clamp(2rem, 1.2rem + 3vw, 4rem); align-items: center; }
@media (max-width: 900px) { .e404 { grid-template-columns: 1fr; } }

.e404__code {
  font-family: var(--mono); font-size: clamp(4.4rem, 3rem + 7vw, 8.5rem); font-weight: 800;
  line-height: .9; letter-spacing: -.055em; margin: 0 0 .35rem;
  color: transparent; -webkit-text-stroke: 2px rgba(9, 211, 230, .78);
  position: relative;
}
.e404__code::after {
  content: "404"; position: absolute; inset: 0; color: var(--white);
  clip-path: inset(38% 0 42% 0); text-shadow: 0 0 22px rgba(9, 211, 230, .6);
  animation: e404glitch 5.5s steps(1) infinite;
}
@keyframes e404glitch {
  0%, 82%, 100% { clip-path: inset(38% 0 42% 0); transform: none; }
  84%  { clip-path: inset(12% 0 70% 0); transform: translateX(-4px); }
  86%  { clip-path: inset(62% 0 18% 0); transform: translateX(5px); }
  88%  { clip-path: inset(30% 0 50% 0); transform: translateX(-2px); }
}

/* Policy-decision trace */
.trace {
  font-family: var(--mono); font-size: .8rem; line-height: 1.95;
  background: rgba(4, 12, 22, .6); border: 1px solid var(--line-dk);
  border-radius: var(--r); padding: 1.05rem 1.2rem; margin: 1.6rem 0 1.9rem;
  overflow-x: auto;
}
.trace div { white-space: nowrap; }
.trace .k { color: #6E8091; }
.trace .v { color: #C7D4E2; }
.trace .ok { color: var(--cyan); }
.trace .no { color: #C4E06A; }
.trace .cur {
  display: inline-block; width: 8px; height: 1em; vertical-align: -2px;
  background: var(--cyan); animation: e404cur 1.1s steps(1) infinite;
}
@keyframes e404cur { 0%, 50% { opacity: 1 } 51%, 100% { opacity: 0 } }

/* Robot arm */
.rig { width: 100%; height: auto; display: block; }
.rig .beam { animation: e404sweep 4.2s ease-in-out infinite; transform-origin: 292px 178px; }
@keyframes e404sweep { 0%, 100% { transform: rotate(-9deg) } 50% { transform: rotate(7deg) } }
.rig .miss { animation: e404pulse 2.6s ease-in-out infinite; }
@keyframes e404pulse { 0%, 100% { opacity: .3 } 50% { opacity: .95 } }
.rig .led { animation: e404led 1.6s ease-in-out infinite; }
@keyframes e404led { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }

/* The longest trace line is ~52 monospace chars. Scale it down rather than
   leave it clipped mid-word on a phone. */
@media (max-width: 560px) {
  .trace { font-size: .66rem; line-height: 1.85; padding: .9rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .e404__code::after, .trace .cur, .rig .beam, .rig .miss, .rig .led { animation: none !important; }
  .rig .miss { opacity: .75; }
}
.chip--method { background: var(--cloud); border-color: var(--line); color: var(--deep); }
.methods { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.methods li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; }
.methods__gloss { font-size: .9rem; color: var(--steel); line-height: 1.45; flex: 1 1 14rem; }
.copy-btn { align-self: flex-start; margin-top: .4rem; }
.bio { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.4rem, 1rem + 2vw, 2.6rem); align-items: start; max-width: 1000px; }
.bio__photo { width: 220px; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: block; }
.bio p { max-width: 70ch; }
@media (max-width: 640px) { .bio { grid-template-columns: 1fr; } .bio__photo { width: 160px; } }
.proof--wide { grid-column: 1 / -1; }
.proof.proof--wide .proof__big { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.2rem); }

/* ---------- Blog (added 2026-11-24) ---------- */
.prose { max-width: 46rem; font-size: clamp(1.08rem, 1rem + .35vw, 1.22rem); line-height: 1.72; }
.prose h2 { font-size: var(--t-h3); margin-top: 2.2rem; }
.prose blockquote { margin: 2rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 3px solid var(--olive); }
.prose blockquote p { font-size: 1.12em; color: var(--deep); margin-bottom: .5rem; }
.prose blockquote footer { font-size: var(--t-small); color: var(--steel); }
.press__end { text-align: center; color: var(--steel); letter-spacing: .3em; margin-top: 2.4rem; }
.prose ul { padding-left: 1.2rem; }
.post-meta { color: var(--steel); font-size: var(--t-small); margin: 0 0 1.4rem; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
