/* FourSeven Technology — site styles
   Design tokens first; everything else uses them. No frameworks. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Color */
  --ink: #0B1220;          /* deep navy-black: headings, dark bands */
  --text: #1C2431;         /* body text */
  --muted: #586273;        /* secondary text (≥ 4.5:1 on white and --surface) */
  --line: #E1E4E9;         /* hairlines */
  --line-strong: #C9CED6;
  --surface: #F5F6F8;      /* muted section background */
  --paper: #FFFFFF;
  --accent: #1D4FE0;       /* electric blue (≥ 4.5:1 on white) */
  --accent-strong: #163DB0;
  --accent-soft: #E9EFFF;
  --on-ink: #E8EBF0;
  --on-ink-muted: #A3ACBA;
  --accent-on-ink: #7EA0FF;
  --danger: #B42318;
  --danger-soft: #FEF3F2;
  --success: #067647;
  --success-soft: #ECFDF3;

  /* Type */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.125rem;
  --fs-h2: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-h1: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem);

  /* Space (4px base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;

  --radius: 4px;
  --radius-sm: 3px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 1px rgba(11, 18, 32, 0.04);
  --container: 72rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --header-h: 4rem;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font-sans); font-size: var(--fs-base); line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 var(--s-4); font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.35; letter-spacing: -0.005em; }
p { margin: 0 0 var(--s-4); }
p, li { text-wrap: pretty; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
ul, ol { padding-left: 1.25rem; margin: 0 0 var(--s-4); }
[role="list"] { list-style: none; padding: 0; margin: 0; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.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: var(--s-4); top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--radius); }
.skip-link:focus { top: var(--s-3); color: #fff; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(46rem + 2 * var(--gutter)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 2.875rem; padding: 0 var(--s-5); border-radius: var(--radius);
  font: 500 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn--sm { min-height: 2.5rem; padding: 0 var(--s-4); font-size: 0.9375rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); color: #fff; }
.btn--secondary { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); color: var(--ink); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn .icon--sm { transition: transform .15s var(--ease); }
.btn:hover .icon--sm { transform: translateX(2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-row--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__mark { flex: none; color: var(--ink); }
.brand__name { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand__suffix { font-weight: 400; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: var(--s-5); }
.site-nav__list { display: flex; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: var(--s-2) var(--s-3); color: var(--text); text-decoration: none; font-size: 0.9375rem; border-radius: var(--radius-sm); }
.site-nav__list a:hover { color: var(--ink); background: var(--surface); }
.site-nav__list a[aria-current="page"] { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-toggle { display: none; }

@media (max-width: 52rem) {
  .brand__suffix { display: none; }
  /* With JS: collapsible menu. Without JS, nav wraps below the brand. */
  .site-header__inner { flex-wrap: wrap; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: var(--s-3); padding-bottom: var(--s-4); }
  .site-nav__list { flex-direction: column; }
  .site-nav__list a { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .site-nav__list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: var(--s-3); }
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
    background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); cursor: pointer;
  }
  .js .site-nav { display: none; }
  .js .site-header.is-open .site-nav { display: flex; }
  .nav-toggle .menu-close { display: none; }
  .is-open .nav-toggle .menu-open { display: none; }
  .is-open .nav-toggle .menu-close { display: inline; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.section--tight { padding-block: clamp(2rem, 1rem + 4vw, 4rem); }
.section--muted { background: var(--surface); border-block: 1px solid var(--line); }
.section--rule { border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: var(--s-7); }
.section-head h2 { margin-bottom: var(--s-3); }
.section-head__intro { color: var(--muted); font-size: var(--fs-lg); margin: 0; }
.section-link { margin: var(--s-6) 0 0; }
.eyebrow {
  display: flex; align-items: center; gap: var(--s-3); margin: 0 0 var(--s-4);
  font: 500 0.8125rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.eyebrow a { color: inherit; }
.eyebrow__index { color: var(--accent); padding-right: var(--s-3); border-right: 1px solid var(--line-strong); }
.split { display: grid; gap: var(--s-6); }
@media (min-width: 60rem) { .split { grid-template-columns: 5fr 7fr; gap: var(--s-8); } .split .section-head { margin-bottom: 0; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 1.5rem + 6vw, 6rem) clamp(3.5rem, 2rem + 6vw, 6.5rem); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--s-8); } }
.hero h1 { margin-bottom: var(--s-5); }
.hero__lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); color: var(--muted); max-width: 34rem; margin-bottom: var(--s-6); }
.hero-figure { margin: 0; max-width: 26rem; width: 100%; justify-self: center; }
.hero-figure__frame { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.hero-figure__bar { display: flex; justify-content: space-between; padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--line); font: 400 0.75rem/1.6 var(--font-mono); color: var(--muted); }
.system-map { width: 100%; height: auto; }
.map-dots { fill: var(--line-strong); }
.map-links path { fill: none; stroke: var(--line-strong); stroke-width: 1.25; stroke-dasharray: 3 4; }
.map-links--accent path { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: none; }
.map-node rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; }
.map-node--accent rect { fill: var(--accent); stroke: var(--accent); }
.map-node text { font: 400 12px var(--font-mono); fill: var(--text); }
.hero-figure__caption { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }
.hero-figure__caption .mono { color: var(--ink); margin-right: var(--s-2); }

