/* VIZUL.ART landing page. Afterhours 02 tokens come from design-tokens.css; this file adds the page's own composition. */
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/Rajdhani-Bold.ttf") format("truetype"); }

:root {
  --gutter: 56px;
  --deck-h: 60px;
  --scrim: 10 11 13;
  --body: 16px;
  --measure: 62ch;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--line-strong) var(--bg); scrollbar-width: thin; }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: var(--body); font-weight: 400; line-height: 1.6; font-synthesis: none; caret-color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border: 2px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:is(a, button, input, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.icon { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 50; padding: 10px 14px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform var(--duration) var(--ease); }
.skip-link:focus-visible { transform: none; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); color: var(--text); font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1; }

/* ---------- Atoms: controls ---------- */
.primary-button, .secondary-button, .quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease); }
.primary-button { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.primary-button:hover:not(:disabled) { border-color: var(--accent-hover); background: var(--accent-hover); }
.secondary-button:hover:not(:disabled) { border-color: var(--line-strong); background: var(--surface-hover); }
.secondary-button svg.icon use[href="#i-play"] { fill: currentColor; stroke: none; }
[data-play-inline] svg.icon { color: var(--accent); fill: currentColor; stroke: none; }
.quiet-button { min-height: 36px; padding: 0 12px; border-color: transparent; background: transparent; color: var(--text-soft); font-weight: 500; font-size: 14px; }
.quiet-button:hover { color: var(--text); background: rgb(255 255 255 / 5%); }
.large { min-height: 52px; padding: 0 22px; font-size: 16px; }
:is(.primary-button, .secondary-button, .quiet-button):disabled { cursor: default; opacity: .62; }
.primary-button svg.icon { fill: currentColor; stroke: none; }
.text-link { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color var(--duration) var(--ease); }
.text-link:hover { text-decoration-color: var(--accent); }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text-soft); transition: background var(--duration) var(--ease), color var(--duration) var(--ease); }
.icon-button:hover { background: var(--surface-hover); color: var(--text); }
.icon-button[aria-pressed="true"] { border-color: var(--accent-line); color: var(--accent); }
.data-label, .cue-number, .cue-state, .band-range, .order-columns, .deck-status, .meter span, output, .beta-tag { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ---------- The stage: a real engine output behind the whole page ---------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #000; }
.stage-poster, .stage-poster img, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-poster img { object-fit: cover; }
.stage-poster { transition: visibility 0s linear 900ms; }
.stage[data-state="live"] .stage-poster { visibility: hidden; }
.stage canvas { display: block; opacity: 0; transition: opacity 900ms var(--ease-out); }
.stage[data-state="live"] canvas { opacity: 1; }
/* A slid picture feathers its left edge into the stage black under the text column. */
.stage[data-picture-shift] canvas { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%); mask-image: linear-gradient(90deg, transparent 0, #000 12%); }
.stage-exit { position: absolute; left: 50%; bottom: 24px; padding: 8px 12px; border-radius: 6px; background: rgb(var(--scrim) / 78%); color: var(--text-soft); font-size: 13px; transform: translateX(-50%); pointer-events: none; }
.stage:fullscreen .stage-exit:not([hidden]) { animation: exit-hint 3.2s var(--ease) forwards; }
@keyframes exit-hint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Top bar ---------- */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 18px var(--gutter); background: linear-gradient(rgb(var(--scrim) / 70%), transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { width: 22px; height: 22px; fill: var(--accent); }
.brand-word { position: relative; display: inline-block; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; text-shadow: 1px 0 #b7a4f67a, -1px 0 #cbff7040; transition: text-shadow var(--duration) var(--ease); }
.brand-word span { position: absolute; top: 0; left: 0; opacity: .3; }
.brand-word span:first-child { clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); transform: translate(-.04em, -.03em); }
.brand-word span:last-child { clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); transform: translate(.04em, .03em); }
.brand:hover .brand-word { text-shadow: 2px 0 #b7a4f6, -2px 0 #cbff70; }
.brand-word.static { text-shadow: none; }
.beta-tag { padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: rgb(var(--scrim) / 55%); color: var(--text-soft); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.topnav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topnav .text-link { padding: 8px 10px; font-size: 14px; }
.topnav .quiet-button { border-color: var(--line); background: rgb(var(--scrim) / 55%); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; display: grid; place-items: center; min-height: 100svh; padding: 96px var(--gutter) calc(var(--deck-h) + 40px); text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 46% 52% at 50% 53%, rgb(var(--scrim) / 76%) 0%, rgb(var(--scrim) / 58%) 58%, rgb(var(--scrim) / 0%) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 31% 44% at 50% 52%, rgb(var(--scrim) / 86%) 0%, rgb(var(--scrim) / 72%) 58%, rgb(var(--scrim) / 0%) 100%); }
.hero::before, .hero::after { transition: opacity 1.6s var(--ease-out); }
body[data-room-live] .hero::before { opacity: 0; }
body[data-room-live] .hero::after { opacity: 1; }
.hero-title, .hero-lede, .soundcheck-notes, .invite-label, .invite-alt { text-shadow: 0 1px 2px rgb(0 0 0 / 70%), 0 0 24px rgb(0 0 0 / 55%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; width: min(100%, 900px); }
.hero-top, .hero-bottom { display: flex; flex-direction: column; align-items: center; width: 100%; }
.source-try { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.source-problem { max-width: var(--measure); color: var(--danger); font-size: 14px; }
.hero-title { margin-bottom: 20px; font-family: var(--display); font-weight: 700; font-size: 6rem; font-size: clamp(3.25rem, 7.4vw, 6rem); line-height: .9; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; }
.hero-title .split { position: relative; display: inline-block; }
.hero-title .split::before, .hero-title .split::after { content: attr(data-text); position: absolute; inset: 0; z-index: -1; opacity: calc(var(--split, 0) * .9); pointer-events: none; }
.hero-title .split::before { color: var(--magenta); clip-path: inset(0 0 52% 0); transform: translateX(calc(var(--split, 0) * -3px)); }
.hero-title .split::after { color: var(--accent); clip-path: inset(48% 0 0 0); transform: translateX(calc(var(--split, 0) * 3px)); }
.hero-title .dot { color: var(--accent); }
.hero-lede { max-width: 60ch; margin-bottom: 32px; color: var(--text-soft); font-size: 20px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; text-wrap: pretty; }
.soundcheck { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(100%, 560px); }
.soundcheck-slot { display: grid; place-items: center; width: 100%; min-height: 34px; }
#start-soundcheck { min-width: 236px; }
.soundcheck-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.soundcheck-notes { color: var(--muted); font-size: 13px; line-height: 1.5; text-wrap: balance; }
.checklist { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.checklist li { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: rgb(var(--scrim) / 70%); color: var(--text-soft); font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: .1em; text-transform: uppercase; transition: border-color 200ms var(--ease), color 200ms var(--ease); }
.checklist li::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.checklist li[data-state="current"] { border-color: var(--band); color: var(--band); }
.checklist li[data-state="current"]::before { background: var(--band); }
.checklist li[data-state="done"] { color: var(--text); }
.checklist li[data-state="done"]::before { width: 9px; height: 5px; border-width: 0 0 1.5px 1.5px; border-radius: 0; color: var(--band); transform: translateY(-2px) rotate(-45deg); }
.soundcheck-problem { max-width: 52ch; color: var(--danger); font-size: 14px; }
.soundcheck[data-live] #start-soundcheck { border-color: var(--line); background: var(--surface); color: var(--text); }
.soundcheck[data-live] #start-soundcheck svg.icon { fill: none; stroke: currentColor; }

/* ---------- Invite forms ---------- */
.invite { display: flex; flex-direction: column; gap: 10px; width: min(100%, 520px); }
.invite-hero { margin-top: 28px; }
.invite-label { color: var(--text-soft); font-size: 14px; }
.invite-row { display: flex; gap: 8px; }
.invite-row input[type="email"] { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: rgb(26 29 32 / 92%); color: var(--text); font-size: 16px; transition: border-color var(--duration) var(--ease); }
.invite-row input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.invite-row input[type="email"]:hover { border-color: var(--line-strong); }
.invite-row input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent-line); }
.invite-row input[aria-invalid="true"] { border-color: var(--danger); }
.invite-submit { min-height: 48px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.invite-status { min-height: 1.5em; color: var(--text-soft); font-size: 14px; }
.invite-status[data-tone="error"] { color: var(--danger); }
.invite-status[data-tone="done"] { color: var(--accent); }
.invite-alt { color: var(--muted); font-size: 14px; }
.invite[data-done] .invite-row, .invite[data-done] .roles { display: none; }
.hero .invite { text-align: left; }
.hero .soundcheck-notes, .hero .invite-alt { color: var(--text-soft); }
.hero .invite-alt, .hero .invite-label, .hero .invite-status { text-align: center; }

/* ---------- Running order ---------- */
.running-order { position: relative; z-index: 1; padding: 144px var(--gutter) 40px; padding-block: clamp(96px, 16vh, 180px) 40px; /* Stops follow the text column (gutter + 820px max), so every width keeps the text on a dark ground. */
  background: linear-gradient(90deg, rgb(var(--scrim) / 96%) 0%, rgb(var(--scrim) / 93%) calc(var(--gutter) + 830px), rgb(var(--scrim) / 78%) calc(var(--gutter) + 960px), rgb(var(--scrim) / 42%) calc(var(--gutter) + 1120px), rgb(var(--scrim) / 12%) calc(var(--gutter) + 1250px), rgb(var(--scrim) / 5%) 100%); }
.order-head, .cues { max-width: 820px; }
.section-title { margin-bottom: 16px; font-family: var(--display); font-weight: 700; font-size: 4.75rem; font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: .92; text-transform: uppercase; text-wrap: balance; }
.section-lede { max-width: 56ch; color: var(--text-soft); font-size: 18px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; text-wrap: pretty; }
.order-columns { display: grid; grid-template-columns: 136px minmax(0, 1fr); margin-top: 64px; margin-top: clamp(48px, 7vh, 72px); padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.order-columns span:nth-child(2) { display: none; }
.cue { display: grid; grid-template-columns: 136px minmax(0, 1fr); padding: 48px 0; padding-block: clamp(36px, 6vh, 56px); border-bottom: 1px solid var(--line-soft); }
.cue-meta { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.cue-number { display: inline-flex; align-items: center; color: var(--text); font-size: 14px; letter-spacing: .06em; transition: color var(--duration) var(--ease); }
.cue-number::before { content: ""; flex: 0 0 auto; width: 10px; height: 2px; margin: 0 6px 0 -16px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease); }
.cue[data-current] .cue-number { color: var(--accent); }
.cue[data-current] .cue-number::before { transform: scaleX(1); }
.cue-state { display: inline-flex; align-items: baseline; gap: 7px; color: var(--text-soft); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.cue-state i { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.cue-state.soon { color: var(--muted); }
.cue-state.soon i { background: transparent; border: 1px solid var(--muted); }
.cue-body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.cue-body > p { max-width: var(--measure); color: var(--text-soft); text-wrap: pretty; }
.cue-body > p.fine { color: var(--muted); }
.cue-title { font-family: var(--display); font-weight: 700; font-size: 2.5rem; font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.02; letter-spacing: .005em; text-wrap: balance; }
.cue-next { padding: 28px 0; }
.cue-next .cue-title { color: var(--text-soft); font-size: 2rem; font-size: clamp(1.5rem, 2vw, 2rem); }
.cue-next .cue-body > p { color: var(--muted); }
.cue-next + .cue-next { border-top: 0; }
.now-listening { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.data-label { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
#source-now { color: var(--text); font-weight: 600; }

/* Bands */
.bands { width: 100%; border-top: 1px solid var(--line-soft); }
.band { display: grid; grid-template-columns: 76px 108px minmax(80px, 1fr) auto; grid-template-areas: "name range meter mute" "drive drive drive drive"; align-items: center; column-gap: 16px; row-gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.band-name { grid-area: name; color: var(--band); font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.band-range { grid-area: range; color: var(--muted); font-size: 12px; }
.band-meter { grid-area: meter; position: relative; height: 6px; overflow: hidden; border-radius: 3px; background: var(--line-soft); }
.band-meter i { position: absolute; inset: 0; background: var(--band); transform: scaleX(var(--v, 0)); transform-origin: left; }
.band-drive { grid-area: drive; color: var(--text-soft); font-size: 14px; }
.band-mute { grid-area: mute; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--text-soft); font-size: 13px; transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease); }
.band-mute:hover { border-color: var(--line-strong); color: var(--text); }
.band-mute[aria-pressed="true"] { border-color: var(--band); background: var(--band); color: var(--accent-ink); }
.band[data-muted] .band-meter i { opacity: .25; }
.band[data-muted] .band-drive { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.band-kick, .meter.band-kick { --band: var(--band-kick); }
.band-highs, .meter.band-highs { --band: var(--band-highs); }
.band-mids, .meter.band-mids { --band: var(--band-mids); }
.band-sub, .meter.band-sub { --band: var(--band-sub); }

/* Worlds */
.worlds { width: 100%; border-top: 1px solid var(--line-soft); }
.world { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: baseline; column-gap: 14px; width: 100%; padding: 14px 10px 14px 4px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; transition: background var(--duration) var(--ease); }
.world:hover { background: rgb(255 255 255 / 4%); }
.world::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--line-strong); transform: translateY(-4px); }
.world[aria-pressed="true"]::before { border-color: var(--accent); background: var(--accent); }
.world-name { font-family: var(--display); font-weight: 700; font-size: 2rem; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; }
.world-sub { display: block; margin-top: 2px; color: var(--text-soft); font-size: 14px; }
.world-kind { color: var(--muted); font-size: 13px; text-align: right; }

/* Palettes and tuning */
.tune-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; }
.tune-label { color: var(--text-soft); font-size: 14px; }
.palettes { display: grid; grid-template-columns: repeat(3, max-content); gap: 8px; }
.effects { display: flex; flex-wrap: wrap; gap: 8px; }
.effect { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: rgb(21 24 27 / 88%); color: var(--text-soft); font-size: 13px; transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease); }
.effect:hover { border-color: var(--line-strong); color: var(--text); }
.effect[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }
.palette { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 8px; border: 1px solid var(--line); border-radius: 6px; background: rgb(21 24 27 / 88%); color: var(--text-soft); font-size: 13px; transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease); }
.palette:hover { border-color: var(--line-strong); color: var(--text); }
.palette[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }
.swatches { display: inline-grid; grid-template-columns: repeat(4, 8px); height: 16px; overflow: hidden; border-radius: 2px; }
.swatches i { display: block; }
.tuning { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; width: 100%; }
.slider { display: grid; grid-template-columns: 76px minmax(120px, 220px) 52px; align-items: center; gap: 12px; }
.slider-label { color: var(--text-soft); font-size: 14px; }
.slider output { color: var(--text); font-size: 13px; text-align: right; }
input[type="range"] { width: 100%; height: 28px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; border: 2px solid var(--bg); border-radius: 50%; background: var(--text); appearance: none; -webkit-appearance: none; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--bg); border-radius: 50%; background: var(--text); }

/* Phone, desk and output */
.rig { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.15fr) 64px minmax(0, 1fr); align-items: center; width: 100%; }
.rig-node { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 96px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgb(17 19 21 / 88%); color: var(--text); font-size: 14px; font-weight: 600; }
.rig-node svg.icon { width: 20px; height: 20px; color: var(--text-soft); }
.rig-node small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.rig-output { border-color: var(--accent-line); }
.rig-output svg.icon { color: var(--accent); }
.rig-link { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rig-link span { color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.rig-link i { display: block; width: 100%; border-top: 1px dashed var(--line-strong); }
.shortcuts { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.shortcuts div { display: flex; align-items: center; gap: 8px; }
.shortcuts dt { display: flex; gap: 4px; }
.shortcuts dd { color: var(--text-soft); font-size: 14px; }

/* ---------- The door ---------- */
.door { position: relative; z-index: 1; padding: 280px var(--gutter) 160px; padding-block: clamp(200px, 34vh, 340px) clamp(96px, 16vh, 180px); background: linear-gradient(rgb(var(--scrim) / 0%) 0%, rgb(var(--scrim) / 0%) 12%, rgb(var(--scrim) / 84%) 42%, rgb(var(--scrim) / 92%) 100%); }
.door-inner { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.door .section-lede { margin-bottom: 28px; }
.door .invite { width: 100%; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .roles legend { color: var(--text); font-size: 15px; font-weight: 600; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; }
.roles legend { margin-bottom: 10px; padding: 0; }
.optional { margin-left: 6px; color: var(--muted); font-weight: 400; font-size: 13px; }
.roles label { position: relative; display: inline-flex; }
.roles input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.roles label span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: rgb(21 24 27 / 88%); color: var(--text-soft); font-size: 14px; transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease); }
.roles label span::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--line-strong); border-radius: 50%; }
.roles label:hover span { border-color: var(--line-strong); color: var(--text); }
.roles input:checked + span { border-color: var(--accent); color: var(--text); }
.roles input:checked + span::before { border-color: var(--accent); background: var(--accent); }
.roles input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 32px; padding: 40px var(--gutter) calc(var(--deck-h) + 40px); border-top: 1px solid var(--line-soft); background: var(--bg); }
.footer-line { color: var(--text-soft); font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.footer-note { grid-column: 1 / -1; }

/* ---------- The deck: status and meters never scroll away ---------- */
.deck { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: minmax(200px, 1fr) minmax(320px, 520px) minmax(200px, 1fr); align-items: center; gap: 20px; height: var(--deck-h); padding: 0 var(--gutter); border-top: 1px solid var(--line-soft); background: linear-gradient(rgb(var(--scrim) / 80%), rgb(var(--scrim) / 94%)); }
.deck-status { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text-soft); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.deck[data-source="loop"] .status-dot, .deck[data-source="mic"] .status-dot { background: var(--accent); }
.deck[data-source="starting"] .status-dot { background: var(--warning); }
.deck-meters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; transition: opacity 400ms var(--ease); }
.deck[data-source="idle"] .meter i { opacity: .5; }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter span { color: var(--band); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
/* Segmented like a desk meter bridge: the fill is masked into LED cells. */
.meter i { position: relative; display: block; height: 7px; overflow: hidden; background: repeating-linear-gradient(90deg, rgb(255 255 255 / 11%) 0 5px, transparent 5px 7px); }
.meter b { position: absolute; inset: 0; background: var(--band); transform: scaleX(var(--v, 0)); transform-origin: left; -webkit-mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px); mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px); }
.meter[data-solo] span { color: var(--text); }
.meter[data-out] i { opacity: .3; }
.deck-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.deck-play { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; transition: background var(--duration) var(--ease); }
.deck-play:hover { background: var(--surface-hover); }
.deck-play svg.icon { width: 16px; height: 16px; color: var(--accent); fill: currentColor; stroke: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .running-order { background: linear-gradient(90deg, rgb(var(--scrim) / 96%) 0%, rgb(var(--scrim) / 92%) 62%, rgb(var(--scrim) / 60%) 100%); }
}
@media (max-width: 900px) {
  :root { --deck-h: 96px; --body: 16px; --gutter: 24px; }
  .deck { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 10px 12px; height: auto; min-height: var(--deck-h); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); }
  .deck-meters { grid-column: 1 / -1; grid-row: 2; }
  .deck-actions { grid-column: 2; grid-row: 1; }
  .running-order { background: rgb(var(--scrim) / 90%); }
  .rig { grid-template-columns: 1fr; gap: 0; }
  .rig-link { flex-direction: row; align-items: stretch; gap: 12px; height: 40px; margin-left: 28px; }
  .rig-link i { order: -1; width: 0; border-top: 0; border-left: 1px dashed var(--line-strong); }
  .rig-link span { align-self: center; }
  .footer { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* The title sits a proportion of the screen height below the top, so every phone ratio keeps the same balance. */
  .hero { place-items: stretch; padding-top: 128px; padding-top: clamp(96px, 16svh, 168px); padding-bottom: calc(var(--deck-h) + 18px); }
  .hero-inner { justify-content: space-between; gap: 32px; width: 100%; min-height: calc(100svh - 128px - var(--deck-h) - 18px); min-height: calc(100svh - clamp(96px, 16svh, 168px) - var(--deck-h) - 18px); }
  .hero-top, .hero-bottom { position: relative; }
  .hero-top::before, .hero-bottom::before { content: ""; position: absolute; z-index: -1; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); pointer-events: none; }
  .hero-top::before { top: -44px; bottom: -44px; background: linear-gradient(rgb(var(--scrim) / 0%) 0%, rgb(var(--scrim) / 80%) 26%, rgb(var(--scrim) / 80%) 74%, rgb(var(--scrim) / 0%) 100%); }
  .hero-bottom::before { top: -48px; bottom: calc((var(--deck-h) + 18px) * -1); background: linear-gradient(rgb(var(--scrim) / 0%) 0%, rgb(var(--scrim) / 84%) 26%, rgb(var(--scrim) / 88%) 100%); }
  .hero::before, .hero::after { display: none; }
  :root { --gutter: 16px; }
  .status-more { display: none; }
  .topbar { flex-wrap: nowrap; gap: 10px; padding-top: 14px; }
  .hero-title { max-width: 340px; }
  .hero-title { margin-bottom: 14px; }
  .large { min-height: 48px; }
  .soundcheck { gap: 10px; }
  .invite-hero { margin-top: 18px; }
  .invite-status:empty { min-height: 0; }
  .topnav .text-link { display: none; }
  .hero-lede { margin-bottom: 20px; font-size: 16px; }
  .soundcheck-actions { flex-direction: column; width: 100%; }
  .soundcheck-actions .large { width: 100%; }
  .invite-row { flex-direction: column; }
  .order-columns { grid-template-columns: 48px minmax(0, 1fr); }
  .cue { grid-template-columns: 48px minmax(0, 1fr); row-gap: 16px; }
  .cue-meta, .cue-body { display: contents; }
  .cue-number { grid-column: 1; grid-row: 1; align-self: start; margin-top: 8px; }
  .cue-number::before { margin-left: 0; }
  .cue-title { grid-column: 2; grid-row: 1; }
  .cue-state { grid-column: 2; grid-row: 2; white-space: nowrap; }
  .cue-body > * { grid-column: 2; }
  .cue-body > button { justify-self: start; }
  .band { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "name range mute" "meter meter meter" "drive drive drive"; row-gap: 10px; }
  .world { grid-template-columns: 14px minmax(0, 1fr); }
  .world-kind { display: none; }
  .slider { grid-template-columns: 64px minmax(0, 1fr) 48px; width: 100%; }
  .tune-row { grid-template-columns: 1fr; gap: 8px; }
  .palettes, .effects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deck-status { font-size: 11px; }
  .deck-skip { display: none; }
}
@media (max-width: 640px) and (max-height: 700px) {
  .hero { padding-top: 92px; padding-top: clamp(84px, 13svh, 110px); }
  .hero-inner { gap: 20px; min-height: calc(100svh - 92px - var(--deck-h) - 18px); min-height: calc(100svh - clamp(84px, 13svh, 110px) - var(--deck-h) - 18px); }
  .hero-title { font-size: 2.9rem; }
  .soundcheck-slot { min-height: 30px; }
}
@media (max-width: 400px) {
  .topbar { gap: 8px; }
  .brand-word { font-size: 22px; }
  .beta-tag { padding: 3px 6px; letter-spacing: .04em; }
}
/* Landscape phones: title on the left, the soundcheck and invite on the right, and a one-row deck. */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --deck-h: 52px; }
  .deck { grid-template-columns: minmax(0, 1fr) minmax(200px, 360px) auto; grid-template-rows: auto; height: var(--deck-h); min-height: 0; padding: 0 var(--gutter); }
  .deck-meters { grid-column: auto; grid-row: auto; gap: 10px; }
  .deck-actions { grid-column: auto; grid-row: auto; }
  .status-more { display: none; }
  .hero { padding: 68px var(--gutter) calc(var(--deck-h) + 16px); text-align: left; }
  .hero::before, .hero::after { background: linear-gradient(90deg, rgb(var(--scrim) / 82%) 0%, rgb(var(--scrim) / 62%) 50%, rgb(var(--scrim) / 82%) 100%); }
  .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; width: 100%; max-width: 1000px; }
  .hero-top { align-items: flex-start; flex: 1 1 auto; }
  .hero-bottom { flex: 0 0 min(48%, 400px); }
  .hero-title { margin-bottom: 12px; font-size: 3.5rem; font-size: clamp(2.25rem, 11vh, 3.5rem); }
  .hero-lede { margin-bottom: 0; font-size: 16px; }
  .soundcheck { width: 100%; gap: 8px; align-items: stretch; }
  .soundcheck-actions { width: 100%; }
  .soundcheck-actions .large { width: 100%; }
  .soundcheck-slot { place-items: start; }
  .invite-hero { margin-top: 14px; }
  .invite-status:empty { min-height: 0; }
}
@media (pointer: coarse) {
  .band-mute, .palette, .effect, .quiet-button, .deck-play, .icon-button { min-height: 44px; }
  .icon-button { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title .split::before, .hero-title .split::after, .brand-word span { display: none; }
  .stage canvas { transition-duration: 200ms; }
}
