/* MoveRep: design D. One light look on purpose (paper and navy); colours are set explicitly. */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-roman.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/spacegrotesk.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #EFEDE4;
  --sheet: #F7F5EF;
  --ink: #1B2A4A;
  --ink-2: #2A3C60;
  --stamp: #B23A2E;
  --gold: #C99A3D;
  --gold-light: #D9B062;
  --brass: #8A6A22;
  --muted: #56657A;
  --rule: rgba(27, 42, 74, 0.14);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); }
a { color: var(--ink); }
a:hover { color: var(--stamp); }
.serif { font-family: var(--serif); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--sheet); padding: 12px 16px; z-index: 10; border-radius: 3px; }
.skip:focus { top: 12px; color: var(--sheet); }

.gutter { padding-inline: clamp(16px, 5.5vw, 80px); }

/* Nav */
nav { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--rule); }
.logo { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.logo span { color: var(--stamp); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav-links a { text-decoration: none; }
.nav-links .how-link { min-height: 44px; display: inline-flex; align-items: center; }
.btn-dark { background: var(--ink); color: var(--sheet) !important; padding: 12px 20px; border-radius: 3px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.btn-dark:hover { background: var(--ink-2); }
@media (max-width: 560px) { .nav-links .how-link { display: none; } }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; min-width: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stamp); }
h1 { margin: 0; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; font-variation-settings: "opsz" 144; }
.lede { margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--muted); max-width: 44ch; }
.ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-red { text-decoration: none; background: var(--stamp); color: #FFFFFF !important; padding: 16px 28px; border-radius: 3px; font-weight: 600; font-size: 16px; display: inline-block; }
.btn-red:hover { background: #9C3227; }
.text-link { display: inline-block; padding-block: 12px; }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* Animated stage: drawn at 640 x 520 and scaled to fit its column by app.js */
.stage-wrap { width: 100%; max-width: 640px; aspect-ratio: 640 / 520; position: relative; overflow: hidden; border-radius: 8px; }
.stage { position: absolute; top: 0; left: 0; width: 640px; height: 520px; transform-origin: 0 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.stage-svg { position: absolute; top: 0; left: 0; }
.route-faint { fill: none; stroke: rgba(27, 42, 74, 0.22); stroke-width: 2; stroke-dasharray: 4 8; }
.route-draw { fill: none; stroke: var(--stamp); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 0; animation: mr-draw 10s ease-in-out infinite; }
.pin { position: absolute; width: 24px; height: 24px; border-radius: 50%; border: 4px solid var(--sheet); }
.pin-from { left: 58px; top: 428px; background: var(--ink); }
.pin-to { left: 548px; top: 80px; background: var(--stamp); }
.pin-label { position: absolute; font-size: 14px; font-weight: 600; }
.label-from { left: 36px; top: 462px; }
.label-to { left: 470px; top: 48px; }
.card { position: absolute; left: 318px; top: 150px; width: 290px; background: #FFFFFF; border: 1px solid rgba(27, 42, 74, 0.16); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 36px rgba(27, 42, 74, 0.14); animation: mr-travel 10s cubic-bezier(.55, .05, .25, 1) infinite; }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-name { font-size: 18px; font-weight: 600; }
.card-sub { font-size: 13px; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--sheet); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.card-row { display: flex; justify-content: space-between; font-size: 14px; }
.card-row.first { border-top: 1px solid rgba(27, 42, 74, 0.1); padding-top: 10px; }
.stars { color: var(--stamp); letter-spacing: 2px; }
.small-muted { font-size: 12px; color: var(--muted); }
.chip { position: absolute; background: rgba(255, 255, 255, 0.88); padding: 6px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.chip-1 { top: -18px; right: -14px; border: 2px solid var(--brass); color: var(--brass); transform: rotate(-6deg); animation: mr-stamp1 10s ease-out infinite; }
.chip-2 { bottom: -16px; left: -34px; border: 2px solid var(--ink); color: var(--ink); transform: rotate(5deg); animation: mr-stamp2 10s ease-out infinite; }
.seal { position: absolute; bottom: -40px; right: -30px; width: 108px; height: 108px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--stamp); box-shadow: inset 0 0 0 6px #FFFFFF, inset 0 0 0 7px var(--stamp); color: var(--stamp); display: flex; align-items: center; justify-content: center; text-align: center; transform: rotate(-10deg); animation: mr-seal 10s ease-out infinite; }
.seal div { font-size: 12px; font-weight: 600; line-height: 1.25; }
.arrive { animation: mr-arrive 10s ease-out infinite; }

@keyframes mr-draw { 0% { stroke-dashoffset: 900 } 40% { stroke-dashoffset: 0 } 92% { stroke-dashoffset: 0; opacity: 1 } 100% { stroke-dashoffset: 0; opacity: 0 } }
@keyframes mr-travel { 0%, 8% { transform: translate(-310px, 250px) rotate(-4deg); opacity: 0 } 12% { opacity: 1 } 42% { transform: translate(0, 0) rotate(0deg); opacity: 1 } 92% { transform: translate(0, 0); opacity: 1 } 100% { transform: translate(0, 0); opacity: 0 } }
@keyframes mr-stamp1 { 0%, 46% { opacity: 0; transform: scale(2.4) rotate(-24deg) } 50% { opacity: 1; transform: scale(1) rotate(-6deg) } 92% { opacity: 1; transform: scale(1) rotate(-6deg) } 100% { opacity: 0; transform: scale(1) rotate(-6deg) } }
@keyframes mr-stamp2 { 0%, 54% { opacity: 0; transform: scale(2.4) rotate(18deg) } 58% { opacity: 1; transform: scale(1) rotate(5deg) } 92% { opacity: 1; transform: scale(1) rotate(5deg) } 100% { opacity: 0; transform: scale(1) rotate(5deg) } }
@keyframes mr-seal { 0%, 62% { opacity: 0; transform: scale(2.6) rotate(-30deg) } 67% { opacity: 1; transform: scale(1) rotate(-10deg) } 92% { opacity: 1; transform: scale(1) rotate(-10deg) } 100% { opacity: 0; transform: scale(1) rotate(-10deg) } }
@keyframes mr-arrive { 0%, 40% { box-shadow: 0 0 0 0 rgba(178, 58, 46, 0.45) } 48% { box-shadow: 0 0 0 18px rgba(178, 58, 46, 0) } 100% { box-shadow: 0 0 0 0 rgba(178, 58, 46, 0) } }
@keyframes mr-ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* Ticker */
.ticker { background: var(--ink); color: var(--sheet); height: 64px; overflow: hidden; display: flex; align-items: center; }
.ticker-track { display: flex; flex-shrink: 0; white-space: nowrap; font-size: 18px; animation: mr-ticker 38s linear infinite; }
.ticker-set { display: flex; gap: 44px; padding-right: 44px; font-style: italic; }
.ticker-set .dot { color: var(--gold-light); }

/* How it works */
.how { padding-block: clamp(64px, 7vw, 96px); display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
h2 { margin: 0; font-size: clamp(30px, 3vw, 40px); line-height: 1.12; font-weight: 600; text-wrap: balance; font-variation-settings: "opsz" 96; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.step { background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--stamp); color: var(--stamp); display: flex; align-items: center; justify-content: center; font-weight: 700; }
h3 { margin: 0; font-size: 22px; font-weight: 600; }
.step p, .side p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Two sides */
.sides { padding-bottom: clamp(64px, 7vw, 96px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.side { padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.side.t { border-top: 3px solid var(--ink); }
.side.l { border-top: 3px solid var(--stamp); }
.side h3 { font-size: clamp(24px, 2.2vw, 28px); }
.side p { font-size: 16px; }
@media (max-width: 760px) { .sides { grid-template-columns: minmax(0, 1fr); } }

/* Waitlist */
.waitlist { background: var(--ink); color: var(--sheet); padding-block: clamp(64px, 7vw, 96px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5.5vw, 80px); align-items: start; scroll-margin-top: 16px; }
.waitlist .eyebrow { color: var(--gold-light); }
.waitlist-copy { display: flex; flex-direction: column; gap: 18px; }
.waitlist-copy p { margin: 0; font-size: 17px; line-height: 1.55; color: rgba(247, 245, 239, 0.82); max-width: 44ch; }
@media (max-width: 860px) { .waitlist { grid-template-columns: minmax(0, 1fr); } }

form { display: flex; flex-direction: column; gap: 16px; }
.roles { display: flex; border: 1px solid rgba(247, 245, 239, 0.24); margin: 0; padding: 0; min-width: 0; }
.roles input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.waitlist .pill { flex: 1; min-width: 0; height: 48px; display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; background: transparent; color: rgba(247, 245, 239, 0.78); font: 500 clamp(13px, 3.7vw, 15px) var(--sans); cursor: pointer; padding-inline: 4px; }
.waitlist .roles input:checked + .pill { background: var(--sheet); color: var(--ink); font-weight: 600; }
.roles input:focus-visible + .pill { outline: 2px solid var(--gold); outline-offset: -2px; }
.waitlist label { font-size: 14px; color: rgba(247, 245, 239, 0.82); }
input[type="email"] { height: 52px; width: 100%; padding: 0 16px; font: 16px var(--sans); color: var(--sheet); background: var(--ink-2); border: 1px solid rgba(247, 245, 239, 0.24); border-radius: 3px; }
input[type="email"]::placeholder { color: rgba(247, 245, 239, 0.62); }
input[type="email"][aria-invalid="true"] { border-color: #F2A097; }
.error { font-size: 14px; color: #F2A097; }
.submit { height: 54px; border: 0; border-radius: 3px; background: var(--stamp); color: #FFFFFF; font: 600 16px var(--sans); cursor: pointer; }
.submit:hover { background: #9C3227; }
.submit[disabled] { opacity: 0.75; cursor: progress; }
.fine { font-size: 13px; line-height: 1.5; color: rgba(247, 245, 239, 0.72); }
.fine a { color: var(--sheet); }
.fine a:hover { color: var(--gold-light); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.joined { border: 1px solid var(--gold); padding: 32px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.joined h3 { font-size: 26px; }
.joined p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(247, 245, 239, 0.82); overflow-wrap: anywhere; }
.joined:focus { outline: none; }
.ghost { margin-top: 6px; background: transparent; border: 1px solid rgba(247, 245, 239, 0.4); color: var(--sheet); padding: 10px 18px; min-height: 44px; border-radius: 3px; font: 500 14px var(--sans); cursor: pointer; }
.ghost:hover { border-color: var(--sheet); }

/* Footer */
footer { padding-block: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
footer .serif { font-weight: 600; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.foot-links a { display: inline-block; padding-block: 12px; min-height: 44px; color: var(--muted); }
@media (max-width: 560px) { .foot-links { gap: 0 18px; } .foot-links .sep { display: none; } }
.foot-links a:hover { color: var(--stamp); }

/* Simple pages: /confirmed, /privacy, 404 */
.page { padding-block: clamp(48px, 8vw, 104px); }
.page-card { max-width: 640px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: clamp(28px, 5vw, 48px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.page-card h1 { font-size: clamp(36px, 5vw, 52px); }
.page-card p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.page-card .btn-red { margin-top: 8px; }
.stamp-mark { width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--stamp); box-shadow: inset 0 0 0 6px var(--sheet), inset 0 0 0 7px var(--stamp); color: var(--stamp); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; font-weight: 600; line-height: 1.25; transform: rotate(-10deg); }
.share-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-line { background: transparent; border: 1px solid var(--ink); color: var(--ink); padding: 12px 18px; min-height: 44px; border-radius: 3px; font: 500 15px var(--sans); cursor: pointer; }
.btn-line:hover { background: var(--ink); color: var(--sheet); }
.share-note { font-size: 14px; color: var(--muted); }

.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 26px); margin-top: 36px; margin-bottom: 10px; font-variation-settings: "opsz" 48; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; color: var(--ink); }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 22px; }
.prose .updated { color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-draw, .card, .chip-1, .chip-2, .seal, .arrive, .ticker-track { animation: none; }
}
