:root {
  --bg: #0b0d11;
  --ink-pure: #ffffff;
  --ink: #eef0f3;
  --ink-soft: #9aa1ab;
  --ink-mute: #838b99;
  --charge: #2742ff;
  --charge-lift: #8d99ff;
  --warn: #ff8ba7;

  --frame: 1680px;
  --shell-pad: clamp(1.25rem, 5.6vw, 5.5rem);

  --gap-1: clamp(0.45rem, 0.9vh, 0.7rem);
  --gap-2: clamp(0.85rem, 1.7vh, 1.25rem);
  --gap-3: clamp(1.2rem, 2.4vh, 1.75rem);
  --gap-4: clamp(1.75rem, 3.5vh, 2.25rem);
  --gap-5: clamp(2.5rem, 5vh, 3.75rem);
  --bay-gap: clamp(1.5rem, 3vw, 3.25rem);
  --screen-top: clamp(6rem, 13vh, 8.5rem);
  --screen-end: clamp(4.5rem, 9vh, 6rem);
  --flow-gap: clamp(4.5rem, 10vh, 7.5rem);

  --type-xl: clamp(2.2rem, 7vw, 7.4rem);
  --type-lg: clamp(2.05rem, 4.7vw, 4.85rem);
  --type-md: clamp(1.7rem, 2.9vw, 3.05rem);
  --type-sm: clamp(1.0625rem, 1.25vw, 1.3rem);
  --type-body: clamp(1rem, 1.02vw, 1.125rem);
  --type-fine: 0.9375rem;
  --type-tag: 0.875rem;

  --radius-pill: 999px;
  --radius-card: 1.35rem;
  --radius-tile: 1.4rem;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 300;
  font-synthesis: none;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.gate {
  width: min(44rem, calc(100vw - 2.5rem));
  margin: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  overflow: visible;
}

.gate::backdrop {
  background: rgba(4, 5, 8, 0.74);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.gate-panel {
  position: relative;
  display: grid;
  gap: var(--gap-1);
  padding: clamp(1.9rem, 3.4vw, 3rem);
  border-radius: var(--radius-card);
  text-align: center;
  overflow: visible;
}

.gate-panel .measure-tight,
.gate-panel .signup-fine,
.gate-panel .signup-done { margin-inline: auto; }

.gate-panel .signup { margin-top: calc(var(--gap-4) - var(--gap-1)); }

.gate-close {
  position: absolute;
  top: clamp(0.85rem, 1.4vw, 1.2rem);
  right: clamp(0.85rem, 1.4vw, 1.2rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 1px solid rgba(238, 240, 243, 0.16);
  border-radius: 50%;
  background: rgba(238, 240, 243, 0.05);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 240ms var(--ease-soft), border-color 240ms var(--ease-soft);
}

.gate-close svg { width: 15px; height: 15px; }
.gate-close:hover { color: var(--ink-pure); border-color: rgba(238, 240, 243, 0.34); }

.gate-close:focus-visible,
.brand:focus-visible {
  outline: 1px solid var(--charge-lift);
  outline-offset: 4px;
}

.boot { display: none; }

html.js .boot {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--gap-3);
  background: var(--bg);
  transition: opacity 700ms var(--ease-soft), visibility 0s linear 700ms;
}

.boot-line {
  font-family: var(--font-mono);
  font-size: var(--type-tag);
  font-weight: 400;
  color: var(--ink-mute);
  animation: bootline 2.4s var(--ease-soft) infinite;
}

@keyframes bootline {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

html.booting { overflow: hidden; }

html.booted .boot {
  opacity: 0;
  visibility: hidden;
}

.boot-mark {
  width: clamp(68px, 8vw, 108px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 26px rgba(39, 66, 255, 0.4));
}

.boot-mark circle {
  transform-box: fill-box;
  transform-origin: center;
}

.boot-ring { animation: bootspin 1.6s linear infinite; }
.boot-halo { animation: boothalo 2.1s var(--ease-soft) infinite; }
.boot-core { animation: bootcore 1.35s var(--ease-soft) infinite; }

@keyframes bootspin {
  from { transform: rotate(-58deg); }
  to { transform: rotate(302deg); }
}

@keyframes boothalo {
  0%, 100% { opacity: 0.34; transform: scale(0.94); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

@keyframes bootcore {
  0%, 100% { transform: scale(0.82); }
  50% { transform: scale(1.1); }
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 1400ms var(--ease-soft);
}

html.stage-live #stage { opacity: 1; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(126% 90% at 56% 46%, rgba(11, 13, 17, 0) 28%, rgba(4, 5, 8, 0.92) 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='170' height='170' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
  opacity: 0.045;
}

.shell {
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.screen {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-block: var(--screen-top) var(--screen-end);
}

.screen > .shell { margin-block: auto; }

.stack > * + * { margin-top: var(--stack, var(--gap-3)); }
.stack-tight { --stack: var(--gap-2); }
.stack-loose { --stack: var(--gap-4); }

.bay {
  display: grid;
  gap: var(--bay-gap);
  align-items: center;
}

.bay-split { grid-template-columns: minmax(0, 1fr) auto; }
.bay-flip { grid-template-columns: auto minmax(0, 1fr); }
.bay-rows { grid-template-rows: auto auto; row-gap: var(--gap-3); }
.bay-end { align-items: end; }

.measure { max-width: var(--measure, 50ch); }
.measure-tight { --measure: 42ch; }
.measure-wide { --measure: 60ch; }
.hold { max-width: var(--hold, 40rem); }

.figure {
  position: relative;
  width: var(--obj);
  height: var(--obj);
}

.stack.hold { position: relative; }

.stack.hold::before {
  content: "";
  position: absolute;
  inset: -2.5rem max(-2.5rem, calc(var(--shell-pad) * -0.62));
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(238, 240, 243, 0.07);
  border-radius: var(--radius-card);
  background: linear-gradient(158deg, rgba(5, 6, 9, 0.5) 0%, rgba(5, 6, 9, 0.36) 46%, rgba(5, 6, 9, 0.46) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(64px) saturate(126%);
  -webkit-backdrop-filter: blur(64px) saturate(126%);
}

.thesis-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--bay-gap);
  align-items: start;
}

.thesis { --obj: min(52svh, 34vw); }

.thesis-row .figure { justify-self: center; }

.beats-list .beat-tile + .title-sm { margin-top: var(--gap-4); }
.beats-list .title-sm + .note { margin-top: var(--gap-1); }

.glass {
  position: relative;
  border: 1px solid rgba(238, 240, 243, 0.1);
  background: linear-gradient(158deg, rgba(238, 240, 243, 0.085) 0%, rgba(238, 240, 243, 0.022) 46%, rgba(238, 240, 243, 0.055) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 -1px 0 rgba(255, 255, 255, 0.045),
    inset 1px 0 0 rgba(255, 255, 255, 0.05),
    0 14px 40px rgba(3, 4, 7, 0.55);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  overflow: hidden;
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0) 44%);
}

.title,
.title-sm {
  color: var(--ink-pure);
  text-shadow:
    0 1px 3px rgba(4, 5, 8, 0.5),
    0 8px 30px rgba(4, 5, 8, 0.72);
}

.title {
  font-weight: 600;
  text-wrap: balance;
}

.title .word-soft,
.title .word-accent { color: inherit; }

.title-xl { font-size: var(--type-xl); line-height: 0.94; letter-spacing: -0.045em; }
.title-lg { font-size: var(--type-lg); line-height: 0.98; letter-spacing: -0.036em; }
.title-md { font-size: var(--type-md); line-height: 1.06; letter-spacing: -0.026em; }
.title-sm { font-size: var(--type-sm); line-height: 1.2; letter-spacing: -0.018em; font-weight: 500; }

.body {
  font-size: var(--type-body);
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: -0.004em;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.body-lead { font-size: var(--type-sm); line-height: 1.54; }

.note {
  font-size: var(--type-fine);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
}

.aside {
  font-size: var(--type-fine);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-mute);
}

.tag {
  font-family: var(--font-mono);
  font-size: var(--type-tag);
  font-weight: 400;
  color: var(--ink-mute);
}

.word { display: inline-block; white-space: nowrap; }
.word-soft { color: var(--ink-soft); }
.word-accent { color: var(--charge-lift); }

html.js [data-split] .char {
  display: inline-block;
  opacity: 0;
  transform: translateX(0.32em);
  transition:
    opacity 560ms var(--ease-out) calc(var(--i) * 13ms),
    transform 720ms var(--ease-out) calc(var(--i) * 13ms);
}

html.js [data-split].is-lit .char {
  opacity: 1;
  transform: translateX(0);
}

html.js [data-flow] { opacity: 0; }

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-3);
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  padding: clamp(1rem, 2.4vh, 1.7rem) var(--shell-pad) 0;
}

.masthead-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-3);
  width: 100%;
  padding: 0.5rem 0.6rem 0.5rem 0.65rem;
  border-radius: var(--radius-pill);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 2px 6px rgba(3, 4, 7, 0.13);
  opacity: 0;
  animation: fade 700ms var(--ease-out) 120ms forwards;
}

