/* Webventure theme. Layout: 12-column grid in a 1240px frame; hero copy on the left with a blueprint drawing of the
   WS mark on a faint engineering grid; sections alternate paper and surface; one navy band per page. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F5F5F7;
  --surface: #FFFFFF;
  --ink: #12112A;
  --muted: #595870;
  --line: #DDDDE5;
  --grid: rgb(30 29 63 / 0.07);
  --accent: #1F5B9E;
  --btn-bg: #1E1D3F;
  --btn-fg: #FFFFFF;
  --band: #1E1D3F;
  --band-ink: #EEEEF5;
  --band-muted: #B6B5CE;
  --band-line: #3A3962;
  --band-grid: rgb(255 255 255 / 0.05);
  --cover-accent: #1F5B9E;
  --ok: #1D6B45;
  --ok-bg: #E6F4EC;
  --err: #A4262C;
  --err-bg: #FBEAEA;
  --warn: #8A5A00;

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.1875rem;
  --t-xl: clamp(1.625rem, 1.25rem + 1.5vw, 2.375rem);
  --t-2xl: clamp(2.25rem, 1.5rem + 2.8vw, 3.75rem);

  --gutter: clamp(16px, 4.5vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 16px;
  --header-h: 68px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --fast: 180ms;
  --slow: 650ms;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0C0C17;
    --surface: #141328;
    --ink: #ECECF4;
    --muted: #A5A4BC;
    --line: #28274A;
    --grid: rgb(255 255 255 / 0.045);
    --accent: #8DB4EA;
    --btn-bg: #ECECF4;
    --btn-fg: #12112A;
    --ok: #74D3A0;
    --ok-bg: #0F2A1E;
    --err: #F29B9B;
    --err-bg: #2E1416;
    --warn: #E8B75C;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
.i-logo { fill: currentColor; }
.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; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.label {
  font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
}
a.label { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; width: fit-content; }
a.label:hover { color: var(--accent); }
.lead { font-size: var(--t-lg); color: var(--muted); line-height: 1.6; max-width: 36em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: var(--gutter); }

/* Motion: one system everywhere. Elements below the fold fade up once when they enter the viewport. */
[data-reveal] { transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].is-pending { opacity: 0; transform: translateY(16px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) ease, box-shadow var(--fast) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgb(18 17 42 / 0.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.brand .mono { height: 28px; width: auto; }
.brand .word { height: 12px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--ink); text-decoration: none; font: 500 var(--t-sm)/1 var(--f-sans);
  padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: background-color var(--fast) ease, color var(--fast) ease;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: color-mix(in srgb, var(--ink) 6%, transparent); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-link .chev { transition: transform var(--fast) var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav .btn { margin-left: 10px; }
.drop { position: relative; }
.drop-panel {
  position: absolute; left: -8px; top: calc(100% + 10px); width: 420px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; display: grid; gap: 2px;
  box-shadow: 0 24px 48px -24px rgb(18 17 42 / 0.3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--fast) ease, transform var(--fast) var(--ease), visibility 0s linear var(--fast);
}
.drop.is-open .drop-panel { opacity: 1; visibility: visible; transform: none; transition: opacity var(--fast) ease, transform var(--fast) var(--ease); }
.drop-panel a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background-color var(--fast) ease; }
.drop-panel a:hover { background: var(--paper); }
.drop-panel strong { font-weight: 600; font-size: var(--t-sm); }
.drop-panel span { font-size: var(--t-xs); color: var(--muted); }
.drop-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 8px; }

.menu-toggle {
  display: none; cursor: pointer; font: 600 var(--t-sm)/1 var(--f-sans); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 44px;
  align-items: center; gap: 10px; background: var(--surface);
}
.menu-toggle .bars { width: 14px; height: 10px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform var(--fast) var(--ease), top var(--fast) var(--ease);
}
.menu-toggle .bars::before { top: 1px; }
.menu-toggle .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }
.menu-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--header-h); z-index: 49;
  overflow-y: auto; overscroll-behavior: contain; background: var(--paper);
  padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  display: grid; align-content: start; gap: 28px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--fast) ease, transform var(--fast) var(--ease), visibility 0s linear var(--fast);
}
.menu-sheet.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--fast) ease, transform var(--fast) var(--ease); }
.menu-sheet .group { display: grid; }
.menu-sheet .group .label { padding: 0 4px 8px; }
.menu-sheet a:not(.btn) {
  display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 0 4px;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--t-lg); font-weight: 500;
}
.menu-sheet a:not(.btn):active { color: var(--accent); }
.menu-sheet.is-open .group > * { animation: sheet-in 360ms var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(8px); } }
.menu-open { overflow: hidden; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 var(--t-sm)/1 var(--f-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--fast) var(--ease), background-color var(--fast) ease, border-color var(--fast) ease, color var(--fast) ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn-bg) 86%, var(--accent)); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.btn-light { background: var(--band-ink); color: var(--band); }
.btn-light:hover { background: #FFFFFF; }
.btn-sm { min-height: 40px; padding: 0 18px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.arrow { transition: transform var(--fast) var(--ease); flex: none; }
.btn:hover .arrow, .link-arrow:hover .arrow, a:hover > .arrow, .card:hover .arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--t-sm); color: var(--ink); text-decoration: none; width: fit-content; }
.link-arrow:hover { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Blueprint grid backgrounds */
.gridbg { position: relative; isolation: isolate; }
.gridbg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 72% 35%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 85% at 72% 35%, #000 25%, transparent 78%);
}
.band.gridbg::before {
  background-image: linear-gradient(var(--band-grid) 1px, transparent 1px), linear-gradient(90deg, var(--band-grid) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}

/* Blueprint drawing of the mark */
.plan { color: var(--ink); pointer-events: none; }
.plan svg { width: 100%; height: auto; overflow: visible; }
.plan .g { stroke: var(--accent); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; opacity: 0.55; }
.plan .g-dash { stroke-dasharray: 4 5; }
.plan .mark-fill { fill: currentColor; opacity: 0.05; }
.plan .mark-line { fill: none; stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.plan .dot { fill: var(--accent); }
.plan text { font-family: var(--f-mono); font-size: 13px; fill: var(--muted); letter-spacing: 0.04em; }
@media (prefers-reduced-motion: no-preference) {
  .plan .mark-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease-io) 0.15s forwards; }
  .plan .g, .plan .dot, .plan text { animation: fade 0.9s ease 0.1s both; }
  .plan .mark-fill { animation: fade 1s ease 1.9s both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }

/* Home hero */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 112px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
.hero-copy { grid-column: 1 / span 7; display: grid; gap: 28px; }
.hero h1 { font-size: clamp(2.125rem, 1.35rem + 2.5vw, 3.25rem); letter-spacing: -0.035em; line-height: 1.04; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags a {
  font-size: var(--t-xs); font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  transition: border-color var(--fast) ease, color var(--fast) ease;
}
.hero-tags a:hover { border-color: var(--accent); color: var(--accent); }
.hero .plan { grid-column: 8 / span 5; justify-self: end; width: 100%; max-width: 480px; }

/* Inner page hero */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px); overflow: hidden; }
.page-hero .wrap { position: relative; }
.page-hero .inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: end; position: relative; z-index: 1; }
.page-hero .copy { grid-column: 1 / span 8; display: grid; gap: 24px; }
.page-hero h1 { font-size: var(--t-2xl); letter-spacing: -0.04em; line-height: 1.02; max-width: 16em; }
.page-hero .plan { position: absolute; right: calc(var(--gutter) - 24px); top: -32px; width: min(38%, 420px); opacity: 0.65; z-index: 0; }
.facts { grid-column: 10 / span 3; display: grid; gap: 16px; border-left: 1px solid var(--line); padding-left: 24px; margin: 0; position: relative; background: color-mix(in srgb, var(--paper) 80%, transparent); }
.facts div { display: grid; gap: 2px; }
.facts dd { margin: 0; font-weight: 500; font-size: var(--t-sm); }

