:root {
  --ink: #0b0c10;
  --ink-raised: #111318;
  --ink-soft: #17191f;
  --ivory: #f4f0e8;
  --ivory-muted: rgba(244, 240, 232, 0.62);
  --ivory-faint: rgba(244, 240, 232, 0.08);
  --gold: #cfb53b;
  --gold-soft: #c9a84c;
  --gold-faint: rgba(207, 181, 59, 0.13);
  --sage: #5c7a6b;
  --rust: #c45c3a;
  --border: rgba(244, 240, 232, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(207, 181, 59, 0.06), transparent 28rem),
    linear-gradient(180deg, #0b0c10 0%, #0d0f13 55%, #0b0c10 100%);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"], input[type="radio"], input[type="range"] { cursor: pointer; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(207, 181, 59, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.ambient::before, .ambient::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(207, 181, 59, 0.05);
  border-radius: inherit;
}

.ambient::after { inset: 30%; }
.ambient-one { top: -13rem; right: -9rem; }
.ambient-two { bottom: -17rem; left: -13rem; }

.site-header, .site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ivory);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(178px, 19vw, 220px);
  height: 82px;
  object-fit: contain;
  object-position: left center;
}

.header-meta, .eyebrow, .question-number, .section-label, .gate-label, .selection-meta, .preview-kicker, .progress-copy, .site-footer {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.header-meta { display: flex; align-items: center; gap: 9px; color: var(--ivory-muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px rgba(92, 122, 107, 0.09); }

main { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

.screen {
  min-height: calc(100vh - 176px);
  padding: clamp(64px, 10vh, 116px) 0 80px;
  animation: reveal 360ms ease-out both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--gold); margin-bottom: 22px; }
.eyebrow span { width: 28px; height: 1px; background: var(--gold); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }

.intro-screen h1, .question-screen h1, .preview-screen h1, .results-screen > .results-heading h1 {
  max-width: 890px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7.2vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h1 em { color: var(--gold); font-weight: 500; }

.intro-lede, .question-intro {
  max-width: 700px;
  color: var(--ivory-muted);
  font-size: clamp(17px, 2vw, 20px);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 56px 0 42px;
  border: 1px solid var(--border);
}

.intro-card { min-height: 200px; padding: 28px; position: relative; }
.intro-card + .intro-card { border-left: 1px solid var(--border); }
.card-number { font-family: var(--mono); font-size: 10px; color: var(--gold); letter-spacing: 0.16em; }
.intro-card h2 { font-size: 27px; margin: 42px 0 8px; }
.intro-card p { margin: 0; color: var(--ivory-muted); font-size: 14px; }

.intro-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.time-note { color: var(--ivory-muted); font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; }
.privacy-note { margin: 18px 0 0; color: rgba(244, 240, 232, 0.38); font-size: 12px; }

.button {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 2px;
  border: 1px solid var(--gold-soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  transition: transform 160ms ease-out, opacity 160ms ease-out, background 160ms ease-out;
}

.button:hover { opacity: 0.86; }
.button:active { transform: scale(0.97); }
.button-primary { background: var(--gold-soft); color: var(--ink); }
.button-secondary { background: transparent; color: var(--gold-soft); }
.button-secondary:hover { background: rgba(201, 168, 76, 0.1); }
.button-full { width: 100%; }

.progress-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 20px 0 14px;
  background: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(12px);
}

.progress-copy { display: flex; justify-content: space-between; color: var(--ivory-muted); margin-bottom: 8px; }
.progress-track { height: 2px; background: var(--ivory-faint); }
.progress-track div { width: 14%; height: 100%; background: var(--gold); transition: width 240ms ease-out; }

.assessment { padding-bottom: 70px; }
.question-screen { min-height: auto; padding-bottom: 38px; }
.question-number, .section-label, .gate-label, .preview-kicker { color: var(--gold); margin-bottom: 18px; }
.question-screen h1 { max-width: 900px; font-size: clamp(42px, 5.5vw, 66px); }

.field-grid { display: grid; gap: 20px; margin-top: 42px; }
.field-grid.two-column { grid-template-columns: repeat(2, 1fr); }
.field-grid.three-column { grid-template-columns: repeat(3, 1fr); }

.field { display: grid; gap: 9px; color: var(--ivory); }
.field > span, .inline-fieldset legend { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory-muted); }
.field > span em { text-transform: none; letter-spacing: normal; color: rgba(244, 240, 232, 0.38); }
.field-spaced { margin-top: 34px; }

.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  border: 1px solid rgba(244, 240, 232, 0.2);
  border-radius: 2px;
  background: rgba(244, 240, 232, 0.035);
  color: var(--ivory);
  padding: 14px 15px;
  transition: border-color 160ms ease-out, background 160ms ease-out;
}

.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(207, 181, 59, 0.48); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: rgba(207, 181, 59, 0.035); outline: none; }
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--ink-raised); }

