/* ============================================================
   Safe Kids Now Network  /  Stephanie L. Mann
   Design system: Dusk Navy + Sunset Gold, drawn from the
   golden hour palette of "Strengthen America to Defeat Socialism"
   Type: Fraunces (display) + Public Sans (US civic sans, USWDS)
   ============================================================ */

:root {
  /* base */
  --navy-900: #09131f;
  --navy-850: #0c1a2a;
  --navy-800: #112339;
  --navy-700: #1a3452;
  --navy-600: #24486e;

  /* light band */
  --stone: #dde2e4;
  --stone-2: #c9d1d4;
  --paper: #ecf0f1;
  --paper-ink: #0f1c28;
  --paper-ink-2: #44586a;

  /* accents */
  --gold: #e0a64b;
  --gold-hi: #f5d194;
  --gold-deep: #b57f2e;
  --brick: #a93f2b;

  /* text on dark */
  --fg: #f0eee9;
  --fg-dim: #9db0c4;
  --fg-faint: #6d829a;

  --hair: rgba(224, 166, 75, 0.2);
  --hair-cool: rgba(157, 176, 196, 0.16);

  --shell: min(1280px, 100% - 2 * var(--gut));
  --gut: 22px;

  --ff-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  /* type scale, perfect fourth */
  --t-hero: clamp(2.65rem, 1.1rem + 5.3vw, 5.5rem);
  --t-xl: clamp(2.1rem, 1.1rem + 3.4vw, 3.9rem);
  --t-lg: clamp(1.6rem, 1.1rem + 1.9vw, 2.6rem);
  --t-md: clamp(1.22rem, 1.05rem + 0.7vw, 1.6rem);
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --t-sm: 0.905rem;
  --t-xs: 0.78rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 900px) {
  :root { --gut: 44px; }
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

section[id], footer[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: var(--t-body);
  line-height: 1.62;
  font-weight: 350;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold); color: var(--navy-900); }

/* ---------- shared type ---------- */

.display {
  font-family: var(--ff-display);
  font-weight: 560;
  font-variation-settings: "SOFT" 28, "WONK" 1, "opsz" 120;
  line-height: 1.02;
  letter-spacing: -0.021em;
}

.lede {
  font-size: var(--t-md);
  line-height: 1.52;
  font-weight: 320;
  color: var(--fg-dim);
  max-width: 34ch;
}

.tag {
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tag::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  opacity: 0.75;
}

.shell { width: var(--shell); margin-inline: auto; }

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--gold);
  --btn-fg: #16110a;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 16px 28px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--t-sm);
  font-weight: 650;
  letter-spacing: 0.01em;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  box-shadow: 0 2px 0 0 var(--gold-deep);
}

.btn svg { width: 15px; height: 15px; flex: none; transition: transform 0.4s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px -6px rgba(224, 166, 75, 0.55), 0 2px 0 0 var(--gold-deep); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(240, 238, 233, 0.28);
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 1px var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--ink { --btn-fg: #16110a; }

.link-u {
  position: relative;
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--gold);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
.link-u:hover { background-size: 34% 1px; }

/* ============================================================
   HEADER
   ============================================================ */

.head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  padding: 18px 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.head.is-stuck a img {
    height: 50px;
}
.head a img {
    transition: all 0.3s linear;
    height: 80px;
}
.head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 19, 31, 0.86);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--hair);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: -1;
}

.head.is-stuck { padding: 11px 0; }
.head.is-stuck::after { opacity: 1; }

.head__in {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 13px; }

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 30%, var(--gold-hi), var(--gold) 46%, var(--gold-deep) 100%);
  color: #14100a;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  flex: none;
  box-shadow: 0 0 0 1px rgba(245, 209, 148, 0.4), 0 6px 18px -8px rgba(224, 166, 75, 0.8);
}

.brand__name {
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 40;
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.brand__sub {
  font-size: 0.63rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--fg-faint);
  margin-top: 3px;
}

