/* =====================================================
   V4 scroll site shell. The film stage (#stage and the
   scene base rules) mirrors /wedding-magician-toronto/V3-reel/index.html; the
   rest is the page that scrolls over it.
   ===================================================== */
:root {
  --pearl: #efece3;
  --paper: #e8e1d3;
  --petal: #b98a99;
  --truffle: #32251c;
  --pine: #303f33;
  --wine: #580e11;
  --wine-deep: #3e0a0c;
  --champagne: #d3c181;
  --gold-hi: #efe2b0;
  --gold-lo: #a88c45;
  --ink: #2b211a;
  --night: #0b0706;
  --ff-display: "Italiana", "Cormorant Garamond", serif;
  --ff-script: "Pinyon Script", cursive;
  --ff-serif: "Cormorant Garamond", Georgia, serif;
  --ff-sans: "Jost", system-ui, sans-serif;
  --W: 1920px;
  --H: 1080px;
  --u: 14.04px;
  --panel-w: 40vw;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background: var(--night);
  color: var(--pearl);
}

/* ---- fixed film layer ------------------------------------------------ */
#film {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: var(--night);
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--W);
  height: var(--H);
  overflow: hidden;
  transform-origin: 0 0;
  background: var(--night);
  will-change: transform;
}

#scenes,
.scene,
#fx,
#fade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene {
  overflow: hidden;
  visibility: hidden;
}

#fx,
#fade,
#seam {
  pointer-events: none;
}

#fade,
#seam {
  background: var(--night);
}

/* the scroll seam dip (lib/scrollfilm.js), above the engine fade */
#seam {
  position: absolute;
  inset: 0;
  opacity: 0;
}

#scrim {
  position: absolute;
  inset: 0;
  background: var(--night);
  opacity: 0;
  pointer-events: none;
}

.boot-error {
  position: absolute;
  inset: 5%;
  z-index: 10;
  padding: 24px;
  background: var(--pearl);
  color: var(--wine);
  font: 16px/1.4 ui-monospace, monospace;
  white-space: pre-wrap;
  overflow: auto;
}

/* ---- scrolling column ------------------------------------------------ */
#tracks {
  position: relative;
  z-index: 1;
}

/* height is set by scrollfilm.js from the track config; without the
   film (no JS, boot error, reduced motion) the panels stack in the flow */
.track {
  position: relative;
}

/* while the film boots (fonts, textures) the column waits; no JS or a
   boot error leaves it in the plain flow */
.js:not(.film-on):not(.film-failed) #tracks {
  visibility: hidden;
}

.cue {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(100vh - 64px);
  transform: translateX(-50%);
  font: 500 11px/1 var(--ff-sans);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--champagne);
  opacity: 0.8;
}

.film-on:not(.reduced) .cue {
  display: block;
}
