/* ==========================================================================
   SEDSGA, LLC — Global stylesheet
   --------------------------------------------------------------------------
   1. Fonts            6. Header & navigation    11. Contact & prose
   2. Design tokens    7. Hero                   12. Footer
   3. Base             8. Page hero & TOC        13. Motion
   4. Layout           9. Service blocks         14. Utilities
   5. Components      10. Feature sections       15. Print
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* 2. Design tokens -------------------------------------------------------- */

:root {
  --bg: #050913;
  --bg-elev: #081021;
  --surface: #0b1528;
  --surface-2: #101d36;
  --line: rgba(148, 163, 184, 0.12);
  --line-strong: rgba(148, 163, 184, 0.22);
  --line-accent: rgba(96, 165, 250, 0.26);

  --text: #e7edf6;
  --text-strong: #f5f8fc;
  --text-muted: #a5b2c6;
  --text-dim: #8090a8;

  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-bright: #60a5fa;
  --cyan: #22d3ee;
  --accent-text: #7cc8ff;
  --accent-grad: linear-gradient(120deg, #60a5fa 0%, #22d3ee 100%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 72px;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

/* 3. Base ----------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

button {
  font: inherit;
}

::selection {
  background: rgba(37, 99, 235, 0.45);
  color: #fff;
}

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

/* 4. Layout --------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--alt {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(37, 99, 235, 0.07), transparent 70%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head > * + * {
  margin-top: 1.1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--2 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .split--top {
    align-items: start;
  }
}

/* 5. Components ----------------------------------------------------------- */

/* Typography */

.display {
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  font-weight: 720;
  line-height: 1.03;
  letter-spacing: -0.034em;
}

.h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
}

.h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  letter-spacing: -0.025em;
}

.h4 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(1.1rem, 1.55vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
}

.muted {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--accent-grad);
}

.section-head--center .eyebrow::after {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--accent-grad);
}

.text-gradient {
  background: linear-gradient(110deg, #93c5fd 0%, #60a5fa 35%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-link {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: rgba(124, 200, 255, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.text-link:hover {
  color: #bfe4ff;
  text-decoration-color: currentColor;
}

/* Icons */

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 12px;
  color: #8fd3ff;
  background:
    linear-gradient(160deg, rgba(37, 99, 235, 0.22), rgba(34, 211, 238, 0.06));
  border: 1px solid var(--line-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px -12px rgba(37, 99, 235, 0.6);
}

.icon-badge .icon {
  width: 1.4rem;
  height: 1.4rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background-color 0.25s, border-color 0.25s, color 0.25s;
}

.btn .icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(96, 165, 250, 0.35),
    0 12px 32px -12px rgba(37, 99, 235, 0.85);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(125, 211, 252, 0.55),
    0 16px 40px -12px rgba(37, 99, 235, 0.95);
}

.btn--ghost {
  color: var(--text);
  background: rgba(148, 163, 184, 0.06);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.5);
}

.btn--sm {
  min-height: 40px;
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-text);
  text-decoration: none;
}

.link-arrow .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* Tags */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.04);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.tag--accent {
  color: var(--accent-text);
  border-color: var(--line-accent);
  background: rgba(37, 99, 235, 0.08);
}

/* Cards */

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 29, 54, 0.7) 0%, rgba(8, 16, 33, 0.7) 100%);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

/* Gradient hairline border, revealed on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(96, 165, 250, 0.7), rgba(96, 165, 250, 0) 38%, rgba(34, 211, 238, 0) 62%, rgba(34, 211, 238, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s;
}

/* Pointer spotlight (position set by main.js) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.card--interactive:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.card--interactive:hover::before,
.card--interactive:hover::after {
  opacity: 1;
}

.card--interactive:has(.card__link:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.card__link {
  text-decoration: none;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.card__link:focus-visible {
  outline: none;
}

.card__title {
  margin-top: 1.4rem;
}

.card__text {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.card__footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Lists */

.check-list,
.dash-list,
.x-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.dash-list li,
.x-list li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.check-list li::before,
.x-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367e8f9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 62% no-repeat;
  border: 1px solid rgba(34, 211, 238, 0.32);
}