@media (max-width: 760px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 1.04rem; }
  .brand__mark { width: 38px; height: 38px; font-size: 0.84rem; }
}

.nav { display: none; }

@media (min-width: 1060px) {
  .nav { display: flex; align-items: center; gap: 30px; }
}

.nav a {
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--fg-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--gold);
  transition: width 0.4s var(--ease-out);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after { width: 100%; }

.head__cta { display: none; }
@media (min-width: 1060px) { .head__cta { display: inline-flex; padding: 12px 20px; } }

.burger {
  width: 46px; height: 42px;
  display: grid; place-items: center; gap: 0;
  background: none; border: 0; cursor: pointer;
  border-radius: 2px;
}
@media (min-width: 1060px) { .burger { display: none; } }

.burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--fg);
  transition: transform 0.4s var(--ease-out), opacity 0.25s;
}
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--navy-900);
  padding: 120px var(--gut) 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-out);
  overflow-y: auto;
}
.drawer.is-open { clip-path: inset(0 0 0 0); }

.drawer a {
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 60;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 500;
  padding: 11px 0;
  border-bottom: 1px solid var(--hair-cool);
  color: var(--fg);
}
.drawer a:last-of-type { border-bottom: 0; }
.drawer .btn { margin-top: 26px; align-self: flex-start; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: center;
  padding: clamp(126px, 16vh, 168px) 0 clamp(66px, 9vh, 104px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../../assets/images/banner-kids.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 27% 44%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right,
      rgba(9, 19, 31, 0.97) 0%,
      rgba(9, 19, 31, 0.94) 24%,
      rgba(9, 19, 31, 0.62) 43%,
      rgba(9, 19, 31, 0.14) 62%,
      rgba(9, 19, 31, 0.06) 82%,
      rgba(9, 19, 31, 0.3) 100%),
    linear-gradient(to bottom,
      rgba(9, 19, 31, 0.8) 0%,
      rgba(9, 19, 31, 0.24) 17%,
      rgba(9, 19, 31, 0.02) 40%,
      rgba(9, 19, 31, 0.42) 86%,
      var(--navy-900) 100%);
}

@media (max-width: 900px) {
  .hero {
    min-height: 92svh;
    align-items: flex-end;
    padding-top: 43svh;
  }
  /* on a portrait viewport a cover crop of a 3:1 plate lands on one face,
     so the photograph runs as a band across the top instead */
  .hero__bg {
    background-size: auto 40%;
    background-position: 62% 0;
  }
  .hero__scrim {
    background: linear-gradient(to bottom,
      rgba(9, 19, 31, 0.74) 0%,
      rgba(9, 19, 31, 0.12) 15%,
      rgba(9, 19, 31, 0.1) 26%,
      rgba(9, 19, 31, 0.9) 38%,
      var(--navy-900) 44%,
      var(--navy-900) 100%);
  }
}

.hero__grid {
  position: relative;
  z-index: 5;
  width: var(--shell);
  margin-inline: auto;
}

.hero__copy { max-width: 43rem; }

/* new book chip, replaces the floating cover so the photograph stays clear */
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(9, 19, 31, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--fg);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.5s var(--ease-out);
}
.hero__chip span {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--gold);
  color: #16110a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}
.hero__chip svg { width: 14px; height: 14px; color: var(--gold); transition: transform 0.4s var(--ease-out); }
.hero__chip:hover { border-color: var(--gold); transform: translateY(-2px); background: rgba(9, 19, 31, 0.78); }
.hero__chip:hover svg { transform: translateX(3px); }

@media (max-width: 520px) {
  .hero__chip { font-size: 0.75rem; gap: 8px; padding-right: 13px; }
  .hero__chip span { font-size: 0.62rem; padding: 3px 9px; }
}

.hero__title {
  font-size: var(--t-hero);
  margin: 24px 0 24px;
  max-width: 13ch;
}

.hero__title em {
  font-style: normal;
  color: var(--gold-hi);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
}

