/* ==========================================================================
   BURRIS — in omnia excellentia
   Hand-written, dependency-free. Dark by design.
   ========================================================================== */

/* ---- Fonts (self-hosted; no third-party requests) ---------------------- */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/newsreader-latin-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("/fonts/newsreader-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); }

/* ---- Tokens ------------------------------------------------------------ */
:root {
  color-scheme: dark;
  --bg:        #050c16;
  --bg-2:      #081425;
  --navy:      #0a2a4a;   /* the logo's concrete blue */
  --navy-2:    #0f3b68;
  --surface:   rgba(150, 185, 235, .045);
  --surface-2: rgba(150, 185, 235, .08);
  --line:      rgba(160, 195, 240, .14);
  --line-2:    rgba(160, 195, 240, .28);
  --text:      #eaf0f8;
  --muted:     #9fb2c9;
  --faint:     #6f849d;
  --accent:    #6db3ff;
  --accent-2:  #a6d3ff;
  --brass:     #dcc088;
  --danger:    #ff8a8a;
  --ok:        #7fe0b0;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "Alegreya Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--navy-2); color: #fff; }

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

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---- Concrete: the logo's texture, rebuilt as noise --------------------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .66 0 0 0 0 .95 1.5 0 0 0 -.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .16;
  mix-blend-mode: screen;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% -5%, rgba(15, 59, 104, .70), transparent 70%),
    radial-gradient(50% 40% at 100% 60%, rgba(10, 42, 74, .45), transparent 70%),
    radial-gradient(45% 35% at 0% 85%, rgba(10, 42, 74, .40), transparent 70%);
}
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ---- Layout helpers ----------------------------------------------------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(76px, 11vw, 148px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.08; }
h2 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem); margin-top: 18px; text-wrap: balance; }
h3 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); line-height: 1.18; }
em { font-style: italic; }
.lede { color: var(--muted); font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); line-height: 1.55; max-width: 58ch; text-wrap: pretty; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.accent { color: var(--accent-2); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(5, 12, 22, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; padding-block: 10px; line-height: 0; }
.brand img { height: 24px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; letter-spacing: .04em; font-size: 1.02rem; transition: color .2s; padding-block: 8px; }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--b);
  background: transparent; color: var(--text);
  font-weight: 700; letter-spacing: .05em; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn--primary { background: linear-gradient(180deg, #8cc4ff, #5aa3f0); color: #04101e; border-color: transparent; box-shadow: 0 8px 30px -8px rgba(109, 179, 255, .55); }
.btn--primary:hover { box-shadow: 0 12px 38px -6px rgba(109, 179, 255, .75); border-color: transparent; }
.btn--sm { min-height: 40px; padding: 0 20px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding-top: 110px; padding-bottom: 64px; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero::after { /* fade into the page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 200px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-inner { text-align: center; }
.hero h1 { font-size: clamp(2rem, 1.1rem + 3.4vw, 4rem); font-weight: 450; margin-top: 26px; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.hero h1 em { color: var(--accent-2); }
.hero .lede { margin: 30px auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 42px; }

/* hero entrance (CSS only so it never depends on JS) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-inner > * { animation: rise .9s var(--ease) both; }
.hero-inner > :nth-child(1) { animation-delay: .05s; }
.hero-inner > :nth-child(2) { animation-delay: .15s; }
.hero-inner > :nth-child(3) { animation-delay: .28s; }
.hero-inner > :nth-child(4) { animation-delay: .4s; }

/* ---- Stats ---------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.stat { padding: clamp(22px, 3.4vw, 38px); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1.1; color: #fff; white-space: nowrap; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.4; }

/* ---- Cards ---------------------------------------------------------------- */
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: clamp(26px, 3.6vw, 46px);
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
  overflow: hidden;
}
.card::before { /* soft spotlight that follows the cursor (set by JS) */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(109, 179, 255, .13), transparent 60%);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; }

.service .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(109, 179, 255, .1); border: 1px solid rgba(109, 179, 255, .28); color: var(--accent-2); margin-bottom: 28px; }
.service .icon svg { width: 28px; height: 28px; }
.service h3 { margin-bottom: 12px; }
.service .tagline { font-family: var(--serif); font-style: italic; color: var(--accent-2); font-size: 1.25rem; margin-bottom: 20px; }
.ticks { margin-top: 24px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 16px; height: 1px; background: var(--brass); }
.ticks li::after { content: ""; position: absolute; left: 12px; top: calc(.62em - 3px); width: 7px; height: 7px; border-top: 1px solid var(--brass); border-right: 1px solid var(--brass); transform: rotate(45deg); transform-origin: center; }
.ticks b { color: var(--text); font-weight: 500; }

/* ---- Pipeline -------------------------------------------------------------- */
.pipeline { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.step { position: relative; padding: clamp(22px, 2.8vw, 34px); }
.step + .step { border-left: 1px solid var(--line); }
.step .n { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1.15rem; }
.step h4 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.step::after { content: ""; position: absolute; right: -1px; top: 50%; width: 9px; height: 9px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); transform: translate(50%, -50%) rotate(45deg); background: var(--bg-2); }
.step:last-child::after { display: none; }


/* ---- Clients --------------------------------------------------------------- */
.client { padding: clamp(24px, 2.6vw, 34px); }
.client .k { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1.15rem; }
.client h3 { font-size: 1.55rem; margin: 10px 0 10px; }
.client p { color: var(--muted); font-size: 1.02rem; line-height: 1.5; }

/* ---- About ------------------------------------------------------------------ */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about p + p { margin-top: 18px; }
.about .lede + p { margin-top: 22px; }
.about p { color: var(--muted); }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--line-2), var(--line)); }
.tl { position: relative; padding-bottom: 34px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: -34px; top: 9px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); box-shadow: 0 0 0 4px rgba(109, 179, 255, .12); }
.tl .when { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1.2rem; }
.tl h3 { font-size: 1.5rem; margin: 2px 0 6px; }
.tl p { color: var(--muted); font-size: 1.02rem; line-height: 1.5; }

