@font-face { font-family: Manrope; src: url("assets/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Newsreader; src: url("assets/fonts/newsreader.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Newsreader; src: url("assets/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --stone: #d7d0c3;
  --ink: #24231f;
  --soft-ink: rgba(36,35,31,.62);
  --charcoal: #171815;
  --ivory: #eee9df;
  --line-light: rgba(36,35,31,.18);
  --line-dark: rgba(238,233,223,.18);
  --sans: Manrope, Arial, sans-serif;
  --serif: Newsreader, Georgia, serif;
}

* { box-sizing: border-box; }
html { background: var(--stone); color: var(--ink); scroll-behavior: auto; }
body { margin: 0; overflow-x: clip; background: var(--stone); color: var(--ink); font-family: var(--sans); cursor: none; }
body.is-locked { overflow: hidden; }
button, a { color: inherit; font: inherit; }

.micro-grain {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  background-size: 96px 96px;
  mix-blend-mode: multiply;
}
.cursor-light { position: fixed; z-index: 20; width: 460px; height: 460px; border-radius: 50%; pointer-events: none; opacity: 0; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(255,248,231,.13), rgba(255,248,231,0) 67%); mix-blend-mode: screen; }

.gateway { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; overflow: hidden; background: #cfc7b9; }
.gateway__image { position: absolute; inset: -2%; background: url("assets/poster.jpg") center/cover; filter: blur(2px) saturate(.72); transform: scale(1.025); }
.gateway__veil { position: absolute; inset: 0; background: rgba(215,208,195,.86); backdrop-filter: blur(10px); }
.loader-panel, .entry-panel { position: relative; z-index: 2; width: min(900px, calc(100% - 48px)); height: min(520px, 72svh); }
.loader-panel { display: grid; grid-template-rows: auto 1fr auto; }
.loader-panel__top, .loader-panel__bottom { display: flex; justify-content: space-between; align-items: center; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.loader-panel__top { padding-bottom: 16px; border-bottom: 1px solid var(--line-light); }
.loader-panel__center { display: flex; align-items: baseline; justify-content: center; position: relative; }
.loader-panel__center strong { font: 300 clamp(110px, 20vw, 280px)/1 var(--serif); letter-spacing: -.08em; }
.loader-panel__status { position: absolute; top: 16%; left: 0; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.loader-panel__unit { font: italic 300 clamp(28px, 4vw, 60px)/1 var(--serif); margin-left: 14px; }
.loader-panel__bottom { align-items: flex-end; gap: 20px; }
.loader-track { flex: 1; height: 1px; background: var(--line-light); margin-bottom: 4px; }
.loader-track span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--ink); }
.entry-panel { position: absolute; display: grid; place-items: center; visibility: hidden; opacity: 0; }
.entry-panel__sound { position: absolute; bottom: 0; font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft-ink); }
.hold-button { position: relative; width: 140px; height: 140px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; text-transform: uppercase; letter-spacing: .15em; cursor: none; touch-action: none; user-select: none; }
.hold-button:disabled { opacity: .35; }
.hold-button svg { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.hold-track,.hold-progress { fill: none; stroke-width: 1; }
.hold-track { stroke: rgba(36,35,31,.24); }
.hold-progress { stroke: var(--ink); stroke-dasharray: 408.41; stroke-dashoffset: 408.41; }
.hold-button__small { font-size: 7px; color: var(--soft-ink); margin-bottom: 8px; }
.hold-button__main { font-size: 9px; font-weight: 600; }

.topbar { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; opacity: 0; pointer-events: none; color: var(--ink); mix-blend-mode: multiply; }
.topbar.is-visible { opacity: 1; pointer-events: auto; }
.topbar.on-dark { color: var(--ivory); mix-blend-mode: normal; }
.topbar.on-dark .brand img { filter: invert(1); }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; font-size: 11px; letter-spacing: .14em; font-weight: 680; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.topbar__right { display: flex; align-items: center; gap: 30px; }
.chapter-indicator { font-size: 8px; letter-spacing: .18em; }
.sound-toggle { border: 0; background: transparent; display: flex; align-items: center; gap: 8px; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; cursor: none; }
.sound-bars { display: flex; align-items: center; gap: 2px; height: 12px; }
.sound-bars i { width: 1px; height: 30%; background: currentColor; animation: bars 1.4s ease-in-out infinite alternate; }
.sound-bars i:nth-child(2) { animation-delay: -.7s; }.sound-bars i:nth-child(3) { animation-delay: -.25s; }
.sound-toggle[aria-pressed="false"] i { animation-play-state: paused; height: 10%; }
@keyframes bars { to { height: 90%; } }

.film { height: 1250vh; position: relative; background: var(--stone); }
.film__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
#filmCanvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; background: var(--stone); }
.film__wash { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(215,208,195,.08), transparent 35%, rgba(255,250,240,.04)); }
.film__edge { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 12vw rgba(55,48,38,.09); }
.film-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: rgba(36,35,31,.08); }
.film-progress span { display: block; width: 100%; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.scroll-cue { position: absolute; bottom: 5vh; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 8px; letter-spacing: .18em; text-transform: uppercase; opacity: 0; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--ink),transparent); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { 0%,100% { transform: scaleY(.25); transform-origin: top; opacity: .25 } 50% { transform: scaleY(1); opacity: 1 } }

