/* ============================================================
   CampusDeets — stylesheet
   Direction A: Colour Block (flat, graphic, hard-edged)
   1. Tokens        6. Header
   2. Base          7. Hero + stats
   3. Layout        8. Showcase
   4. Typography    9. Cards + panels
   5. Buttons       10. Docs, forms, footer, motion
   ============================================================ */

/* ── 1. Tokens ─────────────────────────────────────────────── */

:root {
  --paper: #f4f3ee;
  --white: #ffffff;
  --ink: #0b0b0b;
  --grey: #6b6b66;

  /* the two colours that do all the shouting */
  --blue: #2c4bff;
  --acid: #e4f222;

  --ok: #1f7a4d;
  --err: #c0261b;

  /* contrast on --paper: ink 17.4:1 · grey 4.8:1 · blue 5.3:1
     on --ink: paper 17.4:1 · acid 15.1:1 · white 19.6:1 */
  --line: #0b0b0b;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1240px;
  --gut: clamp(20px, 4.4vw, 56px);
  --sec: clamp(72px, 9vw, 132px);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* hard offset shadows — the whole depth language */
  --push-1: 3px 3px 0 var(--ink);
  --push-2: 5px 5px 0 var(--ink);
  --push-3: 8px 8px 0 var(--ink);
  --push-blue: 6px 6px 0 var(--blue);
  --push-acid: 6px 6px 0 var(--acid);

  --dur-1: 140ms;
  --dur-2: 260ms;
  --dur-3: 620ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ── 2. Base ───────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--blue);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ── 3. Layout ─────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--acid);
  border: 2px solid var(--ink);
  padding: 14px 22px;
  font: 700 13px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skip:focus {
  left: 0;
}

