/* ═══════════════════════════════════════════════════════════
   STILL TOLD — shared styles for the series hub and chapters
   foxtale.es/stilltold/
   Nav and footer match the rest of foxtale.es.
   Everything inside <main> uses the series identity:
   black, serif, off-white #E8E4DC, Foxtale orange as accent.
═══════════════════════════════════════════════════════════ */

:root {
  --st-bg:        #0D0B09;
  --st-bg-2:      #17110C;
  --st-ink:       #E8E4DC;
  --st-ink-2:     #C6C0B5;
  --st-muted:     #9C948A;
  --st-line:      #2E2720;
  --st-line-soft: #1C1916;
  --st-orange:    #F87826;
  --st-orange-2:  #F8A15C;
  --st-orange-grad: linear-gradient(135deg, #FFAC45 0%, #F87826 45%, #D96010 100%);
  --st-serif:     'Gelasio', Georgia, 'Times New Roman', serif;
  --st-sans:      'DM Sans', sans-serif;
  --st-ui:        'Inter', sans-serif;
  --st-wide:      .34em;
  --st-max:       1200px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family:var(--st-serif);
  font-size:17px; line-height:1.7;
  background:var(--st-bg); color:var(--st-ink);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img { display:block; max-width:100%; }
a { color:inherit; }

/* ═══ NAV — same as foxtale.es ═══ */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  height:62px; display:flex; align-items:center;
  background:#0D0B09;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.nav__inner {
  width:100%; max-width:1400px; margin:0 auto;
  padding:0 32px; display:flex; align-items:center; justify-content:space-between;
}
.logo { display:flex; align-items:center; gap:11px; text-decoration:none; }
.logo__name {
  font-family:var(--st-ui); font-size:14px; font-weight:700;
  letter-spacing:.22em; text-transform:uppercase; color:#F0EDE8;
}
.nav__links { display:flex; list-style:none; gap:36px; }
.nav__links a {
  font-family:var(--st-ui); font-size:14px; font-weight:400;
  color:rgba(240,237,232,.65); text-decoration:none; transition:color .2s;
  letter-spacing:.01em;
}
.nav__links a:hover { color:#F0EDE8; }
.nav__cta {
  display:inline-flex; align-items:center; padding:9px 22px;
  font-family:var(--st-ui); font-size:11px; font-weight:700; letter-spacing:.08em;
  border:1.5px solid var(--st-orange); border-radius:4px;
  color:var(--st-orange); text-decoration:none; transition:all .2s;
  min-height:44px;
}
.nav__cta:hover { background:var(--st-orange); color:#fff; }
.nav__burger {
  display:none; flex-direction:column; justify-content:center; align-items:center;
  gap:5px; width:44px; height:44px; background:none; border:none; cursor:pointer; padding:0;
}
.nav__burger span {
  display:block; width:22px; height:2px; background:#F0EDE8; border-radius:2px;
  transition:transform .3s ease, opacity .3s ease;
}
.nav__burger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity:0; }
.nav__burger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
.nav__mobile {
  display:none; position:fixed; top:62px; left:0; right:0; bottom:0;
  background:#0D0B09; flex-direction:column; align-items:center; justify-content:center;
  gap:32px; z-index:99; opacity:0; pointer-events:none; transition:opacity .25s ease;
}
.nav__mobile.open { opacity:1; pointer-events:all; }
.nav__mobile a {
  font-family:var(--st-ui); font-size:28px; font-weight:700;
  color:rgba(240,237,232,.7); text-decoration:none; letter-spacing:-.02em; transition:color .2s;
}
.nav__mobile a:hover { color:var(--st-orange); }
.nav__mobile__cta {
  margin-top:8px; padding:16px 40px; background:var(--st-orange); color:#fff !important;
  font-size:13px !important; letter-spacing:.1em !important; border-radius:6px;
}

/* ═══ SHARED SERIES TYPE ═══ */
.st-wrap { max-width:var(--st-max); margin:0 auto; padding:0 40px; }
.st-kicker {
  display:block; font-family:var(--st-ui); font-size:11px; font-weight:600;
  letter-spacing:.3em; text-transform:uppercase; color:var(--st-muted);
}
.st-caps {
  font-family:var(--st-serif); font-weight:400; text-transform:uppercase;
  letter-spacing:var(--st-wide);
  /* compensates the trailing letter-space so centred titles look centred */
  padding-left:var(--st-wide);
}
.st-rule { width:28px; height:1px; background:var(--st-orange); border:0; }
.st-sec { padding:96px 0; border-top:1px solid var(--st-line-soft); }
.st-sec__head { margin-bottom:48px; }
.st-sec__title { font-size:clamp(1.1rem,1.6vw,1.3rem); margin-top:14px; color:var(--st-ink); }

/* Image placeholders — shown when a file is missing */
.st-ph {
  position:absolute; inset:0; display:none;
  align-items:center; justify-content:center; text-align:center; padding:12px;
  background:#16130F; border:1px dashed #3A352F;
  font-family:var(--st-ui); font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  color:#6F6961;
}
.st-ph.on { display:flex; }

/* ═══ HUB — OPENER ═══ */
.st-opener {
  margin-top:62px; padding:120px 24px 104px; text-align:center;
}
.st-opener__title {
  font-size:clamp(2.2rem,6vw,4.4rem); line-height:1.1; margin:22px 0 18px;
}
.st-opener__tag {
  font-style:italic; font-size:clamp(1.05rem,1.8vw,1.3rem); color:var(--st-ink-2);
}
.st-opener .st-rule { margin:34px auto; }
.st-opener__intro {
  max-width:620px; margin:0 auto; font-size:17px; line-height:1.85; color:var(--st-ink-2);
}
.st-opener__intro + .st-opener__intro { margin-top:20px; }

/* ═══ HUB — MAP + CHAPTER LIST ═══ */
.st-atlas {
  display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:64px; align-items:start;
}
.st-collection {
  display:flex; align-items:baseline; gap:14px; margin-bottom:24px;
  font-family:var(--st-ui); font-size:11px; letter-spacing:.3em; text-transform:uppercase; color:var(--st-muted);
}
.st-collection b { color:var(--st-ink); font-weight:500; }

/* The map: the PNG base sits underneath, dots are drawn on top by position */
.st-map { position:relative; width:100%; aspect-ratio:var(--map-ratio, 4 / 3.2); }
.st-map__img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:.85; }
.st-map__dot {
  position:absolute; transform:translate(-50%,-50%);
  width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  text-decoration:none; z-index:2;
}
.st-map__dot::before {
  content:''; width:11px; height:11px; border-radius:50%;
  background:var(--st-orange); box-shadow:0 0 0 5px rgba(248,120,38,.18);
  transition:box-shadow .25s ease, transform .25s ease;
}
.st-map__dot:hover::before, .st-map__dot:focus-visible::before, .st-map__dot.is-hot::before {
  transform:scale(1.15); box-shadow:0 0 0 9px rgba(248,120,38,.22);
}
.st-map__dot--soon::before { background:transparent; border:1px dashed var(--st-muted); box-shadow:none; }
.st-map__label {
  position:absolute; left:34px; top:50%; transform:translateY(-50%); white-space:nowrap;
  font-family:var(--st-serif); font-size:13px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--st-ink); pointer-events:none;
}
.st-map--small .st-map__dot { width:28px; height:28px; }
.st-map--small .st-map__dot::before { width:8px; height:8px; box-shadow:0 0 0 3px rgba(248,120,38,.2); }