.option-grid, .task-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 42px;
}
.option-grid-compact { grid-template-columns: repeat(2, 1fr); }

.choice-card, .task-card {
  position: relative;
  display: block;
  min-height: 102px;
  padding: 20px 20px 20px 52px;
  border: 1px solid var(--border);
  background: rgba(244, 240, 232, 0.025);
  cursor: pointer;
  transition: border-color 160ms ease-out, background 160ms ease-out, transform 160ms ease-out;
}

.choice-card:hover, .task-card:hover { border-color: rgba(207, 181, 59, 0.45); background: rgba(207, 181, 59, 0.035); }
.choice-card:active, .task-card:active { transform: scale(0.995); }
.choice-card input, .task-card input { position: absolute; left: 19px; top: 23px; accent-color: var(--gold); }
.choice-card strong, .task-card strong { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.15; margin-bottom: 6px; }
.choice-card small, .task-card small { display: block; color: var(--ivory-muted); line-height: 1.45; }
.choice-card:has(input:checked), .task-card:has(input:checked) { border-color: var(--gold); background: var(--gold-faint); box-shadow: inset 3px 0 0 var(--gold); }
.choice-card.is-disabled, .task-card.is-disabled { opacity: 0.35; cursor: not-allowed; }

.task-card { min-height: 118px; }
.task-card .task-index { position: absolute; right: 16px; top: 14px; font-family: var(--mono); font-size: 9px; color: rgba(244, 240, 232, 0.28); }
.selection-meta { display: flex; justify-content: space-between; margin-top: 14px; color: var(--ivory-muted); }

.range-field input { accent-color: var(--gold); width: 100%; }
.range-labels { display: flex; justify-content: space-between; color: var(--ivory-muted); font-size: 12px; }
.range-labels strong { color: var(--gold); font-family: var(--mono); font-size: 10px; }

.inline-fieldset { margin: 0; padding: 0; border: 0; align-content: end; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inline-fieldset legend { grid-column: 1 / -1; margin-bottom: 9px; }
.inline-fieldset label { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 14px; border: 1px solid rgba(244, 240, 232, 0.2); accent-color: var(--gold); }

.boundary-note { margin-top: 28px; padding: 16px 18px; border-left: 2px solid var(--sage); background: rgba(92, 122, 107, 0.1); color: var(--ivory-muted); font-size: 14px; }
.boundary-note strong { color: var(--ivory); }

.form-error { min-height: 26px; margin: 10px 0; color: #e88a6d; font-size: 14px; }
.form-navigation { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); }

.preview-screen { text-align: center; max-width: 920px; margin: 0 auto; }
.preview-orbit { width: 84px; height: 84px; border: 1px solid rgba(207, 181, 59, 0.32); border-radius: 50%; margin: 0 auto 28px; position: relative; }
.preview-orbit::before, .preview-orbit::after { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(207, 181, 59, 0.18); border-radius: 50%; }
.preview-orbit::after { inset: 28px; background: var(--gold); box-shadow: 0 0 24px rgba(207, 181, 59, 0.45); }
.preview-orbit span { position: absolute; width: 1px; height: 12px; background: var(--gold); left: 50%; bottom: -12px; }
.preview-screen h1 { max-width: 760px; margin-inline: auto; }
.preview-screen > p { max-width: 680px; margin: 0 auto 30px; color: var(--ivory-muted); font-size: 18px; }

.preview-scoreline { max-width: 680px; margin: 0 auto 54px; display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: end; text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ivory-muted); }
.preview-scoreline strong { color: var(--gold); font-size: 16px; }
.preview-scoreline > div { grid-column: 1 / -1; height: 4px; background: var(--ivory-faint); }
.preview-scoreline i { display: block; width: 0; height: 100%; background: var(--gold); transition: width 700ms ease-out; }

