/* Railroad home page. Self-contained: fonts, logo and tokens live here so the console stylesheet is not loaded.
   One theme (deep navy), one accent (electric blue), one radius system: 28 outer shell, 20 inner core, pills for controls. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root { color-scheme: dark; }
body.site {
  --bg: #050b18; --bg-2: #0a1630; --ink: #eef3fd; --ink-2: #b4c2de; --ink-3: #8c9dbf;
  --line: rgb(255 255 255 / .1); --line-2: rgb(255 255 255 / .16); --glass: rgb(255 255 255 / .05);
  --accent: #6f9bff; --accent-ink: #061029;
  --r-shell: 28px; --r-core: 20px;
  --ease: cubic-bezier(.32, .72, 0, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: #050b18; -webkit-text-size-adjust: 100%; }
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site :where(h1, h2, h3, p, ul, dl, dd, figure) { margin: 0; padding: 0; }
.site ul { list-style: none; }
.site img { display: block; max-width: 100%; height: auto; }
.site :where(a) { color: inherit; }
.site ::selection { background: var(--accent); color: var(--accent-ink); }
.site :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #061029; padding: 10px 16px; border-radius: 99px; } .skip:focus { left: 12px; }
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* film grain: fixed, non-interactive, never on scrolling content */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* logo (shared mark) */
.rr-logo { width: 32px; height: 32px; flex: none; --logo-rail: #fff; --logo-tie: #8fb0ff; }
.rl-rail { fill: none; stroke: var(--logo-rail); stroke-width: 3.6; } .rl-tie { stroke: var(--logo-tie); stroke-width: 3; stroke-linecap: round; }
.rl-train { opacity: 0; } .rl-spin { transform-box: view-box; transform-origin: 32px 32px; animation: logo-in 1.4s .2s var(--ease-out) both; }
@keyframes logo-in { from { transform: rotate(-200deg); opacity: 0; } }

/* ---------- buttons: pill with a nested icon island */
.btn { --h: 52px; display: inline-flex; align-items: center; gap: 14px; height: var(--h); padding: 0 8px 0 26px; border-radius: 99px; background: #f4f7ff; color: #061029; text-decoration: none; font-weight: 650; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .5) inset, 0 10px 30px -8px rgb(111 155 255 / .55); transition: transform .6s var(--ease), box-shadow .6s var(--ease), background .4s var(--ease); }
.btn:hover { background: #fff; box-shadow: 0 0 0 1px #fff inset, 0 16px 44px -8px rgb(111 155 255 / .75); } .btn:active { transform: scale(.98); }
.btn-i { width: calc(var(--h) - 16px); height: calc(var(--h) - 16px); border-radius: 50%; background: #061029; color: #fff; display: grid; place-items: center; transition: transform .6s var(--ease), background .4s var(--ease); }
.btn-i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn-i { transform: translate(2px, -1px) scale(1.06); background: #1b3a8f; }
.btn-lg { --h: 60px; padding-left: 30px; font-size: 1.05rem; } .btn-sm { --h: 42px; padding-left: 18px; gap: 10px; font-size: .94rem; box-shadow: none; }
.btn-text { color: var(--ink-2); text-decoration: none; font-weight: 560; padding: 12px 6px; border-bottom: 1px solid transparent; transition: color .4s var(--ease), border-color .4s var(--ease); } .btn-text:hover { color: #fff; border-bottom-color: var(--line-2); }

/* ---------- nav: floating glass island */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding-inline: 16px; pointer-events: none; }
.nav-pill { pointer-events: auto; display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); padding: 8px 8px 8px 20px; border-radius: 99px; background: rgb(10 20 44 / .62); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / .08), 0 20px 50px -20px rgb(0 0 0 / .6); animation: drop .9s .1s var(--ease-out) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-24px); } }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: -.02em; font-size: 1.08rem; color: #fff; } .nav-brand .rr-logo { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2px; } .nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 520; font-size: .93rem; padding: 8px 14px; border-radius: 99px; transition: background .4s var(--ease), color .4s var(--ease); } .nav-links a:hover { color: #fff; background: var(--glass); }

/* ---------- double bezel */
.bz { padding: 8px; border-radius: var(--r-shell); background: var(--glass); box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px rgb(0 0 0 / .7); }
.bz-in { border-radius: var(--r-core); overflow: hidden; background: #f3f5f8; box-shadow: inset 0 1px 1px rgb(255 255 255 / .6), 0 0 0 1px rgb(0 0 0 / .25); }
.bz-in img { width: 100%; }
.bz-lg { padding: 10px; border-radius: 32px; } .bz-lg .bz-in { border-radius: 23px; }
.bz-phone { border-radius: 38px; padding: 7px; } .bz-phone .bz-in { border-radius: 31px; background: #101c36; }
.bz-paper .bz-in { background: #fff; }

/* ---------- hero */
.hero { position: relative; padding-top: clamp(120px, 16vh, 168px); overflow: clip; isolation: isolate; }
.glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.glow-a { width: 900px; height: 900px; right: -280px; top: -260px; background: radial-gradient(circle, rgb(66 110 235 / .42), transparent 62%); }
.glow-b { width: 760px; height: 760px; left: -300px; top: 380px; background: radial-gradient(circle, rgb(56 189 190 / .14), transparent 64%); }
.hero-grid { position: relative; }
.hero-poster { position: absolute; right: 3%; top: -10px; width: clamp(220px, 23vw, 330px); transform: rotate(5deg); animation: poster-in 1.4s .7s var(--ease-out) both; box-shadow: 0 0 0 1px var(--line), 0 50px 100px -20px rgb(0 0 0 / .8), 0 0 80px -10px rgb(111 155 255 / .35); }
@keyframes poster-in { from { opacity: 0; transform: translateY(60px) rotate(11deg); } }
.hero-copy { max-width: 880px; }
.hero h1 { font-size: clamp(2.9rem, 7.2vw, 6.2rem); line-height: .98; letter-spacing: -.05em; font-weight: 700; text-wrap: balance;
  background: none; color: #fff; animation: rise 1.1s .25s var(--ease-out) both; }
.lede { margin-top: 28px; max-width: 30em; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--ink-2); animation: rise 1.1s .4s var(--ease-out) both; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 40px; animation: rise 1.1s .55s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } }

.stage { position: relative; margin-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 90px); perspective: 2200px; }
.stage-dash { width: min(100%, 1120px); margin-left: auto; transform-origin: 50% 100%; transform: rotateX(7deg); animation: stage-in 1.5s .5s var(--ease-out) both; }
.stage-phone { position: absolute; left: clamp(0px, 2vw, 40px); bottom: 0; width: clamp(150px, 20vw, 248px); animation: phone-in 1.4s .8s var(--ease-out) both; transform: rotate(-3deg); box-shadow: 0 0 0 1px var(--line), 0 50px 90px -20px rgb(0 0 0 / .8); }
.toast { position: absolute; right: clamp(8px, 2vw, 36px); top: clamp(28px, 6vw, 80px); display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: 99px; background: rgb(8 16 36 / .78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px var(--line-2), inset 0 1px 0 rgb(255 255 255 / .1), 0 24px 50px -16px rgb(0 0 0 / .7); animation: toast-in 1.2s 1.5s var(--ease-out) both; font-size: .92rem; line-height: 1.25; }
.toast b { display: block; font-weight: 650; } .toast small { color: var(--ink-2); font-size: .8rem; }
.toast-ic { width: 34px; height: 34px; border-radius: 50%; background: #1d9b62; display: grid; place-items: center; } .toast-ic svg, .tick svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.demo-note { margin-top: 18px; text-align: right; font-size: .8rem; color: var(--ink-3); }
@keyframes stage-in { from { opacity: 0; transform: rotateX(22deg) translateY(90px); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(80px) rotate(-8deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.94); } }
@supports (animation-timeline: view()) {
  .stage-dash { animation: stage-in 1.5s .5s var(--ease-out) both, flatten linear both; animation-timeline: auto, view(); animation-range: normal, entry 40% cover 45%; }
  @keyframes flatten { from { transform: rotateX(7deg); } to { transform: rotateX(0deg); } }
}

/* ---------- duty belt (the page's one marquee) */
.belt { overflow: hidden; border-block: 1px solid var(--line); background: rgb(255 255 255 / .02); padding-block: 26px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.belt-track { display: flex; width: max-content; animation: belt 60s linear infinite; }
.belt ul { display: flex; gap: 14px; padding-right: 14px; }
.belt li { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; padding: 10px 22px 10px 12px; border-radius: 99px; background: var(--glass); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-weight: 520; }
.tick { width: 24px; height: 24px; border-radius: 50%; background: #1d9b62; display: grid; place-items: center; flex: none; } .tick svg { width: 13px; height: 13px; }
@keyframes belt { to { transform: translateX(-50%); } }
.belt:hover .belt-track { animation-play-state: paused; }

/* ---------- sections */
.sec { padding-block: clamp(80px, 10vw, 150px); position: relative; }
.h-big { font-size: clamp(2rem, 5vw, 4.1rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; max-width: 18em; color: #fff; text-wrap: balance; }
.h-mid { font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 650; color: #fff; max-width: 14em; text-wrap: balance; }

/* problems: paper vs Railroad */
.ledger { margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line-2); }
.ledger li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(16px, 5vw, 80px); align-items: baseline; padding-block: clamp(26px, 3.4vw, 44px); border-bottom: 1px solid var(--line); }
.was { font-size: clamp(1.25rem, 2.2vw, 1.9rem); line-height: 1.2; letter-spacing: -.03em; color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: rgb(140 157 191 / .55); transition: color .6s var(--ease); }
.now { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink); max-width: 30em; }
.ledger li:hover .was { color: var(--ink-2); }

/* how it works: sticky stack */
.sec-how { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 86%, transparent); }
.stack { margin-top: clamp(56px, 8vw, 100px); display: grid; gap: 28px; }
.panel { position: sticky; top: calc(104px + var(--i, 0) * 18px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: min(620px, 74dvh);
  padding: clamp(28px, 4vw, 56px); border-radius: 36px; background: linear-gradient(160deg, rgb(255 255 255 / .075), rgb(255 255 255 / .025)), #0b1733; box-shadow: 0 0 0 1px var(--line-2), inset 0 1px 0 rgb(255 255 255 / .1), 0 -30px 60px -30px rgb(0 0 0 / .6); transform-origin: 50% 0; }
.panel:nth-child(2) { --i: 1; } .panel:nth-child(3) { --i: 2; } .panel:nth-child(4) { --i: 3; }
.panel h3 { font-size: clamp(3rem, 7vw, 6rem); line-height: .9; letter-spacing: -.06em; font-weight: 700; color: var(--accent); margin-bottom: 22px; }
.panel-lead { font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.15; letter-spacing: -.03em; color: #fff; font-weight: 600; margin-bottom: 14px; }
.panel-copy p:last-child { color: var(--ink-2); max-width: 28em; }
.panel-vis { position: relative; min-width: 0; }
.vis-poster { display: grid; grid-template-columns: 1fr; place-items: center; }
.vis-qr { width: 100%; } .vis-sheet { position: absolute; right: -2%; bottom: -14%; width: 38%; transform: rotate(4deg); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -10px rgb(0 0 0 / .7); }
.vis-phones { display: flex; gap: clamp(14px, 3vw, 36px); justify-content: center; align-items: flex-start; }
.vis-phones .bz-phone { width: min(44%, 250px); } .vis-phones .bz-phone:last-child { margin-top: 56px; }
.vis-report { width: min(100%, 560px); margin-inline: auto; transform: rotate(-1.5deg); }
@supports (animation-timeline: view()) {
  .panel:not(:last-child) { animation: recede linear both; animation-timeline: view(); animation-range: exit-crossing 0% exit 100%; }
  @keyframes recede { to { transform: scale(.94); opacity: .55; } }
}

/* bento */
.bento { margin-top: clamp(48px, 7vw, 90px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.cell { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(24px, 3vw, 40px); background: linear-gradient(170deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02)), #0a1530; box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / .08); display: flex; flex-direction: column; gap: 22px; transition: box-shadow .6s var(--ease), transform .6s var(--ease); }
.cell:hover { box-shadow: 0 0 0 1px var(--line-2), inset 0 1px 0 rgb(255 255 255 / .12), 0 30px 70px -30px rgb(111 155 255 / .35); }
.cell h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.03em; line-height: 1.1; font-weight: 650; color: #fff; margin-bottom: 10px; }
.cell p { color: var(--ink-2); font-size: 1rem; max-width: 30em; }
.cell-sched { grid-column: 1 / span 7; grid-row: span 2; } .cell-dept { grid-column: 8 / span 5; } .cell-fair { grid-column: 8 / span 5; }
.cell-sec, .cell-swap, .cell-team { grid-column: span 4; min-height: 240px; }
.cell-img { margin-top: auto; margin-inline: calc(-1 * clamp(24px, 3vw, 40px)); margin-bottom: calc(-1 * clamp(24px, 3vw, 40px)); padding: 0 0 0 clamp(24px, 3vw, 40px); }
.cell-img .bz { border-radius: 28px 0 0 0; box-shadow: none; padding: 8px 0 0 8px; } .cell-img .bz-in { border-radius: 20px 0 0 0; }
.depts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.depts li { padding: 9px 18px; border-radius: 99px; font-weight: 600; font-size: .92rem; color: #fff; }
.d1 { background: #0b7e82; } .d2 { background: #6a43bf; } .d3 { background: #ad225c; } .d4 { background: #3947c4; } .d5 { background: #2d6d9e; }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: auto; }
.counts div { padding: 16px 18px; border-radius: 20px; background: rgb(255 255 255 / .05); box-shadow: 0 0 0 1px var(--line); }
.counts dt { font-size: .82rem; color: var(--ink-3); } .counts dd { font-size: 2.2rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; }
.cell-swap { background: linear-gradient(150deg, #2a56d6, #1a3590 70%), #1a3590; box-shadow: 0 0 0 1px rgb(255 255 255 / .2), inset 0 1px 0 rgb(255 255 255 / .25); } .cell-swap p { color: #dce6ff; }
.cell-sec, .cell-team { justify-content: flex-end; }

/* business day */
.sec-day { background: radial-gradient(900px 500px at 85% 40%, rgb(66 110 235 / .22), transparent 70%); }
.day-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.day-copy p { margin-top: 26px; color: var(--ink-2); font-size: 1.15rem; max-width: 24em; }
.day-in { background: linear-gradient(170deg, #12224a, #0b1733); color: var(--ink); padding: clamp(28px, 4vw, 52px); box-shadow: inset 0 1px 1px rgb(255 255 255 / .15), 0 0 0 1px rgb(0 0 0 / .3); }
.day-clock { display: flex; flex-direction: column; gap: 2px; margin-bottom: 28px; } .day-clock output { font-size: clamp(3.4rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -.05em; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; } .day-clock span { color: var(--ink-2); }
#day-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #4a3a9a 0 20.8%, #2a58b8 20.8% 100%); outline-offset: 10px; cursor: grab; touch-action: pan-y; }
#day-range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgb(255 255 255 / .18), 0 8px 20px rgb(0 0 0 / .5); transition: transform .4s var(--ease); cursor: grab; } #day-range:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
#day-range::-moz-range-thumb { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgb(255 255 255 / .18), 0 8px 20px rgb(0 0 0 / .5); }
.day-axis { display: flex; justify-content: space-between; margin-top: 14px; font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.day-result { margin-top: 32px; padding: 22px 24px; border-radius: 22px; background: rgb(255 255 255 / .06); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 4px; }
.day-label { font-size: .85rem; color: var(--ink-3); } .day-result strong { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.03em; line-height: 1.1; color: #fff; transition: color .4s var(--ease); } .day-result small { color: var(--ink-2); font-size: .95rem; }
.day-result.is-same strong { color: #9fc0ff; }

/* roles */
.roles { margin-top: clamp(48px, 7vw, 90px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.roles article { padding-top: 26px; border-top: 1px solid var(--line-2); } .roles h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.03em; font-weight: 650; color: #fff; margin-bottom: 12px; } .roles p { color: var(--ink-2); max-width: 22em; }

/* close + footer */
.close { position: relative; overflow: clip; isolation: isolate; padding-block: clamp(110px, 16vw, 220px); text-align: center; border-top: 1px solid var(--line); }
.glow-c { width: 1000px; height: 600px; left: 50%; bottom: -320px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgb(66 110 235 / .5), transparent 65%); }
.close h2 { font-size: clamp(3rem, 8.4vw, 7.4rem); line-height: .95; letter-spacing: -.055em; font-weight: 700; color: #fff; text-wrap: balance; }
.close p { margin: 26px auto 40px; color: var(--ink-2); font-size: 1.25rem; max-width: 26em; } .close small { display: block; margin-top: 28px; color: var(--ink-3); font-size: .9rem; }
.foot { border-top: 1px solid var(--line); padding-block: 40px; background: #040913; }
.foot-in { display: flex; align-items: center; gap: 20px 44px; flex-wrap: wrap; } .foot p { flex: 1 1 260px; color: var(--ink-3); font-size: .92rem; } .foot nav { display: flex; gap: 26px; } .foot nav a { color: var(--ink-2); text-decoration: none; font-size: .94rem; } .foot nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }

/* scroll reveal: visible unless JS confirms it can reveal */
.js .rv { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }
.js .ledger li.rv:nth-child(2), .js .bento .rv:nth-child(2) { transition-delay: .06s; } .js .ledger li.rv:nth-child(3), .js .bento .rv:nth-child(3) { transition-delay: .12s; } .js .bento .rv:nth-child(n+4) { transition-delay: .1s; }

/* ---------- responsive */
@media (max-width: 1000px) {
  .nav-links, .hero-poster { display: none; }
  .panel { grid-template-columns: 1fr; position: relative; top: 0; min-height: 0; } .panel h3 { margin-bottom: 14px; }
  .vis-sheet { width: 34%; bottom: -8%; } .vis-phones .bz-phone:last-child { margin-top: 28px; }
  .bento { grid-template-columns: 1fr; } .cell-sched, .cell-dept, .cell-fair, .cell-sec, .cell-swap, .cell-team { grid-column: auto; grid-row: auto; min-height: 0; }
  .day-grid { grid-template-columns: 1fr; } .roles { grid-template-columns: 1fr; }
  .ledger li { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  body.site { font-size: 16px; }
  .btn-lg { --h: 56px; padding-left: 24px; font-size: 1rem; } .cta-row { gap: 10px 20px; }
  .stage { margin-top: 44px; } .stage-dash { transform: none; animation: stage-in 1.2s .4s var(--ease-out) both; width: 100%; } .stage-phone { width: 34%; left: 4px; transform: rotate(-3deg); }
  .toast { display: none; }
  .counts { grid-template-columns: 1fr 1fr 1fr; } .counts dd { font-size: 1.7rem; } .counts div { padding: 12px; }
  .belt li { font-size: .92rem; }
  .panel { padding: 22px; border-radius: 28px; } .vis-sheet { display: none; }
  .day-axis span:nth-child(3), .day-axis span:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .belt-track { animation: none; flex-wrap: wrap; width: auto; } .belt ul[aria-hidden] { display: none; } .belt ul { flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); }
  .nav-pill, .hero h1, .lede, .cta-row, .stage-dash, .stage-phone, .hero-poster, .toast, .rl-spin, .panel { animation: none !important; }
  .stage-dash { transform: none; } .js .rv { opacity: 1; transform: none; transition: none; }
}
@media (prefers-reduced-transparency: reduce) { .nav-pill, .toast { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0b1733; } .grain { display: none; } }

/* Public demo banner (DEMO_MODE only) */
.demo-banner { position: fixed; z-index: 90; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); padding: 8px 14px; border-radius: 999px; background: #101113; color: #eceded; font-size: .8rem; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.demo-banner b { background: #c6f432; color: #101113; border-radius: 999px; padding: 2px 9px; font-weight: 700; letter-spacing: .02em; }
.demo-banner a { color: #c6f432; text-decoration: underline; white-space: nowrap; }
@media (max-width: 560px) { .demo-banner span { display: none; } }
.demo-form { display: inline; margin: 0; }
.demo-form button.btn { font: inherit; cursor: pointer; }
