/* ==========================================================================
   MACEDONIAN EDITION — macedonianedition.ca
   Design system v2 · palette drawn from the official logo (#f00000 red) and
   the legacy site's gradient (#ffdd72 gold · #ffb272 apricot · #fffdf2 cream)
   set on a deep burgundy-plum broadcast dark.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #150a10;
  --bg-2: #1d0e16;
  --bg-3: #2b141f;
  --surface: rgba(255, 244, 226, 0.05);
  --surface-2: rgba(255, 244, 226, 0.085);
  --line: rgba(255, 237, 210, 0.13);
  --line-soft: rgba(255, 237, 210, 0.075);
  --text: #fbf5e7;
  --text-dim: #c2b4a8;
  --text-faint: #8d7d74;
  --gold: #ffdd72;         /* legacy gold */
  --apricot: #ffb272;      /* legacy apricot */
  --red: #e51414;          /* official logo red */
  --burgundy: #6f1d31;
  --plum: #4a1f3e;
  --cream: #fffdf2;        /* legacy cream */
  --sun: linear-gradient(118deg, #e51414 0%, #ff9548 46%, #ffdd72 100%);
  --sun-soft: linear-gradient(118deg, rgba(229, 20, 20, .14), rgba(255, 149, 72, .14), rgba(255, 221, 114, .14));
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 60px -24px rgba(10, 2, 6, .8);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.45, .5, 1);
  --header-h: 76px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  /* decorative glows (e.g. .hero-feature::before) may extend past the
     viewport on sections that don't clip — never let them cause a
     horizontal scroll */
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #5a2b3a var(--bg);
}

body {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(111, 29, 49, .32), transparent 55%),
    radial-gradient(100% 80% at -10% 20%, rgba(74, 31, 62, .3), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* custom scrollbar (webkit) */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6f1d31, #3a1a2a);
  border-radius: 8px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #93304a, #4a2136); }

/* film grain + vignette laid over everything, never intercepting input */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.95 0 0 0 0 0.85 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video, iframe { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(255, 149, 72, .4); color: #fff8ea; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}

/* ---------- splash intro ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 60% at 50% 42%, rgba(111, 29, 49, .55), transparent 70%),
    #120810;
  overflow: hidden;
  transition: transform .75s cubic-bezier(.7, 0, .3, 1), opacity .5s ease .25s;
}
.splash::before { /* rotating sun sweep */
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg,
    transparent 0 8%, rgba(255, 221, 114, .06) 12%, transparent 16%,
    transparent 33%, rgba(229, 20, 20, .07) 38%, transparent 43%,
    transparent 66%, rgba(255, 178, 114, .07) 72%, transparent 78%);
  animation: splashSweep 7s linear infinite;
}
@keyframes splashSweep { to { transform: rotate(360deg); } }

