:root {
  /* Global type scale: approximately +8% with a small minimum bump. */
  --paper: #ece7dd;
  --paper-light: #f8f4eb;
  --paper-deep: #d9d2c5;
  --ink: #171715;
  --ink-soft: #33322e;
  --muted: #706d66;
  --line: rgba(23, 23, 21, 0.17);
  --line-dark: rgba(248, 244, 235, 0.2);
  --red: #c94733;
  --red-deep: #9f2f20;
  --lime: #dce78b;
  --serif: "Instrument Serif", "Songti SC", "STSong", "Noto Serif CJK SC", "Iowan Old Style", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Manrope", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --era-accent: #c94733;
  --era-soft: #e3c2bb;
  --era-ink: #171715;
  --header-height: 74px;
  --shadow-hard: 9px 9px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.68px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-view="quiz"],
body[data-view="result"] {
  background: var(--paper-light);
}

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

button {
  color: inherit;
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.23;
  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='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 10px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(236, 231, 221, 0.88);
  backdrop-filter: blur(18px);
}

body[data-view="quiz"] .site-header,
body[data-view="result"] .site-header {
  background: rgba(248, 244, 235, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  transition: transform 180ms ease;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.04);
}

.brand-copy {
  font-family: var(--mono);
  font-size: 10.12px;
  line-height: 1.08;
  letter-spacing: 0.11em;
}

.header-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.2px;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--muted);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-picker {
  display: flex;
  align-items: center;
}

.language-picker select {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.header-start {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 10px 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-size: 13.36px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.header-start svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--ink);
  fill: none;
  stroke: var(--paper);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.header-start:hover {
  background: var(--ink);
  color: var(--paper);
}

.header-start:hover svg {
  background: var(--paper);
  stroke: var(--ink);
}

.view {
  min-height: calc(100svh - var(--header-height));
}

.section-wrap {
  width: min(100% - clamp(36px, 8vw, 128px), 1380px);
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(380px, 0.87fr);
  align-items: center;
  gap: clamp(24px, 4vw, 82px);
  width: min(100% - clamp(36px, 8vw, 128px), 1460px);
  min-height: calc(100svh - var(--header-height));
  margin-inline: auto;
  padding: clamp(54px, 8vh, 110px) 0 clamp(46px, 7vh, 88px);
}

.hero::before {
  content: "";
  position: absolute;
  top: 7%;
  right: 4%;
  width: min(38vw, 540px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 11.2px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-rule {
  width: clamp(26px, 5vw, 70px);
  height: 1px;
  background: currentColor;
}

.eyebrow--light {
  color: var(--paper);
}

.hero-title {
  max-width: 880px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(72px, 8.3vw, 142px);
  font-weight: 400;
  line-height: 0.79;
  letter-spacing: -0.052em;
}

html[lang="en"] .hero-title {
  font-size: clamp(64px, 7.4vw, 118px);
  line-height: 0.84;
  letter-spacing: -0.045em;
}

.accent-italic {
  color: var(--red);
  font-style: italic;
  font-weight: 400;
}

.hero-intro {
  max-width: 670px;
  margin: clamp(32px, 4.5vh, 52px) 0 0;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.9;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: clamp(32px, 4.5vh, 52px);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 54px;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15.52px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-button {
  color: var(--paper-light);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--red);
}

.primary-button:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--red);
}

.primary-button:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--red);
}

.primary-button:disabled {
  color: #918d84;
  border-color: #c8c2b6;
  background: #ddd7cc;
  box-shadow: none;
  cursor: not-allowed;
}

.button-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -2px -8px -2px 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 18.76px;
}

.primary-button--quiz {
  min-width: 148px;
}

.secondary-button {
  background: transparent;
}

.secondary-button:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

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

.secondary-button--large {
  min-width: 148px;
}

.test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  font-family: var(--mono);
  font-size: 9.58px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.test-meta span + span::before {
  content: "•";
  margin-right: 15px;
}

.resume-note {
  display: block;
  margin-top: 22px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.12px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.resume-note:hover {
  color: var(--red);
  border-color: var(--red);
}

.hero-art {
  position: relative;
  z-index: 1;
  min-height: clamp(500px, 63vw, 720px);
}

.cover-orbit {
  position: absolute;
  inset: 7% 0 7%;
}

.vinyl-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 9%, rgba(255, 255, 255, 0.08) 9.3% 9.7%, transparent 10% 15%, rgba(255, 255, 255, 0.06) 15.3% 15.7%, transparent 16% 21%, rgba(255, 255, 255, 0.06) 21.3% 21.7%, transparent 22% 27%, rgba(255, 255, 255, 0.08) 27.3% 27.7%, transparent 28% 33%, rgba(255, 255, 255, 0.06) 33.3% 33.7%, transparent 34%),
    #111;
  box-shadow: 0 35px 70px rgba(23, 23, 21, 0.28);
  transform: translate(-39%, -50%) rotate(15deg);
  animation: slow-spin 28s linear infinite;
}

.vinyl-disc::before {
  content: "";
  position: absolute;
  inset: 43%;
  border-radius: 50%;
  background: var(--red);
}