.x-list li::before {
  background: rgba(148, 163, 184, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 54% no-repeat;
  border-color: var(--line-strong);
}

.dash-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--accent-grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

.check-list--compact {
  gap: 0.55rem;
  font-size: 0.95rem;
}

/* Callout */

.callout {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius);
  background: rgba(34, 211, 238, 0.045);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.callout > .icon {
  margin-top: 0.15rem;
  color: var(--cyan);
}

.callout strong {
  color: var(--text);
  font-weight: 600;
}

.callout--neutral {
  border-color: var(--line-strong);
  background: rgba(148, 163, 184, 0.05);
}

.callout--neutral > .icon {
  color: var(--text-muted);
}

/* Table */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(8, 16, 33, 0.6);
}

.table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table caption {
  caption-side: bottom;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: left;
}

.table th,
.table td {
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(148, 163, 184, 0.04);
}

.table tbody th {
  font-weight: 600;
  color: var(--text);
}

.table td {
  color: var(--text-muted);
}

.table tbody tr:last-child > * {
  border-bottom: 0;
}

.table tbody tr {
  transition: background-color 0.2s;
}

.table tbody tr:hover {
  background: rgba(37, 99, 235, 0.05);
}

.code {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line-accent);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-text);
  background: rgba(37, 99, 235, 0.08);
}

/* Background grid (shared by hero, page hero and CTA) */

.bg-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 20%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 20%, #000 30%, transparent 100%);
}

.bg-grid::before {
  content: "";
  position: absolute;
  inset: -64px 0 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.075) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: grid-drift 18s linear infinite;
}

.bg-glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(700px 420px at 78% 18%, rgba(37, 99, 235, 0.22), transparent 70%),
    radial-gradient(520px 360px at 12% 0%, rgba(34, 211, 238, 0.08), transparent 70%);
}

/* 6. Header & navigation -------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #050913;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 9, 19, 0.8);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.brand__mark {
  width: 34px;
  height: 34px;
}

.brand__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-strong);
}

.brand__suffix {
  margin-left: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.nav__list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav__link:hover {
  color: var(--text-strong);
  background: rgba(148, 163, 184, 0.08);
}

.nav__link[aria-current="page"] {
  color: var(--text-strong);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: translateX(-50%);
}

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.06);
  color: var(--text);
  cursor: pointer;
}

.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav__toggle-bar {
  top: 50%;
}

.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: "";
  left: 0;
  margin-left: 0;
}

.nav__toggle-bar::before {
  transform: translateY(-6px);
}

.nav__toggle-bar::after {
  transform: translateY(6px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before {
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after {
  transform: rotate(-45deg);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__meta {
  display: none;
}

@media (max-width: 1079.98px) {
  .nav__toggle {
    display: inline-block;
  }

  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    padding: 1.5rem var(--gutter) 2.5rem;
    overflow-y: auto;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  /* backdrop-filter would make the header the containing block for the fixed menu */
  .site-header.is-open {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header.is-open .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
  }

  .nav__link:hover {
    background: none;
  }

  .nav__link[aria-current="page"] {
    color: var(--accent-text);
  }

  .nav__link[aria-current="page"]::after {
    left: auto;
    right: 0.25rem;
    top: 50%;
    bottom: auto;
    width: 6px;
    height: 6px;
    transform: translateY(-50%);
  }

  .nav__cta {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
  }

  .nav__meta {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
  }

  .nav-open,
  .nav-open body {
    overflow: hidden;
  }
}

/* 7. Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 4rem);
  align-items: center;
}

.hero__title {
  margin-top: 1.5rem;
}

.hero__lead {
  margin-top: 1.6rem;
}

.hero__actions {
  margin-top: 2.25rem;
}

.hero__focus {
  margin-top: clamp(2.75rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.hero__focus-label {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__visual {
  position: relative;
  width: min(100%, 540px);
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}

@media (max-width: 1023.98px) {
  .hero__visual {
    width: min(100%, 420px);
  }
}

/* Orbit illustration */

.orbit .ring {
  fill: none;
  stroke: rgba(148, 163, 184, 0.16);
  stroke-width: 1;
}

