/* PROUD OF US — site design system (2026 redesign)
   One stylesheet shared by every page: home, archive, teach, book, support,
   about, games, story, worksheet. Clay-diorama imagery, near-black ground,
   gold thread. No build step, plain CSS. */

/* ---------- Tokens ---------- */
:root {
  --bg-deep: #06060a;
  --bg-dark: #0c0c12;
  --bg-card: #101018;
  --bg-elevated: #16161f;
  --border: rgba(232, 184, 74, 0.16);
  --border-soft: rgba(255, 255, 255, 0.06);
  --gold: #e8b84a;
  --gold-light: #f4d078;
  --gold-dim: rgba(232, 184, 74, 0.12);
  --gold-mid: rgba(232, 184, 74, 0.55);
  --gold-glow: rgba(232, 184, 74, 0.35);
  --gold-wash: rgba(232, 184, 74, 0.08);
  --ember: #e85a1c;
  --ember-glow: rgba(232, 90, 28, 0.4);
  --text-primary: #eae7dd;
  --text-secondary: #b8b8c8;
  --text-muted: #82829a;
  --heading: #f8f8fa;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  color: var(--heading);
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Handmade ground: clay tile replaces the old glow/dots ---------- */
.clay-ground::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("redesign/clay-bg-tile.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.05;
}

/* ---------- Accessibility basics ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Top announcement ribbon ---------- */
.top-announce {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1002;
  height: 38px;
  background: linear-gradient(90deg, #0a0a10 0%, rgba(232, 184, 74, 0.08) 50%, #0a0a10 100%);
  border-bottom: 1px solid rgba(232, 184, 74, 0.25);
  backdrop-filter: blur(14px);
}
.top-announce__inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-secondary); font-size: 0.84rem;
  transition: color 0.2s;
}
.top-announce__inner:hover { color: var(--heading); }
.top-announce__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(232, 184, 74, 0.9);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}
.top-announce__label { color: var(--gold); font-weight: 600; letter-spacing: 0.5px; flex-shrink: 0; }
.top-announce__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-announce__arrow { color: var(--gold); font-weight: 600; flex-shrink: 0; transition: transform 0.2s; }
.top-announce__inner:hover .top-announce__arrow { transform: translateX(3px); }
.top-announce__close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px 8px;
  transition: color 0.2s;
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
}
.top-announce__close:hover { color: var(--heading); }
body.announce-hidden .top-announce { display: none; }
@media (max-width: 640px) {
  .top-announce { height: 44px; }
  .top-announce__inner { font-size: 0.76rem; gap: 8px; padding: 0 40px 0 16px; }
  .top-announce__text { white-space: normal; text-align: center; line-height: 1.2; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
body.has-announce .nav { top: 38px; }
body.announce-hidden .nav { top: 0; }
@media (max-width: 640px) {
  body.has-announce .nav { top: 44px; }
}
.nav.scrolled {
  background: rgba(6, 6, 10, 0.88);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo-img {
  width: 40px; height: 40px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.nav__logo-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem; font-weight: 600; color: var(--heading);
}
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__link {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: all 0.3s; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gold); transition: width 0.3s;
}
.nav__link:hover { color: var(--heading); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--gold); }
.nav__cta {
  padding: 12px 26px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--bg-deep); font-size: 0.9rem; font-weight: 600;
  border-radius: 8px; transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(232, 184, 74, 0.3);
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232, 184, 74, 0.4); }

/* Mobile menu */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 6px;
}
.burger__line { width: 100%; height: 2px; background: var(--heading); transition: all 0.3s; border-radius: 2px; }
.burger.active .burger__line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.burger.active .burger__line:nth-child(2) { opacity: 0; }
.burger.active .burger__line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 100%; max-width: 400px; height: 100vh;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
  z-index: 999; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid var(--border);
}
.mobile-menu.active { right: 0; }
.mobile-menu__inner { padding: 100px 32px 40px; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu__link {
  padding: 20px 0; font-size: 1.25rem; font-weight: 500;
  color: var(--text-secondary); border-bottom: 1px solid var(--border-soft); transition: all 0.3s;
}
.mobile-menu__link:hover { color: var(--gold); padding-left: 12px; }
.menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 998;
}
.menu-overlay.active { opacity: 1; visibility: visible; }
@media (max-width: 768px) {
  .nav__links { display: none; }
  .burger { display: flex; }
}