.vinyl-disc::after {
  content: "";
  position: absolute;
  inset: 49.2%;
  border-radius: 50%;
  background: var(--paper);
}

@keyframes slow-spin {
  to { transform: translate(-39%, -50%) rotate(375deg); }
}

.hero-cover {
  position: absolute;
  margin: 0;
  border: 5px solid var(--paper-light);
  background: var(--paper-light);
  box-shadow: 0 22px 44px rgba(23, 23, 21, 0.25);
}

.hero-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero-cover--one {
  top: 4%;
  left: 2%;
  z-index: 2;
  width: 34%;
  transform: rotate(-11deg);
}

.hero-cover--two {
  right: 0;
  bottom: 12%;
  z-index: 3;
  width: 35%;
  transform: rotate(9deg);
}

.hero-cover--three {
  right: 2%;
  top: 1%;
  z-index: 1;
  width: 30%;
  transform: rotate(7deg);
}

.hero-cover--main {
  top: 21%;
  left: 27%;
  z-index: 4;
  width: 49%;
  transform: rotate(-2.5deg);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-art:hover .hero-cover--main {
  transform: rotate(0.5deg) translateY(-8px) scale(1.02);
}

.era-stamp {
  overflow: hidden;
  position: absolute;
  right: 2%;
  bottom: 2%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: clamp(96px, 12vw, 144px);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
}

.era-stamp-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  animation: stamp-spin 26s linear infinite;
}

.era-stamp-ring text {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
}

.stamp-center {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 30.64px;
  line-height: 1;
}

@keyframes stamp-spin {
  to { transform: rotate(368deg); }
}

.orbit-caption {
  position: absolute;
  z-index: 6;
  font-family: var(--mono);
  font-size: 9.04px;
  letter-spacing: 0.13em;
}

.orbit-caption--top {
  top: 0;
  right: 2%;
  writing-mode: vertical-rl;
}

.orbit-caption--bottom {
  right: 17%;
  bottom: 0;
  display: flex;
  gap: 34px;
}

.title-marquee {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--lime);
}

.marquee-track {
  display: flex;
  width: max-content;
  padding: 15px 0 13px;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  font-family: var(--mono);
  font-size: 12.28px;
  font-weight: 500;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.era-index {
  padding-top: clamp(78px, 11vw, 150px);
  padding-bottom: clamp(88px, 12vw, 170px);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(38px, 5vw, 70px);
}

.section-heading .eyebrow {
  margin-bottom: 17px;
}

.section-heading h2,
.result-section-heading h2,
.process-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(45px, 5.2vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.section-side-note {
  flex: 0 0 auto;
  margin: 0 0 7px;
  font-family: var(--mono);
  font-size: 10.12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3.3vw, 56px) clamp(16px, 2.2vw, 34px);
}

.album-grid-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 4vw, 52px);
}

.album-grid-toggle {
  min-width: min(100%, 280px);
}

.album-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.album-card-visual {
  position: relative;
  padding: 7px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 4px 4px 0 transparent;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.album-card-visual::after {
  content: "VIEW FILE ↗";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 99px;
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.album-card-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}

.album-card-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 21, 0.14);
  opacity: 0;
  transition: opacity 220ms ease;
}

.album-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.album-card:hover .album-card-visual,
.album-card:focus-visible .album-card-visual {
  transform: translate(-4px, -6px);
  box-shadow: 8px 8px 0 var(--ink);
}

.album-card:hover img {
  transform: scale(1.045);
}

.album-card:hover .album-card-image-wrap::after,
.album-card:hover .album-card-visual::after {
  opacity: 1;
  transform: translateY(0);
}

.album-card-meta {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: baseline;
  gap: 8px;
  padding-top: 13px;
}