.hero .lede { max-width: 47ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__scroll {
  position: absolute;
  z-index: 5;
  left: var(--gut);
  bottom: 22px;
  display: none;
  align-items: center;
  gap: 11px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--fg-faint);
}
@media (min-width: 980px) { .hero__scroll { display: flex; } }

.hero__scroll i {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* reveal masks for the load sequence */
.rv { display: block; overflow: hidden; }
.rv > * { display: block; }

/* ============================================================
   PRESS BAND
   ============================================================ */

.press {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--navy-850);
  padding: 26px 0;
  position: relative;
  overflow: hidden;
}

.press__in {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(22px, 5vw, 60px);
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 900px) { .press__in { justify-content: space-between; flex-wrap: nowrap; } }

.press__label {
  font-size: 0.66rem;
  letter-spacing: 0.17em;
  font-weight: 700;
  color: var(--gold);
  flex: none;
  line-height: 1.5;
  max-width: 96px;
}

.press__logos {
  display: flex;
  align-items: center;
  gap: clamp(26px, 5vw, 64px);
  flex-wrap: wrap;
  justify-content: center;
}

.press__logos img {
  height: clamp(20px, 2.6vw, 30px);
  width: auto;
  transition: opacity 0.4s var(--ease);
}
.press__logos img:hover { opacity: 1; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */

.sec { padding: clamp(84px, 11vw, 158px) 0; position: relative; }
.sec--tight { padding: clamp(64px, 8vw, 112px) 0; }

.sec--light {
  background: var(--stone);
  color: var(--paper-ink);
}
.sec--light .lede { color: var(--paper-ink-2); }
.sec--light .tag { color: var(--gold-deep); }
.sec--light .tag::before { background: var(--gold-deep); }

.sec__head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 66px); }
.sec__title { font-size: var(--t-xl); margin: 18px 0 20px; max-width: 18ch; }
.sec--light .sec__title { font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 120; }

/* ============================================================
   STATS
   ============================================================ */

.stats {
  background: var(--navy-850);
  border-bottom: 1px solid var(--hair-cool);
}

.stats__grid {
  display: grid;
  gap: 1px;
  background: var(--hair-cool);
  border: 1px solid var(--hair-cool);
}
@media (min-width: 760px) { .stats__grid { grid-template-columns: repeat(3, 1fr); } }

.stat {
  background: var(--navy-850);
  padding: clamp(28px, 3.4vw, 46px);
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease-out);
}
.stat:hover::after { transform: scaleY(1); }

.stat__n {
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 10, "WONK" 0, "opsz" 144;
  font-size: clamp(2.8rem, 5.4vw, 4.3rem);
  font-weight: 620;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--gold-hi);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat__n span { font-size: 0.42em; color: var(--gold); letter-spacing: 0; }

.stat__t {
  margin-top: 16px;
  font-size: 0.97rem;
  color: var(--fg-dim);
  max-width: 30ch;
  line-height: 1.55;
}

/* ============================================================
   STORY  /  TIMELINE
   ============================================================ */

.story__grid { display: grid; gap: clamp(48px, 6vw, 84px); }
@media (min-width: 1000px) {
  .story__grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: start; }
}

.portrait { position: relative; }
@media (min-width: 1000px) { .portrait { position: sticky; top: 112px; } }

.portrait__frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.portrait__frame img {
  width: 100%;
  filter: saturate(0.82) contrast(1.06);
  transform: scale(1.02);
}
.portrait__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 19, 31, 0.78), transparent 52%),
              linear-gradient(120deg, rgba(224, 166, 75, 0.16), transparent 58%);
}

.portrait__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px;
  z-index: 2;
}
.portrait__cap strong {
  display: block;
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 48;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.portrait__cap span {
  display: block;
  margin-top: 5px;
  font-size: 0.79rem;
  letter-spacing: 0.055em;
  color: var(--gold);
  font-weight: 600;
}

.portrait__radio {
  position: absolute;
  right: -22px;
  bottom: -38px;
  width: 132px;
  border-radius: 50%;
  border: 3px solid var(--navy-900);
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.85);
  display: none;
}
@media (min-width: 620px) { .portrait__radio { display: block; } }