.splash-inner { position: relative; text-align: center; padding: 1rem; }
.splash-card {
  display: inline-block;
  background: var(--cream);
  border-radius: 26px;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(2rem, 5vw, 3.4rem);
  box-shadow:
    0 0 0 1px rgba(255, 221, 114, .25),
    0 30px 90px -20px rgba(229, 20, 20, .35),
    0 8px 40px rgba(0, 0, 0, .6);
  transform: scale(.86);
  opacity: 0;
  animation: splashCard 1s var(--ease-spring) .15s forwards;
}
.splash-card img {
  width: clamp(220px, 38vw, 380px);
  height: auto;
}
@keyframes splashCard {
  to { transform: scale(1); opacity: 1; }
}
.splash-tag {
  margin-top: 1.6rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: splashTag .8s var(--ease-out) .75s forwards;
}
@keyframes splashTag {
  from { opacity: 0; transform: translateY(12px); letter-spacing: .5em; }
  to { opacity: 1; transform: none; letter-spacing: .34em; }
}
.splash-bar {
  margin: 1.4rem auto 0;
  width: 180px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 237, 210, .14);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn .4s ease .8s forwards;
}
.splash-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--sun);
  transform: translateX(-100%);
  animation: splashLoad 1.15s cubic-bezier(.6, .05, .3, 1) .85s forwards;
}
@keyframes splashLoad { to { transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

.splash.is-done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.splash.is-skipped { display: none; }
body.is-splashing { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .splash { transition: opacity .3s ease; }
  .splash.is-done { transform: none; }
  .splash::before { animation: none; }
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 300;
  background: var(--sun);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 150;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(29, 14, 22, .8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease-out), border-color .3s, background .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
/* don't float above the open mobile drawer (header stack is z-index 100) */
body.nav-open .to-top { opacity: 0; pointer-events: none; }
.to-top:hover { border-color: rgba(255, 221, 114, .5); background: rgba(43, 20, 31, .9); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- utilities ---------- */
.container { width: min(1200px, 92vw); margin-inline: auto; }
.container--narrow { width: min(880px, 92vw); margin-inline: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--sun);
  border-radius: 2px;
}

.grad-text {
  background: var(--sun);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: .55rem; }
.section-head p { color: var(--text-dim); margin-top: 1rem; max-width: 58ch; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .92em 1.7em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .35s var(--ease-spring), border-color .3s, background .3s, box-shadow .3s;
  will-change: transform;
}
.btn:hover { border-color: rgba(255, 221, 114, .55); box-shadow: 0 8px 30px -12px rgba(255, 149, 72, .4); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--sun {
  background: var(--sun);
  border-color: transparent;
  color: #2b0d06;
}
.btn--sun:hover { box-shadow: 0 10px 38px -10px rgba(255, 149, 72, .7); }

.btn--ghost { background: transparent; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: border-color .4s, height .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
/* The scrolled "glass" lives on a pseudo-element: a backdrop-filter on
   .site-header itself would make the header the containing block for the
   fixed-position mobile drawer (.site-nav), collapsing the open menu to the
   header's height and leaving the links floating on a transparent page. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(21, 10, 16, .78);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  opacity: 0;
  transition: opacity .4s;
}
.site-header.is-scrolled {
  height: 62px;
  border-bottom-color: var(--line-soft);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}

/* brand: the official script logo on a cream broadcast bug */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.brand .brand-bug {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  border-radius: 12px;
  padding: .42rem .7rem;
  box-shadow: 0 2px 14px rgba(229, 20, 20, .18), inset 0 0 0 1px rgba(229, 20, 20, .08);
  transition: transform .35s var(--ease-spring), box-shadow .3s;
}
.brand:hover .brand-bug { transform: scale(1.04) rotate(-1deg); box-shadow: 0 4px 22px rgba(229, 20, 20, .32); }
.brand img { height: 26px; width: auto; }
.site-footer .brand img { height: 34px; }

.site-nav { display: flex; align-items: center; gap: .1rem; }
.site-nav a:not(.btn) {
  position: relative;
  padding: .55em .8em;
  font-size: .92rem;
  font-weight: 550;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color .25s;
  white-space: nowrap;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: .8em; right: .8em; bottom: .28em;
  height: 1.5px;
  background: var(--sun);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--text); }
.site-nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  margin-left: .55rem;
  padding: .62em 1.15em;
  font-size: .88rem;
}
.site-nav .nav-cta, .site-nav .nav-cta:hover { color: #2b0d06; }

/* language toggle (МК ⇄ EN) */
.site-nav a.lang-switch {
  margin-left: .45rem;
  padding: .5em .95em;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold);
  border: 1px solid rgba(255, 221, 114, .38);
  border-radius: 999px;
  transition: color .25s, border-color .25s, background .25s;
}
.site-nav a.lang-switch::after { content: none; }
.site-nav a.lang-switch:hover {
  color: #2b0d06;
  background: var(--gold);
  border-color: transparent;
}

/* mobile nav */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 95; /* above the open drawer (z-index 90) so ✕ stays clickable */
  width: 44px; height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1099px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 84vw);
    flex-direction: column;
    align-items: flex-start;
    /* centered when it fits; top-anchored + scrollable on short screens
       (`safe` is ignored by older engines, which then use the flex-start
       fallback declared first) */
    justify-content: flex-start;
    justify-content: safe center;
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: .35rem;
    padding: calc(var(--header-h) + .5rem) 2rem 2.5rem;
    background: rgba(24, 11, 18, .97);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--line-soft);
    transform: translateX(105%);
    visibility: hidden; /* keep closed-drawer links out of the tab order */
    transition: transform .45s var(--ease-out), visibility 0s .45s;
    z-index: 90;
  }
  .site-nav a:not(.btn) { font-size: 1.22rem; padding: .5em .4em; }
  .site-nav a.lang-switch {
    margin: 1.1rem 0 0;
    padding: .5em 1.1em;
    font-size: .85rem;
  }
  body.nav-open .site-nav {
    transform: none;
    visibility: visible;
    transition: transform .45s var(--ease-out);
  }
  /* dimmed scrim between the page and the open drawer */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 89;
    background: rgba(10, 3, 7, .55);
    animation: fadeIn .35s ease both;
  }
  body.nav-open .nav-toggle .icon-menu { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
  body.nav-open { overflow: hidden; }
  .nav-cta { margin: 1rem 0 0; font-size: 1rem; }
}
@media (min-width: 1100px) and (max-width: 1260px) {
  .site-nav a:not(.btn) { font-size: .88rem; padding: .55em .62em; }
  .nav-cta { padding: .6em 1em; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 9vh, 6.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: clip;
}
/* cursor spotlight */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(560px circle at var(--sx, 70%) var(--sy, 30%),
    rgba(255, 178, 114, .07), transparent 70%);
  transition: opacity .4s;
}