.album-card-number,
.album-card-year {
  font-family: var(--mono);
  font-size: 9.04px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.album-card-title {
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.album-card-subtitle {
  display: block;
  margin: 5px 0 0 38px;
  font-family: var(--mono);
  font-size: 9.04px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.process-section {
  padding: clamp(72px, 9vw, 130px) 0;
  color: var(--paper-light);
  background: var(--ink);
}

.process-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 50px;
  padding-bottom: clamp(48px, 7vw, 90px);
  border-bottom: 1px solid var(--line-dark);
}

.process-heading .eyebrow {
  margin: 12px 0 0;
}

.process-heading h2 {
  max-width: 920px;
}

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

.process-list li {
  min-height: 250px;
  padding: clamp(30px, 4vw, 54px) clamp(20px, 3vw, 46px) 0;
  border-right: 1px solid var(--line-dark);
}

.process-list li:first-child {
  padding-left: 0;
}

.process-list li:last-child {
  border-right: 0;
}

.process-number {
  display: block;
  margin-bottom: clamp(42px, 6vw, 80px);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11.2px;
  letter-spacing: 0.12em;
}

.process-list h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(27px, 2.5vw, 38px);
  font-weight: 400;
}

.process-list p {
  max-width: 340px;
  margin: 0;
  color: #b8b4aa;
  font-size: 14.44px;
  line-height: 1.8;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
  font-family: var(--mono);
  font-size: 9.04px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.site-footer a:hover {
  color: var(--red);
}

/* Quiz */
.quiz-view {
  background:
    radial-gradient(circle at 95% 5%, rgba(201, 71, 51, 0.09), transparent 25%),
    var(--paper-light);
}

.quiz-progress-wrap {
  padding-top: 30px;
}

.quiz-topline,
.quiz-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-topline {
  margin-bottom: 29px;
}

.quiz-topline > span {
  font-family: var(--mono);
  font-size: 10.12px;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  font-family: var(--mono);
  font-size: 10.12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.text-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.text-link:hover {
  color: var(--red);
  border-color: var(--red);
}

.quiz-progress-meta {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9.58px;
  letter-spacing: 0.1em;
}

.progress-track {
  height: 2px;
  overflow: hidden;
  background: #cbc4b8;
}

.progress-fill {
  width: 5.55%;
  height: 100%;
  background: var(--red);
  transition: width 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.28fr) minmax(0, 1fr);
  gap: clamp(50px, 9vw, 140px);
  padding-top: clamp(45px, 6vw, 78px);
  padding-bottom: 80px;
}

.quiz-aside {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  align-self: start;
}

.quiz-aside-number {
  font-family: var(--serif);
  font-size: clamp(90px, 10vw, 152px);
  line-height: 0.72;
  letter-spacing: -0.065em;
}

.quiz-aside-label {
  margin: 15px 0 28px;
  font-family: var(--mono);
  font-size: 9.04px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.quiz-art-frame {
  position: relative;
  width: min(100%, 230px);
  padding: 7px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.quiz-art-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.quiz-art-frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(248, 244, 235, 0.45);
  pointer-events: none;
}

.quiz-art-cross {
  position: absolute;
  top: -12px;
  right: -12px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-family: var(--mono);
  font-size: 13.36px;
}

.quiz-aside-quote {
  max-width: 230px;
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: 22.0px;
  line-height: 1.45;
  color: var(--muted);
}

.question-stage {
  min-width: 0;
}

.question-card {
  position: relative;
  min-height: 570px;
  padding: clamp(28px, 4.4vw, 62px);
  border: 1px solid var(--ink);
  background: #fffdf8;
  box-shadow: 10px 10px 0 var(--paper-deep);
}

.question-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 42px;
  width: 64px;
  height: 4px;
  background: var(--red);
}

.question-kicker {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 9.58px;
  letter-spacing: 0.12em;
  color: var(--red);
}

.question-heading h2 {
  max-width: 930px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(39px, 4.7vw, 69px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.question-hint {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 13.36px;
}

.options {
  display: grid;
  gap: 9px;
  margin-top: clamp(30px, 4.5vw, 48px);
}

.option {
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 61px;
  padding: 10px 17px 10px 10px;
  border: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.option:hover {
  border-color: var(--ink);
  transform: translateX(3px);
}

.option-letter {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10.12px;
  transition: border-color 150ms ease, background 150ms ease;
}

.option-text {
  font-size: 14.44px;
  line-height: 1.55;
}

.option-check {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.option[aria-checked="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  transform: translateX(5px);
}

.option[aria-checked="true"] .option-letter {
  border-color: var(--paper-light);
  background: var(--paper-light);
  color: var(--ink);
}

.option[aria-checked="true"] .option-check {
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(220, 231, 139, 0.18);
}

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.keyboard-hint {
  margin: 17px 2px 0;
  font-family: var(--mono);
  font-size: 9.04px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
}

/* Result */
.result-view {
  --result-bg: var(--paper);
  background: var(--paper-light);
}

.result-hero {
  position: relative;
  overflow: hidden;
  color: var(--era-ink);
  background: var(--era-soft);
}

.result-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 20%, transparent 0 16%, rgba(23, 23, 21, 0.08) 16.1% 16.25%, transparent 16.4% 24%, rgba(23, 23, 21, 0.06) 24.1% 24.25%, transparent 24.4%),
    linear-gradient(115deg, transparent 0 63%, rgba(255, 255, 255, 0.1) 63.1% 64%, transparent 64.1%);
}

.result-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 8vw, 134px);
  align-items: center;
  min-height: min(790px, calc(100svh - var(--header-height)));
  padding-top: clamp(56px, 7vw, 98px);
  padding-bottom: clamp(56px, 7vw, 98px);
}

.result-cover-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
}

.result-cover-wrap::before {
  content: "";
  position: absolute;
  top: 11%;
  left: 20%;
  z-index: -1;
  width: 87%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--era-ink);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 40px 70px rgba(23, 23, 21, 0.22);
}

.result-cover {
  width: 100%;
  border: 9px solid var(--paper-light);
  box-shadow: 17px 17px 0 rgba(23, 23, 21, 0.24);
  transform: rotate(-2deg);
}

.result-sticker {
  position: absolute;
  right: -22px;
  bottom: 8%;
  display: grid;
  place-items: center;
  width: clamp(100px, 11vw, 150px);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--mono);
  font-size: clamp(8px, 0.8vw, 10px);
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: center;
  transform: rotate(8deg);
}

