/* ==========================================================================
   BOBRCLUB — Design System
   One stylesheet for the whole site. Change a token here, the site follows.
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography
   5.  Buttons & links
   6.  Header / nav
   7.  Hero
   8.  Marquee
   9.  Sections & cards
   10. Tracks / channels / video / journal
   11. Footer
   12. Article (prose)
   13. Motion & reveal
   14. Responsive
   ========================================================================== */

/* 1. TOKENS ================================================================ */

:root {
  /* Ink & surface */
  --ink:          #08090b;
  --ink-2:        #0b0d10;
  --surface:      #101318;
  --surface-2:    #161a21;
  --surface-3:    #1d222b;

  /* Lines */
  --line:         rgb(255 255 255 / .08);
  --line-2:       rgb(255 255 255 / .14);
  --line-3:       rgb(255 255 255 / .24);

  /* Text */
  --text:         #f4f5f7;
  --text-2:       #a8aeba;
  --text-3:       #6d7480;
  --text-4:       #4a5058;

  /* Brand */
  --amber:        #ff9f2e;
  --amber-2:      #ff6a3d;
  --amber-soft:   rgb(255 159 46 / .12);
  --amber-line:   rgb(255 159 46 / .32);
  --amber-ink:    #1a0e02;
  --brand-grad:   linear-gradient(100deg, #ffb43d 0%, #ff8a2b 45%, #ff5f3d 100%);

  /* Track accents */
  --edtech:       #4d8dff;
  --edtech-deep:  #101d42;
  --dota:         #ec4a4a;
  --wot:          #c19a4b;
  --cs2:          #b9e04c;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-full: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgb(0 0 0 / .4);
  --sh-2: 0 4px 16px rgb(0 0 0 / .35);
  --sh-3: 0 18px 50px rgb(0 0 0 / .45);
  --sh-pop: 0 32px 80px rgb(0 0 0 / .55);

  /* Type
     Deliberately 100% system fonts. Nothing is fetched from a font CDN, so a
     visitor's IP address never reaches a third party just to render text.
     Display and body share a family, so the contrast is carried by weight,
     size and tracking instead. */
  --font-display:
    "Segoe UI Variable Display", "SF Pro Display", -apple-system,
    BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-body:
    "Segoe UI Variable Text", "SF Pro Text", -apple-system,
    BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Mono", Consolas,
    "Liberation Mono", Menlo, monospace;

  /* Rhythm */
  --shell: 1200px;
  --shell-narrow: 760px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 148px);

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .4s;
}

/* 2. RESET & BASE ========================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-height: 100dvh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient field: slow warm glow + faint grid. Decorative only. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60ch 60ch at 12% -8%,  rgb(255 159 46 / .13), transparent 62%),
    radial-gradient(70ch 70ch at 92% 4%,   rgb(77 141 255 / .10), transparent 60%),
    radial-gradient(80ch 60ch at 50% 108%, rgb(255 106 61 / .08), transparent 62%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / .022) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .022) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120ch 90ch at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120ch 90ch at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

img, svg, video, picture { display: block; max-width: 100%; height: auto; }

button, input, textarea, select { font: inherit; color: inherit; }

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

ul, ol { list-style: none; padding: 0; }

::selection { background: var(--amber); color: var(--amber-ink); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 3. LAYOUT PRIMITIVES ===================================================== */

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