.aurora {
  position: absolute;
  inset: -20% -10%;
  z-index: -2;
  filter: blur(90px);
  opacity: .6;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.aurora i:nth-child(1) {
  width: 52vw; height: 52vw;
  left: -12vw; top: -8vw;
  background: radial-gradient(circle at 30% 30%, rgba(229, 20, 20, .4), rgba(111, 29, 49, .3) 55%, transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  width: 44vw; height: 44vw;
  right: -10vw; top: 4vw;
  background: radial-gradient(circle at 60% 40%, rgba(255, 187, 74, .38), transparent 65%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
.aurora i:nth-child(3) {
  width: 38vw; height: 38vw;
  left: 28vw; bottom: -18vw;
  background: radial-gradient(circle at 50% 50%, rgba(94, 33, 84, .55), transparent 65%);
  animation: drift 38s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 4vw, 0) scale(1.15); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(2.9rem, 7.2vw, 5.6rem);
  font-weight: 800;
  margin-top: 1.1rem;
}
.hero h1 .line { display: block; }
.hero h1 em {
  font-style: italic;
  font-weight: 700;
  background: var(--sun);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
.hero .lede {
  margin-top: 1.4rem;
  max-width: 54ch;
  color: var(--text-dim);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.hero-stats {
  display: flex;
  gap: clamp(1.4rem, 4vw, 3rem);
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-soft);
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(118deg, #ff8a4d 0%, #ffc25e 55%, #ffdd72 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats .stat span {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* hero feature card (newest episode) */
.hero-feature { position: relative; }
.hero-feature .vcard { box-shadow: var(--shadow); }
.hero-feature::before {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 149, 72, .2), transparent);
  filter: blur(30px);
}
.hero-feature .sun-badge {
  position: absolute;
  top: -30px; right: -26px;
  width: 96px; height: 96px;
  z-index: 2;
  animation: spin 26s linear infinite;
  filter: drop-shadow(0 6px 24px rgba(255, 149, 72, .4));
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 980px) {
  .hero-feature .sun-badge { width: 74px; height: 74px; top: -24px; right: -8px; }
}

/* ---------- marquee ---------- */
.marquee {
  --gap: 3.5rem;
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  padding-block: 1rem;
  display: flex;
  user-select: none;
  background: linear-gradient(90deg, rgba(111, 29, 49, .12), transparent 30%, transparent 70%, rgba(111, 29, 49, .12));
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  flex: none;
  gap: var(--gap);
  padding-right: var(--gap);
  align-items: center;
  animation: marquee 36s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: var(--text-faint);
  white-space: nowrap;
}
.marquee-track .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sun);
  flex: none;
}
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- video cards ---------- */
.vcard {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  cursor: pointer;
  transition: transform .45s var(--ease-out), border-color .35s, box-shadow .5s;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  text-align: left;
  padding: 0;
  width: 100%;
}
.vcard:hover {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-5px);
  border-color: rgba(255, 221, 114, .42);
  box-shadow: 0 30px 60px -28px rgba(10, 2, 6, .85), 0 0 40px -18px rgba(229, 20, 20, .35);
}
/* cursor-following sheen */
.vcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 197, 110, .14), transparent 65%);
  pointer-events: none;
}
.vcard:hover::after { opacity: 1; }

