/* ============================================================
   Riya Daftary — AI, business & investing
   Design mirrored from learnaiwithmariah.com (source-verified DNA)
   Cream / warm ink / red / orange · Oswald caps + Helvetica + Fraunces italic
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; padding: 0; }

/* ---------- Tokens (exact palette from her CSS) ---------- */
:root {
  --cream:      #f4f7f1;   /* soft sage-tinted off-white (page background) */
  --cream-2:    #e8efe3;   /* light sage for alt panels */
  --ink:        #2f2d2d;
  --red:        #344c3d;   /* primary accent — evergreen sage (AA on cream) */
  --red-deep:   #26382c;   /* darker sage for hover/emphasis */
  --sage:       #8ea58c;   /* mid sage — decorative / large only */
  --moss:       #738a6e;   /* moss — decorative accents */
  --orange:     #d06e2e;      /* decorative / large only */
  --orange-deep:#a8531d;      /* small status text — ~5:1 on cream */
  --muted:      #6b665f;       /* ~5.5:1 on cream (AA for normal text) */
  --muted-soft: rgba(47,45,45,.58); /* legacy soft muted for large/decorative use */
  --line:       rgba(47,45,45,.14);
  --line-2:     rgba(47,45,45,.28);
  --line-3:     rgba(47,45,45,.4);
  --red-light:  rgba(142,165,140,.18);
  --red-hover:  rgba(52,76,61,.1);
  --dark:       #171515;   /* about stage */
  --tan:        #eadac8;

  --font-display: "Oswald", "Archivo Narrow", "Arial Narrow", sans-serif;
  --font-body:    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif:   "Fraunces", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --measure: 66ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --header-h: 76px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: .01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 600; line-height: .98; }
h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.05; }
/* long card titles read better in sentence case with a little more leading */
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); text-transform: none; letter-spacing: 0; line-height: 1.14; }
h4 { font-size: 1.15rem; letter-spacing: .03em; }

/* accent word inside a heading: same font + size as the heading, just the red accent color */
.serif-em {
  color: var(--red);
  font-style: normal;
}
.serif-em--orange { color: var(--orange); }
.serif-em--cream { color: var(--cream); }
/* inverted highlight: red block, cream text — for a word or two inside a heading */
.hl { background: var(--red); color: var(--cream); padding: 0 .2em; border-radius: .06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

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

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--cream2 { background: var(--cream-2); }
.section--dark { background: var(--dark); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark p { color: rgba(255,250,231,.72); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
}
.section-head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .eyebrow { display: block; margin-bottom: 1rem; }
.section-head p { margin-top: 1rem; font-size: 1.15rem; color: var(--muted); line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .95rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
  line-height: 1;
}
.btn--primary { background: var(--red); color: var(--cream); }
.btn--primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-3); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover { background: #fff; transform: translateY(-2px); }

.arrow-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red);
}
.arrow-link .arw { transition: transform .28s ease; }
.arrow-link:hover .arw { transform: translateX(6px); }

/* ---------- Tags / badges / levels ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-body); font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red);
}
.tag--muted { color: var(--muted); }
.level {
  font-family: var(--font-body); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.status {
  font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep);
  border: 1px solid rgba(168,83,29,.5); padding: .3rem .6rem; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
}
.status--tested { color: var(--red); border-color: rgba(52,76,61,.45); }
.coming {
  font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border: 1px dashed var(--line-3); padding: .3rem .6rem; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -16px rgba(47,45,45,.5); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.brand__name .dot { color: var(--red); }
.brand__desc { font-family: var(--font-body); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }

.nav__links { display: flex; align-items: center; gap: .2rem; }
.nav__links a {
  font-family: var(--font-body); font-weight: 600; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .6rem .85rem; color: var(--ink); position: relative;
  transition: color .2s ease;
}
.nav__links a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav__links a:hover { color: var(--red); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--red); }

.nav__actions { display: flex; align-items: center; gap: .55rem; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  cursor: pointer; color: var(--ink); transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.icon-btn svg { width: 18px; height: 18px; }
.nav__toggle { display: none; }

.searchbar { display: none; border-bottom: 1px solid var(--line); background: var(--cream); }
.searchbar.open { display: block; }
.searchbar__inner { display: flex; align-items: center; gap: .7rem; padding-block: 1rem; border-bottom: 2px solid transparent; transition: border-color .2s ease; }
.searchbar__inner:focus-within { border-bottom-color: var(--red); }
.searchbar input { flex: 1; border: none; background: transparent; font-size: 1.1rem; padding: .4rem 0; }
.searchbar input:focus { outline: none; }

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-130%); transition: transform .35s ease; box-shadow: 0 20px 40px -24px rgba(47,45,45,.5);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 1rem .3rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .nav__links a::after { display: none; }
  .nav__toggle { display: grid; }
}

/* ============================================================
   HERO (full-bleed photo stage + scroll zoom)
   ============================================================ */
