* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy-950: #050d18;
  --navy-900: #081321;
  --navy-800: #0c192a;
  --navy-700: #17273b;
  --gold: #d9b25f;
  --gold-light: #f0d18b;
  --cream: #fffdf7;

  --font-main:
    "Avenir Next",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;

  font-family: var(--font-main);

  color: white;

  background:
    radial-gradient(
      circle at 50% 47%,
      rgba(214, 179, 106, 0.16) 0%,
      rgba(214, 179, 106, 0.06) 25%,
      transparent 52%
    ),
    radial-gradient(
      circle at 18% 15%,
      rgba(120, 145, 175, 0.18),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      var(--navy-700) 0%,
      var(--navy-800) 48%,
      var(--navy-950) 100%
    );
}

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

.landing-page {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/*
 * The header and globe live inside one scene so Alex's requested
 * transition enlarges the entire opening page, not only the Earth.
 */
.landing-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1);
  transform-origin: 50% 52%;
  opacity: 1;
  filter: blur(0);
  will-change: transform, opacity, filter;
  transition:
    transform 1.05s cubic-bezier(0.18, 0.78, 0.2, 1),
    opacity 0.82s ease,
    filter 0.82s ease;
}

body.page-zooming .landing-scene {
  transform: scale(2.15);
  opacity: 0.12;
  filter: blur(4px);
}

body.portal-open .landing-scene {
  transform: scale(2.25);
  opacity: 0;
  filter: blur(7px);
}

.landing-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 50% 48%,
      transparent 25%,
      rgba(4, 10, 18, 0.18) 70%,
      rgba(4, 10, 18, 0.48) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.05),
      transparent 28%
    );
}

.landing-page::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 3;
  pointer-events: none;

  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 28px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 0 80px rgba(0, 0, 0, 0.08);
}

/* Header */

.site-header {
  position: fixed;
  top: 30px;
  left: 50%;
  z-index: 50;

  transform: translateX(-50%);
  transition:
    opacity 0.45s ease,
    transform 0.65s ease;
}

.brand {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  color: inherit;
  text-decoration: none;
}

.brand-name {
  position: relative;

  font-family: var(--font-main);

  font-size: clamp(2rem, 3.2vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.065em;
  white-space: nowrap;

  filter: drop-shadow(
    0 8px 22px rgba(7, 17, 31, 0.22)
  );
}

.brand-aura {
  color: var(--cream);
}

.brand-flo {
  margin-left: 0.03em;
  color: var(--gold);
  font-weight: 500;
}

.brand-name::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 50%;

  width: 42px;
  height: 1px;

  transform: translateX(-50%);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(217, 178, 95, 0.95),
    transparent
  );

  box-shadow: 0 0 12px rgba(217, 178, 95, 0.45);
}

.brand-tagline {
  margin-top: 14px;

  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.is-focusing .site-header {
  opacity: 0.18;
  transform: translateX(-50%) translateY(-10px) scale(0.94);
}

body.portal-open .site-header {
  opacity: 0;
}

/* Globe */

.hero {
  position: relative;
  z-index: 2;

  display: grid;
  place-items: center;

  width: 100%;
  height: 100%;
}

.globe-wrapper {
  position: relative;

  display: grid;
  place-items: center;

  width: min(78vw, 740px);
  height: min(78vw, 740px);
  margin-top: 105px;

  transition:
    opacity 0.6s ease,
    filter 0.6s ease;
}

body.portal-open .globe-wrapper {
  opacity: 0.12;
  filter: blur(6px);
}

.globe-viewport {
  position: absolute;
  inset: 0;

  /*
   * Keep the canvas transparent outside the Earth.
   * Removing the circular clipping allows the cyan halo and sunlight
   * to extend naturally beyond the globe while the page background stays unchanged.
   */
  overflow: visible;
  border-radius: 0;
  clip-path: none;
  -webkit-clip-path: none;
}

#earthCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;

  filter:
    drop-shadow(0 28px 50px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 16px rgba(110, 160, 205, 0.1));
}

#earthCanvas:active {
  cursor: grabbing;
}

.globe-hint {
  position: absolute;
  bottom: 8%;
  left: 50%;

  padding: 9px 16px;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;

  background: rgba(8, 18, 32, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  color: rgba(255, 247, 230, 0.76);

  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;

  pointer-events: none;

  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  animation: floatHint 4.5s ease-in-out infinite;
  transition: opacity 0.35s ease;
}

body.portal-open .globe-hint {
  opacity: 0;
}

@keyframes floatHint {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.64;
  }

  50% {
    transform: translate(-50%, -7px);
    opacity: 0.9;
  }
}

/* Location portal */