/* timeline */
.tl { position: relative; padding-left: 52px; }

.tl__rail {
  position: absolute;
  left: 15px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--hair-cool);
}
.tl__rail i {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--gold-hi), var(--gold), var(--gold-deep));
  transform: scaleY(0);
  transform-origin: top;
}

.tl__item { position: relative; padding-bottom: 42px; }
.tl__item:last-child { padding-bottom: 0; }

.tl__dot {
  position: absolute;
  left: -52px;
  top: 2px;
  width: 31px; height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  border: 1px solid var(--hair);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.tl__yr {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 7px;
}

.tl__h {
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 60;
  font-size: var(--t-md);
  font-weight: 580;
  letter-spacing: -0.016em;
  line-height: 1.22;
  margin-bottom: 9px;
}

.tl__p { color: var(--fg-dim); max-width: 56ch; font-size: 0.99rem; }

/* pull quote */
.pull {
  margin-top: 48px;
  padding: 30px 0 4px 30px;
  border-left: 2px solid var(--gold);
}
.pull p {
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 90;
  font-size: clamp(1.32rem, 0.9rem + 1.5vw, 1.86rem);
  font-weight: 450;
  line-height: 1.32;
  letter-spacing: -0.017em;
  color: var(--fg);
}
.pull cite {
  display: block;
  margin-top: 16px;
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 650;
  color: var(--fg-faint);
}

/* ============================================================
   THE NEW BOOK
   ============================================================ */

.book { position: relative; overflow: hidden; }

.book::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 52% at 76% 8%, rgba(224, 166, 75, 0.2), transparent 70%),
    radial-gradient(ellipse 50% 50% at 8% 96%, rgba(169, 63, 43, 0.1), transparent 68%);
  pointer-events: none;
}

.book__grid { position: relative; display: grid; gap: clamp(44px, 5vw, 76px); align-items: center; }
@media (min-width: 1000px) {
  .book__grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); }
}

.book__art { perspective: 1800px; }

.book__art-in {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.book__art img {
  width: 100%;
  border-radius: 3px;
  box-shadow:
    0 2px 5px rgba(15, 28, 40, 0.24),
    0 40px 72px -26px rgba(15, 28, 40, 0.62);
}

.book__art figcaption {
  margin-top: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--paper-ink-2);
  font-weight: 500;
}

.book__title {
  font-size: var(--t-xl);
  font-variation-settings: "SOFT" 14, "WONK" 0, "opsz" 144;
  margin: 18px 0 8px;
  max-width: 14ch;
  line-height: 0.98;
}
.book__title b { display: block; font-weight: 640; color: var(--brick); }

.book__meta {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  font-weight: 650;
  color: var(--paper-ink-2);
  margin-bottom: 26px;
}

.book__body p { color: var(--paper-ink-2); max-width: 56ch; margin-bottom: 15px; }
.book__body p:first-child { color: var(--paper-ink); font-size: var(--t-md); line-height: 1.5; font-weight: 400; }

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 34px;
}

.pillars li {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--paper-ink);
  padding: 9px 15px;
  border: 1px solid rgba(15, 28, 40, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.pillars li:hover { border-color: var(--gold-deep); background: var(--gold); color: #16110a; }

.sec--light .btn--ghost {
  --btn-fg: var(--paper-ink);
  box-shadow: inset 0 0 0 1px rgba(15, 28, 40, 0.28);
}
.sec--light .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold-deep); color: var(--gold-deep); }

/* ============================================================
   LIBRARY
   ============================================================ */

.lib__grid { display: grid; gap: clamp(22px, 2.6vw, 34px); }
@media (min-width: 680px) { .lib__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .lib__grid { grid-template-columns: repeat(4, 1fr); } }