.result-copy {
  max-width: 730px;
}

.result-reveal {
  opacity: 0;
  animation: result-reveal-in 680ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.result-reveal--cover {
  animation-delay: 80ms;
}

.result-reveal--score {
  animation-delay: 280ms;
}

.result-reveal--title {
  animation-delay: 440ms;
}

.result-reveal--persona {
  animation-delay: 640ms;
}

.result-reveal--detail {
  animation-delay: 840ms;
}

.result-reveal--meta {
  animation-delay: 1040ms;
}

@keyframes result-reveal-in {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.result-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 10.12px;
  letter-spacing: 0.15em;
}

.result-kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
}

.result-album-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(70px, 8.3vw, 138px);
  font-weight: 400;
  line-height: 0.81;
  letter-spacing: -0.06em;
}

.result-archetype {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.3vw, 50px);
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.result-description {
  max-width: 650px;
  margin: 26px 0 0;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.85;
}

.result-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.result-meta-row span {
  padding: 7px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.04px;
  letter-spacing: 0.08em;
}

.result-content {
  padding-top: clamp(76px, 10vw, 140px);
}

.result-section-heading {
  margin-bottom: clamp(32px, 4vw, 54px);
}

.result-section-heading .eyebrow {
  margin-bottom: 15px;
}

.result-section-heading h2 {
  font-size: clamp(43px, 5vw, 76px);
}

.result-section-heading--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
}

.result-section-heading--row > p {
  margin: 0 0 7px;
  font-family: var(--mono);
  font-size: 9.04px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: right;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.trait-card {
  min-height: 250px;
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.trait-number {
  display: block;
  margin-bottom: 58px;
  font-family: var(--mono);
  font-size: 9.04px;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.trait-card h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(29px, 3vw, 45px);
  font-weight: 400;
  line-height: 1;
}

.trait-card p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 13.36px;
  line-height: 1.75;
}

.match-group-hint {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: clamp(13.5px, 1.15vw, 16px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}

.match-group-switcher {
  display: inline-flex;
  width: min(100%, 480px);
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.match-group-switch {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.match-group-switch[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper-light);
}

.match-group-switch:hover:not([aria-pressed="true"]) {
  background: var(--paper-deep);
}

.match-section {
  padding-top: clamp(84px, 10vw, 138px);
}

.top-matches {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border: 1px solid var(--ink);
}

.match-card {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 2.7vw, 36px);
  border-right: 1px solid var(--ink);
}

.match-card-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.match-card-hit:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -6px;
}

.match-card-hit:hover ~ .match-cover-wrap .match-cover {
  filter: brightness(0.9);
  transform: scale(0.985);
}

.match-card:last-child {
  border-right: 0;
}

.match-card--winner {
  background: var(--ink);
  color: var(--paper-light);
}

.match-card-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 9.04px;
  letter-spacing: 0.1em;
}

.match-percent {
  font-size: 14.44px;
}

.match-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 5px solid currentColor;
  transition: filter 180ms ease, transform 180ms ease;
}

.match-card-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
}

.match-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 43px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.match-card p {
  margin: 7px 0 0;
  font-family: var(--mono);
  font-size: 9.04px;
  letter-spacing: 0.07em;
  opacity: 0.7;
}

.match-card-year {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 9.04px;
  letter-spacing: 0.05em;
}

.spectrum-section {
  padding-top: clamp(84px, 10vw, 138px);
}

.spectrum-note {
  margin: 0 0 7px;
  font-family: var(--mono);
  font-size: 9.04px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: right;
}

.spectrum-list {
  border-top: 1px solid var(--ink);
}

.spectrum-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.spectrum-toggle {
  min-width: min(100%, 260px);
}

