:root {
  color-scheme: dark;
  --bg: #121416;
  --bg-raised: #181b1f;
  --surface: #1e2226;
  --surface-strong: #262b30;
  --surface-soft: #202428;
  --text: #f7f4ee;
  --text-strong: #ffffff;
  --muted: #bbb9b5;
  --muted-strong: #d5d2cc;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #ff6a45;
  --accent-light: #ff9b82;
  --accent-dark: #9e2f17;
  --focus: #ffd0c4;
  --success: #63d5a4;
  --danger: #ff9d8a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --on-accent: #15171a;
  --accent-hover: #ff8062;
  --control-bg: rgba(255, 255, 255, 0.035);
  --control-bg-hover: rgba(255, 255, 255, 0.075);
  --control-border-hover: rgba(255, 255, 255, 0.4);
  --text-decoration: rgba(255, 255, 255, 0.32);
  --page-glow-strong: rgba(255, 106, 69, 0.12);
  --page-glow-soft: rgba(255, 106, 69, 0.05);
  --hero-glow: rgba(255, 106, 69, 0.18);
  --panel-bg: rgba(30, 34, 38, 0.86);
  --panel-bg-strong: rgba(30, 34, 38, 0.93);
  --card-bg: rgba(255, 255, 255, 0.025);
  --option-bg-hover: rgba(255, 255, 255, 0.055);
  --option-border-hover: rgba(255, 255, 255, 0.34);
  --rank-one: #63d5a4;
  --rank-one-soft: rgba(99, 213, 164, 0.12);
  --rank-one-on: #09251a;
  --rank-two: #a7d96c;
  --rank-two-soft: rgba(167, 217, 108, 0.12);
  --rank-two-on: #162708;
  --rank-three: #f4b850;
  --rank-three-soft: rgba(244, 184, 80, 0.12);
  --rank-three-on: #2b1a02;
  --rank-four: #ff7b70;
  --rank-four-soft: rgba(255, 123, 112, 0.12);
  --rank-four-on: #310c08;
  --accent-border: rgba(255, 106, 69, 0.65);
  --accent-faint: rgba(255, 106, 69, 0.08);
  --accent-soft: rgba(255, 106, 69, 0.13);
  --accent-strong-soft: rgba(255, 106, 69, 0.16);
  --footer-bg: rgba(10, 11, 12, 0.32);
  --radius-small: 12px;
  --radius-medium: 20px;
  --radius-large: 30px;
  --shell: 1180px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f2ed;
  --bg-raised: #ebe7e0;
  --surface: #ffffff;
  --surface-strong: #e8e3dc;
  --surface-soft: #f0ece6;
  --text: #292b2e;
  --text-strong: #15171a;
  --muted: #68635e;
  --muted-strong: #45413d;
  --line: rgba(21, 23, 26, 0.13);
  --line-strong: rgba(21, 23, 26, 0.24);
  --accent: #e85a34;
  --accent-light: #9b3018;
  --accent-dark: #8f2712;
  --focus: #8f2d17;
  --success: #176845;
  --danger: #a42f18;
  --shadow: 0 24px 70px rgba(52, 39, 31, 0.14);
  --on-accent: #15171a;
  --accent-hover: #f06b46;
  --control-bg: rgba(255, 255, 255, 0.64);
  --control-bg-hover: #ffffff;
  --control-border-hover: rgba(21, 23, 26, 0.42);
  --text-decoration: rgba(21, 23, 26, 0.32);
  --page-glow-strong: rgba(232, 90, 52, 0.11);
  --page-glow-soft: rgba(232, 90, 52, 0.06);
  --hero-glow: rgba(232, 90, 52, 0.15);
  --panel-bg: rgba(255, 255, 255, 0.84);
  --panel-bg-strong: rgba(255, 255, 255, 0.94);
  --card-bg: rgba(255, 255, 255, 0.54);
  --option-bg-hover: #ffffff;
  --option-border-hover: rgba(21, 23, 26, 0.36);
  --rank-one: #19734f;
  --rank-one-soft: rgba(25, 114, 79, 0.1);
  --rank-one-on: #ffffff;
  --rank-two: #537d1f;
  --rank-two-soft: rgba(83, 125, 31, 0.1);
  --rank-two-on: #ffffff;
  --rank-three: #9c5d00;
  --rank-three-soft: rgba(156, 93, 0, 0.1);
  --rank-three-on: #ffffff;
  --rank-four: #b33c33;
  --rank-four-soft: rgba(179, 60, 51, 0.1);
  --rank-four-on: #ffffff;
  --accent-border: rgba(155, 48, 24, 0.62);
  --accent-faint: rgba(232, 90, 52, 0.08);
  --accent-soft: rgba(232, 90, 52, 0.12);
  --accent-strong-soft: rgba(232, 90, 52, 0.16);
  --footer-bg: rgba(232, 227, 220, 0.66);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 5%, var(--page-glow-strong), transparent 28rem),
    radial-gradient(circle at 5% 30%, var(--page-glow-soft), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

body[data-active-view="assessment"] .site-footer {
  display: none;
}

[hidden] {
  display: none !important;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--accent-light);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--text-strong);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