.masthead-panel .brand-word,
.masthead-panel .btn-label { white-space: nowrap; }

.masthead-panel > .masthead-cta {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}

.masthead.is-past .masthead-cta {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.5rem 1.15rem 0.5rem 0.55rem;
  border-radius: var(--radius-pill);
  transition: border-color 340ms var(--ease-soft);
}

.brand:hover { border-color: rgba(238, 240, 243, 0.2); }

.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  flex: none;
  transition: transform 700ms var(--ease-out);
}

.brand:hover .brand-mark { transform: rotate(58deg); }

.brand-word {
  position: relative;
  z-index: 1;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

.masthead-note {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: var(--type-fine);
  font-weight: 300;
  color: var(--ink-soft);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-3);
  width: fit-content;
  padding: 0.5rem 0.5rem 0.5rem 1.55rem;
  border: 1px solid rgba(238, 240, 243, 0.2);
  border-radius: var(--radius-pill);
  isolation: isolate;
  font-family: var(--font-display);
  font-size: var(--type-fine);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: none;
  cursor: pointer;
  transition: transform 170ms var(--ease-out), border-color 340ms var(--ease-soft);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--charge);
  clip-path: circle(0% at calc(100% - 1.65rem) 50%);
  transition: clip-path 560ms var(--ease-out);
}