/* ---------- Pinned scroll-lock hero ----------
   A tall runway with a sticky media layer. As you scroll through the runway
   the clay diorama slowly zooms and darkens, then content scrolls up over it.
   Driven by initPinHeroes() in redesign.js. */
.pin-hero { position: relative; height: 150vh; padding: 0; }
.pin-hero__media {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: flex-end;
  background: var(--bg-deep);
}
.pin-hero__media > img,
.pin-hero__media > video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.0); will-change: transform;
}
/* The still always renders underneath; the video sits on top when allowed. */
.pin-hero__video { z-index: 1; }
.pin-hero__scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(6, 6, 10, 0.15) 0%, rgba(6, 6, 10, 0.55) 60%, var(--bg-deep) 100%);
  opacity: 0.55;
}
.pin-hero__content {
  position: relative; z-index: 3;
  padding: 0 6vw 90px; max-width: 980px;
  width: 100%; min-width: 0; /* let flex children shrink on small screens */
}
.pin-hero__eyebrow {
  display: inline-block; padding: 6px 15px; margin-bottom: 18px;
  background: rgba(6, 6, 10, 0.5); border: 1px solid rgba(232, 184, 74, 0.4);
  border-radius: 100px; color: var(--gold);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.pin-hero h1 {
  font-size: clamp(38px, 5.8vw, 72px);
  margin: 0 0 16px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}
.pin-hero__standfirst {
  max-width: 640px; font-size: 17px; color: var(--text-primary);
  opacity: 0.92; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}
.pin-hero__stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 26px; font-size: 0.95rem; color: var(--text-secondary);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.pin-hero__stats a { color: inherit; transition: color 0.25s ease; }
.pin-hero__stats a:hover { color: var(--gold-light); }
.pin-hero__stats span {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem; font-weight: 700; color: var(--gold); margin-right: 6px;
}
.pin-hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
@media (max-width: 720px) {
  .pin-hero { height: 120vh; }
  .pin-hero__content { padding-bottom: 60px; }
  /* Stills only on small screens, as briefed */
  .pin-hero__video { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; font-size: 0.98rem; font-weight: 600;
  border-radius: 10px; border: none; cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--bg-deep);
  box-shadow: 0 4px 25px rgba(232, 184, 74, 0.35);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(232, 184, 74, 0.45); }
.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}
.btn--secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold); color: var(--gold); }
.cta {
  display: inline-block; padding: 13px 28px;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: "Inter", sans-serif; text-transform: uppercase;
  font-size: 12px; letter-spacing: 0.1em; border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta:hover { background: var(--gold); color: var(--bg-deep); }

/* ---------- Sections and reveal ---------- */
.section { padding: 120px 0; position: relative; z-index: 3; }
.section--tight { padding: 80px 0; }
.section__header { text-align: center; margin-bottom: 70px; }
.section__label {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  color: var(--gold); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 20px;
}
.section__title { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 20px; }
.section__subtitle {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 650px; margin: 0 auto; line-height: 1.7;
}
.eyebrow {
  display: inline-block; padding: 5px 13px; margin-bottom: 16px;
  background: var(--gold-wash); border: 1px solid rgba(232, 184, 74, 0.3);
  border-radius: 100px; color: var(--gold);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
h2.headline { font-size: clamp(26px, 3.4vw, 42px); margin: 0 0 16px; max-width: 760px; }
.lead { color: var(--text-secondary); font-size: 16px; line-height: 1.8; max-width: 640px; }

/* Scroll reveal: only when JS is running, so content is never lost without it */
html.js .reveal {
  opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(2px);
  transition: opacity 1s cubic-bezier(0.2, 0.7, 0.3, 1), transform 1s cubic-bezier(0.2, 0.7, 0.3, 1), filter 1s ease;
}
html.js .reveal.in-view { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* ---------- Gold thread divider ---------- */
.thread-divider {
  display: block; width: min(680px, 80%); margin: 0 auto;
  opacity: 0.8;
}
.thread-divider img { width: 100%; height: 84px; object-fit: cover; display: block; border-radius: 3px; }

/* ---------- Alternating clay bands ---------- */
.band { padding: 100px 6vw; position: relative; z-index: 3; }
.band-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.band-grid.reverse { direction: rtl; }
.band-grid.reverse > * { direction: ltr; }
.shot {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-card); height: 440px;
}
.shot.tall { height: 580px; }
.shot img, .shot video {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
html.js .shot.kb-on img, html.js .shot.kb-on video { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, -1.5%); }
}
.shot .shot-video { position: absolute; inset: 0; }
@media (max-width: 1024px) {
  .band-grid { gap: 44px; }
  .shot.tall { height: 480px; }
}
@media (max-width: 880px) {
  .band-grid { grid-template-columns: 1fr; gap: 36px; }
  .shot, .shot.tall { height: 380px; }
  .shot video { display: none; } /* stills only on small screens */
}

/* ---------- Era emblem medallions ---------- */
.emblems { display: flex; flex-wrap: wrap; gap: 24px; }
.emblem {
  width: 104px; height: 104px; border-radius: 50%;
  position: relative; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-card);
}
html.js [data-stagger] .emblem {
  opacity: 0; transform: translateY(18px) scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.3, 0.6, 0.3, 1.3);
}
html.js [data-stagger] .emblem.settled { opacity: 1; transform: translateY(0) scale(1); }
.emblem img { width: 100%; height: 100%; object-fit: cover; }
.emblem::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px solid rgba(232, 184, 74, 0.25); z-index: 2; pointer-events: none;
}
.emblem .elabel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  background: rgba(6, 6, 10, 0.78); color: var(--gold);
  font-size: 8.5px; letter-spacing: 0.03em; text-transform: uppercase;
  text-align: center; padding: 3px 2px;
}
a.emblem-link { display: inline-block; border-radius: 50%; }

