:root {
  color-scheme: dark;
  --bg: #121212;
  --paper: #f1eee7;
  --red: #f34b35;
  --muted: #bbb6ad;
  --edge: clamp(18px, 4vw, 68px);
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1,h2,p,figure { margin: 0; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.mono { font-family: "IBM Plex Mono", monospace; font-size: clamp(10px, 1vw, 13px); text-transform: uppercase; letter-spacing: .055em; }
.skip { position: fixed; z-index: 10; top: 1rem; left: var(--edge); padding: 12px; background: var(--paper); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }

.flight { position: relative; height: 500svh; }
.stage { position: sticky; top: 0; height: 100svh; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 43%, #24201e 0%, #171615 43%, #121212 77%); }
#flight-end { position: absolute; top: 18%; }
.grain { position: absolute; z-index: 3; inset: 0; pointer-events: none; background: url(./assets/grain.png) repeat; opacity: .17; mix-blend-mode: soft-light; }
.mast { position: absolute; z-index: 4; inset: 0 0 auto; height: 69px; margin: 0 var(--edge); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid #ffffff25; }
.mark { justify-self: start; font-size: 25px; font-weight: 900; letter-spacing: -.1em; }
.mark span { color: var(--red); }
.languages { justify-self: end; display: flex; gap: 4px; align-items: center; }
.languages button { min-width: 35px; min-height: 33px; padding: 0 7px; border: 1px solid transparent; background: transparent; border-radius: 50px; }
.languages button:hover { border-color: #ffffff52; }
.languages button[aria-pressed=true] { border-color: var(--red); color: var(--red); }
.space { position: absolute; inset: 0; pointer-events: none; }
.ray,.cross { position: absolute; color: #a5988d; opacity: .24; }
.ray-x { top: 44%; left: var(--edge); right: var(--edge); border-top: 1px solid; }
.ray-y { top: 13%; bottom: 23%; left: 50%; border-left: 1px solid; }
.cross { font: 20px monospace; top: 44%; transform: translate(-50%,-50%); }
.center { left: 50%; }.left { left: 11%; }.right { left: 89%; }
/* Each frame keeps its place in the spiral and travels along the same depth axis. */
.flight-depth { position: absolute; inset: 0; perspective: 1000px; perspective-origin: 50% 48%; }
.flight-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.flight-frame {
  position: absolute; top: 50%; left: 50%;
  width: var(--width, 19%); aspect-ratio: var(--ratio, 1 / 1.3);
  transform: translate(-50%, -50%) translate3d(var(--x, 0px), var(--y, 0px), var(--z, -4000px));
  opacity: 0;
  will-change: transform, opacity;
}
.flight-float { width: 100%; height: 100%; overflow: hidden; animation: frame-float var(--period) ease-in-out var(--delay) infinite; }
.flight-frame img { height: 100%; object-fit: cover; }
.frame-portrait img, .frame-shadow img { object-position: center 37%; }
@keyframes frame-float {
  0%, 50%, 100% { transform: translate3d(0,0,0) rotate(0deg); }
  25% { transform: translate3d(calc(var(--amplitude) * .5), calc(var(--amplitude) * -1), 0) rotate(var(--angle)); }
  75% { transform: translate3d(calc(var(--amplitude) * -.5), calc(var(--amplitude) * .6), 0) rotate(calc(var(--angle) * -1)); }
}
.flight-exit { position: absolute; inset: 0; z-index: 5; background: var(--paper); opacity: 0; pointer-events: none; }
.stage-bottom { position: absolute; inset: auto var(--edge) clamp(10px, 2.8vh, 36px); z-index: 4; }
.stage-caption { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: clamp(10px, 3vh, 28px); }
.stage-caption a { min-height: 36px; display: inline-flex; align-items: center; gap: 10px; }
.stage-caption a:hover, .jump:hover, .scroll:hover { color: var(--red); }
.intro-caption { display: flex; align-items: center; gap: 8px; }
.live-dot { flex: 0 0 6px; height: 6px; border-radius: 100%; background: var(--red); }
.jump { justify-self: end; text-align: right; }
.wordmark { font-size: clamp(45px, 11.35vw, 230px); line-height: .78; font-weight: 900; letter-spacing: -.062em; text-transform: uppercase; display: flex; justify-content: center; white-space: nowrap; color: var(--red); }
.wordmark span { flex: none; display: inline-block; transform-origin: center; }
.progress { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; z-index: 4; }
.progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

.paper,.work,.contact { padding: 28px var(--edge) clamp(58px, 9vw, 150px); }
.paper { background: var(--paper); color: var(--bg); color-scheme: light; }
.section-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid currentColor; }
.about-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(20px, 6vw, 110px); align-items: end; padding-top: clamp(50px, 8vw, 120px); }
.about h2,.work h2,.contact h2 { font-size: clamp(48px, 9vw, 164px); line-height: .91; letter-spacing: -.085em; font-weight: 900; }
.about h2 em { font-style: normal; color: #bd2c1d; }
.about p { margin-top: clamp(26px, 5vw, 76px); max-width: 38ch; font-size: clamp(16px, 1.7vw, 28px); line-height: 1.48; letter-spacing: -.025em; }
.about-image img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 42%; }
.about-image figcaption { padding-top: 9px; display: flex; justify-content: space-between; }
.work h2,.contact h2 { padding: clamp(36px, 5.6vw, 95px) 0 clamp(30px, 4vw, 64px); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 24px); }
.gallery button { position: relative; display: block; grid-column: span 4; padding: 0; border: 0; background: #211d1c; overflow: hidden; text-align: left; }
.gallery button:nth-child(1),.gallery button:nth-child(2) { grid-column: span 6; }
.gallery button:nth-child(1) img,.gallery button:nth-child(2) img { aspect-ratio: 1.15; }
.gallery img { aspect-ratio: 1.23; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.gallery button:hover img,.gallery button:focus-visible img { transform: scale(1.04); filter: brightness(1.13); }
.gallery span { position: absolute; inset: auto 0 0; padding: 28px 13px 12px; background: linear-gradient(transparent,#000b); display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.gallery span::after { content: '↗'; font-size: 16px; }
.films { margin-top: clamp(25px, 5vw, 80px); border-top: 1px solid #ffffff52; }
.films a { padding: 21px 0; border-bottom: 1px solid #ffffff52; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: clamp(12px, 3vw, 55px); align-items: end; font-size: clamp(18px,3vw,46px); font-weight: 700; letter-spacing: -.05em; }
.films small { display: block; margin-bottom: 7px; font-weight: 400; color: var(--muted); }
.film-link { align-self: center; }
.films a:hover { color: var(--red); }

.contact { background: var(--red); color: #141010; color-scheme: light; padding-bottom: 22px; }
.socials { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.socials a { display: flex; justify-content: space-between; gap: 8px; align-items: start; padding: 15px 0; border-top: 1px solid #1410109c; font-size: clamp(17px, 2.2vw, 36px); font-weight: 700; letter-spacing: -.06em; }
.socials a:hover,.contact .section-line a:hover { color: var(--paper); }
.socials small { display: block; margin-top: 5px; font: 12px "IBM Plex Mono",monospace; letter-spacing: 0; }
.foot { margin-top: clamp(50px, 10vw, 145px); display: flex; gap: 12px; justify-content: space-between; }

.lightbox { border: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 58px max(51px, 7vw); background: #101010fa; color: var(--paper); }
.lightbox[open] { display: grid; place-items: center; }
body:has(.lightbox[open]) { overflow: hidden; }
.lightbox figure { max-width: 100%; }
.lightbox img { max-width: 100%; width: auto; max-height: 77dvh; margin-inline: auto; object-fit: contain; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; }
.lightbox button { position: absolute; border: 1px solid #ffffff65; background: #121212; border-radius: 50%; display: grid; place-items: center; height: 42px; width: 42px; font-size: 22px; padding: 0; }
.lightbox button:hover { color: var(--red); border-color: var(--red); }
.close { top: 14px; right: var(--edge); }
.previous,.next { top: 50%; transform: translateY(-50%); }
.previous { left: max(5px,2vw); }.next { right: max(5px,2vw); }

@media (max-width: 719px) { .flight { height: 400svh; } }
@media (max-width: 680px) {
  .mast { height: 58px; }
  .mast-title { justify-self: start; margin-left: 8px; white-space: nowrap; }
  .mast { grid-template-columns: auto 1fr auto; }
  .languages { gap: 0; }
  .languages button { min-width: 33px; }
  .stage-caption { grid-template-columns: 1fr auto; margin-bottom: 15px; }
  .stage-caption .intro-caption { display: none; }
  .stage-caption a { font-size: 9px; min-height: 32px; gap: 4px; }
  .wordmark { font-size: 12vw; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { margin-top: 22px; width: 76%; justify-self: end; }
  .gallery button { grid-column: span 6; }
  .gallery button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .gallery button:last-child:nth-child(odd) img { aspect-ratio: 1.65; }
  .gallery span { padding-inline: 8px; }
  .socials { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .flight { height: auto; }
  .stage { position: relative; }
  .flight-float { animation: none; }
  #flight-end { top: 100%; }
}

.wordmark { transform-origin: 50% 60%; pointer-events: none; }
.journey, .stage-work, .lessons { padding: 28px var(--edge) clamp(60px, 9vw, 138px); }
.journey { border-top: 1px solid #12121232; }
.chapter-title { font-size: clamp(49px, 8.4vw, 150px); line-height: .94; letter-spacing: -.08em; font-weight: 900; overflow-wrap: anywhere; }
.journey .chapter-title, .stage-work .chapter-title { padding: clamp(34px, 5vw, 78px) 0; }
.timeline { display: grid; grid-template-columns: 1fr 1fr; list-style: none; margin: 14px 0 0; padding: 0; }
.timeline li { position: relative; padding: 30px clamp(18px, 5vw, 88px) 0 0; }
.timeline li:first-child::after { content: ""; position: absolute; height: 1px; inset: 0 0 auto; background: #bd2c1d; }
.timeline li::before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; width: 13px; height: 13px; transform: translateY(-50%); border: 2px solid #bd2c1d; border-radius: 50%; background: var(--paper); }
.timeline li:last-child::before { background: #bd2c1d; box-shadow: 0 0 0 5px #bd2c1d25; }
.timeline h3, .venue h3, .award h3 { margin: .18em 0 .32em; font-size: clamp(32px, 5.4vw, 88px); line-height: .94; letter-spacing: -.075em; }
.timeline p, .stage-stories p, .lesson-grid p { max-width: 40ch; font-size: clamp(16px, 1.55vw, 23px); line-height: 1.47; }
.chapter-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; margin-top: 8px; text-decoration: underline; text-underline-offset: 5px; }
.chapter-link:hover { text-decoration-thickness: 2px; }
.stage-stories { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(16px, 2vw, 32px); }
.award, .venue { min-width: 0; min-height: 320px; position: relative; isolation: isolate; padding: clamp(20px, 3vw, 55px); display: flex; flex-direction: column; justify-content: end; }
.award { background: var(--red); color: #161211; }
.venue { overflow: hidden; }
.venue img, .venue::after { position: absolute; z-index: -1; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: center 33%; }
.venue::after { content: ""; background: linear-gradient(0deg,#090705f5,#09070596 62%,#09070512); }
.lesson-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(26px, 5vw, 90px); padding-top: clamp(32px, 5vw, 86px); }
.lesson-grid img { height: auto; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center; }
.lesson-grid p { margin-top: 24px; }
.lesson-button, .booking-footer { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; width: fit-content; min-height: 54px; padding: 12px 18px; margin-top: 26px; background: #161211; color: var(--paper); font-weight: 700; text-decoration: none; }
.lesson-button:hover, .booking-footer:hover { background: #85271d; color: #fff; }
.booking-footer { margin: 0 0 28px; }
@media (max-width: 680px) {
  .timeline { grid-template-columns: 1fr; padding-left: 8px; }
  .timeline li { padding: 0 0 40px 25px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li:first-child::after { height: auto; width: 1px; inset: 7px auto -7px 0; }
  .timeline li::before { top: 7px; transform: translate(-50%,-50%); }
  .stage-stories, .lesson-grid { grid-template-columns: 1fr; }
  .award, .venue { min-height: 260px; }
  .lesson-grid > div { grid-row: 1; }
  .lesson-grid figure { width: 100%; }
}