.vcard .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-3);
}
/* shimmer placeholder until the thumbnail arrives */
.vcard .thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 237, 210, .07) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: thumbShimmer 1.6s linear infinite;
}
@keyframes thumbShimmer { to { background-position: -120% 0; } }
.vcard .thumb img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out), filter .8s, opacity .6s ease;
  filter: saturate(.92) contrast(1.03);
  opacity: 0;
}
.vcard .thumb img.is-loaded { opacity: 1; }
.vcard:hover .thumb img { transform: scale(1.06); filter: saturate(1.05) contrast(1.05); }
.vcard .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(18, 6, 12, .85));
}

.vcard .play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
}
.vcard .play i {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(24, 8, 14, .55);
  border: 1px solid rgba(255, 240, 210, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: scale(.72);
  opacity: 0;
  transition: transform .45s var(--ease-spring), opacity .3s, background .3s;
}
.vcard .play svg { width: 22px; height: 22px; margin-left: 3px; fill: #ffe9c2; }
.vcard:hover .play i, .vcard:focus-visible .play i { transform: scale(1); opacity: 1; }
.vcard:hover .play i { background: rgba(229, 20, 20, .68); }

.vcard .dur {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  padding: .28em .7em;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgba(18, 6, 10, .7);
  border: 1px solid rgba(255, 237, 210, .15);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.vcard .edn {
  position: absolute;
  left: 14px; top: 10px;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffe9c2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .65);
}
.vcard .edn::before { content: "№ "; font-size: .85em; opacity: .75; }

.vcard .vbody { padding: 1.1rem 1.2rem 1.25rem; }
.vcard h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
}
.vcard .vmeta {
  margin-top: .3rem;
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
}
.vcard .vdesc {
  margin-top: .55rem;
  font-size: .9rem;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* featured layout: 1 large + 3 */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.featured-grid .vcard:first-child { grid-column: span 3; }
@media (min-width: 981px) {
  .featured-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; grid-auto-rows: auto; }
  .featured-grid .vcard:first-child { grid-column: 1; grid-row: 1 / span 3; }
  .featured-grid .vcard:not(:first-child) { grid-column: span 3; display: grid; grid-template-columns: 240px 1fr; }
  .featured-grid .vcard:not(:first-child) .thumb { aspect-ratio: auto; height: 100%; min-height: 138px; }
  .featured-grid .vcard:first-child h3 { font-size: 1.25rem; }
}
@media (max-width: 980px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .vcard:first-child { grid-column: auto; }
}

/* ---------- archive (vault) ---------- */
.vault-toolbar {
  position: sticky;
  top: 62px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1.1rem;
  margin-bottom: 2.2rem;
  border-radius: var(--radius);
  background: rgba(29, 14, 22, .8);
  border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.vault-search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6em 1em;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: border-color .3s, box-shadow .3s;
}
.vault-search:focus-within {
  border-color: rgba(255, 221, 114, .55);
  box-shadow: 0 0 0 3px rgba(255, 149, 72, .14);
}
.vault-search svg { width: 16px; height: 16px; opacity: .6; flex: none; }
.vault-search input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  font-size: .95rem;
  color: var(--text);
  min-width: 0;
}
.vault-search input::placeholder { color: var(--text-faint); }

