/* Lumière: a screening room at night. Midnight ink, warm white, projector gold, Starworld lime for the one thing to press. */
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Regular.ttf?v=1") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Italic.ttf?v=1") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/InterVariable.woff2?v=1") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/InterVariable-Italic.woff2?v=1") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --ink: #0b0a10;
  --ink-2: #110f18;
  --panel: #17141f;
  --panel-2: #1e1a28;
  --line: rgba(244, 239, 230, .10);
  --line-2: rgba(244, 239, 230, .18);
  --text: #f4efe6;
  --muted: #bdb4a6;
  --faint: #857d73;
  --gold: #ffcf7a;
  --apricot: #ffd0a0;
  --gold-rule: rgba(255, 207, 122, .38);
  --lime: #dfff9d;
  --violet: #a983ff;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 12px;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1440px;
}
* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; background: var(--ink); color: var(--text);
  font: 400 16px/1.55 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 88% -10%, rgba(255, 208, 160, .10), transparent 65%),
    radial-gradient(900px 640px at -10% 30%, rgba(169, 131, 255, .07), transparent 70%),
    radial-gradient(1200px 800px at 50% 120%, rgba(255, 207, 122, .05), transparent 70%);
}
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, video:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }
[hidden] { display: none !important; }

/* top */
.top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: calc(10px + env(safe-area-inset-top)) var(--gut) 10px;
  background: linear-gradient(180deg, rgba(11,10,16,.88), rgba(11,10,16,.55) 70%, rgba(11,10,16,0));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.wordmark { display: inline-flex; align-items: baseline; gap: 2px; min-height: 44px; padding: 6px 0; }
.wm-l { font: italic 400 30px/1 var(--serif); letter-spacing: .005em; color: var(--text); }
.wm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px 2px rgba(255,207,122,.65); transform: translateY(-2px); }
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  font: 500 14px/1 var(--sans); letter-spacing: .02em; color: var(--muted); transition: color .3s var(--ease), background .3s var(--ease);
}
.topnav a:hover { color: var(--text); background: rgba(244,239,230,.06); }
.topnav a[aria-current="page"] { color: var(--text); }
.inner-link .key { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; }
.inner-link .key::after { content: ""; position: absolute; inset: 1.5px 1.5px 1.5px 50%; background: currentColor; border-radius: 0 50% 50% 0; }
body.signed-in .inner-link { color: var(--gold); }
body.signed-in .inner-link .key { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 10px rgba(255,207,122,.7); }
body.signed-in .inner-link .key::after { display: none; }
@media (max-width: 520px) { .topnav a[data-nav="shelves"] { display: none; } .wm-l { font-size: 27px; } }

main { display: block; outline: none; min-height: 60vh; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* arrival */
.rise { opacity: 0; filter: blur(8px); transform: translateY(14px); animation: rise 1.1s var(--ease) forwards; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .18s; } .rise.d3 { animation-delay: .3s; } .rise.d4 { animation-delay: .44s; }
@keyframes rise { to { opacity: 1; filter: none; transform: none; } }

/* eyebrow + type */
.eyebrow { font: 600 11.5px/1.2 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.eyebrow a:hover { color: var(--apricot); }
.display { font: 400 clamp(46px, 8.4vw, 124px)/.94 var(--serif); letter-spacing: -.012em; margin: 14px 0 0; text-wrap: balance; }
.display em, .title em { font-style: italic; }
.lede { font: italic 400 clamp(19px, 2vw, 25px)/1.35 var(--serif); color: var(--muted); margin: 14px 0 0; max-width: 40ch; text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--faint); font: 500 13px/1.4 var(--sans); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(244,239,230,.04); color: var(--text);
  font: 600 15px/1 var(--sans); letter-spacing: .01em; cursor: pointer; transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: rgba(244,239,230,.09); border-color: rgba(244,239,230,.3); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--lime); color: var(--ink); border-color: var(--lime); box-shadow: 0 10px 40px -12px rgba(223,255,157,.55); }