.shell--narrow { max-width: var(--shell-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

.section__head {
  display: grid;
  gap: 18px;
  max-width: 64ch;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section__head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
  border: 0;
}

/* 4. TYPOGRAPHY ============================================================ */

/* System grotesques carry more internal leading than a display face like Syne,
   so headings need a touch more line-height and tighter tracking to keep the
   same density. Weight does the work that a separate display family used to. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
  font-optical-sizing: auto;
}

.h-display {
  font-size: clamp(2.85rem, 8vw, 6rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.15rem); }
.h3 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.15; }
.h4 { font-size: 1.1rem; line-height: 1.25; letter-spacing: -.015em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--amber);
  flex: none;
}

.eyebrow--plain::before { display: none; }

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.62;
  color: var(--text-2);
  text-wrap: pretty;
  max-width: 62ch;
}

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

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

/* Pill badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  background: rgb(255 255 255 / .035);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}

.pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
  box-shadow: 0 0 0 3px rgb(255 159 46 / .18);
}

.pill--live .pill__dot { animation: pulse 2.4s var(--ease) infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(255 159 46 / .5); }
  50%      { box-shadow: 0 0 0 6px rgb(255 159 46 / 0); }
}

/* 5. BUTTONS & LINKS ======================================================= */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-line: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--btn-line);
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

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

.btn__icon {
  flex: none;
  width: 16px; height: 16px;
  transition: transform var(--dur) var(--ease);
}
.btn:hover .btn__icon { transform: translate(2px, -2px); }
.btn--down:hover .btn__icon { transform: translateY(3px); }

.btn--primary {
  --btn-fg: var(--amber-ink);
  --btn-line: transparent;
  background: var(--brand-grad);
  box-shadow: 0 6px 22px rgb(255 122 46 / .28);
}
.btn--primary:hover { box-shadow: 0 12px 34px rgb(255 122 46 / .42); }

.btn--ghost { --btn-bg: rgb(255 255 255 / .04); }
.btn--ghost:hover {
  --btn-bg: rgb(255 255 255 / .09);
  --btn-line: var(--line-3);
}

.btn--solid {
  --btn-bg: var(--text);
  --btn-fg: var(--ink);
  --btn-line: transparent;
}
.btn--solid:hover { --btn-bg: #fff; box-shadow: 0 12px 30px rgb(255 255 255 / .16); }

.btn--lg { padding: 17px 30px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: .85rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.link-arrow:hover { color: var(--amber); border-color: var(--amber-line); gap: 12px; }
.link-arrow svg { width: 15px; height: 15px; flex: none; }

/* 6. HEADER / NAV ========================================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgb(8 9 11 / .72);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -.02em;
  flex: none;
}

.logo__glyph {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-grad);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 4px 14px rgb(255 122 46 / .35);
  transition: transform var(--dur) var(--ease);
}
.logo:hover .logo__glyph { transform: rotate(-8deg) scale(1.06); }

.logo__text .dim { font-weight: 400; }

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

.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--r-full);
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); background: rgb(255 255 255 / .05); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--brand-grad);
}

.header__cta { flex: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / .04);
  cursor: pointer;
}

.nav-toggle__bars { position: relative; width: 17px; height: 11px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 50%; margin-top: -.75px; }
.nav-toggle__bars span:nth-child(3) { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-4.75px) rotate(-45deg); }

/* 7. HERO ================================================================== */

.hero {
  position: relative;
  padding-top: clamp(120px, 17vw, 178px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero__copy { display: grid; gap: 26px; justify-items: start; }

.hero__title { margin-top: 4px; }

.hero__title .line { display: block; }

.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-3);
}
.hero__note svg { width: 15px; height: 15px; flex: none; color: var(--amber); }

/* Hero stack: tilted destination cards, pure CSS. */
.stack {
  position: relative;
  display: grid;
  gap: 14px;
  perspective: 1200px;
}

.stack__card {
  --accent: var(--amber);
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgb(255 255 255 / .07), rgb(255 255 255 / .022));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-3);
  transform: rotate(var(--rot, -2deg)) translateX(var(--tx, 0));
  transition: transform .55s var(--ease), border-color .55s var(--ease), box-shadow .55s var(--ease);
  animation: float 7s var(--ease) infinite;
  animation-delay: var(--delay, 0s);
}

.stack__card:hover {
  transform: rotate(0deg) translateX(0) scale(1.035);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: var(--sh-pop), 0 0 40px -12px var(--accent);
  z-index: 2;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -7px; }
}

.stack__icon {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
}

