/* Private access gate. Brand: navy #2B2F6B, teal #2E9C93, coral #FF8A65,
   warm off-white #FFF7EE. Deliberately minimal: no product description.
   The mark is the one focal object: larger, softly lit, floating gently,
   with the coral seat moving between seats (gate.mjs). With reduced motion
   everything stays still. */
:root {
  color-scheme: light;
  --ink: #23275c;
  --ink-2: #474c7a;
  --ink-3: #5c6185;
  --navy: #2b2f6b;
  --navy-deep: #1f2250;
  --line: #d9d4dc;
  --danger-ink: #a72d29;
  --font:
    "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display:
    "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px
    max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 70% at 50% 0%, #ffffff 0%, #fff7ee 55%, #fbefe3 100%),
    #fff7ee;
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.gate {
  width: min(100%, 360px);
  display: grid;
  gap: 32px;
  justify-items: center;
  animation: gate-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes gate-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.gate-brand {
  display: grid;
  justify-items: center;
  gap: 14px;
}

/* ---------- The mark ---------- */
.gate-stage {
  position: relative;
  width: 148px;
  height: 156px;
  display: grid;
  place-items: center;
}
/* A soft light behind the mark: depth without decoration. */
.gate-halo {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    #2e9c9326 0%,
    #ff8a6514 50%,
    transparent 100%
  );
  animation: gate-breathe 9s ease-in-out infinite;
}
@keyframes gate-breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}
.gate-mark {
  position: relative;
  width: 128px;
  height: 128px;
  filter: drop-shadow(0 14px 22px #2b2f6b2e);
  animation: gate-float 7s ease-in-out infinite;
}
@keyframes gate-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
.gate-floor {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 84px;
  height: 10px;
  margin-left: -42px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #2b2f6b33, transparent);
  animation: gate-floor 7s ease-in-out infinite;
}
@keyframes gate-floor {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(0.9);
    opacity: 0.7;
  }
}
/* The coral seat. gate.mjs fades it out, places it at another seat chosen
   at random (while invisible, so it never travels) and fades it back in with
   a short glow; then it rests for a few seconds. */
.gate-seat-mover {
  transform-box: view-box;
  transform-origin: 34px 30px;
  transition: opacity 0.34s ease;
}
.gate-seat-mover.is-away {
  opacity: 0;
}
.gate-seat-glow {
  opacity: 0;
  transition: opacity 0.51s ease;
}
.gate-seat-mover.is-arriving .gate-seat-glow {
  opacity: 1;
}
.gate-word {
  margin: 0;
  font: 650 2.125rem/1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--navy);
}
@media (prefers-reduced-motion: reduce) {
  .gate,
  .gate-halo,
  .gate-mark,
  .gate-floor {
    animation: none;
  }
  .gate-seat-mover {
    transition: none;
  }
}

/* ---------- Access form ---------- */
.gate-panel {
  width: 100%;
  display: grid;
  gap: 20px;
  justify-items: center;
}
.gate-panel[hidden] {
  display: none;
}
.gate-panel h1 {
  margin: 0;
  font: 600 1.25rem/1.3 var(--font-display);
  letter-spacing: 0.01em;
  color: var(--ink);
  outline: none;
}
.gate-panel form {
  width: 100%;
  display: grid;
  gap: 10px;
}
.gate-panel label {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.gate-panel input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 500 1.0625rem/1.4 var(--font);
  box-shadow: 0 1px 2px #2b2f6b0d;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
#gate-code-form label {
  text-align: center;
}
#gate-code-input {
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gate-panel input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px #2b2f6b26;
}
.gate-panel form label + input + label {
  margin-top: 6px;
}
.gate-primary {
  margin-top: 8px;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font: 600 1rem/1 var(--font);
  cursor: pointer;
  box-shadow: 0 10px 22px -14px #2b2f6bb3;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.gate-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -14px #2b2f6bcc;
}
.gate-primary:active {
  transform: translateY(0);
}
.gate-primary:focus-visible,
.gate-link:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.gate-primary:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
.gate-error {
  margin: 2px 0 0;
  color: var(--danger-ink);
  font-size: 0.9375rem;
}
.gate-error[hidden] {
  display: none;
}
.gate-link {
  border: 0;
  background: none;
  padding: 8px 4px;
  color: var(--ink-3);
  font: 500 0.875rem/1.4 var(--font);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #5c618566;
  cursor: pointer;
}
.gate-link:hover {
  color: var(--ink);
}
/* Contact is open to everyone; it sits quietly under the panel. */
.gate-contact {
  margin-top: -20px;
}
@media (prefers-reduced-motion: reduce) {
  .gate-primary,
  .gate-panel input {
    transition: none;
  }
}
@media (max-width: 480px), (max-height: 640px) {
  .gate {
    gap: 26px;
  }
  .gate-stage {
    width: 124px;
    height: 130px;
  }
  .gate-mark {
    width: 108px;
    height: 108px;
  }
  .gate-floor {
    width: 72px;
    margin-left: -36px;
  }
  .gate-word {
    font-size: 1.875rem;
  }
}
