/* ==========================================================================
   Soteric Cyber LLC — site styles
   Design tokens first, then layout, then components, then page sections.
   ========================================================================== */

:root {
  /* Brand palette, pulled from the logo */
  --navy-950: #050a18;
  --navy-900: #070d1f;
  --navy-850: #0a1329;
  --navy-800: #0e1a36;
  --navy-700: #142b52;
  --cyan-300: #67e8f9;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;

  --bg: var(--navy-950);
  --bg-alt: var(--navy-900);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(125, 211, 252, 0.16);
  --border-strong: rgba(125, 211, 252, 0.34);

  --text: #e8eefc;
  --text-muted: #9db0d0;
  --text-dim: #6f83a6;
  --accent: var(--cyan-400);
  --accent-soft: rgba(34, 211, 238, 0.14);

  --grad-accent: linear-gradient(120deg, #a5f3fc 0%, #22d3ee 45%, #3b82f6 100%);
  --glow: 0 0 40px rgba(34, 211, 238, 0.25);

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --header-h: 76px;
}

/* --------------------------------------------------------------- reset -- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------- backdrop -- */
/* Three fixed layers, all well under the text. Everything is drawn in the
   brand cyan at single-digit opacity: legible as texture when you look for it,
   invisible when you're reading.

   ::before  colour field — four light sources over the base gradient
   ::after   texture — circuit traces, then the hex grid on top
   .bg-net   a neural-net constellation anchored to the top right             */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 620px at 78% -8%, rgba(34, 211, 238, 0.17), transparent 62%),
    radial-gradient(760px 560px at 6% 12%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(820px 640px at 92% 72%, rgba(14, 165, 233, 0.1), transparent 66%),
    radial-gradient(700px 520px at 12% 96%, rgba(56, 189, 248, 0.08), transparent 64%),
    linear-gradient(180deg, #070d1f 0%, #050a18 55%, #070f22 100%);
}

/* Circuit traces (240px tile) under a hex grid (56x97 tile). Two tiles at
   different scales stop either one reading as an obvious repeat. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16Z' fill='none' stroke='%2338bdf8' stroke-opacity='.13' stroke-width='1'/%3E%3Cpath d='M28 64 56 80v32L28 128 0 112V80Z' fill='none' stroke='%2338bdf8' stroke-opacity='.13' stroke-width='1'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='none' stroke='%2367e8f9' stroke-opacity='.09'%3E%3Cpath d='M0 48h72l28 28h60l24-24h56'/%3E%3Cpath d='M240 186h-84l-26-26H62l-22 22H0'/%3E%3Cpath d='M48 0v58l26 26v70l-22 22v64'/%3E%3Cpath d='M192 240v-52l-26-26V88l22-22V0'/%3E%3C/g%3E%3Cg fill='%2367e8f9' fill-opacity='.16'%3E%3Ccircle cx='72' cy='48' r='2.2'/%3E%3Ccircle cx='160' cy='76' r='2.2'/%3E%3Ccircle cx='156' cy='186' r='2.2'/%3E%3Ccircle cx='62' cy='160' r='2.2'/%3E%3Ccircle cx='48' cy='58' r='1.6'/%3E%3Ccircle cx='192' cy='188' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 97px, 240px 240px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.22) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.22) 100%);
  opacity: 0.55;
}

/* Neural-net motif: nodes and edges, drifting slowly enough to read as depth
   rather than movement. Injected once per page in the markup. */
.bg-net {
  position: fixed;
  top: -6vh;
  right: -8vw;
  width: min(1100px, 88vw);
  aspect-ratio: 3 / 2;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mask-image: radial-gradient(closest-side, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 78%);
  animation: drift 42s ease-in-out infinite alternate;
}
.bg-net--low {
  top: auto;
  right: auto;
  bottom: -14vh;
  left: -10vw;
  width: min(880px, 76vw);
  opacity: 0.32;
  animation-duration: 56s;
  animation-direction: alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2.2%, 1.8%, 0) scale(1.05); }
}

/* height:auto lets the intrinsic ratio drive the height whenever CSS changes the
   width. Without it the HTML height attribute stays in force as a presentational
   hint and the image is stretched. The width/height attributes still supply the
   aspect ratio up front, so nothing shifts while the image loads. */
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; display: block; }