/* ---------- The gold thread spine (Archive chronology) ---------- */
#spine-wrap { position: relative; }
.thread-rail {
  position: absolute; top: 0; bottom: 0; left: 51px; width: 2px;
  z-index: 1; background: var(--border);
}
.thread-lit {
  position: absolute; top: 0; left: 51px; width: 2px; height: 0;
  background: linear-gradient(var(--gold), #fff6d8 40%, var(--gold));
  box-shadow: 0 0 12px 1px var(--gold-mid);
  z-index: 2; transition: height 0.08s linear;
}
.era { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 70px; }
.era-node {
  flex: none; width: 104px; height: 104px; border-radius: 50%;
  position: relative; overflow: hidden;
  border: 2px solid var(--border); background: var(--bg-card);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.era-node img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity 0.4s ease; }
.era.lit .era-node { border-color: var(--gold); box-shadow: 0 0 18px 3px var(--gold-mid); }
.era.lit .era-node img { opacity: 1; }
.era-node--text {
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 10px;
  font-family: "Cormorant Garamond", serif;
  color: var(--gold); font-size: 14px; line-height: 1.25;
}
.era-node--text small { display: block; color: var(--text-muted); font-family: "Inter", sans-serif; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.era-body h3 { font-size: 24px; margin: 0 0 8px; }
.era-body p { color: var(--text-secondary); font-size: 14px; max-width: 560px; margin: 0; }
main.with-spine, .with-spine { padding-left: 104px; }
@media (max-width: 720px) {
  .thread-rail, .thread-lit { display: none; }
  main.with-spine, .with-spine { padding-left: 0; }
  .era { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- Story cards ---------- */
.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: block;
}
.story-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-glow);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
.story-card__image { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-elevated); }
.story-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.story-card:hover .story-card__image img { transform: scale(1.07); }
.story-card__content { padding: 24px; position: relative; z-index: 1; }
.story-card__series {
  display: inline-block; padding: 4px 12px;
  background: var(--gold-dim); border-radius: 100px;
  font-size: 0.7rem; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.story-card__title { font-size: 1.3rem; margin-bottom: 10px; line-height: 1.3; }

/* ---------- Tier badges ---------- */
.tiers { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.tier-card { text-align: center; }
.tier {
  width: 110px; height: 110px; border-radius: 50%;
  position: relative; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-card);
  margin: 0 auto 12px;
}
.tier img { width: 100%; height: 100%; object-fit: cover; }
.tier-card .tname { font-family: "Cormorant Garamond", serif; color: var(--heading); font-size: 17px; }

/* ---------- Footer support strip ---------- */
.footer-support {
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  position: relative; z-index: 3;
}
.footer-support__inner {
  max-width: 600px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.footer-support__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem; color: var(--gold); font-weight: 600;
}
.footer-support__tiers { display: flex; gap: 12px; }
.footer-tier {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 12px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; transition: all 0.3s;
  font-family: "Inter", sans-serif;
}
.footer-tier:hover { border-color: var(--gold); background: var(--gold-dim); }
.footer-tier--featured { border-color: var(--gold-glow); background: var(--gold-dim); }
.footer-tier img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.footer-tier span { font-size: 0.8rem; color: var(--text-primary); font-weight: 500; }
.footer-tier small { font-size: 0.65rem; color: var(--text-muted); }
.footer-support__link { font-size: 0.85rem; color: var(--text-muted); transition: color 0.3s; }
.footer-support__link:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  position: relative; z-index: 3;
}
.footer__inner { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 60px; margin-bottom: 60px; }
.footer__brand p {
  color: var(--text-secondary); font-size: 1rem; line-height: 1.8;
  margin-top: 20px; max-width: 320px;
}
.footer__column h4 {
  font-family: "Inter", sans-serif; font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 24px;
}
.footer__column ul { list-style: none; }
.footer__column li { margin-bottom: 14px; }
.footer__column a { color: var(--text-secondary); font-size: 0.95rem; transition: all 0.3s; }
.footer__column a:hover { color: var(--gold); padding-left: 8px; }
.footer__bottom {
  padding-top: 40px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
}
.footer__copy { color: var(--text-muted); font-size: 0.9rem; }
.footer__tagline {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem; font-style: italic;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.3s;
}
.footer__tagline:hover { opacity: 0.8; }

/* ---------- Forms ---------- */
.field-input {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit; font-size: 1rem; outline: none;
  transition: border-color 0.3s;
}
.field-input::placeholder { color: var(--text-muted); }
.field-input:focus { border-color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .section { padding: 90px 0; }
  .section__header { margin-bottom: 50px; }
  .band { padding: 70px 6vw; }
  .btn { width: 100%; }
  .pin-hero__ctas .btn { width: auto; flex: 1; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer__brand p { margin: 20px auto 0; }
  .footer__bottom { flex-direction: column; gap: 20px; }
}

/* ==========================================================================
   CINEMATIC MODULE (homepage experience)
   ========================================================================== */

/* Page-long gold thread: fixed 2px filament that fills with scroll */
.page-thread {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 1200; pointer-events: none;
  background: rgba(232, 184, 74, 0.10);
}
.page-thread__fill {
  height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), #fff6d8 85%, var(--gold));
  box-shadow: 0 0 8px 1px var(--gold-mid);
  will-change: transform;
}

/* The Claim: flowing, each line lands as it enters view. No pinning. */
.claim-flow {
  position: relative; z-index: 3;
  padding: 110px 24px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
  border-top: 1px solid rgba(232, 184, 74, 0.15);
  border-bottom: 1px solid rgba(232, 184, 74, 0.15);
}
.claim-flow__inner { max-width: 860px; margin: 0 auto; text-align: center; }
.claim-flow .claim-line { margin-bottom: 34px; }
.claim-flow__cta { margin-top: 44px; }
.claim-line {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.35;
  color: var(--text-secondary);
  margin: 0 0 18px;
}
.claim-line strong { font-weight: 600; color: var(--gold); }
.claim-line--lead { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: var(--gold); font-weight: 600; margin-bottom: 30px; }
.claim-line--kicker { font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--text-primary); margin-top: 30px; }