.location-portal {
  position: fixed;
  inset: 0;
  z-index: 100;

  display: grid;
  place-items: center;
  padding: 28px;
  overflow-y: auto;

  background:
    radial-gradient(
      circle at center,
      rgba(217, 178, 95, 0.13),
      transparent 36%
    ),
    rgba(3, 9, 17, 0.8);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  clip-path: circle(0% at 50% 50%);

  transition:
    opacity 0.42s ease,
    visibility 0.42s ease,
    clip-path 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.location-portal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px
    );

  background-size: 64px 64px;
  mask-image: radial-gradient(circle, black 10%, transparent 75%);
}

.location-portal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  clip-path: circle(150% at 50% 50%);
}

.location-shell {
  position: relative;

  width: min(94vw, 1180px);
  min-height: min(82vh, 680px);

  display: grid;
  grid-template-columns:
    minmax(330px, 0.9fr)
    minmax(480px, 1.1fr);
  gap: 0;

  overflow: hidden;

  border: 1px solid rgba(217, 178, 95, 0.25);
  border-radius: 32px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.075),
      rgba(7, 17, 31, 0.96)
    );

  box-shadow:
    0 35px 95px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  transform: translateY(24px) scale(0.96);
  opacity: 0;

  transition:
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s,
    opacity 0.55s ease 0.12s;
}

.location-portal.active .location-shell {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.close-overlay {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;

  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;

  color: #fff8e8;
  background: rgba(4, 11, 20, 0.5);
  backdrop-filter: blur(12px);

  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.close-overlay:hover {
  transform: rotate(5deg) scale(1.05);
  border-color: rgba(217, 178, 95, 0.35);
  background: rgba(217, 178, 95, 0.16);
}

/* Left inquiry placeholder */

.inquiry-placeholder {
  display: flex;
  flex-direction: column;

  min-height: 630px;
  margin: 26px;

  overflow-y: auto;
  overflow-x: hidden;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;

  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(217, 178, 95, 0.07),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #13263b,
      #07111e
    );

  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.3),
    0 16px 45px rgba(0, 0, 0, 0.16);
}

/* Inquiry form */

.inquiry-form {
  width: 100%;

  display: flex;
  flex-direction: column;

  padding: 40px 40px 34px;
}

.inquiry-form-header {
  margin-bottom: 24px;
}

.inquiry-form-eyebrow {
  margin-bottom: 13px;

  color: var(--gold);

  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.inquiry-form-header h2 {
  margin-bottom: 10px;

  color: rgba(255, 253, 247, 0.92);

  font-family: var(--font-main);
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.inquiry-form-intro {
  max-width: 420px;

  color: rgba(255, 255, 255, 0.5);

  font-size: 0.84rem;
  line-height: 1.6;
}

.inquiry-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;

  margin-bottom: 22px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  color: rgba(255, 255, 255, 0.8);

  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.field-optional {
  color: rgba(255, 255, 255, 0.32);

  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;

  background: rgba(255, 255, 255, 0.03);

  color: var(--cream);

  font-family: var(--font-main);
  font-size: 0.9rem;

  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.form-field textarea {
  min-height: 96px;

  line-height: 1.5;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;

  border-color: rgba(217, 178, 95, 0.5);

  background: rgba(217, 178, 95, 0.04);

  box-shadow:
    0 0 0 1px rgba(217, 178, 95, 0.3),
    0 0 18px rgba(217, 178, 95, 0.16);
}

.form-field input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(226, 122, 122, 0.55);
}

.form-field-honeypot {
  position: absolute;

  width: 1px;
  height: 1px;
  overflow: hidden;

  white-space: nowrap;
  clip: rect(0 0 0 0);
}

.inquiry-form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;

  margin-bottom: 6px;
}

.inquiry-submit {
  width: 100%;
  padding: 15px 20px;

  border: none;
  border-radius: 6px;

  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-950);

  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;

  cursor: pointer;

  box-shadow: 0 14px 34px rgba(217, 178, 95, 0.22);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease,
    opacity 0.25s ease;
}

.inquiry-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 40px rgba(217, 178, 95, 0.3);
}

.inquiry-submit:disabled {
  cursor: not-allowed;
  transform: none;

  opacity: 0.62;
  box-shadow: none;
}

.inquiry-secondary {
  padding: 4px 6px;

  border: none;
  background: transparent;

  color: rgba(255, 255, 255, 0.62);
  text-align: center;

  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.18);
  text-underline-offset: 3px;

  cursor: pointer;

  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.inquiry-secondary:hover {
  color: var(--gold);
  text-decoration-color: rgba(217, 178, 95, 0.55);
}