.spectrum-row {
  display: grid;
  grid-template-columns: 34px minmax(150px, 0.75fr) minmax(180px, 1.4fr) 55px;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.spectrum-index,
.spectrum-year,
.spectrum-value {
  font-family: var(--mono);
  font-size: 9.04px;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.spectrum-name {
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.spectrum-track {
  height: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: transparent;
}

.spectrum-bar {
  width: 0;
  height: 100%;
  background: var(--ink);
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.spectrum-row--top .spectrum-name,
.spectrum-row--top .spectrum-value {
  color: var(--red);
}

.spectrum-row--top .spectrum-bar {
  background: var(--red);
}

.spectrum-value {
  text-align: right;
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: clamp(70px, 9vw, 120px) 0 clamp(72px, 10vw, 130px);
}

.text-link--large {
  margin-left: 10px;
  font-size: 11.2px;
}

/* Album dialog */
.album-dialog {
  width: min(920px, calc(100vw - 38px));
  max-height: calc(100svh - 40px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.album-dialog::backdrop {
  background: rgba(23, 23, 21, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: auto;
  max-height: calc(100svh - 40px);
  background: var(--paper-light);
  box-shadow: 15px 15px 0 var(--red);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-light);
  font-size: 24.16px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.dialog-close:hover {
  transform: rotate(8deg);
  background: var(--ink);
  color: var(--paper-light);
}

.dialog-cover {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.dialog-copy {
  padding: clamp(36px, 5vw, 64px);
}

.dialog-index {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 9.04px;
  letter-spacing: 0.12em;
  color: var(--red);
}

.dialog-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 400;
  line-height: 0.87;
  letter-spacing: -0.045em;
}

.dialog-persona-label {
  margin: 24px 0 0;
  font-family: var(--mono);
  font-size: 9.04px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.dialog-archetype {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 25.24px;
  font-style: italic;
  color: var(--red);
}

.dialog-description {
  margin: 24px 0 0;
  font-size: 14.44px;
  line-height: 1.85;
}

.dialog-tracks {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.dialog-tracks-label {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 9.04px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.dialog-track-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dialog-track-list span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 11.2px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  border: 1px solid var(--paper-light);
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 13.36px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  animation: reveal-up 700ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-title { animation-delay: 60ms; }
.hero-intro { animation-delay: 130ms; }
.hero-actions { animation-delay: 200ms; }
.hero-art { animation-delay: 130ms; }

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  }

  .hero-art {
    min-height: 560px;
  }

  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quiz-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 48px;
  }

  .quiz-aside-number {
    font-size: 108.4px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-label {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .hero::before {
    display: none;
  }

  .hero-title {
    font-size: clamp(65px, 15vw, 112px);
  }

  .hero-art {
    order: 1;
    min-height: min(112vw, 650px);
    margin-top: 0;
    margin-bottom: 36px;
  }

  .hero-copy {
    order: 2;
  }

  .cover-orbit {
    inset: 3% 2%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

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

  .process-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li,
  .process-list li:first-child {
    min-height: 0;
    padding: 38px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .process-list li:last-child {
    border-bottom: 0;
  }

  .process-number {
    margin-bottom: 32px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .quiz-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 42px;
  }

  .quiz-aside {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 16px;
  }

  .quiz-aside-number {
    font-size: 78.16px;
  }

  .quiz-aside-label {
    margin: 0 0 8px;
  }

  .quiz-art-frame {
    width: 92px;
  }

  .quiz-aside-quote {
    display: none;
  }

  .question-card {
    min-height: 0;
    box-shadow: 7px 7px 0 var(--paper-deep);
  }

  .result-hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    min-height: 0;
  }

  .result-cover-wrap {
    width: min(84%, 470px);
  }

  .result-sticker {
    right: -8px;
  }

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

  .trait-card {
    min-height: 0;
  }

  .trait-number {
    margin-bottom: 32px;
  }

  .top-matches {
    grid-template-columns: 1fr;
  }

  .match-card,
  .match-card:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .match-card:last-child {
    border-bottom: 0;
  }

  .match-card {
    display: grid;
    grid-template-columns: 36% 1fr;
    gap: 22px;
  }

  .match-card-rank {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .match-card-info {
    align-self: end;
  }

  .spectrum-row {
    grid-template-columns: 24px minmax(120px, 0.85fr) minmax(90px, 1.15fr) 45px;
    gap: 10px;
  }

  .dialog-inner {
    grid-template-columns: 1fr;
  }

  .dialog-cover {
    min-height: 0;
    aspect-ratio: 1;
  }
}

@media (max-width: 560px) {
  .section-wrap,
  .hero {
    width: calc(100% - 36px);
  }

  .site-header {
    padding-inline: 18px;
  }

  .brand-copy {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-start {
    padding-left: 14px;
    font-size: 12.28px;
  }

  .header-actions {
    gap: 7px;
  }

  .language-picker select {
    max-width: 72px;
    padding-inline: 7px;
    font-size: 9px;
  }

  .header-start svg {
    width: 25px;
    height: 25px;
  }

  .eyebrow {
    gap: 10px;
    margin-bottom: 22px;
    font-size: 9.04px;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 46px;
  }

  .hero-title {
    font-size: clamp(58px, 17vw, 90px);
    line-height: 0.84;
  }

  html[lang="en"] .hero-title {
    font-size: clamp(52px, 14vw, 78px);
    line-height: 0.9;
  }

  .hero-intro {
    margin-top: 27px;
    font-size: 15.52px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 21px;
    margin-top: 30px;
  }

  .primary-button {
    min-height: 52px;
  }

  .hero-art {
    min-height: 112vw;
    margin-top: 0;
    margin-bottom: 32px;
  }

  .hero-cover {
    border-width: 3px;
  }

  .orbit-caption--top {
    display: none;
  }

  .orbit-caption--bottom {
    right: 3%;
  }

  .era-stamp {
    right: -2%;
    bottom: 0;
  }

  .section-heading h2,
  .result-section-heading h2,
  .process-heading h2 {
    font-size: 49.0px;
  }

  .album-grid {
    gap: 30px 12px;
  }

  .album-card-visual {
    padding: 4px;
  }

  .album-card-meta {
    grid-template-columns: 20px 1fr;
    padding-top: 10px;
  }

  .album-card-year {
    display: none;
  }

  .album-card-title {
    font-size: 22.0px;
  }

  .album-card-subtitle {
    margin-left: 28px;
    font-size: 7.96px;
  }

  .album-card-visual::after {
    display: none;
  }

  .site-footer {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .quiz-progress-wrap {
    padding-top: 20px;
  }

  .quiz-layout {
    padding-bottom: 48px;
  }

  .quiz-aside {
    grid-template-columns: auto 1fr;
  }

  .quiz-art-frame {
    display: none;
  }

  .quiz-aside-number {
    font-size: 63.04px;
  }

  .question-card {
    padding: 25px 18px 22px;
  }

  .question-card::before {
    left: 18px;
  }

  .question-heading h2 {
    font-size: clamp(34px, 10.7vw, 47px);
  }

  .question-hint {
    margin-top: 12px;
    font-size: 12.28px;
  }

  .options {
    margin-top: 27px;
  }

  .option {
    grid-template-columns: 34px 1fr 12px;
    gap: 10px;
    min-height: 59px;
    padding: 10px 12px 10px 9px;
  }

  .option-letter {
    width: 34px;
    height: 34px;
  }

  .option-text {
    font-size: 13.36px;
  }

  .option[aria-checked="true"] {
    transform: none;
  }

  .quiz-actions {
    gap: 10px;
  }

  .quiz-actions .secondary-button,
  .quiz-actions .primary-button {
    min-height: 48px;
    padding-inline: 18px;
    font-size: 13.36px;
  }

  .quiz-actions .primary-button {
    gap: 14px;
  }

  .keyboard-hint {
    display: none;
  }

  .result-hero-inner {
    gap: 43px;
    padding-top: 47px;
    padding-bottom: 66px;
  }

  .result-cover {
    border-width: 6px;
    box-shadow: 11px 11px 0 rgba(23, 23, 21, 0.22);
  }

  .result-sticker {
    width: 92px;
    font-size: 7.96px;
  }

  .result-album-title {
    font-size: clamp(59px, 19vw, 92px);
    line-height: 0.85;
  }

  .result-archetype {
    font-size: 30.64px;
  }

  .result-description {
    font-size: 14.44px;
  }

  .result-content {
    padding-top: 70px;
  }

  .result-section-heading--row {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .result-section-heading--row > p,
  .spectrum-note {
    text-align: left;
  }

  .trait-grid {
    border-left: 0;
  }

  .trait-card {
    border-left: 1px solid var(--ink);
    padding: 27px 22px;
  }

  .match-card {
    grid-template-columns: 42% 1fr;
    gap: 16px;
  }

  .match-card h3 {
    font-size: 31.72px;
  }

  .spectrum-row {
    grid-template-columns: 20px minmax(100px, 1fr) 89px 39px;
    min-height: 58px;
    gap: 7px;
  }

  .spectrum-name {
    font-size: 19.84px;
  }

  .spectrum-index,
  .spectrum-year,
  .spectrum-value {
    font-size: 7.96px;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

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

  .text-link--large {
    justify-content: center;
    margin-left: 0;
    padding: 12px 0;
  }

  .dialog-copy {
    padding: 32px 24px 40px;
  }

  .dialog-close {
    top: 12px;
    right: 12px;
  }

  .dialog-copy h2 {
    font-size: 56.56px;
  }
}

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

  .result-reveal {
    opacity: 1;
    filter: none;
    transform: none;
    animation-delay: 0ms !important;
  }
}

/* Final typography adjustments */
.accent-italic {
  white-space: nowrap;
}

.hero-title {
  font-size: clamp(68px, 6.3vw, 112px);
}

.hero-title:focus,
.question-heading h2:focus,
.result-album-title:focus {
  outline: none;
}

@media (max-width: 820px) {
  .hero-title {
    font-size: clamp(65px, 15vw, 112px);
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(58px, 17vw, 90px);
  }
}

/* Keep interface arrows as vector icons across iOS and other platforms. */
.button-arrow svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inline-button-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inline-button-icon--back {
  margin-right: -5px;
}

.primary-button:disabled .button-arrow {
  background: #bdb7ad;
  color: #6f6b63;
}

/* Chinese fallback glyphs have taller metrics than the Latin display font. */
.hero-title {
  line-height: 0.92;
}

@media (max-width: 820px) {
  .hero-title {
    line-height: 0.98;
    letter-spacing: -0.045em;
  }
}

@media (max-width: 560px) {
  .hero-title {
    line-height: 1.04;
    letter-spacing: -0.035em;
  }
}

/* Multi-artist archive controls and metadata. */
.artist-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -28px 0 42px;
}

.artist-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 10.12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.artist-filter span {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 7.96px;
  transition: background 160ms ease, color 160ms ease;
}

.artist-filter:hover,
.artist-filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.artist-filter:hover span,
.artist-filter.is-active span {
  background: var(--red);
  color: var(--paper-light);
}

.album-card-artist {
  display: block;
  margin: 6px 0 0 38px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9.04px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.album-card-subtitle {
  margin-top: 3px;
}

.spectrum-album {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.spectrum-artist {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.96px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 820px) {
  .artist-filters {
    margin: -10px 0 32px;
  }
}

@media (max-width: 560px) {
  .artist-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: -4px 0 27px;
    padding-bottom: 5px;
    scrollbar-width: none;
  }

  .artist-filters::-webkit-scrollbar {
    display: none;
  }

  .artist-filter {
    flex: 0 0 auto;
  }

  .album-card-artist {
    margin-left: 28px;
    font-size: 7.96px;
  }
}

/* Long album titles get a dedicated editorial treatment. */
.album-card-title--long {
  min-height: 2.14em;
  font-size: clamp(16px, 1.55vw, 22px);
  line-height: 1.07;
  white-space: normal;
}

.result-album-title--long {
  font-size: clamp(48px, 5.9vw, 102px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

@media (max-width: 560px) {
  .album-card-title--long {
    font-size: 18.76px;
  }

  .result-album-title--long {
    font-size: clamp(43px, 12.6vw, 66px);
    line-height: 0.98;
  }
}

.hero-cover--five {
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 28%;
  transform: rotate(8deg);
}

/* Result-page top-nine persona grid. */
.top-matches {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 0;
}

.match-card,
.match-card:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(12px, 1.4vw, 18px);
  border: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.match-card--winner {
  background: var(--ink);
  color: var(--paper-light);
}

.match-card-rank {
  margin-bottom: 11px;
  font-size: 8.5px;
}

.match-cover-wrap {
  position: relative;
}

.match-cover {
  border-width: 3px;
}

.match-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  min-width: 47px;
  height: 47px;
  padding: 5px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono);
  font-size: 11.2px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.match-card--winner .match-badge {
  background: var(--red);
  color: var(--paper-light);
  box-shadow: 3px 3px 0 var(--paper-light);
}

.match-card-info {
  padding-top: 13px;
}

.match-card h3 {
  font-size: clamp(21px, 2.15vw, 31px);
  line-height: 1;
}

.match-card p {
  font-size: 8.5px;
}

@media (max-width: 820px) {
  .top-matches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .match-card,
  .match-card:last-child {
    display: flex;
    grid-template-columns: none;
    gap: 0;
  }

  .match-card-rank {
    grid-column: auto;
    margin-bottom: 10px;
  }

  .match-card-info {
    align-self: auto;
  }
}

@media (max-width: 420px) {
  .top-matches {
    grid-template-columns: 1fr;
  }
}

/* Keep the result grid at 3 x 3 on phones. */
@media (max-width: 820px) {
  .top-matches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(5px, 1.5vw, 10px);
  }

  .match-card,
  .match-card:last-child {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 7px;
  }

  .match-card-rank {
    margin-bottom: 6px;
    font-size: 6.88px;
    letter-spacing: 0.04em;
  }

  .match-card-rank span:last-child {
    display: none;
  }

  .match-cover {
    border-width: 2px;
  }

  .match-badge {
    top: 5px;
    right: 5px;
    min-width: 31px;
    width: 31px;
    height: 31px;
    padding: 3px;
    border-width: 1px;
    box-shadow: 2px 2px 0 var(--ink);
    font-size: 9.04px;
  }

  .match-card--winner .match-badge {
    box-shadow: 2px 2px 0 var(--paper-light);
  }

  .match-card-info {
    display: block;
    padding-top: 8px;
  }

  .match-card h3 {
    overflow: hidden;
    font-size: clamp(13px, 3.5vw, 19px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .match-card p {
    overflow: hidden;
    margin-top: 4px;
    font-size: 6.88px;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .match-card-year {
    display: none;
  }
}

@media (max-width: 420px) {
  .top-matches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Result-page 2 x 2 persona grid with larger, readable type. */
.top-matches {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
  width: min(100%, 1080px);
  margin-inline: auto;
}

.match-card,
.match-card:last-child {
  padding: clamp(12px, 1.6vw, 20px);
}

.match-card-rank {
  margin-bottom: 13px;
  font-size: 10.12px;
}

.match-cover {
  border-width: 4px;
}

.match-badge {
  top: 11px;
  right: 11px;
  min-width: 52px;
  width: 52px;
  height: 52px;
  font-size: 13.36px;
}

.match-card-info {
  padding-top: 15px;
}

.match-card h3 {
  font-size: clamp(28px, 3.2vw, 43px);
  line-height: 1.02;
}

.match-card p {
  margin-top: 8px;
  font-size: 10.12px;
}

.match-card-year {
  font-size: 10.12px;
}

@media (max-width: 820px) {
  .top-matches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 2vw, 13px);
  }

  .match-card,
  .match-card:last-child {
    padding: clamp(8px, 2.2vw, 12px);
  }

  .match-card-rank {
    margin-bottom: 8px;
    font-size: 7.96px;
  }

  .match-cover {
    border-width: 3px;
  }

  .match-badge {
    top: 7px;
    right: 7px;
    min-width: 38px;
    width: 38px;
    height: 38px;
    box-shadow: 2px 2px 0 var(--ink);
    font-size: 10.12px;
  }

  .match-card--winner .match-badge {
    box-shadow: 2px 2px 0 var(--paper-light);
  }

  .match-card-info {
    padding-top: 10px;
  }

  .match-card h3 {
    font-size: clamp(19px, 5vw, 26px);
    line-height: 1.05;
  }

  .match-card p {
    margin-top: 5px;
    font-size: 9.04px;
  }

  .match-card-year {
    display: block;
    font-size: 7.96px;
  }
}

@media (max-width: 420px) {
  .top-matches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-card h3 {
    font-size: clamp(18px, 5.3vw, 23px);
  }
}

/* Slightly larger body copy in responsive clamp-based text. */
.hero-intro {
  font-size: clamp(16px, 1.4vw, 19px);
}

.result-description {
  font-size: clamp(15px, 1.35vw, 18px);
}

/* Share-card trigger and generated-image preview. */
.four-grid-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(24px, 3vw, 38px);
}

.result-art-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.four-grid-share .primary-button,
.four-grid-share .secondary-button {
  min-width: min(100%, 300px);
}

.share-card-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.share-card-dialog::backdrop {
  background: rgba(23, 23, 21, 0.76);
  backdrop-filter: blur(8px);
}

.share-card-panel {
  position: relative;
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 12px 12px 0 var(--red);
}

.share-card-eyebrow {
  margin-bottom: 15px;
  font-size: 10px;
}

.share-card-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.wallpaper-dialog {
  width: min(620px, calc(100vw - 32px));
}

.wallpaper-panel h2 {
  font-size: clamp(40px, 5.2vw, 56px);
}

.wallpaper-preview {
  display: grid;
  max-height: 62svh;
  overflow: hidden;
  padding: 10px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.wallpaper-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(62svh - 20px);
  object-fit: contain;
}

.share-card-copy {
  max-width: 390px;
  margin: 15px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.share-card-preview {
  display: grid;
  max-height: 58svh;
  overflow-y: auto;
  place-items: start center;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.share-card-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.share-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.share-card-actions .primary-button,
.share-card-actions .secondary-button {
  flex: 1;
  min-width: 0;
  padding-inline: 18px;
}

@media (max-width: 560px) {
  .share-card-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
  }

  .share-card-panel {
    max-height: calc(100svh - 20px);
    padding: 24px 20px 26px;
    box-shadow: 8px 8px 0 var(--red);
  }

  .share-card-panel h2 {
    font-size: 42px;
  }

  .share-card-preview {
    max-height: 54svh;
  }

  .wallpaper-preview {
    max-height: 58svh;
  }

  .wallpaper-preview img {
    max-height: calc(58svh - 20px);
  }

  .share-card-actions {
    flex-direction: column;
  }

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

/* Four-grid / nine-grid result switcher. */
.matches-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 13px;
}

.matches-tools > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  text-align: right;
}

.persona-grid-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.grid-switch {
  min-height: 32px;
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.grid-switch[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper-light);
}

.grid-switch:hover:not([aria-pressed="true"]) {
  background: var(--paper-deep);
}

.top-matches.is-nine-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 16px);
}

.top-matches.is-nine-grid .match-card,
.top-matches.is-nine-grid .match-card:last-child {
  display: block;
  padding: clamp(5px, 0.8vw, 9px);
}

.top-matches.is-nine-grid .match-card-rank,
.top-matches.is-nine-grid .match-card-info {
  display: none;
}

.top-matches.is-nine-grid .match-cover {
  border-width: 2px;
}

.top-matches.is-nine-grid .match-badge {
  top: 7px;
  right: 7px;
  min-width: 34px;
  width: 34px;
  height: 34px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 9px;
}

.top-matches.is-nine-grid .match-card--winner .match-badge {
  box-shadow: 2px 2px 0 var(--paper-light);
}

@media (max-width: 820px) {
  .matches-tools {
    align-items: flex-start;
  }

  .matches-tools > p {
    text-align: left;
  }

  .top-matches.is-nine-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(5px, 1.5vw, 9px);
  }

  .top-matches.is-nine-grid .match-card,
  .top-matches.is-nine-grid .match-card:last-child {
    padding: 5px;
  }

  .top-matches.is-nine-grid .match-badge {
    top: 4px;
    right: 4px;
    min-width: 29px;
    width: 29px;
    height: 29px;
    font-size: 8px;
  }
}

@media (max-width: 420px) {
  .top-matches.is-nine-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Randomized hero-cover rotation. */
.hero-cover img {
  opacity: 1;
  transition: opacity 480ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 520ms ease;
}

.hero-cover img.is-changing {
  opacity: 0;
  filter: blur(2px);
  transform: scale(0.93) rotate(var(--swap-tilt, 1.5deg));
}

/* Prominent result match score. */
.result-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.result-heading-row .result-kicker {
  margin-top: 9px;
  margin-bottom: 18px;
}

.result-match-score {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 9px 16px 11px;
  border-radius: 16px;
  background: var(--era-ink);
  color: var(--paper-light);
  box-shadow: 4px 4px 0 var(--red);
}

.result-match-score strong {
  font-family: var(--serif);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.04em;
}

.result-match-score span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

@media (max-width: 560px) {
  .result-heading-row {
    gap: 15px;
  }

  .result-match-score {
    padding: 8px 13px 9px;
    border-radius: 13px;
    box-shadow: 3px 3px 0 var(--red);
  }

  .result-match-score strong {
    font-size: 36px;
  }
}
