/* film.css — the launch film's stage. Every moving value is written per frame
   by film.js; nothing here transitions or animates on its own, so any frame
   can be drawn on demand. The stage's size is set by film.js, per format. */
:root {
  --ink: #1b1613;
  --paper: #eceae5;
  --night: #060412;
  --clay: #b87758;
  --gold: #f3d9a8;
}

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: var(--night);
  transform-origin: 0 0;
  font-family: "Lora", serif;
  -webkit-font-smoothing: antialiased;
}
#stage > * { position: absolute; left: 0; top: 0; }
#gl, #ideas, #net, #leads, #tags, #veil, #black, #scrim, #captions, #brand, #flash, #grain, #vignette, #bars {
  width: 100%;
  height: 100%;
}

/* ── The night's ideas: a spark and a name ─────────────────────────────── */
.idea {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  transform-origin: 0 50%;
  will-change: transform, opacity;
}
.idea i {
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, rgba(255, 240, 214, 0.75) 34%, rgba(255, 225, 180, 0) 70%);
  box-shadow: 0 0 22px 6px rgba(255, 226, 184, 0.35);
}
.idea span {
  position: absolute;
  left: 18px;
  top: -0.68em;
  font-style: italic;
  font-size: 30px;
  letter-spacing: 0.02em;
  color: rgba(255, 250, 242, 0.92);
  text-shadow: 0 0 18px rgba(6, 4, 18, 0.9);
}

/* On the right of the frame, a name reads leftward from its spark */
.idea.flip span { left: auto; right: 18px; }
/* The network's ideas, on paper: the node is the spark */
.idea.ink i { display: none; }
.idea.ink span {
  left: 0;
  top: -0.6em;
  font-size: 25px;
  color: rgba(59, 51, 47, 0.82);
  text-shadow: 0 0 10px rgba(236, 234, 229, 0.9), 0 0 4px rgba(236, 234, 229, 0.9);
}
.idea.ink.flip span { left: auto; right: 0; }

/* The network's edges and the signals travelling them (js/contact-mesh.js) */
#net line { stroke-linecap: round; }
#net circle { fill: #6e5d38; }

/* ── The star's light ──────────────────────────────────────────────────── */
#glow {
  width: 1000px;
  height: 1000px;
  margin: -500px 0 0 -500px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 246, 228, 0.85) 4%,
    rgba(255, 228, 188, 0.42) 12%,
    rgba(244, 196, 150, 0.16) 30%,
    rgba(240, 180, 140, 0) 62%);
  mix-blend-mode: screen;
  opacity: 0;
}
#streak {
  width: 2400px;
  height: 18px;
  margin: -9px 0 0 -1200px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 228, 190, 0.5) 18%,
    rgba(255, 210, 160, 0.12) 52%,
    rgba(255, 210, 160, 0) 100%);
  mix-blend-mode: screen;
  opacity: 0;
}

/* ── Callouts: the landing page's sphere annotations, set to one side ─── */
.tag {
  position: absolute;
  left: 0;
  top: 0;
  width: 520px;
  margin-left: -260px;
  text-align: center;
  color: var(--ink);
}
.tag b {
  display: block;
  font-family: "Major Mono Display", monospace;
  font-weight: 400;
  text-transform: lowercase;
  font-size: 44px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.tag em {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  letter-spacing: 0.03em;
  color: rgba(59, 51, 47, 0.88);
}
#leads line { stroke: rgba(27, 22, 19, 0.5); stroke-width: 2; }
#leads circle { fill: rgba(27, 22, 19, 0.65); }

#veil { background: var(--paper); opacity: 0; }
#black { background: #000; opacity: 0; }
/* Under Act II's words, so they read over the sphere of work */
#scrim {
  background: linear-gradient(to bottom, rgba(6, 4, 18, 0) 55%, rgba(6, 4, 18, 0.82) 80%, rgba(6, 4, 18, 0.9) 100%);
  opacity: 0;
}
:root[data-format="reel"] #scrim {
  background: linear-gradient(to bottom, rgba(6, 4, 18, 0) 60%, rgba(6, 4, 18, 0.85) 72%, rgba(6, 4, 18, 0.85) 86%, rgba(6, 4, 18, 0) 100%);
}

