@font-face {
  font-family: Riviera;
  src: url("media/riviera.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #0b0b0b;
  --blue: #163362;
  --ivory: #f5f1e9;
  --muted: #c1b9ad;
  --gold: #edc87a;
  --font: Riviera, Arial, sans-serif;
  --title: Riviera, Arial, sans-serif;
  --gutter: clamp(20px, 6vw, 104px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ivory); font: 1rem/1.65 var(--font); }
button, a { color: inherit; }
a { text-underline-offset: .27em; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .43; cursor: default; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
img { display: block; max-width: 100%; }
figure, h1, h2, p, blockquote { margin: 0; }
h1, h2, blockquote { font-family: var(--title); font-weight: 400; }
h1 { font-size: clamp(3.55rem, 8.15vw, 9.2rem); line-height: .96; letter-spacing: -.083em; }
h2 { font-size: clamp(2.5rem, 5.3vw, 5.6rem); line-height: 1.03; letter-spacing: -.057em; }
section[id] { scroll-margin-top: 20px; }
.wrap { width: min(100% - var(--gutter) * 2, 1330px); margin-inline: auto; }
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .79rem;
  margin-bottom: 1.1rem;
}
.meta { color: var(--muted); font-size: .79rem; }
.skip { position: absolute; z-index: 20; top: -100px; left: 20px; padding: 10px 15px; background: var(--blue); }
.skip:focus { top: 10px; }

.brand { display: inline-flex; width: fit-content; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 70px; max-height: 58px; object-fit: contain; }

.footer a:hover { color: var(--gold); }

.art-data { color: var(--muted); margin-top: 1.35rem; }
.art-data span { color: var(--gold); padding-inline: .5em; }

.installation {
  display: grid; grid-template-columns: .85fr 1.15fr; align-items: center;
  gap: clamp(26px, 7vw, 125px); padding-block: clamp(72px, 12vw, 160px);
}

.installation p:not(.eyebrow) { color: var(--muted); max-width: 37rem; }
.artist {
  overflow: hidden; padding-block: clamp(59px, 8vw, 108px) clamp(55px, 8vw, 100px);
  background: #101520;
}
.orbit-heading { text-align: center; }
.orbit {
  position: relative; min-height: clamp(310px, 36vw, 480px);
  display: grid; place-items: center; isolation: isolate;
}
.portrait-track { z-index: 0; position: absolute; inset: 0; overflow: hidden; width: 100%; padding: 0; border: 0; background: transparent; }
.portrait-track img {
  position: absolute; top: 50%; left: 50%; width: clamp(108px, 13vw, 185px); height: clamp(155px, 18vw, 256px);
  object-fit: cover;
  opacity: 0; transform: translate(-50%, -50%);
}
.bio {
  position: relative; z-index: 8; width: min(40%, 470px); padding: clamp(16px, 2.3vw, 36px);
  background: radial-gradient(ellipse at center, #10182df0 38%, #10182db0 69%, transparent);
  color: #e6dece;
}
.bio p + p { margin-top: .75rem; }

.installation { grid-template-columns: 1.17fr .83fr; }
.installation img { width: 100%; }
.installation figcaption { margin-top: 10px; }
.installation h2 + p { margin-top: 1.2rem; }
.installation p + p { margin-top: .7rem; }

.scene {
  position: relative; width: min(100%, 125svh, 1460px); aspect-ratio: 4502 / 3517;
  overflow: hidden; isolation: isolate;
}
.church { position: absolute; width: 100%; height: 100%; object-fit: cover; transform-origin: 48% 39%; }
.scene-art {
  position: absolute; left: 48%; top: 39.5%; z-index: 2;
  width: 36%; height: auto; max-width: none; opacity: 0;
  transform-origin: center; transform: translate(-50%, -50%);
}

.footer {
  display: grid; grid-template-columns: 1fr 3fr auto; align-items: center; gap: 18px;
  padding-block: 46px; color: var(--muted);
}
.footer .eyebrow { margin-bottom: .35rem; }
.footer-contact div { display: flex; gap: 12px 18px; flex-wrap: wrap; margin-block: .4rem; }
.collector-mail { font-size: clamp(1.05rem, 2.2vw, 1.5rem); color: var(--ivory); }
.footer a { font-size: .9rem; }
.footer .collector-mail { font-size: clamp(1.05rem, 2.2vw, 1.5rem); }
dialog {
  width: min(92vw, 53svh); max-height: 95svh;
  padding: 0; border: 0; background: transparent; color: var(--ivory);
}
dialog::backdrop { background: #04050aed; }

@media (max-width: 760px) {

  .brand img { width: 62px; max-height: 48px; }

  .art-data { margin-top: .85rem; }

  .installation { grid-template-columns: 1fr; gap: 24px; padding-block: 54px; }
  .installation { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .orbit { display: block; min-height: 0; }
  .portrait-track { position: relative; height: 214px; margin: 6px calc(-1 * var(--gutter)) 4px; }
  .portrait-track img { width: 102px; height: 145px; }
  .bio { width: 100%; max-width: 500px; margin-inline: auto; }

  .scene { width: 100%; }
  .footer { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

}

.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.opening {
  position: relative; display: grid; align-items: end; isolation: isolate;
  min-height: calc(100svh - 84px); min-height: min(830px, calc(100svh - 84px));
  background: #07080c; overflow: hidden;
}
.opening-stage, .opening-stage .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.opening-stage .scene {
  width: min(100%, 128svh); height: auto; aspect-ratio: 4502/3517; top: 47%; left: 50%;
  right: auto; bottom: auto; transform: translate(-50%, -50%); overflow: visible;
}
.opening-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(0deg,#07080cf7 0%,#07080caf 17%,transparent 42%),
    linear-gradient(90deg,#07080c 0%,transparent 18%,transparent 82%,#07080c 100%);
}

.process-intro h2 + p { color: var(--muted); margin-top: 1rem; }

.process-view img { width: 100%; aspect-ratio: 7/5; object-fit: contain; }
.process-view figcaption { padding: .55rem .75rem; }
@media (max-width: 760px) {
  .opening { min-height: min(730px, calc(100svh - 110px)); }
  .opening-stage .scene { top: 36%; }
  .opening-stage::after { background: linear-gradient(0deg,#07080c 8%,#07080c80 25%,transparent 48%),linear-gradient(180deg,#07080c 0%,transparent 17%); }

  .portrait-track { width: calc(100% + var(--gutter) * 2); max-width: none; }

}

.opening-stage .church-motion {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none;
}
.opening-stage .scene-art { z-index: 2; left: 47.8%; top: 39.5%; width: 36.2%; opacity: 0; }
.opening-stage .church { z-index: 1; }

.process-intro { max-width: 720px; }
.process-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 4vw, 64px); }
.process-view { border: 0; background: transparent; }
.process-view img { object-fit: cover; background: #07080c; }
.process-view figcaption { padding-inline: 0; }
@media (max-width: 760px) {
  .opening-stage .scene { width: 100%; }

  .process-gallery { grid-template-columns: 1fr; gap: 20px; }
}

.opening {
  min-height: 100svh;
}
.opening-stage .scene {
  top: 50%;
}
.opening-stage::after {
  background: linear-gradient(90deg, #07080c 0%, transparent 13%, transparent 87%, #07080c 100%);
}
.opening[data-opened="true"] .opening-stage::after {
  opacity: 0;
}
.opening-next {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 6;
  cursor: pointer;
}
.opening-next:focus-visible {
  outline-offset: -6px;
}
.film-pair {
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, min(49vw, 36svh)));
  justify-content: center;
  align-content: center;
  gap: clamp(5px, 1.8vw, 25px);
  padding-block: 4svh;
  position: relative;
  background: #07080c;
}
.film-pair figure {
  text-align: center;
}
.film-image video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #07080c;
}
.film-pair figcaption {
  color: var(--muted);
  font-size: .85rem;
  margin-top: .6rem;
}

@media (max-width: 760px) {
  .opening { min-height: 100svh; }
  .opening-stage .scene { top: 50%; }
  .film-pair {
    min-height: 0;
    grid-template-columns: min(66vw, 38svh);
    padding-block: 4svh 7svh;
    gap: 25px;
  }
}

.film-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.film-image video { pointer-events: none; }
.keyboard-close:focus-visible {
  z-index: 1;
  clip-path: none;
  width: auto;
  height: auto;
  top: 10px;
  right: 12px;
  padding: .5rem .8rem;
  border: 0;
  background: #07080d;
}


.process {
  padding-block: clamp(68px, 10vw, 145px);
  display: grid;
  gap: clamp(25px, 4vw, 55px);
}
.story {
  padding-block: clamp(66px, 10vw, 145px);
  background:
    linear-gradient(180deg, #0b0b0b, #0b0b0bad 20%, #0b0b0ba0 50%, #0b0b0bb5 82%, #101520),
    url("media/stone.webp") center top / max(100%, 850px) auto repeat-y;
}
.story-intro {
  max-width: 760px;
  margin-bottom: clamp(60px, 10vw, 130px);
}
.story-intro > p:last-child {
  max-width: 57ch;
  margin-top: 1.35rem;
  font-size: clamp(1.13rem, 2vw, 1.55rem);
}
.story-beat {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(25px, 7vw, 100px);
  align-items: center;
}
.story-beat + .story-beat { margin-top: clamp(60px, 12vw, 170px); }
.story-beat-reverse { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.story-beat-reverse .story-image { grid-column: 2; grid-row: 1; }
.story-beat-reverse .story-copy { grid-column: 1; grid-row: 1; }
.story-image img {
  width: 100%;
  aspect-ratio: 1.38;
  object-fit: cover;
}
.story-copy h3 {
  font: 400 clamp(1.9rem, 4.65vw, 4.65rem)/1.04 var(--title);
  letter-spacing: -.05em;
  margin: 0 0 .4em;
}
.story-copy p {
  max-width: 40ch;
  color: #e6ddd1;
  font-size: clamp(1rem, 1.65vw, 1.19rem);
}
.film-pair .film-image { cursor: zoom-in; }
#film-screen { cursor: pointer; }
#film-feature { max-height: 95svh; }
@media (max-width: 760px) {
  .story-beat, .story-beat-reverse { grid-template-columns: 1fr; gap: 18px; }
  .story-beat-reverse .story-image, .story-beat-reverse .story-copy { grid-area: auto; }
}