.lib__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--navy-850);
  border: 1px solid var(--hair-cool);
  border-radius: 2px;
  padding: 26px 24px 28px;
  transition: border-color 0.45s var(--ease), transform 0.5s var(--ease-out), background 0.45s var(--ease);
}
.lib__card:hover { border-color: var(--hair); transform: translateY(-5px); background: var(--navy-800); }

.lib__cover {
  position: relative;
  margin: -2px 0 24px;
  align-self: flex-start;
  width: 62%;
  max-width: 168px;
}
.lib__cover img {
  width: 100%;
  border-radius: 1px 3px 3px 1px;
  box-shadow: -7px 0 14px -9px rgba(0, 0, 0, 0.9), 16px 20px 36px -16px rgba(0, 0, 0, 0.8);
}

.lib__cover--blank {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 1px 3px 3px 1px;
  background:
    linear-gradient(150deg, var(--navy-700), var(--navy-800) 58%, var(--navy-850));
  border: 1px solid var(--hair);
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  box-shadow: 16px 20px 36px -18px rgba(0, 0, 0, 0.8);
}
.lib__cover--blank::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: linear-gradient(90deg, rgba(0,0,0,0.5), rgba(255,255,255,0.09) 70%, transparent);
  border-radius: 1px 0 0 1px;
}
.lib__cover--blank::after {
  content: "";
  position: absolute;
  left: 22px; right: 16px; bottom: 20px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.lib__cover--blank span {
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 40;
  font-size: 1.02rem;
  line-height: 1.16;
  color: var(--gold-hi);
  letter-spacing: -0.01em;
}

.lib__h {
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 22, "WONK" 1, "opsz" 48;
  font-size: 1.24rem;
  font-weight: 580;
  letter-spacing: -0.017em;
  line-height: 1.2;
  margin-bottom: 7px;
}

.lib__who {
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  font-weight: 650;
  color: var(--gold);
  margin-bottom: 13px;
}

.lib__p { font-size: 0.93rem; color: var(--fg-dim); margin-bottom: 20px; }

.lib__card .link-u { margin-top: auto; align-self: flex-start; }

/* ============================================================
   MEDIA
   ============================================================ */

.media {
  background:
    linear-gradient(to bottom, var(--navy-900), var(--navy-850) 46%, var(--navy-900));
}

.media__grid { display: grid; gap: clamp(20px, 2.4vw, 30px); }
@media (min-width: 900px) { .media__grid { grid-template-columns: repeat(2, 1fr); } }

.media__grid > *:first-child { grid-column: 1 / -1; }

.vid {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: left;
  border: 1px solid var(--hair-cool);
  border-radius: 3px;
  overflow: hidden;
  background: var(--navy-800);
  cursor: pointer;
  transition: border-color 0.45s var(--ease), transform 0.55s var(--ease-out);
}
.vid:hover { border-color: var(--hair); transform: translateY(-4px); }

.vid__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-800);
}

.media__grid > *:first-child .vid__frame { aspect-ratio: 21 / 9; }
@media (max-width: 720px) { .media__grid > *:first-child .vid__frame { aspect-ratio: 16 / 10; } }

.vid__fallback {
  position: absolute;
  inset: 0;
  display: block;
  background:
    radial-gradient(ellipse 54% 74% at 22% 16%, rgba(224, 166, 75, 0.5), transparent 62%),
    radial-gradient(ellipse 66% 86% at 92% 96%, rgba(169, 63, 43, 0.42), transparent 64%),
    linear-gradient(148deg, var(--navy-600), var(--navy-800) 68%);
}
.vid__fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 7px);
}

/* local poster sits under the remote YouTube still, so the card is
   never empty while the still loads, or if it is blocked */
.vid__poster { z-index: 0; object-position: 50% 34%; }
.vid__thumb { z-index: 1; }

.vid__frame > img, .vid__frame > iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%; height: 100%;
  border: 0;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease);
}
.vid:hover .vid__frame > img { transform: scale(1.05); filter: saturate(1.06); }