.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .5em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-dim);
  font-size: .86rem;
  font-weight: 550;
  cursor: pointer;
  transition: all .3s var(--ease-out);
}
.chip:hover { border-color: rgba(255, 221, 114, .45); color: var(--text); }
.chip[aria-pressed="true"] {
  background: var(--sun);
  border-color: transparent;
  color: #2b0d06;
  font-weight: 650;
}

.vault-count { font-size: .85rem; color: var(--text-faint); margin-left: auto; white-space: nowrap; }

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 1.35rem;
}
.vault-grid .vcard.is-hidden { display: none; }

.vault-empty {
  display: none;
  padding: 4rem 1rem;
  text-align: center;
  color: var(--text-dim);
}
.vault-empty.is-visible { display: block; }
.vault-empty b { font-family: var(--font-display); font-size: 1.5rem; display: block; margin-bottom: .4rem; }

/* ---------- generic content cards ---------- */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.link-card {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.6rem 1.7rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform .45s var(--ease-out), border-color .3s, background .3s;
}
.link-card::after {
  content: "";
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 197, 110, .11), transparent 65%);
  pointer-events: none;
}
.link-card:hover { transform: translateY(-4px); border-color: rgba(255, 221, 114, .4); }
.link-card:hover::after { opacity: 1; }
.link-card h3 { font-size: 1.16rem; display: flex; align-items: baseline; gap: .5em; }
.link-card .ext {
  margin-left: auto;
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease-spring), background .3s, border-color .3s;
}
.link-card .ext svg { width: 13px; height: 13px; }
.link-card:hover .ext {
  background: var(--sun);
  border-color: transparent;
  color: #2b0d06;
  transform: rotate(45deg);
}
.link-card p { font-size: .93rem; color: var(--text-dim); }
.link-card .domain {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.group-label {
  margin: 3rem 0 1.3rem;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.group-label:first-of-type { margin-top: 0; }

/* ---------- sponsor cards ---------- */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.sponsor-card {
  position: relative;
  padding: 1.9rem 1.8rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform .45s var(--ease-out), border-color .3s;
}
.sponsor-card:hover { transform: translateY(-4px); border-color: rgba(255, 221, 114, .4); }
.sponsor-card.is-patron {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 221, 114, .1), transparent 55%),
    var(--surface);
  border-color: rgba(255, 221, 114, .28);
}
.sponsor-card .tier {
  display: inline-block;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
}
.sponsor-card h3 { font-size: 1.3rem; }
.sponsor-card p { margin-top: .5rem; font-size: .93rem; color: var(--text-dim); }
.sponsor-card a { color: var(--gold); font-size: .88rem; font-weight: 600; }
.sponsor-card a:hover { text-decoration: underline; }
.sponsor-card .sun-row {
  display: flex;
  gap: .3rem;
  margin-bottom: 1rem;
}
.sponsor-card .sun-row svg { width: 18px; height: 18px; }