.gate-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 36px; border: 1px solid var(--border); text-align: left; background: rgba(244, 240, 232, 0.02); }
.gate-intro { align-self: center; }
.gate-intro h2 { margin-bottom: 12px; font-size: clamp(28px, 3vw, 38px); }
.gate-intro p { margin: 0; color: var(--ivory-muted); }
.benefit-list { list-style: none; padding: 0; margin: 16px 0 0; }
.benefit-list li { position: relative; padding: 8px 0 8px 25px; color: var(--ivory-muted); }
.benefit-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); }
.lead-form { display: grid; gap: 15px; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--ivory-muted); font-size: 12px; line-height: 1.45; }
.consent input { margin-top: 3px; accent-color: var(--gold); }
.consent a, .site-footer a { color: var(--gold-soft); }

.results-screen { padding-top: 70px; }
.results-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 36px; }
.results-heading > div:first-child { max-width: 760px; }
.results-heading h1 { font-size: clamp(42px, 5vw, 64px) !important; }
.results-heading p { color: var(--ivory-muted); margin-bottom: 0; }
.results-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.results-actions .button { min-height: 40px; padding: 9px 13px; font-size: 8px; }
.capture-status { min-height: 22px; margin-bottom: 12px; color: var(--sage); font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; }

.top-result-card { border: 1px solid rgba(207, 181, 59, 0.38); background: linear-gradient(135deg, rgba(207, 181, 59, 0.1), rgba(244, 240, 232, 0.02) 50%); }
.top-result-header { display: grid; grid-template-columns: 1fr auto; gap: 32px; padding: 34px; border-bottom: 1px solid var(--border); }
.rank-badge { display: inline-block; margin-bottom: 12px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--gold); }
.top-result-header h2 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 8px; }
.top-result-header p { max-width: 700px; color: var(--ivory-muted); margin: 0; }
.score-seal { width: 108px; height: 108px; border: 1px solid rgba(207, 181, 59, 0.48); border-radius: 50%; display: grid; place-content: center; text-align: center; }
.score-seal strong { font-family: var(--serif); font-size: 42px; line-height: 0.9; color: var(--gold); }
.score-seal span { font-family: var(--mono); font-size: 8px; color: var(--ivory-muted); letter-spacing: 0.14em; }

