:root {
  --ink: #05070a;
  --lampblack: #0e1216;
  --wet: #1c2228;
  --lifted: #252c34;
  --rule: #2e3840;
  --rule-light: rgba(240, 239, 234, 0.24);
  --paper: #f0efea;
  --steel-light: #c8cdd3;
  --steel: #8e959c;
  --lamp: #ffd400;
  --lamp-hot: #e6bf00;
  --error: #ff7b61;
  --display: "Russo One", "Arial Narrow", sans-serif;
  --body: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --inset: clamp(20px, 6vw, 76px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

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

html {
  background: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: #2e3840 transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #2e3840;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 18px/1.55 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--lifted);
  color: var(--paper);
}

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

[hidden] {
  display: none !important;
}

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

/* Fixed WebGL atmosphere + subtle film texture */
#yard {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Claude's static fallback. Reduced motion draws one lamp frame on #yard (app.js); when
   that frame cannot be drawn (no WebGL: data-yard="off", or JavaScript off: neither
   html.is-enhanced nor html.is-reduced) the page gets this single CSS light instead. */
html[data-yard="off"] #yard,
html:not(.is-enhanced):not(.is-reduced) #yard {
  display: none;
}

html[data-yard="off"] body,
html:not(.is-enhanced):not(.is-reduced) body {
  background: linear-gradient(180deg, #05070a 0%, #101720 44%, #182330 62%, #0b0e12 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("assets/grain.png");
  background-size: 240px 240px;
}

/* Skip link & minimal masthead */
.skip {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  top: max(12px, env(safe-area-inset-top));
  z-index: 30;
  transform: translateY(-180%);
  padding: 10px 14px;
  background: var(--lampblack);
  border: 1px solid var(--rule);
  color: var(--paper);
  font: 500 14px/1 var(--body);
  text-decoration: none;
  transition: transform 180ms var(--ease-out);
}

.skip:focus {
  transform: none;
}

.mast {
  position: fixed;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 8px max(var(--inset), env(safe-area-inset-right)) 0 max(var(--inset), env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms var(--ease-out), visibility 280ms var(--ease-out);
}

html.mast-visible .mast {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mast-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: -6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms var(--ease-out), visibility 320ms var(--ease-out);
}

html.brand-revealed .mast-brand {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mast-brand img {
  display: block;
  width: 32px;
  height: auto;
}

.join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rule-light);
  background: rgba(14, 18, 22, 0.72);
  color: var(--paper);
  font: 500 12px/1 var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 220ms var(--ease-out), visibility 220ms var(--ease-out), border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .join:hover {
    border-color: var(--paper);
    background: rgba(28, 34, 40, 0.9);
  }
}

html.list-live .join {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Shared typography & solid structural rules */
main {
  position: relative;
  z-index: 2;
  overflow-x: clip;
  transition: opacity 200ms var(--ease-out);
}

html.is-jumping main {
  opacity: 0;
}

.solid-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--rule-light);
  transform-origin: left center;
}

.display {
  margin: 0;
  color: var(--paper);
  font: 400 clamp(52px, 8.4vw, 128px)/0.9 var(--display);
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(5, 7, 10, 0.42);
}

.display-clock {
  font-size: clamp(64px, 11.5vw, 160px);
  line-height: 0.88;
}

.display-bay {
  margin-top: 0;
  font-size: clamp(44px, 8.8vw, 128px);
  line-height: 0.9;
  letter-spacing: 0.015em;
  text-shadow: 0 8px 34px rgba(5, 7, 10, 0.55);
}

.tagline {
  margin: 0;
  color: var(--paper);
  font: 400 12px/1.15 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lede {
  max-width: 38ch;
  margin: 14px 0 0;
  color: var(--steel-light);
  font: 400 clamp(16px, 1.4vw, 19px)/1.55 var(--body);
}

.prose-line {
  margin: 0;
  max-width: 38ch;
  color: var(--paper);
  font: 400 clamp(20px, 2.25vw, 31px)/1.36 var(--body);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(5, 7, 10, 0.52);
  text-wrap: pretty;
}

.prose-strong {
  font-weight: 500;
}

/* Pre-JS flash guard */
html.is-enhanced:not(.js-ready) .dawn-lines,
html.is-enhanced:not(.js-ready) .shift-walk,
html.is-enhanced:not(.js-ready) .shift-closer,
html.is-enhanced:not(.js-ready) .dayend-phase-b,
html.is-enhanced:not(.js-ready) .clock-b,
html.is-enhanced:not(.js-ready) .turn-phase-b,
html.is-enhanced:not(.js-ready) .rovek-standard {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Shared Pinned Beat Stage
   ========================================================================== */

.beat {
  position: relative;
}

.beat-stage {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  padding: max(84px, calc(env(safe-area-inset-top) + 68px)) max(var(--inset), env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(var(--inset), env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   5:00 AM (Tight pinned pre-dawn opener -> headlight blast)
   ========================================================================== */

.dawn-stage {
  display: grid;
  align-items: center;
}

.dawn-open,
.dawn-lines {
  grid-area: 1 / 1;
}

.dawn-open {
  max-width: 780px;
}

/* Opening fade runs on first paint, not when the CDN modules arrive. */
@keyframes dawn-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.is-enhanced .dawn-open-anim {
    animation: dawn-in 750ms cubic-bezier(0.215, 0.61, 0.355, 1) both;
  }
}

.dawn-sub {
  margin: 18px 0 0;
  color: var(--steel-light);
  font: 400 clamp(20px, 2.4vw, 32px)/1.25 var(--body);
  letter-spacing: -0.01em;
}

.dawn-lines {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3.2vh, 36px);
  max-width: 720px;
}

.dawn-cue {
  position: absolute;
  left: max(var(--inset), env(safe-area-inset-left));
  bottom: max(28px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--steel);
  font: 600 11px/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}

.dawn-cue-arrow {
  font-size: 13px;
  line-height: 1;
}

/* ==========================================================================
   6:00 AM (Tight pinned East sunrise shutter-unmask)
   ========================================================================== */

.world-stage {
  justify-content: center;
}

.band-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.band-clock {
  grid-column: 1 / 5;
}

.band-copy,
.world-ledger {
  grid-column: 5 / 13;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.8vh, 30px);
}

.band-grid-flip .band-copy,
.band-grid-flip .world-ledger {
  grid-column: 1 / 9;
}

.band-grid-flip .band-clock-right {
  grid-column: 9 / 13;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  will-change: transform;
}

.world-row {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vh, 18px);
}

.world-mask {
  overflow: hidden;
  padding-bottom: 4px;
}

.world-line,
.world-closer-line {
  text-shadow: none;
  will-change: transform, opacity;
}

.world-rule {
  background: var(--rule-light);
  transform-origin: left center;
}

.world-closer {
  padding-top: clamp(6px, 1.2vh, 14px);
}

.world-closer-line {
  font-size: clamp(22px, 2.55vw, 35px);
  line-height: 1.3;
  max-width: 34ch;
}

/* ==========================================================================
   7:00 AM: Arrival -> Walk the Job (stop-by-stop rail) -> First Hour
   ========================================================================== */

.shift-stage {
  --walk-pad: clamp(22px, 4.2vh, 44px);
  justify-content: center;
  gap: clamp(24px, 5vh, 56px);
}

.shift-head {
  display: flex;
  align-items: flex-end;
}

/* Arrival lines and the walk share one cell; the choreography hands one to the other. */
.shift-body {
  display: grid;
  align-items: center;
}

.shift-arrive,
.shift-walk {
  grid-area: 1 / 1;
}

.shift-arrive {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.8vh, 30px);
}

.shift-line {
  will-change: transform, opacity;
}

.shift-walk {
  margin-left: calc(var(--inset) * -1);
  margin-right: calc(var(--inset) * -1);
  width: calc(100% + var(--inset) * 2);
  overflow: hidden;
}

.walk-rule {
  background: var(--rule-light);
  transform-origin: left center;
}

.shift-rail {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: clamp(64px, 9vw, 144px);
  margin: 0;
  padding: var(--walk-pad) clamp(18vw, 24vw, 30vw) var(--walk-pad) var(--inset);
  list-style: none;
  will-change: transform;
}

.walk-stop {
  flex: none;
}

html.is-enhanced .walk-stop {
  will-change: opacity;
}

.walk-word {
  position: relative;
  margin: 0;
  color: var(--paper);
  font: 400 clamp(50px, 8.2vw, 122px)/0.92 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 4px 24px rgba(5, 7, 10, 0.35);
}

/* A survey-stake tick on the top rule marks each stop on the walk. */
.walk-word::before {
  content: "";
  position: absolute;
  left: 0.06em;
  top: calc(var(--walk-pad) * -1);
  width: 1px;
  height: clamp(10px, 1.6vh, 16px);
  background: var(--paper);
}

.shift-closer {
  will-change: transform, opacity;
}

/* ==========================================================================
   2:30 PM -> 6:30 PM (Mechanical masked clock roll + sunset transition)
   ========================================================================== */

.dayend-stage {
  justify-content: center;
}

.dayend-grid {
  align-items: center;
}

.clock-aperture {
  display: grid;
  overflow: hidden;
  padding: 4px 0;
}

.clock-roll {
  grid-area: 1 / 1;
  text-shadow: none;
  will-change: transform, opacity;
}

.clock-b {
  pointer-events: none;
}

.dayend-phases {
  grid-column: 5 / 13;
  display: grid;
  align-items: center;
}

.dayend-phase {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.8vh, 30px);
}

