/* spence.studio — light + dark themes from one token set; Michroma display type;
   no inline styles or scripts (strict CSP). Dark is the brand's home; light is
   a first-class equal, not an inversion. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --line: rgba(11, 16, 32, 0.09);
  --line-strong: rgba(11, 16, 32, 0.18);
  --line-accent: rgba(0, 163, 196, 0.45);
  --line-accent-2: rgba(217, 26, 158, 0.4);
  --fg: #0b1020;
  --fg-2: #2e3648;
  --muted: #5b6478;
  --cy: #00a3c4;
  --mg: #d91a9e;
  --grad: linear-gradient(135deg, #00a3c4 0%, #d91a9e 100%);
  --glow: rgba(0, 163, 196, 0.22);
  --glow-2: rgba(217, 26, 158, 0.18);
  --orb-alpha: 0.26;
  --grid: rgba(11, 16, 32, 0.045);
  --shadow: 0 14px 34px -16px rgba(11, 16, 32, 0.28);
  --shadow-soft: 0 1px 2px rgba(11, 16, 32, 0.05);
  --header-bg: rgba(255, 255, 255, 0.8);
  --btn-fg: #ffffff;
  --field-bg: #ffffff;
  --chip-bg: rgba(0, 163, 196, 0.1);
  --show-sun: none;
  --show-moon: inline;
  --strobe-0: #00A3C4;
  --strobe-1: #1F8FBF;
  --strobe-2: #3E7CB9;
  --strobe-3: #5D68B4;
  --strobe-4: #7C55AE;
  --strobe-5: #9B41A9;
  --strobe-6: #BA2EA3;
  --strobe-7: #D91A9E;
  --font-display: "Michroma", "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --display-weight: 400;
  --container: 1160px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 20px;
  --header-h: 72px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #070a12;
  --bg-2: #0b0f1c;
  --panel: rgba(14, 18, 32, 0.72);
  --panel-solid: #0e1220;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-accent: rgba(56, 232, 255, 0.4);
  --line-accent-2: rgba(255, 61, 205, 0.4);
  --fg: #f2f5fa;
  --fg-2: #c3cad8;
  --muted: #8a94a8;
  --cy: #38e8ff;
  --mg: #ff3dcd;
  --grad: linear-gradient(135deg, #38e8ff 0%, #ff3dcd 100%);
  --glow: rgba(56, 232, 255, 0.32);
  --glow-2: rgba(255, 61, 205, 0.26);
  --orb-alpha: 0.42;
  --grid: rgba(255, 255, 255, 0.035);
  --shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.7);
  --shadow-soft: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --header-bg: rgba(7, 10, 18, 0.74);
  --btn-fg: #070a12;
  --field-bg: rgba(7, 10, 18, 0.6);
  --chip-bg: rgba(56, 232, 255, 0.12);
  --show-sun: inline;
  --show-moon: none;
  --strobe-0: #38E8FF;
  --strobe-1: #54D0F8;
  --strobe-2: #71B7F1;
  --strobe-3: #8D9FEA;
  --strobe-4: #AA86E2;
  --strobe-5: #C66EDB;
  --strobe-6: #E355D4;
  --strobe-7: #FF3DCD;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a12;
  --bg-2: #0b0f1c;
  --panel: rgba(14, 18, 32, 0.72);
  --panel-solid: #0e1220;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-accent: rgba(56, 232, 255, 0.4);
  --line-accent-2: rgba(255, 61, 205, 0.4);
  --fg: #f2f5fa;
  --fg-2: #c3cad8;
  --muted: #8a94a8;
  --cy: #38e8ff;
  --mg: #ff3dcd;
  --grad: linear-gradient(135deg, #38e8ff 0%, #ff3dcd 100%);
  --glow: rgba(56, 232, 255, 0.32);
  --glow-2: rgba(255, 61, 205, 0.26);
  --orb-alpha: 0.42;
  --grid: rgba(255, 255, 255, 0.035);
  --shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.7);
  --shadow-soft: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --header-bg: rgba(7, 10, 18, 0.74);
  --btn-fg: #070a12;
  --field-bg: rgba(7, 10, 18, 0.6);
  --chip-bg: rgba(56, 232, 255, 0.12);
  --show-sun: inline;
  --show-moon: none;
  --strobe-0: #38E8FF;
  --strobe-1: #54D0F8;
  --strobe-2: #71B7F1;
  --strobe-3: #8D9FEA;
  --strobe-4: #AA86E2;
  --strobe-5: #C66EDB;
  --strobe-6: #E355D4;
  --strobe-7: #FF3DCD;
}
/* Michroma has no Cyrillic: Russian pages use Unbounded for display type. */
:root:lang(ru), :lang(ru) { --font-display: "Unbounded", "Manrope", system-ui, sans-serif; --display-weight: 600; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 40vh at 8% -5%, var(--glow), transparent 60%),
    radial-gradient(50vw 40vh at 100% 0%, var(--glow-2), transparent 60%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.2; letter-spacing: 0; text-wrap: balance; }
