.modal-close {
  position: sticky;
  top: 12px;
  z-index: 4;
  float: right;
  min-width: 88px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  padding: 12px 15px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
  cursor: pointer;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.onboarding-actions .primary-button {
  display: block;
  width: 100%;
  border: 2px solid var(--gold) !important;
  background: var(--gold) !important;
  color: var(--ink) !important;
  opacity: 1 !important;
}

.return-button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .55);
  background: transparent;
  color: var(--cream);
  padding: 16px 20px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
  cursor: pointer;
}

.onboarding input:invalid:not(:placeholder-shown) {
  border-color: #ffcb4c;
  outline: 2px solid rgba(255, 203, 76, .22);
}

@media (max-width: 640px) {
  .modal-close {
    position: sticky;
    top: 10px;
    float: right;
  }

  .onboarding-actions {
    grid-template-columns: 1fr;
  }
}

/* Keep heading words spaced and inside the 375px viewport. */
h1,
h2,
h3,
.onboarding-panel h2 {
  overflow-wrap: break-word;
  max-width: 100%;
}

h1 {
  font-size: clamp(2.75rem, 10vw, 10rem);
}

.section-head h2 {
  font-size: clamp(2.4rem, 8vw, 8rem);
}

.broadcast-card h3 {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
}

.onboarding-panel h2 {
  font-size: clamp(2.2rem, 9vw, 6rem);
  line-height: 0.9;
}

.hero-copy,
.section-head,
.onboarding-panel,
.broadcast-card,
.experience-nav {
  min-width: 0;
  max-width: 100%;
}

.experience-nav {
  overscroll-behavior-x: contain;
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.5rem, 12vw, 3.15rem);
    line-height: 0.92;
    letter-spacing: -0.02em;
  }

  .section-head h2 {
    font-size: clamp(2.25rem, 11vw, 3rem);
    line-height: 0.92;
  }

  .broadcast-card h3 {
    font-size: clamp(2.1rem, 11vw, 2.7rem);
  }

  .onboarding-panel h2 {
    font-size: clamp(2rem, 10.5vw, 2.55rem);
  }

  .recap-card h3 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }
}