.hero-scroll { position: relative; }
.hero {
  position: sticky; top: var(--header-h);
  height: calc(100svh - var(--header-h));
  overflow: hidden; display: flex; align-items: flex-end;
}
.hero--static { position: relative; top: 0; }
.hero__stage {
  position: absolute; inset: 0; z-index: 0;
  transform: scale(var(--hero-scale, 1));
  transform-origin: 53% 38%;
  transition: transform .18s ease-out;
  will-change: transform;
  background-color: #171515;
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
/* poster = the real first frame, so the stage is never blank (JS off / frames loading / reduced motion) */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #171515 url("assets/hero-seq/f-0001.jpg") center 30% / cover no-repeat; }
.hero__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform, opacity; }
.hero__skyline { transform: scale(var(--sky-scale, 1)); transform-origin: 50% 44%; opacity: var(--sky-op, 1); transition: transform .12s linear, opacity .12s linear; }
.hero__reveal { opacity: var(--rv-op, 0); transform: scale(var(--rv-scale, 1.06)) rotate(var(--rv-rot, 1.4deg)); transform-origin: 50% 42%; object-position: 50% 26%; transition: transform .14s ease-out, opacity .14s linear; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(23,21,21,.86) 0%, rgba(23,21,21,.25) 40%, rgba(23,21,21,0) 66%),
    linear-gradient(to right, rgba(23,21,21,.5) 0%, rgba(23,21,21,0) 55%);
}
.hero__ph-note {
  position: absolute; top: calc(var(--header-h) + 1rem); left: 50%; transform: translateX(-50%);
  z-index: 3; font-family: var(--font-body); font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream); background: rgba(23,21,21,.45);
  border: 1px solid rgba(255,250,231,.35); padding: .4rem .85rem; border-radius: 999px; backdrop-filter: blur(4px);
  text-align: center;
}
.hero__inner {
  position: relative; z-index: 2; width: 100%;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  opacity: var(--hero-fade, 1);
}
.hero__cue {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 3;
  font-family: var(--font-body); font-size: .64rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cream); opacity: .85;
  display: flex; align-items: center; gap: .5rem; text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.hero__cue::after { content: "↓"; font-size: 1rem; animation: cuebob 1.6s ease-in-out infinite; }
@keyframes cuebob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(5px);} }