h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--fg); color: var(--bg); border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ---------- logo (inline SVG partials, themed through tokens) ---------- */
.logo, .logo-mark { display: block; }
.logo .wm { fill: var(--fg); }
.logo .c0, .logo-mark .c0 { fill: var(--strobe-0); stroke: var(--strobe-0); }
.logo .c1, .logo-mark .c1 { fill: var(--strobe-1); stroke: var(--strobe-1); }
.logo .c2, .logo-mark .c2 { fill: var(--strobe-2); stroke: var(--strobe-2); }
.logo .c3, .logo-mark .c3 { fill: var(--strobe-3); stroke: var(--strobe-3); }
.logo .c4, .logo-mark .c4 { fill: var(--strobe-4); stroke: var(--strobe-4); }
.logo .c5, .logo-mark .c5 { fill: var(--strobe-5); stroke: var(--strobe-5); }
.logo .c6, .logo-mark .c6 { fill: var(--strobe-6); stroke: var(--strobe-6); }
.logo .c7, .logo-mark .c7 { fill: var(--strobe-7); stroke: var(--strobe-7); }

/* ---------- type helpers ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cy); margin: 0 0 14px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.2rem; color: var(--fg-2); max-width: 62ch; }
.section-title { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
.page-title { font-size: clamp(1.9rem, 4.8vw, 3.3rem); margin-bottom: 18px; }
.link-arrow { font-weight: 700; color: var(--cy); display: inline-flex; align-items: center; gap: 8px; }
.link-arrow::after { content: "→"; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--grad); color: var(--btn-fg); box-shadow: 0 10px 30px -10px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--glow-2); }
.btn-ghost { background: var(--panel); border-color: var(--line-strong); color: var(--fg); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cy); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: var(--header-bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); position: relative; }
.brand { margin-right: auto; display: block; }
.brand .logo { width: 186px; height: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line-strong); color: var(--fg); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.nav-toggle-icon { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle-icon i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel); color: var(--fg); cursor: pointer; padding: 0; transition: border-color 0.2s ease, transform 0.2s ease; }
.theme-toggle:hover { border-color: var(--cy); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: var(--show-sun); }
.theme-toggle .moon { display: var(--show-moon); }
.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 1px);
  flex-direction: column; gap: 18px; padding: 18px 0 22px;
  background: var(--panel-solid); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.site-nav.is-open { display: flex; }
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-list a { display: block; padding: 10px 6px; font-weight: 600; color: var(--fg-2); border-radius: 10px; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--fg); }
.nav-list a[aria-current="page"] { position: relative; }
.nav-cta { color: var(--cy) !important; }
.lang-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; align-self: flex-start; }
.lang-switch a { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.lang-switch a:hover { color: var(--fg); }
.lang-switch a.is-active { background: var(--chip-bg); color: var(--cy); }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 24px; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav-list { flex-direction: row; gap: 4px; }
  .nav-list a { padding: 8px 12px; }
  .nav-list a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(760px, 86vh); display: flex; align-items: center; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--orb-alpha); z-index: -2; pointer-events: none; }
.hero-orb-a { width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; right: -8vw; top: -10vw; background: radial-gradient(circle, var(--mg), transparent 65%); animation: drift-a 22s ease-in-out infinite alternate; }
.hero-orb-b { width: 34vw; height: 34vw; max-width: 420px; max-height: 420px; left: -10vw; bottom: -14vw; background: radial-gradient(circle, var(--cy), transparent 65%); animation: drift-b 26s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6vw, 5vw) scale(1.12); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(5vw, -4vw) scale(1.08); } }
.hero-inner { position: relative; display: block; padding: clamp(72px, 12vh, 140px) 0 clamp(80px, 12vh, 140px); max-width: 100%; }
.hero-eyebrow { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-title { font-size: clamp(1.9rem, 5.2vw, 3.9rem); line-height: 1.16; max-width: 15ch; animation: rise 0.9s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-lede { margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 58ch; color: var(--fg-2); animation: rise 1s 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; animation: rise 1s 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes rise { from { opacity: 0.001; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-scroll { position: absolute; left: 0; bottom: 18px; width: 28px; height: 44px; border: 1.5px solid var(--line-strong); border-radius: 16px; display: none; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cy); animation: scroll-dot 1.8s ease-in-out infinite; }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 880px) { .hero-scroll { display: block; } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 60ch; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; max-width: none; }
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); }

.discipline-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .discipline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .discipline-grid { grid-template-columns: repeat(4, 1fr); } }
.discipline { padding: 26px 24px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(12px); box-shadow: var(--shadow-soft); transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.discipline:hover { border-color: var(--line-accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.discipline-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--chip-bg); color: var(--cy); margin-bottom: 18px; }
.discipline h3 { font-size: 1.12rem; margin-bottom: 8px; }
.discipline p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- projects ---------- */
.project-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(12px); box-shadow: var(--shadow-soft); transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; position: relative; }
.project-card:hover { border-color: var(--line-accent-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-live .status-pill { color: var(--cy); }
.status-live .status-pill i { background: var(--cy); box-shadow: 0 0 0 4px var(--chip-bg); animation: pulse 2.4s ease-in-out infinite; }
.status-building .status-pill { color: var(--mg); }
.status-building .status-pill i { background: var(--mg); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--chip-bg); } 50% { box-shadow: 0 0 0 7px transparent; } }
.project-year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-title { font-family: var(--font-display); font-size: 1.08rem; font-weight: var(--display-weight); line-height: 1.3; }
.project-title a::after { content: ""; position: absolute; inset: 0; }
.project-summary { color: var(--fg-2); font-size: 0.98rem; margin: 0; flex: 1; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; }
.project-link { font-weight: 700; color: var(--cy); position: relative; z-index: 1; }
.project-link.is-muted { color: var(--muted); font-weight: 500; }