h1,
h2,
h3 {
  color: var(--text-strong);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.65rem, 7vw, 5.75rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.15rem;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--text-strong);
  color: var(--bg);
  font-weight: 750;
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--shell));
  min-height: 86px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.theme-toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--control-border-hover);
  background: var(--control-bg-hover);
  color: var(--text-strong);
}

.theme-toggle-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

:root[data-theme="dark"] .theme-icon-moon,
:root[data-theme="light"] .theme-icon-sun {
  display: none;
}

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

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 3px;
  width: 24px;
  height: 24px;
  transform: rotate(45deg);
}

.brand-mark span {
  display: block;
  border-radius: 2px;
  background: var(--surface-strong);
}

.brand-mark span:first-child,
.brand-mark span:last-child {
  background: var(--accent);
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-copy strong {
  color: var(--text-strong);
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

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

.button:active:not(:disabled) {
  transform: translateY(0);
}

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

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--control-bg);
  color: var(--text);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--control-border-hover);
  background: var(--control-bg-hover);
  color: var(--text-strong);
}

.text-button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--text-decoration);
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.text-button:hover:not(:disabled) {
  color: var(--text-strong);
  text-decoration-color: currentColor;
}

.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: center;
  min-height: min(780px, calc(100vh - 86px));
  padding-block: 80px 100px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.hero-actions,
.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.resume-note {
  margin: 16px 0 0;
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 700;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 42px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.86rem;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-list span {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-strong);
  font-size: 0.75rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  position: absolute;
  inset: 15% -8% -8% 22%;
  z-index: -1;
  border-radius: 50%;
  background: var(--hero-glow);
  filter: blur(70px);
  content: "";
}

.matrix-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--panel-bg-strong);
  box-shadow: var(--shadow);
}

.matrix-heading {
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.matrix-cell {
  min-height: 200px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.matrix-cell:nth-child(2n) {
  border-right: 0;
}

.matrix-cell:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.matrix-cell:nth-child(3) {
  background: var(--accent);
  color: var(--on-accent);
}

.matrix-cell:nth-child(3) h2,
.matrix-cell:nth-child(3) .matrix-number {
  color: var(--on-accent);
}

.matrix-number {
  display: block;
  margin-bottom: 44px;
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.matrix-cell h2 {
  margin-bottom: 8px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.matrix-cell p {
  margin: 0;
  color: inherit;
  font-size: 0.85rem;
  opacity: 0.78;
}

.matrix-caption {
  margin: 0;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.how-section {
  padding-block: 110px;
  border-top: 1px solid var(--line);
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.process-grid,
.discussion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-grid li,
.discussion-grid li {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--card-bg);
}

.step-number,
.discussion-grid span {
  display: block;
  margin-bottom: 58px;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.process-grid h3 {
  margin-bottom: 12px;
}

.process-grid p,
.discussion-grid p {
  margin: 0;
  color: var(--muted);
}

.principle-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  margin-bottom: 110px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: var(--radius-large);
  background: var(--accent);
  color: var(--on-accent);
}

.principle-section .eyebrow,
.principle-section h2 {
  color: var(--on-accent);
}

.principle-section h2,
.principle-section p {
  margin-bottom: 0;
}

.principle-section > p {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 620;
}

.assessment-view {
  max-width: 930px;
  padding-block: 46px 90px;
}

.assessment-progress {
  margin-bottom: 24px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.progress-track {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent);
  appearance: none;
}

.progress-track::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--surface-strong);
}

.progress-track::-webkit-progress-value {
  border-radius: 999px;
  background: var(--accent);
  transition: width 240ms ease;
}

.progress-track::-moz-progress-bar {
  border-radius: 999px;
  background: var(--accent);
}

.question-card {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--panel-bg-strong);
  box-shadow: var(--shadow);
}

.question-heading {
  max-width: 740px;
  margin-bottom: 30px;
}

.question-heading h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.55rem);
}

