:root {
  --paper: #f2efe7;
  --ink: #111310;
  --muted: #66685f;
  --line: rgba(17, 19, 16, 0.22);
  --blue: #2454ea;
  --lime: #d8ff5f;
  --red: #f05a37;
  --white: #fffdf8;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", sans-serif;
  --mono: "DM Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

.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;
}

.gate-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  font: 500 12px/1 var(--mono);
  transform: translateY(-150%);
}

.gate-skip:focus { transform: translateY(0); }

.page-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
  background-image:
    linear-gradient(to right, rgba(17, 19, 16, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 19, 16, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--ink);
  background: rgba(242, 239, 231, 0.94);
}

.gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.gate-brand img {
  width: 36px;
  height: 48px;
  object-fit: contain;
}

.gate-brand strong {
  font: 600 clamp(29px, 3vw, 38px)/0.9 var(--serif);
  letter-spacing: -0.035em;
}

.gate-stage {
  position: relative;
  min-height: 720px;
  padding-top: clamp(52px, 7vw, 94px);
  overflow: hidden;
}

.stage-copy {
  width: min(1460px, calc(100% - clamp(40px, 8vw, 128px)));
  margin: 0 auto;
  text-align: center;
}

.gate-eyebrow {
  margin: 0;
  color: var(--blue);
  font: 500 10px/1.25 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.stage-copy h1 {
  max-width: 1120px;
  margin: 0 auto;
  font: 500 clamp(60px, 6.2vw, 98px)/0.82 var(--serif);
  letter-spacing: -0.062em;
}

.stage-copy h1 em {
  color: var(--blue);
  font-weight: 500;
}

.gate-lede {
  max-width: 480px;
  margin: 34px auto 0;
  color: #3f423b;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}

.launch-countdown {
  position: relative;
  z-index: 12;
  width: min(760px, calc(100% - 40px));
  margin: clamp(46px, 6vw, 76px) auto -38px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 9px 9px 0 var(--blue), -5px -5px 0 var(--lime);
  transform: rotate(-0.45deg);
}

.launch-countdown::before,
.launch-countdown::after {
  content: "";
  position: absolute;
  top: -22px;
  width: 1px;
  height: 22px;
  background: var(--ink);
}

.launch-countdown::before { left: 18%; }
.launch-countdown::after { right: 18%; }

.countdown-heading {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font: 500 9px/1.25 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown-heading time { color: var(--lime); text-align: right; }

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.countdown-grid > span {
  min-height: 102px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 12px 8px 10px;
}

.countdown-grid > span + span { border-left: 1px solid var(--ink); }

.countdown-grid b {
  font: 500 clamp(42px, 5vw, 67px)/0.8 var(--serif);
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.countdown-grid small {
  color: var(--blue);
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.launch-countdown.is-live .countdown-grid {
  background: var(--lime);
}

.gate-yard {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: clamp(260px, 30vw, 420px);
  display: flex;
  align-items: flex-end;
  padding-top: 54px;
  background:
    linear-gradient(to bottom, transparent 0 68%, rgba(36, 84, 234, 0.09) 68% 100%);
}

.gate-yard::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 13px;
  border-top: 1px solid var(--ink);
  background: var(--blue);
}

.physical-gate {
  --gate-left-x: 0px;
  --gate-left-y: 0px;
  --gate-right-x: 0px;
  --gate-right-y: 0px;
  --gate-lock-x: 0px;
  --gate-lock-y: 0px;
  position: relative;
  width: 100%;
  height: clamp(230px, 26vw, 360px);
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: grab;
  perspective: 1400px;
  isolation: isolate;
}

.physical-gate:active { cursor: grabbing; }

.physical-gate::before,
.physical-gate::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 8;
  height: 27px;
  border-block: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: inset 0 0 0 7px var(--lime);
}

.physical-gate::before { top: 8px; }
.physical-gate::after { bottom: 8px; }

.gate-wing {
  position: absolute;
  top: 34px;
  bottom: 34px;
  z-index: 3;
  width: 50%;
  overflow: hidden;
  border: 1px solid var(--ink);
  background-color: rgba(242, 239, 231, 0.95);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 55px, var(--ink) 55px 61px),
    repeating-linear-gradient(0deg, transparent 0 68px, rgba(17, 19, 16, 0.34) 68px 70px);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 240ms ease;
}

.gate-wing--left {
  left: 0;
  transform-origin: left center;
  transform: translate3d(var(--gate-left-x), var(--gate-left-y), 0) rotateY(-1.2deg);
}

.gate-wing--right {
  right: 0;
  transform-origin: right center;
  transform: translate3d(var(--gate-right-x), var(--gate-right-y), 0) rotateY(1.2deg);
}

.physical-gate:hover .gate-wing { filter: contrast(1.06); }

.gate-wing::before,
.gate-wing::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  border-block: 1px solid var(--ink);
  background: var(--blue);
}

.gate-wing::before { top: 36px; }
.gate-wing::after { bottom: 36px; background: var(--lime); }

.gate-brace {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 120%;
  height: 16px;
  border-block: 1px solid var(--ink);
  background: var(--paper);
  transform: rotate(20deg);
  box-shadow: 0 5px 0 rgba(17, 19, 16, 0.15);
}

.gate-wing--right .gate-brace { transform: rotate(-20deg); }

.gate-post {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  width: 48px;
  border-inline: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: inset 0 0 0 8px var(--paper);
}

.gate-post--left { left: clamp(14px, 3vw, 48px); }
.gate-post--right { right: clamp(14px, 3vw, 48px); }

.gate-post i {
  position: absolute;
  left: 50%;
  width: 43px;
  height: 14px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%) rotate(8deg);
}