.stack__body { min-width: 0; }
.stack__title { font-weight: 600; font-size: .98rem; letter-spacing: -.015em; }
.stack__meta { font-size: .78rem; color: var(--text-3); }

.stack__arrow {
  margin-left: auto;
  flex: none;
  width: 16px; height: 16px;
  color: var(--text-3);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.stack__card:hover .stack__arrow { color: var(--accent); transform: translate(2px, -2px); }

/* Hero stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 7vw, 80px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}

.stat {
  padding: 26px 24px;
  background: var(--ink-2);
  display: grid;
  gap: 6px;
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -.03em;
  line-height: 1;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* 8. MARQUEE =============================================================== */

.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgb(255 255 255 / .015);
  padding-block: 16px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  flex: none;
  gap: 42px;
  padding-right: 42px;
  align-items: center;
  animation: scroll 38s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes scroll {
  to { transform: translateX(-100%); }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

/* 9. SECTIONS & CARDS ====================================================== */

.card {
  --accent: var(--amber);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgb(255 255 255 / .045), rgb(255 255 255 / .012));
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: var(--sh-3);
}
.card:hover::before { opacity: 1; }

/* Whole-card link target */
.card__hit::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}

.card__num {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--text-4);
  margin-bottom: 18px;
}

.card__title { margin-bottom: 10px; }

.card__text {
  color: var(--text-2);
  font-size: .96rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.card__foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: color-mix(in srgb, var(--accent) 78%, white);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.card__go {
  margin-left: auto;
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: all .4s var(--ease);
}
.card:hover .card__go {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: rotate(45deg);
}
.card__go svg { width: 15px; height: 15px; }

/* 10. TRACKS / CHANNELS / VIDEO / JOURNAL ================================== */

/* -- Featured project panel ---------------------------------------------- */
.feature {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(90ch 50ch at 15% 0%, rgb(77 141 255 / .18), transparent 60%),
    linear-gradient(150deg, #131a2e, #0c0f16 60%);
  padding: clamp(30px, 5vw, 64px);
  overflow: hidden;
}

.feature::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(77 141 255 / .22), transparent 62%);
  pointer-events: none;
}

.feature__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.feature__eyebrow::before { background: var(--edtech); }

.feature__list { display: grid; gap: 2px; }

.feature__item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.feature__item:last-child { border-bottom: 0; }

.feature__check {
  width: 22px; height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(77 141 255 / .16);
  border: 1px solid rgb(77 141 255 / .34);
  color: var(--edtech);
  flex: none;
}
.feature__check svg { width: 11px; height: 11px; }

.feature__item h4 { margin-bottom: 3px; }
.feature__item p { font-size: .92rem; color: var(--text-2); line-height: 1.55; }

/* -- Channel cards -------------------------------------------------------- */
.channel {
  --accent: var(--amber);
  position: relative;
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgb(255 255 255 / .045), rgb(255 255 255 / .012));
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), background-color .5s var(--ease);
}

.channel:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--sh-3), 0 0 50px -20px var(--accent);
}

.channel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.channel__logo {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  color: var(--accent);
  flex: none;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.channel:hover .channel__logo { background: var(--accent); color: var(--ink); }
.channel__logo svg { width: 22px; height: 22px; }

.channel__handle {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-3);
}

.channel__name { font-size: 1.25rem; }

.channel__desc {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.55;
}

.channel__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
}
.channel__cta svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.channel:hover .channel__cta svg { transform: translate(3px, -3px); }

/* -- Video cards ---------------------------------------------------------- */
.video {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-2);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.video:hover { transform: translateY(-4px); border-color: var(--line-3); }

.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
  overflow: hidden;
}

.yt img, .yt iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
}

.yt img { transition: transform .6s var(--ease), opacity .4s var(--ease); }
.yt:hover img { transform: scale(1.05); opacity: .78; }

