@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #06030b;
  --panel: #0c0715;
  --panel-2: #140b22;
  --line: rgba(164, 90, 247, 0.18);
  --line-strong: rgba(164, 90, 247, 0.38);
  --text: #f4edff;
  --dim: #b6a5cc;
  --dim-2: #8b7aa2;
  --pink: #ff3fa8;
  --violet: #a45af7;
  --cyan: #5fe3ff;
  --grad: linear-gradient(96deg, #ff5bc0 0%, #a45af7 52%, #7f8bff 100%);
  --btn-grad: linear-gradient(100deg, #d81b8c, #7b3fe4);
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 640px at 8% -8%, rgba(164, 90, 247, 0.22), transparent 62%),
    radial-gradient(900px 560px at 96% 2%, rgba(95, 227, 255, 0.1), transparent 62%),
    radial-gradient(1000px 720px at 55% 106%, rgba(216, 27, 140, 0.16), transparent 66%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(164, 90, 247, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164, 90, 247, 0.1) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 100% 72% at 50% 0%, #000 12%, transparent 76%);
  mask-image: radial-gradient(ellipse 100% 72% at 50% 0%, #000 12%, transparent 76%);
  opacity: 0.55;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav, main, .footer { position: relative; z-index: 1; }

::selection { background: rgba(216, 27, 140, 0.45); color: #fff; }

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

img { max-width: 100%; height: auto; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: #ecd9ff;
  background: rgba(164, 90, 247, 0.14);
  border: 1px solid rgba(164, 90, 247, 0.18);
  padding: 0.08em 0.38em;
  border-radius: 5px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────────────────────── nav ───────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 3, 11, 0.72);
  border-bottom: 1px solid rgba(164, 90, 247, 0.14);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 22px -6px rgba(216, 27, 140, 0.85);
  flex: none;
}

.brand-name {
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.015em;
}

.brand-ver {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #8ff0ff;
  border: 1px solid rgba(95, 227, 255, 0.3);
  background: rgba(95, 227, 255, 0.07);
  padding: 4px 6px;
  border-radius: 5px;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 26px;
}

.nav-links a {
  position: relative;
  color: var(--dim);
  font-size: 13.6px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan));
  animation: progress linear both;
  animation-timeline: scroll(root block);
}

@keyframes progress { to { transform: scaleX(1); } }

/* ───────────────────────── buttons ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease,
    background-color 0.25s ease, border-color 0.25s ease, color 0.2s ease;
}

.btn:active { transform: translateY(1px) scale(0.995); }

.btn-primary {
  color: #fff;
  background: var(--btn-grad);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 40px -14px rgba(216, 27, 140, 0.9),
    0 0 0 1px rgba(164, 90, 247, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 20px 52px -16px rgba(216, 27, 140, 1),
    0 0 34px -8px rgba(164, 90, 247, 0.7);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(164, 90, 247, 0.12);
  border-color: rgba(164, 90, 247, 0.6);
}

.btn-sm { padding: 11px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 17px 28px; font-size: 16px; border-radius: 14px; }

.btn-i {
  font-size: 1.05em;
  opacity: 0.85;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover .btn-i { transform: translateY(2px); }

/* ───────────────────────── hero ───────────────────────── */

.hero { padding: 54px 0 88px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9b2e8;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px 1px rgba(255, 63, 168, 0.9);
  animation: pulse 2.8s ease-in-out infinite;
}

.dot-cyan {
  background: var(--cyan);
  box-shadow: 0 0 12px 1px rgba(95, 227, 255, 0.8);
  animation-duration: 3.4s;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.h1 {
  margin-top: 22px;
  font-size: clamp(2.7rem, 5.8vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 700;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 34px rgba(164, 90, 247, 0.4));
}

.lede {
  margin-top: 24px;
  max-width: 44ch;
  color: var(--dim);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.66;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-shot {
  position: relative;
  isolation: isolate;
  width: 112%;
  margin-right: -9%;
  perspective: 1400px;
}

.shot-glow {
  position: absolute;
  inset: -14% -10% -20% -14%;
  z-index: 0;
  border-radius: 40%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(216, 27, 140, 0.5),
      rgba(124, 63, 228, 0.3) 48%, transparent 74%);
  filter: blur(44px);
  pointer-events: none;
}

.shot-frame {
  position: relative;
  z-index: 1;
  padding: 8px;
  border: 1px solid rgba(196, 118, 255, 0.36);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(28, 15, 45, 0.96), rgba(9, 4, 16, 0.98));
  box-shadow: 0 44px 96px -44px rgba(0, 0, 0, 0.95), 0 0 64px -22px rgba(164, 90, 247, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: rotate(-1.7deg) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.shot-img {
  display: block;
  width: 100%;
  border-radius: 13px;
  background: #0a0413;
}

.shot-cap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 5px 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #b79ad3;
}

/* ───────────────────────── ticker ───────────────────────── */

.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(216, 27, 140, 0.07), rgba(164, 90, 247, 0.05), rgba(95, 227, 255, 0.06));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: slide 52s linear infinite;
}