/* Sections */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.alt + .section { border-top: 0; }
.section.tight-top { padding-top: 0; }
.head { display: grid; gap: 16px; max-width: 44em; margin-bottom: clamp(40px, 5vw, 64px); }
.head h2 { font-size: var(--t-xl); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 48px); }
.head-row .head { margin-bottom: 0; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.split > .head { grid-column: 1 / span 5; margin: 0; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.split > .body { grid-column: 7 / span 6; }

/* Audience */
.aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); list-style: none; }
.aud li { border-top: 1px solid var(--ink); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.aud h3 { font-size: var(--t-lg); }
.aud p { color: var(--muted); font-size: var(--t-sm); }

/* Services list */
.svc-list { list-style: none; border-top: 1px solid var(--line); }
.svc { position: relative; border-bottom: 1px solid var(--line); }
.svc > a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 16px 48px;
  padding-block: clamp(28px, 3.5vw, 40px); align-items: start; color: inherit; text-decoration: none;
}
.svc-title { display: grid; gap: 10px; }
.svc-title .label { color: var(--accent); }
.svc h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); letter-spacing: -0.03em; transition: color var(--fast) ease; }
.svc-body { display: grid; gap: 16px; }
.svc-body p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chips li {
  font-family: var(--f-mono); font-size: 12px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--surface);
}
.svc .go {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--ink); transition: background-color var(--fast) ease, color var(--fast) ease, border-color var(--fast) ease, transform var(--fast) var(--ease);
}
.svc > a:hover h3 { color: var(--accent); }
.svc > a:hover .go { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.svc > a:active .go { transform: scale(0.94); }
.hire {
  margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
}
.hire h3 { font-size: var(--t-lg); margin-bottom: 6px; }
.hire p { color: var(--muted); max-width: 44em; }

/* Navy band */
.band { background: var(--band); color: var(--band-ink); padding-block: var(--section); }
.band .label { color: var(--band-muted); }
.band .lead, .band .muted { color: var(--band-muted); }
.band h2 { font-size: var(--t-xl); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { border-top: 1px solid var(--band-line); padding-top: 24px; display: grid; gap: 10px; align-content: start; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono); font-size: var(--t-xs); color: var(--band-muted); letter-spacing: 0.06em;
}
.step::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--band-ink); }
.step h3 { font-size: var(--t-lg); }
.step p { color: var(--band-muted); font-size: var(--t-sm); }
.signs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.signs .head { grid-column: 1 / span 5; margin: 0; }
.signs ol { grid-column: 7 / span 6; list-style: none; display: grid; gap: 12px; counter-reset: s; }
.signs li {
  counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 18px 20px; border-radius: 12px; background: color-mix(in srgb, var(--band-ink) 6%, transparent); border: 1px solid var(--band-line);
}
.signs li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--t-xs); color: var(--band-muted); }
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.cta-band .head { margin: 0; }
.cta-band h2 { max-width: 20em; }