/* ---------- Mobile refinements ---------- */
.brand__name { white-space: nowrap; }
@media (max-width: 600px) {
  .nav__actions > * { display: none; }                 /* hide search / tiktok / newsletter on mobile */
  .nav__actions > .nav__toggle { display: grid; }      /* keep only the menu button */
  .brand__name { font-size: 1.1rem; }
  .brand__desc { font-size: .62rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero__sub { max-width: 100%; }
  .introstrip__lead { font-size: clamp(1.15rem, 5vw, 1.5rem); }
}
.hero__eyebrow { color: var(--cream); letter-spacing: .24em; opacity: .9; margin-bottom: .8rem; display: block; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hero h1 {
  color: var(--cream); font-weight: 600;
  font-size: clamp(3.4rem, 13vw, 10rem); line-height: .86;
  text-shadow: 0 2px 30px rgba(0,0,0,.28);
}
.hero h1 .serif-em { color: var(--red); }
.hero__sub { color: var(--cream); font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 600; margin-top: 1.1rem; max-width: 40ch; text-shadow: 0 1px 16px rgba(0,0,0,.35); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Clean, social-proof-led hero (no photo) ---------- */
.hero-lite {
  background:
    radial-gradient(120% 90% at 85% -10%, var(--red-light) 0%, rgba(255,250,231,0) 55%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.hero-lite__inner {
  max-width: 60rem;
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero-lite h1 {
  color: var(--ink); font-weight: 600;
  font-size: clamp(3rem, 10vw, 7rem); line-height: .9;
  margin: .5rem 0 0;
}
.hero-lite h1 .serif-em { color: var(--red); }
.hero-lite__proof {
  color: var(--ink);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem); line-height: 1.5;
  font-weight: 500;
  margin-top: 1.4rem; max-width: 48ch;
}
.hero-lite__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
@media (max-width: 600px) {
  .hero-lite__cta { flex-direction: column; align-items: stretch; }
  .hero-lite__cta .btn { justify-content: center; }
}

/* ============================================================
   INTRO STRIP (below hero)
   ============================================================ */
.introstrip { border-bottom: 1px solid var(--line); }
.introstrip__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.introstrip__lead { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.4; font-weight: 500; }
.introstrip__lead .serif-em { font-size: 1em; }
.introstrip__meta { display: grid; gap: 1rem; }
.introstrip__meta .row { display: flex; gap: .8rem; align-items: baseline; font-size: .98rem; color: var(--muted); }
.introstrip__meta .row b { color: var(--ink); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; white-space: nowrap; min-width: 6rem; }
@media (max-width: 800px) { .introstrip__inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .introstrip__meta .row { flex-direction: column; gap: .1rem; } .introstrip__meta .row b { min-width: 0; } }

/* ============================================================
   TOOLS STRIP
   ============================================================ */
.tools { border-bottom: 1px solid var(--line); padding-block: clamp(2.75rem, 5vw, 4rem); }
.tools__label { display: block; text-align: center; font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
/* infinite logo marquee — each logo on a uniform clean card so mixed sources don't clash */
.tools__marquee { overflow: hidden; margin-top: 2.2rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tools__track { display: flex; width: max-content; animation: tools-marquee 60s linear infinite; }
.tools__marquee:hover .tools__track { animation-play-state: paused; }
.tools__set { display: flex; align-items: center; gap: 1.4rem; padding-right: 1.4rem; }
.tools__set a { flex: 0 0 auto; width: 78px; height: 78px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 3px 14px -9px rgba(47,45,45,.4); transition: transform .18s ease, box-shadow .18s ease; }
.tools__set a:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -14px rgba(47,45,45,.5); }
.tool-logo { height: 42px; width: 42px; object-fit: contain; display: block; }
@keyframes tools-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tools__marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .tools__track { animation: none; width: 100%; }
  .tools__set { flex-wrap: wrap; padding-right: 0; justify-content: center; }
  .tools__set + .tools__set { display: none; }
}

/* ============================================================
   TILE GRID (big flat cards, hairline grid, red hover flip)
   ============================================================ */
.tilegrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line-3); border-left: 1px solid var(--line-3); }
.tilegrid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px) { .tilegrid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px) { .tilegrid, .tilegrid--3 { grid-template-columns: 1fr; } }

.tile {
  position: relative; display: flex; flex-direction: column;
  border-right: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3);
  padding: clamp(1.6rem, 2.8vw, 2.5rem);
  min-height: 250px; background: var(--cream);
  transition: background .28s ease, color .28s ease;
}
.tile__top { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.tile h3 { font-size: clamp(1.4rem, 2.1vw, 1.95rem); line-height: 1.12; }
.tile p { margin-top: .9rem; color: var(--muted); font-size: 1rem; flex: 1; }
.tile__meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.tile__go { margin-top: 1.4rem; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* big red arrow affordance (replaces "read the guide") */
.tile__arrow { margin-top: 1.4rem; align-self: flex-start; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--red); transition: transform .22s ease, color .22s ease; }
.tile--link:hover .tile__arrow, .tile--link:focus-within .tile__arrow { color: var(--cream); transform: translateX(8px); }
/* bigger card titles in the library */
[data-library] .tile h3 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); line-height: 1.12; }