.gate-post i:first-child { top: -14px; background: var(--lime); }
.gate-post i:nth-child(2) { top: -3px; background: var(--paper); transform: translateX(-50%) rotate(-7deg); }
.gate-post i:last-child { top: 9px; background: var(--blue); transform: translateX(-50%) rotate(13deg); }

.gate-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 14;
  width: clamp(150px, 15vw, 220px);
  aspect-ratio: 1.35;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--ink);
  background: var(--lime);
  box-shadow: 8px 8px 0 var(--blue), -4px -4px 0 var(--paper);
  transform: translate(calc(-50% + var(--gate-lock-x)), calc(-50% + var(--gate-lock-y))) rotate(-1deg);
  transition: transform 180ms ease;
}

.gate-lock strong {
  font: 600 clamp(22px, 2.4vw, 34px)/0.9 var(--serif);
  letter-spacing: -0.03em;
}

.gate-lock small {
  font: 500 8px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gate-lock-logo {
  width: 52px;
  height: 42px;
  margin-bottom: 3px;
  object-fit: contain;
}

.gate-interaction-copy {
  position: absolute;
  right: clamp(72px, 10vw, 160px);
  bottom: 47px;
  z-index: 12;
  padding: 8px 11px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font: 500 8px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.physical-gate.is-rattling .gate-wing--left { animation: gate-rattle-left 360ms ease; }
.physical-gate.is-rattling .gate-wing--right { animation: gate-rattle-right 360ms ease; }
.physical-gate.is-rattling .gate-lock { animation: lock-rattle 360ms ease; }

@keyframes gate-rattle-left {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px) rotateY(-2deg); }
  55% { transform: translateX(4px); }
  78% { transform: translateX(-3px); }
}

@keyframes gate-rattle-right {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(7px) rotateY(2deg); }
  55% { transform: translateX(-4px); }
  78% { transform: translateX(3px); }
}

@keyframes lock-rattle {
  0%, 100% { transform: translate(-50%, -50%) rotate(-1deg); }
  25% { transform: translate(calc(-50% - 5px), -50%) rotate(-3deg); }
  60% { transform: translate(calc(-50% + 5px), -50%) rotate(2deg); }
}