/* ---------- Page hero ---------- */
.page-hero { padding-block: clamp(2.75rem, 1.5rem + 5vw, 5rem) clamp(2rem, 1rem + 3vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.5rem); max-width: 22ch; }
.page-hero__lead { font-size: var(--fs-lg); color: var(--muted); max-width: 40rem; margin-bottom: 0; }
.page-hero--center { text-align: center; border-bottom: 0; padding-block: clamp(4rem, 2rem + 8vw, 8rem); }
.page-hero--center h1, .page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero--center .eyebrow { justify-content: center; }
.page-hero--center .page-hero__lead { margin-bottom: var(--s-6); }
.toc ul { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.toc a { display: inline-block; padding: var(--s-1) var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: var(--fs-sm); }
.toc a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 40rem) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { padding: var(--s-5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); transition: background-color .15s var(--ease); }
.service-card:hover { background: var(--surface); }
.service-card p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.service-card__icon { display: inline-flex; color: var(--accent); margin-bottom: var(--s-4); }
.service-card__title { margin-bottom: var(--s-2); font-size: 1.0625rem; }
@media (max-width: 39.99rem) {
  .service-card { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: var(--s-3); padding: var(--s-4); }
  .service-card__icon { grid-row: span 2; margin: 0; }
}
.service-card__title a { color: var(--ink); text-decoration: none; }
.service-card__title a::after { content: ""; } /* keep link target to the text for clarity */
.service-card__title a:hover { color: var(--accent); text-decoration: underline; }

.service-detail { display: grid; gap: var(--s-4); padding-block: var(--s-7); border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: 0; }
@media (min-width: 60rem) { .service-detail { grid-template-columns: 5fr 7fr; gap: var(--s-8); } }
.service-detail__head { display: grid; grid-template-columns: auto auto 1fr; align-items: start; gap: var(--s-3); }
.service-detail__head h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin: 0; }
.service-detail__index { color: var(--muted); font-size: var(--fs-sm); padding-top: .45em; }
.service-detail__head .service-card__icon { margin: 0; padding-top: .15em; }
.service-detail__value { font-size: var(--fs-lg); color: var(--text); }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: var(--s-2); }
.checklist li::before { content: ""; position: absolute; left: 0.25rem; top: 0.7em; width: 0.75rem; height: 1px; background: var(--accent); }
.checklist { margin-bottom: var(--s-5); }

.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line-strong); }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: step; padding: var(--s-5) var(--s-5) var(--s-5) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 52rem) { .steps li { border-bottom: 0; padding-right: var(--s-5); } .steps li + li { padding-left: var(--s-5); border-left: 1px solid var(--line); } }
.steps li::before { content: "0" counter(step); display: block; font: 500 0.8125rem var(--font-mono); color: var(--accent); margin-bottom: var(--s-3); }
.steps h3 { margin-bottom: var(--s-2); }
.steps p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* ---------- Areas / portfolio ---------- */
.areas { display: grid; border-top: 1px solid var(--line-strong); }
@media (min-width: 48rem) { .areas { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-7); } }
.areas__item { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-3); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.areas__item h3 { margin-bottom: var(--s-1); }
.areas__item p { color: var(--muted); margin: 0; font-size: 0.9375rem; }
.areas__index { color: var(--accent); font-size: var(--fs-sm); padding-top: .2em; }

.project-grid { display: grid; gap: var(--s-6); }
@media (min-width: 44rem) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.project-card__img, .project-card__placeholder { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-bottom: 1px solid var(--line); }
.project-card__placeholder { display: grid; place-items: center; background: var(--surface) repeating-linear-gradient(90deg, transparent 0 23px, var(--line) 23px 24px); color: var(--muted); font-size: var(--fs-sm); }
.project-card__body { padding: var(--s-5); }
.project-card__meta { font-size: 0.75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-2); }
.project-card__title { margin-bottom: var(--s-2); }
.project-card__title a { color: var(--ink); text-decoration: none; }
.project-card__title a:hover { color: var(--accent); text-decoration: underline; }
.project-card p { color: var(--muted); font-size: 0.9375rem; }
.tag { display: inline-block; font: 500 0.75rem/1 var(--font-mono); padding: var(--s-1) var(--s-2); border-radius: var(--radius-sm); margin: var(--s-3) 0 0; }
.tag--draft { background: #FFF4E5; color: #8A4B00; border: 1px solid #F5C98A; }

.case__facts { display: grid; gap: var(--s-4); margin: var(--s-6) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--line); }
@media (min-width: 48rem) { .case__facts { grid-template-columns: repeat(4, 1fr); } }
.case__facts dt { font: 500 0.75rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.case__facts dd { margin: var(--s-1) 0 0; }
.case__body { max-width: calc(46rem + 2 * var(--gutter)); padding-block: var(--s-7); }
.case__block { margin-bottom: var(--s-6); }
.case__block h2 { font-size: 1.375rem; }
.case__figure { margin: 0 0 var(--s-6); }
.case__figure img { border: 1px solid var(--line); border-radius: var(--radius); }
.case__figure figcaption { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-2); }