/* ── Captions: words rise into place, as the hero's statement does ────── */
.cap {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  line-height: 1.2;
  font-size: 62px;
  letter-spacing: 0.005em;
  will-change: opacity, filter;
}
.cap.c { width: 2000px; margin-left: -1000px; text-align: center; }
.cap.l { text-align: left; }
.cap.r { text-align: right; }
.cap.ink { color: var(--ink); }
.cap.moon { color: #f7f2ea; text-shadow: 0 0 28px rgba(6, 4, 18, 0.85); }
.cap.clay { color: var(--clay); }
.cap.gold { color: var(--gold); text-shadow: 0 0 40px rgba(255, 210, 150, 0.55), 0 0 90px rgba(255, 190, 120, 0.3); }
.cap.it { font-style: italic; }
.cap.sm { font-size: 50px; }
.cap.xs { font-size: 42px; line-height: 1.24; }
.cap.lg { font-size: 92px; letter-spacing: 0; }
.cap.xl { font-size: 124px; letter-spacing: 0.01em; }
.cap.mono {
  font-family: "Major Mono Display", monospace;
  text-transform: lowercase;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: rgba(27, 22, 19, 0.7);
}
.cap .hw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.12em 0.16em;
  margin: 0 -0.12em -0.16em;
}
.cap .hw > span { display: inline-block; }

#halo {
  width: 1300px;
  height: 900px;
  margin: -450px 0 0 -650px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgba(236, 234, 229, 0.96) 0%,
    rgba(236, 234, 229, 0.62) 46%,
    rgba(236, 234, 229, 0) 74%);
  opacity: 0;
}

/* ── The close: the wordmark in its many faces, then its own ─────────── */
#brand { pointer-events: none; }
#brand .mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-size: 150px;
  line-height: 1;
  color: var(--ink);
}
:root[data-format="reel"] #brand .mark { font-size: 118px; }
#brand .mark > span {
  display: inline-block;
  text-align: center;
  vertical-align: baseline;
}
#brand .cta {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  opacity: 0;
}
#brand .pill {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--clay);
  padding: 20px 40px 22px;
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(143, 90, 66, 0.28);
}
#brand .url {
  font-family: "Major Mono Display", monospace;
  text-transform: lowercase;
  font-size: 34px;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding-right: 6px;
}

#flash { background: #fffaf2; opacity: 0; }

/* ── The lens ─────────────────────────────────────────────────────────── */
#grain { mix-blend-mode: overlay; opacity: 0.07; }
#vignette {
  background: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(20, 12, 6, 0) 55%, rgba(20, 12, 6, 0.55) 100%);
  opacity: 0.4;
}
#bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 140px;
  background: #000;
}
#bars i:first-child { top: 0; }
#bars i:last-child { bottom: 0; top: auto; }
#bars { pointer-events: none; }

/* ?clean: the picture alone */
:root[data-clean] #captions, :root[data-clean] #tags, :root[data-clean] #leads, :root[data-clean] #halo,
:root[data-clean] #scrim, :root[data-clean] #bars, :root[data-clean] #brand .cta { display: none !important; }

/* ── Playing in a browser ─────────────────────────────────────────────── */
#play {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(6, 4, 18, 0.55);
  color: #f7f2ea;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  font-family: "Lora", serif;
}
#play[hidden] { display: none; }
.play-mark {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 22px 0 22px 36px;
  border-color: transparent transparent transparent #f7f2ea;
  margin-left: 8px;
}
.play-label { font-size: 26px; font-style: italic; }
.play-note {
  font-family: "Major Mono Display", monospace;
  text-transform: lowercase;
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
