/* All the Tokens We Have Left
   Homepage: opening faces, icy filmstrip, the window, individual portraits, distant flower. */

:root {
  --night: #030718;
  --white: #f4f4ff;
  --serif: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --edge: clamp(24px, 5.2vw, 98px);
  /* Letter-spacing. Baskerville is spaced generously, so large sizes close up a little and no more. */
  --track-display: -.02em;
  --track-heading: -.015em;
  --track-quiet: -.01em;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body { margin: 0; background: var(--night); color: var(--white); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, p, figure, blockquote, ul { margin: 0; }
img, video { display: block; }
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { background: transparent; border: 0; border-radius: 0; cursor: pointer; padding: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid #91b7ff; outline-offset: 5px; }
.skip { position: fixed; z-index: 99; inset: 7px auto auto 9px; background: #fcfcff; color: #050c29; padding: 12px 18px; transform: translateY(-160%); }
.skip:focus { transform: none; }

/* First visit: the screen stays black until the trailer covers the page.
   The cover lets go by itself after four seconds if the script never arrives. */
html.first-visit::before { content: ""; position: fixed; z-index: 2147483646; inset: 0; background: #000; animation: first-visit-release 0s linear 4s forwards; }
@keyframes first-visit-release { to { visibility: hidden; } }

/* Scenes and moving layers */
.scene { position: relative; isolation: isolate; }
.dust, .prism { position: absolute; pointer-events: none; user-select: none; }
[data-depth] { transform: translate3d(0, var(--shift, 0px), 0) rotate(var(--rotate, 0deg)) scaleX(var(--mirror, 1)); }
.dust { height: auto; mix-blend-mode: screen; }
.prism { object-fit: contain; }

/* 1. Opening faces */
.hero { background: #030616; height: clamp(700px, 54vw, 925px); overflow: hidden; overflow: clip; }
.hero-image { position: absolute; inset: 42px 0 -5%; z-index: -3; }
.hero-image :is(img, video) { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(180deg, #030717 0%, transparent 16%, transparent 72%, #050916 102%); }
.masthead { height: 66px; display: flex; align-items: center; gap: clamp(22px, 4vw, 74px); padding: 0 var(--edge); position: relative; z-index: 5; background: linear-gradient(#040817, #040817c9 78%, transparent); }
.masthead, .kicker, .pull figcaption, .footer-bar nav, .text-link, .player-top { font-family: var(--sans); font-size: 11px; line-height: 1.45; font-weight: 550; letter-spacing: .20em; text-transform: uppercase; }
.masthead a, .masthead button, .footer-bar nav a, .footer-bar nav button { display: inline-flex; align-items: center; min-height: 42px; }
.masthead button, .footer-bar button { text-transform: inherit; letter-spacing: inherit; }
.masthead .initials { gap: 12px; letter-spacing: .30em; }
.initials i { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 9px 2px #90acff; }
.nav-line { flex: 1; height: 1px; background: #bbc9ee46; }
.masthead nav, .footer-bar nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 52px); }
.masthead nav :is(a, button):hover, .footer-bar nav :is(a, button):hover { color: #afccff; text-decoration: underline; text-underline-offset: 5px; }
.lockup { height: calc(100% - 66px); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 16px 32px; text-align: center; position: relative; z-index: 2; }
.kicker { position: relative; isolation: isolate; max-width: clamp(220px, 20vw, 340px); text-wrap: balance; line-height: 1.65; font-size: clamp(10px, .77vw, 12px); margin: 0 0 clamp(14px, 2.2vh, 26px); text-shadow: 0 1px 8px #010313; color: #e6edff; }
.kicker::before { content: ""; position: absolute; z-index: -1; inset: -12px -15px; background: radial-gradient(ellipse at center, #020614c4 34%, transparent 76%); }
.kicker a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.lockup h1 { line-height: 0; }
.title-art { width: clamp(202px, 18.7vw, 325px); height: auto; }
.premise { font: normal clamp(21px, 1.8vw, 32px)/1.29 var(--serif); margin: clamp(16px, 2.5vh, 26px) 0 13px; color: #fff; text-shadow: 0 1px 12px #030511; }
.byline { font: normal clamp(12px, .94vw, 15px)/1.35 var(--sans); color: #e3e8f9; }
.byline b { font-weight: 600; }
.hero-dust-left { width: 29%; left: -6%; bottom: 0; opacity: .61; --rotate: 17deg; }
.hero-dust-right { width: 24%; right: -4%; bottom: 7%; --mirror: -1; opacity: .52; }
.motion-toggle { position: absolute; z-index: 4; right: var(--edge); bottom: 18px; min-height: 36px; padding: 0 2px; font: 550 9px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #dfe7ff; opacity: .62; text-shadow: 0 1px 8px #010313; }
.motion-toggle:hover, .motion-toggle:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* Pull quotes */
.pull { position: relative; z-index: 2; }
.pull blockquote { font: italic normal clamp(35px, 3.2vw, 61px)/1.09 var(--serif); letter-spacing: var(--track-quiet); text-wrap: pretty; }
.pull figcaption { margin-top: 19px; font-size: 10px; letter-spacing: .24em; }

/* 2. Icy filmstrip */
.cinema { background: radial-gradient(ellipse at 24% 60%, #0c1833, #030817 63%); overflow: hidden; overflow: clip; padding: clamp(46px, 4.5vw, 76px) 0 0; }
.film-quote { margin: 0 auto clamp(18px, 2vw, 32px); text-align: center; width: min(87%, 1050px); }
.film-quote blockquote { font-size: clamp(36px, 3.65vw, 68px); }
.film-quote figcaption { color: #bacce9; margin-top: 14px; }
.film-window { width: 100%; overflow: hidden; }
.film-track { width: 112%; max-width: none; height: auto; transform: translate3d(var(--travel, 0px), 0, 0); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 87%, #000b 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 87%, #000b 100%); }
.film-near { z-index: -1; width: 14%; height: 55%; top: -19%; left: -5.5%; --rotate: 29deg; opacity: .68; }
.film-dust { width: 22%; right: -10%; top: -12%; opacity: .58; }

/* 3. The window */
.rain { height: clamp(430px, 47vw, 780px); overflow: hidden; overflow: clip; background: #05070f; display: flex; align-items: center; }
.rain-plate { position: absolute; z-index: -3; inset: -4% 0 -30%; }
.rain-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 46%; }
.rain-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, #04060dd9 0%, #04060d99 24%, transparent 52%), linear-gradient(180deg, #030817 0%, transparent 15%, transparent 84%, #040819 100%); }
.rain-quote { width: min(36%, 520px); margin-left: var(--edge); text-shadow: 0 1px 18px #02040c; }
.rain-quote blockquote { font-size: clamp(38px, 4.3vw, 82px); line-height: 1.02; }
.rain-quote blockquote em { font-style: normal; }
.rain-quote figcaption { color: #e9d9be; }
.rain-dust { z-index: -1; width: 30%; left: 31%; bottom: -16%; opacity: .5; --rotate: -14deg; }
.rain-near { z-index: -1; width: 12%; height: 62%; right: -4.5%; bottom: -24%; --rotate: -21deg; --mirror: -1; opacity: .5; }

/* 4. Individual portraits */
.portraits { background: #040819; z-index: 1; overflow: hidden; overflow: clip; padding: clamp(34px, 4vw, 80px) 0 42px; }
.character { width: min(1040px, 83%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; position: relative; gap: clamp(30px, 6vw, 122px); }
.portrait-plate { height: clamp(365px, 34vw, 540px); position: relative; }
.portrait-plate :is(img, video) { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 16%, #000 94%, transparent 100%); mask-image: linear-gradient(0deg, transparent 0%, #000 16%, #000 94%, transparent 100%); }
.portrait-plate::after { content: ""; pointer-events: none; position: absolute; inset: -1px; background: linear-gradient(90deg, #040819, transparent 21%, transparent 81%, #040819); }
.bio { position: relative; z-index: 2; max-width: 430px; padding: 30px 0; }
.bio h2 { font: normal clamp(58px, 6.45vw, 100px)/.95 var(--serif); letter-spacing: var(--track-quiet); color: #edf1ff; }
.bio p { font: 400 clamp(17px, 1.38vw, 23px)/1.49 var(--serif); color: #d0dbf2; margin: 19px 0 22px; }
.text-link { display: inline-flex; align-items: center; gap: 18px; padding: 7px 0; border-bottom: 1px solid #91aad173; font-size: 10px; color: #e4e9ff; }
.text-link:hover { border-bottom-color: #fff; }
.text-link span { font: normal 17px/1 var(--sans); }
.current { margin-top: -27px; }
.current .portrait-plate { grid-column: 2; grid-row: 1; }
.current .bio { grid-column: 1; grid-row: 1; justify-self: end; }
.bio-dust { width: 47%; left: -27%; top: 39%; opacity: .54; --rotate: 11deg; }
.bio-dust-end { width: 28%; right: -15%; bottom: 11%; opacity: .52; --rotate: -40deg; }

/* 5. Distant flower and footer */
.closing { height: clamp(440px, 43vw, 805px); overflow: hidden; overflow: clip; background: #040913; display: flex; flex-direction: column; justify-content: flex-end; }
.closing-plate { position: absolute; z-index: -3; inset: -10% 0; pointer-events: none; }
.closing-plate img { width: 100%; height: 100%; object-fit: cover; object-position: center 66%; }
.closing-quote { position: absolute; top: clamp(62px, 6vw, 98px); left: 50%; transform: translateX(-50%); width: min(65%, 820px); text-align: center; text-shadow: 0 1px 16px #010513; }
.closing-quote blockquote { font-size: clamp(32px, 3.2vw, 60px); }
.closing-quote figcaption { color: #c5d4f0; }
.closing-dust { width: 27%; right: -13%; top: 11%; --rotate: -24deg; opacity: .52; }
.footer-bar { display: flex; justify-content: space-between; align-items: center; gap: 35px; margin: 0 var(--edge); padding: 24px 0; border-top: 1px solid #b2bfd166; position: relative; z-index: 2; }
.footer-title { font: italic normal clamp(20px, 1.78vw, 31px)/1.1 var(--serif); color: #f5f0e7; }
.footer-bar nav { gap: clamp(12px, 1.95vw, 34px); font-size: 10px; letter-spacing: .13em; }

/* Trailer: the player fills the window. A click on a Trailer control also asks the browser for full screen. */
#trailer-dialog { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; color: #eef2ff; background: #000; }
#trailer-dialog::backdrop { background: #000; }
.player { position: relative; width: 100%; height: 100%; background: #000; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-top { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 58px; padding: max(6px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 22px max(22px, env(safe-area-inset-left)); font-size: 10px; background: linear-gradient(#000000d9, #0000008f 55%, transparent); transition: opacity .35s ease; }
.player.is-idle .player-top:not(:focus-within) { opacity: 0; pointer-events: none; }
.player-actions { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 22px); }
.player-top button { min-height: 44px; padding: 0 10px; text-transform: uppercase; letter-spacing: inherit; }
.player-top button:hover { color: #afccff; }
.player-top [data-unmute-trailer] { padding: 0 16px; border: 1px solid #c9d6ffa6; background: #0a1230b3; }
.player-top [hidden] { display: none; }
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 900px) {
  .hero { height: 640px; }
  .hero-image { inset: 44px -10% 0; }
  .character { width: 89%; gap: 5vw; }
  .portrait-plate { height: 340px; }
  .rain-quote { width: 44%; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 0; }
  .footer-bar nav { flex-wrap: wrap; column-gap: 22px; row-gap: 0; }
}
@media (max-width: 620px) {
  :root { --edge: 21px; }
  .masthead { height: 51px; gap: 20px; background: #040717; }
  .masthead, .footer-bar nav { font-size: 10px; }
  .masthead nav { gap: 21px; }
  .masthead .initials { gap: 7px; }
  .hero { height: clamp(535px, 133vw, 685px); }
  .hero-image { inset: 51px auto auto -22%; width: 144%; height: 58%; }
  .hero-image :is(img, video) { object-position: 50% 40%; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%); }
  .hero-shade { background: linear-gradient(0deg, #040817 5%, #040817 25%, transparent 55%, transparent 89%, #040817 100%); }
  .lockup { height: calc(100% - 51px); justify-content: flex-start; padding: 19px 8px 0; }
  .kicker { font-size: 8px; letter-spacing: .15em; width: 240px; margin: 0 0 clamp(40px, 12vw, 65px); text-shadow: 0 0 8px black, 0 0 10px black; }
  .title-art { width: clamp(126px, 32vw, 180px); }
  .premise { font-size: clamp(20px, 5.3vw, 27px); margin: clamp(37px, 10vw, 59px) 0 12px; line-height: 1.31; }
  .byline { font-size: 12px; }
  .hero-dust-left { width: 49%; left: -21%; bottom: 6%; opacity: .48; }
  .hero-dust-right { width: 42%; right: -13%; bottom: 9%; opacity: .5; }
  .motion-toggle { bottom: 6px; font-size: 8px; letter-spacing: .16em; }
  .pull figcaption { margin-top: 12px; font-size: 9px; }
  .portraits { padding: 22px 0 27px; }
  .character { width: 100%; gap: 3.5%; grid-template-columns: 39% 1fr; align-items: center; padding-right: 5.7%; }
  .portrait-plate { height: clamp(245px, 62vw, 345px); }
  .portrait-plate :is(img, video) { object-position: 50% 46%; }
  .portrait-plate::after { background: linear-gradient(90deg, transparent 74%, #040819); }
  .bio { padding: 14px 0; }
  .bio h2 { font-size: clamp(34px, 9.6vw, 65px); }
  .bio p { font-size: clamp(15px, 3.65vw, 18px); line-height: 1.35; margin: 10px 0; }
  .text-link { font-size: 8px; letter-spacing: .16em; min-height: 36px; gap: 8px; }
  .current { margin-top: 11px; padding-right: 0; padding-left: 5.7%; grid-template-columns: 1fr 39%; }
  .current .portrait-plate::after { background: linear-gradient(90deg, #040819, transparent 22%); }
  .cinema { padding: 37px 0 18px; }
  .film-quote { width: 86%; margin-bottom: 20px; }
  .film-quote blockquote { font-size: clamp(30px, 7.5vw, 42px); }
  .film-track { width: 138%; }
  .rain { height: clamp(430px, 118vw, 560px); align-items: flex-end; }
  .rain-plate { inset: -3% 0 -11%; }
  .rain-plate img { object-position: 90% 40%; }
  .rain-shade { background: linear-gradient(0deg, #04060df2 0%, #04060dc7 26%, transparent 58%), linear-gradient(180deg, #030817 0%, transparent 12%); }
  .rain-quote { width: auto; margin: 0 var(--edge) 34px; }
  .rain-quote blockquote { font-size: clamp(34px, 9.4vw, 46px); }
  .rain-dust { width: 62%; left: -18%; bottom: 14%; }
  .rain-near { display: none; }
  .player-top { font-size: 9px; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
  .player-top > span:first-child { display: none; }
  .player-actions { margin-left: auto; }
  .closing { height: clamp(440px, 104vw, 590px); }
  .closing-quote { width: 85%; top: 11%; }
  .closing-quote blockquote { font-size: clamp(26px, 6.2vw, 37px); }
  .closing-plate img { object-position: 50% 57%; }
  .footer-bar { padding: 13px 0 12px; gap: 5px; }
  .footer-title { font-size: 22px; }
  .footer-bar nav { column-gap: 15px; font-size: 8px; }
  .footer-bar nav a, .footer-bar nav button { min-height: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-depth] { --shift: 0px !important; }
  [data-film] { --travel: 0px !important; }
}
