/* ==========================================================================
   Neural Atlas — shared stylesheet
   Self-contained: system fonts only, no remote fonts, images, or libraries.
   ========================================================================== */

:root {
  --bg: #0b0e14;
  --bg-raise: #0f1420;
  --surface: #131a29;
  --surface-2: #182136;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.32);
  --text: #e7ecf5;
  --body: #c7d0df;
  --muted: #9aa6b8;
  --faint: #6b7688;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --pink: #f471b5;
  --amber: #fbbf24;
  --grad: linear-gradient(120deg, #7c5cff, #22d3ee);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(3, 6, 14, 0.5);
  --maxw: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient glows behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(720px 480px at 8% -10%, rgba(124, 92, 255, 0.16), transparent 62%),
    radial-gradient(820px 560px at 96% 2%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(700px 600px at 50% 118%, rgba(244, 113, 181, 0.06), transparent 60%);
}

/* Faint blueprint grid, strongest near the top */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 95% 75% at 50% 0%, #000 30%, transparent 80%);
}

::selection { background: rgba(124, 92, 255, 0.38); color: #ffffff; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: #24304a; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

img, svg { max-width: 100%; vertical-align: middle; }
img { display: block; height: auto; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 750;
  color: var(--text);
}
h1 { font-size: clamp(2.35rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

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

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

main { display: block; padding-bottom: 24px; }

.section { padding-block: 54px; }

.section-head { max-width: 780px; margin-bottom: 34px; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.lede {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 66ch;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.74);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-accent {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.10);
  text-decoration: none;
}
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(124, 92, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.35);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-links a[aria-current="page"] { box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.35); }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.97rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(120deg, #6d4df6, #2563eb);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(93, 86, 246, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(93, 86, 246, 0.5); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(19, 26, 41, 0.6);
}
.btn-ghost:hover { border-color: rgba(148, 163, 184, 0.55); background: var(--surface-2); }

.btn-arrow { transition: transform 0.18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: 76px 58px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero h1 { max-width: 22ch; margin-bottom: 0.45em; }
.hero-lede { font-size: 1.17rem; color: var(--muted); max-width: 58ch; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-media { justify-self: end; width: min(100%, 440px); }
.hero-art { width: 100%; height: auto; display: block; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { display: none; }
}

.page-hero { padding-block: 72px 46px; }

/* Stat chips */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 52px;
}
.stat {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 26, 41, 0.9), rgba(15, 20, 32, 0.55));
}
.stat b {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat b em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stat-row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 920px) {
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 26, 41, 0.92), rgba(15, 20, 32, 0.92));
  color: var(--body);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
a.card { color: var(--body); }
a.card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 255, 0.32);
  background: rgba(124, 92, 255, 0.14);
  color: #b7a5ff;
}
.card-icon.cyan {
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.11);
  color: #7fe3f2;
}
.card-icon.pink {
  border-color: rgba(244, 113, 181, 0.32);
  background: rgba(244, 113, 181, 0.11);
  color: #f9a8d4;
}
.card-icon.amber {
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.10);
  color: #fcd34d;
}

.card-more {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cyan);
}

.path-kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

a.card:hover .card-more { text-decoration: underline; text-underline-offset: 3px; }

/* Mini cards */
.card.mini { padding: 20px; gap: 5px; }
.mini-icon { color: var(--cyan); }
.mini-title {
  font-weight: 750;
  color: var(--text);
  font-size: 1.02rem;
  transition: color 0.15s ease;
}
a.card.mini:hover .mini-title { color: var(--cyan); }
.mini-text { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Callouts, steps, lists
   -------------------------------------------------------------------------- */
.callout {
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid rgba(124, 92, 255, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.12), rgba(34, 211, 238, 0.07));
}
.callout p { margin: 0; color: var(--text); }
.callout-tag {
  margin-bottom: 6px !important;
  font-size: 0.7rem !important;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b7a5ff !important;
}
.callout.warn {
  border-color: rgba(251, 191, 36, 0.42);
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.10), rgba(251, 191, 36, 0.04));
}
.callout.warn .callout-tag { color: var(--amber) !important; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 26px 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 22px 18px 66px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #0b0e14;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 800;
}
.steps li b { display: block; margin-bottom: 2px; color: var(--text); }
.steps li p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.ticks { list-style: none; margin: 16px 0 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
  color: var(--muted);
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--grad);
}
.ticks b { color: var(--text); }