.yt__play {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: 62px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgb(0 0 0 / .55);
  border: 1px solid rgb(255 255 255 / .3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.yt:hover .yt__play { background: #ff2d2d; border-color: #ff2d2d; transform: scale(1.08); }
.yt__play svg { width: 17px; height: 17px; color: #fff; }

/* Empty "next drop" slot */
.yt--empty {
  cursor: default;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgb(255 255 255 / .022) 0 12px, transparent 12px 24px),
    var(--surface);
}
.yt--empty .yt__soon {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 20px;
}
.yt__soon-ring {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px dashed var(--line-3);
  color: var(--text-3);
}
.yt__soon-ring svg { width: 17px; height: 17px; }
.yt__soon-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Embed held back until the visitor allows YouTube. The tile stays entirely
   local — no thumbnail is fetched from Google — and the click asks first. */
.yt--blocked {
  background:
    repeating-linear-gradient(45deg, rgb(255 255 255 / .022) 0 12px, transparent 12px 24px),
    var(--surface);
}

.yt--blocked img { visibility: hidden; }

.yt--blocked .yt__play { background: rgb(0 0 0 / .5); }

.yt--blocked::after {
  content: "Click to load from YouTube";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 9px 12px;
  background: rgb(0 0 0 / .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  text-align: center;
}

.video__body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.video__kicker {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--amber);
}
.video__title { font-size: 1rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.video__meta { font-size: .82rem; color: var(--text-3); }

/* -- Journal / article teaser -------------------------------------------- */
.post {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  background: linear-gradient(150deg, rgb(255 255 255 / .05), rgb(255 255 255 / .012));
  overflow: hidden;
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.post:hover {
  transform: translateY(-4px);
  border-color: var(--amber-line);
  box-shadow: var(--sh-3), 0 0 60px -26px var(--amber);
}

.post__art {
  position: relative;
  min-height: 280px;
  background:
    radial-gradient(70% 60% at 30% 20%, rgb(77 141 255 / .3), transparent 65%),
    linear-gradient(150deg, #16203a, #0c0f16);
  display: grid;
  place-items: center;
  padding: 32px;
  overflow: hidden;
}

/* Decorative "task card" mock inside the article art */
.taskmock {
  width: min(300px, 100%);
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / .07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--sh-pop);
  rotate: -3deg;
  transition: rotate .6s var(--ease), scale .6s var(--ease);
}
.post:hover .taskmock { rotate: 0deg; scale: 1.03; }

.taskmock__row {
  height: 9px;
  border-radius: var(--r-full);
  background: rgb(255 255 255 / .18);
}
.taskmock__row--short { width: 55%; }
.taskmock__row--mid { width: 78%; }

.taskmock__opts { display: grid; gap: 7px; margin-top: 4px; }
.taskmock__opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .09);
}
.taskmock__opt span {
  height: 7px;
  border-radius: var(--r-full);
  background: rgb(255 255 255 / .22);
  flex: 1;
}
.taskmock__dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / .3);
  flex: none;
}
.taskmock__opt--ok { border-color: rgb(70 210 130 / .5); background: rgb(70 210 130 / .12); }
.taskmock__opt--ok .taskmock__dot {
  border-color: #46d282;
  background: #46d282;
  display: grid;
  place-items: center;
}
.taskmock__opt--ok .taskmock__dot::after {
  content: "";
  width: 4px; height: 7px;
  border: solid var(--ink);
  border-width: 0 1.6px 1.6px 0;
  rotate: 45deg;
  margin-top: -2px;
}

.post__body {
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 16px;
  align-content: center;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-3);
}
.post__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }

.post__title { font-size: clamp(1.5rem, 2.7vw, 2.1rem); }