/* red flip on hover AND keyboard focus (only interactive tiles) */
.tile--link:hover, .tile--link:focus-within { background: var(--red); color: var(--cream); }
.tile--link:hover h3, .tile--link:hover .tile p, .tile--link:hover p,
.tile--link:focus-within h3, .tile--link:focus-within .tile p, .tile--link:focus-within p { color: var(--cream); }
.tile--link:hover .tag, .tile--link:hover .level, .tile--link:hover .arrow-link,
.tile--link:focus-within .tag, .tile--link:focus-within .level, .tile--link:focus-within .arrow-link { color: var(--cream); }
.tile--link:hover .status, .tile--link:hover .coming,
.tile--link:focus-within .status, .tile--link:focus-within .coming { color: var(--cream); border-color: rgba(255,250,231,.5); }
.tile--link:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.tile--coming { background: var(--red-light); }

/* numbered tiles (paths / steps) */
.tile__n { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .1em; color: var(--red); }
.tile--link:hover .tile__n, .tile--link:focus-within .tile__n { color: var(--cream); }

/* ============================================================
   WATCHLIST tiles
   ============================================================ */
.wtile { border-right: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); padding: clamp(1.8rem, 3.2vw, 3rem); background: var(--cream); }
.wtile__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.wtile dl { margin-top: 1.3rem; display: grid; gap: .2rem; font-size: .96rem; }
.wtile dt { color: var(--muted); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .7rem; }
.wtile dt:first-child { margin-top: 0; }
.wtile dd { color: var(--ink); }
.wtile__note { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.wtile__note b { color: var(--ink); }

/* ============================================================
   EVENTS
   ============================================================ */
.eventbanner { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; background: var(--red); color: var(--cream); border-radius: 12px; padding: 1.1rem 1.6rem; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.eventbanner:hover { background: var(--red-deep); transform: translateY(-2px); }
.eventbanner__tag { font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,250,231,.18); padding: .4rem .75rem; border-radius: 999px; white-space: nowrap; }
.eventbanner__text { font-weight: 600; font-size: 1.05rem; flex: 1; min-width: 220px; }
.eventbanner__go { font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }

.event { border: 1px solid var(--line-2); border-radius: 14px; padding: clamp(1.6rem, 3.5vw, 3rem); background: var(--cream); }
.event__meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.event__date { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.event h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
.event__lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; color: var(--ink); margin-top: 1rem; max-width: 62ch; }
.event__facts { display: grid; grid-template-columns: auto 1fr; gap: .7rem 1.6rem; margin-top: 1.8rem; max-width: 62ch; }
.event__facts dt { font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.event__facts dd { color: var(--ink); font-size: 1.02rem; }
.event__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.event__note { margin-top: 1.2rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) { .event__facts { grid-template-columns: 1fr; gap: .1rem; } .event__facts dt { padding-top: .8rem; } }

/* ============================================================
   LIBRARY filter bar
   ============================================================ */
.filterbar { position: relative; z-index: 1; background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: .5rem 1rem; }
.filter-search { display: flex; align-items: center; gap: .8rem; border-bottom: 2px solid var(--line-3); padding: 1.2rem .2rem; margin-top: 1.2rem; margin-bottom: .5rem; transition: border-color .2s ease; }
.filter-search:focus-within { border-bottom-color: var(--red); }
.filter-search input { flex: 1; border: none; background: transparent; font-size: 1.15rem; }
.filter-search input:focus { outline: none; }
.filter-row { display: flex; align-items: baseline; gap: .6rem 1rem; padding: .55rem 0; flex-wrap: wrap; }
.filter-row__label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); min-width: 4.5rem; padding-top: .55rem; }
.chips { display: flex; gap: .55rem; flex-wrap: wrap; }
@media (max-width: 620px) { .filter-row { flex-direction: column; align-items: stretch; gap: .4rem; } .filter-row__label { padding-top: 0; } }
.chip {
  font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  min-height: 40px; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  cursor: pointer; transition: all .18s ease;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--cream); }
