:root {
  --bg: #eef4f1;
  --rail: #e4ede8;
  --panel: rgba(250, 252, 251, .86);
  --raise: #fff;
  --ink: #0f2a2e;
  --ink-2: #3d5559;
  --muted: #6a7f80;
  --line: #d4e0da;
  --line-strong: #b6c8c0;
  --accent: #0b6e69;
  --accent-soft: #d4e9e5;
  --accent-ink: #fff;
  --coral: #d9583f;
  --error: #b8382c;
  --radius: 22px;
  --shadow: 0 30px 80px -42px rgba(15, 42, 46, .5), 0 2px 10px rgba(15, 42, 46, .06);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1113; --rail: #151a1b; --panel: rgba(24, 28, 30, .86); --raise: #1c2024;
    --ink: #e8ebed; --ink-2: #b4bbc0; --muted: #858e95; --line: #262d2f; --line-strong: #394346;
    --accent: #4bc3b6; --accent-soft: rgba(63, 191, 178, .14); --accent-ink: #03201d;
    --coral: #f0846c; --error: #f28b7d;
    --shadow: 0 34px 90px -42px rgba(0, 0, 0, .92), 0 2px 12px rgba(0, 0, 0, .32);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% -5%, color-mix(in srgb, var(--accent) 19%, transparent), transparent 34rem),
    radial-gradient(circle at 90% 110%, color-mix(in srgb, var(--coral) 11%, transparent), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .2;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) .55px, transparent .55px);
  background-size: 5px 5px; mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bar { position: relative; z-index: 3; width: min(1180px, calc(100% - 40px)); height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { font: 800 24px/1 var(--display); letter-spacing: -.045em; }
.brand::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--coral); vertical-align: 3px; }
.bar-right { display: flex; align-items: center; gap: 14px; }
.who { color: var(--ink-2); font-weight: 600; }
.link { color: var(--muted); text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.beta { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 650; background: color-mix(in srgb, var(--panel) 74%, transparent); backdrop-filter: blur(12px); }
.beta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.main { min-height: calc(100vh - 76px); display: flex; }
.gate { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 20px 64px; }
.gate-shell { width: min(1120px, 100%); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .78fr); gap: clamp(36px, 7vw, 92px); align-items: center; }
.door-story { min-width: 0; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.door-story h1 { max-width: 760px; margin: 0; font: 750 clamp(46px, 6vw, 78px)/.98 var(--display); letter-spacing: -.055em; text-wrap: balance; }
.door-story h1 em { color: var(--accent); font-style: normal; }
.lede { max-width: 610px; margin: 24px 0 0; color: var(--ink-2); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; text-wrap: balance; }
.crew-board { position: relative; width: min(610px, 100%); min-height: 186px; margin-top: 36px; padding: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: var(--radius); background: linear-gradient(145deg, color-mix(in srgb, var(--panel) 90%, transparent), color-mix(in srgb, var(--accent-soft) 35%, transparent)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.crew-board::before { content: ""; position: absolute; left: 20%; right: 20%; top: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.crew-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 8px; border-radius: 16px; }
.crew-card:nth-child(2) { background: color-mix(in srgb, var(--raise) 68%, transparent); box-shadow: 0 10px 30px -24px rgba(15, 42, 46, .6); }
.crew-face { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--tone) 34%, var(--line)); border-radius: 50%; background: color-mix(in srgb, var(--tone) 13%, var(--raise)); color: var(--tone); font: 750 14px/1 var(--display); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 8%, transparent); }
.crew-card strong { font: 680 14px/1.2 var(--display); }
.crew-card small { max-width: 16ch; color: var(--muted); text-align: center; font-size: 11.5px; line-height: 1.35; }
.crew-card:nth-child(1) { --tone: #d9583f; }
.crew-card:nth-child(2) { --tone: #0b6e69; }
.crew-card:nth-child(3) { --tone: #4f5fb0; }
.gate-card { position: relative; min-height: 390px; display: grid; align-items: center; padding: clamp(28px, 4vw, 42px); overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.gate-card::before { content: ""; position: absolute; width: 240px; height: 240px; right: -120px; top: -130px; border-radius: 50%; background: var(--accent-soft); filter: blur(2px); }
.gate-card > div { position: relative; z-index: 1; }
.gate-card h2 { margin: 0; font: 740 clamp(28px, 3vw, 36px)/1.08 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.gate-card p { margin: 13px 0 0; color: var(--ink-2); }
.gate-note { display: flex; align-items: center; gap: 8px; margin-top: 20px !important; color: var(--muted) !important; font-size: 12.5px; }
.gate-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.gate form { display: flex; gap: 8px; margin-top: 20px; }
.gate input { min-width: 0; flex: 1; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: color-mix(in srgb, var(--raise) 78%, transparent); }
.gate input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 22px; padding: 11px 18px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 26px -16px color-mix(in srgb, var(--accent) 86%, transparent); font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.gate form .button { margin-top: 0; }
.button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 32px -18px color-mix(in srgb, var(--accent) 92%, transparent); }
.button:active:not(:disabled) { transform: translateY(0) scale(.98); }
.button:disabled { opacity: .58; cursor: default; }
.muted { color: var(--muted) !important; font-size: .9rem; }
.error { color: var(--error) !important; }
.starting-mark { position: relative; width: 54px; height: 54px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 50%; background: var(--accent-soft); }
.starting-mark::before, .starting-mark::after { content: ""; position: absolute; inset: 11px; border: 2px solid var(--accent); border-top-color: transparent; border-radius: 50%; }
.starting-mark::after { inset: 19px; border-color: var(--coral); border-bottom-color: transparent; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .door-story > *, .gate-card { animation: arrive .7s cubic-bezier(.2,.8,.2,1) both; }
  .door-story > :nth-child(2) { animation-delay: .05s; }
  .door-story > :nth-child(3) { animation-delay: .1s; }
  .door-story > :nth-child(4) { animation-delay: .16s; }
  .gate-card { animation-delay: .12s; }
  .starting-mark::before { animation: spin 1.25s linear infinite; }
  .starting-mark::after { animation: spin .9s linear infinite reverse; }
  @keyframes arrive { from { opacity: 0; transform: translateY(18px); } }
  @keyframes spin { to { transform: rotate(360deg); } }
}
@media (max-width: 820px) {
  .bar { width: min(100% - 32px, 680px); height: 66px; }
  .main { min-height: calc(100vh - 66px); }
  .gate { align-items: flex-start; padding: 20px 16px 44px; }
  .gate-shell { max-width: 680px; grid-template-columns: 1fr; gap: 30px; }
  .door-story h1 { font-size: clamp(42px, 12vw, 62px); }
  .lede { margin-top: 18px; }
  .crew-board { margin-top: 24px; min-height: 148px; padding: 12px; }
  .crew-card { padding: 8px 4px; }
  .gate-card { min-height: 330px; }
}
@media (max-width: 520px) {
  .beta { display: none; }
  .door-story h1 { font-size: 42px; }
  .lede { font-size: 16px; }
  .crew-board { min-height: 0; }
  .crew-card small { display: none; }
  .crew-face { width: 40px; height: 40px; }
  .gate-card { border-radius: 22px; padding: 26px 22px; }
  .gate form { flex-direction: column; }
  .gate form .button { width: 100%; }
}