.ticker-set { display: flex; }

.ticker-set span {
  position: relative;
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: #c9b5e2;
  white-space: nowrap;
}

.ticker-set span::after {
  content: "◆";
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 7px;
  color: rgba(164, 90, 247, 0.6);
}

@keyframes slide { to { transform: translateX(-50%); } }

/* ───────────────────────── sections ───────────────────────── */

.section { padding: 104px 0; }

.sec-head { max-width: 720px; margin-bottom: 46px; }

.sec-title {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 700;
}

.sec-sub {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--dim);
  font-size: 1.01rem;
  line-height: 1.68;
}

.big-shot {
  padding: 7px;
  border: 1px solid rgba(190, 110, 255, 0.28);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(24, 13, 38, 0.9), rgba(9, 4, 16, 0.95));
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, 0.9), 0 0 90px -50px rgba(164, 90, 247, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.big-shot img { display: block; width: 100%; border-radius: 16px; }

.big-shot figcaption {
  padding: 13px 8px 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a58bc1;
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.proof-item {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.proof-num {
  display: block;
  font-size: clamp(1.9rem, 3.1vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(96deg, #fff, #d7b9ff 60%, #a45af7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.proof-label {
  display: block;
  margin-top: 12px;
  max-width: 30ch;
  color: var(--dim);
  font-size: 13.6px;
  line-height: 1.6;
}

/* ───────────────────────── bento ───────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(24, 13, 38, 0.82), rgba(12, 6, 20, 0.9));
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  opacity: 0.6;
}

.cell:hover {
  border-color: rgba(164, 90, 247, 0.46);
  transform: translateY(-2px);
}

.cell-lg {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-end;
  min-height: 388px;
  padding: 28px;
}

.cell-wide { grid-column: span 2; }

.ring {
  position: absolute;
  right: -84px;
  bottom: -104px;
  width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 200deg, transparent 0 32%, rgba(255, 63, 168, 0.8) 40%,
      rgba(164, 90, 247, 0.55) 48%, transparent 58% 100%);
  -webkit-mask-image: radial-gradient(closest-side, transparent 76%, #000 77%);
  mask-image: radial-gradient(closest-side, transparent 76%, #000 77%);
  opacity: 0.6;
  animation: spin 28s linear infinite;
  pointer-events: none;
}

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

.cell-title {
  position: relative;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.cell-body {
  position: relative;
  margin-top: 9px;
  max-width: 46ch;
  color: var(--dim);
  font-size: 14.2px;
  line-height: 1.62;
}

.cell-foot {
  position: relative;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim-2);
}

.chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.chip,
.chips li {
  padding: 8px 11px;
  border: 1px solid rgba(164, 90, 247, 0.28);
  border-radius: 999px;
  background: rgba(164, 90, 247, 0.07);
  color: #cdb9e6;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.chips-split { gap: 10px; margin-top: 22px; }

.chip-solid {
  border-color: transparent !important;
  background: var(--btn-grad) !important;
  color: #fff !important;
}

.chip-cyan {
  border-color: rgba(95, 227, 255, 0.35) !important;
  background: rgba(95, 227, 255, 0.09) !important;
  color: #8ff0ff !important;
}

.chips-mono li { min-width: 40px; text-align: center; font-size: 12px; letter-spacing: 0.03em; }

.term {
  position: relative;
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid rgba(164, 90, 247, 0.4);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.95;
  overflow-x: auto;
}

.term-line { display: flex; gap: 10px; white-space: nowrap; }
.term-line span { min-width: 206px; color: #e8dcff; }
.term-line i { font-style: normal; color: var(--pink); }
.term-line b { font-weight: 400; color: #8ff0ff; }

.cell-stat { justify-content: space-between; gap: 22px; }

.stats { display: grid; gap: 8px; position: relative; }

.stats > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  border-top: 1px solid rgba(164, 90, 247, 0.16);
}

.stats dt {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim-2);
}

.stats dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.4;
  color: #e6d9f7;
  text-align: right;
}

/* ───────────────────────── steps ───────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step { padding-top: 22px; border-top: 1px solid var(--line-strong); }

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.step h3 { margin-top: 14px; font-size: 1.04rem; font-weight: 600; letter-spacing: -0.012em; }

.step p { margin-top: 10px; color: var(--dim); font-size: 14.2px; line-height: 1.62; }

.root-note {
  margin-top: 42px;
  padding: 20px 22px;
  border: 1px dashed rgba(164, 90, 247, 0.32);
  border-radius: 14px;
  color: var(--dim);
  font-size: 14.4px;
  line-height: 1.6;
}

.root-note span { color: var(--text); font-weight: 600; }

/* ───────────────────────── download ───────────────────────── */

.dl-card {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(190, 110, 255, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(216, 27, 140, 0.22), transparent 56%),
    radial-gradient(120% 150% at 100% 0%, rgba(124, 63, 228, 0.3), transparent 56%),
    linear-gradient(180deg, rgba(20, 11, 34, 0.95), rgba(10, 5, 17, 0.98));
  box-shadow: 0 50px 110px -60px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.dl-main { display: flex; align-items: center; gap: 20px; }

.dl-icon {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px -18px rgba(216, 27, 140, 0.9);
}

.dl-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.dl-name { margin-top: 8px; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.028em; }

.dl-meta { margin-top: 9px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--dim); }

.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.dl-old {
  color: var(--dim);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(164, 90, 247, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.dl-old:hover { color: var(--text); border-color: var(--pink); }

.dl-hash { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; color: #7e6c93; }
.dl-hash span { color: #a894c0; }

.prereq {
  margin-top: 16px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 8, 24, 0.9), rgba(9, 4, 16, 0.9));
}

.prereq-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.prereq h3 { font-size: 1.04rem; font-weight: 600; }

.prereq p { margin-top: 12px; max-width: 80ch; color: var(--dim); font-size: 14.2px; line-height: 1.66; }

.prereq-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px; margin-top: 16px; }

.link {
  display: inline-flex;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(164, 90, 247, 0.5);
  color: #dcc6ff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link:hover { color: #fff; border-color: var(--pink); }

.prereq-size { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; color: #7e6c93; }

.warn {
  margin-top: 16px !important;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 63, 168, 0.5);
  color: #c7b4dd !important;
  font-size: 13.4px !important;
}

/* ───────────────────────── notes ───────────────────────── */

.section-tight { padding: 0 0 104px; }

.notes-title { margin-bottom: 28px; font-size: clamp(1.28rem, 2.2vw, 1.6rem); letter-spacing: -0.022em; color: #ecdefd; }

.notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }

.note h3 { font-size: 13.8px; font-weight: 600; color: #f0e6ff; }
.note p { margin-top: 9px; color: var(--dim-2); font-size: 13.2px; line-height: 1.62; }

/* ───────────────────────── footer ───────────────────────── */

.footer { padding: 30px 0 44px; border-top: 1px solid var(--line); }

.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }

.footer .brand-mark { width: 28px; height: 28px; border-radius: 9px; }

.footer-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7e6c93;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--dim); font-size: 13px; text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text); }

/* ───────────────────────── reveal ───────────────────────── */

/* only hide when JS is running, so a failed script never blanks the page */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ───────────────────────── responsive ───────────────────────── */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-shot { width: 100%; margin: 0; }
  .shot-frame { transform: none; }
  .hero { padding: 40px 0 72px; }
  .lede { max-width: 52ch; }
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .nav .btn { margin-left: auto; }
  .section { padding: 76px 0; }
  .section-tight { padding: 0 0 76px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-lg { grid-column: span 2; grid-row: auto; min-height: 320px; }
  .cell-wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps .step { padding-top: 18px; }
  .proof { grid-template-columns: 1fr; gap: 0; }
  .proof-item { padding: 20px 0; border-top: 1px solid var(--line); }
  .proof-item:first-child { border-top-color: var(--line-strong); }
  .dl-card { padding: 24px; }
  .prereq { padding: 22px; }
  .big-shot figcaption { font-size: 10px; letter-spacing: 0.06em; line-height: 1.6; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav-inner { height: 62px; gap: 12px; }
  .brand-ver { display: none; }
  .brand-name { font-size: 14.5px; }
  .nav .btn-sm { padding: 10px 13px; font-size: 12.5px; }
  .h1 { font-size: clamp(2.35rem, 11vw, 3rem); }
  .lede { margin-top: 18px; font-size: 15px; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .bento { grid-template-columns: 1fr; }
  .cell, .cell-lg, .cell-wide { grid-column: span 1; }
  .cell-lg { min-height: 300px; }
  .notes { grid-template-columns: 1fr; gap: 22px; }
  .dl-card { padding: 20px; border-radius: 18px; }
  .dl-main { align-items: flex-start; gap: 14px; }
  .dl-icon { width: 56px; height: 56px; border-radius: 14px; }
  .dl-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .dl-old { text-align: center; border-bottom: none; text-decoration: underline; text-underline-offset: 3px; }
  .dl-hash { font-size: 10px; word-break: break-all; }
  .sec-head { margin-bottom: 34px; }
  .term { font-size: 11px; }
  .term-line span { min-width: 168px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ticker-track { animation: none !important; }
}
