/* Novrik: one stage, lit from night to day. */

:root {
  --night: #05060a;
  --ink: #0a0c14;
  --day: #f5f7fc;
  --cobalt: #1b3bff;
  --cobalt-2: #8c9dff;
  --rose: #ff7aa8;

  /* Light-dependent values, overwritten every frame by stage.js */
  --sky-top: 3 4 10;
  --sky-mid: 6 8 20;
  --sky-hz: 16 28 92;
  --sky-deck: 2 3 8;
  --glow: 27 59 255;
  --hy: 0.2;
  --l: 0;
  --p: 0;

  /* Tone: text on the night half of the stage */
  --fg: #f3f5fb;
  --fg-2: #ccd2ec;
  --line: rgb(243 245 251 / 0.18);
  --line-strong: rgb(243 245 251 / 0.4);
  --btn-bg: #f5f7fc;
  --btn-fg: #0a0c14;
  --focus: #8c9dff;

  --font-display: "Funnel Display", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Funnel Sans", ui-sans-serif, system-ui, sans-serif;
  --font-cue: "Big Shoulders Stencil", "Funnel Display", ui-sans-serif, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4.5vw, 64px);
  --desk: 0px;
  --maxw: 1320px;

  color-scheme: dark;
}

/* Night half: a soft offset shadow keeps text legible where the horizon glows */
html[data-tone="night"] main { text-shadow: 0 1px 16px rgb(6 6 24 / 0.38); }
html[data-tone="night"] .btn-primary,
html[data-tone="night"] .prompt-desk { text-shadow: none; }

/* Daylight half of the stage */
html[data-tone="day"] {
  --fg: #0a0c14;
  --fg-2: #343a57;
  --line: rgb(10 12 20 / 0.16);
  --line-strong: rgb(10 12 20 / 0.42);
  --btn-bg: #0a0c14;
  --btn-fg: #f5f7fc;
  --focus: #1b3bff;
  color-scheme: light;
}

@media (min-width: 1000px) {
  :root { --desk: 120px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--night);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  transition: color 0.7s var(--ease);
  overflow-x: clip;
}

img,
svg { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: rgb(var(--glow) / 0.45); color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.3s var(--ease);
}
.skip:focus { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- The cyclorama ---------- */

.cyc,
.cyc-fallback {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cyc { z-index: -1; display: block; }
.cyc-fallback {
  z-index: -2;
  background: linear-gradient(
    to top,
    rgb(var(--sky-deck)) 0%,
    rgb(var(--sky-hz)) calc(var(--hy) * 100%),
    rgb(var(--sky-mid)) calc(var(--hy) * 100% + 22%),
    rgb(var(--sky-top)) 100%
  );
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2 + var(--desk));
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: calc(var(--gutter) + var(--desk));
}

.band {
  position: relative;
  padding-block: clamp(96px, 13vh, 160px);
}

.band-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(48px, 8vh, 96px);
}

@media (max-width: 820px) {
  .band-head { grid-template-columns: 1fr; }
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-cue);
  font-weight: 800;
  font-variation-settings: "opsz" 72;
  text-transform: uppercase;
  font-size: clamp(3.6rem, 11vw, 6rem);
  line-height: 0.86;
  letter-spacing: 0.005em;
  margin: 0 0 clamp(22px, 3.2vh, 34px);
  text-wrap: balance;
}
.display .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.display .line > span { display: inline-block; }

.h2 {
  font-family: var(--font-cue);
  font-weight: 800;
  font-variation-settings: "opsz" 72;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}