a { color: var(--cyan-300); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; color: var(--text-muted); }

:focus-visible {
  outline: 2px solid var(--cyan-300);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan-400);
  color: #041018;
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #041018; }

/* -------------------------------------------------------------- layout -- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(10, 19, 41, 0.75) 12%, rgba(10, 19, 41, 0.75) 88%, transparent); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.05rem; margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-300);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--grad-accent);
}
.section-head--center .eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--grad-accent);
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid--2 { grid-template-columns: 1fr; } }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--grad-accent);
  color: #04121c;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.28);
}
.btn--primary:hover { color: #04121c; box-shadow: 0 14px 38px rgba(34, 211, 238, 0.42); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-strong); border-color: var(--cyan-400); color: #fff; }

.btn--sm { padding: 10px 20px; font-size: 0.9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* -------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 10, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(5, 10, 24, 0.92);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img {
  width: 44px;
  height: auto;
  filter:
    drop-shadow(0 0 3px rgba(165, 243, 252, 0.6))
    drop-shadow(0 0 10px rgba(34, 211, 238, 0.5));
  transition: filter 0.25s ease;
}
.brand:hover img {
  filter:
    drop-shadow(0 0 4px rgba(165, 243, 252, 0.85))
    drop-shadow(0 0 16px rgba(34, 211, 238, 0.7));
}

/* Standalone mark, e.g. the about page's practitioner card. */
.mark-glow {
  filter:
    drop-shadow(0 0 5px rgba(165, 243, 252, 0.5))
    drop-shadow(0 0 18px rgba(34, 211, 238, 0.45));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  color: var(--text-dim);
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav a:hover { color: #fff; background: var(--surface); }
.nav a[aria-current="page"] { color: #fff; background: var(--accent-soft); }
/* The nav-link colour rule above outranks .btn--primary, so restate it here. */
.nav a.btn--primary,
.nav a.btn--primary:hover { color: #04121c; background: var(--grad-accent); }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.22s, opacity 0.22s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(7, 13, 31, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 12px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------------------------------------------------------------- hero -- */

.hero { position: relative; padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .btn-row, .hero .badge-row { justify-content: center; }
  .hero-art { order: -1; max-width: 340px; margin-inline: auto; }
}

.hero h1 { margin-bottom: 22px; }
.hero-lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); max-width: 56ch; }
@media (max-width: 900px) { .hero-lede { margin-inline: auto; } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

/* The shield artwork carries no glow of its own, so it is built here in three
   layers: a tight white-cyan rim, a mid cyan bloom, and a wide blue spill.
   Stacked drop-shadows follow the alpha channel, so the light hugs the shield's
   silhouette rather than boxing it. */
.hero-art { position: relative; }
.hero-art picture { display: block; }
.hero-art img {
  width: 100%;
  filter:
    drop-shadow(0 0 8px rgba(165, 243, 252, 0.55))
    drop-shadow(0 0 26px rgba(34, 211, 238, 0.5))
    drop-shadow(0 0 64px rgba(59, 130, 246, 0.4))
    drop-shadow(0 26px 54px rgba(3, 10, 26, 0.75));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  50% { transform: translateY(-14px); }
}
/* Ambient bloom behind the mark. Breathing this rather than the filter keeps the
   animation on compositor-friendly properties. */
.hero-art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: bloom 6.5s ease-in-out infinite alternate;
  background:
    radial-gradient(circle, rgba(165, 243, 252, 0.16), transparent 38%),
    radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 62%);
}
@keyframes bloom {
  from { opacity: 0.72; transform: translate(-50%, -50%) scale(0.94); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

/* --------------------------------------------------------------- cards -- */

.card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 0.22s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}
.card:hover::before { opacity: 1; }
.card h3 { color: #fff; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--cyan-300);
}
.card-icon svg { width: 24px; height: 24px; }

.card-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
  color: var(--text-muted);
}
.card-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--grad-accent);
}

.card--featured { border-color: var(--border-strong); background: var(--surface-strong); }
.card--featured::before { opacity: 1; }

.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-300);
}

/* ---------------------------------------------------------- stats/steps -- */