/* Refrains: single claim lines riding the thread between chapters */
.refrain {
  position: relative; z-index: 3;
  padding: 120px 24px;
  text-align: center;
}
.refrain .claim-line { max-width: 820px; margin: 0 auto; }
.refrain__line {
  max-width: 1000px; margin: 0 auto;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 600; line-height: 1.18;
  color: var(--heading);
}
.refrain__line strong {
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 60%, var(--ember) 130%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.refrain::before, .refrain::after {
  content: "";
  display: block;
  width: 1px; height: 54px;
  margin: 0 auto;
  background: linear-gradient(180deg, transparent, var(--gold-mid), transparent);
}
.refrain::before { margin-bottom: 38px; }
.refrain::after { margin-top: 38px; }
.refrain--kicker { padding-bottom: 90px; }
.refrain__receipt {
  display: inline-block; margin-top: 22px;
  color: var(--gold); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: color 0.25s ease;
}
.refrain__receipt:hover { color: var(--gold-light); }
/* Fade the eras rail's edges so travelling labels never hard-clip */
.eras-rail {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
@media (max-width: 640px) {
  .refrain { padding: 80px 20px; }
  .refrain::before, .refrain::after { height: 36px; }
}

/* Interlude: short full-bleed breathing space between chapters */
.interlude {
  position: relative; overflow: hidden;
  height: 34vh; min-height: 220px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.interlude img, .interlude video {
  position: absolute; left: 0; right: 0; top: -20%;
  width: 100%; height: 140%; object-fit: cover;
  transform: translateY(calc(var(--scrub, 0.5) * 12% - 6%));
  will-change: transform;
}
.interlude::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg-deep), transparent 30%, transparent 70%, var(--bg-deep));
}

