:root {
  --ink: #071f2e;
  --ink-2: #0b3141;
  --cream: #fff9ec;
  --paper: #f8edda;
  --red: #c91d2e;
  --red-dark: #8f0d1d;
  --green: #0e6c4d;
  --gold: #e8b74c;
  --muted: #695d55;
  --shadow: 0 24px 60px rgba(2, 23, 33, .22);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Trebuchet MS", Avenir, Arial, sans-serif; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid #ffd86b; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .8rem 1rem; background: #fff; border-radius: 10px; }
.skip-link:focus { top: 1rem; }

.site-header { position: absolute; z-index: 20; inset: 0 0 auto; height: 94px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 5vw, 76px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.16); }
.brand img { width: 168px; height: 74px; object-fit: contain; object-position: left center; }
.site-header nav { display: flex; gap: 2.2rem; }
.site-header nav a { text-decoration: none; font-size: .88rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.site-header nav a:hover { color: #ffd877; }
.sound-button { border: 1px solid rgba(255,255,255,.35); border-radius: 99px; background: rgba(255,255,255,.1); color: #fff; padding: .68rem 1rem; cursor: pointer; backdrop-filter: blur(8px); }
.sound-button:hover { background: rgba(255,255,255,.2); }

.hero { min-height: 760px; height: min(900px, 100svh); position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; padding: 120px clamp(28px, 7vw, 110px) 76px; isolation: isolate; overflow: hidden; color: #fff; background: #071f2e; }
.hero-backdrop { position: absolute; z-index: -3; inset: 0; background: linear-gradient(90deg, rgba(4,24,35,.99) 0%, rgba(4,24,35,.92) 36%, rgba(4,24,35,.44) 65%, rgba(4,24,35,.18)), url("assets/images/locations/Santa%20Workshop%20Ext_01.png") center/cover; transform: scale(1.02); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, #071f2e); }
.hero-stars { position: absolute; z-index: -2; inset: 0; opacity: .5; background-image: radial-gradient(circle, #fff 1px, transparent 1.5px); background-size: 54px 54px; mask-image: linear-gradient(90deg,#000,transparent 70%); }
.hero-copy { max-width: 690px; }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; text-transform: uppercase; font-size: .74rem; font-weight: 900; letter-spacing: .2em; color: #ffe7a4; }
.eyebrow span { width: 28px; height: 1px; background: currentColor; }
.eyebrow.red { justify-content: center; color: var(--red); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
h1 { margin: 0; max-width: 770px; font-size: clamp(3.4rem, 6.4vw, 6.8rem); line-height: .91; text-shadow: 0 5px 30px rgba(0,0,0,.18); }
h1 em, h2 em { color: #ffcf62; font-weight: 400; }
.hero-intro { max-width: 610px; margin: 1.7rem 0 2rem; color: #e9f1f1; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: 1rem 1.35rem; border-radius: 999px; font-weight: 900; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: #fff; background: var(--red); box-shadow: 0 14px 35px rgba(174,12,29,.42); }
.button-primary:hover { background: #e0273a; }
.button-ghost { color: #fff; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.button-light { color: var(--red-dark); background: #fff; box-shadow: 0 14px 32px rgba(73,0,7,.25); }
.family-note { margin-top: 2rem; color: #b9d0d3; font-size: .86rem; }
.family-note span { color: #ffd15d; }
.hero-character { align-self: end; justify-self: center; position: relative; width: min(46vw, 590px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }
.hero-character img { position: relative; z-index: 1; width: 100%; }
.gold-orbit { position: absolute; inset: 10% 0 6%; border: 1px solid rgba(255,207,98,.32); border-radius: 50%; box-shadow: 0 0 90px rgba(255,201,71,.25), inset 0 0 80px rgba(255,201,71,.1); }
.scroll-cue { position: absolute; z-index: 2; bottom: 25px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; text-decoration: none; font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: #d5e0e2; }
.scroll-cue b { font-size: 1.7rem; animation: bob 1.8s infinite; }

.watch-section { padding: 100px clamp(20px, 5vw, 76px); color: #fff; background: radial-gradient(circle at 15% 10%, #154c59, transparent 34%), var(--ink); }
.section-heading { max-width: 740px; margin: 0 auto 3.2rem; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-heading h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .98; }
.section-heading p:last-child { margin: 1rem auto 0; color: var(--muted); font-size: 1.05rem; }
.section-heading.light p:last-child { color: #b7cbd0; }
.screen-layout { max-width: 1020px; margin: auto; display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.video-shell { position: relative; width: min(100%, 430px); aspect-ratio: 9/16; margin: auto; border: 9px solid #e6bb5d; border-radius: 38px; overflow: hidden; background: #000; box-shadow: 0 35px 70px rgba(0,0,0,.45), 0 0 0 3px #6e4812; }
.video-shell video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.big-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%,-50%); border: 2px solid #fff; border-radius: 50%; color: #fff; background: rgba(168,16,31,.88); cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s ease, opacity .2s ease; }
.big-play:hover { transform: translate(-50%,-50%) scale(1.08); }
.video-shell.is-playing .big-play { opacity: 0; pointer-events: none; }
.now-playing { max-width: 410px; }
.episode-kicker { color: #ffcf62; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.now-playing h3 { margin: .5rem 0; font-size: clamp(3rem, 5vw, 5rem); line-height: .94; }
.episode-note { color: #b7cbd0; }
.episode-progress { height: 4px; margin: 2.2rem 0; border-radius: 10px; background: rgba(255,255,255,.15); overflow: hidden; }
.episode-progress span { display: block; width: 0; height: 100%; background: #ffcf62; transition: width .25s linear; }
.next-episode { padding: .8rem 0; border: 0; color: #fff; background: none; font-weight: 900; cursor: pointer; }
.next-episode span { color: #ffcf62; }
.episode-rail { max-width: 1220px; margin: 5rem auto 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.episode-card { position: relative; min-width: 0; padding: 0; border: 0; border-radius: 20px; overflow: hidden; color: #fff; background: #12313c; text-align: left; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.episode-card:hover, .episode-card.is-active { transform: translateY(-7px); box-shadow: 0 18px 35px rgba(0,0,0,.35); }
.episode-card.is-active { outline: 3px solid #ffcf62; outline-offset: 3px; }
.episode-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.episode-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(4,22,29,.94)); }
.episode-card .meta { position: absolute; z-index: 1; inset: auto 14px 15px; }
.episode-card small { display: block; color: #ffcf62; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.episode-card strong { display: block; margin-top: .3rem; font-family: Georgia, serif; font-size: 1.15rem; }

.letter-cta { min-height: 520px; display: grid; grid-template-columns: 1fr .8fr; align-items: center; overflow: hidden; padding: 70px clamp(28px, 8vw, 130px); color: #fff; background: radial-gradient(circle at 80% 40%, #e53a48, transparent 28%), var(--red-dark); }
.letter-cta h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 5.4rem); line-height: .95; }
.letter-cta p:not(.eyebrow) { max-width: 530px; line-height: 1.7; color: #ffe2de; }
.letter-cta img { width: min(430px, 39vw); aspect-ratio: 1; justify-self: end; object-fit: cover; border: 8px solid rgba(255,255,255,.9); border-radius: 28px; box-shadow: 0 30px 65px rgba(73,0,7,.35); }
.text-link { color: #fff; font-weight: 900; text-underline-offset: 5px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 34px clamp(24px, 5vw, 76px); color: #c8d6d8; background: #03151e; font-size: .84rem; }
footer img { width: 120px; height: 60px; object-fit: contain; }
footer a { color: #ffcf62; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translate(-50%, 130px); padding: .9rem 1.2rem; border-radius: 99px; color: var(--ink); background: #fff; box-shadow: var(--shadow); font-weight: 900; transition: transform .3s ease; }
.toast.is-visible { transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes bob { 50% { transform: translateY(6px); } }
@keyframes snow-fall { to { background-position: 0 900px, 40px 680px; } }
.snow { position: fixed; z-index: 40; inset: 0; pointer-events: none; opacity: 0; background-image: radial-gradient(circle, #fff 2px, transparent 2.5px), radial-gradient(circle, #fff 1px, transparent 1.5px); background-size: 90px 90px, 55px 55px; transition: opacity .4s ease; }
body.is-snowing .snow { opacity: .6; animation: snow-fall 9s linear infinite; }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 820px; height: auto; padding-top: 150px; text-align: center; }
  .hero-copy { z-index: 2; margin: auto; }
  .hero-actions, .eyebrow { justify-content: center; }
  .hero-character { position: absolute; z-index: -1; opacity: .28; right: -80px; bottom: 0; width: 70vw; }
  .screen-layout { grid-template-columns: 1fr; text-align: center; }
  .now-playing { margin: auto; }
  .episode-rail { grid-template-columns: repeat(5, minmax(170px, 1fr)); overflow-x: auto; padding: 7px 4px 26px; scroll-snap-type: x mandatory; }
  .episode-card { scroll-snap-align: start; }
  .letter-cta { grid-template-columns: 1fr; text-align: center; }
  .letter-cta .eyebrow, .letter-cta .hero-actions { justify-content: center; }
  .letter-cta p { margin-left: auto; margin-right: auto; }
  .letter-cta img { display: none; }
}

@media (max-width: 600px) {
  .site-header { height: 78px; padding: 0 16px; }
  .brand img { width: 120px; height: 58px; }
  .sound-label { display: none; }
  .hero { min-height: 760px; padding: 120px 20px 80px; }
  .hero-backdrop { background-position: 60% center; }
  h1 { font-size: clamp(3.2rem, 15vw, 4.7rem); }
  .hero-intro { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .watch-section { padding: 75px 16px; }
  .video-shell { width: min(88vw, 380px); border-width: 6px; border-radius: 30px; }
  .episode-rail { margin-top: 3.5rem; }
  .letter-cta { min-height: 590px; padding: 70px 20px; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