/* Icon lists */
.plist { list-style: none; display: grid; }
.plist li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.plist li:first-child { border-top: 1px solid var(--line); }
.plist svg { grid-row: span 2; color: var(--accent); margin-top: 3px; }
.plist h3 { font-size: var(--t-md); letter-spacing: -0.01em; }
.plist p { color: var(--muted); font-size: var(--t-sm); grid-column: 2; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; list-style: none; }
.features li { padding-block: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 6px 14px; }
.features svg { color: var(--accent); grid-row: span 2; margin-top: 2px; }
.features h3 { font-size: var(--t-md); letter-spacing: -0.01em; }
.features p { grid-column: 2; color: var(--muted); font-size: var(--t-sm); }

/* Stack */
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stack > div { padding: 24px; display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--line); }
.stack > div:last-child { border-right: 0; }
.stack ul { list-style: none; display: grid; gap: 6px; font-size: var(--t-sm); }

/* Cards: posts and related links */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); list-style: none; }
.post a.card { display: grid; gap: 16px; color: inherit; text-decoration: none; align-content: start; }
.cover {
  aspect-ratio: 16 / 10; border-radius: 12px; position: relative; overflow: hidden; isolation: isolate;
  background: var(--band); color: var(--band-ink); padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 260ms var(--ease);
}
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--band-grid) 1px, transparent 1px), linear-gradient(90deg, var(--band-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.cover .label { color: var(--band-muted); font-size: 11px; }
.cover .glyph { position: absolute; right: -6%; bottom: -18%; width: 62%; height: auto; opacity: 0.14; z-index: -1; }
.cover b { font-weight: 600; font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.375rem); letter-spacing: -0.025em; line-height: 1.15; max-width: 14em; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.cover[data-tone="light"] { background: color-mix(in srgb, var(--band) 8%, var(--surface)); color: var(--ink); border: 1px solid var(--line); }
.cover[data-tone="light"]::before { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); }
.cover[data-tone="light"] .label { color: var(--muted); }
.cover[data-tone="light"] .glyph { opacity: 0.08; }
.cover[data-tone="accent"] { background: var(--cover-accent); color: #FFFFFF; }
.cover[data-tone="accent"] .label { color: #D5E3F5; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.post h3 { font-size: var(--t-lg); letter-spacing: -0.02em; line-height: 1.25; transition: color var(--fast) ease; }
.post p { color: var(--muted); font-size: var(--t-sm); }
.post a.card:hover h3 { color: var(--accent); }
.post a.card:hover .cover { transform: translateY(-3px); }
.post a.card:active .cover { transform: translateY(0) scale(0.99); }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.related a {
  display: grid; gap: 8px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; transition: border-color var(--fast) ease, transform var(--fast) var(--ease);
  height: 100%; align-content: start;
}
.related a:hover { border-color: var(--accent); transform: translateY(-2px); }
.related a:active { transform: translateY(0) scale(0.99); }
.related strong { font-size: var(--t-lg); letter-spacing: -0.02em; }
.related span:not(.label) { color: var(--muted); font-size: var(--t-sm); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.faq .head { grid-column: 1 / span 4; margin: 0; align-self: start; }
.qa { grid-column: 6 / span 7; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 22px; font-weight: 600; font-size: var(--t-md); transition: color var(--fast) ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa .pm { flex: none; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform var(--fast) var(--ease); }
.qa .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa summary:hover { color: var(--accent); }
.qa .ans { padding-bottom: 22px; color: var(--muted); max-width: 42em; }
.qa details[open] .ans { animation: sheet-in 320ms var(--ease) both; }

/* Contact block and office card */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.contact-copy { grid-column: 1 / span 7; display: grid; gap: 24px; }
.contact-copy h2 { font-size: var(--t-2xl); letter-spacing: -0.04em; line-height: 1.02; }
.contact-grid > .office { grid-column: 9 / span 4; }
.office {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 18px; align-content: start;
}
.office dl { margin: 0; display: grid; gap: 14px; }
.office dt { margin-bottom: 2px; }
.office dd { margin: 0; font-size: var(--t-sm); line-height: 1.5; overflow-wrap: anywhere; }
.office dd a { color: var(--ink); }
.office dd a:hover { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: var(--t-sm); font-weight: 500;
  transition: border-color var(--fast) ease, color var(--fast) ease, transform var(--fast) var(--ease);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials a:active { transform: scale(0.97); }

/* Forms */
.form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--t-sm); }
.field .opt { font-weight: 400; color: var(--muted); }
.help { color: var(--muted); font-size: var(--t-xs); line-height: 1.5; }
.field .error { color: var(--err); font-size: var(--t-xs); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font: 400 var(--t-md)/1.4 var(--f-sans);
  transition: border-color var(--fast) ease, box-shadow var(--fast) ease;
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 150px; padding: 12px 14px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23595870' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--line) 50%, var(--ink)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.input.mono { font-family: var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: var(--t-sm);
  border: 1px solid var(--line); background: var(--surface);
}
.notice svg { flex: none; margin-top: 2px; }
.notice.ok { color: var(--ok); background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.notice.err { color: var(--err); background: var(--err-bg); border-color: color-mix(in srgb, var(--err) 30%, transparent); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot p { font-size: var(--t-xs); color: var(--muted); max-width: 36em; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }

/* Contact page */
.contact-page { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.contact-page .panel { grid-column: 1 / span 7; }
.contact-page > aside { grid-column: 8 / span 5; display: grid; gap: 20px; align-content: start; min-width: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-page > aside > * { min-width: 0; }
.map-slot {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; position: relative;
  background: var(--surface); display: grid; place-items: center; text-align: center; padding: 20px;
}
.map-slot.gridbg::before { -webkit-mask-image: none; mask-image: none; }
.map-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-slot .map-cta { display: grid; gap: 10px; justify-items: center; }
.map-slot small { color: var(--muted); font-size: 12px; max-width: 26em; }

/* Verify */
.verify-hero .copy { grid-column: 1 / span 7; }
.verify-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.verify-main { grid-column: 1 / span 8; display: grid; gap: 24px; }
.verify-side { grid-column: 10 / span 3; display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.lookup { display: grid; gap: 14px; }
.lookup .row { display: flex; gap: 10px; flex-wrap: wrap; }
.lookup .row .input { flex: 1 1 260px; min-width: 0; font-size: 1.125rem; min-height: 56px; }
.lookup .row .btn { min-height: 56px; }
.id-anatomy { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.id-anatomy div { display: grid; gap: 2px; }
.id-anatomy code { font-family: var(--f-mono); font-size: var(--t-sm); color: var(--ink); }
.id-anatomy span { font-size: 12px; color: var(--muted); }
.result { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.result-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 20px clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line);
}
.result-head .who { display: grid; gap: 4px; }
.result-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.03em; }
.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  font: 600 var(--t-sm)/1 var(--f-sans); border: 1px solid currentColor;
}
.status svg { flex: none; }
.status.valid { color: var(--ok); background: var(--ok-bg); }
.status.revoked { color: var(--err); background: var(--err-bg); }
.result-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; padding: 8px clamp(20px, 3vw, 32px) 20px; margin: 0; }
.result-body div { padding-block: 14px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.result-body div:nth-last-child(-n+2) { border-bottom: 0; }
.result-body dd { margin: 0; font-weight: 500; }
.result-body .mono { font-family: var(--f-mono); letter-spacing: 0.03em; }
.result-note { padding: 16px clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted); background: var(--paper); }
.result.is-revoked .result-head { background: var(--err-bg); }
.result.not-found { padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; }
.result.not-found h2 { font-size: var(--t-xl); }
.dob { display: grid; gap: 12px; padding: 20px clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); }
.dob .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.dob .row .field { flex: 1 1 200px; }
.skeleton { display: grid; gap: 12px; padding: clamp(20px, 3vw, 32px); }
.skeleton i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--line) 40%, var(--surface)), var(--line)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton i:nth-child(1) { width: 40%; height: 22px; }
.skeleton i:nth-child(2) { width: 70%; }
.skeleton i:nth-child(3) { width: 55%; }
.skeleton i:nth-child(4) { width: 62%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: var(--t-sm); color: var(--muted); }
.check-list svg { color: var(--accent); margin-top: 3px; }

/* Blog */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.filters a {
  flex: none; font: 500 var(--t-sm)/1 var(--f-sans); color: var(--ink); background: var(--surface); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 40px; display: inline-flex; align-items: center;
  transition: border-color var(--fast) ease, background-color var(--fast) ease, color var(--fast) ease;
}
.filters a:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.filters a[aria-current="page"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.feature-post a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; color: inherit; text-decoration: none; }
.feature-post .cover { grid-column: 1 / span 7; aspect-ratio: 16 / 9; padding: clamp(20px, 3vw, 32px); }
.feature-post .cover b { font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); max-width: 13em; }
.feature-post .txt { grid-column: 8 / span 5; display: grid; gap: 16px; }
.feature-post h2 { font-size: var(--t-xl); transition: color var(--fast) ease; }
.feature-post a:hover h2 { color: var(--accent); }
.feature-post a:hover .cover { transform: translateY(-3px); }
.feature-post p { color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.empty strong { color: var(--ink); }

/* Article */
.article-hero { padding-block: clamp(48px, 6vw, 80px) clamp(32px, 4vw, 48px); }
.article-hero .inner { max-width: 820px; display: grid; gap: 22px; }
.article-hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.05; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: var(--t-sm); color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--band); color: var(--band-ink); display: grid; place-items: center; flex: none; }
.byline .who { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.article-cover { aspect-ratio: 21 / 9; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); gap: 48px; padding-block: clamp(40px, 5vw, 64px) var(--section); }
.toc { grid-column: 1; justify-self: end; width: 100%; max-width: 220px; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: var(--t-sm); line-height: 1.4; transition: color var(--fast) ease, border-color var(--fast) ease; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--accent); }
.author { grid-column: 2; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; }
.author .avatar { width: 56px; height: 56px; }
.author p { color: var(--muted); font-size: var(--t-sm); }