/* ---------- about / producer ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; } }

.portrait {
  position: relative;
  justify-self: center;
  width: min(360px, 80vw);
}
.portrait img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  filter: saturate(.95) contrast(1.05);
  box-shadow: var(--shadow);
}
.portrait::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: calc(var(--radius-lg) + 12px);
  background: var(--sun);
  opacity: .24;
  filter: blur(26px);
}
.portrait figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: .85rem;
  color: var(--text-faint);
}
.portrait figcaption b {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
}

.prose { color: var(--text-dim); }
.prose > * + * { margin-top: 1.1em; }
.prose strong, .prose b { color: var(--text); }
.prose .dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4em;
  float: left;
  line-height: .82;
  margin: .06em .14em 0 0;
  background: var(--sun);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.pillar {
  padding: 1.7rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: transform .45s var(--ease-out), border-color .3s;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(255, 221, 114, .4); }
.pillar .glyph {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--sun-soft);
  border: 1px solid rgba(255, 221, 114, .28);
  margin-bottom: 1rem;
}
.pillar .glyph svg { width: 22px; height: 22px; color: var(--gold); }
.pillar h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.pillar p { font-size: .92rem; color: var(--text-dim); }

/* quote */
.pull-quote {
  position: relative;
  margin: clamp(2rem, 5vw, 3.4rem) 0;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.8rem, 5vw, 3.2rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(229, 20, 20, .1), transparent 55%),
    var(--surface);
  border: 1px solid rgba(255, 221, 114, .2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.45;
  color: var(--text);
}
.pull-quote::before {
  content: "“";
  position: absolute;
  top: -.18em; left: .18em;
  font-size: 5em;
  opacity: .14;
  background: var(--sun);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pull-quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, #e51414, #ff9548, rgba(255, 221, 114, .12));
  border-radius: 2px;
}
.timeline li { list-style: none; position: relative; padding-bottom: 2.1rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -2rem; top: .42em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid #e08a2e;
  box-shadow: 0 0 0 4px rgba(255, 149, 72, .16);
}
.timeline b {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  background: var(--sun);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.timeline p { color: var(--text-dim); font-size: .95rem; max-width: 56ch; }

/* ---------- split teaser ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.6rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 221, 114, .24);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(229, 20, 20, .12), transparent 55%),
    radial-gradient(50% 100% at 80% 100%, rgba(255, 149, 72, .1), transparent 60%),
    var(--bg-2);
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-band p { color: var(--text-dim); max-width: 52ch; margin: 1rem auto 0; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-aside .row {
  display: flex;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-aside .row:first-child { padding-top: 0; }
.contact-aside .glyph {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--sun-soft);
  border: 1px solid rgba(255, 221, 114, .28);
}
.contact-aside .glyph svg { width: 20px; height: 20px; color: var(--gold); }
.contact-aside b { display: block; font-size: .95rem; }
.contact-aside a { color: var(--gold); overflow-wrap: anywhere; }
.contact-aside a:hover { text-decoration: underline; }
.contact-aside p, .contact-aside span { color: var(--text-dim); font-size: .92rem; }

.form-card {
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .45rem;
}
.field input, .field textarea {
  width: 100%;
  padding: .85em 1.1em;
  border-radius: 12px;
  background: rgba(14, 5, 9, .55);
  border: 1px solid var(--line-soft);
  color: var(--text);
  outline: 0;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: rgba(255, 221, 114, .6);
  box-shadow: 0 0 0 3px rgba(255, 149, 72, .15);
}
.field .err {
  display: none;
  margin-top: .35rem;
  font-size: .82rem;
  color: #ff9d8a;
}
.field.is-invalid input, .field.is-invalid textarea { border-color: rgba(229, 20, 20, .7); }
.field.is-invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}
.form-success.is-visible { display: block; }
.form-success .glyph {
  width: 64px; height: 64px;
  margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sun);
  color: #2b0d06;
}
.form-success .glyph svg { width: 28px; height: 28px; }
.form-success h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.form-success p { color: var(--text-dim); max-width: 46ch; margin: 0 auto 1.4rem; }
.form-note { margin-top: 1rem; font-size: .82rem; color: var(--text-faint); text-align: center; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, transparent, rgba(111, 29, 49, .12));
  padding: clamp(2.6rem, 6vw, 4.2rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 1rem; color: var(--text-dim); font-size: .93rem; max-width: 40ch; }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer-links a { color: var(--text-dim); font-size: .95rem; transition: color .25s; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .83rem;
  color: var(--text-faint);
}

/* ---------- modal player ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(.8rem, 3vw, 2.5rem);
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s, visibility 0s .35s;
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity .35s;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 4, 8, .84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: zoom-out;
}
.modal-shell {
  position: relative;
  width: min(1060px, 100%);
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-lg);
  background: rgba(32, 16, 24, .94);
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .92);
  transform: translateY(26px) scale(.96);
  transition: transform .45s var(--ease-out);
  scrollbar-width: thin;
}
.modal.is-open .modal-shell { transform: none; }

.modal-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.modal-player iframe { width: 100%; height: 100%; border: 0; }

.modal-meta { padding: 1.5rem clamp(1.2rem, 3vw, 2.2rem) 1.7rem; }
.modal-meta .vmeta {
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}
.modal-meta h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-top: .35rem; }
.modal-meta .mdesc { margin-top: .7rem; color: var(--text-dim); font-size: .97rem; max-width: 72ch; }
.modal-meta ul.mtopics { margin: .9rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.modal-meta ul.mtopics li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-dim);
  font-size: .92rem;
}
.modal-meta ul.mtopics li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sun);
}

/* full broadcast notes from the channel */
.mnotes { margin-top: 1.2rem; }
.mnotes-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.mnotes-head::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.mnotes-body {
  margin-top: .8rem;
  color: var(--text-dim);
  font-size: .93rem;
  line-height: 1.7;
  white-space: pre-line;
  max-width: 78ch;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mnotes.is-expanded .mnotes-body { display: block; -webkit-line-clamp: unset; }
.mnotes-toggle {
  margin-top: .6rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}
.mnotes-toggle:hover { text-decoration: underline; }

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin-top: 1.4rem;
}
.modal-actions .yt-link { font-size: .88rem; color: var(--text-faint); margin-left: auto; }
.modal-actions .yt-link:hover { color: var(--gold); }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 237, 210, .22);
  background: rgba(18, 6, 10, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform .35s var(--ease-spring), background .3s;
}
.modal-close:hover { transform: rotate(90deg); background: rgba(229, 20, 20, .72); }
.modal-close svg { width: 17px; height: 17px; }