/* Upcoming topics */
.topic {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / .022);
}
.topic__idx {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-4);
  flex: none;
}
.topic__title { font-size: .95rem; font-weight: 500; color: var(--text-2); }
.topic__state {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-4);
  border: 1px dashed var(--line-2);
  padding: 4px 9px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* -- About ---------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-2xl);
  border: 1px solid var(--line-2);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 15%, rgb(255 159 46 / .2), transparent 65%),
    linear-gradient(160deg, var(--surface-2), var(--ink-2));
  display: grid;
  place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.portrait__empty {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 28px;
}
.portrait__glyph { font-size: 3.4rem; line-height: 1; }
.portrait__hint {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  max-width: 22ch;
  line-height: 1.6;
}

.kv { display: grid; gap: 0; margin-top: 8px; }
.kv__row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.kv__row:last-child { border-bottom: 0; }
.kv__k {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 3px;
}
.kv__v { color: var(--text-2); }
.kv__v strong { color: var(--text); font-weight: 600; }

/* -- Final CTA ------------------------------------------------------------ */
.cta-panel {
  position: relative;
  border: 1px solid var(--amber-line);
  border-radius: var(--r-2xl);
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(80ch 40ch at 50% 0%, rgb(255 159 46 / .2), transparent 62%),
    linear-gradient(160deg, #1a1209, #0b0d10 62%);
  display: grid;
  gap: 22px;
  justify-items: center;
}

.cta-panel .lede { max-width: 52ch; margin-inline: auto; }

.cta-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 720px;
  margin-top: 10px;
  text-align: left;
}

.cta-opt {
  --accent: var(--amber);
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / .04);
  transition: transform .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease);
}
.cta-opt:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: rgb(255 255 255 / .07);
}
.cta-opt__k {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
}
.cta-opt__t { font-size: 1.06rem; font-weight: 600; letter-spacing: -.015em; }
.cta-opt__d { font-size: .88rem; color: var(--text-2); line-height: 1.5; }

/* 11. FOOTER =============================================================== */

.footer {
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / .012);
  padding-block: clamp(48px, 6vw, 72px) 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 48px);
  padding-bottom: 40px;
}

.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__tag { font-size: .92rem; color: var(--text-2); max-width: 34ch; line-height: 1.6; }

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.footer__list { display: grid; gap: 11px; }
.footer__list a {
  font-size: .93rem;
  color: var(--text-2);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.footer__list a:hover { color: var(--amber); }
.footer__list svg { width: 12px; height: 12px; opacity: .6; }

.socials { display: flex; gap: 10px; }
.social {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--text-2);
  transition: all .35s var(--ease);
}
.social:hover {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-3px);
}
.social svg { width: 18px; height: 18px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--text-3);
}
.footer__bottom a:hover { color: var(--amber); }

/* 12. ARTICLE (PROSE) ====================================================== */

.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--brand-grad);
  will-change: transform;
}

.article-hero {
  padding-top: clamp(116px, 15vw, 160px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.article-hero__inner { display: grid; gap: 24px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb svg { width: 11px; height: 11px; opacity: .5; }

.article-hero__title { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--text-3);
}

.byline__who {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}
.byline__avatar {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-grad);
  font-size: 15px;
  flex: none;
}
.byline .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }

/* Body copy */
.prose {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #d7dae1;
}

.prose > * + * { margin-top: 1.35em; }

.prose h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  margin-top: 2.4em;
  margin-bottom: .1em;
  color: var(--text);
  scroll-margin-top: 100px;
}

.prose h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-top: 1.9em;
  margin-bottom: .1em;
  color: var(--text);
}

.prose p { text-wrap: pretty; }

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

.prose em { color: var(--text); font-style: italic; }

.prose a:not(.btn):not(.link-arrow) {
  color: var(--amber);
  border-bottom: 1px solid var(--amber-line);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.prose a:not(.btn):not(.link-arrow):hover {
  border-bottom-color: var(--amber);
  background: var(--amber-soft);
}

.prose ul, .prose ol { display: grid; gap: .7em; padding-left: 0; }

.prose ul > li {
  position: relative;
  padding-left: 26px;
}
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 4px; top: .68em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.prose ol { counter-reset: n; }
.prose ol > li {
  position: relative;
  padding-left: 38px;
  counter-increment: n;
}
.prose ol > li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0; top: .06em;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--amber);
}