.flow {
  margin: 22px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: nowrap;
}
.flow em { font-style: normal; color: var(--cyan); }

/* --------------------------------------------------------------------------
   Prose, figures, tables, glossary
   -------------------------------------------------------------------------- */
.prose { max-width: 78ch; }
.prose p { color: var(--body); }

figure { margin: 34px 0; }
figure img { margin-inline: auto; }
figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--faint);
  font-size: 0.87rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.94rem;
}
caption {
  padding: 16px 18px 4px;
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
}
th, td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
thead th {
  border-top: 0;
  background: rgba(34, 211, 238, 0.06);
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
tbody tr:nth-child(odd) { background: rgba(148, 163, 184, 0.04); }
td:first-child { font-weight: 700; color: var(--text); white-space: nowrap; }
td { color: var(--muted); }

.terms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0;
}
@media (max-width: 760px) { .terms { grid-template-columns: 1fr; } }
.terms > div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.terms dt {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
  font-weight: 750;
  color: var(--text);
}
.terms dt::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--grad);
}
.terms dd { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Domain sections on the applications page */
.domain {
  margin-bottom: 18px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(19, 26, 41, 0.55);
}
.domain:last-child { margin-bottom: 0; }
.domain h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.32rem;
}
.domain h2 svg { flex: none; color: var(--cyan); }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; margin-top: 40px; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--violet), var(--cyan) 62%, transparent);
}

.t-era { padding-left: 0; margin: 46px 0 18px; }
.t-era:first-child { margin-top: 0; }
.t-era .era-note { color: var(--muted); max-width: 68ch; margin-top: -6px; }

.timeline ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }

.t-item { position: relative; }
.t-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}
.t-year {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 12px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.09);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.t-item h3 { margin-bottom: 5px; font-size: 1.07rem; }
.t-item p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 70ch; }
.t-item p .cite { color: var(--faint); font-size: 0.86rem; }

/* --------------------------------------------------------------------------
   Prev / next page navigation
   -------------------------------------------------------------------------- */
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 56px 0 6px;
}
.page-nav a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.page-nav a:hover {
  text-decoration: none;
  border-color: rgba(124, 92, 255, 0.5);
  transform: translateY(-2px);
}
.page-nav a.next { align-items: flex-end; text-align: right; grid-column: 2; }
.pn-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.pn-title { font-weight: 750; color: var(--text); }
.pn-title span { color: var(--cyan); }
@media (max-width: 560px) {
  .page-nav { grid-template-columns: 1fr; }
  .page-nav a.next { grid-column: auto; align-items: flex-start; text-align: left; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 20, 32, 0.6), rgba(11, 14, 20, 0.92));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 36px;
  padding-block: 44px 30px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
.site-footer h3 {
  margin-bottom: 14px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-blurb { color: var(--muted); font-size: 0.94rem; max-width: 46ch; }
.footer-note { margin-top: 14px; color: var(--faint); font-size: 0.84rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer li { color: var(--muted); font-size: 0.93rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.84rem;
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.notfound-wrap {
  min-height: 56vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: 60px;
}
.notfound-code {
  margin: 0 0 6px;
  font-size: clamp(5.5rem, 17vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.notfound-wrap h1 { margin-bottom: 0.4em; }
.notfound-wrap > p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.notfound-meta {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (only when JS is present and motion is allowed)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

.js .card-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.js .card-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.js .card-grid .reveal:nth-child(4) { transition-delay: 0.21s; }
.js .card-grid .reveal:nth-child(5) { transition-delay: 0.28s; }
.js .card-grid .reveal:nth-child(6) { transition-delay: 0.35s; }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-media { animation: drift 9s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, a.card:hover, .page-nav a:hover { transform: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