.btn-label { position: relative; padding-block: 0.1rem; }

.btn-orb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  flex: none;
  border-radius: 50%;
  background: var(--charge);
  transition: background 340ms var(--ease-soft);
}

.btn-orb svg {
  width: 15px;
  height: 10px;
  transition: transform 380ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: rgba(141, 153, 255, 0.5); }
  .btn:hover::before { clip-path: circle(140% at calc(100% - 1.65rem) 50%); }
  .btn:hover .btn-orb { background: rgba(11, 13, 17, 0.28); }
  .btn:hover .btn-orb svg { transform: translateX(3px); }
}

.btn:active { transform: scale(0.98); }

.btn:focus-visible {
  outline: 1px solid var(--charge-lift);
  outline-offset: 4px;
}

.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"] .btn-orb svg { animation: nudge 900ms var(--ease-soft) infinite; }

.row {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.4rem, 3.4vh, 2.2rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  opacity: 0;
  animation: fade 900ms var(--ease-out) 900ms forwards;
}

.scroll-track {
  position: relative;
  display: block;
  width: 1px;
  height: 44px;
  flex: none;
  background: linear-gradient(180deg, rgba(238, 240, 243, 0) 0%, rgba(238, 240, 243, 0.16) 22%, rgba(238, 240, 243, 0.16) 78%, rgba(238, 240, 243, 0) 100%);
}

.scroll-dot {
  position: absolute;
  left: -1px;
  top: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--charge-lift);
  animation: trickle 2600ms var(--ease-soft) infinite;
}

.beats-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--bay-gap);
}

.beat-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(238, 240, 243, 0.09);
  border-radius: var(--radius-tile);
  background: rgba(238, 240, 243, 0.016);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.beat-tile .figure { position: absolute; inset: 0; width: auto; height: auto; }