/* The Eight Eras: pinned horizontal journey along the thread */
html.pins-active .eras-pin { height: 280vh; position: relative; }
.eras-stage { position: relative; padding: 90px 0; overflow: hidden; }
html.pins-active .eras-stage {
  position: sticky; top: 0; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0;
}
.eras-stage__head { text-align: center; padding: 0 24px; margin-bottom: 56px; }
.eras-rail { position: relative; padding: 44px 0 8px; }
/* Lamplight at centre stage: the coins travel through a fixed pool of warm light */
.eras-rail::before {
  content: ""; position: absolute; z-index: 0;
  left: 50%; top: var(--lamp-y, 198px); width: 680px; height: 680px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232, 184, 74, 0.15) 0%, rgba(232, 90, 28, 0.05) 45%, transparent 70%);
  pointer-events: none;
}
/* The thread is a child of the moving track: strung from the first medallion's
   centre to the last, so the lit tip always meets the centred coin exactly.
   left/width are set by the engine from real coin positions. */
.eras-thread {
  position: absolute; top: 154px; height: 2px; /* left/width/top corrected by the engine from real coin geometry */
  background: var(--border); z-index: 0;
}
.eras-bead {
  position: absolute; top: 1px; left: 0; z-index: 2;
  width: 12px; height: 12px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff6d8;
  box-shadow: 0 0 16px 5px var(--gold-mid);
  pointer-events: none;
}
.eras-thread__fill {
  position: relative;
  height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), #fff6d8 80%, var(--gold));
  will-change: transform;
}
/* Glow lives inside the scaled element, so it rides the compositor and
   cannot judder the way a repainting box-shadow did. */
