:root { --ink:#0b1220; --ink-2:#101a2e; --text-2:#4b5563; --accent:#2563eb; --accent-soft:#60a5fa; --sand:#E8DCC4; --gutter: 24px; }
/* scoped to the stage and the page underneath, so the rest of a host page keeps its own styles */
.beats, .rest { box-sizing: border-box; color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.beats *, .rest * { box-sizing: border-box; }
.beats :is(h1, h2, p, ul), .rest :is(h1, h2, p, ul) { margin: 0; }
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); }
.wordmark { display: block; line-height: 0; } .wordmark img { display: block; width: 28px; height: 28px; }
.action { background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 18px; border-radius: 999px; white-space: nowrap; }
.action.big { font-size: 18px; padding: 16px 24px; }
.loud { font-size: clamp(44px, 8vw, 118px); line-height: 0.92; letter-spacing: -0.045em; font-weight: 800; }
.statement { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.25; font-weight: 600; max-width: 17em; }
.statement .soft { font-weight: 500; opacity: 0.8; }
.whisper { font-size: clamp(18px, 1.8vw, 26px); line-height: 1.4; font-weight: 500; max-width: 24em; }
.whisper strong { font-weight: 700; }

/* the world and the beats appear only once the first frame has drawn (html.world) */
/* world-pending: WebGL exists and motion is welcome, so the hero shows at once over ink while the world loads;
   world: the first frame has drawn. Everyone else never leaves the page underneath. */
#world, .track, .beats { display: none; }
html.world-pending #world, html.world #world { display: block; position: fixed; inset: 0; z-index: 0; background: var(--ink-2); }
#world canvas { display: block; width: 100%; height: 100%; }
html.world-pending .track, html.world .track { display: block; position: relative; z-index: 1; height: 2600svh; }
html.world-pending .beats, html.world .beats { display: block; position: fixed; inset: 0; z-index: 2; pointer-events: none; color: #fff; }
html.world-pending .rest, html.world .rest { display: none; }
/* once the audience has scrolled past the play, the stage steps aside and whatever follows on the page is simply there */
html.world body, html.world main { position: relative; }   /* the parked stage measures from here */
html.world-pending .beats .opening { opacity: 1; }   /* the first words stand before the world has drawn */
.anchor { position: absolute; left: 0; bottom: 0; width: 0; height: 0; }

.beats .beat { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; translate: 0 -50%; max-width: min(620px, 38vw); opacity: 0; }
.beats .beat.right { left: auto; right: var(--gutter); text-align: right; }
.beats .beat.low { top: auto; bottom: 10vh; translate: 0 0; }
.beats .beat.ink { color: var(--ink); }
.beats h1, .beats h2, .beats p, .beats li, .rest h1, .rest h2, .rest p, .rest li { color: inherit; }   /* the site's own heading colours do not reach the stage */
.beats .opening { display: grid; gap: 22px; justify-items: start; max-width: 720px; }
.beats .opening .whisper { max-width: 28em; }
.beats .action.big { pointer-events: auto; }
.card { background: #fff; color: var(--ink); padding: 16px 18px; border-radius: 6px; font-size: 16px; line-height: 1.4; max-width: 380px; text-align: left; }
.card p + p { margin-top: 6px; color: var(--text-2); }
.card.right { margin-left: auto; }
.card.dark { background: var(--ink); color: #fff; } .card.dark p + p { color: rgba(255,255,255,0.78); }
.years { max-width: 420px; margin-left: auto; font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.78); text-align: left; }
.years .line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.years .line i { display: block; height: 3px; background: var(--accent-soft); transform-origin: 0 50%; }
.years p { margin-top: 10px; font-weight: 500; color: rgba(255,255,255,0.62); }
.plans-stage { list-style: none; padding: 0; display: grid; gap: 12px; max-width: 460px; margin-left: auto; text-align: left; pointer-events: none; }
.plans-stage li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; align-items: baseline; background: var(--ink); color: #fff; padding: 14px 16px; border-radius: 8px; }
.plans-stage strong { font-size: 19px; } .plans-stage span { font-size: 14px; color: rgba(255,255,255,0.62); font-weight: 600; }
.plans-stage p { grid-column: 1 / -1; font-size: 15px; line-height: 1.4; color: rgba(255,255,255,0.78); }
.finale { display: grid; gap: 30px; justify-items: center; text-align: center; max-width: none !important; left: var(--gutter); right: var(--gutter); }
.finale .loud { color: #fff; }
.doors { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: min(100%, 1120px); pointer-events: auto; }
.door { display: grid; gap: 8px; text-align: left; background: #fff; color: var(--ink); text-decoration: none; padding: 26px 26px 28px; border-radius: 10px; height: 100%; }
.door strong { font-size: 22px; line-height: 1.2; } .door span { font-size: 16px; color: var(--text-2); line-height: 1.4; }
.doors li:first-child .door { background: var(--accent); color: #fff; } .doors li:first-child .door span { color: #fff; }
.door:hover strong, .door:focus-visible strong { text-decoration: underline; }
.door:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }

/* the page underneath */
.rest { max-width: 820px; margin: 0 auto; padding: 120px var(--gutter) 96px; }
.rest section { padding: 40px 0; }
.rest section + section { border-top: 0; }
.rest .statement { margin-bottom: 12px; }
.rest p + p, .rest img + p { margin-top: 14px; color: var(--text-2); }
.rest img { height: 220px; width: auto; display: block; margin: 16px 0 0; }
.rest .end { background: var(--ink); color: #fff; padding: 56px var(--gutter); margin: 40px calc(-1 * var(--gutter)) 0; display: grid; gap: 24px; }
.rest .doors { grid-template-columns: 1fr; }
.rest .action.big { display: inline-block; margin-top: 20px; }

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  /* on a phone the words sit at the top and the cards at the bottom, so a pair never covers each other */
  .beats .beat { top: 12vh; bottom: auto; translate: 0 0; max-width: none; width: auto; background: rgba(16, 26, 46, 0.86); color: #fff; padding: 14px 16px; border-radius: 8px; }
  .beats .beat.right, .beats .card, .beats .years, .beats .plans-stage { top: auto; bottom: 6vh; text-align: left; }
  .beats .beat.ink { color: #fff; }
  .beats .opening { top: 14vh; bottom: auto; background: none; padding: 0; }
  .beats .card { max-width: none; }
  .plans-stage { max-width: none; gap: 8px; } .plans-stage li { padding: 10px 12px; } .plans-stage p { font-size: 13px; } .plans-stage strong { font-size: 16px; }
  .finale { bottom: 4vh; gap: 12px; background: none; padding: 0; }
  .doors { grid-template-columns: 1fr; gap: 8px; } .door { padding: 12px 14px; } .door span { font-size: 13px; }
  .loud { font-size: clamp(40px, 13vw, 64px); }
  .bar { padding: 12px var(--gutter); } .action { padding: 10px 14px; font-size: 14px; }
}