.filter-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.filter-count { font-size: .9rem; color: var(--muted); }
.filter-count b { color: var(--red); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.sort select { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: .5rem 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.empty-state { text-align: center; color: var(--muted); padding: 4rem 1rem; }

/* ============================================================
   GUIDE PAGE
   ============================================================ */
.breadcrumb { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 1.6rem; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin-inline: .5rem; }

.guide-hero { padding-block: 1.4rem clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.guide-hero__tags { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.guide-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); max-width: 16ch; }
.guide-hero__tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.35; color: var(--ink); margin-top: 1.4rem; max-width: 40ch; }
.guide-hero__by { display: flex; align-items: center; gap: 1.3rem; margin-top: 2rem; flex-wrap: wrap; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.guide-hero__by .who { display: flex; align-items: center; gap: .65rem; color: var(--ink); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--cream); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }

.guide-layout { display: grid; grid-template-columns: 210px 1fr; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } }
.toc { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; font-size: .8rem; }
.toc__label { font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.toc a { display: block; padding: .4rem 0 .4rem .9rem; color: var(--muted); border-left: 2px solid var(--line); font-weight: 600; letter-spacing: .04em; transition: all .2s ease; }
.toc a:hover, .toc a.active { color: var(--red); border-color: var(--red); }
.guide-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; margin-top: 1.6rem; }
.toc__toggle { display: none; }
@media (max-width: 900px) {
  .toc { position: static; display: block; align-self: stretch; margin-bottom: 1.5rem; border: 1px solid var(--line-2); border-radius: 10px; padding: .2rem 1rem; }
  .toc__label { display: none; }
  .toc__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; background: none; border: none; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; padding: .85rem 0; cursor: pointer; color: var(--ink); }
  .toc__toggle::after { content: "+"; color: var(--red); font-size: 1.3rem; line-height: 1; }
  .toc.open .toc__toggle::after { content: "\2013"; }
  .toc__links { display: none; padding-bottom: .6rem; }
  .toc.open .toc__links { display: block; }
}

/* prose */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { margin-top: 3rem; scroll-margin-top: calc(var(--header-h) + 20px); font-size: clamp(1.7rem, 3vw, 2.4rem); text-transform: none; letter-spacing: 0; line-height: 1.14; }
.prose h2 + p { margin-top: 1.1rem; }
.prose h3 { margin-top: 2rem; font-size: 1.35rem; }
.prose p, .prose li { font-size: 1.11rem; line-height: 1.7; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-top: .55rem; }
.prose li::marker { color: var(--red); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--red-deep); }
/* buttons inside prose must not inherit the red underlined link styling */
.prose a.btn { text-decoration: none; }
.prose a.btn--primary, .prose a.btn--primary:hover { color: var(--cream); }
.prose a.btn--cream, .prose a.btn--cream:hover, .prose a.btn--ghost { color: var(--ink); }
.prose a.btn--ghost:hover { color: var(--red); }
.lead-para { font-size: 1.4rem !important; line-height: 1.5 !important; font-weight: 500; }
.lead-para .serif-em { font-size: 1em; }

/* numbered component blocks */
.component { border: 1px solid var(--line-2); background: var(--cream); padding: 1.5rem 1.6rem; display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start; }
.component + .component { border-top: none; }
.component__n { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color: var(--red); line-height: 1; }
.component__b h4 { font-size: 1.05rem; letter-spacing: .04em; }
.component__b p { margin-top: .5rem; font-size: 1rem; color: var(--muted); }