.stat { text-align: center; padding: 22px 12px; }
.stat-num {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.steps { counter-reset: step; }
.step {
  position: relative;
  padding: 26px 26px 26px 78px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 26px;
  top: 24px;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { margin-bottom: 8px; color: #fff; }
.step p { margin-bottom: 0; font-size: 0.95rem; }

/* ------------------------------------------------------------ callouts -- */

.panel {
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 200px at 80% 0%, rgba(34, 211, 238, 0.13), transparent 70%),
    rgba(10, 19, 41, 0.72);
}

.cta {
  text-align: center;
  padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 56px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 260px at 50% 0%, rgba(34, 211, 238, 0.18), transparent 68%),
    linear-gradient(180deg, rgba(14, 26, 54, 0.9), rgba(7, 13, 31, 0.9));
  box-shadow: var(--glow);
}
.cta h2 { margin-bottom: 14px; }
.cta p { max-width: 58ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 26px; }

/* ---------------------------------------------------------------- misc -- */

.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--text-muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 6px;
  height: 10px;
  border: solid var(--cyan-300);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.faq { border-top: 1px solid var(--border); }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  color: var(--text);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cyan-300);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-right: 40px; margin-bottom: 18px; }

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* -------------------------------------------------------------- footer -- */

.site-footer {
  margin-top: 40px;
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: rgba(5, 10, 24, 0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.94rem; }
.footer-links a:hover { color: var(--cyan-300); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------- forms -- */

.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(5, 10, 24, 0.7);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}
.field select { appearance: none; cursor: pointer; }
.field-hint { margin: 8px 0 0; font-size: 0.82rem; color: var(--text-dim); }

.form-note {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.form-note--error {
  border-color: rgba(248, 180, 120, 0.42);
  background: rgba(248, 180, 120, 0.1);
  color: #f4d8bd;
}
.form-note--error a { color: #ffd9a8; text-decoration: underline; }
.form-note--error a:hover { color: #fff; }

/* -------------------------------------------------------- 404 + reveal -- */

.center-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-art::after { opacity: 0.9; transform: translate(-50%, -50%); }
  .bg-net { transform: none; }
}

/* ======================================================================
   Utilities
   These exist so no element needs a style attribute. That is what lets the
   Content-Security-Policy drop 'unsafe-inline' from style-src: with it, an
   HTML injection could style the page — overlay a fake form, hide the real
   one, or exfiltrate data through attribute selectors. Keep this file as the
   only source of styling; adding one style="" attribute anywhere breaks the
   policy and the page silently loses that styling.
   ====================================================================== */

.u-mb0 { margin-bottom: 0; }
.u-mb4 { margin-bottom: 4px; }
.u-mb16 { margin-bottom: 16px; }
.u-mt8 { margin-top: 8px; }
.u-mt16 { margin-top: 16px; }
.u-mt20 { margin-top: 20px; }
.u-mt24 { margin-top: 24px; }
.u-mt40 { margin-top: 40px; }
.u-my32 { margin: 32px 0; }

.u-fs-sm { font-size: 0.94rem; }
.u-fs-base { font-size: 1rem; }
.u-fs-md { font-size: 1.4rem; }
.u-fs-lg { font-size: 1.5rem; }

.u-center { justify-content: center; }
.u-col-760 { max-width: 760px; margin-inline: auto; }
.u-col-820 { max-width: 820px; margin-inline: auto; }
.u-col-860 { max-width: 860px; }
.u-measure-44 { max-width: 44ch; margin-inline: auto; }
.u-measure-48 { max-width: 48ch; margin-inline: auto; }

.section--lead { padding-top: clamp(48px, 7vw, 80px); }
.section--tail { padding-bottom: clamp(56px, 8vw, 88px); }

.h-page { font-size: clamp(2rem, 5vw, 3rem); }
.h-panel { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.h-panel-sm { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.h-404 { font-size: clamp(3rem, 10vw, 6rem); margin-bottom: 8px; }

.grid--gap40-top { gap: 40px; align-items: start; }
.grid--gap48-top { gap: 48px; align-items: start; }
.grid--center40 { align-items: center; gap: 40px; }

.card-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.card-subtitle { margin: 0; font-size: 0.92rem; color: var(--text-dim); }
.badge-row--in-card { margin: 22px 0 4px; }
.footer-blurb { max-width: 34ch; font-size: 0.93rem; }
.footer-bottom--bare { margin-top: 0; border-top: 0; }
