:root {
  --ink: #241c1f;
  --muted: #6f6264;
  --paper: #fffaf7;
  --surface: #ffffff;
  --sage: #61735f;
  --sage-dark: #334533;
  --rose: #d88c84;
  --rose-soft: #f5ded8;
  --gold: #b4874f;
  --line: #eadbd5;
  --shadow: 0 18px 50px rgba(61, 42, 36, 0.12);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(245, 222, 216, 0.64), rgba(255, 250, 247, 0) 420px),
    var(--paper);
  color: var(--ink);
}

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

.hero {
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: 42px 0 58px;
}

.hero__media {
  position: relative;
  width: min(100%, 360px);
  align-self: center;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #161313;
}

.intro-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(140deg, var(--rose-soft), #f8ede8 54%, #dfe8db);
}

.video-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  min-height: 74px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(36, 28, 31, 0.74);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

.video-play-button span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 29px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid #fff;
}

.video-play-button:hover {
  background: rgba(36, 28, 31, 0.86);
}

.hero__media.is-playing-with-sound .video-play-button {
  display: none;
}

.hero__content {
  padding: 28px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4.2rem, 11vw, 8.25rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.lead {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 22px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--sage-dark);
  color: #fff;
}

.button--quiet {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 5vw, 64px);
  padding: 44px 0 70px;
  border-top: 1px solid var(--line);
}

.details p,
.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rose);
}

.application-shell {
  margin-bottom: 70px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 36px rgba(61, 42, 36, 0.07);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.application-form {
  display: grid;
  gap: 24px;
}

.quiz-progress {
  display: grid;
}

.quiz-progress__track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadbd5;
}

.quiz-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--sage-dark);
  transition: width 220ms ease;
}

.quiz-step {
  min-height: 390px;
}

.quiz-step.is-active {
  display: grid;
  align-content: center;
  gap: 24px;
  animation: stepIn 180ms ease;
}

.quiz-step__prompt {
  max-width: 720px;
}

.quiz-step__prompt h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.quiz-step__prompt p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.6;
}

.quiz-kicker {
  margin: 0 0 12px !important;
  color: var(--sage-dark) !important;
  font-size: 0.78rem !important;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.quiz-actions .button[hidden] {
  display: none;
}

.quiz-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  border: 1px solid #d7c7bf;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.choice-card input,
.scale-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  width: 100%;
  padding: 18px;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

.choice-card:hover,
.scale-grid label:hover {
  transform: translateY(-1px);
  border-color: var(--sage);
  box-shadow: 0 10px 24px rgba(61, 42, 36, 0.09);
}

.choice-card:has(input:checked),
.scale-grid label:has(input:checked) {
  border-color: var(--sage-dark);
  background: #edf3e9;
  box-shadow: 0 0 0 3px rgba(97, 115, 95, 0.16);
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(42px, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
}

.scale-grid label {
  position: relative;
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid #d7c7bf;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.scale-grid span {
  font-size: 1.04rem;
  font-weight: 900;
}

.review-note {
  max-width: 620px;
  border-left: 4px solid var(--rose);
  padding: 14px 0 14px 18px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

.review-note p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label,
legend {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.field-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1.45;
}

.field-note--fieldset {
  margin: 4px 0 8px;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #d7c7bf;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  min-height: 112px;
  padding: 12px 14px;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(216, 140, 132, 0.3);
  border-color: var(--rose);
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.radio-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 650;
}

.radio-row input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--sage-dark);
  font-weight: 800;
}

.form-status[data-tone="error"] {
  color: #9c362f;
}

@media (max-width: 779px) {
  main {
    width: min(100% - 24px, 640px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 14px;
  }

  .hero__content {
    order: 1;
    padding: 6px 0 0;
  }

  .hero__media {
    order: 2;
    width: min(100%, 270px);
    justify-self: center;
    min-height: 0;
    aspect-ratio: 9 / 16;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(3.25rem, 18vw, 4.8rem);
  }

  .lead {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero__actions {
    margin-top: 22px;
  }

  .details,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .button,
  .quiz-actions {
    width: 100%;
  }

  .quiz-actions {
    flex-direction: column-reverse;
  }

  .quiz-step {
    min-height: 410px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .scale-grid {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }

  .application-shell {
    padding: 20px;
  }

}