.vid__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(7, 15, 25, 0.95) 4%, rgba(7, 15, 25, 0.5) 46%, rgba(7, 15, 25, 0.05) 86%);
  pointer-events: none;
}
.vid__frame.is-live::after, .vid__frame.is-live .vid__play, .vid__frame.is-live ~ .vid__cap { opacity: 0; pointer-events: none; }

.vid__play {
  position: absolute;
  z-index: 3;
  right: 24px; top: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #16110a;
  box-shadow: 0 14px 34px -10px rgba(224, 166, 75, 0.85);
  transition: transform 0.5s var(--ease-out), background 0.4s var(--ease);
}
.vid:hover .vid__play { transform: scale(1.1); background: var(--gold-hi); }
.vid__play svg { width: 18px; height: 18px; margin-left: 3px; }

.vid__cap {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  display: block;
  padding: clamp(22px, 2.4vw, 34px);
}
.vid__kind {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.vid__h {
  display: block;
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 22, "WONK" 1, "opsz" 90;
  font-size: clamp(1.28rem, 0.85rem + 1.25vw, 2.1rem);
  font-weight: 560;
  letter-spacing: -0.021em;
  line-height: 1.1;
  max-width: 22ch;
  color: var(--fg);
}
.vid__p {
  display: block;
  margin-top: 11px;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 54ch;
}
@media (max-width: 560px) { .vid__p { display: none; } }

.vid--article .vid__play { background: var(--brick); color: #fff; box-shadow: 0 14px 34px -10px rgba(169, 63, 43, 0.85); }
.vid--article:hover .vid__play { background: #c74d35; }
.vid--article .vid__play svg { margin-left: 0; }

/* ============================================================
   BLUEPRINT SIGNUP
   ============================================================ */

.bp {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(78px, 9vw, 132px) 0;
}

.bp__bg { position: absolute; inset: 0; z-index: -2; }
.bp__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.bp__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(9, 19, 31, 0.97) 24%, rgba(9, 19, 31, 0.76) 62%, rgba(9, 19, 31, 0.5)),
    linear-gradient(to bottom, var(--navy-900), transparent 26%, transparent 76%, var(--navy-900));
}

.bp__grid { display: grid; gap: clamp(38px, 4.4vw, 68px); align-items: center; }
@media (min-width: 940px) { .bp__grid { grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr); } }

.bp__title { font-size: var(--t-lg); margin: 18px 0 18px; max-width: 17ch; }

.bp__list { margin-top: 26px; display: grid; gap: 11px; }
.bp__list li {
  display: flex;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--fg-dim);
  align-items: flex-start;
}
.bp__list svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--gold); }

.form {
  background: rgba(12, 26, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: clamp(26px, 3vw, 38px);
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.9);
}

.form__h {
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 60;
  font-size: 1.44rem;
  font-weight: 580;
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin-bottom: 8px;
}
.form__sub { font-size: 0.9rem; color: var(--fg-dim); margin-bottom: 24px; }

.field { position: relative; margin-bottom: 13px; }

.field input {
  width: 100%;
  padding: 15px 16px;
  background: rgba(9, 19, 31, 0.72);
  border: 1px solid var(--hair-cool);
  border-radius: 2px;
  font-size: 0.95rem;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.field input::placeholder { color: var(--fg-faint); }
.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(9, 19, 31, 0.92);
}

.form .btn { width: 100%; justify-content: center; margin-top: 8px; }

.form__fine {
  margin-top: 16px;
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--fg-faint);
}

.form__done {
  display: none;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--gold-hi);
  font-weight: 550;
}
.form__done.is-on { display: flex; }

/* ============================================================
   PROGRAMS
   ============================================================ */

.prog__grid { display: grid; gap: 1px; background: rgba(15, 28, 40, 0.14); border: 1px solid rgba(15, 28, 40, 0.14); }
@media (min-width: 700px) { .prog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .prog__grid { grid-template-columns: repeat(4, 1fr); } }