/* ---------- about ---------- */
.about-teaser { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .about-teaser { grid-template-columns: 1.4fr 1fr; } }
.about-teaser-art { display: grid; place-items: center; }
.about-teaser-art .logo-mark { width: min(300px, 70%); filter: drop-shadow(0 0 40px var(--glow)); }
.about-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .about-grid { grid-template-columns: 1.5fr 1fr; gap: 56px; } }
.prose { max-width: 62ch; }
.prose p { color: var(--fg-2); }
.prose .btn { margin-top: 12px; }
.fact-card { padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(12px); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 20px; }
.fact-card .logo-mark { width: 80px; }
.fact-list { margin: 0; display: grid; gap: 14px; }
.fact-list div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fact-list dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fact-list dd { margin: 0; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; }
.cta-inner { text-align: center; padding: clamp(40px, 6vw, 72px) var(--gutter); border-radius: 28px; border: 1px solid var(--line-strong); background: radial-gradient(80% 120% at 50% 0%, var(--glow-2), var(--panel-solid) 60%); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.cta-decor { position: absolute; right: -6%; top: 50%; width: min(420px, 60%); transform: translateY(-50%); opacity: 0.16; pointer-events: none; }
.cta-title { position: relative; font-size: clamp(1.35rem, 2.6vw, 2rem); margin-bottom: 12px; }
.cta-body { position: relative; color: var(--fg-2); max-width: 52ch; margin: 0 auto 24px; }
.cta-inner .btn { position: relative; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.35fr; gap: 56px; } }
.contact-hint { color: var(--fg-2); }
.contact-privacy { font-size: 0.9rem; color: var(--muted); }
.contact-form { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 32px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(12px); box-shadow: var(--shadow-soft); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field-label { font-weight: 600; font-size: 0.95rem; }
.field-optional { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.field input, .field textarea { font: inherit; color: var(--fg); background: var(--field-bg); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; min-height: 48px; transition: border-color 0.2s ease, box-shadow 0.2s ease; width: 100%; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cy); box-shadow: 0 0 0 3px var(--chip-bg); }
.field-trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 0; }
.turnstile:empty { display: none; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-errors { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-accent-2); background: var(--chip-bg); color: var(--fg); }
.form-errors p { margin: 0 0 6px; font-weight: 700; }
.form-errors ul { list-style: disc; padding-left: 20px; }
.form-errors[hidden] { display: none; }

/* ---------- sent / 404 ---------- */
.sent { min-height: 60vh; display: flex; align-items: center; }
.sent-inner { text-align: center; max-width: 60ch; display: flex; flex-direction: column; align-items: center; }
.sent-inner .hero-actions { justify-content: center; animation: none; margin-top: 12px; }
.sent-icon { color: var(--cy); margin-bottom: 18px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0 28px; background: var(--bg-2); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .logo-mark { width: 48px; margin-bottom: 14px; }
.footer-tagline { color: var(--fg-2); max-width: 32ch; margin-bottom: 6px; }
.footer-built { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.footer-heading { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { color: var(--fg-2); }
.footer-col a:hover { color: var(--cy); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .hero-orb { animation: none; }
}