.btn.primary:hover { background: #ecffc4; }
.btn .tri { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 2px; }
.btn svg { width: 18px; height: 18px; }

/* hero */
.hero { position: relative; min-height: min(86vh, 900px); display: flex; align-items: flex-end; margin-top: -72px; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: drift 24s var(--ease) infinite alternate; }
.hero-art .field { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(40px) saturate(1.1); transform: scale(1.2); opacity: .7; }
.hero-art .portrait { position: absolute; top: 0; bottom: 0; right: 8%; height: 100%; width: auto; object-fit: contain; animation: none; transform: none; }
@keyframes drift { to { transform: scale(1.1) translate(-1.2%, -1%); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(11,10,16,.72) 0%, rgba(11,10,16,.05) 26%, rgba(11,10,16,.18) 52%, rgba(11,10,16,.94) 88%, var(--ink) 100%),
  linear-gradient(90deg, rgba(11,10,16,.75) 0%, rgba(11,10,16,0) 62%); }
.hero-copy { width: 100%; max-width: var(--max); margin: 0 auto; padding: 160px var(--gut) clamp(40px, 7vh, 80px); }
.hero .display { max-width: 15ch; text-shadow: 0 2px 40px rgba(0,0,0,.45); }
@media (max-width: 760px) {
  /* On a phone the portrait sits above the words, so a caption burned into the film never fights the title. */
  .hero-art .portrait { right: auto; left: 50%; transform: translateX(-50%); height: 70%; top: 56px; bottom: auto; }
  .hero::after { background: linear-gradient(180deg, rgba(11,10,16,.7) 0%, rgba(11,10,16,0) 18%, rgba(11,10,16,.3) 42%, rgba(11,10,16,.93) 58%, var(--ink) 80%); }
}
.beam { position: absolute; top: -20%; right: -10%; width: 70%; height: 140%; z-index: -1; pointer-events: none; background: conic-gradient(from 222deg at 100% 0%, rgba(255,207,122,0) 0deg, rgba(255,207,122,.10) 12deg, rgba(255,207,122,0) 26deg); mix-blend-mode: screen; animation: flicker 7s ease-in-out infinite; }
@keyframes flicker { 0%,100%{opacity:.85} 47%{opacity:.7} 50%{opacity:.95} 53%{opacity:.75} }

/* sections */
.section { padding: clamp(40px, 7vw, 88px) 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 28px; }
.section-head h2 { font: 400 clamp(32px, 4.2vw, 54px)/1 var(--serif); margin: 8px 0 0; letter-spacing: -.01em; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 52ch; }

/* find */
.find { position: relative; width: min(100%, 360px); }
.find input {
  width: 100%; min-height: 48px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(244,239,230,.04);
  color: var(--text); padding: 0 18px 0 44px; font: 400 16px/1 var(--sans);
}
.find input::placeholder { color: var(--faint); }
.find svg { position: absolute; left: 16px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--faint); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font: 500 14px/1 var(--sans); transition: all .25s var(--ease); }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip b { font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.chip.inner { border-color: rgba(255,207,122,.28); color: var(--apricot); }

/* month rule */
.month { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin: 18px 0 2px; color: var(--muted); font: italic 400 22px/1 var(--serif); }
.month::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-rule), transparent); }
.month:first-child { margin-top: 0; }

/* grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 34px 22px; }
.card { position: relative; display: block; }
.card .art { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--panel); box-shadow: 0 1px 0 rgba(244,239,230,.06) inset, 0 20px 50px -30px rgba(0,0,0,.9); }
.card .art .field { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(22px) saturate(1.1); opacity: .65; }
.card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .5s var(--ease); }
.card .art img.tall { object-fit: contain; }
.card .art img.glimpse { opacity: 0; }
.card:hover .art img.still, .card:focus-visible .art img.still { transform: scale(1.035); }
.card.live .art img.glimpse { opacity: 1; }
.card .dur { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(11,10,16,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--text); }
.card .seal { position: absolute; left: 10px; top: 10px; padding: 5px 9px; border-radius: 999px; background: rgba(11,10,16,.7); border: 1px solid rgba(255,207,122,.35); color: var(--gold); font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.card .art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px rgba(244,239,230,.08) inset; pointer-events: none; }
.card h3 { font: 400 25px/1.08 var(--serif); margin: 14px 0 0; letter-spacing: -.003em; text-wrap: balance; transition: color .3s var(--ease); }
.card:hover h3 { color: var(--apricot); }
.card .sub { color: var(--muted); font-size: 14.5px; line-height: 1.45; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: 8px; }
.empty { color: var(--muted); font: italic 400 22px/1.4 var(--serif); padding: 30px 0; }

/* shelves list */
.shelves { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.shelf {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 168px; padding: 20px; border-radius: var(--r);
  overflow: hidden; background: var(--panel); border: 1px solid var(--line); isolation: isolate;
}
.shelf .bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .38; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.shelf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,20,31,.2), rgba(23,20,31,.95)); }
.shelf:hover .bg { opacity: .58; transform: scale(1.04); }
.shelf b { font: 400 30px/1 var(--serif); }
.shelf span { color: var(--muted); font-size: 14px; margin-top: 6px; }
.shelf i { position: absolute; top: 16px; right: 18px; font: 600 12px/1 var(--sans); font-style: normal; color: var(--gold); letter-spacing: .1em; }