/* callout */
.callout { border-left: 3px solid var(--red); background: var(--red-light); padding: 1.2rem 1.4rem; }
.callout--warn { border-color: var(--orange); background: rgba(208,110,46,.07); }
.callout__t { font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .06em; color: var(--red); margin-bottom: .5rem; }
.callout--warn .callout__t { color: var(--orange); }
.callout p { font-size: 1rem; color: var(--ink); }

/* copy blocks */
.copyblock { border: 1px solid var(--ink); background: #201d1d; }
.copyblock__bar { display: flex; align-items: center; justify-content: space-between; padding: .6rem .5rem .6rem 1rem; background: #171515; border-bottom: 1px solid rgba(255,250,231,.1); }
.copyblock__label { font-family: var(--font-body); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,250,231,.6); }
.copybtn { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; background: rgba(255,250,231,.1); color: var(--cream); border: 1px solid rgba(255,250,231,.2); padding: .42rem .8rem; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background .2s ease; }
.copybtn:hover { background: rgba(255,250,231,.2); }
.copybtn.copied { background: var(--red); border-color: var(--red); }
.copyblock pre { margin: 0; padding: 1.3rem; overflow-x: auto; }
.copyblock code { font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: .86rem; line-height: 1.65; color: #f0ead9; white-space: pre-wrap; word-break: break-word; }
.copyblock code .ph { color: var(--orange); }

/* fact / assumption / interpretation ledger */
.ledger { display: grid; gap: 0; border: 1px solid var(--line-3); }
.ledger__row { display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid var(--line-3); }
.ledger__row:first-child { border-top: none; }
@media (max-width: 640px) { .ledger__row { grid-template-columns: 1fr; } }
.ledger__tag { padding: 1rem 1.1rem; font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .04em; }
.ledger__tag--fact { background: var(--red-light); color: var(--red); }
.ledger__tag--assume { background: rgba(208,110,46,.09); color: var(--orange); }
.ledger__tag--interp { background: var(--tan); color: var(--ink); }
.ledger__body { padding: 1rem 1.2rem; font-size: 1rem; color: var(--ink); }
.ledger__body cite { display: block; margin-top: .5rem; font-size: .8rem; color: var(--muted); font-style: normal; }
.ledger__body cite a { color: var(--muted); text-decoration: underline; }
.ledger__body cite a:hover { color: var(--red); }

/* memo table */
.memo { border: 1px solid var(--line-3); }
.memo__row { display: grid; grid-template-columns: 190px 1fr; border-top: 1px solid var(--line-3); }
.memo__row:first-child { border-top: none; }
@media (max-width: 640px) { .memo__row { grid-template-columns: 1fr; } }
.memo__k { padding: 1rem 1.2rem; background: var(--cream-2); font-family: var(--font-display); font-weight: 500; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; }
.memo__v { padding: 1rem 1.2rem; font-size: 1rem; color: var(--ink); }

/* download */
.download { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; border: 1px solid var(--ink); padding: 1.5rem 1.7rem; background: var(--cream); }
.download__ico { width: 50px; height: 50px; border-radius: 50%; background: var(--red); color: var(--cream); display: grid; place-items: center; flex: none; }
.download__ico svg { width: 24px; height: 24px; }
.download__b { flex: 1; min-width: 12rem; }
.download__b h4 { font-size: 1.25rem; }
.download__b p { font-size: .9rem; color: var(--muted); margin-top: .3rem; }

/* sources */
.sources { font-size: .95rem; }
.sources li { padding: .8rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.sources li:first-child { border-top: none; }
.sources a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }

/* next lesson */
.next-lesson { display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; flex-wrap: wrap; border: 1px solid var(--ink); background: var(--red-light); padding: 1.6rem 1.8rem; }
.next-lesson__l .k { font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.next-lesson__l h3 { margin-top: .5rem; font-size: clamp(1.3rem, 2vw, 1.7rem); }

/* ============================================================
   ABOUT — cinematic pinned stage + journey timeline
   ============================================================ */
.about-story { position: relative; }
.about-stage {
  position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h));
  background: var(--dark); color: var(--cream); overflow: hidden;
  display: flex; align-items: center;
}
.about-stage__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("assets/riya-hero-web.jpg") 62% 26% / cover no-repeat;
  transform: scale(var(--about-scale, 1)); transform-origin: 62% 30%;
  transition: transform .18s ease-out; will-change: transform;
}
.about-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to right, rgba(23,21,21,.92) 0%, rgba(23,21,21,.6) 55%, rgba(23,21,21,.4) 100%),
    linear-gradient(to top, rgba(23,21,21,.75), rgba(23,21,21,0) 55%);
}
.about-stage__inner { position: relative; z-index: 2; }
.about-stage__kicker { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,250,231,.6); }
.about-stage h1 { color: var(--cream); font-size: clamp(3rem, 11vw, 9rem); margin-top: .6rem; }
.about-stage h1 .serif-em { color: var(--red); }
.about-beats { margin-top: 2rem; display: grid; gap: 1.2rem; max-width: 32ch; }
.about-beat { font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.3; color: rgba(255,250,231,.72); transition: color .4s ease, transform .4s ease; }
.about-beat.lit { color: var(--cream); }
.about-hint { margin-top: 2rem; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,250,231,.5); display: flex; align-items: center; gap: .5rem; }

