:root {
  --paper: #f4f0e8;
  --paper-light: #fcfaf5;
  --paper-deep: #ebe4d8;
  --ink: #142a3a;
  --ink-soft: #536778;
  --wine: #7b2333;
  --wine-dark: #571622;
  --wine-light: #ead7d8;
  --line: #d8cfc1;
  --green: #466d3f;
  --green-soft: #edf0e2;
  --amber: #a66a25;
  --amber-soft: #f5ece1;
  --blue: #345777;
  --blue-soft: #e8eef3;
  --shadow: 0 18px 45px rgba(20, 42, 58, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.75), transparent 32%),
    linear-gradient(rgba(123, 35, 51, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 6px 6px, auto;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #b77c43;
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 16px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header,
.quiz-header {
  width: min(1360px, calc(100% - 80px));
  min-height: 78px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-header nav a {
  position: relative;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--wine);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.brand {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand--button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero {
  width: min(1300px, calc(100% - 96px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: clamp(48px, 6vh, 78px) 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(480px, 0.96fr);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
}

.hero-copy {
  animation: rise-in 450ms ease-out both;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--wine);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(4.2rem, 6.2vw, 6.9rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.65vw, 1.48rem);
  line-height: 1.48;
}

.hero-actions {
  min-height: 78px;
}

.primary-button,
.secondary-button,
.text-button,
.exit-button {
  border: 0;
  cursor: pointer;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.primary-button {
  min-height: 62px;
  padding: 16px 24px;
  border: 1px solid var(--wine);
  border-radius: 5px;
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  box-shadow: 0 10px 24px rgba(87, 22, 34, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 1rem;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 28px rgba(87, 22, 34, 0.25);
}

.primary-button span {
  font-size: 1.35em;
  transition: transform 160ms ease;
}

.primary-button:hover:not(:disabled) span {
  transform: translateX(4px);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.text-button {
  margin-left: 20px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--ink);
  background: transparent;
}

.resume-note {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.metric-strip {
  max-width: 700px;
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-strip > div {
  min-height: 88px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 34px auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: center;
}

.metric-strip > div + div {
  border-left: 1px solid var(--line);
}

.metric-strip strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.metric-strip > div > span:last-child {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.metric-icon {
  width: 28px;
  height: 28px;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--wine);
}

.metric-icon--grid {
  background:
    linear-gradient(90deg, currentColor 5px, transparent 5px 9px, currentColor 9px 14px, transparent 14px 18px, currentColor 18px 23px),
    linear-gradient(currentColor 5px, transparent 5px 9px, currentColor 9px 14px, transparent 14px 18px, currentColor 18px 23px);
}

.metric-icon--ring {
  border: 3px solid currentColor;
  border-radius: 7px;
  transform: rotate(30deg);
}

.metric-icon--ring::after {
  width: 8px;
  height: 8px;
  margin: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  display: block;
}

.metric-icon--person {
  position: relative;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50% 50% 6px 6px;
}

.metric-icon--person::before {
  position: absolute;
  top: -8px;
  left: 7px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.profile-preview {
  min-width: 0;
  border: 1px solid rgba(20, 42, 58, 0.12);
  border-radius: 8px;
  background: rgba(252, 250, 245, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise-in 500ms 80ms ease-out both;
}

.profile-preview__header {
  padding: 18px 30px;
  background: linear-gradient(135deg, var(--ink), #0a1c2d);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.profile-preview .radar-chart {
  width: min(100%, 480px);
  margin: 12px auto 0;
  display: block;
}

.profile-preview__legend {
  margin: 0 28px;
  padding: 18px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.profile-preview__legend span {
  min-height: 48px;
  padding: 12px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.legend-strength {
  background: var(--green-soft);
  color: var(--green);
}

.legend-risk {
  background: var(--amber-soft);
  color: var(--wine);
}

.legend-focus {
  background: var(--blue-soft);
  color: var(--blue);
}

.profile-preview > p {
  margin: 0;
  padding: 18px 30px 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.radar-chart {
  overflow: visible;
}

.radar-grid,
.radar-axis {
  fill: none;
  stroke: #a8b3ba;
  stroke-width: 0.8;
}

.radar-axis {
  opacity: 0.8;
}

.radar-value {
  fill: rgba(123, 35, 51, 0.2);
  stroke: var(--wine);
  stroke-width: 2.4;
  transform-origin: center;
  animation: radar-grow 650ms 160ms ease-out both;
}

.radar-dot {
  fill: var(--wine);
  stroke: var(--paper-light);
  stroke-width: 1.5;
}

.radar-label {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 650;
}

.intro-section,
.dimension-results,
.plan-section {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: 110px 0;
}

.intro-section {
  border-top: 1px solid var(--line);
}

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

.section-heading h2,
.how-section h2,
.method-section h2 {
  margin-bottom: 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.7rem, 4.5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.section-heading > p:last-child {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.dimension-intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.dimension-intro-grid article {
  min-height: 270px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(252, 250, 245, 0.45);
}

.dimension-intro-grid article > span {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.dimension-intro-grid h3 {
  margin: 26px 0 14px;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.1;
}

.dimension-intro-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.65;
}

.how-section {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto 110px;
  padding: 72px;
  background: linear-gradient(135deg, var(--ink), #0b2031);
  color: #fff;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px 88px;
}

.how-section .eyebrow {
  color: #d59ba5;
}

.how-section h2 {
  color: #fff;
}

.how-list p {
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd4db;
}

.how-list strong {
  color: #fff;
  display: block;
}

.primary-button--light {
  grid-column: 1 / 3;
  justify-self: start;
  border-color: #fff;
  background: #fff;
  box-shadow: none;
  color: var(--ink);
}

.site-footer {
  padding: 70px max(40px, calc((100vw - 1180px) / 2));
  background: #0c1e2b;
  color: #e7ecef;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr;
  gap: 48px;
}

.footer-eyebrow {
  margin-bottom: 16px;
  color: #d59ba5;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-company {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.site-footer address {
  color: #9fb0bc;
  font-size: 0.9rem;
  font-style: normal;
}

.footer-contact,
.site-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer a:hover {
  color: #d59ba5;
}

.footer-bottom {
  margin-top: 55px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #8095a4;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.76rem;
}

/* Quiz */

.quiz-shell {
  min-height: 100vh;
  background:
    linear-gradient(rgba(123, 35, 51, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 6px 6px, auto;
}

.quiz-header {
  width: min(1180px, calc(100% - 80px));
}

.exit-button {
  padding: 8px 0;
  border-bottom: 1px solid var(--ink-soft);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.quiz-main {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 64px;
}

.quiz-progress-copy {
  margin-bottom: 8px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
}

.quiz-progress {
  height: 5px;
  margin-bottom: 34px;
  background: #ddd5c8;
  overflow: hidden;
}

.quiz-progress span {
  width: var(--progress);
  height: 100%;
  background: var(--wine);
  display: block;
  transition: width 280ms ease;
}

.question-card {
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--line);
  border-top: 6px solid var(--ink);
  background: rgba(252, 250, 245, 0.96);
  box-shadow: 0 14px 36px rgba(20, 42, 58, 0.1);
}

.question-card h1 {
  max-width: 820px;
  margin-bottom: 36px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.1vw, 3.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.question-card h1:focus {
  outline: 0;
}

.question-card fieldset {
  padding: 0;
  border: 0;
}

.answer-list {
  display: grid;
  gap: 12px;
}

.answer-option {
  min-height: 78px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: #fffdfa;
  color: var(--ink);
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.answer-option:hover {
  border-color: #aa8f7c;
  transform: translateX(3px);
}

.answer-option--selected {
  border-color: var(--wine);
  background: #f5e8e8;
  box-shadow: inset 4px 0 0 var(--wine);
}

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

.answer-option:has(input:focus-visible) {
  outline: 3px solid #b77c43;
  outline-offset: 3px;
}

.answer-letter {
  width: 34px;
  height: 34px;
  border: 1px solid #b9aa9a;
  border-radius: 50%;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
}

.answer-option--selected .answer-letter {
  border-color: var(--wine);
  background: var(--wine);
  color: #fff;
}

.quiz-controls {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.secondary-button {
  min-height: 54px;
  padding: 13px 20px;
  border: 1px solid #9a8979;
  border-radius: 4px;
  background: transparent;
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--wine);
  background: rgba(123, 35, 51, 0.05);
}

.quiz-help {
  max-width: 700px;
  margin: 20px auto 0;
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.78rem;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
}

.loading-screen span {
  width: 40px;
  height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--wine);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.loading-screen p {
  margin-top: 14px;
  color: var(--ink-soft);
}

.noscript-message {
  width: min(820px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: start;
}

.noscript-message h1 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

/* Results */

.results-page main {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
}

.results-hero {
  padding: 78px 0 68px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 72px;
}

.results-hero h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.results-lead {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 1.16rem;
}

.result-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.report-name {
  max-width: 430px;
  margin-top: 24px;
  display: grid;
  gap: 8px;
}

.report-name span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.report-name input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-light);
  color: var(--ink);
  font: inherit;
}

.report-name input:focus {
  border-color: var(--wine);
  outline: 3px solid rgba(123, 35, 51, 0.14);
}

.action-error {
  max-width: 620px;
  margin-top: 12px;
  color: var(--wine);
  font-size: 0.82rem;
}

.results-score-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--ink);
  background: var(--paper-light);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 24px;
}

.results-score-card > div:last-child > span {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.results-score-card > div:last-child > strong {
  margin: 4px 0 8px;
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
}

.results-score-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.circular-index {
  position: relative;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
}

.circular-index svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circular-index circle {
  fill: none;
  stroke-width: 9;
}

.index-track {
  stroke: #e1d8cc;
}

.index-value {
  stroke: var(--wine);
  stroke-linecap: round;
  transition: stroke-dashoffset 800ms ease;
}

.circular-index > div {
  text-align: center;
}

.circular-index strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
}

.circular-index span {
  color: var(--ink-soft);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.result-alert {
  margin-bottom: 42px;
  padding: 24px 28px;
  border-left: 5px solid var(--wine);
  background: var(--wine-light);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.result-alert p {
  margin: 0;
}

.reliability-card {
  margin-bottom: 42px;
  padding: 32px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--ink);
  background: var(--paper-light);
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 42px;
}

.reliability-card--strong {
  background: var(--green-soft);
}

.reliability-card--medium {
  background: var(--blue-soft);
}

.reliability-card--caution {
  background: var(--wine-light);
}

.reliability-score {
  width: 160px;
  height: 160px;
  border: 10px solid rgba(20, 42, 58, 0.1);
  border-top-color: var(--wine);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
}

.reliability-score strong {
  font-family: var(--serif);
  font-size: 2.45rem;
  line-height: 1;
}

.reliability-score span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.reliability-card .eyebrow {
  margin-bottom: 8px;
}

.reliability-card h2 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 2.2rem;
}

.reliability-metrics {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.reliability-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.reliability-card li + li {
  margin-top: 5px;
}

.reliability-note {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-style: italic;
}

.quality-component-grid {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quality-component-grid > div {
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(20, 42, 58, 0.13);
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  align-content: start;
  gap: 4px;
}

.quality-component-grid span {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

.quality-component-grid strong {
  font-family: var(--serif);
  font-size: 1.7rem;
}

.quality-component-grid small {
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.35;
}

.quality-signal-list {
  display: grid;
  gap: 8px;
}

.quality-signal {
  padding: 12px 14px;
  border: 1px solid rgba(20, 42, 58, 0.12);
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 11px;
}

.quality-signal > span {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--ink-soft);
}

.quality-signal--positive > span {
  background: var(--green);
}

.quality-signal--watch > span {
  background: #a56f21;
}

.quality-signal--review > span {
  background: var(--wine);
}

.quality-signal strong {
  font-size: 0.82rem;
}

.quality-signal p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.profile-section {
  padding: 80px 0 100px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
}

.result-radar-card,
.dominant-profile {
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.result-radar-card {
  padding: 28px;
}

.card-heading {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.card-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
}

.card-heading .eyebrow {
  margin-bottom: 8px;
}

.card-heading > span {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.result-radar-card .radar-chart {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: block;
}

.dominant-profile {
  padding: clamp(32px, 5vw, 54px);
  border-top: 7px solid var(--ink);
  box-shadow: var(--shadow);
}

.dominant-profile h2,
.secondary-profile-section h2 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.dominant-profile > p:not(.eyebrow, .combined-note) {
  color: var(--ink-soft);
}

.profile-pair {
  margin: 25px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 750;
}

.inner-lines {
  margin: 28px 0;
  padding: 22px;
  background: var(--paper-deep);
  display: grid;
  gap: 7px;
}

.inner-lines > span,
.development-question span {
  margin-bottom: 5px;
  color: var(--wine);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.inner-lines q {
  font-family: var(--serif);
  font-size: 1.08rem;
}

.profile-risk {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.profile-risk p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.development-question {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--wine);
  display: grid;
}

.development-question strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
}

.secondary-profile-section {
  margin-bottom: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.secondary-profile-section article {
  min-height: 310px;
  padding: 38px;
  border: 1px solid var(--line);
  background: rgba(252, 250, 245, 0.68);
}

.secondary-profile-section h2 {
  font-size: 2rem;
}

.secondary-profile-section p {
  color: var(--ink-soft);
}

.secondary-profile-section article > strong {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: block;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.protective-card {
  background: var(--green-soft) !important;
}

.dimension-results {
  width: 100%;
  padding-top: 100px;
  border-top: 1px solid var(--line);
}

.dimension-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.dimension-result {
  min-height: 300px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(252, 250, 245, 0.5);
}

.dimension-result.strength {
  background: rgba(237, 240, 226, 0.72);
}

.dimension-result.alert {
  box-shadow: inset 5px 0 0 var(--wine);
}

.dimension-result__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--wine);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dimension-result h3 {
  margin: 24px 0 12px;
  font-family: var(--serif);
  font-size: 1.8rem;
}

.score-bar {
  height: 7px;
  margin-bottom: 20px;
  background: #ded5c8;
}

.score-bar span {
  width: var(--score);
  height: 100%;
  background: var(--wine);
  display: block;
}

.dimension-result > p {
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.dimension-summary {
  color: var(--ink-soft);
}

.plan-section {
  width: 100%;
  padding-top: 110px;
  border-top: 1px solid var(--line);
}

.print-only {
  display: none;
}

.plan-toolbar {
  margin-bottom: 18px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: var(--blue-soft);
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) 1.45fr;
  align-items: end;
  gap: 18px 28px;
}

.plan-toolbar > label {
  display: grid;
  gap: 8px;
}

.plan-toolbar > label span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.plan-toolbar input {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.plan-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.plan-toolbar__actions .primary-button,
.plan-toolbar__actions .secondary-button {
  min-height: 48px;
  padding: 12px 17px;
  font-size: 0.75rem;
}

.plan-toolbar > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.plan-progress {
  margin-bottom: 24px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  display: grid;
  grid-template-columns: 210px 1fr 58px;
  align-items: center;
  gap: 24px;
}

.plan-progress > div:first-child {
  display: grid;
}

.plan-progress > div:first-child span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.plan-progress > div:first-child strong {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.plan-progress__bar {
  height: 9px;
  background: #ded5c8;
  overflow: hidden;
}

.plan-progress__bar span {
  width: var(--plan-progress);
  height: 100%;
  background: var(--wine);
  display: block;
  transition: width 220ms ease;
}

.plan-progress > strong {
  color: var(--wine);
  font-size: 1rem;
  text-align: right;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
}

.plan-grid article {
  min-height: 430px;
  padding: 34px;
  background: var(--ink);
  color: #fff;
}

.plan-grid article:nth-child(even) {
  background: #173044;
}

.plan-grid span {
  color: #d59ba5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.plan-grid h3 {
  margin: 34px 0 12px;
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.1;
}

.plan-grid > article > p {
  color: #becbd3;
  font-size: 0.86rem;
}

.plan-task-list {
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.plan-task-list label {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: 0.81rem;
  line-height: 1.48;
}

.plan-task-list input {
  position: absolute;
  opacity: 0;
}

.plan-checkmark {
  position: relative;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
}

.plan-task-list input:focus-visible + .plan-checkmark {
  outline: 3px solid #d8a765;
  outline-offset: 3px;
}

.plan-task--completed .plan-checkmark {
  border-color: #d59ba5;
  background: #d59ba5;
}

.plan-task--completed .plan-checkmark::after {
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  content: "";
  transform: rotate(42deg);
}

.plan-task--completed label > span:last-child {
  color: #91a1ac;
  text-decoration: line-through;
}

.plan-note {
  margin-top: 24px;
  display: grid;
  gap: 8px;
}

.plan-note > span {
  color: #d59ba5;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-note textarea {
  width: 100%;
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.plan-note textarea::placeholder {
  color: #91a1ac;
}

.plan-note textarea:focus-visible {
  outline: 3px solid #d8a765;
  outline-offset: 2px;
}

.plan-checklist {
  padding: 50px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--paper-light);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

.plan-checklist h3 {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
}

.plan-checklist ol {
  margin: 0;
  padding-left: 26px;
  columns: 2;
  column-gap: 42px;
}

.plan-checklist li {
  margin: 0 0 16px;
  break-inside: avoid;
}

.recommendation-section {
  margin: 0 0 100px;
  padding: 56px;
  border-top: 7px solid var(--wine);
  background: linear-gradient(135deg, var(--ink), #0b2031);
  color: #fff;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 60px;
}

.recommendation-section .eyebrow {
  color: #d59ba5;
}

.recommendation-section h2 {
  max-width: 720px;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.recommendation-section p:last-child {
  max-width: 700px;
  color: #becbd3;
}

.recommendation-actions {
  display: grid;
  gap: 18px;
  justify-items: stretch;
}

.recommendation-actions .primary-button {
  width: 100%;
}

.secondary-link {
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
}

.secondary-link:hover {
  color: #d59ba5;
}

.method-section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
}

.method-section h2 {
  font-size: 3.2rem;
}

.method-section > div:last-child {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.results-bottom-actions {
  padding: 0 0 90px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.results-bottom-actions .text-button {
  margin-left: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes radar-grow {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .hero {
    width: min(900px, calc(100% - 64px));
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 800px;
  }

  .profile-preview {
    max-width: 700px;
  }

  .dimension-intro-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-hero,
  .profile-section {
    grid-template-columns: 1fr;
  }

  .results-score-card {
    max-width: 650px;
  }

  .secondary-profile-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .secondary-profile-section .protective-card {
    grid-column: 1 / -1;
  }

  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recommendation-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 760px) {
  .site-header,
  .quiz-header {
    width: calc(100% - 36px);
    min-height: 68px;
  }

  .site-header nav {
    gap: 16px;
    font-size: 0.76rem;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .brand {
    font-size: 0.83rem;
    letter-spacing: 0.1em;
  }

  .hero {
    width: calc(100% - 36px);
    padding: 46px 0 70px;
    gap: 45px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 16vw, 5rem);
    line-height: 0.94;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .primary-button {
    width: 100%;
  }

  .text-button {
    margin: 14px 0 0;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .profile-preview .radar-chart {
    margin-top: 0;
  }

  .radar-label {
    font-size: 8.5px;
  }

  .intro-section,
  .how-section,
  .results-page main {
    width: calc(100% - 36px);
  }

  .intro-section {
    padding: 78px 0;
  }

  .dimension-intro-grid {
    grid-template-columns: 1fr;
  }

  .dimension-intro-grid article {
    min-height: 0;
  }

  .how-section {
    margin-bottom: 70px;
    padding: 34px 24px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .primary-button--light {
    grid-column: 1;
  }

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

  .site-footer {
    padding: 52px 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .quiz-header {
    gap: 12px;
  }

  .exit-button {
    font-size: 0.72rem;
  }

  .quiz-main {
    width: calc(100% - 28px);
    padding-top: 28px;
  }

  .question-card {
    padding: 28px 18px;
  }

  .question-card h1 {
    font-size: 2rem;
  }

  .answer-option {
    padding: 14px;
    grid-template-columns: 34px 1fr;
    font-size: 0.88rem;
  }

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

  .quiz-controls .secondary-button,
  .quiz-controls .primary-button {
    width: 100%;
  }

  .results-hero {
    padding-top: 52px;
    gap: 34px;
  }

  .results-hero h1 {
    font-size: 3.5rem;
  }

  .results-score-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .result-alert {
    grid-template-columns: 1fr;
  }

  .reliability-card {
    padding: 26px 20px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .reliability-score {
    width: 136px;
    height: 136px;
  }

  .quality-component-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-section {
    padding: 58px 0;
  }

  .result-radar-card {
    padding: 18px 8px;
  }

  .secondary-profile-section,
  .dimension-result-grid,
  .plan-grid,
  .plan-checklist,
  .method-section {
    grid-template-columns: 1fr;
  }

  .secondary-profile-section .protective-card {
    grid-column: auto;
  }

  .dimension-results,
  .plan-section {
    padding-top: 72px;
  }

  .dimension-result {
    min-height: 0;
  }

  .plan-grid article {
    min-height: 0;
  }

  .plan-progress {
    grid-template-columns: 1fr 52px;
    gap: 12px;
  }

  .plan-progress > div:first-child {
    grid-column: 1 / 3;
  }

  .plan-toolbar {
    grid-template-columns: 1fr;
  }

  .plan-toolbar__actions {
    display: grid;
    justify-content: stretch;
  }

  .plan-toolbar__actions .primary-button,
  .plan-toolbar__actions .secondary-button {
    width: 100%;
  }

  .recommendation-section {
    margin-bottom: 70px;
    padding: 34px 24px;
  }

  .plan-checklist {
    padding: 32px 22px;
    gap: 10px;
  }

  .plan-checklist ol {
    columns: 1;
  }

  .method-section {
    gap: 18px;
  }

  .results-bottom-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

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

@media print {
  :root {
    --paper: #fff;
    --paper-light: #fff;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .no-print,
  .results-bottom-actions {
    display: none !important;
  }

  .print-only {
    display: block;
  }

  .plan-print-heading {
    margin-bottom: 12mm;
    padding-bottom: 6mm;
    border-bottom: 2px solid #333;
  }

  .plan-print-heading span {
    display: block;
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .plan-print-heading strong {
    display: block;
    margin-top: 3mm;
    font-family: var(--serif);
    font-size: 24pt;
  }

  .plan-print-heading p {
    margin: 3mm 0 0;
  }

  .plan-note-print {
    margin-top: 5mm;
    padding-top: 3mm;
    border-top: 1px solid #aaa;
  }

  .plan-note-print strong {
    font-size: 8pt;
    text-transform: uppercase;
  }

  .plan-note-print p {
    margin: 2mm 0 0;
    white-space: pre-wrap;
  }

  .results-page main {
    width: 100%;
  }

  .results-hero,
  .profile-section,
  .secondary-profile-section,
  .dimension-results,
  .plan-section,
  .method-section {
    padding: 18mm 0 8mm;
  }

  .results-hero,
  .profile-section,
  .secondary-profile-section,
  .dimension-result-grid,
  .plan-grid,
  .plan-checklist,
  .method-section {
    grid-template-columns: 1fr 1fr;
  }

  .results-hero h1 {
    font-size: 34pt;
  }

  .result-radar-card,
  .dominant-profile,
  .secondary-profile-section article,
  .dimension-result,
  .plan-grid article,
  .plan-checklist {
    box-shadow: none;
    break-inside: avoid;
  }

  .plan-grid article {
    min-height: 0;
    color: #000;
    background: #f1f1f1 !important;
  }

  .plan-grid p {
    color: #333;
  }

  .plan-task-list label {
    border-color: #aaa;
    background: #fff;
    color: #000;
  }

  .plan-checkmark {
    border-color: #555;
  }

  .reliability-card,
  .recommendation-section {
    box-shadow: none;
    break-inside: avoid;
  }

  .recommendation-section {
    color: #000;
    background: #f1f1f1;
  }

  .recommendation-section p:last-child {
    color: #333;
  }

  .plan-grid span {
    color: var(--wine);
  }

  .dimension-results,
  .plan-section {
    break-before: page;
  }

  body.print-plan-only .results-page main > :not(.plan-section) {
    display: none !important;
  }

  body.print-plan-only .plan-section {
    padding: 0;
    border: 0;
    break-before: auto;
  }
}
