:root {
  --ink: oklch(0.18 0.025 60);
  --paper: oklch(0.96 0.035 86);
  --paper-deep: oklch(0.91 0.055 84);
  --red: oklch(0.66 0.19 34);
  --blue: oklch(0.55 0.2 256);
  --yellow: oklch(0.85 0.18 92);
  --green: oklch(0.72 0.14 148);
  --pink: oklch(0.72 0.16 3);
  --cream: oklch(0.985 0.018 88);
  --muted: oklch(0.45 0.035 62);
  --line: oklch(0.3 0.03 60 / 0.24);
  --soft-line: oklch(0.3 0.03 60 / 0.13);
  --shadow: 0 18px 0 oklch(0.18 0.025 60 / 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-grain: 100;
  color-scheme: light;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 11% 7%, oklch(0.85 0.18 92 / 0.52) 0 7.5rem, transparent 7.6rem),
    radial-gradient(circle at 93% 75%, oklch(0.55 0.2 256 / 0.13) 0 11rem, transparent 11.1rem),
    var(--paper);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

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

button:active {
  transform: translateY(2px) scale(0.985);
}

[hidden] {
  display: none !important;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.screen {
  min-height: 100dvh;
}

.shell {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
}

.shell-narrow {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

.topbar,
.result-topbar,
.quiz-topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
}

.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.035em;
}

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

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 38% 62% 54% 46% / 46% 38% 62% 54%;
  background: var(--red);
  color: var(--cream);
  font-weight: 800;
  transform: rotate(-7deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.edition {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.intro-screen {
  position: relative;
  overflow: hidden;
}

.intro-screen::before,
.intro-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.intro-screen::before {
  width: 92px;
  height: 92px;
  top: 104px;
  right: -26px;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 47% 53% 67% 33% / 32% 52% 48% 68%;
  transform: rotate(13deg);
}

.intro-screen::after {
  width: 54px;
  height: 120px;
  left: -18px;
  bottom: 96px;
  background: var(--blue);
  border: 2px solid var(--ink);
  transform: rotate(-19deg);
}

.intro-grid {
  min-height: calc(100dvh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.76fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.intro-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.question-kicker,
.result-kicker,
.section-label {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-copy h1,
.result-heading h1 {
  max-width: 12ch;
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(3.2rem, 7.3vw, 6.6rem);
  line-height: 1.03;
  letter-spacing: -0.075em;
}

.intro-copy h1 {
  position: relative;
}

.lede {
  max-width: 31rem;
  margin: 1.75rem 0 0;
  font-size: 1.08rem;
  line-height: 1.8;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.8rem;
}

.intro-meta span {
  padding: 0.45rem 0.76rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
}

.intro-meta span:nth-child(2) {
  background: var(--yellow);
}

.intro-meta span:nth-child(3) {
  background: oklch(0.82 0.11 150);
}

.intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-button,
.secondary-button {
  min-height: 54px;
  padding: 0.82rem 1.45rem;
  border: 2px solid var(--ink);
  border-radius: 1rem 1rem 1.55rem 1rem;
  background: var(--red);
  color: var(--cream);
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 8px 8px 0 var(--ink);
}

.secondary-button {
  background: var(--yellow);
  color: var(--ink);
}

.text-button {
  min-height: 48px;
  padding: 0.55rem 0.35rem;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.intro-visual {
  position: relative;
  min-width: 0;
}

.visual-frame {
  position: relative;
  width: min(100%, 490px);
  margin-left: auto;
  padding: 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 2rem 1rem 2.6rem 1.4rem;
  background: var(--blue);
  box-shadow: 14px 15px 0 var(--ink);
  transform: rotate(2deg);
}

.portrait {
  background-image: url("./assets/talent-portraits.png");
  background-repeat: no-repeat;
  background-size: 400% 400%;
  background-position: 0 0;
}

.portrait-main {
  width: 100%;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 1.35rem 0.6rem 2rem 0.85rem;
  background-color: var(--cream);
}

.visual-index {
  position: absolute;
  right: 1.25rem;
  bottom: 1.3rem;
  padding: 0.45rem 0.65rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 0.75rem;
  font-weight: 800;
}

.orbit-label {
  position: absolute;
  z-index: 2;
  padding: 0.42rem 0.65rem;
  border: 2px solid var(--ink);
  background: var(--cream);
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}

.orbit-label-a {
  top: 13%;
  left: -9%;
  transform: rotate(-7deg);
}

.orbit-label-b {
  right: -8%;
  top: 46%;
  background: var(--pink);
  transform: rotate(6deg);
}

.type-strip {
  display: flex;
  align-items: center;
  gap: 0;
  width: min(100%, 420px);
  margin: 2.35rem 0 0 auto;
  padding-left: 0.5rem;
}

.mini-portrait {
  width: 58px;
  aspect-ratio: 1;
  margin-left: -0.5rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background-color: var(--cream);
}

.type-strip span {
  margin-left: 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.intro-foot {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  font-size: 0.76rem;
}

.intro-foot p {
  margin: 0;
  max-width: 58ch;
}

.foot-number {
  color: var(--ink);
  font-weight: 800;
}

.quiz-screen {
  position: relative;
  background:
    linear-gradient(90deg, transparent 49.85%, var(--soft-line) 50%, transparent 50.15%) center / 9rem 100%,
    var(--cream);
}

.question-count {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.question-count span:first-child {
  color: var(--red);
  font-size: 1.45rem;
}

.count-divider {
  margin-inline: 0.25rem;
}

.progress-track {
  height: 8px;
  margin-top: 1.15rem;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-deep);
}

.progress-track span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0.0278);
  transform-origin: left;
  background: var(--red);
  transition: transform 420ms var(--ease);
}

.quiz-layout {
  min-height: calc(100dvh - 110px);
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 5rem);
  align-items: start;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}

.quiz-aside {
  position: sticky;
  top: 2rem;
  padding-top: 2.3rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.quiz-aside::before {
  content: "";
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 48% 52% 44% 56%;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-11deg);
}

.quiz-aside p {
  max-width: 18ch;
  margin: 0 0 0.7rem;
}

.quiz-aside p:last-child {
  color: var(--muted);
  font-weight: 500;
}

.question-panel {
  max-width: 650px;
}

.question-panel.is-changing {
  animation: question-in 440ms var(--ease) both;
}

@keyframes question-in {
  from { opacity: 0; transform: translateY(18px) rotate(0.35deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.question-panel h1 {
  min-height: 3.6em;
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.85rem, 4.5vw, 3.35rem);
  line-height: 1.35;
  letter-spacing: -0.05em;
}

.answer-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.answer-option {
  min-height: 58px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 0.85rem 1.4rem 0.9rem 1.1rem;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 240ms var(--ease), background 240ms var(--ease), box-shadow 240ms var(--ease);
}

.answer-option:hover {
  background: var(--yellow);
  transform: translate(-2px, -2px) rotate(-0.2deg);
  box-shadow: 6px 6px 0 var(--ink);
}

.answer-option[aria-checked="true"] {
  background: var(--blue);
  color: var(--cream);
}

.option-number {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}

.option-label {
  font-weight: 700;
}

.option-dot {
  width: 12px;
  aspect-ratio: 1;
  justify-self: end;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.answer-option[aria-checked="true"] .option-dot {
  background: var(--yellow);
  border-color: var(--ink);
}

.question-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-back:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.result-screen {
  background: var(--paper);
}

.result-article {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.result-portrait-wrap {
  position: relative;
  padding: 0.85rem;
  border: 3px solid var(--ink);
  border-radius: 2.2rem 1.1rem 2.8rem 1.5rem;
  background: var(--yellow);
  box-shadow: 13px 14px 0 var(--ink);
  transform: rotate(-1.5deg);
}

.result-portrait {
  width: 100%;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 1.4rem 0.7rem 2.1rem 1rem;
}

.result-code-sticker {
  position: absolute;
  right: -1.2rem;
  top: 1.5rem;
  min-width: 82px;
  padding: 0.6rem 0.85rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--pink);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(7deg);
}

.result-heading h1 {
  max-width: none;
  font-size: clamp(3rem, 6vw, 5.9rem);
}

.result-tagline {
  margin: 1.25rem 0 0;
  color: var(--red);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.45;
}

.trait-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.trait-chips span {
  padding: 0.38rem 0.68rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}

.trait-chips span:nth-child(1) { background: var(--red); color: var(--cream); }
.trait-chips span:nth-child(2) { background: var(--yellow); }
.trait-chips span:nth-child(3) { background: oklch(0.8 0.11 148); }
.trait-chips span:nth-child(4) { background: oklch(0.83 0.1 3); }

.result-summary {
  max-width: 58ch;
  margin: 1.1rem 0 0;
  font-size: 1.03rem;
  line-height: 1.85;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: clamp(4.5rem, 9vw, 8rem);
  border-top: 3px solid var(--ink);
  padding-top: 2.25rem;
}

.analysis-section + .analysis-section {
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 2px dashed var(--line);
}

.analysis-section h2,
.dimension-card h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: -0.045em;
}

.analysis-section p {
  max-width: 62ch;
  margin: 1rem 0 0;
  line-height: 1.85;
}

.role-list,
.strength-list,
.watch-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.role-list li {
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
}

.role-list li:nth-child(3n + 1) { background: var(--yellow); }
.role-list li:nth-child(3n + 2) { background: oklch(0.81 0.11 150); }
.role-list li:nth-child(3n + 3) { background: oklch(0.83 0.1 10); }

.strength-list li,
.watch-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.8rem;
  align-items: start;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.list-index {
  display: grid;
  place-items: center;
  width: 30px;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 800;
}

.watch-list .list-index {
  background: var(--blue);
}

.dimension-card {
  align-self: start;
  position: sticky;
  top: 1rem;
  padding: 1.35rem;
  border: 3px solid var(--ink);
  border-radius: 1.2rem 2rem 1.2rem 1.55rem;
  background: var(--blue);
  color: var(--cream);
  box-shadow: 10px 11px 0 var(--ink);
}

.dimension-card .section-label {
  color: var(--yellow);
}

.dimension-list {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.6rem;
}

.dimension-row {
  display: grid;
  gap: 0.5rem;
}

.dimension-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.dimension-labels strong {
  color: var(--yellow);
}

.dimension-track {
  position: relative;
  height: 12px;
  border: 2px solid var(--cream);
  border-radius: 999px;
  background: oklch(0.3 0.09 256);
}

.dimension-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--cream);
  opacity: 0.65;
}

.dimension-dot {
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  transform: translate(calc(var(--score) * (100% - 18px)), -50%);
}

.dimension-note {
  margin: 1.4rem 0 0;
  color: oklch(0.91 0.035 86);
  font-size: 0.75rem;
}

.result-callout {
  margin-top: 3rem;
  padding: 1.4rem;
  border: 3px solid var(--ink);
  border-radius: 1rem 1.7rem 1.1rem 1.5rem;
  background: var(--yellow);
  box-shadow: 7px 8px 0 var(--ink);
  transform: rotate(-0.3deg);
}

.result-callout h3 {
  margin: 0;
  font-size: 1rem;
}

.result-callout p {
  margin: 0.65rem 0 0;
  line-height: 1.75;
}

.result-foot {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.5rem;
  border-top: 2px solid var(--ink);
}

.result-foot p {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) rotate(0.3deg);
  animation: reveal 720ms var(--ease) forwards;
  animation-delay: calc(var(--delay) * 110ms + 90ms);
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

noscript {
  display: block;
  margin: 2rem;
  padding: 1rem;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-weight: 700;
}

@media (max-width: 820px) {
  .result-hero,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .intro-screen {
    height: 100dvh;
    min-height: 100dvh;
    overflow: clip;
  }

  .intro-grid {
    height: calc(100dvh - 150px);
    min-height: 0;
    grid-template-columns: minmax(0, 1.15fr) minmax(190px, 0.75fr);
    gap: clamp(1rem, 4vw, 2.5rem);
    padding-block: clamp(1.25rem, 4vh, 2.2rem);
  }

  .intro-copy h1 {
    max-width: 9ch;
    font-size: clamp(2.5rem, 7.3vw, 4rem);
  }

  .lede {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .intro-meta {
    margin-top: 1rem;
  }

  .intro-actions {
    margin-top: 1.25rem;
  }

  .intro-visual {
    width: 100%;
    margin: 0;
  }

  .visual-frame {
    width: min(100%, 300px);
    margin-inline: auto;
  }

  .type-strip {
    display: none;
  }

  .quiz-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 2.5rem;
  }

  .quiz-aside {
    position: static;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0;
  }

  .quiz-aside::before {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    margin: 0;
  }

  .quiz-aside p {
    margin: 0;
    max-width: none;
  }

  .quiz-aside p:last-child {
    display: none;
  }

  .question-panel h1 {
    min-height: 0;
  }

  .result-hero {
    gap: 3.5rem;
  }

  .result-portrait-wrap {
    width: min(88%, 430px);
    margin-inline: auto;
  }

  .result-grid {
    margin-top: 5rem;
  }

  .dimension-card {
    position: static;
    order: -1;
  }
}

@media (max-width: 560px) {
  .shell,
  .shell-narrow {
    width: min(100% - 1.5rem, 1240px);
  }

  .topbar,
  .result-topbar,
  .quiz-topbar {
    min-height: 58px;
  }

  .brand {
    min-height: 44px;
    gap: 0.55rem;
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 30px;
  }

  .edition {
    display: none;
  }

  .intro-screen::before,
  .intro-screen::after {
    display: none;
  }

  .intro-screen::before {
    width: 64px;
    height: 64px;
  }

  .intro-grid {
    height: calc(100dvh - 110px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto clamp(310px, 43vh, 360px) auto minmax(0, 1fr) auto;
    column-gap: 0;
    row-gap: 0.7rem;
    padding-block: 0.75rem 1rem;
  }

  .intro-grid::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 3;
    align-self: center;
    justify-self: center;
    z-index: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--ink);
    border-radius: 2.7rem 1.35rem 3.3rem 1.7rem;
    background: oklch(0.92 0.085 91);
    box-shadow: 7px 8px 0 var(--ink);
    transform: rotate(-0.7deg);
  }

  .intro-copy {
    display: contents;
  }

  .intro-copy.reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .intro-copy > * {
    position: relative;
    z-index: 2;
  }

  .eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .intro-copy h1 {
    grid-column: 1;
    grid-column-end: -1;
    grid-row: 2;
    z-index: 2;
    width: max-content;
    min-height: 0;
    max-width: none;
    font-size: clamp(1.85rem, 8.7vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: -0.075em;
    white-space: nowrap;
  }

  .intro-copy h1::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -0.02em;
    right: -0.06em;
    bottom: 0.03em;
    height: 0.24em;
    border-radius: 50% 42% 48% 55%;
    background: var(--yellow);
    transform: rotate(-1deg);
  }

  .lede {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    z-index: 2;
    max-width: 34ch;
    margin: 1.25rem 1.35rem 0;
    font-size: 0.8rem;
    line-height: 1.65;
  }

  .intro-meta {
    grid-column: 1 / -1;
    grid-row: 4;
    flex-wrap: nowrap;
    gap: 0.48rem;
    margin: 0;
  }

  .intro-meta span,
  .intro-meta span:nth-child(2),
  .intro-meta span:nth-child(3) {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0.64rem;
    white-space: nowrap;
  }

  .intro-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 0.48rem;
    color: var(--red);
  }

  .intro-actions {
    grid-column: 1 / -1;
    grid-row: 6;
    display: grid;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0;
  }

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

  .intro-actions .primary-button {
    min-height: 48px;
    padding-block: 0.65rem;
  }

  .intro-actions .text-button {
    min-height: 38px;
    padding-block: 0.35rem;
    font-size: 0.78rem;
  }

  .visual-frame {
    width: 100%;
    padding: 0.35rem;
    border-width: 2px;
    border-radius: 1.25rem 0.7rem 1.65rem 0.9rem;
    box-shadow: 7px 8px 0 var(--ink);
    transform: rotate(1deg);
  }

  .intro-visual {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    justify-self: center;
    z-index: 2;
    width: clamp(165px, 52vw, 210px);
    margin: 0 0 1.2rem;
    transform: none;
  }

  .portrait-main {
    border-width: 2px;
    border-radius: 0.9rem 0.45rem 1.3rem 0.6rem;
  }

  .visual-index {
    right: 0.5rem;
    bottom: 0.55rem;
    padding: 0.18rem 0.36rem;
    border-width: 1.5px;
    font-size: 0.58rem;
  }

  .orbit-label {
    display: none;
  }

  .result-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-foot {
    min-height: 52px;
    padding-block: 0;
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .intro-foot p {
    max-width: none;
  }

  .foot-number {
    display: none;
  }

  .type-strip {
    display: none;
  }

  .mini-portrait {
    width: 50px;
  }

  .orbit-label-a { left: -5%; }
  .orbit-label-b { right: -5%; }

  .quiz-layout {
    padding-bottom: 3rem;
  }

  .question-panel h1 {
    font-size: clamp(1.75rem, 8.2vw, 2.45rem);
  }

  .answer-list {
    margin-top: 2rem;
  }

  .answer-option {
    min-height: 56px;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    gap: 0.65rem;
    padding-inline: 0.75rem;
  }

  .option-number {
    width: 30px;
  }

  .result-code-sticker {
    right: -0.65rem;
  }

  .result-heading h1 {
    font-size: clamp(2.9rem, 15vw, 4.3rem);
  }

  .result-foot .secondary-button {
    width: auto;
  }
}

@media (max-width: 560px) and (max-height: 620px) {
  .intro-grid {
    grid-template-rows: auto auto 245px auto minmax(0, 1fr) auto;
    row-gap: 0.72rem;
    padding-block: 0.55rem 0.75rem;
  }

  .intro-copy h1 {
    font-size: clamp(1.7rem, 8.5vw, 2rem);
  }

  .lede {
    max-width: none;
    margin: 0.65rem 0.85rem 0;
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .intro-grid::before {
    height: 100%;
  }

  .intro-visual {
    width: clamp(118px, 42vw, 138px);
    margin-bottom: 0.45rem;
  }
}

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