/* Styles of the vigil page. */
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
.vigil-page { --vigil-bg: #18191b; --vigil-surface: #25272a; --vigil-text: #eeece6; --vigil-muted: #b5b1aa; --vigil-gold: #c59a5a; --vigil-line: #3c3e40; background: var(--vigil-bg); color: var(--vigil-text); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; isolation: isolate; min-height: 100vh; overflow-x: clip; }
.hero-release span { color: var(--vigil-gold); }
main { margin: 0 auto; max-width: 1440px; padding: 0 clamp(1.25rem, 4vw, 4rem); position: relative; }
main h1, main h2, main h3, main p { margin: 0; }
main h1, main h2, main h3 { text-wrap: balance; }
main p { color: var(--vigil-muted); line-height: 1.75; }
main section, .fragment-target { scroll-margin-top: 110px; }
.vigil-hero { padding: clamp(3rem, 5vw, 4.5rem) 0 0; position: relative; }
.hero-copy { margin: auto; max-width: 920px; text-align: center; }
main h1 { font-size: clamp(2.6rem, 5.9vw, 5.6rem); letter-spacing: -.035em; line-height: 1.06; }
.hero-copy > p { font-size: clamp(1rem, 1.5vw, 1.15rem); margin: 1.6rem auto 1.75rem; max-width: 590px; }
.lab-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lab-button { border: 1px solid var(--vigil-line); border-radius: 6px; display: inline-flex; font-size: .9rem; font-weight: 600; gap: 10px; justify-content: center; padding: 13px 20px; text-decoration: none; }
.lab-button-primary { background: var(--vigil-gold); border-color: var(--vigil-gold); color: #18191b; }
.lab-button-secondary { background: var(--vigil-bg); }
.hero-release { color: var(--vigil-muted); display: inline-flex; font-size: .78rem; gap: 12px; margin-top: 24px; text-decoration: none; }
.hero-stage { margin: 32px auto 0; max-width: 1200px; }
.tour-chapters { border-block: 1px solid var(--vigil-line); display: flex; justify-content: center; margin: clamp(4rem, 8vw, 7rem) auto 0; padding: 24px 0; width: min(1100px, 100%); }
.tour-chapters a { color: var(--vigil-muted); padding: 12px 26px; text-decoration: none; }
.tour-chapters a:hover, .tour-chapters a.active { color: var(--vigil-gold); }
.tour-atmosphere { inset: 0; pointer-events: none; position: fixed; z-index: -1; }
.tour-atmosphere canvas { display: block; height: 100%; width: 100%; }
.feature-section { margin: auto; padding-top: clamp(2rem, 5vw, 4.5rem); width: min(1440px, 100%); }
#navigation { padding-top: clamp(4rem, 8vw, 7rem); }
.feature-section.chapter-start { margin-top: clamp(6rem, 12vw, 11rem); padding-top: 0; }
.chapter-divider { align-items: center; display: flex; gap: clamp(1.5rem, 4vw, 4rem); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.chapter-divider::after { background: linear-gradient(to right, var(--vigil-gold), var(--vigil-line) 60%, transparent); content: ''; flex: 1; height: 1px; }
.chapter-divider h2, main h2 { font-size: clamp(2rem, 3.9vw, 3.6rem); line-height: 1.12; letter-spacing: -.025em; }
.showcase { margin: 0 auto clamp(2rem, 5vw, 4.5rem); position: relative; }
.media-stage { aspect-ratio: var(--scene-ratio); background: #222427; border: 1px solid var(--vigil-line); border-radius: 12px; overflow: hidden; position: relative; transition: border-color .18s ease, box-shadow .18s ease; }
.media-stage img, .media-stage video { height: 100%; object-fit: contain; position: absolute; width: 100%; }
.media-stage video { opacity: 0; transition: opacity .25s ease; }
.showcase.is-playing video, .showcase[data-playback="viewport"] video { opacity: 1; }
.showcase:not(.feature-film) { max-width: 1200px; }
.hero-stage:hover .media-stage { border-color: var(--vigil-gold); box-shadow: 0 0 0 1px color-mix(in srgb, var(--vigil-gold) 38%, transparent); }
.feature-film { max-width: min(100%, calc((100svh - 126px) * var(--scene-ratio))); }
.feature-film figcaption { background: linear-gradient(transparent, #111214e8 40%, #111214fa); bottom: 1px; padding: clamp(2rem, 3.5vw, 3.5rem); padding-top: 80px; position: absolute; width: 100%; }
.feature-film figcaption h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); max-width: 640px; }
.feature-film figcaption p { margin-top: 16px; max-width: 560px; }
.play-overlay, .expand-control { background: #18191bf2; border: 1px solid #c59a5a66; color: var(--vigil-text); cursor: pointer; position: absolute; }
.play-overlay { background: transparent; border: 0; inset: 0; }
.play-overlay span { background: #18191bf2; border: 1px solid #c59a5a66; border-radius: 999px; display: inline-flex; gap: 10px; padding: 14px 20px; }
.showcase.is-playing .play-overlay { align-items: end; display: flex; justify-content: start; padding: 24px; }
.showcase.is-playing .play-overlay span { padding: 10px 14px; }
.expand-control { border: 0; border-radius: 8px; font-size: 1.5rem; padding: 10px 13px; right: 16px; top: 16px; }
.video-section { margin-top: clamp(6rem, 12vw, 11rem); }
.feedback-section { margin: clamp(5rem, 10vw, 8rem) auto 0; max-width: min(820px, 100%); }
.video-heading { align-items: end; display: flex; gap: 32px; justify-content: space-between; margin-bottom: 36px; }
.video-heading > div { max-width: 720px; }
.video-heading a { color: var(--vigil-gold); }
.video-player { background: var(--vigil-surface); border: 1px solid var(--vigil-line); border-radius: 12px; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease; }
.video-player:hover, .video-player:focus-within { border-color: var(--vigil-gold); box-shadow: 0 0 0 1px color-mix(in srgb, var(--vigil-gold) 38%, transparent); }
.video-embed { aspect-ratio: 16 / 9; background: #111214; }
.video-embed iframe { border: 0; height: 100%; width: 100%; }
.video-caption { align-items: center; display: flex; justify-content: space-between; padding: 24px; }
.video-caption a { color: var(--vigil-muted); font-size: .8rem; }
.video-list { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.video-list button { background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--vigil-muted); cursor: pointer; display: grid; gap: 12px; grid-template-columns: 1fr auto; padding: 12px; text-align: left; }
.video-list button:hover, .video-list button[aria-pressed="true"] { background: var(--vigil-surface); border-color: var(--vigil-gold); color: var(--vigil-text); }
.video-list button:focus-visible { outline: 2px solid var(--vigil-gold); outline-offset: 3px; }
.video-list img { grid-column: 1 / -1; width: 100%; }
.closing-action { align-items: center; border-top: 1px solid var(--vigil-line); display: flex; gap: 32px; justify-content: space-between; margin-top: 100px; padding: 64px 0 80px; }
@media (max-width: 700px) {
  .tour-chapters { flex-wrap: wrap; margin-top: 48px; padding: 16px 0; }
  .tour-chapters a { padding: 10px 12px; font-size: .85rem; }
  .feature-film { max-width: 100%; }
  .feature-film figcaption { background: var(--vigil-surface); padding: 24px; position: static; }
  .feature-film figcaption h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
  .video-heading, .video-caption, .closing-action { align-items: start; flex-direction: column; }
  .video-list { grid-template-columns: 1fr; }
  .video-list button { grid-template-columns: 100px 1fr auto; }
  .video-list img { grid-column: auto; }
}

/* Feature films (partials/vigil-showcase). Their captions keep the browser's own
   heading and paragraph defaults, not the page's. */
.feature-film figcaption h2 { letter-spacing: -.03em; line-height: 1.08; margin: .83em 0; text-wrap: wrap; }
.feature-film figcaption p { color: inherit; line-height: normal; margin: 16px 0 1em; }
.feature-film:hover .media-stage, .feature-film:focus-within .media-stage { border-color: var(--vigil-gold); box-shadow: 0 0 0 1px color-mix(in srgb, var(--vigil-gold) 38%, transparent); }
.play-overlay:focus-visible, .expand-control:focus-visible { outline: 2px solid var(--vigil-gold); outline-offset: -4px; }
@media (max-width: 700px) {
  .feature-film figcaption h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
}
