/* ==========================================================================
   Texas Code Works — site styles
   Plain CSS, no build step. Tokens first, then base, layout, components.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193, U+2212;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --paper-3: #e6dfd2;
  --card: #fffdf9;
  --ink: #15181e;
  --ink-2: #363b46;
  --muted: #5d636e;
  --line: #ddd5c7;
  --line-strong: #c9bfae;
  --accent: #b9501a;
  --accent-hover: #9c4213;
  --accent-soft: #f6e3d6;
  --accent-ink: #ffffff;
  --blueprint: #1d3a5c;
  --night: #121620;
  --night-2: #1a1f2b;
  --night-line: #2b3242;
  --night-ink: #ece6dc;
  --night-muted: #a5acb9;
  --success: #2f6b45;
  --danger: #a3271f;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.65rem + 2.6vw, 3.6rem);
  --step-5: clamp(2.6rem, 1.8rem + 3.8vw, 4.6rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1200px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(21, 24, 30, 0.06);
  --shadow: 0 1px 2px rgba(21, 24, 30, 0.05), 0 8px 24px -12px rgba(21, 24, 30, 0.18);
  --shadow-lg: 0 2px 4px rgba(21, 24, 30, 0.04), 0 24px 48px -20px rgba(21, 24, 30, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101318;
    --paper-2: #151a21;
    --paper-3: #1c222b;
    --card: #161b23;
    --ink: #ece6dc;
    --ink-2: #cdc7bd;
    --muted: #9aa1ad;
    --line: #262d38;
    --line-strong: #364050;
    --accent: #e7783c;
    --accent-hover: #f08d55;
    --accent-soft: #2b1e17;
    --accent-ink: #15110e;
    --blueprint: #8fb3dc;
    --night: #0b0e13;
    --night-2: #12161d;
    --night-line: #232a36;
    --success: #6cc08b;
    --danger: #f07b72;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -0.025em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.2; font-variation-settings: "opsz" 36; }
h4 { font-size: var(--step-1); line-height: 1.3; font-variation-settings: "opsz" 24; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s var(--ease);
}
a:hover { color: var(--accent-hover); }

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

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

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.35em; }

strong { font-weight: 650; }

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--paper); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(780px + var(--gutter) * 2); }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem; height: 1px;
  background: currentColor;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 1.5rem; height: 1px;
  background: currentColor;
}

.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 680px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--3 > :last-child:nth-child(odd) { grid-column: auto; }
}
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.25fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.35fr; }
  .split--center { align-items: center; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-border: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.18s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-border: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-hover); --btn-border: var(--accent-hover); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.btn--ghost:hover { --btn-border: var(--ink); box-shadow: none; }
.btn--light { --btn-bg: var(--night-ink); --btn-fg: var(--night); --btn-border: var(--night-ink); }
.btn--light-ghost { --btn-bg: transparent; --btn-fg: var(--night-ink); --btn-border: var(--night-line); }
.btn--light-ghost:hover { --btn-border: var(--night-ink); box-shadow: none; }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.15rem;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link svg { width: 1em; height: 1em; transition: transform 0.18s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header's box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
body.nav-open .site-header::before { background: var(--paper); }
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header::before { background: var(--paper); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 24;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 2.1rem; height: 2.1rem; }
.brand-mark .bm-bg { fill: var(--ink); }
.brand-mark .bm-fg { fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .bm-star { fill: var(--accent); }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li + li { margin: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  white-space: nowrap;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); background: var(--paper-2); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--ink); }
.nav-link[aria-current="page"]::after, .nav-link.is-active::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 0.15rem;
}
.nav-link .chev { width: 0.85rem; height: 0.85rem; transition: transform 0.2s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav-dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  translate: -50% 0;
  width: min(34rem, 90vw);
  padding: 0.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.dropdown-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s var(--ease);
}
.dropdown-item:hover { background: var(--paper-2); color: var(--ink); }
.dropdown-item .dd-text strong { display: block; font-weight: 620; margin-bottom: 0.1rem; }
.dropdown-item .dd-text span { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

.icon-tile {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-tile svg { width: 1.3rem; height: 1.3rem; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-login {
  white-space: nowrap;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.header-login:hover { color: var(--ink); background: var(--paper-2); }
.header-login svg { width: 1rem; height: 1rem; }

.menu-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) {
  .menu-toggle { display: grid; }
  .header-login, .header-actions .btn { display: none; }
  .nav {
    position: fixed;
    inset: 4.5rem 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem var(--gutter) 2rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 1.05rem 0;
    font-size: 1.15rem;
    border-radius: 0;
    font-family: var(--font-display);
    font-weight: 560;
    color: var(--ink);
  }
  .nav-link:hover, .nav-link[aria-expanded="true"] { background: none; }
  .nav-link[aria-current="page"]::after, .nav-link.is-active::after { margin-left: auto; margin-right: 0.25rem; }
  .dropdown-panel {
    position: static;
    translate: none;
    width: 100%;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 1rem;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .dropdown-panel.is-open { display: grid; }
  .dropdown-item { padding: 0.7rem 0; }
  .dropdown-item:hover { background: none; }
  .nav-mobile-extra { display: grid !important; gap: 0.75rem; margin-top: 1.75rem; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1081px) { .nav-mobile-extra { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero::before {
  /* faint drafting grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em {
  font-style: italic;
  font-weight: 480;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.hero .lede { max-width: 36rem; margin-bottom: 2rem; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; }
.hero-points svg { width: 1rem; height: 1rem; color: var(--accent); }

.page-hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 0%, transparent 70%);
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: var(--step-4); max-width: 18em; }
.page-hero .lede { max-width: 40rem; }
.page-hero .btn-row { margin-top: 2rem; }

.breadcrumbs {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Spec sheet (hero visual) ---------- */
.spec {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  overflow: hidden;
}
.spec-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-dots { display: flex; gap: 0.35rem; }
.spec-dots i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line-strong); }
.spec-body { padding: 1.4rem 1.25rem 1.25rem; }
.spec-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  line-height: 1.2;
  margin-bottom: 1.1rem;
  font-variation-settings: "opsz" 36;
}
.spec-rows { display: grid; gap: 0; margin: 0; }
.spec-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px dashed var(--line);
}
.spec-row dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.15rem;
}
.spec-row dd { margin: 0; color: var(--ink); font-weight: 520; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-2);
  background: var(--paper);
  white-space: nowrap;
}
.spec-progress { margin-top: 1.1rem; }
.spec-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.55rem;
}
.spec-steps li { margin: 0; height: 6px; border-radius: 3px; background: var(--paper-3); position: relative; overflow: hidden; }
.spec-steps li.done { background: var(--accent); }
.spec-steps li.active::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 55%;
  background: var(--accent);
  border-radius: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .spec-steps li.active::after { animation: spec-fill 3.2s var(--ease) infinite alternate; }
}
@keyframes spec-fill { from { width: 20%; } to { width: 85%; } }
.spec-caption {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.spec-stamp {
  position: absolute;
  right: 1.1rem;
  bottom: 4.6rem;
  padding: 0.35rem 0.7rem;
  border: 2px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  opacity: 0.85;
  background: var(--card);
}
.spec-wrap { position: relative; }
.spec-wrap::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, var(--line) 9px 10px);
  opacity: 0.6;
  z-index: -1;
}
@media (max-width: 560px) {
  .spec-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .spec-stamp { display: none; }
  .spec-wrap::before { inset: 0.75rem -0.6rem -0.75rem 0.6rem; }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-2); }