.top-result-body { display: grid; grid-template-columns: 1.15fr 0.85fr; }
.result-main, .result-side { padding: 34px; }
.result-side { border-left: 1px solid var(--border); }
.result-block + .result-block { margin-top: 28px; }
.result-block h3 { font-size: 24px; margin-bottom: 8px; }
.result-block p { color: var(--ivory-muted); margin-bottom: 0; }
.detail-list { display: grid; gap: 14px; margin: 0; }
.detail-list div { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.detail-list dt { font-family: var(--mono); color: var(--gold); font-size: 8px; letter-spacing: 0.13em; text-transform: uppercase; }
.detail-list dd { margin: 5px 0 0; color: var(--ivory-muted); font-size: 14px; }
.materials-list { margin: 10px 0 0; padding-left: 18px; color: var(--ivory-muted); }
.materials-list li + li { margin-top: 6px; }
.skill-match { margin-top: 24px; padding: 16px; border: 1px solid rgba(207, 181, 59, 0.22); background: rgba(207, 181, 59, 0.055); color: var(--ivory-muted); font-size: 13px; }
.skill-match strong { color: var(--gold); }

.next-opportunities { margin-top: 70px; }
.next-opportunities > h2 { font-size: clamp(34px, 4vw, 48px); max-width: 620px; }
.secondary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.secondary-card { padding: 28px; border: 1px solid var(--border); background: rgba(244, 240, 232, 0.025); }
.secondary-card header { display: flex; justify-content: space-between; gap: 20px; }
.secondary-card h3 { font-size: 27px; margin-bottom: 8px; }
.secondary-card .secondary-score { color: var(--gold); font-family: var(--serif); font-size: 30px; }
.secondary-card > p { color: var(--ivory-muted); }
.secondary-card dl { margin: 22px 0 0; }

.results-footer-card { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-top: 70px; padding: 34px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--border); background: rgba(207, 181, 59, 0.045); }
.results-footer-card h2 { font-size: 32px; margin-bottom: 8px; }
.results-footer-card p { max-width: 720px; color: var(--ivory-muted); margin-bottom: 0; }
.results-footer-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.site-footer { min-height: 80px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); color: rgba(244, 240, 232, 0.35); }
.footer-logo { display: block; width: 148px; height: auto; }

.legal-page { max-width: 820px; padding: clamp(64px, 9vw, 110px) 0; }
.legal-page h1 { font-size: clamp(44px, 6vw, 70px); line-height: 1; letter-spacing: -0.03em; }
.legal-page h2 { margin: 38px 0 8px; font-size: 28px; }
.legal-page p { color: var(--ivory-muted); }
.legal-page .legal-updated { color: var(--gold-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.legal-page .button { display: inline-flex; align-items: center; margin-top: 28px; text-decoration: none; }

@media (max-width: 820px) {
  .intro-grid, .field-grid.two-column, .field-grid.three-column, .option-grid, .task-grid, .gate-layout, .top-result-body, .secondary-grid { grid-template-columns: 1fr; }
  .intro-card + .intro-card { border-left: 0; border-top: 1px solid var(--border); }
  .site-header { min-height: 78px; }
  .header-meta { display: none; }
  .screen { padding-top: 54px; }
  .intro-card { min-height: 160px; }
  .intro-card h2 { margin-top: 28px; }
  .result-side { border-left: 0; border-top: 1px solid var(--border); }
  .results-heading { display: block; }
  .results-actions { justify-content: flex-start; margin-top: 20px; }
  .results-footer-card { grid-template-columns: 1fr; align-items: start; }
  .results-footer-actions { justify-content: flex-start; }
}

@media (max-width: 540px) {
  main, .site-header, .site-footer { width: min(100% - 28px, 1100px); }
  .brand-logo { width: 164px; height: 68px; }
  .intro-screen h1, .question-screen h1, .preview-screen h1 { font-size: 42px; }
  .intro-grid { margin-top: 38px; }
  .choice-card, .task-card { padding-left: 46px; }
  .gate-layout, .top-result-header, .result-main, .result-side, .secondary-card, .results-footer-card { padding: 23px; }
  .top-result-header { grid-template-columns: 1fr; }
  .score-seal { width: 92px; height: 92px; }
  .form-navigation .button { padding-inline: 14px; }
  .site-footer { min-height: 116px; display: grid; gap: 10px; align-content: center; }
  .footer-logo { width: 132px; }
}

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

@media print {
  body { background: white; color: #111; }
  .site-header, .site-footer, .progress-shell, .results-actions, .results-footer-card .button, .ambient { display: none !important; }
  main { width: 100%; }
  .screen { min-height: 0; padding: 20px 0; }
  .results-screen, .results-screen * { color: #111 !important; }
  .top-result-card, .secondary-card, .results-footer-card { break-inside: avoid; border-color: #999; background: transparent; }
}