.inbox .bay-split { grid-template-columns: minmax(0, 1fr) clamp(22rem, 38vw, 38rem); }

.close-centre { text-align: center; }
.close-centre .measure-tight { margin-inline: auto; }
.close-centre .signup-fine { margin-inline: auto; }

.signup-quiet {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.signup-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--gap-2);
  width: min(36rem, 100%);
  margin-inline: auto;
  padding: 0.45rem 0.5rem 0.45rem 1.6rem;
  border: 1px solid rgba(238, 240, 243, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(5, 6, 9, 0.5);
  backdrop-filter: blur(26px) saturate(130%);
  -webkit-backdrop-filter: blur(26px) saturate(130%);
}

.signup-bar:focus-within { border-color: var(--charge-lift); }

.signup-bar input:focus-visible {
  outline: 2px solid var(--charge-lift);
  outline-offset: 4px;
  border-radius: var(--radius-pill);
}

.signup-bar input {
  width: 100%;
  border: 0;
  background: none;
  color: var(--ink-pure);
  font-family: var(--font-display);
  font-size: var(--type-body);
  font-weight: 300;
  padding: 0.45rem 0;
  text-align: left;
}

.signup-bar input::placeholder { color: var(--ink-mute); }
.signup-bar input:focus { outline: none; }

[data-invalid] .signup-bar { border-color: var(--warn); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chips li {
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(238, 240, 243, 0.13);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--type-tag);
  color: var(--ink-soft);
}

.chip-open {
  color: var(--charge-lift);
  border-color: rgba(141, 153, 255, 0.45);
  background: rgba(39, 66, 255, 0.12);
}

.signup {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap-2);
}

.signup-bot { position: absolute; left: -9999px; }

.field { display: grid; gap: 0.5rem; min-width: 0; }

.field label {
  font-family: var(--font-mono);
  font-size: var(--type-tag);
  color: var(--ink-mute);
}

.field-error {
  font-family: var(--font-mono);
  font-size: var(--type-tag);
  color: var(--warn);
  margin-top: var(--gap-2);
}

.signup-done {
  position: relative;
  z-index: 1;
  max-width: 34ch;
  font-size: var(--type-sm);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}

.beats,
.inbox,
.close {
  min-height: auto;
  padding-block: var(--flow-gap);
}

.footer {
  position: relative;
  z-index: 3;
  padding-block: var(--flow-gap) var(--gap-5);
  border-top: 1px solid rgba(238, 240, 243, 0.08);
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.82) 0%, rgba(5, 6, 10, 0.96) 100%);
  backdrop-filter: blur(30px) saturate(118%);
  -webkit-backdrop-filter: blur(30px) saturate(118%);
}

.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: clamp(10rem, 30svh, 22rem);
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(5, 6, 9, 0) 0%,
    rgba(5, 6, 9, 0.08) 30%,
    rgba(5, 6, 9, 0.24) 52%,
    rgba(5, 6, 9, 0.46) 70%,
    rgba(5, 6, 9, 0.68) 86%,
    rgba(5, 6, 9, 0.82) 100%);
}