.principles { margin-top: clamp(48px, 6vw, 84px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 48px); }
.principle h3 { font-size: 1.5rem; margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.principle .k { font-family: var(--serif); font-style: italic; color: var(--brass); }

/* ---- Contact ---------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 84px); align-items: start; }
.details { margin-top: 38px; display: grid; gap: 22px; }
.details dt { color: var(--faint); letter-spacing: .22em; text-transform: uppercase; font-size: .75rem; margin-bottom: 4px; }
.details dd { margin: 0; font-size: 1.2rem; }
.details a { text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color .2s, color .2s; }
.details a:hover { color: var(--accent-2); border-color: var(--accent); }
address { font-style: normal; }

.form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .legend { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(3, 9, 17, .55);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(109, 179, 255, .16); background: rgba(3, 9, 17, .8); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { background: #0a1626; color: var(--text); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); transition: all .2s; cursor: pointer; }
.pill input:hover + span { border-color: var(--accent); color: #fff; }
.pill input:checked + span { background: rgba(109, 179, 255, .16); border-color: var(--accent); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.fineprint { color: var(--faint); font-size: .95rem; line-height: 1.45; max-width: 44ch; }
.fineprint a { color: var(--muted); }
.status { min-height: 1.5em; font-size: 1.05rem; }
.status[data-state="ok"] { color: var(--ok); }
.status[data-state="err"] { color: var(--danger); }
.status[data-state="info"] { color: var(--accent-2); }
.form-card { padding: clamp(24px, 3.4vw, 42px); }
.form-card:hover { transform: none; }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: rgba(3, 8, 15, .55); padding-block: clamp(44px, 6vw, 72px) 36px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.foot .brand { padding: 0; }
.foot .brand img { height: 34px; }
.foot .tag { margin-top: 14px; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.foot h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 14px; }
.foot li + li { margin-top: 8px; }
.foot a { color: var(--muted); text-decoration: none; transition: color .2s; font-size: 1.02rem; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--faint); font-size: .95rem; }

/* ---- Reveal on scroll ---------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---- Sub-pages (forget me, privacy, 404) ---------------------------------------- */
.page { padding-top: calc(72px + clamp(48px, 8vw, 110px)); padding-bottom: clamp(64px, 9vw, 130px); }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.2rem); margin: 18px 0 10px; text-wrap: balance; }
.prose .meta { color: var(--faint); font-size: 1rem; margin-bottom: 36px; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 2.2em 0 .5em; line-height: 1.15; }
.prose p, .prose li { color: #c3d0e0; }
.prose p { margin-top: 1em; }
.prose ul { margin-top: .9em; display: grid; gap: .55em; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 1px; background: var(--brass); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--accent-2); text-underline-offset: 3px; }
.prose .callout { margin-top: 2.2em; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 1rem; }
.back { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.back:hover { color: #fff; }
.forget { max-width: 640px; margin-top: 36px; }
.privacy-list { margin-top: 1em; }

/* ---- Responsive -------------------------------------------------------------------- */
@media (max-width: 980px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .step:nth-child(2)::after { display: none; }
  .about, .contact { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: var(--text); content: ""; position: relative; transition: transform .25s, opacity .2s; }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-links { position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 22px; background: rgba(5, 12, 22, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease); }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .nav-links .btn { margin-top: 16px; border-bottom: 1px solid var(--b); }
  .nav-open .site-header { background: rgba(5, 12, 22, .96); }

  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .grid-2, .principles { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-4, .pipeline { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .step::after { display: none; }
  .foot { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- Utilities (kept as classes so the CSP can forbid inline styles) ------- */
.pt0 { padding-top: 0; }
.mt-lg { margin-top: 24px; }
.d-08 { --d: .08s; } .d-1 { --d: .1s; } .d-12 { --d: .12s; } .d-16 { --d: .16s; } .d-2 { --d: .2s; } .d-24 { --d: .24s; }

/* nav links must not recolor the CTA button */
.nav-links a.btn--primary, .nav-links a.btn--primary:hover { color: #04101e; }

/* polish */
.foot address { font-size: 1.02rem; color: var(--muted); }
@media (max-width: 520px) {
  .eyebrow--center::before, .eyebrow--center::after { display: none; }
  .hero .eyebrow { letter-spacing: .2em; font-size: .74rem; }
}
.back { display: flex; width: fit-content; margin-bottom: 18px; }

/* hero logo lockup (your artwork, white on transparent) */
.hero-logo { width: min(660px, 84vw); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 30px rgba(15, 59, 104, .6)); }
.hero h1 { margin-top: clamp(34px, 5vw, 52px); }

.about h2 { font-size: clamp(2rem, 1.1rem + 2.7vw, 3.2rem); }