.waitlist-card {
  position: relative;
  width: min(1460px, calc(100% - clamp(28px, 6vw, 96px)));
  min-height: 490px;
  margin: clamp(52px, 7vw, 100px) auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  align-items: end;
  gap: clamp(42px, 7vw, 112px);
  padding: clamp(42px, 6vw, 84px);
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  box-shadow: 11px 11px 0 var(--blue);
}

.waitlist-card::before {
  content: "";
  position: absolute;
  top: -190px;
  right: -110px;
  width: 360px;
  height: 360px;
  border: 1px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 42px var(--blue), 0 0 0 84px var(--lime);
}

.waitlist-copy,
.waitlist-form { position: relative; z-index: 2; }

.waitlist-copy .gate-eyebrow { color: var(--lime); }

.waitlist-copy h2 {
  margin: 19px 0 18px;
  font: 500 clamp(54px, 6vw, 88px)/0.86 var(--serif);
  letter-spacing: -0.06em;
}

.waitlist-copy > p:last-child {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 16px;
  line-height: 1.55;
}

.waitlist-form label,
.access-panel form label {
  display: block;
  margin-bottom: 10px;
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.waitlist-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.waitlist-input-row input,
.access-panel input {
  width: 100%;
  min-width: 0;
  min-height: 62px;
  border: 1px solid var(--white);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  padding: 0 18px;
}

.waitlist-input-row input::placeholder,
.access-panel input::placeholder { color: rgba(255, 253, 248, 0.48); }

.waitlist-input-row button,
.access-panel form button {
  min-height: 62px;
  border: 1px solid var(--lime);
  border-radius: 0;
  background: var(--lime);
  color: var(--ink);
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--blue);
}

.waitlist-input-row button:hover,
.access-panel form button:hover { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 var(--blue); }

.waitlist-input-row button:disabled,
.access-panel form button:disabled { cursor: wait; opacity: 0.65; transform: none; }

.gate-form-note,
.gate-form-message,
.access-message {
  min-height: 17px;
  margin: 13px 0 0;
  color: rgba(255, 253, 248, 0.58);
  font: 400 9px/1.5 var(--mono);
}

.gate-form-message.is-success { color: var(--lime); }
.gate-form-message.is-error,
.access-message.is-error { color: #ff997f; }

.gate-principles {
  width: min(1460px, calc(100% - clamp(28px, 6vw, 96px)));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto clamp(52px, 7vw, 100px);
  border-block: 1px solid var(--ink);
}

.gate-principles span {
  min-height: 104px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px;
  color: var(--blue);
  font: 500 9px/1 var(--mono);
}

.gate-principles span + span { border-left: 1px solid var(--ink); }

.gate-principles b {
  color: var(--ink);
  font: 600 14px/1.3 var(--sans);
}

.site-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--ink);
  font: 500 9px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--ink); text-underline-offset: 4px; }

.access-trigger {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 30;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--lime);
  font: 600 11px/1 var(--sans);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}

.access-trigger:hover { background: var(--blue); color: var(--white); }

.access-trigger-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.access-trigger:hover .access-trigger-dot { background: var(--lime); }

.access-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(17, 19, 16, 0.52);
}

.access-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: min(450px, calc(100vw - 40px));
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 12px 12px 0 var(--blue);
}

.access-panel[hidden],
.access-backdrop[hidden] { display: none; }

.access-panel > header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink);
}

.access-panel > header button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.access-panel-copy { padding: 28px 26px 20px; }

.access-mark {
  display: block;
  width: 52px;
  height: 62px;
  margin-bottom: 22px;
  object-fit: contain;
}

.access-panel h2 {
  margin: 0 0 10px;
  font: 500 44px/0.92 var(--serif);
  letter-spacing: -0.045em;
}

.access-panel-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.access-panel form {
  padding: 22px 26px 28px;
  border-top: 1px solid var(--line);
}