.question-instruction {
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 1rem;
}

.rank-step[data-rank="1"],
.rank-progress[data-current-rank="1"],
.option-button[data-rank="1"],
.option-button[data-next-rank="1"] {
  --rank-color: var(--rank-one);
  --rank-soft: var(--rank-one-soft);
  --rank-on: var(--rank-one-on);
}

.rank-step[data-rank="2"],
.rank-progress[data-current-rank="2"],
.option-button[data-rank="2"],
.option-button[data-next-rank="2"] {
  --rank-color: var(--rank-two);
  --rank-soft: var(--rank-two-soft);
  --rank-on: var(--rank-two-on);
}

.rank-step[data-rank="3"],
.rank-progress[data-current-rank="3"],
.option-button[data-rank="3"],
.option-button[data-next-rank="3"] {
  --rank-color: var(--rank-three);
  --rank-soft: var(--rank-three-soft);
  --rank-on: var(--rank-three-on);
}

.rank-step[data-rank="4"],
.rank-progress[data-current-rank="4"],
.option-button[data-rank="4"],
.option-button[data-next-rank="4"] {
  --rank-color: var(--rank-four);
  --rank-soft: var(--rank-four-soft);
  --rank-on: var(--rank-four-on);
}

.rank-progress {
  position: sticky;
  top: 10px;
  z-index: 8;
  margin-bottom: 18px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--panel-bg-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  isolation: isolate;
}

.rank-progress::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 3px;
  background: var(--rank-color, var(--success));
  content: "";
  transition: background-color 180ms ease;
}

.rank-progress[data-state="complete"] {
  --rank-color: var(--success);
  --rank-soft: rgba(99, 213, 164, 0.12);
}

.rank-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.rank-progress-kicker {
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.rank-current {
  margin-bottom: 0;
  color: var(--rank-color, var(--text-strong));
  font-size: clamp(0.96rem, 2vw, 1.08rem);
  font-weight: 820;
  line-height: 1.25;
}

.rank-remaining {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--rank-color, var(--line-strong));
  border-radius: 999px;
  background: var(--rank-soft, var(--surface-soft));
  color: var(--rank-color, var(--text-strong));
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.rank-meter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
  opacity: 0.66;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.rank-step[data-state="current"] {
  transform: translateY(-1px);
  border-color: var(--rank-color);
  background: var(--rank-soft);
  opacity: 1;
}

.rank-step[data-state="complete"] {
  border-color: var(--rank-color);
  opacity: 0.9;
}

.rank-step-icon {
  display: inline-grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--rank-color);
  border-radius: 50%;
  background: var(--rank-soft);
  color: var(--rank-color);
  font-size: 0.72rem;
  line-height: 1;
}

.rank-step[data-state="current"] .rank-step-icon,
.rank-step[data-state="complete"] .rank-step-icon {
  background: var(--rank-color);
  color: var(--rank-on);
}

.rank-step-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
  line-height: 1.2;
}

.rank-step-copy strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-step-copy small {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 600;
}

.rank-step-state {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rank-step[data-state="current"] .rank-step-state,
.rank-step[data-state="complete"] .rank-step-state {
  color: var(--rank-color);
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-button {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 16px 16px 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--card-bg);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.option-button::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--rank-color, transparent);
  content: "";
  transform: scaleY(0);
  transition: transform 180ms ease;
}

.option-button:hover {
  border-color: var(--option-border-hover);
  background: var(--option-bg-hover);
}

.option-button.is-ranked {
  border-color: var(--rank-color);
  background: var(--rank-soft);
}

.option-button.is-ranked::before {
  transform: scaleY(1);
}

.option-button[data-next-rank]:hover {
  border-color: var(--rank-color);
  background: var(--rank-soft);
  transform: translateY(-2px);
}

.option-copy {
  font-weight: 680;
  line-height: 1.35;
}

.rank-badge {
  display: flex;
  min-width: 154px;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 0.67rem;
  font-weight: 730;
  line-height: 1.2;
  text-align: left;
}

.rank-badge-icon {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rank-color, var(--line-strong));
  background: var(--rank-soft, var(--surface-strong));
  color: var(--rank-color, var(--text-strong));
  font-size: 0.83rem;
  line-height: 1;
}

.rank-badge-copy {
  display: grid;
  gap: 2px;
}

.rank-badge-label {
  display: block;
  color: var(--text-strong);
  font-size: 0.84rem;
  font-weight: 820;
}

.rank-badge-meta {
  display: block;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 620;
}