.lede,
.sub {
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
  transition: color 0.7s var(--ease);
}
.lede {
  font-size: clamp(1.08rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  max-width: 52ch;
  margin-bottom: clamp(28px, 4vh, 40px);
}
.sub {
  font-size: 1.125rem;
  max-width: 46ch;
}



.cue-tag {
  font-family: var(--font-cue);
  font-weight: 700;
  font-variation-settings: "opsz" 24;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons & links ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

.btn {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  font: 600 0.86rem/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
  cursor: pointer;
  translate: var(--mx) var(--my);
  transition:
    background-color 0.6s var(--ease),
    color 0.6s var(--ease),
    border-color 0.6s var(--ease),
    box-shadow 0.5s var(--ease),
    translate 0.5s var(--ease);
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) { .btn:hover svg { transform: translateX(4px); } }

.btn-primary {
  background: linear-gradient(100deg, #1b3bff 0%, #5b34e6 52%, #c2337a 100%);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgb(var(--glow) / 0.8), 0 1px 0 0 rgb(255 255 255 / 0.22) inset;
}
.btn-primary:hover {
  filter: brightness(1.08) saturate(1.05);
  box-shadow: 0 16px 44px -10px rgb(var(--glow) / 0.95), 0 1px 0 0 rgb(255 255 255 / 0.3) inset;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn-ghost:hover { background: rgb(var(--glow) / 0.12); border-color: var(--fg); }

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.8rem;
}

.text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.4s var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-right: var(--gutter);
  max-width: calc(var(--maxw) + var(--gutter) * 2 + var(--desk));
}
.nav.is-scrolled {
  background: rgb(var(--sky-top) / 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
}
.brand .logo {
  display: block;
  height: 26px;
  width: auto;
  transition: color 0.7s var(--ease);
}
.foot .brand .logo { height: 22px; }
@media (max-width: 520px) {
  .nav .brand .logo { height: 21px; }
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("/assets/logo.svg") center / contain no-repeat;
  mask: url("/assets/logo.svg") center / contain no-repeat;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--fg-2);
  transition: color 0.4s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-end {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cue-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  height: 34px;
  padding: 0 13px 0 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}
.cue-now .cue-name { min-width: 5.4em; }
.lamp {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: rgb(var(--glow));
  box-shadow: 0 0 10px 2px rgb(var(--glow) / 0.8);
}
.cue-now .cue-name.is-swapping { animation: cue-swap 0.6s var(--ease); }
@keyframes cue-swap {
  from { opacity: 0; transform: translateY(6px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .cue-now { display: none; }
  .nav .btn-sm { padding: 0 16px; }
}

/* ---------- Lighting desk (cue fader) ---------- */

.desk {
  position: fixed;
  right: clamp(16px, 2.2vw, 32px);
  top: 50%;
  z-index: 25;
  display: flex;
  align-items: stretch;
  gap: 12px;
  transform: translateY(-50%);
}
.desk ol {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  height: 230px;
  margin: -7px 0;
  padding: 0;
  list-style: none;
}
.desk a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  height: 14px;
  font-size: 0.86rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.4s var(--ease);
}
.desk a .n {
  position: absolute;
  right: calc(100% + 7px);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.desk a:hover,
.desk a.is-current { opacity: 1; }
.desk:hover a .n,
.desk:focus-within a .n,
.desk a.is-current .n { transform: none; opacity: 1; }

.fader {
  position: relative;
  width: 22px;
  height: 230px;
  cursor: ns-resize;
  touch-action: none;
}
.fader-track,
.fader-fill {
  position: absolute;
  left: 50%;
  width: 2px;
  border-radius: 2px;
  translate: -50% 0;
}
.fader-track { top: 0; bottom: 0; background: var(--line); }
.fader-fill {
  bottom: 0;
  height: calc(var(--p) * 100%);
  background: linear-gradient(to top, #1b3bff, #ff7aa8 55%, #fff1e6);
}
.fader-tick {
  position: absolute;
  left: 50%;
  width: 10px;
  height: 1px;
  translate: -50% 0;
  background: var(--line-strong);
}
.fader-knob {
  position: absolute;
  left: 50%;
  bottom: calc(var(--p) * 100% - 7px);
  width: 22px;
  height: 14px;
  translate: -50% 0;
  border-radius: 2px;
  background: var(--fg);
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.35);
  transition: background-color 0.6s var(--ease);
}
.fader-knob::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 2px;
  translate: 0 -50%;
  background: rgb(var(--glow));
}

@media (max-width: 999px) {
  .desk { display: none; }
}

/* ---------- Hero (Q1 Night) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding-top: 120px;
  padding-bottom: calc(20svh + clamp(64px, 11vh, 120px));
}

.horizon-cast {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20svh;
  margin: 0;
  padding: 0;
  list-style: none;
}
.horizon-cast .wrap {
  margin-block: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(22px, 4.4vw, 64px);
}
.horizon-cast li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.5vw, 1.3rem);
  letter-spacing: -0.01em;
  line-height: 1;
  padding-bottom: 10px;
  color: var(--fg);
}

.scroll-cue {
  position: absolute;
  right: calc(var(--gutter) + var(--desk));
  bottom: calc(20svh - 52px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--fg-2);
  text-decoration: none;
}
.scroll-cue svg { width: 16px; height: 16px; animation: nudge 2.6s var(--ease) infinite; }
@keyframes nudge {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(5px); }
}
@media (max-width: 700px) {
  .scroll-cue { display: none; }
  .hero { padding-bottom: calc(20svh + 72px); }
}

/* ---------- What we build (Q2 Blue hour) ---------- */

.acts {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.acts::before,
.act::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
  transition: transform 1.6s var(--ease) var(--d, 0s);
}
.acts::before { top: 0; }
.act::after { bottom: 0; }

.act {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 18px 64px;
  align-items: start;
  padding: clamp(30px, 5.5vh, 54px) 0;
}
.act::before {
  content: "";
  position: absolute;
  inset: 0 -32px;
  background: radial-gradient(460px 240px at var(--sx, 30%) var(--sy, 50%), rgb(var(--glow) / 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
@media (hover: hover) { .act:hover::before { opacity: 1; } }

.act-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.8vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  transition: transform 0.7s var(--ease);
}
@media (hover: hover) { .act:hover .act-title { transform: translateX(12px); } }

.act-body p {
  margin: 0 0 20px;
  max-width: 44ch;
  font-size: 1.125rem;
  color: var(--fg-2);
  transition: color 0.7s var(--ease);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .act { grid-template-columns: 1fr; }
}

/* ---------- Why us (Q3 Dawn): the lighting rig ---------- */

.rig {
  position: relative;
  padding-top: 18px;
}
.truss {
  position: relative;
  height: 16px;
  border-block: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(60deg, transparent 0 12px, var(--line) 12px 13px),
    repeating-linear-gradient(-60deg, transparent 0 12px, var(--line) 12px 13px);
}

.fixtures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fixture {
  position: relative;
  padding-top: 200px;
}
.fixture-lamp {
  position: absolute;
  top: 0;
  left: calc(28% - 18px);
  width: 36px;
  height: 46px;
  color: var(--fg);
  z-index: 1;
}
.beam {
  position: absolute;
  top: 40px;
  left: -14px;
  right: -14px;
  height: 190px;
  clip-path: polygon(calc(28% - 8px) 0, calc(28% + 8px) 0, 66% 100%, 0% 100%);
  background: linear-gradient(
    to bottom,
    rgb(255 240 228 / 0.55),
    rgb(255 200 214 / 0.18) 48%,
    rgb(255 200 214 / 0) 92%
  );
  mix-blend-mode: screen;
  filter: blur(1.5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s var(--ease) var(--d, 0s);
}
.fixture h3,
.fixture p {
  position: relative;
  transition: opacity 1.2s var(--ease) var(--d, 0s), color 0.7s var(--ease);
}
.fixture h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.fixture p {
  margin: 0;
  color: var(--fg);
  max-width: 34ch;
}
.pool {
  position: absolute;
  top: 168px;
  left: -16%;
  width: 96%;
  height: 150px;
  background: radial-gradient(50% 50% at 46% 46%, rgb(255 226 228 / 0.26), rgb(255 200 214 / 0) 72%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s var(--ease) calc(var(--d, 0s) + 0.15s);
}
.fixture.is-in .beam { opacity: 0.9; }
.fixture.is-in .pool { opacity: 1; }
@media (hover: hover) { .fixture:hover .beam { opacity: 1; } }

@media (max-width: 1100px) {
  .fixtures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
}
@media (max-width: 600px) {
  .fixtures { grid-template-columns: 1fr; row-gap: 0; }
  .fixture { padding-top: 150px; padding-bottom: 28px; }
  .beam { height: 140px; }
  .pool { top: 118px; }
}

/* ---------- How it works (Q4 Sunrise): the cue sheet ---------- */

.cues {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 46px 0 0;
  list-style: none;
}
.go-line {
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.go-line span {
  display: block;
  height: 100%;
  width: calc(var(--go, 0) * 100%);
  background: var(--cobalt);
  border-radius: 2px;
}
.cue { position: relative; }
.cue::before {
  content: "";
  position: absolute;
  top: -42px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: rgb(var(--sky-top));
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.cue.is-lit::before {
  background: var(--cobalt);
  border-color: var(--cobalt);
  box-shadow: 0 4px 14px -2px rgb(27 59 255 / 0.55);
}
.cue-n {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(2.5rem, 3.8vw, 3.4rem);
  line-height: 1;
  opacity: 0.32;
  transition: opacity 0.6s var(--ease);
}
.cue.is-lit .cue-n { opacity: 1; }
.cue h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.cue p {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--fg-2);
  transition: color 0.7s var(--ease);
}

@media (max-width: 900px) {
  .cues {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 0 0 44px;
  }
  .go-line {
    top: 0;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .go-line span { width: 100%; height: calc(var(--go, 0) * 100%); }
  .cue::before { top: 8px; left: -44px; }
  .cue-n { font-size: 2.4rem; margin-bottom: 8px; }
}

/* ---------- The studio (Q5 Day) ---------- */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: center;
}
.duo .sub { margin-top: 24px; }
/* The two partners as actors on the stage (hero at night, studio by day) */
.pair { display: block; overflow: visible; }
.pair .fig { fill: var(--ink); }
.pair .shadow { fill: rgb(10 12 20 / calc(0.06 + var(--l) * 0.035)); }

.hero-pair {
  position: absolute;
  right: calc(var(--gutter) + var(--desk) + clamp(0px, 4vw, 64px));
  bottom: 20svh;
  height: clamp(170px, 27vh, 270px);
  pointer-events: none;
}
.hero-pair .pair { height: 100%; width: auto; }
.hero-pair .fig { fill: #03040a; }
.hero-pair .rim .fig {
  fill: color-mix(in srgb, rgb(var(--glow)) 45%, #fff);
  stroke: color-mix(in srgb, rgb(var(--glow)) 45%, #fff);
  stroke-width: 3;
  stroke-linejoin: round;
}
.hero-pair .shadow { display: none; }
.hero-pair .contact { fill: rgb(var(--glow)); opacity: 0.55; }
@media (max-width: 699px) {
  .hero-pair {
    right: calc(var(--gutter) - 4px);
    height: 78px;
  }
  .horizon-cast .wrap { flex-wrap: nowrap; gap: 18px; }
  .horizon-cast li { font-size: 0.95rem; white-space: nowrap; }
}
@media (max-width: 359px) {
  .hero-pair { display: none; }
}
html.js .hero-pair {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 1.8s var(--ease) 1.5s, transform 1.8s var(--ease) 1.5s;
}
html.js .hero-pair.is-in { opacity: 1; transform: none; }

.stage-cast {
  position: relative;
  padding: 24px 0 0;
}
.stage-cast .pair {
  width: min(100%, 210px);
  height: auto;
  margin: 0 auto;
}
.stage-floor {
  position: relative;
  height: 1px;
  background: var(--line-strong);
  margin-top: -1px;
}
.stage-floor::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 520px);
  height: 180px;
  translate: -50% 0;
  background: radial-gradient(50% 100% at 50% 100%, rgb(27 59 255 / 0.2), rgb(255 122 168 / 0.08) 45%, transparent 72%);
  pointer-events: none;
}
.names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 360px;
  margin: 18px auto 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.names strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.names strong { white-space: nowrap; }
.names span { display: block; color: var(--fg-2); font-size: 0.9rem; }

@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
}

/* ---------- Finale ---------- */

.finale { padding-block: clamp(130px, 22vh, 250px) clamp(110px, 18vh, 200px); }
.finale .display { max-width: 11ch; }
.finale .lede { max-width: 46ch; }
.finale .actions { gap: 16px 28px; }
.mail {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  letter-spacing: -0.01em;
}

/* ---------- Footer ---------- */

.foot {
  position: relative;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--fg-2);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 40px;
  padding-block: 34px 42px;
}
.foot nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot .brand { color: var(--fg); font-size: 1.15rem; }
.foot .brand-mark { width: 24px; height: 24px; }

/* ---------- Contact (stage door) ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
  min-height: 100svh;
  padding-top: clamp(124px, 18vh, 170px);
  padding-bottom: clamp(72px, 12vh, 120px);
}
.contact-intro { position: sticky; top: 130px; }
.contact-intro .display { font-size: clamp(2.9rem, 6.6vw, 5.4rem); }

.next {
  margin: clamp(32px, 6vh, 56px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}
.next li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 12px;
  align-items: baseline;
}
.next .cue-tag { font-size: 1.4rem; }
.next p { margin: 0; color: var(--fg-2); transition: color 0.7s var(--ease); }
.next strong { display: block; color: var(--fg); font-weight: 600; transition: color 0.7s var(--ease); }

.direct {
  margin-top: clamp(28px, 5vh, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--fg-2);
}
.direct a { color: var(--fg); }

/* The prompt desk: the form keeps its own dark tone whatever the sky does */
.prompt-desk {
  --fg: #f3f5fb;
  --fg-2: #bcc3e0;
  --line: rgb(243 245 251 / 0.16);
  --line-strong: rgb(243 245 251 / 0.36);
  --btn-bg: #f5f7fc;
  --btn-fg: #0a0c14;
  --focus: #8c9dff;
  position: relative;
  color: var(--fg);
  background: rgb(9 11 24 / 0.88);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 20px;
  padding: clamp(24px, 3.2vw, 44px);
  box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.7), 0 2px 0 0 rgb(255 255 255 / 0.04) inset;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color-scheme: dark;
}

.desk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.desk-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.meter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--fg-2);
}
.meter-bars { display: flex; gap: 4px; }
.meter-bars i {
  width: 22px;
  height: 6px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.12);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.meter-bars i.on:nth-child(1) { background: #1b3bff; }
.meter-bars i.on:nth-child(2) { background: #7d5cff; }
.meter-bars i.on:nth-child(3) { background: #ff7aa8; }
.meter-bars i.on:nth-child(4) { background: #fff1e6; }

.field { margin-bottom: 24px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

.field > label,
fieldset legend {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}
.opt { font-weight: 400; color: var(--fg-2); }

fieldset {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.input {
  width: 100%;
  padding: 12px 0 11px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: 400 1.08rem/1.4 var(--font-body);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.input::placeholder { color: #8f97b8; }
.input:hover { border-bottom-color: var(--fg-2); }
.input:focus {
  outline: none;
  border-bottom-color: var(--cobalt-2);
  box-shadow: 0 1px 0 0 var(--cobalt-2);
}
textarea.input {
  min-height: 132px;
  resize: vertical;
}
.input[aria-invalid="true"] {
  border-bottom-color: #ff8fb4;
  box-shadow: 0 1px 0 0 #ff8fb4;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 0.95rem;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.chip input:hover + span { border-color: var(--fg); }
.chip input:checked + span {
  background: var(--fg);
  border-color: var(--fg);
  color: #0a0c14;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #ff9dbd;
}
.field-error:empty { display: none; }

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.form-note {
  margin: 0;
  max-width: 34ch;
  font-size: 0.9rem;
  color: var(--fg-2);
}
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn .spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
  display: none;
}
.btn.is-loading .spinner { display: block; }
.btn.is-loading svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgb(255 122 168 / 0.12);
  border: 1px solid rgb(255 122 168 / 0.35);
  color: #ffd3e2;
  font-size: 0.95rem;
}
.form-status:empty { display: none; }
.form-status a { color: #fff; }

.sent { padding: clamp(8px, 2vw, 20px) 0; }
.sent h2 {
  margin: 0 0 16px;
  font-family: var(--font-cue);
  font-weight: 800;
  font-variation-settings: "opsz" 72;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}
.prompt-desk.is-sent {
  --fg: #0a0c14;
  --fg-2: #343a57;
  --line-strong: rgb(10 12 20 / 0.4);
  background: rgb(255 255 255 / 0.62);
  border-color: rgb(10 12 20 / 0.08);
  box-shadow: 0 30px 70px -40px rgb(10 12 20 / 0.35);
  color-scheme: light;
  transition: background-color 1s var(--ease), color 1s var(--ease);
}
.sent p { margin: 0 0 14px; color: var(--fg-2); max-width: 44ch; }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
}

/* ---------- Simple pages (thanks, 404) ---------- */

.solo {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-block: 140px 22svh;
}
.solo .display { max-width: 12ch; }

/* ---------- Motion ---------- */

/* Content is visible without JS; these only apply once site.js has run. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  transition:
    opacity 1s var(--ease) var(--d, 0s),
    transform 1.2s var(--ease) var(--d, 0s),
    filter 1s var(--ease) var(--d, 0s);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Headlines rise out of the stage floor, line by line */
html.js .display[data-rise] .line > span {
  transform: translateY(108%);
  transition: transform 1.25s var(--ease) var(--d, 0s);
}
html.js .display[data-rise].is-in .line > span { transform: none; }

/* Horizon lines draw across as the light reaches them */
html.js .acts:not(.is-in)::before,
html.js .act:not(.is-in)::after { transform: scaleX(0); }

/* Fixtures: the actor is dim until their light is called */
html.js .fixture:not(.is-in) h3,
html.js .fixture:not(.is-in) p { opacity: 0.25; }

/* Hero cast steps onto the horizon */
html.js .horizon-cast li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s);
}
html.js .horizon-cast.is-in li { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal],
  html.js .display[data-rise] .line > span,
  html.js .horizon-cast li {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  html.js .acts::before,
  html.js .act::after { transform: none !important; transition: none !important; }
  html.js .fixture h3,
  html.js .fixture p { opacity: 1 !important; }
  .fixture .beam { opacity: 0.9; transition: none; }
  .fixture .pool { opacity: 1; transition: none; }
  html.js .hero-pair { opacity: 1; transform: none; transition: none; }
  .scroll-cue svg,
  .cue-now .cue-name.is-swapping { animation: none; }
  .btn { translate: none; }
}
