:root {
  --black: #090909;
  --charcoal: #11110f;
  --ink: #171612;
  --gold: #b98a46;
  --gold-light: #d7b476;
  --ivory: #eee8dc;
  --muted: #a69d90;
  --line: rgba(185, 138, 70, 0.45);
  --panel: rgba(12, 12, 11, 0.98);
  --error: #e0a28f;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  background: var(--black);
  color: var(--ivory);
}

body {
  min-height: 100svh;
  overflow: hidden;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 18%, rgba(100, 72, 35, .13), transparent 34%),
    linear-gradient(160deg, #080808 0%, #0d0d0c 50%, #070707 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

[hidden] { display: none !important; }

.ambient {
  position: fixed;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .08;
  pointer-events: none;
}
.ambient-one { top: -25rem; left: -15rem; background: #b98a46; }
.ambient-two { bottom: -28rem; right: -18rem; background: #6e4c24; }

.page-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.teaser {
  width: min(760px, 100%);
  margin: auto;
  text-align: center;
  animation: pageFade 1.4s ease both;
}

.medallion {
  width: clamp(110px, 14vw, 178px);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  animation: medallionIn 1.6s cubic-bezier(.22,.9,.26,1) both;
}

.eyebrow,
.subline,
.modal-kicker {
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--gold-light);
}

.eyebrow {
  margin: 1.35rem 0 .6rem;
  font-size: clamp(.68rem, 1.3vw, .82rem);
}

h1, h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: .94; }

.rule {
  width: 68px;
  height: 1px;
  margin: 1.55rem auto 1.45rem;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.subline { margin: 1.4rem 0 .45rem; font-size: clamp(.73rem, 1.35vw, .9rem); }
.coming { margin: 0; color: var(--muted); font-size: clamp(.82rem, 1.5vw, 1rem); }

.primary-button,
.submit-button,
.outline-button {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .2em;
  cursor: pointer;
  transition: .25s ease;
}

.primary-button { margin-top: 1.6rem; padding: 1rem 1.65rem; min-width: min(310px, 100%); }
.primary-button:hover,
.primary-button:focus-visible,
.outline-button:hover,
.outline-button:focus-visible {
  background: var(--gold);
  color: #0b0a08;
  box-shadow: 0 10px 35px rgba(185,138,70,.2);
  transform: translateY(-1px);
}

.discovery-link,
.text-button {
  border: 0;
  background: transparent;
  color: #8f867a;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: .1em;
  cursor: pointer;
}

.discovery-link { display: block; margin: 1.4rem auto 0; padding: .35rem; font-size: 1rem; }
.discovery-link:hover,
.discovery-link:focus-visible,
.text-button:hover,
.text-button:focus-visible { color: var(--gold-light); }

footer {
  display: flex;
  justify-content: center;
  gap: .7rem;
  color: #625d55;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .58rem;
}

.modal {
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  border: 1px solid var(--line);
  padding: 0;
  color: var(--ivory);
  background: transparent;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
}

.modal::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(7px); }

.modal-card {
  position: relative;
  margin: 0;
  padding: clamp(1.6rem, 5vw, 3rem);
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(185,138,70,.08), transparent 32%),
    var(--panel);
}

.close-button {
  position: absolute;
  top: .65rem;
  right: .9rem;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #8d8478;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2;
}

.modal-kicker { margin: 0 0 .55rem; font-size: .68rem; }
.modal h2 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: .07em; }
.modal-copy,
.story-card p { color: #afa699; line-height: 1.65; }

.flow-step { animation: stepIn .35s ease both; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label {
  display: grid;
  gap: .45rem;
  margin-top: 1rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .64rem;
}

label em { color: #777168; font-style: normal; }

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 0;
  padding: .95rem 1rem;
  color: #eee8dc;
  background: rgba(255,255,255,.025);
  font: inherit;
  outline: none;
}

textarea { resize: vertical; min-height: 7rem; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }

.submit-button {
  width: 100%;
  margin-top: 1.25rem;
  padding: 1rem;
  background: linear-gradient(90deg, #a97939, #d2aa68, #a97939);
  color: #0b0a08;
  border: 0;
  font-weight: 500;
}
.submit-button:hover,
.submit-button:focus-visible { filter: brightness(1.08); }
.submit-button:disabled { opacity: .58; cursor: wait; }

.button-stack { margin-top: 1.4rem; }
.text-button { display: block; margin: .9rem auto 0; padding: .45rem .7rem; font-size: 1rem; }
.outline-button { margin-top: 1.2rem; padding: .9rem 1.2rem; }

.privacy-note,
.form-status,
.field-help {
  color: #777168;
  font-size: .72rem;
}
.privacy-note,
.form-status { text-align: center; }
.form-status { min-height: 1.2rem; color: var(--gold-light); }

.choice-fieldset {
  border: 0;
  padding: 0;
  margin: 1.35rem 0 0;
}
.choice-fieldset legend {
  padding: 0;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .64rem;
}
.choice-fieldset legend span { color: #777168; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: .7rem; }
.choice-card {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 52px;
  margin: 0;
  padding: .75rem;
  border: 1px solid rgba(255,255,255,.12);
  color: #c8c0b4;
  text-transform: none;
  letter-spacing: .02em;
  font-size: .8rem;
  cursor: pointer;
  transition: .2s ease;
}
.choice-card:has(input:checked) { border-color: var(--gold); background: rgba(185,138,70,.08); color: var(--ivory); }
.choice-card:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.choice-card input { width: 16px; height: 16px; margin: 0; accent-color: var(--gold); }
.field-help { margin: .55rem 0 0; }
.error-text { color: var(--error); }

.story-card,
.completion-step { text-align: center; }
.story-signoff {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  color: var(--gold-light) !important;
}

@keyframes pageFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes medallionIn { from { opacity: 0; transform: scale(.88) rotate(-2deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .page-shell { padding: 1rem 1rem .9rem; }
  .field-grid,
  .choice-grid { grid-template-columns: 1fr; gap: 0; }
  .choice-grid { gap: .55rem; }
  .teaser { transform: translateY(-1vh); }
  .medallion { width: 108px; }
  h1 { font-size: clamp(2.35rem, 13vw, 3.5rem); }
  footer { font-size: .48rem; gap: .4rem; }
  .modal { width: calc(100% - 1rem); max-height: calc(100svh - 1rem); }
  .modal-card { max-height: calc(100svh - 1rem); }
}

@media (max-height: 720px) {
  .medallion { width: 92px; }
  .eyebrow { margin-top: .8rem; }
  .rule { margin: 1rem auto; }
  .primary-button { margin-top: 1.15rem; padding: .8rem 1.4rem; }
  .discovery-link { margin-top: .9rem; }
}

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