.is-ranked .rank-badge {
  border-color: transparent;
  background: var(--rank-color);
  color: var(--rank-on);
}

.is-ranked .rank-badge-icon {
  border-color: transparent;
  background: var(--rank-on);
  color: var(--rank-color);
}

.is-ranked .rank-badge-label,
.is-ranked .rank-badge-meta {
  color: inherit;
}

.option-button[data-next-rank]:hover .rank-badge {
  border-color: var(--rank-color);
  background: var(--rank-soft);
}

.option-button.is-new-rank {
  animation: rank-confirm 420ms cubic-bezier(0.2, 0.85, 0.3, 1);
}

.option-button.is-new-rank[data-rank="1"] .rank-badge-icon {
  animation: star-pop 700ms cubic-bezier(0.2, 1.35, 0.4, 1);
}

@keyframes rank-confirm {
  0% {
    transform: scale(0.985);
  }
  55% {
    transform: scale(1.012);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes star-pop {
  0% {
    box-shadow: 0 0 0 0 var(--rank-color);
    transform: rotate(-45deg) scale(0.35);
  }
  55% {
    box-shadow: 0 0 0 9px transparent;
    transform: rotate(12deg) scale(1.35);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
    transform: rotate(0) scale(1);
  }
}

.question-tools {
  display: flex;
  gap: 22px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.assessment-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.assessment-nav .button {
  min-width: 150px;
}

.results-view {
  padding-block: 78px 110px;
}

.results-hero {
  max-width: 920px;
  margin-bottom: 58px;
}

.results-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}

.results-lede {
  max-width: 780px;
  margin-bottom: 30px;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.result-action-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 700;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--panel-bg);
}

.score-panel,
.profile-panel {
  padding: clamp(24px, 4vw, 38px);
}

.panel-heading {
  margin-bottom: 30px;
}

.panel-heading .eyebrow {
  margin-bottom: 10px;
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

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

.score-item {
  display: grid;
  gap: 8px;
}

.score-item-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
}

.score-item-heading strong {
  color: var(--text-strong);
}

.score-item-heading span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.score-bar {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent);
  appearance: none;
}

.score-bar::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--surface-strong);
}

.score-bar::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

.score-bar::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

.score-item.is-primary .score-item-heading strong {
  color: var(--accent-light);
}

.score-note {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-tagline {
  margin-bottom: 16px;
  color: var(--accent-light);
  font-size: 1.15rem;
  font-weight: 760;
}

.profile-panel > p:not(.profile-tagline) {
  color: var(--muted-strong);
}

.profile-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 32px;
}

.profile-columns h3 {
  margin-bottom: 14px;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.profile-columns ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.profile-columns li::marker {
  color: var(--accent);
}

.profile-callout {
  margin-top: 32px;
  padding: 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: var(--accent-faint);
}

.profile-callout span,
.counterweight-card > span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-light);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.profile-callout p {
  margin: 0;
  color: var(--text-strong);
  font-weight: 670;
}

.blend-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 34px;
  align-items: stretch;
  margin-top: 16px;
  padding: clamp(24px, 4vw, 42px);
}

.blend-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.blend-copy > p:last-child {
  margin-bottom: 0;
  color: var(--muted-strong);
}

.counterweight-card {
  padding: 24px;
  border-radius: var(--radius-small);
  background: var(--surface-strong);
}

.counterweight-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: 1.45rem;
}

.counterweight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.team-section,
.all-styles-section {
  padding-top: 100px;
}

.discussion-grid li {
  min-height: 220px;
}

.discussion-grid p {
  color: var(--muted-strong);
  font-size: 1rem;
}

.style-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.style-guide-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--card-bg);
}

.style-guide-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 850;
}

.style-guide-card h3 {
  margin-bottom: 8px;
}

.style-guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.restart-row {
  display: flex;
  justify-content: center;
  padding-top: 72px;
}

.danger-text {
  color: var(--danger);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}

.print-header {
  display: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.85fr 0.75fr 1.4fr;
  gap: 60px;
  padding-block: 64px 54px;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-grid h2 {
  margin-bottom: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
  color: var(--muted);
  font-size: 0.83rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 0.35em;
}

.footer-grid p {
  margin-bottom: 0;
}

.footer-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
}

.noscript-message {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 90;
  max-width: 720px;
  margin-inline: auto;
  padding: 16px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-small);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  color: var(--text-strong);
  text-align: center;
}

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.redirect-page main {
  max-width: 620px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  text-align: center;
}