.prog {
  background: var(--stone);
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.4vw, 32px) clamp(30px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.5s var(--ease);
}
.prog:hover { background: var(--paper); }

.prog__ic {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: var(--gold-deep);
  margin-bottom: 20px;
  border: 1px solid rgba(181, 127, 46, 0.4);
  border-radius: 50%;
}
.prog__ic svg { width: 19px; height: 19px; }

.prog__h {
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 48;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.prog__p { font-size: 0.92rem; color: var(--paper-ink-2); margin-bottom: 22px; }
.prog .link-u { margin-top: auto; align-self: flex-start; color: var(--gold-deep); background-image: linear-gradient(var(--gold-deep), var(--gold-deep)); }

/* ============================================================
   JOURNAL
   ============================================================ */

.jr__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(34px, 4vw, 54px);
}

.jr__grid { display: grid; gap: clamp(22px, 2.6vw, 34px); }
@media (min-width: 760px) { .jr__grid { grid-template-columns: repeat(3, 1fr); } }

.jr__card { display: flex; flex-direction: column; }

.jr__img {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 20px;
  background: var(--navy-800);
}
.jr__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.jr__card:hover .jr__img img { transform: scale(1.05); }
.jr__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 19, 31, 0.5), transparent 55%);
}

.jr__date {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 650;
  color: var(--gold);
  margin-bottom: 10px;
}
.jr__h {
  font-family: var(--ff-display);
  font-variation-settings: "SOFT" 22, "WONK" 1, "opsz" 60;
  font-size: 1.28rem;
  font-weight: 570;
  letter-spacing: -0.019em;
  line-height: 1.2;
  margin-bottom: 11px;
}
.jr__p { font-size: 0.93rem; color: var(--fg-dim); margin-bottom: 18px; }
.jr__card .link-u { margin-top: auto; align-self: flex-start; }

/* ============================================================
   CLOSER
   ============================================================ */

.closer {
  position: relative;
  text-align: center;
  padding: clamp(96px, 12vw, 172px) 0;
  overflow: hidden;
  border-top: 1px solid var(--hair);
}
.closer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(224, 166, 75, 0.17), transparent 68%);
  pointer-events: none;
}
.closer__h {
  position: relative;
  font-size: clamp(2.1rem, 1rem + 4.4vw, 4.4rem);
  max-width: 17ch;
  margin: 0 auto 26px;
}
.closer .lede { margin: 0 auto; max-width: 52ch; }
.closer__actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ============================================================
   FOOTER
   ============================================================ */

.foot { background: var(--navy-900); border-top: 1px solid var(--hair-cool); padding: clamp(56px, 6vw, 88px) 0 0; }

.foot__grid { display: grid; gap: clamp(34px, 4vw, 50px); }
@media (min-width: 840px) { .foot__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.foot__bio { font-size: 0.9rem; color: var(--fg-dim); max-width: 42ch; margin-top: 20px; }

.foot__h {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 17px;
}
.foot__list li { margin-bottom: 10px; }
.foot__list a { font-size: 0.92rem; color: var(--fg-dim); transition: color 0.3s var(--ease); }
.foot__list a:hover { color: var(--gold-hi); }

.foot__bar {
  margin-top: clamp(44px, 5vw, 66px);
  border-top: 1px solid var(--hair-cool);
  padding: 24px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.79rem;
  color: var(--fg-faint);
}

.social { display: flex; gap: 9px; }
.social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--hair-cool);
  border-radius: 50%;
  color: var(--fg-dim);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.4s var(--ease-out);
}
.social a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.social svg { width: 15px; height: 15px; }

/* ============================================================
   MOTION ENTRY STATE  (removed by JS, or by the no-js fallback)
   ============================================================ */

.js .anim { opacity: 0; transform: translateY(26px); }
.js .anim-mask > * { transform: translateY(105%); }

@media (prefers-reduced-motion: reduce) {
  .js .anim, .js .anim-mask > * { opacity: 1 !important; transform: none !important; }
  .hero__scroll i { animation: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