.modal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .6em 1.15em;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  font-size: .88rem;
  font-weight: 550;
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s;
}
.modal-nav-btn:hover:not(:disabled) { border-color: rgba(255, 221, 114, .5); transform: translateY(-1px); }
.modal-nav-btn:disabled { opacity: .35; cursor: default; }
.modal-nav-btn svg { width: 14px; height: 14px; }

body.modal-open { overflow: hidden; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- page transitions ---------- */
#app { position: relative; }
#app.is-leaving { opacity: 0; transform: translateY(14px); transition: opacity .22s ease, transform .22s ease; }
#app.is-entering { animation: viewIn .5s var(--ease-out); }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@supports (view-transition-name: none) {
  ::view-transition-old(root) { animation: vtOut .28s ease both; }
  ::view-transition-new(root) { animation: vtIn .45s var(--ease-out) both; }
  @keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
  @keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.8rem, 7vh, 5rem));
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  overflow: clip;
}
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; margin-top: 1rem; }
.page-hero .lede { margin-top: 1.2rem; max-width: 62ch; color: var(--text-dim); font-size: 1.1rem; }

/* ---------- misc ---------- */
.center { text-align: center; }
.center .section-head { margin-inline: auto; }
.center .kicker { justify-content: center; }

hr.rule { border: 0; height: 1px; background: var(--line-soft); margin-block: clamp(2rem, 5vw, 3.5rem); }

.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 1100;
  padding: .7em 1.2em;
  background: var(--gold);
  color: #2b0d06;
  border-radius: 10px;
  font-weight: 600;
  transition: top .3s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .vcard .thumb img { opacity: 1; }
}
