:root {
  --ink: #17324d;
  --ink-soft: #496079;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dce3e6;
  --mint: #dcebe3;
  --mint-deep: #2d7a74;
  --coral: #e86f51;
  --gold: #e4a52d;
  --shadow: 0 28px 70px rgba(23, 50, 77, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 18%, rgba(232, 111, 81, 0.12) 0 130px, transparent 131px),
    radial-gradient(circle at 94% 74%, rgba(45, 122, 116, 0.12) 0 180px, transparent 181px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px 4px;
  background: var(--ink);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 24px;
  font-style: italic;
  box-shadow: 5px 5px 0 var(--gold);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.animal-row {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.animal-row span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
}

.animal-row span:nth-child(1) { background: #fae3dc; }
.animal-row span:nth-child(2) { background: #f8e9c7; }
.animal-row span:nth-child(3) { background: #dcebe3; }
.animal-row span:nth-child(4) { background: #e2e6f5; }

main {
  display: grid;
  align-items: center;
  padding: 54px 0 74px;
}

.view--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.82fr);
  gap: clamp(56px, 8vw, 112px);
  align-items: center;
}

.eyebrow,
.step-label {
  margin: 0 0 12px;
  color: var(--mint-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.intro-copy h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(48px, 6.5vw, 82px);
  line-height: 0.98;
}

.lede {
  max-width: 630px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.quiz-facts {
  display: flex;
  gap: clamp(24px, 5vw, 58px);
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.quiz-facts strong,
.quiz-facts span {
  display: block;
}

.quiz-facts strong {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
}

.quiz-facts span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.identity-card,
.question-card,
.status-card {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(23, 50, 77, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.identity-card::before,
.question-card::before {
  position: absolute;
  top: -9px;
  right: 26px;
  width: 68px;
  height: 18px;
  border-radius: 2px;
  background: rgba(228, 165, 45, 0.72);
  content: "";
  transform: rotate(2deg);
}

.identity-card h2,
.question-card h1,
.status-card h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
}

.identity-card > div > p:last-child {
  margin: 12px 0 30px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.field {
  display: block;
  margin-top: 18px;
}

.field span {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #cbd5dc;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input::placeholder {
  color: #8a9aab;
}

.field input:focus {
  border-color: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(45, 122, 116, 0.12);
}

.field input[aria-invalid="true"] {
  border-color: #b43c2d;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:focus-visible,
.option-card:has(input:focus-visible) {
  outline: 3px solid rgba(45, 122, 116, 0.32);
  outline-offset: 3px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 50, 77, 0.2);
}

.button--primary:hover:not(:disabled) {
  background: #214464;
  box-shadow: 0 12px 24px rgba(23, 50, 77, 0.24);
}

.button--secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button--secondary:hover:not(:disabled) {
  background: #f3f5f4;
}

.button--wide {
  width: 100%;
  margin-top: 24px;
}

.form-error {
  min-height: 20px;
  margin: 10px 0 -4px;
  color: #9b2f25;
  font-size: 13px;
  font-weight: 700;
}

.quiz-view {
  width: min(760px, 100%);
  margin: 0 auto;
}

.progress-block {
  margin: 0 8px 24px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe5e3;
}

.progress-fill {
  width: 5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint-deep), #5ca18f);
  transition: width 300ms ease;
}

.question-card {
  min-height: 510px;
  display: flex;
  flex-direction: column;
}

.question-card h1 {
  max-width: 550px;
  margin-bottom: 14px;
}

.word-help {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.word-help-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--mint-deep);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.word-help-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.word-help-button:focus-visible {
  outline: 3px solid rgba(45, 122, 116, 0.28);
  outline-offset: 3px;
  border-radius: 4px;
}

.word-help-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

.word-help p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.option-card {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid #d8dfe3;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.option-card:hover {
  border-color: #91aaa6;
  transform: translateY(-1px);
}

.option-card:has(input:checked) {
  border-color: var(--mint-deep);
  background: #edf6f1;
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.option-definition {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.radio-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #aebbc3;
  border-radius: 50%;
  background: #fff;
}

.option-card:has(input:checked) .radio-mark {
  border-color: var(--mint-deep);
}

.option-card:has(input:checked) .radio-mark::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint-deep);
  content: "";
}

.question-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 34px;
}

.result-view {
  width: min(880px, 100%);
  margin: 0 auto;
}

.result-hero {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(24px, 6vw, 54px);
  align-items: center;
  padding: clamp(30px, 5vw, 56px);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.result-animal {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--result-accent, var(--gold));
  font-size: 76px;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.14);
}

.result-animal--tie {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 18px;
  font-size: 42px;
  line-height: 1;
}

.result-animal--tie span {
  display: grid;
  place-items: center;
}

.result-hero .eyebrow {
  color: #b8d9ce;
}

.result-hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1;
}

.result-hero p:last-child {
  margin: 18px 0 0;
  color: #dbe6ef;
  font-size: 17px;
  line-height: 1.55;
}

.profile-insights {
  margin-top: 20px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
}

.profile-insights-header {
  max-width: 720px;
  margin-bottom: 24px;
}

.profile-insights-header .eyebrow {
  margin-bottom: 8px;
}

.profile-insights-header h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
}

.profile-insights-header > p:last-child {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.profile-insight-list {
  display: grid;
  gap: 18px;
}

.profile-insight {
  overflow: hidden;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid color-mix(in srgb, var(--profile-accent) 28%, var(--line));
  border-top: 5px solid var(--profile-accent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--profile-accent) 5%, #fff);
}

.profile-insight-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-insight-animal {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--profile-accent) 18%, #fff);
  font-size: 29px;
}

.profile-insight-heading p {
  margin: 0 0 3px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-insight-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.profile-overview {
  margin: 18px 0 22px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

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

.profile-detail-grid section {
  padding: 18px;
  border: 1px solid rgba(23, 50, 77, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.profile-detail-grid h4 {
  margin: 0 0 9px;
  font-size: 14px;
}

.profile-detail-grid p,
.profile-detail-grid ul {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.profile-detail-grid ul {
  padding-left: 18px;
}

.profile-detail-grid li + li {
  margin-top: 5px;
}

.profile-validation {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--profile-accent) 10%, #fff);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.profile-validation strong {
  color: var(--ink);
}

.profile-disclaimer {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.score-panel {
  margin-top: 20px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
}

.score-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.score-panel h2 {
  margin: 0;
  font-size: 28px;
}

.score-panel-header p {
  max-width: 400px;
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.score-list {
  display: grid;
  gap: 16px;
}

.score-row-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 800;
}

.score-row-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ecec;
}

.score-row-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--score-color);
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.status-card {
  width: min(560px, 100%);
  margin: 0 auto;
  text-align: center;
}

.status-card p {
  margin: 14px 0 24px;
  color: var(--ink-soft);
}

.status-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #fae3dc;
  color: #9b2f25;
  font-size: 26px;
  font-weight: 900;
}

footer {
  padding: 20px 0 30px;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 30px, 680px);
  }

  .site-header {
    min-height: 88px;
  }

  main {
    align-items: start;
    padding: 34px 0 56px;
  }

  .view--split {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .intro-copy h1 {
    max-width: 620px;
  }

  .identity-card {
    width: min(100%, 560px);
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 22px, 520px);
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    font-size: 9px;
  }

  .animal-row {
    display: none;
  }

  main {
    padding-top: 24px;
  }

  .intro-copy h1 {
    font-size: 47px;
  }

  .quiz-facts {
    gap: 22px;
  }

  .quiz-facts strong {
    font-size: 25px;
  }

  .quiz-facts span {
    max-width: 74px;
  }

  .identity-card,
  .question-card,
  .status-card {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .question-card {
    min-height: 530px;
  }

  .options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .option-card {
    min-height: 60px;
    padding: 12px 14px;
    font-size: 16px;
  }

  .word-help {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .progress-copy span:last-child {
    display: none;
  }

  .question-actions .button {
    min-height: 48px;
    padding: 0 16px;
  }

  .result-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .result-animal {
    width: 112px;
    height: 112px;
    margin: 0 auto;
    font-size: 58px;
  }

  .result-animal--tie {
    gap: 3px;
    padding: 13px;
    font-size: 33px;
  }

  .score-panel-header {
    display: block;
  }

  .score-panel-header p {
    margin-top: 8px;
  }

  .profile-detail-grid {
    grid-template-columns: 1fr;
  }
}

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