.wall-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; pointer-events: none; opacity: 0; visibility: hidden; color: #25241f; text-shadow: 0 1px 1px rgba(255,255,255,.14); }
.wall-copy__index { font-size: 8px; letter-spacing: .22em; font-weight: 650; margin-bottom: 4vh; }
.wall-copy h1,.wall-copy h2,.wall-copy blockquote { margin: 0; font-weight: 450; letter-spacing: -.055em; line-height: .9; }
.wall-copy h1 { font-size: clamp(62px, 9.2vw, 150px); }
.wall-copy h2 { font-size: clamp(50px, 6.6vw, 108px); }
.wall-copy em { font-family: var(--serif); font-weight: 430; }
.wall-copy__statement,.wall-copy__end { max-width: 560px; margin: 0 0 3vh; font-size: clamp(14px, 1.15vw, 19px); line-height: 1.65; font-weight: 520; }
.wall-copy__end { margin: 3vh 0 0; }
.wall-copy--intro { padding: 0 7vw; align-items: flex-start; }
.wall-copy--intro p { margin-top: 4vh; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.wall-copy--one { padding: 0 8vw; align-items: flex-start; }
.wall-copy--two { padding: 0 7vw 0 45vw; align-items: flex-start; }
.wall-copy--two .wall-copy__statement { margin-top: 3vh; }
.wall-copy--three { padding: 0 6vw 0 54vw; align-items: flex-start; text-align: left; }
.wall-copy--three blockquote { max-width: 820px; font-size: clamp(42px, 5vw, 82px); }
.wall-copy--four { padding: 0 51vw 0 7vw; align-items: flex-start; }

.contact { position: relative; min-height: 120svh; padding: 7vw 5vw 3vw; display: flex; flex-direction: column; overflow: hidden; background: var(--charcoal); color: var(--ivory); }
.contact__ambient { position: absolute; right: -20vw; top: -30vw; width: 80vw; height: 80vw; border-radius: 50%; background: radial-gradient(circle, rgba(194,177,144,.11), transparent 68%); pointer-events: none; }
.contact__header { position: relative; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line-dark); padding-bottom: 16px; font-size: 8px; letter-spacing: .2em; }
.contact__main { position: relative; padding: 13vh 0 11vh; }
.contact__main h2 { margin: 0; font-size: clamp(56px, 8.5vw, 140px); line-height: .87; letter-spacing: -.06em; font-weight: 430; }
.contact__main h2 em { font-family: var(--serif); color: #c8b99c; font-weight: 400; }
.contact__note { max-width: 520px; margin: 6vh 0 0 auto; color: rgba(238,233,223,.62); font-size: clamp(14px,1.1vw,18px); line-height: 1.7; }
.contact__links { position: relative; margin-top: auto; border-top: 1px solid var(--line-dark); }
.contact__links a { display: grid; grid-template-columns: 18% 1fr auto; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; font-size: clamp(17px,1.6vw,26px); transition: padding .35s ease,color .35s ease; }
.contact__links a:hover { padding-left: 15px; color: #c8b99c; }
.contact__label { font-size: 8px; letter-spacing: .2em; color: rgba(238,233,223,.46); }
.contact__links i { font-style: normal; transition: transform .3s ease; }.contact__links a:hover i { transform: rotate(45deg); }
footer { position: relative; display: flex; align-items: center; gap: 18px; padding-top: 8vh; font-size: 8px; letter-spacing: .15em; }
footer img { width: 34px; filter: invert(1); opacity: .82; }
footer a { margin-left: auto; text-decoration: none; }

.cursor,.cursor-dot { position: fixed; z-index: 1200; top: 0; left: 0; pointer-events: none; opacity: 0; border-radius: 50%; }
.cursor { width: 62px; height: 62px; transform: translate(-50%,-50%); border: 1px solid rgba(36,35,31,.42); display: grid; place-items: center; mix-blend-mode: difference; }
.cursor span { font-size: 7px; letter-spacing: .12em; color: white; }
.cursor-dot { width: 3px; height: 3px; transform: translate(-50%,-50%); background: white; mix-blend-mode: difference; }

@media (max-width: 760px) {
  body { cursor: auto; }
  .cursor,.cursor-dot,.cursor-light { display: none; }
  .micro-grain { opacity: .026; background-size: 72px 72px; }
  .loader-panel,.entry-panel { width: calc(100% - 34px); height: 70svh; }
  .loader-panel__center strong { font-size: 36vw; }
  .loader-panel__top { font-size: 7px; }
  .hold-button,.sound-toggle { cursor: pointer; }
  .topbar { padding: 17px; }
  .brand { gap: 8px; font-size: 8px; }
  .brand img { width: 31px; height: 31px; }
  .chapter-indicator { display: none; }
  .film { height: 1080vh; }
  .wall-copy { padding-left: 20px; padding-right: 20px; justify-content: center; }
  .wall-copy h1 { font-size: 15.5vw; }
  .wall-copy h2 { font-size: 12.7vw; line-height: .94; }
  .wall-copy__statement,.wall-copy__end { font-size: 13px; max-width: 82vw; line-height: 1.55; }
  .wall-copy--two { align-items: flex-start; }
  .wall-copy--three { padding: 0 20px 14vh; justify-content: flex-end; align-items: flex-start; text-align: left; }
  .wall-copy--three blockquote { font-size: 10.8vw; line-height: .95; max-width: 80vw; }
  .wall-copy--four { justify-content: flex-end; padding-bottom: 16vh; }
  .contact { padding: 10vh 20px 25px; min-height: 105svh; }
  .contact__main { padding: 13vh 0 10vh; }
  .contact__main h2 { font-size: 14vw; }
  .contact__note { margin: 5vh 0 0; }
  .contact__links a { grid-template-columns: 1fr auto; gap: 8px; }
  .contact__label { grid-column: 1 / -1; }
  footer { padding-top: 7vh; }
}

@media (hover:none) { .cursor,.cursor-dot { display:none; } }
@media (prefers-reduced-motion:reduce) { .micro-grain,.sound-bars i,.scroll-cue i { animation:none; } }