.prose blockquote {
  margin-block: 2em;
  padding: 26px 30px;
  border-left: 2px solid var(--amber);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: linear-gradient(100deg, var(--amber-soft), transparent 70%);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.02em;
  color: var(--text);
}

.prose code {
  font-family: var(--font-mono);
  font-size: .86em;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  background: rgb(255 255 255 / .07);
  border: 1px solid var(--line);
  color: var(--amber);
}

.prose hr {
  margin-block: 2.8em;
  height: 1px;
  border: 0;
  background: linear-gradient(to right, var(--line-2), transparent);
}

.prose figure { margin-block: 2.2em; display: grid; gap: 12px; }
.prose figcaption {
  font-size: .82rem;
  color: var(--text-3);
  text-align: center;
}

/* Media placeholder inside article */
.media-slot {
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgb(255 255 255 / .02) 0 14px, transparent 14px 28px),
    var(--surface);
}
.media-slot__in { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 24px; }
.media-slot__in svg { width: 26px; height: 26px; color: var(--text-4); }
.media-slot__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Callout box */
.callout {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 16px;
  margin-block: 2.2em;
  padding: 24px 26px;
  border: 1px solid rgb(77 141 255 / .3);
  border-radius: var(--r-lg);
  background: rgb(77 141 255 / .07);
  font-size: .98rem;
  line-height: 1.65;
}
.callout__icon {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(77 141 255 / .18);
  color: var(--edtech);
  flex: none;
}
.callout__icon svg { width: 14px; height: 14px; }
.callout h4 { margin-bottom: 5px; font-size: 1rem; }
.callout p { color: var(--text-2); }

/* Amber variant of the callout, for a warning rather than an aside */
.callout--warn {
  border-color: var(--amber-line);
  background: rgb(255 159 46 / .07);
}
.callout--warn .callout__icon {
  background: rgb(255 159 46 / .16);
  color: var(--amber);
}

/* Upfront disclosure: what actually leaves the visitor's device.
   Deliberately loud, and deliberately near the top of the page. */
.disclosure {
  margin-block: 2.2em;
  border: 1px solid var(--amber-line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60ch 24ch at 12% 0%, rgb(255 159 46 / .11), transparent 66%),
    rgb(255 255 255 / .022);
  overflow: hidden;
}

.disclosure__head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 26px 16px;
}

.disclosure__head svg { width: 20px; height: 20px; color: var(--amber); flex: none; }
.disclosure__head h2 {
  font-size: 1.2rem !important;
  margin: 0 !important;
  letter-spacing: -.02em;
}

.disclosure__body { padding: 0 26px 8px; }
.disclosure__body p { font-size: .95rem; color: var(--text-2); line-height: 1.6; }

.disclosure__list {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
}

.disclosure__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: .93rem;
  line-height: 1.55;
}
.disclosure__item::before { content: none; }

/* Status dot: green = nothing leaves, amber = only on your action */
.disclosure__flag {
  margin-top: .45em;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex: none;
}
.disclosure__flag--none { background: #46d282; box-shadow: 0 0 0 3px rgb(70 210 130 / .16); }
.disclosure__flag--ask  { background: var(--amber); box-shadow: 0 0 0 3px rgb(255 159 46 / .16); }

.disclosure__item strong { color: var(--text); }
.disclosure__item span { color: var(--text-2); }

.disclosure__foot {
  padding: 18px 26px 22px;
  border-top: 1px solid var(--line);
  background: rgb(0 0 0 / .18);
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.6;
}
.disclosure__foot strong { color: var(--text); }

@media (max-width: 560px) {
  .disclosure__head, .disclosure__body { padding-inline: 20px; }
  .disclosure__foot { padding-inline: 20px; }
}

/* Spec grid inside article */
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-block: 2.2em;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}
.spec { padding: 22px 24px; background: var(--ink-2); display: grid; gap: 6px; }
.spec__k {
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-3);
}
.spec__v { font-size: .96rem; color: var(--text); font-weight: 500; line-height: 1.45; }