.page {
  position: relative;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section {
  padding-block: var(--sec);
}

.section--tight {
  padding-block: clamp(52px, 6vw, 96px);
}

.section--alt {
  background: var(--white);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.hr {
  height: 2px;
  background: var(--ink);
  border: 0;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

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

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

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

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

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

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

/* ── 4. Typography ─────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
}

h1 {
  font-size: clamp(40px, 8.2vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(30px, 4.8vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

.lede {
  font-size: clamp(16.5px, 1.45vw, 19.5px);
  line-height: 1.58;
  color: #3a3a36;
  max-width: 48ch;
}

.body-copy {
  color: #3a3a36;
  max-width: 64ch;
}

.body-copy p + p {
  margin-top: 16px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid var(--ink);
  padding: 6px 12px;
  margin: 0;
}

.eyebrow--muted {
  background: transparent;
  border-color: transparent;
  padding-inline: 0;
  color: var(--grey);
}

/* the accent move: a solid block behind the phrase */
.hl {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 0 0.1em;
  transform: rotate(-1.2deg);
}

.num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

/* ── 5. Buttons, chips, links ──────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 16px 28px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  font: 700 15px/1 var(--font-body);
  cursor: pointer;
  text-align: center;
  box-shadow: var(--push-2);
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease),
    background var(--dur-1) var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--push-3);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn--primary {
  background: var(--acid);
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
}

.btn--ink:hover {
  box-shadow: var(--push-blue);
}

.btn--ghost {
  background: var(--white);
}

.btn--quiet {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
  padding: 12px 6px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.btn--quiet:hover {
  transform: none;
  box-shadow: none;
  color: var(--blue);
}

.btn--sm {
  min-height: 44px;
  padding: 12px 20px;
  font-size: 14px;
  box-shadow: var(--push-1);
}

.btn--sm:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: var(--push-1);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}

.link-arrow:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.link-arrow svg {
  transition: transform var(--dur-1) var(--ease);
}

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

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

/* ── 6. Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
}

.brand img {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 10px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 4px 9px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 16px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}

.nav a:hover {
  border-color: var(--ink);
}

.nav a[aria-current='page'] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--acid);
  box-shadow: var(--push-1);
  cursor: pointer;
}

.burger:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.burger .i-close {
  display: none;
}

.burger[aria-expanded='true'] .i-menu {
  display: none;
}

.burger[aria-expanded='true'] .i-close {
  display: block;
}

.mobile-menu {
  position: fixed;
  inset: 78px 0 0;
  z-index: 49;
  background: var(--paper);
  padding: 24px var(--gut) 48px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  padding: 18px 0;
  border-bottom: 2px solid var(--ink);
}

.mobile-menu a[aria-current='page'] {
  color: var(--blue);
}

.mobile-menu .btn {
  margin-top: 30px;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .header-cta .btn {
    display: none;
  }
}

/* ── 7. Hero + stats ───────────────────────────────────────── */

.hero {
  padding-block: clamp(52px, 7vw, 104px) clamp(52px, 6vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero h1 {
  max-width: 12ch;
}

.hero .lede {
  margin-top: 28px;
}

.hero .actions {
  margin-top: 40px;
}

.hero-note {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: min(330px, 78%);
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 30px;
  box-shadow: 12px 12px 0 var(--ink);
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual img {
    width: min(290px, 74%);
    box-shadow: 9px 9px 0 var(--ink);
  }
}

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

.stats div {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  padding: 24px 22px 26px;
  box-shadow: var(--push-1);
}

.stats dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}

.stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

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

/* ── 8. Section heads ──────────────────────────────────────── */

.sechead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(22px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.sechead .eyebrow {
  margin-bottom: 20px;
}

.sechead h2 {
  max-width: 20ch;
}

.sechead p {
  color: #3a3a36;
  max-width: 42ch;
}

@media (max-width: 860px) {
  .sechead {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

/* ── 9. Marquee ────────────────────────────────────────────── */

.marquee {
  background: var(--ink);
  color: var(--paper);
  border-block: 2px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
}

.marquee div {
  display: inline-block;
  animation: slide 30s linear infinite;
}

.marquee span {
  display: inline-block;
  padding: 22px 0;
  margin: 0 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 30px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.marquee i {
  font-style: normal;
  color: var(--acid);
}

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

/* ── 10. Showcase ──────────────────────────────────────────── */

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.showcase-step {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-step .num {
  display: block;
  margin-bottom: 16px;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  align-self: flex-start;
}

.showcase-step h3 {
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 14px;
}

.showcase-step p {
  color: #3a3a36;
  max-width: 40ch;
}

.showcase-sticky {
  position: sticky;
  top: 116px;
}

.device {
  position: relative;
  width: min(316px, 100%);
  margin-inline: auto;
  aspect-ratio: 560 / 1217;
  border: 3px solid var(--ink);
  border-radius: 32px;
  background: var(--ink);
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--blue);
}

.device img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease);
}

.device img.is-active {
  opacity: 1;
}

.device-steps {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

/* the dash is a pseudo-element so the hit area stays 34px tall */
.device-steps button {
  position: relative;
  width: 38px;
  height: 34px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.device-steps button::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--white);
  transition: background var(--dur-1) var(--ease);
}

.device-steps button:hover::before {
  background: var(--acid);
}

.device-steps button[aria-current='true']::before {
  background: var(--ink);
}

.showcase-media {
  display: none;
}

@media (max-width: 940px) {
  .showcase-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .showcase-visual {
    display: none;
  }
  .showcase-step {
    min-height: 0;
    padding-block: 36px;
    border-bottom: 2px solid var(--ink);
  }
  .showcase-media {
    display: block;
    margin: 26px 0 4px;
  }
  .showcase-media img {
    width: min(250px, 78%);
    border: 3px solid var(--ink);
    border-radius: 26px;
    box-shadow: 9px 9px 0 var(--ink);
  }
}

/* ── 11. Cards ─────────────────────────────────────────────── */

.fgrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.fcard {
  grid-column: span 2;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 26px 24px 28px;
  box-shadow: var(--push-2);
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

.fcard--wide {
  grid-column: span 3;
  padding: 32px 30px 34px;
}

.fcard:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--push-3);
}

.fcard h3 {
  margin: 16px 0 10px;
}

.fcard--wide h3 {
  font-size: clamp(21px, 2.1vw, 28px);
}

.fcard p {
  color: #3a3a36;
  font-size: 15px;
}

.fcard .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 5px 11px;
}

@media (max-width: 980px) {
  .fgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fcard,
  .fcard--wide {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .fgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  box-shadow: var(--push-2);
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

.panel:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--push-3);
}

.panel h3 {
  margin-bottom: 12px;
}

.panel p {
  color: #3a3a36;
  font-size: 15px;
}

/* ── 12. Callouts ──────────────────────────────────────────── */

.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--push-2);
  color: #3a3a36;
  font-size: 15px;
}

.callout svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--ink);
}

