/* Cormorant Garamond, © the Cormorant Project Authors. SIL Open Font License 1.1.
   See licenses/Cormorant-Garamond.txt. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/inscription.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  background: #fff;
  color: #272727;
  font-family: "Cormorant Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-snap-type: y mandatory; overscroll-behavior-y: none; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; background: white; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; padding: 0; background: none; }
[hidden] { display: none !important; }
#stage, .scene, #intro, #contact { position: fixed; inset: 0; }
#stage { isolation: isolate; pointer-events: none; overflow: hidden; }
.scene, #intro, #contact { display: grid; place-items: center; }
.scene, #contact { opacity: 0; visibility: hidden; }
#intro { background: #fff; z-index: 5; }
#intro.presenting h1 { animation: opening 2050ms both; }
@keyframes opening {
  0%, 17% { opacity: 0; }
  40%, 72% { opacity: 1; }
  100% { opacity: 0; }
}
.inscription {
  font-family: inherit;
  font-size: clamp(1.35rem, 1.8vw, 1.875rem);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: .005em;
  font-kerning: normal;
  font-style: normal;
  text-align: center;
  margin: 0;
}
.projection {
  position: relative;
  width: min(66vw, 940px, 112svh);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
}
.standard .projection { width: min(58vw, 740px, 84svh); aspect-ratio: 4 / 3; }
.portrait .projection { width: min(66vw, 355px, 36svh); aspect-ratio: 9 / 16; }
.first-frame, .projection iframe, .surface {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%; border: 0;
}
.first-frame { object-fit: contain; }
/* The master contains narrow black columns. Apply the same overscan to
   the first decoded still and the live picture so the handoff lines up. */
.first-frame, .projection iframe { inset: -.4% auto auto -.4%; width: 100.8%; height: 100.8%; }
.projection iframe { pointer-events: none; opacity: 0; transition: opacity 160ms ease-out; }
.projection iframe.has-picture { opacity: 1; }
.surface { z-index: 2; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.surface:focus-visible, .direct:focus-visible { outline: 2px solid #788597; outline-offset: -4px; border-radius: inherit; }
.scene[inert] .surface { pointer-events: none; }
.direct {
  position: absolute; inset: 0; z-index: 3;
  display: block; border-radius: inherit; pointer-events: auto;
}
.direct svg { display: none; }
#contact a {
  padding: 12px 16px;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 260ms ease-out;
}
#contact:not([inert]) a {
  opacity: 1;
  transition: opacity 680ms cubic-bezier(.42, 0, .28, 1) 150ms;
}
#contact[inert] a { pointer-events: none; }
#contact a:hover { color: #676767; }
a:focus-visible { outline: 1px solid #969696; outline-offset: 4px; }
#track { pointer-events: none; }
.stop {
  height: clamp(150px, 34vh, 300px);
  height: clamp(150px, 34svh, 300px);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
.stop:last-child { height: 100vh; height: 100svh; }
@media (max-width: 700px) {
  .projection { width: min(85vw, 112svh); }
  .standard .projection { width: min(85vw, 84svh); }
  .portrait .projection { width: min(76vw, 37.5svh); }
}
@media (prefers-reduced-motion: reduce) {
  #intro.presenting h1 { animation-duration: 1500ms; }
  #contact a, #contact:not([inert]) a { transition-duration: 180ms; transition-delay: 0s; }
}

.opener iframe { opacity: 1; transition: none; }
.opening-shot {
  position: absolute;
  inset: -.4% auto auto -.4%; width: 100.8%; height: 100.8%;
  object-fit: cover; pointer-events: none; z-index: 1;
  transition: opacity 100ms linear;
  background: white center / cover no-repeat url("assets/blood-opening.jpg");
}
.opener.stream-visible .opening-shot { opacity: 0; }
