/* DEA website — plain CSS port of the Next.js/Tailwind build. */

:root {
  --ink: #0b0d10;
  --ink-2: #12161b;
  --bone: #f2f3f1;
  --slate: #8a97a8;
  --slate-deep: #718091;
  --steel: #2b333d;
  --signal: #d6e2f0;
  --graphite: #4f5764;
  --rule-light: #c9ccd0;
  --font-sans: "Archivo", system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --logo-hole: var(--ink);
  --maxw: 88rem;
}

/* ---------- Reset (Tailwind preflight subset) ---------- */
*, ::before, ::after { box-sizing: border-box; border: 0 solid; margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: inherit; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; background: transparent; border-radius: 0; }
button { cursor: pointer; text-align: inherit; }
textarea { resize: vertical; }
svg, canvas, img { display: block; vertical-align: middle; }
svg { max-width: 100%; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
[hidden] { display: none !important; }
.hidden { display: none; }

html { scroll-behavior: smooth; background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Type ---------- */
.display { font-stretch: 125%; font-weight: 600; letter-spacing: -0.02em; line-height: 0.98; }
.display-md { font-stretch: 112%; font-weight: 600; letter-spacing: -0.015em; line-height: 1.04; }
.h-xl { font-size: clamp(2rem, 4.6vw, 4.25rem); }
.h-contact { font-size: clamp(2.25rem, 5vw, 4.75rem); }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.fw-medium { font-weight: 500; }
.c-ink { color: var(--ink); }
.c-bone { color: var(--bone); }
.c-slate { color: var(--slate); }
.c-slate-deep { color: var(--slate-deep); }
.c-graphite { color: var(--graphite); }
.bg-bone { background: var(--bone); }
.bg-ink { background: var(--ink); }
.max-md { max-width: 28rem; }
.max-sm { max-width: 24rem; }
.max-3xl { max-width: 48rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-8 { margin-top: 2rem; }
.rel { position: relative; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.on-light :focus-visible { outline-color: var(--ink); }
::selection { background: var(--signal); color: var(--ink); }

.skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 100; width: auto; height: auto; margin: 0;
  overflow: visible; clip: auto; white-space: normal; background: var(--bone); color: var(--ink); padding: 0.5rem 1rem;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.py-section { padding-block: 6rem; }
.grid12 { display: grid; }
.gap-6 { gap: 1.5rem; }
.gap-12 { gap: 3rem; }
.gap-14 { gap: 3.5rem; }
.stack-6 > * + * { margin-top: 1.5rem; }
.stack-2 > * + * { margin-top: 0.5rem; }
.pt-3 { padding-top: 0; }
@media (min-width: 768px) {
  .wrap { padding-inline: 2.5rem; }
  .py-section { padding-block: 10rem; }
  .grid12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .span-3 { grid-column-end: span 3; }
  .span-4 { grid-column-end: span 4; }
  .span-5 { grid-column-end: span 5; }
  .span-6 { grid-column-end: span 6; }
  .span-7 { grid-column-end: span 7; }
  .start-7 { grid-column-start: 7; }
  .start-9 { grid-column-start: 9; }
  .pt-3 { padding-top: 0.75rem; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s, border-color 0.5s;
}
.site-header.is-solid {
  border-bottom-color: var(--steel);
  background: rgb(11 13 16 / 0.95);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto; height: 4rem; padding-inline: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-link { display: block; }
.nav-mark { height: 1.5rem; width: auto; }
.primary-nav { display: none; align-items: center; gap: 2.25rem; }
.primary-nav a { font-size: 0.875rem; line-height: 1.25rem; color: var(--slate); transition: color 0.15s; }
.primary-nav a:hover { color: var(--bone); }
.primary-nav .nav-cta {
  border: 1px solid var(--bone); padding: 0.625rem 1.25rem; font-weight: 500; color: var(--bone);
  transition: background-color 0.15s, color 0.15s;
}
.primary-nav .nav-cta:hover { background: var(--bone); color: var(--ink); }
.menu-toggle { position: relative; width: 2.75rem; height: 2.75rem; }
.menu-toggle .bar { position: absolute; left: 0.75rem; right: 0.75rem; height: 1px; background: var(--bone); transition: transform 0.3s; }
.menu-toggle .bar-1 { top: 18px; }
.menu-toggle .bar-2 { top: 26px; }
.menu-toggle[aria-expanded="true"] .bar-1 { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar-2 { transform: translateY(-4px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 4rem 0 auto 0; height: calc(100dvh - 4rem); background: var(--ink);
  padding: 2rem 1.25rem 2.5rem;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.5s var(--ease-out-expo), visibility 0s linear 0.5s;
}
.drawer.is-open { clip-path: inset(0 0 0% 0); visibility: visible; transition: clip-path 0.5s var(--ease-out-expo), visibility 0s; }
.drawer ul { display: flex; flex-direction: column; }
.drawer li { border-bottom: 1px solid var(--steel); }
.drawer li a { display: block; padding-block: 1.25rem; font-size: 1.875rem; line-height: 1.04; }
.drawer-cta { display: block; margin-top: 2rem; background: var(--bone); color: var(--ink); padding: 1rem 1.5rem; text-align: center; font-weight: 500; }

@media (min-width: 768px) {
  .header-inner { height: 5rem; padding-inline: 2.5rem; }
  .nav-mark { height: 1.75rem; }
  .primary-nav { display: flex; }
  .menu-toggle, .drawer { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-weight: 500; }
.btn-solid { background: var(--bone); color: var(--ink); padding: 1rem 1.75rem; transition: transform 0.3s; }
.btn-solid:hover { transform: translateY(-0.125rem); }
.btn-solid:active { transform: translateY(0); }
.btn-outline { border: 1px solid var(--steel); color: var(--bone); padding: 1rem 1.75rem; transition: border-color 0.3s; }
.btn-outline:hover { border-color: var(--bone); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; background: var(--ink);
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center;
}
.hero-field { position: absolute; inset: 0; z-index: -10; animation: fade-in 1.2s ease-out both; }
.neural { width: 100%; height: 100%; pointer-events: none; }
.hero-edge { position: absolute; top: 9%; z-index: 0; width: clamp(150px, 30vw, 460px); height: auto; }
.hero-edge-l { left: 0; }
.hero-edge-r { right: 0; }
.hero-content {
  position: relative; z-index: 10; width: 100%; max-width: 64rem; margin-inline: auto;
  padding: 7rem 1.25rem 4rem; text-align: center;
}
@media (min-width: 768px) { .hero-content { padding-top: 8rem; } }
.hero-lockup { margin-inline: auto; width: min(74vw, 440px); height: auto; }
.hero-title {
  margin-top: 2.5rem; font-size: clamp(2.25rem, 6.4vw, 5.75rem); font-weight: 600; line-height: 1; color: var(--bone);
}
@media (min-width: 768px) { .hero-title { margin-top: 3.5rem; } }
.hero-sub { margin: 2rem auto 0; max-width: 36rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--slate); }
@media (min-width: 768px) { .hero-sub { font-size: 1.25rem; line-height: 1.75rem; } }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* One-time load sequence: the headline compresses from expanded to set width. */
@keyframes settle {
  from { font-stretch: 125%; letter-spacing: 0.01em; opacity: 0; transform: translateY(0.35em); }
  to   { font-stretch: 100%; letter-spacing: -0.03em; opacity: 1; transform: none; }
}
.hero-line { display: block; animation: settle 1.5s var(--ease-out-expo) both; }
.hero-line:nth-child(2) { animation-delay: 0.18s; }

/* Luminous arc */
.arc-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -10; }
.arc-ring {
  position: absolute; right: -48vw; top: -26vw; width: 92vw; aspect-ratio: 1 / 1; border-radius: 9999px;
  border: 1px solid rgba(214, 226, 240, 0.14);
  box-shadow: inset -2px 2px 40px rgba(138, 151, 168, 0.18), -10px 10px 120px rgba(138, 151, 168, 0.08);
}
.arc-wash { position: absolute; inset: 0; background: radial-gradient(70% 60% at 100% 0%, rgba(138, 151, 168, 0.10), transparent 60%); }

/* ---------- Logo + circuit motion (CSS only, plays before JS) ---------- */
@keyframes wipe-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise-wipe {
  from { clip-path: inset(100% 0 0 0); transform: translateY(14px); }
  to   { clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes node-pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes pulse-run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(214, 226, 240, 0)); } 50% { filter: drop-shadow(0 0 7px rgba(214, 226, 240, 0.55)); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.dea-anim g { transform-box: fill-box; }
.dea-anim .dea-circuit { animation: wipe-x 1.1s var(--ease-out-expo) 1.1s both, glow 4.5s ease-in-out 3s infinite; }
.dea-anim .dea-d { animation: rise-wipe 0.9s var(--ease-out-expo) 1.45s both; }
.dea-anim .dea-e { animation: rise-wipe 0.9s var(--ease-out-expo) 1.6s both; }
.dea-anim .dea-a { animation: rise-wipe 0.9s var(--ease-out-expo) 1.75s both; }
.dea-anim .dea-text { animation: wipe-x 1.1s var(--ease-out-expo) 2s both; }

.edge { pointer-events: none; }
.edge-flip { transform: scaleX(-1); }
.edge-line { stroke-dasharray: 100; animation: draw 1.5s var(--ease-out-expo) calc(var(--d, 0.2s) + var(--i, 0) * 0.18s) both; }
.edge:not(.is-in) .edge-line { animation: none; stroke-dashoffset: 100; }
.edge-node { transform-box: fill-box; transform-origin: center; animation: node-pop 0.5s var(--ease-out-expo) calc(var(--d, 0.2s) + 1.1s + var(--i, 0) * 0.18s) both; }
.edge:not(.is-in) .edge-node { animation: none; opacity: 0; }
.pulse-line { stroke-dasharray: 6 94; opacity: 0; }
.edge.is-in .pulse-line { opacity: 0.95; animation: pulse-run 3.4s linear calc(var(--d, 0.2s) + 2s + var(--i, 0) * 0.9s) infinite; }

.float { animation: float 5s ease-in-out infinite; }
.spin-slow { transform-box: fill-box; transform-origin: center; animation: spin-slow 40s linear infinite; }
.hero-rise { animation: rise 1s var(--ease-out-expo) both; }

/* ---------- Light sections ---------- */
.on-light { scroll-margin-top: 4rem; }
#about, #process { scroll-margin-top: 4rem; }

/* ---------- Automation flow ---------- */
.flow { position: relative; background: var(--ink); height: 300vh; }
.flow-sticky {
  position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  height: 100vh; height: 100svh; padding-top: 5rem;
}
.wrap-flow { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.flow-head { display: grid; gap: 0.75rem; }
.flow-head h2 { font-size: clamp(1.75rem, 3.8vw, 3.5rem); }
.flow-hint { font-size: 0.875rem; line-height: 1.25rem; color: var(--slate-deep); }
.flow-caps { position: relative; margin-top: 1rem; height: 1.75rem; color: var(--slate); }
.flow-caps p { position: absolute; inset: 0; opacity: 0; }
.flow-stages { width: 100%; max-width: 1150px; margin: 0.5rem auto 0; padding-inline: 0.5rem; }
.flow-stages svg { width: 100%; }
.flow-stages .stage-d { display: none; max-height: 66vh; max-height: 66svh; }
.flow-stages .stage-m { display: block; margin-inline: auto; max-height: 62vh; max-height: 62svh; }
@media (min-width: 768px) {
  .flow { height: 280vh; }
  .wrap-flow { padding-inline: 2.5rem; }
  .flow-head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .flow-head h2 { grid-column: span 7; }
  .flow-hint { grid-column: 9 / span 4; }
  .flow-caps { margin-top: 1.5rem; }
  .flow-stages { padding-inline: 1.5rem; }
  .flow-stages .stage-d { display: block; }
  .flow-stages .stage-m { display: none; }
}
/* Reduced motion: still diagram, no pinning. */
.flow.is-static { height: auto; padding-block: 6rem; }
.flow.is-static .flow-sticky { position: static; height: auto; padding-top: 0; overflow: visible; }
.flow.is-static .flow-caps p { opacity: 0; }
.flow.is-static .flow-caps p:nth-child(2) { opacity: 1; }

/* ---------- Services ---------- */
.services { position: relative; overflow: hidden; background: var(--ink); }
.svc-edge { position: absolute; left: 0; top: 0.75rem; width: clamp(90px, 12vw, 170px); height: auto; opacity: 0.7; }
.sec-head { margin-bottom: 3.5rem; }
@media (min-width: 768px) { .sec-head { margin-bottom: 5rem; } }
.svc-list { border-top: 1px solid var(--steel); }
.svc-item { border-bottom: 1px solid var(--steel); }
.svc-btn { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; text-align: left; }
.svc-title { display: flex; align-items: baseline; gap: 1rem; }
.svc-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; align-self: center; color: var(--slate-deep); transition: color 0.3s; }
.svc-name { font-size: clamp(1.6rem, 3.6vw, 3.25rem); color: var(--slate-deep); transition: color 0.3s; }
.svc-item:hover .svc-name { color: var(--bone); }
.svc-item.is-open .svc-icon { color: var(--signal); }
.svc-item.is-open .svc-name { color: var(--bone); }
.svc-plus { position: relative; width: 0.75rem; height: 0.75rem; flex-shrink: 0; transition: transform 0.3s; }
.svc-item.is-open .svc-plus { transform: rotate(45deg); }
.svc-plus .h { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--slate); }
.svc-plus .v { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--slate); }
.svc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-out-expo); }
.svc-item.is-open .svc-panel { grid-template-rows: 1fr; }
.svc-clip { overflow: hidden; }
.svc-body { display: grid; gap: 1rem; padding-bottom: 2rem; }
.svc-sum { max-width: 32rem; }
.svc-out { max-width: 28rem; border-left: 1px solid var(--slate-deep); padding-left: 1.25rem; color: var(--bone); }
@media (min-width: 768px) {
  .svc-btn { padding-block: 2rem; }
  .svc-title { gap: 1.5rem; }
  .svc-icon { width: 1.75rem; height: 1.75rem; }
  .svc-body { grid-template-columns: repeat(12, minmax(0, 1fr)); padding-bottom: 2.5rem; }
  .svc-sum { grid-column: span 5; }
  .svc-out { grid-column: 8 / span 4; }
}

/* ---------- Work ---------- */
.work { background: var(--ink); scroll-margin-top: 4rem; }
.work-wrap { padding-block: 3rem; }
.work-head { margin-bottom: 2rem; }
@media (min-width: 768px) {
  .work-wrap { padding-top: 5rem; padding-bottom: 5rem; }
  .work-head { margin-bottom: 3.5rem; }
}
.panel { display: grid; align-items: stretch; gap: 2rem; border-top: 1px solid var(--steel); padding-block: 3.5rem; }
.panel-vis-wrap { min-width: 0; align-self: start; }
.panel-vis {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2);
  clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-out-expo);
}
.panel-vis-wrap.is-seen .panel-vis { clip-path: inset(0 0% 0 0); }
.panel-vis-in { width: 100%; height: 100%; padding: 1.5rem; transition: transform 0.7s var(--ease-out-expo); }
.panel-vis-in svg { width: 100%; height: 100%; }
.panel-vis:hover .panel-vis-in { transform: scale(1.04); }
.panel-tag {
  position: absolute; left: 1rem; top: 1rem; border: 1px solid var(--steel); background: var(--ink);
  padding: 0.25rem 0.75rem; font-size: 0.75rem; line-height: 1rem; color: var(--slate);
}
.panel-text { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.panel-title { margin-top: 0.5rem; font-size: clamp(1.75rem, 3vw, 2.75rem); }
.panel-dl { font-size: 0.95rem; }
.panel-dl > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; }
.panel-dl > div + div { margin-top: 1rem; }
.panel-dl dt { color: var(--slate); }
.panel-dl dd { color: var(--bone); }
.panel-dl dd.c-slate { color: var(--slate); }
@media (min-width: 768px) {
  .panel { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1rem; padding-block: 6rem; }
  .panel-vis-wrap { grid-column: span 7; }
  .panel-text { grid-column: span 5; }
  .panel-vis-wrap.flip-2 { order: 2; }
  .panel-text.flip-1 { order: 1; }
  .panel-vis-in { padding: 2.5rem; }
}
@media (min-width: 1024px) { .panel { column-gap: 2rem; } }

/* ---------- Process ---------- */
.proc-head { margin-bottom: 4rem; }
@media (min-width: 768px) { .proc-head { margin-bottom: 6rem; } }
.proc-body { position: relative; }
.proc-track { position: absolute; top: 0; bottom: 0; left: 7px; width: 1px; background: var(--rule-light); }
.proc-fill { width: 100%; height: 100%; transform-origin: top; transform: scaleY(0); background: var(--ink); }
#proc-list > li + li { margin-top: 4rem; }
.proc-item { position: relative; display: grid; gap: 0.75rem; padding-left: 2.5rem; }
.proc-dot { position: absolute; left: 0; top: 0.5rem; width: 1rem; height: 1rem; border: 1px solid var(--ink); background: var(--bone); }
.proc-name { font-size: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 768px) {
  .proc-track { left: calc(41.666% - 0.5px); }
  #proc-list > li + li { margin-top: 7rem; }
  .proc-item { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; padding-left: 0; }
  .proc-dot { left: calc(41.666% - 8px); }
  .proc-left { grid-column: span 5; padding-right: 4rem; text-align: right; }
  .proc-text { grid-column: 7 / span 5; padding-top: 1.75rem; }
}

/* ---------- Impact ---------- */
.impact-list { margin-top: 3.5rem; }
.impact-item { display: grid; gap: 0.5rem; border-top: 1px solid var(--steel); padding-block: 1.75rem; }
.impact-item h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
@media (min-width: 768px) {
  .impact-list { margin-top: 5rem; }
  .impact-item { grid-template-columns: repeat(12, minmax(0, 1fr)); padding-block: 2.25rem; }
  .impact-item h3 { grid-column: span 6; font-size: 1.5rem; line-height: 2rem; }
  .impact-item p { grid-column: 8 / span 5; }
}

/* ---------- About ---------- */
.mv { display: grid; gap: 2.5rem; border-top: 1px solid var(--rule-light); padding-top: 3rem; }
.mv-rule { display: none; background: var(--rule-light); }
@media (min-width: 768px) {
  .mv { grid-column: 1 / -1; margin-top: 1.5rem; grid-template-columns: 1fr 1px 1fr; gap: 3.5rem; }
  .mv-rule { display: block; }
}

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); scroll-margin-top: 4rem; }
.contact-field { position: absolute; inset: 0; z-index: -10; opacity: 0.6; }
.contact-arc { opacity: 0.6; }
.contact-edge { position: absolute; left: 0; top: 0.75rem; z-index: 0; width: clamp(90px, 12vw, 170px); height: auto; opacity: 0.7; }
.contact-grid { position: relative; z-index: 10; }
.contact-links { margin-top: 2.5rem; }
.contact-links li + li { margin-top: 0.5rem; }
.contact-links a { text-decoration: underline; text-underline-offset: 4px; }
.contact-links a:hover { color: var(--signal); }
.form > * + * { margin-top: 2rem; }
.f-row { display: grid; gap: 2rem; }
@media (min-width: 768px) { .f-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lbl { font-size: 0.875rem; line-height: 1.25rem; color: var(--slate); }
.field {
  display: block; width: 100%; border-bottom: 1px solid var(--steel); background: transparent; padding-block: 0.75rem; color: var(--bone);
}
.field::placeholder { color: var(--slate-deep); }
.field:focus { border-bottom-color: var(--bone); outline: 2px solid transparent; outline-offset: 2px; }
.field[aria-invalid="true"] { border-bottom-color: var(--signal); }
.field option { background: var(--ink); }
.resize-y { resize: vertical; }
.f-err { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--signal); }
.f-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding-top: 0.5rem; }
.f-trace { display: none; height: 1.5rem; width: 7rem; overflow: visible; }
.f-trace path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-out-expo); }
.f-trace.is-seen path { stroke-dashoffset: 0; }
@media (min-width: 640px) { .f-trace { display: block; } }
.btn-submit { padding: 1rem 2rem; }
.btn-submit:disabled { opacity: 0.6; }
.f-status { min-height: 1.5rem; font-size: 0.875rem; line-height: 1.25rem; }
.f-status p { color: var(--signal); }
.f-status a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--steel); background: var(--ink); }
.foot-edge { position: absolute; right: 0; top: 0; width: clamp(140px, 22vw, 320px); height: auto; opacity: 0.6; }
.foot-grid { position: relative; padding-block: 4rem; }
.foot-lockup { width: 14rem; height: auto; }
.foot-link { color: var(--slate); }
.foot-link:hover { color: var(--bone); }
.foot-social a { color: var(--slate); }
.foot-social a:hover { color: var(--bone); }
.foot-copy { position: relative; padding-bottom: 2.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--slate-deep); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-line { animation: none; font-stretch: 100%; letter-spacing: -0.03em; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .dea-anim *, .edge-line, .edge-node, .hero-rise { animation: none !important; }
  .edge-line { stroke-dashoffset: 0; }
  .edge:not(.is-in) .edge-line { stroke-dashoffset: 0; }
  .edge:not(.is-in) .edge-node { opacity: 1; }
  .pulse-line { animation: none !important; opacity: 0 !important; }
  .float, .spin-slow { animation: none !important; }
}