/* Calibration readout (only with ?calibrate in the URL) */
.st-calib {
  position:fixed; left:16px; bottom:16px; z-index:500; padding:10px 14px;
  background:#000; border:1px solid var(--st-orange); border-radius:6px;
  font-family:ui-monospace,Menlo,monospace; font-size:13px; color:#fff;
}

/* Chapter rows */
.st-list { list-style:none; border-top:1px solid var(--st-line); }
.st-row { border-bottom:1px solid var(--st-line); }
.st-row__link {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:24px; align-items:center;
  padding:22px 0; text-decoration:none;
}
.st-row__still { position:relative; aspect-ratio:16/9; overflow:hidden; background:#16130F; }
.st-row__still img { width:100%; height:100%; object-fit:cover; transition:transform .6s ease, opacity .3s; opacity:.92; }
.st-row__link:hover .st-row__still img { transform:scale(1.03); opacity:1; }
.st-row__meta { font-family:var(--st-ui); font-size:11px; letter-spacing:.24em; text-transform:uppercase; color:var(--st-muted); }
.st-row__meta .n { color:var(--st-orange); margin-right:10px; }
.st-row__title { font-size:clamp(1.3rem,2vw,1.6rem); margin:10px 0 4px; padding-left:0; }
.st-row__sub { font-style:italic; color:var(--st-ink-2); font-size:16px; }
.st-row__foot {
  display:flex; align-items:center; gap:16px; margin-top:14px;
  font-family:var(--st-ui); font-size:12px; color:var(--st-muted);
}
.st-row__go { color:var(--st-ink); letter-spacing:.14em; text-transform:uppercase; font-size:11px; transition:color .2s; }
.st-row__link:hover .st-row__go { color:var(--st-orange); }
.st-row--soon .st-row__link { cursor:default; opacity:.5; }

/* ═══ HUB — THE RULES ═══ */
.st-rules { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:48px; }
.st-rule-item__n { font-size:15px; color:var(--st-orange); letter-spacing:.2em; }
.st-rule-item__t { font-size:1.2rem; line-height:1.35; margin:14px 0 12px; }
.st-rule-item__d { font-size:15.5px; line-height:1.75; color:var(--st-ink-2); }

/* ═══ HUB — HOW IT'S MADE / AI NOTE ═══ */
.st-made { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:64px; align-items:start; }
.st-made__body p { color:var(--st-ink-2); margin-bottom:18px; }
.st-made__body p:last-child { margin-bottom:0; }
.st-ai {
  border:1px solid var(--st-line); padding:28px 30px;
  font-family:var(--st-sans); font-size:14.5px; line-height:1.7; color:var(--st-ink-2);
}
.st-ai__k { display:flex; align-items:center; gap:10px; margin-bottom:12px;
  font-family:var(--st-ui); font-size:11px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--st-ink); }