/* ---------- Principles & stack ---------- */
.principles { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 40rem) { .principles { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-6); } }
.principles li { padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.principles h3 { margin-bottom: var(--s-2); }
.principles p { color: var(--muted); margin: 0; font-size: 0.9375rem; }
.stack { margin: 0; border-top: 1px solid var(--line-strong); }
.stack__group { display: grid; gap: var(--s-2); padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .stack__group { grid-template-columns: 13rem 1fr; gap: var(--s-5); } }
.stack dt { font: 500 0.8125rem/1.8 var(--font-mono); color: var(--muted); }
.stack dd { margin: 0; }
.stack dd ul { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.stack dd li { padding: 0.125rem var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 0.9375rem; color: var(--ink); background: var(--paper); }

/* ---------- About ---------- */
.prose-grid { display: grid; gap: var(--s-7); }
@media (min-width: 60rem) { .prose-grid { grid-template-columns: 7fr 4fr; gap: var(--s-8); } }
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.5rem; margin-top: var(--s-6); }
.prose h2:first-child { margin-top: 0; }
.aside-panel { align-self: start; padding: var(--s-5); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.aside-panel__title { font-size: 1rem; margin-bottom: var(--s-4); }
.aside-panel .checklist { margin: 0; }
.aside-panel * + .aside-panel__title { margin-top: var(--s-6); }
.mini-steps { counter-reset: m; }
.mini-steps li { counter-increment: m; position: relative; padding-left: 2rem; margin-bottom: var(--s-3); color: var(--text); font-size: 0.9375rem; }
.mini-steps li::before { content: counter(m); position: absolute; left: 0; top: 0.05em; font: 500 0.8125rem var(--font-mono); color: var(--accent); }
.plain-list li { margin-bottom: var(--s-2); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--on-ink); padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); }
.cta-band h2 { color: #fff; margin-bottom: var(--s-2); }
.cta-band p { color: var(--on-ink-muted); margin: 0; max-width: 36rem; }
.cta-band :focus-visible { outline-color: #fff; }

/* ---------- Form ---------- */
.contact-grid { display: grid; gap: var(--s-7); }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 7fr 4fr; gap: var(--s-8); } }
.form { max-width: 44rem; }
.form__row { display: grid; gap: 0 var(--s-5); }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: var(--s-5); }
.field label { display: block; font-weight: 500; color: var(--ink); margin-bottom: var(--s-2); }
.field__optional { font-weight: 400; color: var(--muted); }
.field__hint { font-size: var(--fs-sm); color: var(--muted); margin: calc(-1 * var(--s-1)) 0 var(--s-2); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 2.875rem; padding: var(--s-2) var(--s-3);
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #8A93A3; border-radius: var(--radius); /* ≥ 3:1 against white */
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231C2431' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; }
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: var(--fs-sm); margin: var(--s-2) 0 0; display: flex; gap: var(--s-2); }
.field__error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--danger); color: #fff; font: 600 0.6875rem/1 var(--font-mono); margin-top: 0.15em; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-5); }
.form__status { scroll-margin-top: calc(var(--header-h) + 1rem); padding: var(--s-4); border-radius: var(--radius); margin-bottom: var(--s-5); border: 1px solid; }
.form__status:focus { outline: none; }
.form__status--error { background: var(--danger-soft); border-color: #FDA29B; color: #7A271A; }
.form__status--success { background: var(--success-soft); border-color: #ABEFC6; color: #054F31; }
.form__status h2 { font-size: 1.0625rem; color: inherit; margin-bottom: var(--s-1); }
.form__status p, .form__status ul { margin: 0; }
.btn[aria-busy="true"] .btn__label::after { content: "…"; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: var(--s-8); font-size: 0.9375rem; }
.site-footer__grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 52rem) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 52rem) { .site-footer__brand { grid-column: auto; } }
.site-footer__tagline { color: var(--muted); margin-top: var(--s-3); }
.site-footer__heading { font: 500 0.75rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__social a { display: inline-flex; align-items: center; gap: var(--s-2); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-7); padding-block: var(--s-5); background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px; color: var(--muted); font-size: var(--fs-sm); }
.site-footer__base p { margin: 0; }
.site-footer__base a { color: var(--muted); }

.draft-banner { background: #FFF4E5; color: #8A4B00; border-bottom: 1px solid #F5C98A; padding: var(--s-2) var(--gutter); font: 500 0.8125rem var(--font-mono); text-align: center; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .cta-band, .skip-link, .form { display: none; }
  body { font-size: 11pt; }
  a { color: inherit; }
}
.form__status-title { font-size: 1.25rem; color: inherit; }