.card .icon-tile { margin-bottom: 1.25rem; width: 3rem; height: 3rem; border-radius: 11px; }
.card .icon-tile svg { width: 1.5rem; height: 1.5rem; }
.card--link:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card--link .card-cta { margin-top: auto; padding-top: 1.5rem; }
.card-link-overlay { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card-link-overlay:focus-visible { outline-offset: -2px; }

.service-card { min-height: 100%; }
.service-card .num {
  position: absolute;
  top: clamp(1.4rem, 3vw, 2rem);
  right: clamp(1.4rem, 3vw, 2rem);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.check-list li {
  margin: 0;
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.6rem;
  align-items: start;
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  width: 1.1rem; height: 1.1rem;
  margin-top: 0.15rem;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.6 14.2 3.9 10.5l1.2-1.2 2.5 2.5 7.3-7.3 1.2 1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.6 14.2 3.9 10.5l1.2-1.2 2.5 2.5 7.3-7.3 1.2 1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mini-services {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
}
.mini-service {
  padding: 1.35rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: -1px -1px 0 0;
}
.mini-service h4 { font-size: 1.05rem; margin-bottom: 0.35rem; font-family: var(--font-body); font-weight: 650; letter-spacing: 0; }
.mini-service p { font-size: 0.93rem; color: var(--muted); line-height: 1.5; }

/* ---------- Pain points ---------- */
.pain-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  padding: 0;
  margin: 0;
}
.pain-list li {
  margin: 0;
  padding: 1.6rem 1.5rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
}
.pain-list .quote-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 0.8;
  color: var(--accent);
  font-style: italic;
}
.pain-list p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; font-variation-settings: "opsz" 24; color: var(--ink); margin-bottom: 0.4rem; }
.pain-list span { font-size: 0.93rem; color: var(--muted); }