/* ==========================================================================
   AFTER DARK: Scrubbed Horizon Crack (DAY IN, / DAY OUT. -> Thesis Card)
   ========================================================================== */

.turn-stage {
  justify-content: center;
  align-items: center;
}

.turn-grid {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.turn-phase {
  grid-area: 1 / 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.turn-split {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.turn-mask {
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: center;
}

.turn-mask-top {
  padding-bottom: clamp(10px, 1.8vh, 20px);
}

.turn-mask-bot {
  padding-top: clamp(10px, 1.8vh, 20px);
}

.turn-word {
  font-size: clamp(52px, 9.8vw, 144px);
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-shadow: none;
  will-change: transform;
}

.turn-word-top {
  padding-right: 0.12em;
}

.turn-word-bot {
  padding-left: 0.14em;
}

.turn-horizon {
  background: var(--paper);
  opacity: 0.42;
  transform-origin: center center;
}

.turn-pair {
  margin-top: clamp(28px, 5vh, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 40px);
}

.turn-pair-item {
  margin: 0;
  color: var(--steel-light);
  font: 400 clamp(17px, 1.85vw, 24px)/1.35 var(--body);
  letter-spacing: -0.008em;
}

.turn-pair-div {
  display: block;
  width: 1px;
  height: 20px;
  background: var(--rule-light);
  flex: none;
}

.turn-phase-b {
  width: min(840px, 100%);
}

.turn-thesis-rule {
  background: var(--rule-light);
  transform-origin: center center;
}

.turn-thesis {
  margin: 0;
  padding: clamp(32px, 6vh, 64px) clamp(8px, 2vw, 24px);
  max-width: 28ch;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font: 400 clamp(24px, 3.3vw, 44px)/1.22 var(--body);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.turn-thesis-a {
  color: var(--steel-light);
}

.turn-thesis-b {
  color: var(--paper);
  font-weight: 500;
}

/* ==========================================================================
   Pin #2: ROVEK WORKWEAR (3D Yard Lamp Ignition -> Architectural Standard)
   ========================================================================== */

.rovek-stage {
  justify-content: center;
  align-items: center;
}

.rovek-layout {
  position: relative;
  z-index: 2;
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6.5vh, 72px);
}

.rovek-gate {
  width: 100%;
  display: flex;
  justify-content: center;
  will-change: transform, opacity;
}

.rovek-heading {
  margin: 0;
  line-height: 0;
}

.rovek-wordmark {
  width: min(520px, 78vw);
  height: auto;
  display: block;
}

.rovek-standard {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.std-top {
  display: flex;
  justify-content: flex-start;
  padding-bottom: clamp(14px, 2.2vh, 24px);
}

.std-kicker {
  margin: 0;
  color: var(--steel-light);
  font: 400 clamp(22px, 3.2vw, 44px)/1.0 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.std-beam {
  background: var(--paper);
  opacity: 0.45;
  transform-origin: left center;
}

.std-bot {
  display: flex;
  justify-content: flex-end;
  padding-top: clamp(18px, 2.8vh, 32px);
}

.std-mask {
  overflow: hidden;
  text-align: right;
}

.std-headline {
  font-size: clamp(38px, 7.6vw, 114px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-shadow: none;
  will-change: transform, opacity;
}

/* ==========================================================================
   Open Arrival & Waitlist
   ========================================================================== */

.arrival {
  position: relative;
  z-index: 2;
  background: transparent;
}

.threshold {
  display: flex;
  justify-content: center;
  padding: clamp(80px, 13vh, 148px) max(var(--inset), env(safe-area-inset-right)) clamp(40px, 6vh, 72px) max(var(--inset), env(safe-area-inset-left));
}

.threshold-inner {
  width: min(760px, 100%);
  text-align: center;
  text-wrap: balance;
}

.threshold-line {
  margin: 0;
  color: var(--paper);
  font: 400 clamp(22px, 2.7vw, 34px)/1.32 var(--body);
  letter-spacing: -0.01em;
}

.threshold-sub {
  margin: 16px 0 0;
  color: var(--steel-light);
  font: 400 clamp(17px, 1.6vw, 21px)/1.5 var(--body);
}

.bay {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-margin-top: 64px;
  padding: max(84px, calc(env(safe-area-inset-top) + 68px)) max(var(--inset), env(safe-area-inset-right)) max(40px, calc(env(safe-area-inset-bottom) + 28px)) max(var(--inset), env(safe-area-inset-left));
}

.bay-open {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bay-center {
  margin: auto 0;
  padding: clamp(48px, 9vh, 104px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bay-lede {
  margin: 18px auto 0;
  max-width: 38ch;
  color: var(--paper);
  opacity: 0.96;
  text-align: center;
  text-shadow: 0 2px 18px rgba(5, 7, 10, 0.85);
  text-wrap: balance;
}

#list-form {
  width: min(560px, 100%);
  margin: clamp(32px, 5vh, 48px) auto 0;
}

.open-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: rgba(8, 11, 15, 0.9);
  border: 1px solid rgba(240, 239, 234, 0.28);
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.open-bar:focus-within {
  border-color: rgba(240, 239, 234, 0.62);
  background: rgba(8, 11, 15, 0.98);
}

/* One focus ring, drawn around the whole bar, instead of a second ring inside it. */
.open-bar:has(input:focus-visible) {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.open-bar:has(input[aria-invalid="true"]) {
  border-color: var(--error);
}

input {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  width: 100%;
  height: 58px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font: 400 17px/1 var(--body);
}

/* Only hand the ring to the bar where :has() can draw it there. */
@supports selector(:has(*)) {
  input:focus-visible {
    outline: none;
  }
}

input::placeholder {
  color: var(--steel);
  opacity: 1;
}

input:-webkit-autofill {
  -webkit-text-fill-color: var(--paper);
  caret-color: var(--paper);
  box-shadow: 0 0 0 1000px var(--lampblack) inset;
}

.note {
  margin: 14px 0 0;
  padding: 2px 0 2px 12px;
  border-left: 2px solid var(--error);
  color: var(--paper);
  font: 400 14px/1.45 var(--body);
  text-align: left;
}

button[type="submit"] {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 36px;
  border: 0;
  background: var(--lamp);
  color: var(--lampblack);
  font: 600 13px/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out);
}

.btn-label {
  display: inline-block;
  transition: transform 140ms var(--ease-out);
}

button[type="submit"]:active .btn-label {
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  button[type="submit"]:hover {
    background: var(--lamp-hot);
  }
}

.reset-email {
  margin-top: 24px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-light);
  background: transparent;
  color: var(--steel-light);
  font: 500 12px/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .reset-email:hover {
    border-color: var(--paper);
    color: var(--paper);
  }
}

.bay-footer {
  width: 100%;
}

.bay-footer-row {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.close-mark {
  width: 160px;
  height: auto;
  display: block;
}

.aside-tagline {
  margin: 0;
  color: var(--steel-light);
  font-size: 11px;
  letter-spacing: 0.22em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) and (min-width: 961px) {
  .band-grid-flip .band-copy,
  .band-grid-flip .world-ledger {
    grid-column: 1 / 8;
  }

  .band-grid-flip .band-clock-right {
    grid-column: 8 / 13;
  }

  .band-clock {
    grid-column: 1 / 6;
  }

  .band-copy,
  .world-ledger,
  .dayend-phases {
    grid-column: 6 / 13;
  }

  .band-clock .display {
    font-size: clamp(48px, 6.4vw, 92px);
  }
}

@media (max-width: 960px) {
  .band-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .band-clock,
  .band-copy,
  .world-ledger,
  .dayend-phases,
  .band-grid-flip .band-copy,
  .band-grid-flip .world-ledger,
  .band-grid-flip .band-clock-right {
    grid-column: 1;
  }

  .band-grid-flip .band-clock-right {
    order: -1;
    text-align: left;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .prose-line {
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.42;
  }

  .world-closer-line {
    font-size: clamp(19px, 5.1vw, 24px);
  }

  .walk-word {
    font-size: clamp(34px, 9.4vw, 52px);
  }

  .shift-rail {
    gap: 56px;
  }

  .turn-word {
    font-size: clamp(44px, 12vw, 68px);
  }

  .turn-word-top,
  .turn-word-bot {
    padding-left: 0;
    padding-right: 0;
  }

  .turn-pair {
    margin-top: 24px;
    flex-direction: column;
    gap: 10px;
  }

  .turn-pair-item {
    font-size: clamp(16px, 4.4vw, 20px);
  }

  .turn-pair-div {
    width: 28px;
    height: 1px;
  }

  .turn-thesis {
    font-size: clamp(22px, 6vw, 30px);
  }

  .rovek-wordmark {
    width: min(300px, 78vw);
  }

  .rovek-layout {
    gap: 28px;
  }

  .std-kicker {
    font-size: clamp(19px, 5.2vw, 26px);
  }

  .std-bot {
    justify-content: flex-start;
  }

  .std-mask {
    text-align: left;
  }

  .std-headline {
    font-size: clamp(32px, 8.6vw, 48px);
  }

  .display-bay {
    font-size: clamp(40px, 11.5vw, 64px);
  }

  .open-bar {
    flex-direction: column;
    background: transparent;
    border: 0;
    gap: 12px;
  }

  input {
    height: 54px;
    padding: 0 16px;
    background: rgba(8, 11, 15, 0.9);
    border: 1px solid rgba(240, 239, 234, 0.28);
  }

  input:focus {
    border-color: rgba(240, 239, 234, 0.62);
    background: rgba(8, 11, 15, 0.98);
  }

  .open-bar:has(input:focus-visible) {
    outline: none;
  }

  input:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 3px;
  }

  input[aria-invalid="true"] {
    border-color: var(--error);
  }

  button[type="submit"] {
    width: 100%;
    height: 54px;
  }

  .bay-footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

@media (max-height: 540px) {
  .beat-stage {
    padding-top: 60px;
    padding-bottom: 16px;
  }

  .band-grid {
    gap: 12px;
  }

  .band-clock .display {
    font-size: clamp(34px, 5.6vw, 56px);
  }

  .dayend-phase,
  .dawn-lines,
  .world-ledger {
    gap: 8px;
  }

  .world-row {
    gap: 6px;
  }

  .prose-line,
  .world-closer-line {
    font-size: 15px;
    line-height: 1.28;
  }

  .turn-word {
    font-size: clamp(36px, 7vw, 60px);
  }

  .turn-pair {
    margin-top: 14px;
  }

  .turn-pair-item {
    font-size: 15px;
  }

  .turn-thesis {
    padding: 16px 0;
    font-size: clamp(19px, 3.2vw, 26px);
  }

  .shift-stage {
    --walk-pad: 14px;
    gap: 14px;
  }

  .shift-arrive {
    gap: 8px;
  }

  .walk-word {
    font-size: clamp(32px, 6vw, 60px);
  }

  .rovek-wordmark {
    width: min(240px, 42vw);
  }

  .rovek-layout {
    gap: 16px;
  }

  .std-kicker {
    font-size: 18px;
  }

  .std-headline {
    font-size: clamp(28px, 5.4vw, 48px);
  }

  /* Landscape phones (from Antigravity): fit the whole list bay in one short screen so
     its top rule clears the fixed R icon at the end of the page. */
  .bay {
    padding-top: 58px;
    padding-bottom: 16px;
  }

  .bay-center {
    padding: 14px 0;
  }

  .display-bay {
    font-size: clamp(32px, 6.2vw, 54px);
  }

  .bay-lede {
    margin-top: 10px;
    font-size: 15px;
  }

  #list-form {
    margin-top: 18px;
  }

  input,
  button[type="submit"] {
    height: 48px;
  }

  .bay-footer-row {
    padding-top: 12px;
  }
}

/* ==========================================================================
   Static layout: reduced motion, no JavaScript, slow-CDN fallback
   --------------------------------------------------------------------------
   The pinned choreography stacks each beat's phases in one grid cell and
   reveals them in turn. Whenever that choreography is not running
   (prefers-reduced-motion, JavaScript disabled, or app.js not arriving
   within 3.5s) the phases must sit in normal flow. Every rule here keys off
   the absence of html.is-enhanced, so one block covers all three cases.
   (Previously a media query and an html.is-reduced copy duplicated this, and
   with JavaScript off neither applied, so 5:00 AM, the 2:30/6:30 lines and
   DAY IN / DAY OUT rendered on top of each other.)
   ========================================================================== */

html:not(.is-enhanced) .mast,
html:not(.is-enhanced) .mast-brand {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Without scroll choreography a full screen per beat is dead air. Keep the
   opener full height; let the others size to their content. */
html:not(.is-enhanced) .beat:not(.beat-dawn) .beat-stage {
  min-height: 0;
  padding-top: clamp(72px, 14vh, 160px);
  padding-bottom: clamp(72px, 14vh, 160px);
}

html:not(.is-enhanced) .dawn-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
}

html:not(.is-enhanced) .dawn-cue {
  display: none;
}

/* 2:30 PM and 6:30 PM: pair each clock with its own lines instead of
   stacking both clocks beside one merged column. */
html:not(.is-enhanced) .dayend-grid {
  align-items: start;
  row-gap: clamp(56px, 9vh, 104px);
}

html:not(.is-enhanced) .dayend-grid .band-clock,
html:not(.is-enhanced) .clock-aperture,
html:not(.is-enhanced) .dayend-phases {
  display: contents;
}

html:not(.is-enhanced) .clock-a {
  grid-column: 1 / 5;
  grid-row: 1;
}

html:not(.is-enhanced) .dayend-phase-a {
  grid-column: 5 / 13;
  grid-row: 1;
}

html:not(.is-enhanced) .clock-b {
  grid-column: 1 / 5;
  grid-row: 2;
}

html:not(.is-enhanced) .dayend-phase-b {
  grid-column: 5 / 13;
  grid-row: 2;
}

html:not(.is-enhanced) .turn-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

html:not(.is-enhanced) .turn-phase {
  grid-area: auto;
}

/* 7:00 AM: arrival lines, then every stop of the walk, then the closer. Each stop
   carries its own top rule and stake tick, so the walk reads as a run of stations
   whether it lays out in three columns or one. */
html:not(.is-enhanced) .shift-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(40px, 7vh, 72px);
}

html:not(.is-enhanced) .shift-walk {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

html:not(.is-enhanced) .walk-rule {
  display: none;
}

html:not(.is-enhanced) .shift-rail {
  --walk-pad: clamp(18px, 2.6vh, 26px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vh, 52px) clamp(28px, 4vw, 56px);
  padding: 0;
}

html:not(.is-enhanced) .walk-stop {
  padding-top: var(--walk-pad);
  border-top: 1px solid var(--rule-light);
}

html:not(.is-enhanced) .walk-word {
  font-size: clamp(30px, 4vw, 56px);
  white-space: normal;
}

html:not(.is-enhanced) .rovek-layout {
  padding: 40px 0;
  gap: 40px;
}

@media (max-width: 960px) {
  html:not(.is-enhanced) .dayend-grid {
    row-gap: 24px;
  }

  html:not(.is-enhanced) .clock-a,
  html:not(.is-enhanced) .dayend-phase-a,
  html:not(.is-enhanced) .clock-b,
  html:not(.is-enhanced) .dayend-phase-b {
    grid-column: 1;
  }

  html:not(.is-enhanced) .dayend-phase-a {
    grid-row: 2;
  }

  html:not(.is-enhanced) .clock-b {
    grid-row: 3;
    margin-top: 40px;
  }

  html:not(.is-enhanced) .dayend-phase-b {
    grid-row: 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  main,
  .skip,
  .mast,
  .mast-brand,
  .join,
  .open-bar,
  button[type="submit"],
  .btn-label,
  .reset-email {
    transition: none;
  }
}