.access-panel input {
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.access-panel input::placeholder { color: #81847b; }
.access-panel form button { width: 100%; margin-top: 12px; }
.access-message { color: var(--muted); }
.access-message:empty { display: none; }

.access-apply-note {
  margin: 19px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 500 10px/1.6 var(--mono);
}

.access-apply-note a {
  color: var(--blue);
  font-weight: 500;
  text-underline-offset: 3px;
}

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

@media (max-width: 920px) {
  .gate-stage { padding-top: 60px; }
  .gate-lede { max-width: 660px; }
  .launch-countdown { margin-top: 52px; }
  .gate-yard { min-height: 330px; }
  .physical-gate { height: 290px; }
  .gate-wing { background-image: repeating-linear-gradient(90deg, transparent 0 42px, var(--ink) 42px 48px), repeating-linear-gradient(0deg, transparent 0 60px, rgba(17, 19, 16, 0.34) 60px 62px); }
  .waitlist-card { grid-template-columns: 1fr; align-items: start; gap: 46px; }
  .waitlist-form { max-width: 760px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 74px; padding: 12px 18px; }
  .gate-brand img { width: 30px; height: 40px; }
  .gate-brand strong { font-size: 30px; }
  .gate-stage { min-height: auto; padding-top: 48px; }
  .stage-copy { width: calc(100% - 36px); }
  .stage-copy h1 { font-size: clamp(50px, 15vw, 70px); }
  .gate-lede { font-size: 15px; }
  .launch-countdown { width: calc(100% - 28px); margin-top: 42px; margin-bottom: -24px; box-shadow: 6px 6px 0 var(--blue), -3px -3px 0 var(--lime); }
  .countdown-heading { align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 10px; }
  .countdown-heading time { text-align: left; }
  .countdown-grid > span { min-height: 79px; }
  .countdown-grid b { font-size: 37px; }
  .countdown-grid small { font-size: 7px; letter-spacing: 0.08em; }
  .gate-yard { min-height: 290px; padding-top: 40px; }
  .physical-gate { height: 256px; }
  .physical-gate::before,
  .physical-gate::after { height: 22px; box-shadow: inset 0 0 0 6px var(--lime); }
  .gate-wing { top: 29px; bottom: 29px; background-image: repeating-linear-gradient(90deg, transparent 0 30px, var(--ink) 30px 35px), repeating-linear-gradient(0deg, transparent 0 52px, rgba(17, 19, 16, 0.34) 52px 54px); }
  .gate-wing::before { top: 31px; }
  .gate-wing::after { bottom: 31px; }
  .gate-post { width: 33px; box-shadow: inset 0 0 0 6px var(--paper); }
  .gate-post--left { left: 8px; }
  .gate-post--right { right: 8px; }
  .gate-post i { width: 34px; }
  .gate-lock { width: 126px; }
  .gate-lock-logo { width: 44px; height: 35px; margin-bottom: 1px; }
  .gate-lock strong { font-size: 22px; }
  .gate-interaction-copy { right: 43px; bottom: 39px; max-width: 160px; line-height: 1.35; }
  .waitlist-card { width: calc(100% - 28px); min-height: 620px; margin: 54px auto; padding: 62px 20px 46px; gap: 44px; box-shadow: 7px 7px 0 var(--blue); }
  .waitlist-card::before { width: 270px; height: 270px; top: -180px; right: -100px; }
  .waitlist-copy h2 { font-size: 56px; }
  .waitlist-input-row { grid-template-columns: 1fr; gap: 10px; }
  .gate-principles { width: calc(100% - 28px); grid-template-columns: 1fr; }
  .gate-principles span { min-height: 72px; }
  .gate-principles span + span { border-left: 0; border-top: 1px solid var(--ink); }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 18px 20px 86px; }
  .access-trigger { right: 14px; bottom: 14px; }
  .access-panel { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