/* ---------- Process ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  counter-reset: step;
}
.step {
  margin: 0;
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-2); font-size: 0.97rem; }
.step .step-meta { display: block; margin-top: 0.8rem; font-size: 0.85rem; color: var(--muted); font-family: var(--font-mono); }

/* ---------- Dark band ---------- */
.band-dark {
  background: var(--night);
  color: var(--night-ink);
  position: relative;
  overflow: hidden;
}
.band-dark h2, .band-dark h3, .band-dark h4 { color: var(--night-ink); }
.band-dark p { color: var(--night-muted); }
.band-dark .eyebrow { color: #f0a070; }
.band-dark .section-head p { color: var(--night-muted); }

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0;
  border-top: 1px solid var(--night-line);
  border-left: 1px solid var(--night-line);
}
.promise {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
}
.promise svg { width: 1.6rem; height: 1.6rem; color: #f0a070; margin-bottom: 1.1rem; }
.promise h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.promise p { font-size: 0.97rem; }

/* ---------- Tech list ---------- */
.tech-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.tech-group h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.tech-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tech-group li { margin: 0; }
.tech-group .tag { font-size: 0.82rem; padding: 0.3rem 0.65rem; background: var(--card); }

/* ---------- Examples / projects list ---------- */
.example-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.example {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
}
.example .kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.example h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.example p { color: var(--ink-2); font-size: 0.97rem; }

/* ---------- Feature rows (service pages) ---------- */
.feature-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-row {
  display: grid;
  gap: 0.75rem 2rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 820px) {
  .feature-row { grid-template-columns: 4rem minmax(0, 18rem) 1fr; align-items: start; }
}
.feature-row .icon-tile { width: 3rem; height: 3rem; }
.feature-row h3 { font-size: 1.4rem; margin: 0.35rem 0 0; }
.feature-row p { color: var(--ink-2); }
.feature-row .check-list { margin-top: 0.9rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 540;
  line-height: 1.35;
  font-variation-settings: "opsz" 24;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .plus {
  position: relative;
  width: 1.75rem; height: 1.75rem;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.faq summary .plus::before, .faq summary .plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0.7rem; height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
  transition: transform 0.2s var(--ease);
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq .faq-body { padding: 0 3rem 1.5rem 0; color: var(--ink-2); }
.faq .faq-body p { max-width: 44rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--night);
  color: var(--night-ink);
  border-radius: calc(var(--radius-lg) + 6px);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 90% at 100% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 100% 0%, #000 0%, transparent 70%);
  z-index: -1;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 28rem; height: 28rem;
  right: -10rem; bottom: -14rem;
  background: radial-gradient(circle, rgba(231, 120, 60, 0.28), transparent 65%);
  z-index: -1;
}
.cta-band h2 { color: var(--night-ink); font-size: var(--step-4); max-width: 16em; }
.cta-band p { color: var(--night-muted); font-size: var(--step-1); max-width: 34rem; }
.cta-band .btn-row { margin-top: 2rem; }
.cta-band .cta-mail { color: var(--night-ink); font-family: var(--font-mono); font-size: 0.92rem; }
.cta-band .cta-mail:hover { color: #f0a070; }

/* ---------- Prose (about, privacy) ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-3); margin-top: 2.5em; }
.prose h3 { font-size: var(--step-2); margin-top: 2em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { margin: 0 0 1.25em; }

.pull {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.35;
  font-variation-settings: "opsz" 48;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact-list li {
  margin: 0;
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.fact-list dt, .fact-list .k {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}
.fact-list .v { color: var(--ink); }

/* ---------- Contact / quote form ---------- */
.quote-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 1000px) {
  .quote-layout { grid-template-columns: minmax(0, 1fr) 21rem; }
  .quote-aside { position: sticky; top: 6.5rem; }
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  list-style: none;
  padding: 0;
  margin: 0;
}
.form-progress li {
  margin: 0;
  padding: 1rem 1.25rem 0.95rem;
  font-size: 0.86rem;
  color: var(--muted);
  border-right: 1px solid var(--line);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.form-progress li:last-child { border-right: 0; }
.form-progress .n {
  display: grid;
  place-items: center;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.form-progress li::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.form-progress li.is-current { color: var(--ink); font-weight: 600; }
.form-progress li.is-current .n { border-color: var(--ink); color: var(--ink); }
.form-progress li.is-current::after, .form-progress li.is-done::after { transform: scaleX(1); }
.form-progress li.is-done .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 560px) {
  .form-progress li { padding: 0.85rem 0.6rem; justify-content: center; }
  .form-progress .lbl { display: none; }
}
.no-js .form-progress { display: none; }

.form-body { padding: clamp(1.4rem, 4vw, 2.5rem); }
.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step + .form-step { margin-top: 2.5rem; }
.js .form-step + .form-step { margin-top: 0; }
.js .form-step[hidden] { display: none; }
.form-step legend {
  padding: 0;
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 560;
  font-variation-settings: "opsz" 36;
  line-height: 1.2;
  color: var(--ink);
}
.form-step .step-intro { color: var(--muted); margin-bottom: 1.75rem; font-size: 0.97rem; }

.field { display: grid; gap: 0.45rem; margin-bottom: 1.35rem; min-width: 0; }
.field-row { display: grid; gap: 0 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.field > label, .field .label {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
}
.field .opt { font-weight: 400; color: var(--muted); font-size: 0.86rem; }
.field .hint { font-size: 0.86rem; color: var(--muted); margin: -0.15rem 0 0.15rem; }

.input, .select, .textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
.select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235d636e'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
  cursor: pointer;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.75; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.86rem; font-weight: 550; }
.field-error:empty { display: none; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: 0.65rem;
}
.choice-grid--sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice .choice-box {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.75rem;
  align-items: start;
  height: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.choice .indicator {
  width: 1.15rem; height: 1.15rem;
  margin-top: 0.1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.choice input[type="checkbox"] + .choice-box .indicator { border-radius: 4px; }
.choice .indicator::after {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-ink);
  transform: scale(0);
  transition: transform 0.15s var(--ease);
}
.choice input[type="checkbox"] + .choice-box .indicator::after {
  width: 0.7rem; height: 0.7rem;
  border-radius: 0;
  background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.6 14.2 3.9 10.5l1.2-1.2 2.5 2.5 7.3-7.3 1.2 1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.6 14.2 3.9 10.5l1.2-1.2 2.5 2.5 7.3-7.3 1.2 1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.choice .choice-text strong { display: block; font-weight: 620; font-size: 0.97rem; line-height: 1.35; color: var(--ink); }
.choice .choice-text span { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.4; margin-top: 0.2rem; }
.choice:hover .choice-box { border-color: var(--muted); }
.choice input:checked + .choice-box {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.choice input:checked + .choice-box .indicator { border-color: var(--accent); background: var(--accent); }
.choice input:checked + .choice-box .indicator::after { transform: scale(1); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--accent); outline-offset: 2px; }

.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.form-nav .spacer { flex: 1; }
.form-fine { font-size: 0.84rem; color: var(--muted); margin-top: 1rem; }
.no-js .js-only { display: none !important; }
.js .nojs-only { display: none !important; }

.form-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.form-alert svg { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; }
.form-alert--error { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); color: var(--danger); }
.form-alert--error a { color: inherit; font-weight: 650; }

.form-success { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.4rem, 4vw, 2.5rem); }
.form-success .seal {
  width: 4rem; height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.form-success .seal svg { width: 1.9rem; height: 1.9rem; }
.form-success h2 { font-size: var(--step-3); }
.form-success p { color: var(--ink-2); max-width: 30rem; margin-inline: auto; }

.spinner {
  width: 1.05rem; height: 1.05rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.aside-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.aside-card + .aside-card { margin-top: 1rem; }
.aside-card h2 { font-size: 1.3rem; margin-bottom: 1rem; font-variation-settings: "opsz" 24; }
.aside-card ol { padding-left: 0; list-style: none; counter-reset: a; display: grid; gap: 0.9rem; margin: 0; }
.aside-card ol li {
  margin: 0;
  counter-increment: a;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.6rem;
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.aside-card ol li::before {
  content: counter(a);
  display: grid;
  place-items: center;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
}
.aside-contact { display: grid; gap: 0.75rem; font-size: 0.94rem; }
.aside-contact a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: none; font-weight: 550; word-break: break-all; }
.aside-contact a:hover { color: var(--accent); }
.aside-contact svg { width: 1.05rem; height: 1.05rem; color: var(--accent); flex-shrink: 0; }
.aside-contact span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--night-muted);
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--night-ink); text-decoration: none; }
.site-footer a:hover { color: #f0a070; }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
}
.footer-brand .brand { color: var(--night-ink); margin-bottom: 1rem; }
.footer-brand .brand-mark .bm-bg { fill: var(--night-ink); }
.footer-brand .brand-mark .bm-fg { stroke: var(--night); }
.footer-brand p { max-width: 22rem; color: var(--night-muted); }
.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-muted);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-links li { margin: 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--night-line);
  font-size: 0.86rem;
}
.footer-bottom ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom li { margin: 0; }
.footer-bottom a { color: var(--night-muted); }
.footer-bottom a:hover { color: var(--night-ink); }
.footer-star { color: #f0a070; }

/* ---------- Error pages ---------- */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(4rem, 10vw, 8rem);
}
.error-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.error-page h1 { font-size: var(--step-4); }
.error-page p { color: var(--ink-2); max-width: 32rem; margin-inline: auto; }
.error-page .btn-row { justify-content: center; margin-top: 2rem; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

@media print {
  .site-header, .site-footer, .cta-band, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Stagger delays for reveal groups (no inline styles; CSP-friendly). */
.d1 { --d: 0.08s; }
.d2 { --d: 0.16s; }
.d3 { --d: 0.24s; }
.d4 { --d: 0.32s; }
.d5 { --d: 0.4s; }
.h3-size { font-size: var(--step-2); line-height: 1.2; font-variation-settings: "opsz" 36; }
.aside-contact span { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---------- Client logos ---------- */
.clients {
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid var(--line);
}
.clients-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
}
.clients-label::before,
.clients-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.client-list {
  --gap: clamp(0.75rem, 2vw, 1.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}
.client {
  margin: 0;
  flex: 0 1 calc((100% - var(--gap)) / 2);
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 600px) {
  .client { flex-basis: calc((100% - var(--gap) * 2) / 3); }
}
@media (min-width: 960px) {
  .client { flex-basis: calc((100% - var(--gap) * 4) / 5); }
}
.client-logo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #fff; /* matches the logos' own white backgrounds; stays white in dark mode too */
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.client-logo img {
  position: absolute;
  inset: 0.85rem 1.1rem;
  width: calc(100% - 2.2rem);
  height: calc(100% - 1.7rem);
  object-fit: contain;
}
.client:hover .client-logo {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.client-name {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}
@media (prefers-color-scheme: dark) {
  .client-logo { border-color: transparent; filter: brightness(0.93); }
}