.orbit .ring--dashed {
  stroke: rgba(96, 165, 250, 0.35);
  stroke-dasharray: 2 10;
}

.orbit .ring--segment {
  stroke: rgba(34, 211, 238, 0.4);
  stroke-width: 1.5;
  stroke-dasharray: 70 22 6 22;
}

.orbit .ring--accent {
  stroke: url(#orbit-grad);
  stroke-width: 1.5;
}

.orbit .spin,
.orbit .spin-rev {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: spin 120s linear infinite;
}

.orbit .spin-rev {
  animation-duration: 80s;
  animation-direction: reverse;
}

.orbit .flow {
  fill: none;
  stroke: rgba(96, 165, 250, 0.55);
  stroke-width: 1.25;
  stroke-dasharray: 3 9;
  animation: flow 2.4s linear infinite;
}

.orbit .node-ring {
  fill: #0b1528;
  stroke: url(#orbit-grad);
  stroke-width: 1.5;
}

.orbit .node-core {
  fill: #67e8f9;
}

.orbit .halo {
  fill: none;
  stroke: rgba(34, 211, 238, 0.6);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 4s var(--ease) infinite;
}

.orbit .halo:nth-of-type(2) { animation-delay: 0.8s; }
.orbit .halo:nth-of-type(3) { animation-delay: 1.6s; }
.orbit .halo:nth-of-type(4) { animation-delay: 2.4s; }
.orbit .halo:nth-of-type(5) { animation-delay: 3.2s; }

.orbit .dot {
  fill: rgba(148, 163, 184, 0.55);
}

.orbit .label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  fill: #9fb3cf;
}

.orbit .label--core {
  fill: var(--accent-text);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.orbit .shield {
  fill: url(#orbit-shield);
  stroke: url(#orbit-grad);
  stroke-width: 0.45;
}

.orbit .shield-check {
  fill: none;
  stroke: #67e8f9;
  stroke-width: 0.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 8. Page hero & table of contents --------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.75rem, 7vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 4.75rem);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.page-hero__title {
  max-width: 18ch;
  margin-top: 1.25rem;
}

.page-hero__lead {
  margin-top: 1.5rem;
}

.page-hero__art {
  display: none;
}

@media (min-width: 1024px) {
  .page-hero__inner {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .page-hero__art {
    display: block;
    width: 320px;
    height: 320px;
  }
}

.page-hero__art .art-icon {
  fill: none;
  stroke: #8fd3ff;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(148, 163, 184, 0.4);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-text);
}

.breadcrumb [aria-current="page"] {
  color: var(--accent-text);
}

.page-hero .eyebrow {
  margin-top: 2rem;
}

.with-toc {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1080px) {
  .with-toc {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5.5rem);
  }

  .toc {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
    align-self: start;
  }
}

.toc__title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc__link {
  display: block;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.toc__link:hover {
  color: var(--text-strong);
  border-color: var(--line-strong);
}

@media (min-width: 1080px) {
  .toc__list {
    display: block;
    border-left: 1px solid var(--line);
  }

  .toc__link {
    margin-left: -1px;
    padding: 0.5rem 0 0.5rem 1.1rem;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    font-size: 0.9rem;
  }

  .toc__link:hover {
    border-left-color: var(--line-strong);
  }
}

.toc__link.is-active {
  color: var(--text-strong);
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
}

@media (min-width: 1080px) {
  .toc__link.is-active {
    background: none;
  }
}

/* 9. Service blocks ------------------------------------------------------- */

.service {
  padding-block: clamp(2.75rem, 5vw, 3.75rem);
  border-top: 1px solid var(--line);
}

.service:first-child {
  padding-top: 0;
  border-top: 0;
}

.service__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.service__index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.service__summary {
  max-width: 68ch;
  margin-top: 1rem;
  font-size: 1.075rem;
  color: var(--text-muted);
}

.service__cols {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .service__cols {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.panel {
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 21, 40, 0.55);
}

.panel--accent {
  border-color: rgba(96, 165, 250, 0.2);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.09), rgba(11, 21, 40, 0.45));
}

.panel__label {
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* 10. Feature sections ---------------------------------------------------- */

/* Policy ↔ configuration alignment */

.align-panel {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(37, 99, 235, 0.12), transparent 70%),
    rgba(8, 16, 33, 0.75);
  box-shadow: var(--shadow);
}

.align-panel__head {
  display: none;
}

.align-list {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.align-row {
  display: grid;
  gap: 0.6rem;
  align-items: stretch;
}

.align-cell {
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 29, 54, 0.6);
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.align-cell--config {
  border-color: rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.045);
  color: var(--text);
}

.align-tag {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.align-cell--config .align-tag {
  color: var(--accent-text);
}

.align-link {
  position: relative;
  display: grid;
  place-items: center;
  height: 1.75rem;
}

.align-link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.1), rgba(34, 211, 238, 0.6), rgba(96, 165, 250, 0.1));
}

.align-link span {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 50%;
  background: #08142a;
  color: #67e8f9;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.3);
}

.align-link .icon {
  width: 0.9rem;
  height: 0.9rem;
  stroke-width: 2.4;
}

.align-panel figcaption {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

@media (min-width: 640px) {
  .align-row {
    grid-template-columns: minmax(0, 1fr) 2.75rem minmax(0, 1fr);
    gap: 0;
  }

  .align-link {
    height: auto;
  }

  .align-link::before {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.15), rgba(34, 211, 238, 0.6), rgba(96, 165, 250, 0.15));
  }
}

/* Service overview cards */

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .check-list {
  margin-top: 1.5rem;
}

.service-card .card__footer {
  margin-top: auto;
  padding-top: 1.5rem;
}

.service-card .check-list + .card__footer {
  margin-top: 1.75rem;
}

.service-card__num {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2rem);
  right: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

/* Framework cards */

.framework__tag {
  margin-bottom: 1.25rem;
}

.framework .card__text {
  font-size: 0.97rem;
}

.disclaimer {
  margin-top: 2rem;
}

/* NIST CSF functions */

.csf {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .csf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .csf {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.csf__tile {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 29, 54, 0.65), rgba(8, 16, 33, 0.65));
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.csf__tile:hover {
  border-color: var(--line-accent);
  transform: translateY(-2px);
}

.csf__tile--govern {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.75rem 2rem;
  border-color: rgba(96, 165, 250, 0.3);
  background:
    linear-gradient(100deg, rgba(37, 99, 235, 0.16), rgba(34, 211, 238, 0.05) 70%),
    rgba(8, 16, 33, 0.65);
}

@media (min-width: 768px) {
  .csf__tile--govern {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
  }
}

.csf__code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent-text);
}

