:root {
  --ink: #05080d;
  --deep: #0a111b;
  --frost: #e8f1f7;
  --muted: #9fb2c2;
  --dim: #5f7385;
  --ice: #9fd3f0;
  --glacier: #5aa9d6;
  --ember: #e7a86a;
  --line: rgba(200, 225, 245, .16);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: Manrope, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; font-family: var(--body); background: var(--ink); color: var(--frost); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(20px,4vw,64px); background: linear-gradient(to bottom, rgba(5,8,13,.92), rgba(5,8,13,.6), transparent); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(159,211,240,.55); border-radius: 50%; color: var(--ice); box-shadow: 0 0 18px rgba(159,211,240,.18); }
.brand-name { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.site-nav { display: flex; gap: 20px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.site-nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--frost); }
.site-nav a[aria-current="page"] { box-shadow: 0 1px 0 var(--ice); }
.menu-toggle { display: none; color: var(--frost); background: none; border: 1px solid var(--line); padding: 8px 14px; cursor: pointer; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }

/* Hero */
.hero { min-height: 100svh; position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 8vw; padding: 120px max(6vw,28px) 90px; overflow: hidden; background: radial-gradient(ellipse at 75% 20%, rgba(159,211,240,.18), transparent 40%), radial-gradient(ellipse at 15% 90%, rgba(90,169,214,.12), transparent 45%), linear-gradient(180deg,#04070c,#0b1624 60%,#070c14); }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero-frost { position: absolute; inset: auto 0 0; height: 32%; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(232,241,247,.08), transparent), radial-gradient(ellipse at 50% 120%, rgba(232,241,247,.14), transparent 60%); }
.hero-copy, .hero-art { position: relative; z-index: 2; }
.eyebrow, .section-kicker, .card-label { color: var(--ice); text-transform: uppercase; letter-spacing: .24em; font-size: 11px; font-weight: 600; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1; margin: 0; }
h1 { font-size: clamp(64px,10vw,150px); letter-spacing: -.02em; text-transform: uppercase; }
h1 span { font-style: italic; text-transform: none; background: linear-gradient(180deg,#ffffff,#9fd3f0 70%,#5aa9d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-family: var(--display); font-style: italic; font-size: clamp(22px,2.6vw,36px); margin: 26px 0 14px; color: #fff; }
.lede { max-width: 640px; color: var(--muted); font-size: clamp(16px,1.4vw,20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid transparent; text-decoration: none; text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: background .2s, box-shadow .2s, border-color .2s; }
.button-primary { background: var(--frost); color: #07101a; }
.button-primary:hover { background: #fff; box-shadow: 0 0 28px rgba(159,211,240,.45); }
.button-ghost { border-color: var(--line); color: var(--frost); background: rgba(255,255,255,.03); }
.button-ghost:hover { border-color: var(--ice); }

/* Poster */
.poster-card { position: relative; width: min(420px,80vw); aspect-ratio: 2/3; margin: auto; border: 1px solid rgba(159,211,240,.4); overflow: hidden; background: linear-gradient(180deg,#0a1626 0%,#1b3550 45%,#7fa9c6 72%,#dbe9f2 100%); box-shadow: 0 30px 90px rgba(0,0,0,.8), 0 0 60px rgba(90,169,214,.15); }
.poster-moon { position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; left: 31%; top: 14%; background: radial-gradient(circle at 38% 36%, #ffffff, #dcecf6 55%, #a9c8dc); box-shadow: 0 0 70px rgba(220,236,246,.55); }
.poster-ridge { position: absolute; inset: 46% -10% 0; background: linear-gradient(150deg, transparent 0 34%, #3b5b77 35% 56%, transparent 57%), linear-gradient(210deg, transparent 0 30%, #2a4660 31% 60%, transparent 61%); }
.poster-ridge-front { inset: 58% -10% 0; background: linear-gradient(160deg, transparent 0 38%, #e9f2f8 39% 100%), linear-gradient(200deg, transparent 0 34%, #c6dbe8 35% 100%); }
.poster-title { position: absolute; inset: auto 8% 13%; font-family: var(--display); text-transform: uppercase; font-size: clamp(34px,4.6vw,62px); line-height: .86; letter-spacing: .02em; color: #0a1626; }
.poster-caption { position: absolute; inset: auto 8% 4%; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #3b5b77; }
.hero-credit { position: absolute; z-index: 3; left: max(6vw,28px); bottom: 26px; font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.hero-credit span { color: var(--ice); margin: 0 6px; }

/* Subpage banner */
.page-hero { position: relative; overflow: hidden; padding: 170px max(6vw,28px) 70px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 80% 0%, rgba(159,211,240,.16), transparent 45%), linear-gradient(180deg,#04070c,#0b1624 70%,#070c14); }
.page-hero-copy { position: relative; z-index: 2; max-width: 1600px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(56px,9vw,128px); }
.page-hero .eyebrow { margin: 22px 0 18px; }
.breadcrumb { display: flex; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--frost); }
.breadcrumb [aria-current] { color: var(--ice); }

/* Home chapter index */
.chapter-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.chapter-card { position: relative; display: flex; flex-direction: column; min-height: 230px; padding: 28px; border: 1px solid var(--line); text-decoration: none; background: linear-gradient(160deg, rgba(159,211,240,.06), rgba(255,255,255,.008) 60%); transition: border-color .3s, box-shadow .3s; }
.chapter-card:hover { border-color: rgba(159,211,240,.45); box-shadow: 0 0 40px rgba(90,169,214,.12); }
.chapter-card h3 { font-size: 36px; margin: 40px 0 10px; }
.chapter-card p { color: var(--muted); margin: 0 0 22px; }
.chapter-card .text-link { margin-top: auto; }

/* Subpage pager */
.chapter-pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pager-link { display: flex; flex-direction: column; gap: 6px; padding: 44px max(6vw,28px); text-decoration: none; transition: background .2s; }
.pager-link:hover { background: rgba(159,211,240,.05); }
.pager-link span { color: var(--ice); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.pager-link strong { font-family: var(--display); font-weight: 500; font-size: clamp(28px,3.4vw,44px); }
.pager-next { text-align: right; border-left: 1px solid var(--line); }

/* Sections */
.section { padding: 110px max(6vw,28px); max-width: 1600px; margin: 0 auto; }
.section-dark { max-width: none; background: var(--deep); border-block: 1px solid var(--line); }
.section-kicker { margin-bottom: 14px; }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; margin-bottom: 54px; }
.section-heading h2 { font-size: clamp(42px,6vw,84px); letter-spacing: -.01em; max-width: 900px; }
.section-intro { color: var(--muted); max-width: 620px; }
.meta-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; border-left: 1px solid var(--line); padding-left: 30px; }
.meta-grid span { display: block; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.meta-grid strong { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; }
.story-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.story-card { background: var(--ink); padding: 34px; }
.story-card p:not(.card-label) { color: #c9d7e2; }

.card-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.profile-card, .cast-card, .press-card { border: 1px solid var(--line); padding: 28px; background: linear-gradient(160deg, rgba(159,211,240,.06), rgba(255,255,255,.008) 60%); min-height: 290px; position: relative; transition: border-color .3s, box-shadow .3s; }
.profile-card:hover, .cast-card:hover { border-color: rgba(159,211,240,.4); box-shadow: 0 0 40px rgba(90,169,214,.1); }
.profile-index { position: absolute; right: 20px; top: 14px; color: rgba(159,211,240,.28); font-family: var(--display); font-size: 46px; }
.profile-card h3, .cast-card h3, .press-card h3 { font-size: 28px; margin: 38px 0 12px; }
.profile-card p, .cast-card p, .press-card p { color: var(--muted); }
.text-button, .text-link { color: var(--ice); border: 0; background: none; padding: 0; cursor: pointer; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; text-decoration: none; }
.text-button:hover, .text-link:hover { color: #fff; }
.portrait-placeholder { aspect-ratio: 4/5; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, rgba(159,211,240,.18), transparent 60%), linear-gradient(170deg,#132233,#0a121c 60%,#05080d); border: 1px solid var(--line); color: rgba(159,211,240,.35); font-family: var(--display); font-size: 54px; }
.cast-card { padding: 14px; min-height: 0; }
.cast-card h3 { margin: 18px 8px 0; }
.cast-card p, .cast-card span { margin-inline: 8px; }
.cast-card span { color: var(--dim); font-size: 12px; }

.crew-directory { border-top: 1px solid var(--line); }
.crew-department { border-bottom: 1px solid var(--line); }
.crew-department summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--display); font-size: 28px; }
.crew-department summary::-webkit-details-marker { display: none; }
.crew-department summary span { font-family: var(--body); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.crew-department[open] summary { color: var(--ice); }
.crew-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); margin-bottom: 24px; }
.crew-list div { background: var(--ink); padding: 16px; display: flex; flex-direction: column; }
.crew-list strong { font-weight: 500; color: #c9d7e2; }
.crew-list span { color: var(--dim); font-size: 13px; }
.open-roles { color: var(--muted); font-size: 14px; padding-top: 24px; }
.open-roles a { color: var(--ice); }

.section-world { max-width: none; background: linear-gradient(160deg,#07101a,#0e2033 50%,#06090f); }
.world-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.world-card { min-height: 340px; padding: 24px; border: 1px solid rgba(159,211,240,.2); display: flex; flex-direction: column; justify-content: flex-end; }
.world-1 { background: linear-gradient(to bottom, transparent 30%, rgba(5,8,13,.85)), linear-gradient(170deg,#1c3349,#8fb1c8 70%,#dfeaf1); }
.world-2 { background: linear-gradient(to bottom, transparent 30%, rgba(5,8,13,.85)), radial-gradient(ellipse at 50% 65%, rgba(231,168,106,.55), transparent 45%), linear-gradient(#0a0f16,#1a1612); }
.world-3 { background: linear-gradient(to bottom, transparent 30%, rgba(5,8,13,.85)), linear-gradient(180deg,#0b1b2c,#2b6a92 55%,#a7d5ec); }
.world-4 { background: linear-gradient(to bottom, transparent 30%, rgba(5,8,13,.85)), radial-gradient(circle at 60% 30%, rgba(255,226,170,.6), transparent 30%), linear-gradient(180deg,#5b6c48,#2c3523); filter: saturate(.75); }
.world-card span { color: var(--ice); font-size: 12px; letter-spacing: .14em; }
.world-4 span { color: var(--ember); }
.world-card h3 { font-size: 27px; margin: 8px 0; }
.world-card p { color: #c2d1dc; margin: 0; }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter { border: 1px solid var(--line); color: var(--muted); background: transparent; padding: 9px 15px; cursor: pointer; font-size: 13px; transition: .2s; }
.filter.active, .filter:hover { color: var(--ink); background: var(--frost); border-color: var(--frost); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.gallery-item { margin: 0; aspect-ratio: 4/3; border: 1px solid var(--line); position: relative; overflow: hidden; display: flex; align-items: end; padding: 18px; }
.gallery-item[hidden] { display: none; }
.gallery-item figcaption { position: relative; z-index: 2; font-family: var(--display); font-size: 20px; }
.moon-visual { background: radial-gradient(circle at 62% 34%, #f3f8fb 0 11%, rgba(220,236,246,.25) 12%, transparent 24%), linear-gradient(180deg,#0a1626,#24425e 60%,#9fbfd3); }
.aurora-visual { background: radial-gradient(ellipse at 30% 30%, rgba(120,230,200,.45), transparent 40%), radial-gradient(ellipse at 70% 20%, rgba(120,160,240,.4), transparent 40%), linear-gradient(#03060b,#0c1a2a 70%,#dbe8f0 71%,#9cb7c9); }
.mood-visual { background: linear-gradient(90deg,#05080d 0 20%,#1b3550 20% 40%,#5aa9d6 40% 60%,#c6dbe8 60% 80%,#e7a86a 80%); }
.mood-visual figcaption { color: #05080d; }
.placeholder-visual { background: repeating-linear-gradient(135deg,#0b121b,#0b121b 10px,#080d14 10px,#080d14 20px); color: var(--dim); }
.placeholder-visual figcaption { font-family: var(--body); font-size: 14px; }

.press-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.press-card { min-height: 220px; }
.awards-row { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); }
.awards-row span { padding: 36px; text-align: center; color: var(--muted); border-right: 1px solid var(--line); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.awards-row span:last-child { border-right: 0; }
.awards-row strong { display: inline-block; margin-top: 8px; color: var(--frost); font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: 0; text-transform: none; }

.contact-section { border-top: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.contact-layout .section-heading { display: block; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; color: var(--frost); background: #08101a; border: 1px solid var(--line); padding: 14px; outline: none; border-radius: 0; text-transform: none; letter-spacing: normal; font-size: 15px; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(159,211,240,.12); }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; min-height: 1.6em; color: var(--ice); }
.form-status.error { color: #f0a3a3; }
.hidden { display: none; }

.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 34px max(6vw,28px); color: var(--muted); font-size: 12px; }
.site-footer div { display: flex; flex-direction: column; }
.site-footer strong { color: var(--frost); font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.character-modal { max-width: 560px; width: calc(100% - 36px); background: #0a121c; color: var(--frost); border: 1px solid rgba(159,211,240,.35); padding: 36px; box-shadow: 0 0 80px rgba(90,169,214,.15); }
.character-modal::backdrop { background: rgba(2,4,8,.8); backdrop-filter: blur(4px); }
.character-modal h3 { font-size: 38px; margin: 18px 0; }
.character-modal p:not(.card-label) { color: var(--muted); }
.modal-close { position: absolute; right: 14px; top: 10px; color: var(--frost); background: none; border: 0; font-size: 28px; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity .8s ease, transform .8s ease, filter .8s ease; }
.reveal.visible { opacity: 1; transform: none; filter: none; }

@media (max-width: 1040px) {
  .site-nav { position: absolute; inset: 76px 20px auto; display: none; flex-direction: column; background: var(--deep); border: 1px solid var(--line); padding: 20px; }
  .site-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 140px; }
  .hero-art { margin-top: 24px; }
  .section-heading, .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .meta-grid { border-left: 0; padding-left: 0; }
  .story-grid, .card-grid, .world-grid, .chapter-grid { grid-template-columns: repeat(2,1fr); }
  .crew-list { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .section { padding: 78px 20px; }
  .hero { padding-inline: 20px; }
  .page-hero { padding: 130px 20px 50px; }
  .pager-link { padding: 30px 20px; }
  .story-grid, .card-grid, .world-grid, .chapter-grid, .gallery-grid, .press-grid, .awards-row, .crew-list { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: 1fr; }
  .awards-row span { border-right: 0; border-bottom: 1px solid var(--line); }
  .awards-row span:last-child { border-bottom: 0; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}
