.prelaunch-locked { overflow: hidden; }
.prelaunch-locked #prelaunch-site { visibility: hidden; }

.launch-gate {
  --gate-accent: var(--launch-accent, #fff);
  position: fixed;
  inset: 0;
  z-index: 10000;
  min-height: 100svh;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--gate-accent) 18%, transparent), transparent 28rem),
    #050505;
  font-family: inherit;
}

.launch-gate::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 63%, color-mix(in srgb, var(--gate-accent) 9%, transparent) 63% 64%, transparent 64%);
}

.launch-gate__frame {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 4vw, 4rem);
}

.launch-gate__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.28);
}

.launch-gate__logo {
  display: block;
  width: clamp(4.5rem, 8vw, 7.25rem);
  height: clamp(4.5rem, 8vw, 7.25rem);
  object-fit: contain;
}

.launch-gate__chapter,
.launch-gate__time {
  margin: 0;
  font-size: clamp(.75rem, 1vw, .9rem);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.launch-gate__time { color: var(--gate-accent); text-align: right; }

.launch-gate__body {
  align-self: center;
  width: min(100%, 94rem);
  padding: clamp(3rem, 8vh, 7rem) 0;
}

.launch-gate h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(4rem, 11vw, 10.5rem);
  line-height: .79;
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.launch-gate h1 span { color: transparent; -webkit-text-stroke: clamp(1px, .12vw, 2px) var(--gate-accent); }

.launch-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 8.5rem));
  gap: clamp(.5rem, 1.4vw, 1rem);
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.launch-countdown__unit {
  min-width: 0;
  padding: clamp(.85rem, 2vw, 1.35rem);
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.035);
}

.launch-countdown__unit strong {
  display: block;
  color: var(--gate-accent);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: .9;
  letter-spacing: -.05em;
}

.launch-countdown__unit span {
  display: block;
  margin-top: .65rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.launch-gate__footer {
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 34rem);
  gap: 2rem;
  align-items: end;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.28);
}

.launch-gate__footer > p { margin: 0; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.45; }
.launch-gate__footer a { color: var(--gate-accent); font-weight: 700; text-underline-offset: .2em; }
.launch-gate__tagline { font-size: .78rem !important; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

@media (max-width: 650px) {
  .launch-gate__frame { padding: 1.15rem; }
  .launch-gate__header { align-items: flex-start; }
  .launch-gate__logo { width: 4.5rem; height: 4.5rem; }
  .launch-gate__time { max-width: 12rem; font-size: .7rem; line-height: 1.35; }
  .launch-gate__body { padding: 3rem 0; }
  .launch-gate h1 { max-width: 9ch; font-size: clamp(3.5rem, 18vw, 5.75rem); }
  .launch-countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
  .launch-countdown__unit { padding: .7rem .35rem; text-align: center; }
  .launch-countdown__unit strong { font-size: clamp(1.75rem, 9vw, 2.65rem); }
  .launch-countdown__unit span { font-size: .58rem; letter-spacing: .06em; }
  .launch-gate__footer { grid-template-columns: 1fr; gap: 1.15rem; }
  .launch-gate__tagline { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-gate *, .launch-gate *::before, .launch-gate *::after { transition: none !important; animation: none !important; }
}