.csf__name {
  margin-top: 0.4rem;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}

.csf__desc {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.csf__tile--govern .csf__desc {
  margin-top: 0;
  font-size: 1rem;
}

.csf-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Process steps */

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.step {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 29, 54, 0.6), rgba(8, 16, 33, 0.6));
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-accent);
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-text);
}

.step__title {
  margin: 1rem 0 0.5rem;
  font-size: 1.15rem;
}

.step p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (min-width: 1080px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.6rem;
    right: calc(-1rem - 1px);
    width: 1rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.6), rgba(34, 211, 238, 0.6));
  }
}

/* Principles */

.principle {
  display: flex;
  gap: 1.1rem;
}

.principle__title {
  font-size: 1.12rem;
}

.principle p {
  margin-top: 0.45rem;
  font-size: 0.97rem;
  color: var(--text-muted);
}

/* Numbered philosophy list */

.philosophy {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.philosophy li {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .philosophy li {
    grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: baseline;
  }
}

.philosophy__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-text);
}

.philosophy__title {
  font-size: 1.2rem;
}

.philosophy p {
  color: var(--text-muted);
}

/* Fact list */

.facts {
  display: grid;
  gap: 0;
}

.facts div {
  display: grid;
  gap: 0.25rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.facts div:first-child {
  padding-top: 0;
}

.facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.facts dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.facts dd {
  color: var(--text);
}

/* Expertise tiles */

.expertise {
  padding: 1.5rem;
}

.expertise .h4 {
  margin-top: 1.1rem;
}

.expertise p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* CTA */

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2.25rem, 6vw, 4.25rem);
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(800px 320px at 10% 0%, rgba(37, 99, 235, 0.3), transparent 65%),
    radial-gradient(600px 300px at 100% 100%, rgba(34, 211, 238, 0.13), transparent 60%),
    #071026;
}

