/* Romantic Hollywood saga — forest, firelight and human folly */
:root {
  --night: #0d1511;
  --night-raised: #152019;
  --night-soft: #1e2920;
  --paper: #e9dfca;
  --paper-light: #f4ecdc;
  --ink: #f1e8d7;
  --ink-soft: #c0b8a8;
  --gold: #c9b46d;
  --gold-dark: #c9b46d;
  --rose: #ad786e;
  --vermilion: #a4513e;
  --line-dark: rgba(233, 223, 202, 0.2);
  --line-light: rgba(233, 223, 202, 0.2);
}

body { background: #0d1511; color: var(--paper-light); }
.section.night { background: #0d1511; }
.section.raised { background: #152019; }
.section.paper { background: #101a14; }
.section.light { background: #18231b; }
.section.paper::before, .section.light::before { display: none; }
.saga-red-plane, .saga-lines { display: none; }
.site-header { transition: transform 450ms var(--ease-saga), background-color 240ms ease, border-color 240ms ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { background: rgba(13, 21, 17, 0.95); border-color: rgba(201,180,109,0.28); }
.site-nav a::after { background: var(--gold); }
.button { clip-path: none; border-radius: 2px; }
.button:hover { background: var(--gold); border-color: var(--gold); }
.button.dark { background: var(--paper); color: #162017; border-color: var(--paper); }
.button.ghost { color: var(--paper-light); }
.button.ghost:hover { color: #162017; }

.saga-hero { background: #0d1511; }
.saga-hero-image { inset: 0; clip-path: none; }
.saga-hero-image img { object-position: 58% 50%; filter: brightness(0.8) saturate(0.82) contrast(1.03); }
.saga-hero-image::after {
  background:
    linear-gradient(90deg, rgba(13,21,17,0.94) 0%, rgba(13,21,17,0.42) 43%, rgba(13,21,17,0.04) 74%),
    linear-gradient(0deg, rgba(13,21,17,0.97) 0%, rgba(13,21,17,0.12) 58%, rgba(13,21,17,0.3) 100%);
}
.saga-hero::after { opacity: 0.07; mix-blend-mode: soft-light; }
.romantic-roots { position: absolute; z-index: 2; left: 0; bottom: -8px; width: min(52vw, 700px); height: auto; fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.4; pointer-events: none; }
.romantic-rain {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(112deg, transparent 0 47%, rgba(255,255,255,0.32) 49% 50%, transparent 52% 100%),
    linear-gradient(112deg, transparent 0 47%, rgba(255,255,255,0.22) 49% 50%, transparent 52% 100%);
  background-size: 43px 150px, 71px 230px;
  animation: romantic-rainfall 1.9s linear infinite;
}
@keyframes romantic-rainfall {
  from { background-position: 0 -230px, 0 -340px; }
  to { background-position: 65px 340px, 95px 520px; }
}
@keyframes mist-drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

.romantic-title { position: relative; height: clamp(275px, 36vh, 360px); margin: 0; color: var(--paper-light); font-family: var(--serif); font-weight: 400; text-shadow: 0 4px 34px rgba(0,0,0,0.44); }
.romantic-remembering { position: absolute; left: 0; top: 6%; font-size: clamp(72px, 9.2vw, 142px); line-height: 0.8; letter-spacing: -0.055em; white-space: nowrap; }
.romantic-human { position: absolute; left: 30%; top: 43%; color: var(--gold); font-size: clamp(100px, 13.5vw, 200px); font-style: italic; line-height: 0.75; letter-spacing: -0.06em; white-space: nowrap; }
.romantic-human::after { content: ""; position: absolute; left: 4%; right: 10%; bottom: -22px; height: 16px; border-bottom: 1px solid var(--gold); border-radius: 50%; opacity: 0.65; transform: rotate(-4deg); }
.js .romantic-human { animation: romantic-arrive 1.35s 0.15s var(--ease-saga) both; }
@keyframes romantic-arrive { from { opacity: 0; transform: translateY(22px) rotate(1deg); } to { opacity: 1; transform: none; } }
.saga-intro { border-top-color: rgba(201,180,109,0.36); }
.saga-intro .hero-hook { font-style: italic; color: #f0e3c9; }
.seal-evidence { padding-top: 12px; border-top: 1px solid rgba(201,180,109,0.22); }
.seal-evidence span { color: var(--gold); }
.seal-evidence p { color: #d2c9b7; }

.teaser-strip { border-bottom-color: rgba(201,180,109,0.22); }
.teaser-poster { clip-path: none; }
.teaser-poster-play { border-color: var(--gold); border-radius: 50%; transform: translate(-50%,-50%); }
.teaser-poster-play::before { transform: none; }
.teaser-poster:hover .teaser-poster-play { transform: translate(-50%,-50%) scale(1.08); background: rgba(13,21,17,0.84); }
.teaser-strip-copy h2 { font-style: italic; }
.day-tab:nth-child(even) { transform: none; }
.day-tab[aria-selected="true"] { background: var(--gold); color: #162017; }
.day-tab[aria-selected="true"] small { color: #162017; }
.day-tab:hover { background: rgba(201,180,109,0.13); }
.day-tab[aria-selected="true"]:hover { background: var(--gold); }
.day-panel { border-color: rgba(201,180,109,0.42); background: #101a14; }
.day-panel::after { background: var(--gold); }
.day-panel-copy h3 { color: var(--paper-light); font-style: italic; }
.day-panel-copy p { color: #d0c7b5; }
.scroll-meter-bar { background: linear-gradient(90deg, var(--gold), var(--rose)); }

#lie { background: #101713; }
#lie::after { height: 4px; background: var(--rose); }
#lie figure::before { inset: 12px -12px -12px 12px; background: rgba(173,120,110,0.28); clip-path: none; }
#lie .media-frame, #athanor .media-order .media-frame, .gabin-note .media-frame, .visual-approach figure .media-frame { clip-path: none; }
.concept-label { border-left-color: var(--gold); background: rgba(13,21,17,0.82); }
.comparison-divider { background: var(--gold); }
.comparison-divider::before { border-color: var(--gold); border-radius: 50%; background: #0d1511; }
input[type="range"] { accent-color: var(--gold); }
.day-night-notes h4 { font-style: italic; }
.system-row h3::before { background: var(--gold); }
.episode-day { color: var(--rose); }
.season-outcome { border-left-color: var(--rose); }
.final-statement, .contact-box { border-top-color: var(--gold); }
.arrival::before { height: 3px; background: var(--gold); }
.arrival-code { color: rgba(201,180,109,0.14); font-style: italic; -webkit-text-stroke: 0; }
#industry { border-top-color: var(--gold); }
.site-footer { background: #0b120e; }

/* The forest as a character */
.nature-interlude { position: relative; min-height: 90svh; display: flex; align-items: flex-end; isolation: isolate; padding: 130px 0 110px; overflow: hidden; background: #0d1511; }
.nature-interlude-bg { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.68) saturate(0.82) contrast(1.04); }
.nature-interlude::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(13,21,17,0.72), transparent 78%), linear-gradient(0deg, rgba(13,21,17,0.96), transparent 70%); }
.nature-interlude::after { content: ""; position: absolute; z-index: 1; inset: 48% -10% 0; background: linear-gradient(0deg, rgba(13,21,17,0.78), transparent); pointer-events: none; animation: mist-drift 16s ease-in-out infinite alternate; }
.nature-interlude .romantic-rain { z-index: 1; opacity: 0.18; }
.nature-interlude .wrap { z-index: 2; }
.nature-interlude .section-title { max-width: 960px; color: #efe2c5; font-size: clamp(3.4rem, 7vw, 7.4rem); font-style: italic; }
.nature-interlude .lede { max-width: 660px; color: #d5cbb8; }
.nature-interlude .concept-label { z-index: 3; right: 20px; bottom: 20px; }

.hope-section { position: relative; padding: clamp(90px, 10vw, 150px) 0; background: linear-gradient(135deg, #162019 0%, #2a211b 100%); color: var(--paper-light); overflow: hidden; }
.hope-section::before { content: ""; position: absolute; right: -8%; top: -25%; width: 55%; height: 90%; background: radial-gradient(ellipse, rgba(201,180,109,0.11), transparent 70%); pointer-events: none; }
.hope-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 8vw; }
.hope-image .media-frame { box-shadow: 0 28px 80px rgba(0,0,0,0.42); transform: rotate(-1deg); }
.hope-copy { position: relative; }
.hope-copy .section-title { color: #ead8b8; font-style: italic; }
.hope-copy .lede { color: #c8c0af; }

/* Professional route: same atmosphere, quieter delivery */
.kernel-hero { background: #0d1511; }
.kernel-hero .hero-media { left: 0; clip-path: none; }
.kernel-hero .hero-media img { object-position: 62% 50%; filter: brightness(0.62) saturate(0.72) contrast(1.03); }
.kernel-hero::before { background: linear-gradient(90deg, rgba(13,21,17,0.98) 0%, rgba(13,21,17,0.86) 45%, rgba(13,21,17,0.28) 82%), linear-gradient(0deg, #0d1511 0%, transparent 62%); }
.kernel-romantic-title { height: 225px; }
.kernel-romantic-title .romantic-remembering { font-size: clamp(58px, 7.5vw, 110px); }
.kernel-romantic-title .romantic-human { left: 20%; font-size: clamp(82px, 10vw, 150px); }
.kernel-subtitle { color: var(--gold); font-style: italic; }
.format-line { border-left-color: var(--gold); }
.kernel-nav { background: rgba(13,21,17,0.98); border-top-color: rgba(201,180,109,0.4); }
.status-panel { border-color: rgba(201,180,109,0.48); }
.production-block { border-top-color: rgba(201,180,109,0.42); }

@media (max-width: 1024px) {
  .romantic-remembering { font-size: clamp(66px, 8.8vw, 104px); }
  .romantic-human { left: 27%; font-size: clamp(92px, 12.7vw, 152px); }
  .kernel-romantic-title .romantic-human { left: 17%; }
}

@media (max-width: 760px) {
  .saga-hero-image { inset: 0; clip-path: none; }
  .saga-hero-image img { object-position: 61% 50%; }
  .saga-hero-image::after { background: linear-gradient(90deg, rgba(13,21,17,0.68), rgba(13,21,17,0.08)), linear-gradient(0deg, rgba(13,21,17,0.98) 0%, rgba(13,21,17,0.14) 62%, rgba(13,21,17,0.4) 100%); }
  .romantic-roots { width: 95vw; opacity: 0.3; }
  .romantic-title { height: 145px; margin: 16px 0 24px; }
  .romantic-remembering { top: 0; font-size: 12.8vw; }
  .romantic-human { left: 22%; top: 49%; font-size: 20vw; }
  .romantic-human::after { bottom: -17px; }
  .kernel-romantic-title { height: 132px; }
  .kernel-romantic-title .romantic-remembering { font-size: 11.8vw; }
  .kernel-romantic-title .romantic-human { left: 17%; font-size: 18vw; }
  .nature-interlude { min-height: 76svh; padding: 95px 0 80px; }
  .nature-interlude .section-title { font-size: 3.8rem; }
  .hope-grid { grid-template-columns: 1fr; gap: 42px; }
  .hope-copy { order: -1; }
  .hope-image .media-frame { transform: none; }
  .kernel-hero .hero-media { left: 0; clip-path: none; }
}

@media (max-width: 420px) {
  .romantic-title { height: 136px; }
  .romantic-remembering { font-size: 12.2vw; }
  .romantic-human { font-size: 19vw; }
  .kernel-romantic-title { height: 123px; }
  .kernel-romantic-title .romantic-remembering { font-size: 11.4vw; }
  .kernel-romantic-title .romantic-human { font-size: 17.2vw; }
}

@media (min-width: 761px) and (max-height: 850px) {
  .saga-hero .romantic-title { height: 235px; }
  .saga-hero .romantic-remembering { font-size: clamp(58px, 7.8vw, 92px); }
  .saga-hero .romantic-human { font-size: clamp(80px, 10.5vw, 125px); }
  .kernel-romantic-title { height: 182px; }
  .kernel-romantic-title .romantic-remembering { font-size: clamp(56px, 7vw, 86px); }
  .kernel-romantic-title .romantic-human { font-size: clamp(72px, 8.5vw, 112px); }
}

@media (max-height: 720px) and (max-width: 760px) {
  .romantic-title { height: 126px; margin-top: 9px; margin-bottom: 15px; }
  .romantic-remembering { font-size: 11.5vw; }
  .romantic-human { font-size: 18vw; }
  .kernel-romantic-title { height: 113px; }
  .kernel-romantic-title .romantic-remembering { font-size: 11vw; }
  .kernel-romantic-title .romantic-human { font-size: 16.4vw; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
  .romantic-rain, .nature-interlude::after, .js .romantic-human { animation: none; }
}

.romantic-rain.is-paused { animation-play-state: paused; }

.romantic-roots { transform: translate(var(--front-x, 0px), var(--front-y, 0px)); transition: transform 800ms var(--ease-saga); will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .romantic-roots { transform: none; transition: none; will-change: auto; }
}

/* Character study: Magdalena */
.magdalena-figure { display: grid; grid-template-columns: minmax(260px, 0.55fr) 1fr; align-items: center; gap: clamp(36px, 6vw, 90px); margin-top: 82px; padding-top: 64px; border-top: 1px solid rgba(201,180,109,0.3); }
.magdalena-figure .media-frame { max-width: 390px; box-shadow: 0 24px 70px rgba(0,0,0,0.36); }
.magdalena-figure-copy { max-width: 590px; }
.magdalena-figure-copy .section-title { color: #ead8b8; font-style: italic; }
.magdalena-figure-copy .lede { color: #c8c0af; }
@media (max-width: 760px) {
  .magdalena-figure { grid-template-columns: 1fr; gap: 32px; margin-top: 58px; padding-top: 44px; }
  .magdalena-figure .media-frame { max-width: 100%; }
}

.day-panel-media img.is-portrait { object-position: 50% 16%; }