.eras-thread__fill::after {
  content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px;
  background: linear-gradient(90deg, rgba(232, 184, 74, 0.5), rgba(255, 246, 216, 0.6) 80%, rgba(232, 184, 74, 0.5));
  filter: blur(5px);
  pointer-events: none;
}
.eras-track {
  display: flex; align-items: flex-start; gap: 6vw;
  padding: 0 45vw 0 45vw; /* first and last coin can reach centre stage */
  will-change: transform;
  position: relative; z-index: 1;
}
.era-coin {
  flex: none; width: 300px; text-align: center;
  text-decoration: none;
  transition: opacity 0.4s ease;
  opacity: 0.32; /* waiting coins sit deeper in shadow so centre stage pops */
}
.era-coin.centered { opacity: 1; }
.era-coin__ordinal {
  display: block; margin-bottom: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem; letter-spacing: 4px;
  color: var(--text-muted);
  transition: color 0.4s ease;
}
.era-coin.centered .era-coin__ordinal, .era-coin:hover .era-coin__ordinal { color: var(--gold); }
.era-coin { display: block; }
.era-coin__medal {
  display: block;
  width: 240px; height: 240px; border-radius: 50%;
  margin: 0 auto;
  position: relative; overflow: hidden;
  border: 2px solid var(--border); background: var(--bg-card);
  transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s cubic-bezier(0.3, 0.6, 0.3, 1.2);
}
.era-coin__medal::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 1px solid rgba(232, 184, 74, 0.25); z-index: 2; pointer-events: none;
}
.era-coin__medal img, .era-coin__medal video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.75) brightness(0.8);
  transition: filter 0.5s ease;
}
.era-coin__medal video { z-index: 1; opacity: 0; transition: opacity 0.5s ease; }
.era-coin.centered .era-coin__medal,
.era-coin:hover .era-coin__medal,
.era-coin:focus-visible .era-coin__medal {
  border-color: var(--gold);
  box-shadow: 0 0 34px 7px var(--gold-mid), 0 0 90px 20px rgba(232, 184, 74, 0.18);
  transform: scale(1.22);
}
.era-coin.centered .era-coin__medal img, .era-coin.centered .era-coin__medal video,
.era-coin:hover .era-coin__medal img, .era-coin:hover .era-coin__medal video,
.era-coin:focus-visible .era-coin__medal img { filter: none; }
.era-coin.centered .era-coin__medal video, .era-coin:hover .era-coin__medal video { opacity: 1; }
.era-coin:hover, .era-coin:focus-visible { opacity: 1; }
.era-coin__name, .era-coin__blurb, .era-coin__count { display: block; }
.era-coin__name {
  margin-top: 26px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem; font-weight: 600; color: var(--heading);
}
.era-coin__blurb {
  margin-top: 6px; font-size: 0.85rem; color: var(--text-secondary);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
.era-coin__count {
  display: inline-block; margin-top: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold);
  opacity: 0; transition: opacity 0.5s ease 0.2s;
}
.era-coin.centered .era-coin__blurb, .era-coin:hover .era-coin__blurb, .era-coin:focus-visible .era-coin__blurb { opacity: 1; transform: translateY(0); }
.era-coin.centered .era-coin__count, .era-coin:hover .era-coin__count, .era-coin:focus-visible .era-coin__count { opacity: 1; }
.eras-cta { text-align: center; margin-top: 56px; }

/* Small screens and reduced motion: a swipeable rail, nothing pinned */
html:not(.pins-active) .eras-track {
  overflow-x: auto; padding: 0 24px 18px;
  gap: 36px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
html:not(.pins-active) .era-coin { scroll-snap-align: center; opacity: 1; width: 180px; }
html:not(.pins-active) .era-coin__medal { width: 140px; height: 140px; }
html:not(.pins-active) .era-coin__blurb, html:not(.pins-active) .era-coin__count { opacity: 1; transform: none; }
html:not(.pins-active) .eras-thread { display: none; }

/* Dealt story cards */
html.js .card-deal {
  opacity: 0; transform: translateY(46px) rotate(1.6deg) scale(0.96);
}
html.js .card-deal.dealt {
  opacity: 1; transform: translateY(0) rotate(0) scale(1);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1.05);
}
.reshuffle-btn {
  margin: 26px auto 0; padding: 12px 24px;
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--border); border-radius: 100px;
  color: var(--text-secondary);
  font-family: "Inter", sans-serif; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s;
}
.reshuffle-btn:hover { border-color: var(--gold); color: var(--gold); }
.reshuffle-btn svg { transition: transform 0.5s; }
.reshuffle-btn:hover svg { transform: rotate(180deg); }