.cta-panel .bg-grid {
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 85% 50%, #000 10%, transparent 75%);
}

.cta-panel__text {
  max-width: 54ch;
  color: var(--text-muted);
}

.cta {
  padding-top: clamp(1rem, 3vw, 2.5rem);
}

.section--alt + .cta {
  padding-top: var(--section-y);
}

.cta-panel__actions {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.cta-panel__email {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cta-panel__email a {
  color: var(--accent-text);
  text-decoration: none;
}

.cta-panel__email a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 900px) {
  .cta-panel {
    grid-template-columns: minmax(0, 1.5fr) auto;
  }

  .cta-panel__actions {
    justify-items: end;
  }
}

/* 11. Contact & prose ----------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

.contact-card {
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.contact-card__email {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 1.25rem;
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
}

.contact-card__email:hover {
  color: #fff;
  background-size: 100% 1px;
}

.contact-card .btn-row {
  margin-top: 2rem;
}

.copy-status {
  min-height: 1.5em;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: #67e8f9;
}

.contact-meta {
  display: grid;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-meta p {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-meta .icon {
  color: var(--accent-text);
}

.next-steps {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
}

.next-steps li {
  position: relative;
  padding-left: 2.6rem;
  color: var(--text-muted);
  counter-increment: next;
}

.next-steps li::before {
  content: counter(next, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid var(--line-accent);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-text);
}

.next-steps strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.stack > * + * {
  margin-top: 1.25rem;
}

.prose {
  max-width: 74ch;
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose > h2 {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
}

.prose > h3 {
  margin-top: 2rem;
  font-size: 1.1rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose > ul {
  padding-left: 1.25rem;
}

.prose > ul li + li {
  margin-top: 0.5rem;
}

.prose li::marker {
  color: var(--accent-text);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

.policy-meta {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.summary-card {
  margin-bottom: 1rem;
}

.summary-card .panel__label {
  margin-bottom: 1.25rem;
}

.ref-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ref-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 21, 40, 0.55);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.ref-list a:hover {
  border-color: var(--line-accent);
  background: rgba(37, 99, 235, 0.07);
}

.ref-list small {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.ref-list .icon {
  color: var(--accent-text);
}

/* 12. Footer -------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-elev), #03060d);
}

.footer__top {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  }
}

.footer__about {
  max-width: 34ch;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer__heading {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer__list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.footer__list li {
  color: var(--text-muted);
}

.footer__list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__list a:hover {
  color: var(--text-strong);
}

.footer__bottom {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-dim);
}

@media (min-width: 900px) {
  .footer__bottom {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3rem;
  }

  .footer__disclaimer {
    text-align: right;
  }
}

/* 13. Motion -------------------------------------------------------------- */

@keyframes grid-drift {
  to { transform: translateY(64px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes flow {
  to { stroke-dashoffset: -24; }
}

@keyframes halo {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal--d1 { transition-delay: 0.08s; }
.js .reveal--d2 { transition-delay: 0.16s; }
.js .reveal--d3 { transition-delay: 0.24s; }

@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;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* 14. Utilities ----------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-sm {
  margin-top: 1rem;
}

.mt-lg {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.center {
  text-align: center;
}

/* 15. Print --------------------------------------------------------------- */

@media print {
  .site-header,
  .bg-grid,
  .bg-glow,
  .hero__visual,
  .page-hero__art,
  .toc,
  .cta {
    display: none !important;
  }

  body,
  .section--alt,
  .site-footer {
    background: #fff;
    color: #000;
  }

  h1, h2, h3, h4, p, li, dt, dd, th, td, a,
  .lead, .muted, .eyebrow, .text-gradient {
    color: #000 !important;
    -webkit-text-fill-color: #000;
    background: none !important;
  }

  .card,
  .panel,
  .callout {
    border-color: #ccc;
    background: none;
    box-shadow: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