/* page head (shelves, inner) */
.page-head { padding: clamp(36px, 8vw, 110px) 0 12px; }
.page-head .display { font-size: clamp(44px, 7vw, 104px); }

/* film */
.theatre { position: relative; padding: 4px var(--gut) 0; }
.screen { position: relative; max-width: 1360px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 40px 120px -40px rgba(255,207,122,.18), 0 30px 80px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(244,239,230,.07); }
.screen video { display: block; width: 100%; aspect-ratio: var(--ar, 16 / 9); max-height: 82vh; background: #000; }
.screen.tall { max-width: min(1360px, 100%); background: var(--ink-2); }
.screen.tall .field { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(36px) saturate(1.1); opacity: .55; }
.screen.tall video { position: relative; height: min(82vh, 980px); width: auto; max-width: 100%; aspect-ratio: auto; margin: 0 auto; background: transparent; }
.screen .bigplay { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(11,10,16,.25), rgba(11,10,16,0)); border: 0; cursor: pointer; color: var(--ink); }
.screen .bigplay span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--lime); box-shadow: 0 10px 50px rgba(223,255,157,.45); transition: transform .3s var(--ease); }
.screen .bigplay:hover span { transform: scale(1.07); }
.screen .bigplay span::before { content: ""; border-left: 22px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.film-copy { max-width: 1360px; margin: 0 auto; padding: 30px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
.film-copy .display { font-size: clamp(40px, 6vw, 88px); }
.film-copy .actions { margin-top: 0; justify-content: flex-end; }
@media (max-width: 760px) { .film-copy { grid-template-columns: 1fr; } .film-copy .actions { justify-content: flex-start; } }
.cuts { max-width: 1360px; margin: 30px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cuts .eyebrow { margin-right: 8px; }
.cut { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font: 500 14px/1 var(--sans); }
.cut:hover { color: var(--text); border-color: var(--line-2); }
.cut[aria-current="page"] { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.neighbours { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .neighbours { grid-template-columns: 1fr; } }
.neighbours .label { font: 600 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; display: block; }

/* door */
.door { min-height: 72vh; display: grid; place-items: center; padding: 40px var(--gut); }
.door-card { width: min(100%, 560px); text-align: center; }
.door-card .display { font-size: clamp(44px, 7vw, 84px); }
.door-card .lede { margin: 16px auto 0; }
.door-form { margin-top: 32px; display: flex; gap: 10px; align-items: center; }
.door-form input {
  flex: 1; min-width: 0; min-height: 56px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(244,239,230,.05);
  color: var(--text); padding: 0 22px; font: italic 400 24px/1 var(--serif); text-align: center; letter-spacing: .02em;
}
.door-form input::placeholder { color: var(--faint); }
.mic { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(244,239,230,.05); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: all .3s var(--ease); }
.mic svg { width: 22px; height: 22px; }
.mic.listening { background: var(--gold); color: var(--ink); border-color: var(--gold); box-shadow: 0 0 0 8px rgba(255,207,122,.15), 0 0 40px rgba(255,207,122,.5); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 14px rgba(255,207,122,.08), 0 0 50px rgba(255,207,122,.6); } }
.door-note { margin-top: 16px; min-height: 24px; color: var(--muted); font-size: 15px; }
.door-note.miss { color: var(--apricot); }
.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20%{transform:translateX(-8px)} 40%{transform:translateX(7px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(3px)} }
.door-in { margin-top: 28px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* missing */
.missing { padding: clamp(60px, 12vw, 160px) 0 20px; }

/* footer */
.foot { max-width: var(--max); margin: clamp(70px, 10vw, 140px) auto 0; padding: 26px var(--gut) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.foot-line { font: italic 400 20px/1.4 var(--serif); color: var(--muted); margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 12px 0 18px; }
.foot-links a { min-height: 32px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--text); }
.foot .build-stamp { color: var(--faint); }
.noscript { padding: 60px var(--gut); color: var(--muted); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--ink); font: 600 14px/1 var(--sans); box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); transition: all .4s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; filter: none; transform: none; }
}