.callout--acid {
  background: var(--acid);
  color: var(--ink);
}

.callout--acid strong,
.callout--acid a {
  color: var(--ink);
}

.callout--alert {
  background: #fff3f2;
}

.callout--alert svg {
  color: var(--err);
}

.callout strong {
  color: var(--ink);
  font-weight: 700;
}

.handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

/* ── 13. Spec sheet ────────────────────────────────────────── */

.fsheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.fsheet article {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  box-shadow: var(--push-2);
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

.fsheet article:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--push-3);
}

.fsheet h3 {
  margin: 14px 0 10px;
}

.fsheet p {
  color: #3a3a36;
  font-size: 15px;
}

.fsheet ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fsheet li {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}

@media (max-width: 820px) {
  .fsheet {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── 14. Media strip ───────────────────────────────────────── */

.strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 8px 24px;
  margin-inline: -8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}

.strip figure {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(190px, 20vw, 238px);
  scroll-snap-align: start;
}

.strip img {
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--ink);
}

.strip figcaption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ── 15. Index list ────────────────────────────────────────── */

.index-list {
  border-top: 2px solid var(--ink);
}

.index-list a,
.index-list div.row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 24px 12px 24px 0;
  border-bottom: 2px solid var(--ink);
  transition: background var(--dur-1) var(--ease), padding-left var(--dur-2) var(--ease);
}

.index-list a:hover {
  background: var(--acid);
  padding-left: 16px;
}

.index-list h3 {
  font-size: clamp(18px, 1.9vw, 24px);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.index-list p {
  color: #3a3a36;
  font-size: 15px;
}

.index-list .chev {
  color: var(--ink);
  transition: transform var(--dur-2) var(--ease);
}

.index-list a:hover .chev {
  transform: translateX(6px);
}

@media (max-width: 640px) {
  .index-list a,
  .index-list div.row {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .index-list .chev {
    display: none;
  }
}

/* ── 16. Docs ──────────────────────────────────────────────── */

.doc-grid {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
  padding-block: clamp(44px, 5vw, 88px);
}

.toc {
  position: sticky;
  top: 112px;
}

.toc p {
  margin-bottom: 16px;
}

.toc a {
  display: block;
  padding: 10px 14px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--grey);
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
    background var(--dur-1) var(--ease);
}

.toc a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.toc a.is-active {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--ink);
  box-shadow: var(--push-1);
}

.doc-section {
  padding-bottom: 52px;
  margin-bottom: 52px;
  border-bottom: 2px solid var(--ink);
  scroll-margin-top: 112px;
}

.doc-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.doc-section h2 {
  font-size: clamp(24px, 2.9vw, 38px);
  margin: 14px 0 16px;
}

.doc-section .lede {
  margin-bottom: 28px;
}

@media (max-width: 920px) {
  .doc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .toc {
    position: static;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: var(--r-md);
    box-shadow: var(--push-2);
    padding: 20px;
  }
  .toc nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .toc a {
    border-color: var(--ink);
    margin-bottom: 0;
    background: var(--paper);
  }
}

/* ── 17. Steps / bullets ───────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
  border-top: 2px solid var(--ink);
}

.steps > li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 2px solid var(--ink);
}

.steps > li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin-bottom: 8px;
  text-transform: uppercase;
}

.steps p {
  color: #3a3a36;
  font-size: 15.5px;
}

.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.bullets li {
  position: relative;
  padding: 16px 0 16px 30px;
  border-bottom: 2px solid var(--ink);
  color: #3a3a36;
  font-size: 15.5px;
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 23px;
  width: 12px;
  height: 12px;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 3px;
}

/* ── 18. FAQ ───────────────────────────────────────────────── */

.faq {
  border-top: 2px solid var(--ink);
}