.journey { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
@media (max-width: 900px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .journey { grid-template-columns: 1fr; } }
.milestone__photo { aspect-ratio: 4/5; background: var(--cream-2); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 1rem; }
.milestone h3 { font-family: var(--font-serif); font-style: italic; font-weight: 500; text-transform: none; font-size: 1.5rem; margin-top: 1.1rem; color: var(--red); }
.milestone p { margin-top: .6rem; font-size: .96rem; color: var(--muted); line-height: 1.5; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter { text-align: center; }
.newsletter__inner { max-width: 42rem; margin-inline: auto; }
.newsletter h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.newsletter p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; max-width: 30rem; margin-inline: auto; }
.nl-label { flex-basis: 100%; text-align: left; font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.newsletter__form input { flex: 1; min-width: 0; border: 1.5px solid var(--line-3); background: var(--cream); border-radius: 999px; padding: .95rem 1.4rem; font-size: 1rem; }
.newsletter__note a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.newsletter__form input:focus { outline: none; border-color: var(--red); }
.newsletter__note { margin-top: 1.1rem; font-size: .82rem; color: var(--muted); }
.form-msg { margin-top: 1rem; font-size: .95rem; color: var(--red-deep); font-weight: 600; min-height: 1.2rem; }
.form-msg.is-error { color: var(--red-deep); }
.form-msg.is-success { color: var(--ink); font-weight: 500; }
.newsletter__form input.is-invalid { border-color: var(--red); background: var(--red-light); }
.newsletter__form button[disabled] { opacity: .65; cursor: progress; }
/* where-are-you-starting picker */
.level-choice { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: 1.1rem; }
.level-choice label { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: .5rem 1.1rem; border: 1.5px solid var(--line-3); border-radius: 999px; color: var(--muted); transition: background .18s ease, color .18s ease, border-color .18s ease; }
.level-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.level-choice label:has(input:checked) { background: var(--red); color: var(--cream); border-color: var(--red); }
.level-choice label:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 520px) { .newsletter__form { flex-direction: column; border-radius: 0; } }

/* ============================================================
   PAGE HEAD (interior)
   ============================================================ */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
.page-head p { font-size: 1.2rem; color: var(--muted); margin-top: 1.2rem; max-width: 46rem; line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: var(--cream); margin-top: clamp(3rem, 6vw, 5rem); }
.site-footer a { color: rgba(255,250,231,.75); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; text-transform: uppercase; color: var(--cream); }
.footer-brand__name .dot { color: var(--red); }
.footer-brand p { color: rgba(255,250,231,.6); margin-top: 1rem; max-width: 28rem; font-size: .98rem; line-height: 1.5; }
.footer-col h5 { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,250,231,.5); margin-bottom: 1.1rem; }
.footer-col a { display: block; padding: .4rem 0; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: color .2s ease; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(255,250,231,.12); padding-block: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: rgba(255,250,231,.5); }
.footer-legal a { color: rgba(255,250,231,.7); text-decoration: none; }
.footer-legal a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Reveal on load / scroll
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); animation: reveal .8s ease forwards; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
  .reveal[data-d="1"] { animation-delay: .08s; }
  .reveal[data-d="2"] { animation-delay: .18s; }
  .reveal[data-d="3"] { animation-delay: .28s; }
  .reveal[data-d="4"] { animation-delay: .38s; }
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* skip-to-content link (keyboard visible only) */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--ink); color: var(--cream);
  font-family: var(--font-body); font-weight: 700; font-size: .85rem;
  letter-spacing: .04em; padding: .7rem 1.1rem; border-radius: 8px;
  transition: top .18s ease;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--red); outline-offset: 2px; }