.st-ai__k::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--st-orange); }
.st-ai a { color:var(--st-ink); text-underline-offset:3px; }
.st-ai a:hover { color:var(--st-orange); }

.st-invite { text-align:center; max-width:640px; margin:0 auto; }
.st-invite__t { font-size:clamp(1.25rem,2.2vw,1.6rem); line-height:1.4; margin:16px 0 14px; }
.st-invite p { color:var(--st-ink-2); margin-bottom:30px; }
.st-btn {
  display:inline-flex; align-items:center; gap:10px; min-height:48px; padding:14px 28px;
  font-family:var(--st-ui); font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--st-ink); text-decoration:none; border:1px solid var(--st-orange); border-radius:4px;
  transition:background .2s, color .2s;
}
.st-btn:hover { background:var(--st-orange); color:#120A02; }
.st-btn svg { width:12px; height:12px; }

/* ═══ FOOTER — same as foxtale.es ═══ */
.footer { background:#0D0F14; border-top:1px solid rgba(255,255,255,.07); padding:56px 0 48px; }
.footer__grid {
  max-width:1200px; margin:0 auto; padding:0 40px;
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px;
}
.footer__desc { font-family:var(--st-sans); font-size:13px; color:rgba(240,237,232,.45); line-height:1.65; margin-top:16px; max-width:280px; }
.footer__copy { font-family:var(--st-ui); font-size:12px; color:rgba(240,237,232,.28); margin-top:28px; }
.footer__col-h { font-family:var(--st-ui); font-size:10px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--st-orange); margin-bottom:20px; }
.footer__lnks { list-style:none; display:flex; flex-direction:column; gap:11px; }
.footer__lnks a { font-family:var(--st-sans); font-size:14px; color:rgba(240,237,232,.55); text-decoration:none; transition:color .2s; padding:4px 0; }
.footer__lnks a:hover { color:#F0EDE8; }
.footer__lnks span { font-family:var(--st-sans); font-size:14px; color:rgba(240,237,232,.55); line-height:1.65; }

/* ═══ REVEAL ═══ */
.reveal { opacity:0; transform:translateY(14px); transition:opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.on { opacity:1; transform:none; }
.d1 { transition-delay:.12s; } .d2 { transition-delay:.24s; } .d3 { transition-delay:.36s; }

/* ═══ ACCESSIBILITY ═══ */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline:3px solid var(--st-orange); outline-offset:3px; border-radius:4px;
}
.skip-link {
  position:absolute; left:50%; top:0; transform:translate(-50%,-120%); z-index:999;
  padding:12px 22px; background:var(--st-orange); color:#fff; text-decoration:none;
  font-family:var(--st-ui); font-size:13px; font-weight:700; letter-spacing:.06em; border-radius:0 0 8px 8px;
  transition:transform .18s ease;
}
.skip-link:focus { transform:translate(-50%,0); }
.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; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  .reveal { opacity:1 !important; transform:none !important; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width:960px) {
  .st-atlas, .st-made { grid-template-columns:1fr; gap:48px; }
  .st-map { max-width:520px; margin:0 auto; }
  .st-rules { grid-template-columns:1fr; gap:40px; }
  .footer__grid { grid-template-columns:1fr 1fr; gap:36px; }
}
@media (max-width:640px) {
  .nav__links, .nav__cta { display:none; }
  .nav__burger, .nav__mobile { display:flex; }
  .st-wrap { padding:0 22px; }
  .st-opener { padding:84px 22px 72px; }
  .st-sec { padding:68px 0; }
  .st-row__link { grid-template-columns:1fr; gap:14px; }
  .st-map__label { font-size:11px; left:28px; }
  .st-ai { padding:22px; }
  .footer { padding:40px 0 36px; }
  .footer__grid { grid-template-columns:1fr; gap:32px; padding:0 24px; }
}
@media (max-width:380px) { .nav__inner { padding:0 20px; } }

/* ═══════════════════════════════════════════════════════════
   CHAPTER PAGE — stilltold/<slug>/index.html
═══════════════════════════════════════════════════════════ */
.st-ch-head { margin-top:62px; padding:88px 24px 48px; text-align:center; }
.st-ch-head__title { font-size:clamp(2.4rem,6.4vw,4.8rem); line-height:1.05; margin:20px 0 10px; }
.st-ch-head__sub { font-style:italic; font-size:clamp(1.1rem,2vw,1.4rem); color:var(--st-ink-2); }
.st-ch-head__epi {
  max-width:560px; margin:30px auto 0; font-size:16px; line-height:1.8; color:var(--st-muted); font-style:italic;
}

/* Video: poster + play button, YouTube loads only on click */
.st-player-wrap { max-width:1280px; margin:0 auto; padding:0 40px; }
.st-player { position:relative; aspect-ratio:16/9; background:#000; overflow:hidden; }
.st-player__poster, .st-player iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.st-player__poster img { width:100%; height:100%; object-fit:cover; opacity:.9; transition:opacity .4s, transform 1.2s ease; }
.st-player:hover .st-player__poster img { opacity:1; transform:scale(1.015); }
.st-player__play {
  position:absolute; inset:0; z-index:2; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px;
  background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); border:0; cursor:pointer; color:var(--st-ink);
}
.st-player__btn {
  width:84px; height:84px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(232,228,220,.7); background:rgba(11,10,9,.35);
  transition:border-color .25s, background .25s, transform .25s;
}
.st-player__btn svg { width:24px; height:24px; margin-left:4px; fill:currentColor; }
.st-player__play:hover .st-player__btn, .st-player__play:focus-visible .st-player__btn {
  border-color:var(--st-orange); background:rgba(248,120,38,.18); transform:scale(1.06);
}
.st-player__label { font-family:var(--st-ui); font-size:11px; font-weight:600; letter-spacing:.24em; text-transform:uppercase; }
.st-player__note {
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:12px;
  font-family:var(--st-ui); font-size:12px; color:var(--st-muted);
}

/* Series signature: place + small map + data */
.st-sig {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:32px; align-items:center;
  padding:36px 0; border-bottom:1px solid var(--st-line-soft);
}
.st-sig__place { font-size:clamp(1rem,1.6vw,1.2rem); }
.st-sig__map { width:150px; }
.st-sig__data { display:flex; gap:28px; flex-wrap:wrap; justify-content:flex-end; }
.st-sig__data div { font-family:var(--st-ui); font-size:12px; color:var(--st-muted); line-height:1.5; }
.st-sig__data b { display:block; font-weight:500; color:var(--st-ink); font-size:14px; }
.st-sig__ai b { color:var(--st-orange) !important; }

/* Long-form text */
.st-prose { max-width:680px; }
.st-prose p { color:var(--st-ink-2); margin-bottom:20px; }
.st-prose p:last-child { margin-bottom:0; }
.st-prose em { color:var(--st-ink); }
.st-say {
  margin:36px 0; padding-left:24px; border-left:1px solid var(--st-orange); border-radius:0;
}
.st-say__eu { font-size:clamp(1.3rem,2.4vw,1.75rem); line-height:1.3; color:var(--st-ink); }
.st-say__en { font-style:italic; color:var(--st-muted); margin-top:6px; font-size:16px; }
.st-two { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 48px; }

/* Sources */
.st-sources { list-style:none; counter-reset:src; border-top:1px solid var(--st-line); }
.st-sources li {
  counter-increment:src; display:grid; grid-template-columns:40px minmax(0,1fr); gap:12px;
  padding:18px 0; border-bottom:1px solid var(--st-line);
}
.st-sources li::before { content:counter(src, decimal-leading-zero); font-family:var(--st-ui); font-size:12px; color:var(--st-orange); padding-top:4px; }
.st-sources b { font-weight:400; color:var(--st-ink); }
.st-sources span { display:block; font-size:15px; color:var(--st-muted); }

/* The film in moments: stills grid */
.st-frames { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px 14px; }
.st-frame__img { position:relative; aspect-ratio:16/9; overflow:hidden; background:#16130F; }
.st-frame__img img { width:100%; height:100%; object-fit:cover; }
.st-frame figcaption { margin-top:10px; font-family:var(--st-ui); font-size:12px; line-height:1.5; color:var(--st-muted); }
.st-frame figcaption b { color:var(--st-orange); font-weight:500; margin-right:8px; }

/* Process steps */
.st-steps { list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 48px; border-top:1px solid var(--st-line); }
.st-step { display:grid; grid-template-columns:44px minmax(0,1fr); gap:12px; padding:22px 0; border-bottom:1px solid var(--st-line); }
.st-step__n { font-family:var(--st-ui); font-size:12px; color:var(--st-orange); padding-top:5px; }
.st-step__t { font-size:1.08rem; margin-bottom:4px; }
.st-step__d { font-size:15px; line-height:1.7; color:var(--st-ink-2); }
.st-step__tools { display:block; margin-top:8px; font-family:var(--st-ui); font-size:12px; letter-spacing:.04em; color:var(--st-muted); }

/* Credits */
.st-credits { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; margin-bottom:40px; }
.st-credits dt { font-family:var(--st-ui); font-size:11px; letter-spacing:.24em; text-transform:uppercase; color:var(--st-muted); margin-bottom:8px; }
.st-credits dd { color:var(--st-ink); font-size:16px; line-height:1.6; }

/* Closing lines + chapter navigation */
.st-closing { text-align:center; padding:110px 24px; border-top:1px solid var(--st-line-soft); }
.st-closing p { font-size:clamp(1.3rem,2.6vw,1.9rem); line-height:1.5; color:var(--st-ink); font-style:italic; }
.st-closing .st-rule { margin:34px auto 0; }
.st-chnav {
  display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;
  padding:28px 0 64px; font-family:var(--st-ui); font-size:12px; letter-spacing:.16em; text-transform:uppercase;
}
.st-chnav a { color:var(--st-ink); text-decoration:none; transition:color .2s; min-height:44px; display:inline-flex; align-items:center; }
.st-chnav a:hover { color:var(--st-orange); }
.st-chnav span { color:var(--st-muted); }

@media (max-width:960px) {
  .st-frames { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .st-steps, .st-two { grid-template-columns:1fr; }
  .st-credits { grid-template-columns:1fr 1fr; }
  .st-sig { grid-template-columns:1fr auto; }
  .st-sig__data { grid-column:1 / -1; justify-content:flex-start; }
}
@media (max-width:640px) {
  .st-ch-head { padding:64px 22px 36px; }
  .st-player-wrap { padding:0; }
  .st-player__note { padding:0 22px; }
  .st-player__btn { width:68px; height:68px; }
  .st-sig__map { width:110px; }
  .st-credits { grid-template-columns:1fr; }
  .st-closing { padding:80px 22px; }
}
.st-prose .st-say p { margin-bottom:0; }
.st-prose .st-say__eu { color:var(--st-ink); }
.st-prose .st-say__en { color:var(--st-muted); }


/* ═══════════════════════════════════════════════════════════
   WARM LAYER — Foxtale orange glows and gradients into black,
   so the series reads warm and inviting rather than gloomy
═══════════════════════════════════════════════════════════ */
.st-kicker { color:var(--st-orange-2); }
.st-rule { width:90px; height:1px; background:linear-gradient(90deg, transparent, var(--st-orange), transparent); }

/* Openers: a soft sunrise of orange behind the title */
.st-opener, .st-ch-head {
  background:
    radial-gradient(ellipse 70% 75% at 50% 0%, rgba(248,120,38,.26) 0%, rgba(190,90,20,.10) 42%, transparent 72%),
    var(--st-bg);
}

/* Section variants */
.st-sec--warm {
  background:linear-gradient(180deg, var(--st-bg-2) 0%, var(--st-bg) 100%);
  border-top-color:rgba(248,120,38,.14);
}
.st-sec--glow {
  background:
    radial-gradient(ellipse 65% 85% at 50% 100%, rgba(248,120,38,.30) 0%, rgba(150,60,10,.12) 42%, transparent 74%),
    var(--st-bg);
  border-top-color:rgba(248,120,38,.14);
}

/* Main button: filled, same gradient as foxtale.es */
.st-btn {
  background:var(--st-orange-grad); color:#1A0E00; border:0; border-radius:10px;
  box-shadow:0 4px 18px rgba(248,120,38,.35);
  transition:transform .2s, box-shadow .2s, opacity .2s;
}
.st-btn:hover { background:var(--st-orange-grad); color:#1A0E00; transform:translateY(-1px); box-shadow:0 8px 26px rgba(248,120,38,.5); }

/* Map: warm halo under the chapter pins */
.st-map::after {
  content:''; position:absolute; inset:10% 5%; z-index:0; pointer-events:none;
  background:radial-gradient(ellipse at 50% 45%, rgba(248,120,38,.10) 0%, transparent 65%);
}
.st-map__img { z-index:1; }

/* Chapter rows: warm edge on hover */
.st-row__still { outline:1px solid transparent; transition:outline-color .3s; }
.st-row__link:hover .st-row__still { outline-color:rgba(248,120,38,.55); }

/* Player: orange glow under the film and a filled play button */
.st-player { box-shadow:0 40px 120px -30px rgba(248,120,38,.35); }
.st-player__btn {
  border:0; background:var(--st-orange-grad); color:#1A0E00;
  box-shadow:0 8px 30px rgba(248,120,38,.45), 0 0 0 8px rgba(248,120,38,.16);
}
.st-player__play:hover .st-player__btn, .st-player__play:focus-visible .st-player__btn {
  background:var(--st-orange-grad);
  box-shadow:0 10px 36px rgba(248,120,38,.6), 0 0 0 12px rgba(248,120,38,.2);
}

/* AI note box: warm tint */
.st-ai { background:linear-gradient(135deg, rgba(248,120,38,.07) 0%, transparent 60%); border-color:rgba(248,120,38,.22); }

/* Spoken lines in Basque: orange edge fades down */
.st-say { border-left:0; position:relative; }
.st-say::before { content:''; position:absolute; left:0; top:4px; bottom:4px; width:2px; background:linear-gradient(180deg, var(--st-orange), rgba(248,120,38,0)); }

/* Headings: lighter weight, documentary feel */
.st-sec__title, .st-rule-item__t, .st-invite__t, .st-step__t, .st-row__title, h1, h2, h3 { font-weight:500; }
.st-sig__place { white-space:nowrap; }
@media (max-width:640px) {
  .st-sig__place { font-size:.95rem; letter-spacing:.22em; }
}


/* Centred section heading with a drolerie on each side */
.st-heading { display:flex; align-items:center; justify-content:center; gap:clamp(16px,3vw,40px); margin-bottom:44px; }
.st-heading__title { font-size:clamp(1.6rem,3.4vw,2.6rem); line-height:1.15; color:var(--st-ink); text-align:center; }
.st-heading__drol { width:clamp(56px,7vw,96px); height:auto; opacity:.9; flex-shrink:0; }
.st-heading__drol--r { transform:scaleX(-1); }
@media (max-width:640px) { .st-heading { gap:10px; margin-bottom:32px; } .st-heading__title { font-size:1.35rem; letter-spacing:.22em; padding-left:.22em; } }

/* Tighter rhythm between sections */
.st-sec { padding:64px 0; }
.st-sec__head { margin-bottom:36px; }
.st-opener { padding-bottom:72px; }
.st-ch-head { padding-bottom:40px; }
.st-sig { padding:28px 0; }
.st-closing { padding:80px 24px; }
@media (max-width:640px) {
  .st-sec { padding:48px 0; }
  .st-opener { padding:72px 22px 56px; }
  .st-closing { padding:64px 22px; }
}
@media (max-width:640px) {
  .st-heading__title { white-space:nowrap; font-size:1.12rem; letter-spacing:.18em; padding-left:.18em; }
  .st-heading__drol { width:46px; }
}

/* Chapters heading in Foxtale orange (no droleries) */
.st-heading__title { color:var(--st-orange); }

/* Tighter, sales-page rhythm */
.st-opener { padding:96px 24px 56px; }
.st-opener__title { margin:18px 0 14px; }
.st-opener .st-rule { margin:26px auto; }
.st-sec { padding:56px 0; }
.st-sec__head { margin-bottom:30px; }
.st-heading { margin-bottom:34px; }
.st-atlas { gap:48px; align-items:center; }
.st-atlas .st-map { max-width:500px; }
.st-row__link { padding:18px 0; }
.st-rules { gap:40px; }
.st-made { gap:48px; }
.st-invite p { margin-bottom:26px; }
@media (max-width:640px) {
  .st-opener { padding:68px 22px 44px; }
  .st-sec { padding:44px 0; }
}

/* Calls to action in the opener */
.st-cta-row { display:flex; justify-content:center; align-items:center; gap:14px; flex-wrap:wrap; margin-top:30px; }
.st-btn svg { width:12px; height:12px; }
.st-btn--ghost { background:transparent; color:var(--st-ink); border:1px solid var(--st-orange); box-shadow:none; }
.st-btn--ghost:hover { background:rgba(248,120,38,.12); color:var(--st-ink); box-shadow:none; }

/* Credentials as small chips */
.st-creds { list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.st-creds li {
  font-family:var(--st-ui); font-size:12px; letter-spacing:.02em; color:var(--st-ink-2);
  padding:6px 12px; border:1px solid rgba(248,120,38,.3); border-radius:20px; background:rgba(248,120,38,.05);
}
@media (max-width:640px) {
  .st-cta-row { flex-direction:column; align-items:stretch; max-width:320px; margin-left:auto; margin-right:auto; }
  .st-cta-row .st-btn { justify-content:center; }
  .st-rules { gap:24px; }
}

/* Even tighter spacing between sections */
.st-opener { padding:80px 24px 44px; }
.st-ch-head { padding:72px 24px 32px; }
.st-sec { padding:40px 0; }
.st-sec__head { margin-bottom:24px; }
.st-heading { margin-bottom:26px; }
.st-sig { padding:22px 0; }
.st-closing { padding:56px 24px; }
.st-chnav { padding:20px 0 40px; }
.st-atlas { gap:40px; }
@media (max-width:640px) {
  .st-opener { padding:60px 22px 36px; }
  .st-sec { padding:36px 0; }
  .st-closing { padding:48px 22px; }
}

/* ═══ Chapter list as a scroll area ═══ */
.st-list-wrap { position:relative; }
.st-list {
  overflow-y:auto; overscroll-behavior:contain; padding-right:12px;
  scrollbar-width:thin; scrollbar-color:var(--st-orange) rgba(255,255,255,.06);
}
.st-list::-webkit-scrollbar { width:4px; height:4px; }
.st-list::-webkit-scrollbar-track { background:rgba(255,255,255,.06); border-radius:4px; }
.st-list::-webkit-scrollbar-thumb { background:var(--st-orange); border-radius:4px; }
.st-list:focus-visible { outline:2px solid var(--st-orange); outline-offset:6px; }
/* soft fade over the next chapter, gone once you reach the end */
.st-list-wrap::after {
  content:''; position:absolute; left:0; right:16px; bottom:0; height:90px; pointer-events:none;
  background:linear-gradient(180deg, rgba(13,11,9,0) 0%, rgba(13,11,9,.92) 100%);
  transition:opacity .3s;
}
.st-list-wrap.at-end::after { opacity:0; }
.st-list-hint {
  display:flex; align-items:center; gap:14px; margin-top:14px;
  font-family:var(--st-ui); font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--st-muted);
}
.st-list-hint__go { color:var(--st-orange-2); }
.st-list-hint__go::after { content:' ↓'; display:inline-block; animation:st-nudge 1.8s ease-in-out infinite; }
@keyframes st-nudge { 0%,100% { transform:translateY(0); } 50% { transform:translateY(3px); } }

/* Mobile: the same list becomes a sideways strip, the next chapter peeks in */
@media (max-width:640px) {
  .st-list {
    display:flex; gap:14px; overflow-x:auto; overflow-y:hidden; padding:0 0 12px; border-top:0;
    scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
  }
  .st-row { flex:0 0 82%; scroll-snap-align:start; border:1px solid var(--st-line); border-radius:4px; padding:0 0 4px; }
  .st-row__link { padding:0; gap:12px; }
  .st-row__link > div:last-child { padding:0 14px 10px; }
  .st-list-wrap::after {
    left:auto; right:0; top:0; bottom:12px; width:56px; height:auto;
    background:linear-gradient(90deg, rgba(13,11,9,0) 0%, rgba(13,11,9,.92) 100%);
  }
  .st-list-hint__go::after { content:' →'; animation-name:st-nudge-x; }
  @keyframes st-nudge-x { 0%,100% { transform:translateX(0); } 50% { transform:translateX(3px); } }
}

/* ═══ Buttons as <button> ═══ */
button.st-btn { cursor:pointer; font:inherit; font-family:var(--st-ui); font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; }

/* ═══ Chapter rows: play on the still, two clear actions ═══ */
button.st-row__still { display:block; width:100%; padding:0; border:0; cursor:pointer; text-align:left; }
.st-row__play {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:2;
  width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--st-orange-grad); color:#1A0E00; box-shadow:0 6px 22px rgba(248,120,38,.45);
  transition:transform .25s;
}
.st-row__play svg { width:18px; height:18px; margin-left:3px; fill:currentColor; }
.st-row__still:hover .st-row__play, .st-row__still:focus-visible .st-row__play { transform:translate(-50%,-50%) scale(1.08); }
.st-row__title a { text-decoration:none; transition:color .2s; }
.st-row__title a:hover { color:var(--st-orange-2); }
.st-row__foot { gap:18px; flex-wrap:wrap; }
.st-row__watch {
  display:inline-flex; align-items:center; gap:8px; padding:8px 14px; min-height:36px;
  font-family:var(--st-ui); font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:#1A0E00; background:var(--st-orange-grad); border:0; border-radius:6px; cursor:pointer;
}
.st-row__watch svg { width:10px; height:10px; fill:currentColor; }
.st-row__go { text-decoration:none; }

/* ═══ Subtitle language bar ═══ */
.st-langs { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.st-langs__k { font-family:var(--st-ui); font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--st-muted); margin-right:6px; }
.st-langs__b {
  font-family:var(--st-ui); font-size:12px; color:var(--st-ink-2); background:transparent;
  border:1px solid var(--st-line); border-radius:20px; padding:6px 12px; min-height:32px; cursor:pointer;
  transition:border-color .2s, color .2s, background .2s;
}
.st-langs__b:hover { border-color:rgba(248,120,38,.6); color:var(--st-ink); }
.st-langs__b[aria-pressed="true"] { background:var(--st-orange-grad); border-color:transparent; color:#1A0E00; font-weight:600; }
.st-player__note { align-items:center; }
.st-player__frame, .st-player__frame > div, .st-player__frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }

/* ═══ Floating film window ═══ */
.st-modal { position:fixed; inset:0; z-index:1000; display:none; align-items:center; justify-content:center; padding:24px; }
.st-modal.open { display:flex; }
.st-modal__backdrop { position:absolute; inset:0; background:rgba(5,4,3,.9); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); cursor:pointer; }
.st-modal__box {
  position:relative; width:min(1100px, 100%); background:var(--st-bg); border:1px solid rgba(248,120,38,.25);
  box-shadow:0 40px 120px -20px rgba(248,120,38,.3), 0 20px 60px rgba(0,0,0,.7);
  animation:st-modal-in .3s cubic-bezier(.16,1,.3,1);
}
@keyframes st-modal-in { from { opacity:0; transform:translateY(12px) scale(.98); } to { opacity:1; transform:none; } }
.st-modal__bar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 12px 10px 18px; }
.st-modal__title { font-family:var(--st-ui); font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--st-ink); }
.st-modal__close {
  width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); color:var(--st-ink); cursor:pointer; transition:background .2s;
}
.st-modal__close:hover { background:var(--st-orange); color:#1A0E00; }
.st-modal__close svg { width:14px; height:14px; stroke:currentColor; stroke-width:2; stroke-linecap:round; fill:none; }
.st-modal__player { box-shadow:none; }
.st-modal__foot { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:14px 18px 16px; }
.st-modal__more { font-family:var(--st-ui); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--st-ink); text-decoration:none; }
.st-modal__more:hover { color:var(--st-orange-2); }
@media (max-width:640px) {
  .st-modal { padding:0; align-items:center; }
  .st-modal__box { border-left:0; border-right:0; }
  .st-modal__title { font-size:11px; letter-spacing:.12em; }
  .st-modal__foot { padding:12px 14px 16px; }
  .st-player__note { flex-direction:column; align-items:flex-start; gap:10px; }
}

/* Bigger film window: YouTube chooses the quality from the player size,
   so a 1080p-sized window lets it serve 1080p */
.st-modal__box { width:min(1600px, 96vw, calc((100vh - 150px) * 16 / 9)); }
.st-player-wrap { max-width:1600px; }
@media (max-width:640px) { .st-modal__box { width:100vw; } }

/* Current page in the menu, same as foxtale.es */
.nav__links a.active { color:var(--st-orange); font-weight:500; position:relative; }
.nav__links a.active::after { content:''; position:absolute; left:0; right:0; bottom:-4px; height:2px; background:var(--st-orange); border-radius:2px; }
.nav__mobile a.active { color:var(--st-orange); }