.faq details {
  border-bottom: 2px solid var(--ink);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  transition: color var(--dur-1) var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--blue);
}

.faq summary .plus {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
}

.faq summary .plus::before,
.faq summary .plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 2px;
  margin: -1px 0 0 -6.5px;
  background: var(--ink);
  transition: transform var(--dur-2) var(--ease);
}

.faq summary .plus::after {
  transform: rotate(90deg);
}

.faq details[open] summary .plus::after {
  transform: rotate(0deg);
}

.faq .answer {
  padding: 0 0 28px;
  color: #3a3a36;
  max-width: 64ch;
}

/* ── 19. Forms ─────────────────────────────────────────────── */

.form {
  max-width: 620px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  padding: 15px 18px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: var(--push-1);
  width: 100%;
  transition: box-shadow var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}

.field textarea {
  min-height: 158px;
  resize: vertical;
  line-height: 1.6;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 24px) 25px, calc(100% - 19px) 25px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 50px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: var(--err);
  background: #fff3f2;
}

.field .hint {
  font-size: 13.5px;
  color: var(--grey);
}

.field .error {
  font-size: 13.5px;
  color: var(--err);
  font-weight: 600;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* ── 20. Table ─────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--push-2);
}

table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}

.tbl th,
.tbl td {
  text-align: left;
  padding: 22px 26px;
  border-bottom: 2px solid var(--ink);
  vertical-align: top;
}

.tbl tr:last-child td {
  border-bottom: 0;
}

.tbl th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--acid);
}

.tbl .timing {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* ── 21. Footer ────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(56px, 7vw, 100px) 34px;
  border-top: 2px solid var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 44px;
  padding-bottom: 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border: 2px solid var(--paper);
  border-radius: 10px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.site-footer p {
  color: rgba(244, 243, 238, 0.72);
  font-size: 14.5px;
  max-width: 32ch;
}

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 12px;
}

.site-footer li a {
  color: rgba(244, 243, 238, 0.86);
  font-size: 14.5px;
  transition: color var(--dur-1) var(--ease);
}

.site-footer li a:hover {
  color: var(--acid);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 2px solid rgba(244, 243, 238, 0.25);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.72);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }
}

/* ── 22. Closing CTA ───────────────────────────────────────── */

.closing {
  padding-block: var(--sec);
}

.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 44px;
  align-items: end;
  background: var(--acid);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(34px, 5vw, 72px);
  box-shadow: 12px 12px 0 var(--ink);
}

.closing h2 {
  max-width: 16ch;
}

.closing .lede {
  color: #2b2b20;
}

@media (max-width: 860px) {
  .closing-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 30px;
    box-shadow: 9px 9px 0 var(--ink);
  }
}

/* ── 23. Page head, misc, motion ───────────────────────────── */

.pagehead {
  padding-block: clamp(56px, 8vw, 118px) clamp(38px, 5vw, 68px);
  border-bottom: 2px solid var(--ink);
}

.pagehead .eyebrow {
  margin-bottom: 24px;
}

.pagehead h1 {
  font-size: clamp(36px, 6.4vw, 84px);
  max-width: 16ch;
}

.pagehead .lede {
  margin-top: 26px;
}

.notfound {
  padding-block: clamp(80px, 13vw, 180px);
  max-width: 52ch;
}

.notfound h1 {
  font-size: clamp(60px, 14vw, 160px);
  color: var(--blue);
  margin-bottom: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
  transition-delay: var(--d, 0ms);
}

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

.enter > * {
  opacity: 0;
  transform: translateY(22px);
  animation: enter 640ms var(--ease) both;
}

.enter > *:nth-child(1) {
  animation-delay: 60ms;
}
.enter > *:nth-child(2) {
  animation-delay: 150ms;
}
.enter > *:nth-child(3) {
  animation-delay: 240ms;
}
.enter > *:nth-child(4) {
  animation-delay: 330ms;
}
.enter > *:nth-child(5) {
  animation-delay: 420ms;
}

@keyframes enter {
  to {
    opacity: 1;
    transform: none;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .enter > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .marquee div {
    animation: none !important;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .mobile-menu,
  .marquee,
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