/* Proof chips (teach band and friends) */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.chip {
  padding: 7px 14px;
  background: var(--gold-wash); border: 1px solid rgba(232, 184, 74, 0.25);
  border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px;
  color: var(--gold);
}

/* Inline tier coins (support band) */
.tier-coins { display: flex; gap: 18px; margin: 26px 0 8px; flex-wrap: wrap; }
.tier-coin {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: "Inter", sans-serif;
}
.tier-coin__medal {
  width: 74px; height: 74px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.tier-coin__medal img { width: 100%; height: 100%; object-fit: cover; }
.tier-coin:hover .tier-coin__medal {
  border-color: var(--gold);
  box-shadow: 0 0 18px 3px var(--gold-mid);
  transform: translateY(-3px);
}
.tier-coin span { font-size: 0.82rem; color: var(--text-primary); font-weight: 600; }
.tier-coin small { font-size: 0.68rem; color: var(--text-muted); }

/* Story of the Day: theatre dressing */
.random-card__image { position: relative; }
.random-card__year-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 12px;
  background: rgba(6, 6, 10, 0.72);
  border: 1px solid rgba(232, 184, 74, 0.45);
  border-radius: 100px;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
}
.random-card__hook {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 1.02rem; line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.random-section__midnight {
  margin-top: 18px;
  font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted);
}

/* Gold shine sweeping the thread divider */
.thread-divider { position: relative; overflow: hidden; }
.thread-divider::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 246, 216, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: threadShine 5.5s ease-in-out infinite;
}
@keyframes threadShine {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

/* Candle-glow scrub (book band): scene warms as you arrive */
[data-glow] { position: relative; }
[data-glow]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 30% 55%, rgba(232, 184, 74, 0.22) 0%, transparent 55%);
  opacity: var(--scrub, 0);
  transition: opacity 0.2s linear;
}

/* ---------- Reduced motion: stills, no zooms, no reveals ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  video { display: none !important; }
  html.js .reveal { opacity: 1; transform: none; filter: none; }
  html.js [data-stagger] .emblem { opacity: 1; transform: none; }
  .pin-hero { height: 100vh; }
}

/* ---------- Footer mailing-list signup (added 2026-07-10) ---------- */
.footer__signup-sub { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 10px; }
.footer__signup { display: flex; gap: 8px; }
.footer__signup input[type="email"] {
  flex: 1; min-width: 0; padding: 10px 12px;
  background: var(--bg-elevated, #16161f); border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: 8px; color: var(--text-primary, #f8f8fa); font-family: inherit; font-size: 0.85rem;
}
.footer__signup input[type="email"]:focus { outline: none; border-color: rgba(232, 184, 74, 0.5); }
.footer__signup button {
  padding: 10px 16px; border: none; border-radius: 8px; cursor: pointer;
  background: linear-gradient(135deg, #e8b84a 0%, #f4d078 100%); color: #06060a;
  font-family: inherit; font-size: 0.85rem; font-weight: 600; transition: all 0.2s;
}
.footer__signup button:hover { transform: translateY(-1px); }

/* Homepage signup band */
.signup-band { position: relative; z-index: 3; padding: 90px 24px; text-align: center; border-top: 1px solid rgba(232, 184, 74, 0.15); }
.signup-band__inner { max-width: 620px; margin: 0 auto; }
.signup-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.signup-band p { color: var(--text-secondary, #b8b8c8); margin-bottom: 26px; }
.signup-band .footer__signup { max-width: 420px; margin: 0 auto; }
.signup-band .footer__signup input[type="email"] { padding: 13px 16px; font-size: 0.95rem; }
.signup-band .footer__signup button { padding: 13px 24px; font-size: 0.95rem; }