/* honour reduced-motion: kill smooth scroll, decorative loops, transitions */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__cue::after { animation: none; }
  .hero__stage, .about-stage__bg { transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* utilities */
.muted { color: var(--muted); }
.center { text-align: center; }
.pill-note { display: inline-flex; align-items: center; gap: .5rem; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: .4rem .85rem; }
.divider { height: 1px; background: var(--line); border: none; margin-block: clamp(2rem,4vw,3rem); }
.stack-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ============================================================
   Sticky mobile call-to-action bar
   ============================================================ */
.mobile-cta { display: none; }
@media (max-width: 600px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: flex; gap: .6rem;
    padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255,250,231,.94); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-2);
  }
  .mobile-cta .btn { flex: 1; padding: .85rem 1rem; text-align: center; justify-content: center; }
  body { padding-bottom: 4.75rem; }
}

/* ============================================================
   Authoritative mobile overrides (must come AFTER base hero rules
   so equal-specificity mobile sizes actually win — fixes H06)
   ============================================================ */
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); line-height: .92; }
  .introstrip__lead { font-size: clamp(1.15rem, 5vw, 1.5rem); }
}
@media (max-width: 900px) { .nav__links[inert] { display: none; } }

/* ============================================================
   Email gate (shown after first scroll, closes on email submit)
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
html.gate-open, body.gate-open { overflow: hidden !important; }
.gate {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(23, 21, 21, .74);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: gate-fade .25s ease both;
}
.gate--closing { animation: gate-fade .25s ease reverse both; pointer-events: none; }
@keyframes gate-fade { from { opacity: 0; } to { opacity: 1; } }
.gate__card {
  background: var(--cream); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 4px;
  width: 100%; max-width: 34rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  animation: gate-pop .3s cubic-bezier(.2, .9, .3, 1.15) both;
}
@keyframes gate-pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.gate__card h2 { margin: .6rem 0 1rem; }
.gate__card > p { margin: 0 0 1.25rem; color: var(--ink); line-height: 1.5; }
.gate__form { display: flex; flex-direction: column; gap: .6rem; }
.gate__form input {
  width: 100%; padding: .85rem 1rem; font: inherit;
  border: 1.5px solid var(--ink); border-radius: 4px;
  background: #fff; color: var(--ink);
}
.gate__form input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.gate__form .btn { width: 100%; }
.gate__msg { min-height: 1.2em; margin: 1.25rem 0 0; font-size: .95rem; line-height: 1.4; color: var(--muted); }
.gate__msg.is-error { color: var(--red-deep); }
@media (min-width: 560px) {
  .gate__form { flex-direction: row; }
  .gate__form input { flex: 1; }
  .gate__form .btn { width: auto; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .gate, .gate--closing, .gate__card { animation: none; }
}