/* In-article CTA */
.inline-cta {
  margin-block: 2.6em;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60ch 30ch at 20% 0%, rgb(77 141 255 / .16), transparent 62%),
    linear-gradient(150deg, #131a2e, #0c0f16 65%);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.inline-cta h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.inline-cta p { color: var(--text-2); font-size: .98rem; max-width: 52ch; }

/* Article end / next steps */
.article-end {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 26px;
}

/* 13. MOTION & REVEAL ====================================================== */

/* Content is visible by default. The hidden state is opt-in and only applies
   once the inline head script confirms JS runs and motion is welcome, so a
   failed script or a throttled observer can never leave the page blank. */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.js-anim .reveal.is-in { opacity: 1; transform: none; }

.js-anim .reveal[data-delay="1"] { transition-delay: .07s; }
.js-anim .reveal[data-delay="2"] { transition-delay: .14s; }
.js-anim .reveal[data-delay="3"] { transition-delay: .21s; }
.js-anim .reveal[data-delay="4"] { transition-delay: .28s; }

/* 14. RESPONSIVE =========================================================== */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .stack { max-width: 460px; }
  .feature__grid { grid-template-columns: minmax(0, 1fr); }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 340px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }

  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px var(--gutter) 26px;
    background: rgb(8 9 11 / .96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__link { padding: 14px 12px; font-size: 1.02rem; border-radius: var(--r-sm); }
  .nav__link.is-active::after { left: 12px; right: auto; width: 20px; }

  .nav-toggle { display: inline-flex; order: 3; }
  .header__cta { display: none; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }

  .post { grid-template-columns: minmax(0, 1fr); }
  .post__art { min-height: 220px; }
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .cta-split { grid-template-columns: minmax(0, 1fr); }
  .specs { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .grid--2, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .section__head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .kv__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .prose { font-size: 1.02rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .hero__copy { justify-items: stretch; }
  .marquee__item { font-size: .92rem; }
}

/* Motion preferences ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-anim .reveal { opacity: 1; transform: none; }
}

/* Print ------------------------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  body::before, body::after, .header, .footer, .progress, .inline-cta,
  .consent, .consent-dialog { display: none !important; }
  .prose { color: #000; }
}

/* 15. CONSENT & LEGAL ====================================================== */

/* -- Banner ---------------------------------------------------------------- */
.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  padding: var(--gutter);
  padding-bottom: max(var(--gutter), env(safe-area-inset-bottom));
  transform: translateY(120%);
  transition: transform .55s var(--ease-out);
  pointer-events: none;
}

.consent.is-in { transform: none; }
.consent.is-in .consent__inner { pointer-events: auto; }

.consent__inner {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: rgb(14 16 20 / .93);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: var(--sh-pop);
  pointer-events: none;
}

/* Warm hairline along the top edge, same language as the primary button. */
.consent__inner::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 2px;
  background: var(--brand-grad);
}

.consent__body { display: grid; gap: 8px; }

.consent__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.consent__title span[aria-hidden] { font-size: 1.15rem; line-height: 1; }

.consent__text {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 70ch;
  text-wrap: pretty;
}
.consent__text a {
  color: var(--amber);
  border-bottom: 1px solid var(--amber-line);
}
.consent__text a:hover { border-bottom-color: var(--amber); }

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex: none;
}

/* Refusing must be no harder than accepting, so both are real buttons at the
   same size and only the fill differs. */
.consent__actions .btn { min-width: 150px; }

.consent__prefs {
  background: none;
  border: 0;
  padding: 4px 2px;
  font: inherit;
  font-size: .86rem;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 1px solid var(--line-2);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.consent__prefs:hover { color: var(--text); border-color: var(--line-3); }

/* -- Preferences dialog ---------------------------------------------------- */
.consent-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-pop);
  overflow: hidden;
}