/* Prose: blog posts and editor pages */
.prose { grid-column: 2; font-size: 1.125rem; line-height: 1.75; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.625rem; letter-spacing: -0.025em; margin-top: 2.2em; line-height: 1.2; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; line-height: 1.25; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose img, .prose figure { border-radius: 12px; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: var(--t-sm); color: var(--muted); margin-top: 8px; }
.prose blockquote { margin-inline: 0; border-left: 3px solid var(--accent); background: var(--surface); padding: 18px 22px; border-radius: 0 12px 12px 0; }
.prose blockquote p { margin: 0; }
.prose code { font-family: var(--f-mono); font-size: 0.9em; background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.prose pre { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: var(--t-sm); }
.prose pre code { border: 0; padding: 0; background: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { font-family: var(--f-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.prose tbody th { font-weight: 600; }
.prose .wp-block-table, .prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose .wp-block-table table tr:last-child > *, .prose .table-wrap table tr:last-child > * { border-bottom: 0; }
.prose .callout, .prose .wp-block-group.is-style-callout { border-left: 3px solid var(--accent); background: var(--surface); padding: 18px 22px; border-radius: 0 12px 12px 0; font-size: var(--t-md); }
.prose .has-text-align-center { text-align: center; }
.prose .aligncenter { margin-inline: auto; }
.page-body { padding-block: clamp(32px, 4vw, 56px) var(--section); }
.page-body .prose { max-width: 720px; }
.updated { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

/* 404 */
.nf { min-height: 60vh; display: grid; align-content: center; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 88px) 32px; font-size: var(--t-sm); }
.foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; }
.foot-brand { grid-column: 1 / span 3; display: grid; gap: 18px; align-content: start; justify-items: start; }
.foot-brand .brand-link { display: grid; gap: 14px; color: var(--ink); text-decoration: none; }
.foot-brand .mono { height: 36px; width: auto; }
.foot-brand .word { height: 11px; width: auto; }
.foot-brand p { color: var(--muted); max-width: 26em; }
.foot-col { grid-column: span 2; display: grid; gap: 10px; align-content: start; }
.foot-col a { color: var(--ink); text-decoration: none; width: fit-content; max-width: 100%; overflow-wrap: anywhere; transition: color var(--fast) ease; }
.foot-col.wide { grid-column: span 3; }
.foot-col a:hover { color: var(--accent); text-decoration: underline; }
.foot-col address { font-style: normal; color: var(--muted); line-height: 1.6; }
.foot-col .label { margin-bottom: 4px; }
.foot .socials { margin-top: 4px; }
.foot .socials a { min-height: 36px; padding: 0 12px 0 10px; font-size: var(--t-xs); }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: var(--t-xs); }
.legal nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal a { color: var(--muted); text-decoration: none; }
.legal a:hover { color: var(--ink); text-decoration: underline; }

/* Phone quick-contact bar */
.dock { display: none; }

/* Tablet */
@media (max-width: 1080px) {
  .nav .nav-hide-md { display: none; }
  .hero-copy { grid-column: 1 / span 8; }
  .hero .plan { grid-column: 9 / span 4; }
  .svc > a { grid-template-columns: minmax(0, 1fr) auto; }
  .svc-title, .svc-body { grid-column: 1; }
  .svc .go { grid-column: 2; grid-row: 1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .split > .head, .faq .head, .signs .head { grid-column: 1 / -1; position: static; }
  .split > .body, .qa, .signs ol { grid-column: 1 / -1; }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack > div:nth-child(2) { border-right: 0; }
  .stack > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts > li:nth-child(3):last-child { display: none; }
  .contact-copy { grid-column: 1 / span 7; }
  .contact-grid > .office { grid-column: 8 / span 5; }
  .page-hero .copy { grid-column: 1 / -1; }
  .facts { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); background: none; }
  .feature-post .cover, .feature-post .txt { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .prose, .author { grid-column: 1; max-width: 700px; margin-inline: auto; width: 100%; }
  .contact-page .panel { grid-column: 1 / span 7; }
  .contact-page > aside { grid-column: 8 / span 5; }
  .verify-main { grid-column: 1 / span 7; }
  .verify-side { grid-column: 8 / span 5; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col { grid-column: span 4; }
  .foot-col.wide { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); position: relative; }
  .hero-copy { grid-column: 1; position: relative; z-index: 1; }
  .hero .plan { position: absolute; top: -24px; right: calc(var(--gutter) * -0.5); width: min(60%, 380px); opacity: 0.4; z-index: 0; }
  .page-hero .plan { width: min(55%, 340px); opacity: 0.35; }
  .aud { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-copy, .contact-grid > .office { grid-column: 1 / -1; }
  .office dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .contact-page .panel, .contact-page > aside { grid-column: 1 / -1; position: static; }
  .verify-main, .verify-side { grid-column: 1 / -1; position: static; }
  .verify-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phone */
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .hero .wrap, .contact-grid, .foot, .split, .faq, .signs, .contact-page, .verify-layout { gap: 24px; }
  .hero-copy { gap: 22px; }
  .hero .plan { width: 64%; top: -36px; right: -24px; opacity: 0.22; }
  .page-hero .plan { width: 64%; right: -24px; top: -24px; opacity: 0.2; }
  .plan text { display: none; }
  .lead { font-size: var(--t-md); }
  .actions .btn { flex: 1 1 100%; }
  .svc > a { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .svc .go { display: none; }
  .hire { grid-template-columns: minmax(0, 1fr); }
  .hire .btn { width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .stack { grid-template-columns: minmax(0, 1fr); }
  .stack > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stack > div:last-child { border-bottom: 0; }
  .posts { grid-template-columns: minmax(0, 1fr); }
  .posts > li:nth-child(3):last-child { display: block; }
  .features, .related { grid-template-columns: minmax(0, 1fr); }
  .office dl { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .lookup .row .btn, .dob .row .btn { flex: 1 1 100%; }
  .result-body { grid-template-columns: minmax(0, 1fr); }
  .result-body div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .verify-side { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { width: 100%; }
  .foot-col { grid-column: span 6; }
  .foot-col.wide { grid-column: 1 / -1; }
  .prose { font-size: 1.0625rem; }
  .dock {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transition: transform var(--fast) var(--ease), opacity var(--fast) ease;
  }
  .dock .btn { min-height: 52px; }
  .menu-open .dock { transform: translateY(110%); opacity: 0; }
}
@media (max-width: 400px) {
  .brand .word { height: 10px; }
  .brand .mono { height: 24px; }
  .brand { gap: 9px; }
  .foot-col { grid-column: 1 / -1; }
}
@media (hover: none) {
  .svc > a:hover .go { background: none; color: var(--ink); border-color: var(--line); }
  .related a:hover, .post a.card:hover .cover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  [data-reveal].is-pending { opacity: 1; transform: none; }
}
@media print {
  [data-reveal].is-pending { opacity: 1 !important; transform: none !important; }
  .site-header, .site-footer, .dock, .menu-sheet, .plan, .lookup, .verify-side, .dob { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .result { border-color: #999; }
}