.footer-bar {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.thanks {
  text-align: center;
  --obj: min(30svh, 19vw);
}

.thanks-inner {
  display: grid;
  justify-items: center;
  gap: var(--gap-4);
}

.title-big {
  font-size: var(--type-lg);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.036em;
  color: var(--ink-pure);
  text-wrap: balance;
  max-width: 18ch;
  text-shadow:
    0 1px 3px rgba(4, 5, 8, 0.5),
    0 8px 30px rgba(4, 5, 8, 0.72);
}

.thanks .body { max-width: 52ch; }

.footer-slogan {
  font-size: clamp(1.3rem, 2vw, 1.95rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--ink-pure);
  max-width: 18ch;
  text-wrap: balance;
}

.disclaimer {
  font-size: var(--type-tag);
  font-weight: 300;
  line-height: 1.72;
  color: var(--ink-mute);
  max-width: 74ch;
  text-align: left;
}

.hero { --obj: min(74svh, 54vw); }
.problem { --obj: min(64svh, 43vw); }
.mechanic { --obj: min(66svh, 44vw); }

.bay-flip .stack.hold {
  --hold: 52rem;
  justify-self: end;
}

.bay-split .stack.hold { --hold: 52rem; }
.trail { --obj: min(62svh, 42vw); }
.close { --obj: min(50svh, 32vw); }
.inbox { --obj: min(62svh, 38vw); }

.hero .figure,
.trail .figure,
.close .figure { justify-self: end; margin-right: calc(var(--shell-pad) * -1); }

.hero .figure::before,
.hero .figure::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero .figure::before {
  inset: 18%;
  border: 1px solid rgba(238, 240, 243, 0.12);
}

.hero .figure::after {
  left: 50%;
  top: 50%;
  width: 15%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 34% 28%, #eef0f3 6%, #8d99ff 40%, #3b4c8f 72%, #0d1024 100%);
}

html.stage-live .hero .figure::before,
html.stage-live .hero .figure::after { display: none; }

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes trickle {
  0% { transform: translateY(2px); opacity: 0; }
  22% { opacity: 1; }
  78% { opacity: 1; }
  100% { transform: translateY(40px); opacity: 0; }
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@media (max-width: 1280px) {
  .hero { --obj: min(58svh, 42vw); }
  .problem { --obj: min(54svh, 38vw); }
  .mechanic { --obj: min(56svh, 38vw); }
  .trail { --obj: min(36svh, 50vw); }
  .close { --obj: min(40svh, 28vw); }
  .masthead-note { display: none; }
}

@media (max-width: 1100px) {
  .beats-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root {
    --screen-top: clamp(5rem, 9.5vh, 6.5rem);
    --screen-end: clamp(3rem, 6vh, 4rem);
    --gap-3: clamp(0.95rem, 1.8vh, 1.4rem);
    --gap-4: clamp(1.4rem, 2.6vh, 2rem);
  }

  .dense {
    --gap-1: clamp(0.35rem, 0.7vh, 0.55rem);
    --gap-3: clamp(0.75rem, 1.4vh, 1.1rem);
    --gap-4: clamp(1.1rem, 2vh, 1.6rem);
  }

  .dense .body { line-height: 1.52; }

  .bay-split,
  .bay-flip,
  .inbox .bay-split,
  .thesis-row,
  .footer-bar { grid-template-columns: minmax(0, 1fr); }

  .bay-flip .stack.hold { --hold: none; justify-self: stretch; }
  .bay-split .stack.hold { --hold: none; }
  .footer-bar { gap: var(--gap-4); }
  .thesis-row .figure { justify-self: center; }

  .bay-split .figure,
  .bay-flip .figure,
  .bay-rows .figure { order: -1; justify-self: center; margin: 0; }

  .hero,
  .problem,
  .mechanic,
  .trail,
  .close { --obj: min(21svh, 60vw); }

  .thesis { --obj: min(26svh, 58vw); }
  .inbox { --obj: min(32svh, 64vw); }

  .signup { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .btn { width: 100%; }
  .signup-submit { width: 100%; }
  .beats-list { gap: var(--gap-2); }

  .masthead-panel .btn { width: fit-content; }
  .masthead-panel .brand-word { display: none; }
  .masthead-panel .brand { padding-inline: 0.55rem; }
  .masthead-panel { width: auto; gap: var(--gap-2); }
  .masthead { justify-content: flex-start; }
  .masthead-panel > .masthead-cta { display: none; }
  .masthead.is-past .masthead-cta { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boot-ring, .boot-halo, .boot-core { animation: none; }
  html.js .boot { transition-duration: 1ms; }
  html.js [data-split] .char { opacity: 1; transform: none; transition: none; }
  .scroll-dot { animation: none; top: 20px; opacity: 1; }
  .brand-mark, .btn, .btn::before, .btn-orb, .btn-orb svg, #stage { transition-duration: 1ms; }
  .btn[aria-busy="true"] .btn-orb svg { animation: none; }
}