.consent-dialog::backdrop {
  background: rgb(4 5 7 / .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.consent-dialog__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 26px 20px;
  border-bottom: 1px solid var(--line);
}

.consent-dialog__head h2 { font-size: 1.3rem; }
.consent-dialog__head p { font-size: .9rem; color: var(--text-2); margin-top: 7px; line-height: 1.55; }

.consent-dialog__close {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgb(255 255 255 / .04);
  color: var(--text-2);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.consent-dialog__close:hover { color: var(--text); border-color: var(--line-3); transform: rotate(90deg); }
.consent-dialog__close svg { width: 14px; height: 14px; }

.consent-dialog__body {
  padding: 4px 26px 18px;
  overflow-y: auto;
  max-height: min(46dvh, 420px);
}

.consent-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 26px;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / .022);
}
.consent-dialog__foot .btn { flex: 1 1 150px; min-width: 0; }

/* -- One consent category -------------------------------------------------- */
.consent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.consent-row:last-child { border-bottom: 0; }

.consent-row__name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: 6px;
}

.consent-row__req {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-full);
  background: rgb(70 210 130 / .14);
  border: 1px solid rgb(70 210 130 / .3);
  color: #6fe0a4;
}

.consent-row__desc { font-size: .88rem; color: var(--text-2); line-height: 1.55; }

.consent-row__what {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* -- Switch ---------------------------------------------------------------- */
.switch { position: relative; flex: none; width: 46px; height: 27px; }

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch__track {
  position: absolute;
  inset: 0;
  border-radius: var(--r-full);
  background: rgb(255 255 255 / .1);
  border: 1px solid var(--line-2);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  pointer-events: none;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}

.switch input:checked + .switch__track {
  background: var(--brand-grad);
  border-color: transparent;
}
.switch input:checked + .switch__track::after {
  transform: translateX(19px);
  background: var(--amber-ink);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .switch__track { opacity: .55; }

/* -- Footer trigger -------------------------------------------------------- */
.cookie-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: .93rem;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color .3s var(--ease);
}
.cookie-btn:hover { color: var(--amber); }
.cookie-btn svg { width: 12px; height: 12px; opacity: .6; }

/* -- Legal pages ----------------------------------------------------------- */
.legal-hero {
  padding-top: clamp(116px, 15vw, 156px);
  padding-bottom: clamp(24px, 4vw, 40px);
}
.legal-hero__inner { display: grid; gap: 20px; }

.legal-updated {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.legal-updated .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }

/* Table of contents at the top of a policy */
.toc {
  margin-block: 2em;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / .022);
}
.toc h2 {
  font-family: var(--font-mono) !important;
  font-size: .68rem !important;
  font-weight: 500 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px !important;
}
.toc ol { display: grid; gap: 8px; counter-reset: toc; }
.toc ol > li { padding-left: 34px; position: relative; counter-increment: toc; }
.toc ol > li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0; top: .18em;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--text-4);
}
.toc a {
  font-size: .95rem;
  color: var(--text-2) !important;
  border-bottom: 1px solid transparent !important;
}
.toc a:hover { color: var(--amber) !important; border-bottom-color: var(--amber-line) !important; background: none !important; }

/* Data table inside a policy */
.data-table {
  width: 100%;
  min-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: .9rem;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.data-table thead th {
  background: rgb(255 255 255 / .04);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table tbody th {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  color: var(--text);
}

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

.table-scroll {
  margin-block: 2em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Placeholder the site owner still has to fill in before going live */
.fill-me {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--r-xs);
  background: rgb(255 159 46 / .14);
  border: 1px dashed var(--amber-line);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: .82em;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .consent__inner { grid-template-columns: minmax(0, 1fr); }
  .consent__actions { flex-direction: column; align-items: stretch; }
  .consent__actions .btn { width: 100%; }
  .consent__prefs { align-self: center; margin-top: 4px; }
  .consent-dialog__foot { flex-direction: column; }
}