.redirect-page .brand-mark {
  margin: 0 auto 28px;
}

.redirect-page h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 6vw, 3.2rem);
}

.redirect-page p {
  margin-bottom: 0;
  color: var(--muted);
}

.clipboard-fallback {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 920px) {
  .brand-copy span {
    display: none;
  }

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

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 680px;
  }

  .results-layout,
  .blend-panel {
    grid-template-columns: 1fr;
  }

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

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .shell,
  .site-header {
    width: min(calc(100% - 28px), var(--shell));
  }

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

  .header-action {
    font-size: 0.78rem;
  }

  .header-actions {
    gap: 10px;
  }

  .hero {
    gap: 56px;
    padding-block: 56px 72px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .hero-actions .button,
  .results-actions .button {
    width: 100%;
  }

  .trust-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .trust-list li {
    flex-direction: column;
    text-align: center;
  }

  .matrix-heading {
    display: none;
  }

  .matrix-cell {
    min-height: 164px;
    padding: 20px;
  }

  .matrix-number {
    margin-bottom: 30px;
  }

  .how-section {
    padding-block: 80px;
  }

  .process-grid,
  .discussion-grid,
  .principle-section,
  .profile-columns,
  .style-guide-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process-grid li,
  .discussion-grid li {
    min-height: 0;
  }

  .step-number,
  .discussion-grid span {
    margin-bottom: 34px;
  }

  .principle-section {
    gap: 28px;
    margin-bottom: 80px;
  }

  .assessment-view {
    padding-block: 26px 60px;
  }

  .question-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

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

  .option-button {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 108px;
  }

  .rank-badge {
    display: flex;
    min-width: 0;
    min-height: 36px;
    justify-content: flex-start;
    gap: 10px;
    padding-inline: 12px;
  }

  .rank-badge-copy {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .rank-badge-meta {
    display: inline;
  }

  .assessment-nav .button {
    min-width: 0;
    flex: 1;
  }

  .results-view {
    padding-block: 56px 82px;
  }

  .team-section,
  .all-styles-section {
    padding-top: 78px;
  }

  .footer-grid {
    gap: 38px;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .footer-bottom-links {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .theme-toggle {
    padding-inline: 9px;
  }

  .style-matrix {
    grid-template-columns: 1fr;
  }

  .matrix-cell,
  .matrix-cell:nth-child(2n),
  .matrix-cell:nth-last-child(-n + 2) {
    min-height: 138px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .matrix-cell:last-child {
    border-bottom: 0;
  }

  .matrix-number {
    margin-bottom: 22px;
  }

  .rank-progress {
    top: 6px;
    padding: 12px;
    border-radius: 13px;
  }

  .rank-progress-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .rank-remaining {
    padding-inline: 9px;
    font-size: 0.66rem;
  }

  .rank-meter {
    gap: 6px;
  }

  .rank-step {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }

  .rank-step-state {
    display: none;
  }

  .rank-step-copy strong {
    white-space: normal;
  }

  .question-tools {
    justify-content: space-between;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #ffffff;
    color: #252525;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .results-actions,
  .result-action-status,
  .restart-row,
  .team-section,
  .all-styles-section {
    display: none !important;
  }

  .print-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid #cfcfcf;
    color: #4a4a4a;
    font-size: 9pt;
  }

  .print-header strong {
    color: #171717;
    letter-spacing: 0.08em;
  }

  .shell {
    width: 100%;
  }

  .results-view {
    padding: 0;
  }

  .results-hero {
    margin-bottom: 28px;
  }

  .results-hero h1,
  .panel h2,
  .panel h3,
  .profile-callout p,
  .counterweight-card strong {
    color: #171717;
  }

  .eyebrow,
  .profile-tagline,
  .score-item.is-primary .score-item-heading strong,
  .profile-callout span,
  .counterweight-card > span {
    color: #a52f15;
  }

  .results-lede,
  .score-note,
  .profile-panel > p:not(.profile-tagline),
  .profile-columns ul,
  .blend-copy > p:last-child,
  .counterweight-card p,
  .score-item-heading span {
    color: #4a4a4a;
  }

  .results-layout {
    grid-template-columns: 0.75fr 1.25fr;
  }

  .panel,
  .counterweight-card,
  .profile-callout {
    break-inside: avoid;
    border-color: #cfcfcf;
    background: #ffffff;
    box-shadow: none;
  }

  .score-bar,
  .score-bar::-webkit-progress-bar {
    background: #e5e5e5;
  }

  .blend-panel {
    margin-top: 16px;
  }
}