.inquiry-form-status {
  min-height: 0;
  margin-bottom: 6px;

  color: rgba(255, 255, 255, 0.7);

  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.inquiry-form-status[data-state="success"] {
  color: #8fd9ac;
}

.inquiry-form-status[data-state="error"] {
  color: #e79a9a;
}

.inquiry-form-response {
  margin-bottom: 4px;

  color: rgba(255, 255, 255, 0.36);

  font-size: 0.7rem;
  line-height: 1.6;
  text-align: center;
}

.inquiry-form-privacy {
  color: rgba(255, 255, 255, 0.32);

  font-size: 0.68rem;
  line-height: 1.6;
  text-align: center;
}

.inquiry-form-privacy a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inquiry-form-privacy a:hover {
  color: var(--gold);
}

/* Right launch panel */

.portal-panel.launch-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 66px 54px 42px;

  text-align: center;
}

.launch-panel .eyebrow {
  margin-bottom: 22px;

  color: var(--gold);

  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.launch-panel h1 {
  margin-bottom: 24px;

  color: var(--cream);

  font-family: var(--font-main);

  font-size: clamp(3rem, 4.8vw, 4.9rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.07em;

  text-wrap: balance;
}

.location-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin: 0 auto 25px;
  padding: 0;

  border: 0;
  border-radius: 0;

  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  box-shadow: none;

  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* .location-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: var(--gold);

  box-shadow: 0 0 10px rgba(217, 178, 95, 0.55);
  animation: locationDotPulse 1.9s ease-in-out infinite;
} */

.launch-panel .coming-text {
  max-width: 550px;
  margin: 0 auto 30px;

  color: rgba(255, 255, 255, 0.62);

  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.008em;
}

.location-divider {
  width: min(100%, 560px);
  height: 1px;
  margin: 0 auto 22px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(217, 178, 95, 0.38),
    transparent
  );
}

.launch-label {
  margin-bottom: 16px;

  color: rgba(255, 255, 255, 0.48);

  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.countdown {
  width: min(100%, 590px);

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.countdown div {
  min-width: 0;
  min-height: 126px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 22px 10px;

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.018)
    );

  text-align: center;
}

.countdown span {
  display: block;

  color: var(--gold-light);

  font-family: var(--font-main);

  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.countdown small {
  display: block;
  margin-top: 13px;

  color: rgba(255, 255, 255, 0.46);

  font-family: var(--font-main);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Subtle contact links */

.contact-links {
  width: min(100%, 590px);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  margin-top: 24px;
  padding-top: 18px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-links-label {
  color: rgba(255, 255, 255, 0.42);

  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-links-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-links-actions a {
  color: rgba(255, 255, 255, 0.68);

  font-size: 0.76rem;
  text-decoration: none;

  transition: color 0.2s ease;
}

.contact-links-actions a:hover {
  color: var(--gold);
}

.contact-separator {
  width: 3px;
  height: 3px;

  border-radius: 50%;
  background: rgba(217, 178, 95, 0.5);
}

/* Animations */

@keyframes locationDotPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

/* Responsive */

@media (max-width: 900px) {
  .location-portal {
    overflow-y: auto;
    place-items: start center;
    padding: 18px;
  }

  .location-shell {
    width: min(96vw, 680px);
    min-height: auto;
    grid-template-columns: 1fr;
    margin: auto 0;
  }

  .inquiry-placeholder {
    min-height: auto;
    margin: 18px;
  }

  .inquiry-form {
    padding: 32px 30px 28px;
  }

  .portal-panel.launch-panel {
    padding: 34px 28px 32px;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 22px;
  }

  .brand-tagline {
    max-width: 88vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .landing-page::after {
    inset: 10px;
    border-radius: 20px;
  }

  .globe-wrapper {
    width: min(88vw, 430px);
    height: min(88vw, 430px);
    margin-top: 34px;
  }

  .globe-hint {
    bottom: 4%;
    padding: 8px 13px;
    font-size: 0.68rem;
  }
}

@media (max-width: 560px) {
  .location-portal {
    padding: 10px;
  }

  .location-shell {
    width: 100%;
    border-radius: 24px;
  }

  .close-overlay {
    top: 14px;
    right: 14px;
  }

  .inquiry-placeholder {
    min-height: auto;
    margin: 10px;
    border-radius: 19px;
  }

  .inquiry-form {
    padding: 26px 22px 24px;
  }

  .inquiry-form-grid {
    grid-template-columns: 1fr;
  }

  .portal-panel.launch-panel {
    padding: 32px 16px 25px;
  }

  .launch-panel h1 {
  font-size: clamp(2.45rem, 11vw, 3.35rem);
  line-height: 0.98;
}

  .launch-panel .coming-text {
  max-width: 560px;
  margin: 0 auto 32px;

  color: rgba(255, 255, 255, 0.66);

  font-size: 1rem;
  line-height: 1.75;
}

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-links {
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
