/* =========================================================
   MIRROR 16 — visual system
   ========================================================= */

:root {
  --paper: #f3efe6;
  --paper-2: #ece6da;
  --card: #fffdf8;
  --ink: #17231f;
  --ink-2: #253831;
  --ink-soft: #4b5a53;
  --muted: #66736b;
  --line: rgba(23, 35, 31, 0.13);
  --line-strong: rgba(23, 35, 31, 0.24);
  --accent: #d25b36;
  --accent-soft: #f3e3d8;
  --accent-bright: #eea07f;
  --accent-ink: #6d2b16;

  --sans: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;

  --shell: 1240px;
  --radius: 28px;
  --shadow-soft: 0 26px 60px -38px rgba(23, 35, 31, 0.42);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-group="NT"] {
  --accent: #7663d8;
  --accent-soft: #ece8fb;
  --accent-bright: #b8aaff;
  --accent-ink: #2d2256;
}
body[data-group="NF"] {
  --accent: #2f8b6e;
  --accent-soft: #e3f1ea;
  --accent-bright: #83d6b8;
  --accent-ink: #163f32;
}
body[data-group="SJ"] {
  --accent: #3d7cb5;
  --accent-soft: #e5eef7;
  --accent-bright: #8fc2eb;
  --accent-ink: #173a57;
}
body[data-group="SP"] {
  --accent: #cc7a28;
  --accent-soft: #f8ebd8;
  --accent-bright: #f2bd79;
  --accent-ink: #57330d;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body[data-group] {
  background: var(--paper);
}

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

button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
blockquote,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

svg {
  display: block;
}

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

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

[hidden] {
  display: none !important;
}

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

.screen {
  position: relative;
  min-height: 100svh;
  animation: screenIn 0.5s var(--ease) both;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Shared elements
   ========================================================= */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__seal {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", var(--serif);
  font-size: 21px;
  line-height: 1;
  box-shadow: 0 8px 18px -10px rgba(23, 35, 31, 0.55);
}

.brand__seal--small {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 16px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.15;
}

.brand__text span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.brand--compact .brand__seal {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 18px;
}

.brand--compact .brand__text {
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary,
.btn--dark {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 30px -16px rgba(23, 35, 31, 0.7);
}

.btn--primary:hover,
.btn--dark:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(23, 35, 31, 0.65);
}

.btn--primary:active,
.btn--dark:active {
  transform: translateY(0);
}

.btn--lg {
  min-height: 62px;
  padding: 8px 10px 8px 28px;
  font-size: 15px;
}

.btn__time {
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid rgba(243, 239, 230, 0.22);
  color: rgba(243, 239, 230, 0.56);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.btn__arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: 6px;
  border-radius: 50%;
  background: rgba(243, 239, 230, 0.12);
  transition:
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.btn--lg:hover .btn__arrow {
  background: var(--accent);
  transform: translateX(3px);
}

.btn--quiet {
  padding: 12px 4px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.btn--quiet svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.btn--quiet:hover {
  color: var(--ink);
}

.btn--quiet:hover svg {
  transform: translateX(3px);
}

.btn--nav {
  min-height: 36px;
  padding: 0 17px;
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.btn--nav:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 12px;
  gap: 8px;
}

.btn--small svg {
  width: 15px;
  height: 15px;
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
}

.btn--exit {
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.25s;
}

.btn--exit svg {
  width: 15px;
  height: 15px;
}

.btn--exit:hover {
  color: var(--ink);
}

.btn--back {
  gap: 8px;
  padding: 10px 2px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.btn--back svg {
  width: 16px;
  height: 16px;
}

.btn--back:hover {
  color: var(--ink);
}

.btn--back:disabled {
  opacity: 0.28;
  cursor: default;
}

.btn:disabled {
  cursor: default;
}

.text-btn {
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: color 0.25s;
}

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

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.section-label > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 8px;
  letter-spacing: 0.04em;
}

/* =========================================================
   Intro
   ========================================================= */

.screen--intro {
  overflow: hidden;
}

.intro-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 38% at 82% 13%, rgba(226, 148, 96, 0.21), transparent 70%),
    radial-gradient(ellipse 34% 42% at 8% 28%, rgba(81, 137, 115, 0.15), transparent 70%),
    radial-gradient(ellipse 55% 30% at 62% 94%, rgba(208, 188, 148, 0.2), transparent 72%);
}

.intro-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--paper) 100%);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 26px clamp(20px, 4vw, 48px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
}

.site-nav__link {
  position: relative;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--ink);
  transition: right 0.3s var(--ease);
}

.site-nav__link:hover {
  color: var(--ink);
}

.site-nav__link:hover::after {
  right: 0;
}

.intro-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 36px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: min(760px, calc(100svh - 180px));
  padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 110px);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.19em;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(210, 91, 54, 0.1);
}

.hero__title {
  max-width: 720px;
  font-size: clamp(48px, 6.3vw, 90px);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.07;
}

.marker {
  position: relative;
  color: var(--accent);
  background: linear-gradient(transparent 70%, rgba(210, 91, 54, 0.17) 70%);
}

.hero__lede {
  max-width: 500px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.95;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 11px;
}

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

.hero__meta li::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.orbit {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.orbit::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 253, 248, 0.86), rgba(255, 253, 248, 0) 68%);
  filter: blur(6px);
}

.orbit__ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orbit__ring--outer {
  inset: 3.5%;
  border: 1px solid rgba(23, 35, 31, 0.11);
}

.orbit__ring--inner {
  inset: 21%;
  border: 1px solid rgba(23, 35, 31, 0.13);
}

.orbit__ring--dash {
  inset: 12%;
  border: 1px dashed rgba(23, 35, 31, 0.11);
  animation: spin 120s linear infinite;
}

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

.orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 31%;
  height: 31%;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow:
    0 26px 54px -24px rgba(23, 35, 31, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transform: translate(-50%, -50%);
}

.orbit__core::after {
  content: "";
  position: absolute;
  inset: -13px;
  border: 1px solid rgba(23, 35, 31, 0.12);
  border-radius: 50%;
}

.orbit__number {
  font-family: var(--serif);
  font-size: clamp(44px, 5.6vw, 74px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.orbit__caption {
  margin-top: 8px;
  color: rgba(243, 239, 230, 0.55);
  font-family: var(--mono);
  font-size: clamp(6px, 0.65vw, 8px);
  letter-spacing: 0.18em;
}

.orbit-node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(23, 35, 31, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 8px 22px -14px rgba(23, 35, 31, 0.35);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: clamp(8px, 0.78vw, 10px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
  animation: nodeFloat 7s ease-in-out infinite;
  animation-delay: var(--delay);
}

.orbit-node i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--node-color);
}

@keyframes nodeFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-5px);
  }
}

.art-note {
  position: absolute;
  z-index: 4;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.art-note--top {
  top: 14%;
  right: 0;
}

.art-note--bottom {
  bottom: 13%;
  left: 0;
  transform: rotate(180deg);
}

/* =========================================================
   Intro sections
   ========================================================= */

.method {
  padding: 72px 0 80px;
  border-top: 1px solid var(--line);
}

.method__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(34px, 7vw, 110px);
  margin-top: 42px;
}

.method__intro h2 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.method__intro p {
  max-width: 340px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.step__num {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.steps h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.steps p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.axes {
  position: relative;
  overflow: hidden;
  margin: 0 auto 110px;
  padding: clamp(34px, 4.5vw, 58px);
  border-radius: 36px;
  background: var(--ink);
  color: var(--paper);
}

.axes::before {
  content: "";
  position: absolute;
  top: -38%;
  right: -12%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 91, 54, 0.27), transparent 67%);
  pointer-events: none;
}

.axes::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: -48%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(243, 239, 230, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 46px rgba(243, 239, 230, 0.025),
    0 0 0 92px rgba(243, 239, 230, 0.02);
  pointer-events: none;
}

.axes__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 46px;
}

.axes .section-label {
  color: rgba(243, 239, 230, 0.47);
}

.axes .section-label > span {
  border-color: rgba(243, 239, 230, 0.2);
}

.axes__head h2 {
  margin-top: 14px;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.axes__lede {
  max-width: 280px;
  color: rgba(243, 239, 230, 0.45);
  font-size: 11px;
  line-height: 1.9;
  text-align: right;
}

.axes__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(243, 239, 230, 0.15);
}

.axis {
  padding: 28px 22px 4px 0;
  border-right: 1px solid rgba(243, 239, 230, 0.12);
}

.axis:last-child {
  border-right: 0;
  padding-right: 0;
}

.axis + .axis {
  padding-left: 22px;
}

.axis__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  color: rgba(243, 239, 230, 0.35);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.axis__letters {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.axis__letters i {
  margin: 0 4px;
  color: var(--accent-bright);
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
}

.axis h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.axis p {
  min-height: 82px;
  margin-top: 12px;
  color: rgba(243, 239, 230, 0.58);
  font-size: 12px;
  line-height: 1.85;
}

.axis__poles {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(243, 239, 230, 0.1);
  color: rgba(243, 239, 230, 0.35);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.type-library {
  margin-bottom: 118px;
}

.type-library__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.type-library__head h2 {
  margin-top: 16px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 750;
  letter-spacing: -0.04em;
}

.type-library__head > p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
  text-align: right;
}

.type-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.type-group {
  padding: 24px 22px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.46);
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.type-group:hover {
  background: rgba(255, 253, 248, 0.82);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.type-group__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.type-group__head i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--group-color);
}

.type-group__head h3 {
  font-size: 14px;
  font-weight: 650;
}

.type-group__head span {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.type-group li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(23, 35, 31, 0.06);
}

.type-group li:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.type-group li b {
  color: var(--group-color);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.type-group li span {
  color: var(--ink-soft);
  font-size: 12px;
}

.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 112px) 24px clamp(76px, 9vw, 120px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.closing::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(780px, 100%);
  aspect-ratio: 2 / 1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(210, 91, 54, 0.11), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.closing > * {
  position: relative;
  z-index: 1;
}

.closing__kicker {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.closing h2 {
  margin: 22px auto 34px;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.24;
}

.closing__note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 36px;
  padding: 38px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__brand p {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.site-footer__brand b {
  font-size: 11px;
  letter-spacing: 0.16em;
}

.site-footer__brand span {
  color: var(--muted);
  font-size: 9px;
}

.site-footer__note {
  max-width: 560px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

/* =========================================================
   Quiz
   ========================================================= */

.screen--quiz {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-bottom: 24px;
  background:
    radial-gradient(ellipse 50% 40% at 82% 8%, rgba(213, 151, 105, 0.13), transparent 70%),
    var(--paper);
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 40px) 20px;
}

.quiz-header__right {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.quiz-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.quiz-count b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.quiz-count span {
  margin-left: 3px;
}

.quiz-progress {
  width: 100%;
  max-width: 1160px;
  height: 2px;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(23, 35, 31, 0.09);
}

.quiz-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
  transition: width 0.55s var(--ease);
}

.quiz-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: 38px 0 22px;
}

.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.question-tag {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.question-dots {
  display: flex;
  gap: 5px;
}

.question-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(23, 35, 31, 0.13);
  transition: background 0.3s;
}

.question-dots i.is-done {
  background: var(--ink);
}

.question-dots i.is-current {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(210, 91, 54, 0.12);
}

.quiz-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 740;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.quiz-title:focus,
.quiz-title:focus-visible {
  outline: none;
}

.quiz-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 22px;
}

.option {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 26px 26px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.74);
  text-align: left;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.5) inset;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    opacity 0.25s;
}

.option::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 91, 54, 0.11), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.option:hover {
  z-index: 1;
  border-color: var(--line-strong);
  background: var(--card);
  box-shadow: 0 24px 50px -34px rgba(23, 35, 31, 0.5);
  transform: translateY(-4px);
}

.option:hover::before {
  opacity: 1;
}

.option__key {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.option__text {
  display: block;
  margin: 24px 0 20px;
  font-size: clamp(17px, 1.65vw, 21px);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.72;
}

.option__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.option__arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s;
}

.option__arrow svg {
  width: 13px;
  height: 13px;
}

.option:hover .option__arrow {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: translateX(2px);
}

.option.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 22px 44px -26px rgba(23, 35, 31, 0.65);
}

.option.is-selected::before {
  opacity: 0.65;
}

.option.is-selected .option__key {
  border-color: rgba(243, 239, 230, 0.32);
  color: var(--paper);
}

.option.is-selected .option__foot {
  color: rgba(243, 239, 230, 0.48);
}

.option.is-selected .option__arrow {
  border-color: rgba(243, 239, 230, 0.25);
  background: var(--accent);
  color: #fff;
}

.options.is-locked .option {
  cursor: default;
  pointer-events: none;
}

.options.is-locked .option:not(.is-selected) {
  opacity: 0.35;
}

.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
}

.keyboard-hint {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(255, 253, 248, 0.6);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  box-shadow: 0 1px 0 rgba(23, 35, 31, 0.08);
}

.quiz-footnote {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

/* =========================================================
   Loading
   ========================================================= */

.screen--loading {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.screen--loading::before,
.screen--loading::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.screen--loading::before {
  top: 50%;
  left: 50%;
  width: min(74vw, 800px);
  aspect-ratio: 1;
  border: 1px solid rgba(243, 239, 230, 0.08);
  box-shadow:
    0 0 0 70px rgba(243, 239, 230, 0.018),
    0 0 0 140px rgba(243, 239, 230, 0.012);
  transform: translate(-50%, -50%);
}

.screen--loading::after {
  top: -20%;
  right: -10%;
  width: 58vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(210, 91, 54, 0.23), transparent 67%);
}

.loader {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 560px);
  text-align: center;
}

.loader__kicker {
  color: rgba(243, 239, 230, 0.4);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
}

.loader__mark {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 34px 0 30px;
}

.loader__mark span {
  display: grid;
  place-items: center;
  width: clamp(48px, 7vw, 66px);
  aspect-ratio: 1;
  border: 1px solid rgba(243, 239, 230, 0.19);
  border-radius: 18px;
  color: rgba(243, 239, 230, 0.7);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  animation: letterPulse 1.6s ease-in-out infinite;
  animation-delay: var(--delay);
}

.loader__mark span:nth-child(1) {
  --delay: 0ms;
}
.loader__mark span:nth-child(2) {
  --delay: 120ms;
}
.loader__mark span:nth-child(3) {
  --delay: 240ms;
}
.loader__mark span:nth-child(4) {
  --delay: 360ms;
}

@keyframes letterPulse {
  0%,
  100% {
    border-color: rgba(243, 239, 230, 0.16);
    background: transparent;
    color: rgba(243, 239, 230, 0.45);
  }
  45% {
    border-color: var(--accent-bright);
    background: rgba(243, 239, 230, 0.06);
    color: var(--paper);
    transform: translateY(-4px);
  }
}

.loader h2 {
  font-size: clamp(25px, 3.5vw, 34px);
  font-weight: 620;
  letter-spacing: -0.03em;
}

.loader__sub {
  margin-top: 12px;
  color: rgba(243, 239, 230, 0.45);
  font-size: 12px;
}

.loader__line {
  width: 180px;
  height: 1px;
  margin: 44px auto 0;
  overflow: hidden;
  background: rgba(243, 239, 230, 0.12);
}

.loader__line span {
  display: block;
  width: 44%;
  height: 100%;
  background: var(--accent-bright);
  animation: loaderSweep 1.3s ease-in-out infinite;
}

@keyframes loaderSweep {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(340%);
  }
}

/* =========================================================
   Result — shell & hero
   ========================================================= */

.screen--result {
  background:
    radial-gradient(ellipse 48% 30% at 84% 3%, var(--accent-soft), transparent 75%),
    var(--paper);
  padding-bottom: 30px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 40px);
}

.result-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px clamp(16px, 3.5vw, 32px) 40px;
  outline: none;
}

.result-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 5.2vw, 64px);
  border-radius: 36px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 32px 70px -44px rgba(23, 35, 31, 0.7);
}

.result-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -34%;
  right: -12%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 48%, transparent), transparent 68%);
  pointer-events: none;
}

.result-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 4%;
  bottom: -48%;
  width: min(48vw, 480px);
  aspect-ratio: 1;
  border: 1px solid rgba(243, 239, 230, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(243, 239, 230, 0.025),
    0 0 0 104px rgba(243, 239, 230, 0.018);
  pointer-events: none;
}

.result-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.group-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid rgba(243, 239, 230, 0.17);
  border-radius: 999px;
  color: rgba(243, 239, 230, 0.68);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.group-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}

.result-hero__tag {
  color: rgba(243, 239, 230, 0.28);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.result-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(24px, 5vw, 70px);
}

.type-code {
  display: block;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(96px, 16.5vw, 218px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.76;
}

.result-hero__identity {
  padding-bottom: 6px;
}

.type-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.type-name span {
  color: var(--accent-bright);
  font-family: var(--serif);
  font-size: clamp(14px, 1.4vw, 18px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.type-tagline {
  max-width: 370px;
  margin-top: 16px;
  color: rgba(243, 239, 230, 0.68);
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.85;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.keyword-list li {
  padding: 5px 10px;
  border: 1px solid rgba(243, 239, 230, 0.14);
  border-radius: 6px;
  color: rgba(243, 239, 230, 0.52);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.result-hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(32px, 4vw, 50px);
  padding-top: 24px;
  border-top: 1px solid rgba(243, 239, 230, 0.13);
}

.result-hero blockquote {
  max-width: 590px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: rgba(243, 239, 230, 0.82);
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.8;
}

.result-hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: rgba(243, 239, 230, 0.3);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* =========================================================
   Result — panels
   ========================================================= */

.result-section {
  margin-top: 20px;
}

.result-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 4px 16px;
}

.result-kicker {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.17em;
}

.result-section__head h2 {
  font-size: clamp(24px, 2.7vw, 31px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.result-section__head > p {
  max-width: 330px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  text-align: right;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.dims-panel {
  padding: clamp(24px, 3.6vw, 42px);
}

.panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel__head h2 {
  font-size: clamp(23px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.panel__head > p {
  max-width: 290px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  text-align: right;
}

.dim-row {
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--line);
}

.dim-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 4px;
}

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

.dim-heading > span:first-child {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.dim-reading {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.dim-reading b {
  color: var(--accent);
  font-size: 11px;
}

.dim-scale {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 9px;
}

.dim-side {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
}

.dim-side:last-child {
  justify-content: flex-end;
  text-align: right;
}

.dim-letter {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.dim-word {
  font-size: 10px;
  letter-spacing: 0.04em;
}

.dim-pct {
  font-family: var(--mono);
  font-size: 9px;
}

.dim-side.is-dominant {
  color: var(--ink);
}

.dim-side.is-dominant .dim-letter {
  color: var(--accent);
}

.dim-side.is-dominant .dim-pct {
  color: var(--accent);
}

.dim-bar {
  display: flex;
  gap: 3px;
  height: 8px;
}

.dim-seg {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: rgba(23, 35, 31, 0.13);
  transition: width 1.1s var(--ease);
}

.dim-seg.is-active {
  background: var(--accent);
}

.dim-desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.dim-note {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.8;
}

.portrait-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 16px;
}

.portrait-panel {
  padding: clamp(24px, 3.5vw, 40px);
}

.portrait-copy {
  max-width: 680px;
  color: var(--ink-2);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.95;
}

.strength-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.panel-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.17em;
}

.strength-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 26px;
  margin-top: 14px;
}

.strength-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.strength-item:nth-child(-n + 2) {
  border-top: 0;
  padding-top: 4px;
}

.strength-item h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}

.strength-item h3 span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
}

.strength-item p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.8;
}

.blindspot-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.2vw, 36px);
  border-color: transparent;
  background: var(--accent-soft);
}

.blindspot-panel::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 28px color-mix(in srgb, var(--accent) 5%, transparent);
}

.blindspot-panel .panel-label {
  color: var(--accent-ink);
  opacity: 0.55;
}

.blindspot-panel h3 {
  margin-top: 8px;
  color: var(--accent-ink);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.blindspot-list {
  margin-top: 20px;
}

.blindspot-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.blindspot-list li span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.8;
}

.blindspot-list h4 {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 650;
}

.blindspot-list p {
  margin-top: 3px;
  color: color-mix(in srgb, var(--accent-ink) 72%, transparent);
  font-size: 10.5px;
  line-height: 1.75;
}

.blindspot-note {
  margin-top: 12px;
  color: color-mix(in srgb, var(--accent-ink) 50%, transparent);
  font-size: 9px;
  line-height: 1.7;
}

.two-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.story-panel {
  padding: clamp(24px, 3.4vw, 38px);
}

.story-panel h3 {
  margin-top: 7px;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.story-panel > p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.95;
}

.career-block {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.career-block > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.career-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.career-chips li {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
  transition:
    border-color 0.25s,
    background 0.25s;
}

.career-chips li:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.growth-list {
  margin-top: 18px;
}

.growth-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.growth-list li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
}

.growth-list p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.match-intro {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.75;
}

.match-list {
  margin-top: 14px;
}

.match-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.match-code {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.match-item p {
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.6;
}

.match-item p b {
  display: block;
  margin-bottom: 1px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.result-cta {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: clamp(36px, 5vw, 62px);
  border-radius: 32px;
  background: var(--ink);
  color: var(--paper);
}

.result-cta::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -5%;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 50%, transparent), transparent 68%);
}

.result-cta__kicker {
  position: relative;
  color: rgba(243, 239, 230, 0.38);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.result-cta h2 {
  position: relative;
  max-width: 600px;
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.result-cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.result-cta .btn {
  min-height: 48px;
  padding: 0 22px;
  font-size: 12px;
}

.result-cta .btn--dark {
  background: var(--paper);
  color: var(--ink);
}

.result-cta .btn--dark:hover {
  background: #fff;
}

.result-cta .btn--ghost {
  border-color: rgba(243, 239, 230, 0.22);
  color: var(--paper);
}

.result-cta .btn--ghost:hover {
  border-color: rgba(243, 239, 230, 0.6);
  background: rgba(243, 239, 230, 0.06);
}

.result-cta .btn--quiet {
  color: rgba(243, 239, 230, 0.55);
}

.result-cta .btn--quiet:hover {
  color: var(--paper);
}

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 24px clamp(20px, 4vw, 32px) 0;
  border-top: 1px solid var(--line);
}

.result-footer__brand {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.result-footer__brand span {
  margin-left: 5px;
  color: var(--accent);
}

.result-footer p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.8;
  text-align: center;
}

/* =========================================================
   Modal & toast
   ========================================================= */

.modal {
  width: min(100% - 32px, 620px);
  max-height: min(86svh, 760px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(15, 26, 21, 0.45);
}

.modal::backdrop {
  background: rgba(15, 26, 21, 0.55);
  backdrop-filter: blur(5px);
}

.modal[open] {
  animation: modalIn 0.35s var(--ease);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__inner {
  position: relative;
  padding: clamp(26px, 5vw, 44px);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition:
    background 0.25s,
    color 0.25s;
}

.modal__close svg {
  width: 14px;
  height: 14px;
}

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

.modal__kicker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.modal h2 {
  margin-top: 10px;
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 730;
  letter-spacing: -0.04em;
}

.modal__body {
  margin-top: 22px;
}

.modal__body p {
  margin-bottom: 13px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.95;
}

.modal__body p:last-of-type {
  margin-bottom: 0;
}

.modal__emphasis {
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
  color: var(--ink) !important;
  font-size: 11.5px !important;
}

.modal__fineprint {
  color: var(--muted) !important;
  font-size: 10px !important;
  line-height: 1.8 !important;
}

.modal__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.modal__facts li {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.modal__facts b {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.modal__facts span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.modal__cta {
  width: 100%;
  min-height: 46px;
  margin-top: 26px;
  font-size: 12px;
}

.modal--compact {
  max-width: 460px;
}

.modal__plain {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.9;
}

.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.modal__actions .btn {
  flex: 1;
  min-height: 44px;
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 10000;
  bottom: 28px;
  left: 50%;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 36px -16px rgba(23, 35, 31, 0.55);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

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

/* =========================================================
   Reveal & responsive
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp 0.75s var(--ease) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  }

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

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

  .axis:nth-child(2) {
    border-right: 0;
  }

  .axis:nth-child(n + 3) {
    border-top: 1px solid rgba(243, 239, 230, 0.12);
    margin-top: 10px;
    padding-top: 28px;
  }

  .axis:nth-child(3) {
    padding-left: 0;
  }

  .axis p {
    min-height: 0;
  }

  .axis__poles {
    margin-top: 16px;
  }

  .type-code {
    font-size: clamp(90px, 15vw, 170px);
  }
}

@media (max-width: 860px) {
  .site-nav__link {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 60px;
  }

  .hero__copy {
    max-width: 640px;
  }

  .hero__art {
    order: -1;
    margin: 0 auto -16px;
    width: min(100%, 390px);
  }

  .orbit {
    width: 100%;
  }

  .art-note {
    display: none;
  }

  .hero__title {
    font-size: clamp(43px, 8.6vw, 66px);
  }

  .method__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .method__intro p {
    max-width: 500px;
  }

  .portrait-grid,
  .two-panel-grid {
    grid-template-columns: 1fr;
  }

  .result-hero__main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .type-code {
    font-size: clamp(110px, 26vw, 190px);
  }

  .result-hero__identity {
    max-width: 470px;
  }

  .result-hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .result-hero__meta {
    align-items: flex-start;
  }

  .result-section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .result-section__head > p {
    text-align: left;
  }

  .result-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .result-footer p {
    text-align: left;
  }

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

  .site-footer__meta {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 18px 18px;
  }

  .brand__seal {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
  }

  .brand__text {
    font-size: 11px;
  }

  .brand__text span {
    font-size: 8px;
  }

  .site-nav {
    gap: 10px;
  }

  .btn--nav {
    min-height: 34px;
    padding: 0 14px;
  }

  .intro-main {
    padding: 0 18px;
  }

  .hero {
    gap: 20px;
    padding-top: 8px;
    padding-bottom: 46px;
  }

  .hero__art {
    width: min(100%, 330px);
    margin-bottom: 0;
  }

  .hero__title {
    font-size: clamp(41px, 11.4vw, 54px);
    letter-spacing: -0.05em;
  }

  .hero__lede {
    margin-top: 18px;
    font-size: 13.5px;
    line-height: 1.9;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 8px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin-top: 26px;
  }

  .btn--lg {
    width: 100%;
    min-height: 58px;
    justify-content: flex-start;
    padding-left: 22px;
  }

  .btn--lg .btn__arrow {
    margin-left: auto;
  }

  .btn--quiet {
    align-self: flex-start;
    padding-left: 0;
  }

  .hero__meta {
    gap: 6px 13px;
    margin-top: 22px;
    font-size: 10px;
  }

  .orbit-node {
    padding: 6px 9px;
    font-size: 8px;
  }

  .method {
    padding: 54px 0 60px;
  }

  .method__intro h2 {
    font-size: 36px;
  }

  .steps li {
    grid-template-columns: 38px 1fr;
    padding: 22px 0;
  }

  .axes {
    margin-bottom: 72px;
    padding: 28px 22px;
    border-radius: 28px;
  }

  .axes__head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 30px;
  }

  .axes__lede {
    max-width: 100%;
    text-align: left;
  }

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

  .axis,
  .axis + .axis {
    padding: 22px 0;
    border-right: 0;
    border-top: 1px solid rgba(243, 239, 230, 0.12);
  }

  .axis:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .axis:nth-child(2) {
    border-top: 1px solid rgba(243, 239, 230, 0.12);
    margin-top: 0;
    padding-top: 22px;
  }

  .axis:nth-child(n + 3) {
    margin-top: 0;
    padding-top: 22px;
  }

  .type-library {
    margin-bottom: 70px;
  }

  .type-library__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .type-library__head > p {
    text-align: left;
  }

  .type-gallery {
    grid-template-columns: 1fr;
  }

  .type-group {
    padding: 20px 20px 12px;
  }

  .closing {
    padding-left: 0;
    padding-right: 0;
  }

  .closing h2 {
    font-size: 34px;
  }

  .site-footer {
    padding: 28px 18px;
  }

  /* quiz */
  .quiz-header {
    padding: 18px 18px 16px;
  }

  .quiz-header__right {
    gap: 16px;
  }

  .quiz-progress {
    width: calc(100% - 36px);
  }

  .quiz-main {
    width: calc(100% - 36px);
    padding: 26px 0 16px;
    justify-content: flex-start;
  }

  .quiz-title {
    font-size: 31px;
  }

  .options {
    grid-template-columns: 1fr;
    gap: 11px;
    margin: 22px 0 18px;
  }

  .option {
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
  }

  .option__text {
    margin: 16px 0 16px;
    font-size: 17px;
    line-height: 1.65;
  }

  .keyboard-hint {
    display: none;
  }

  .quiz-footnote {
    width: calc(100% - 36px);
  }

  .screen--quiz {
    padding-bottom: 16px;
  }

  /* loading */
  .loader__mark {
    gap: 7px;
    margin: 28px 0 24px;
  }

  .loader__mark span {
    border-radius: 14px;
  }

  /* result */
  .result-header {
    padding: 16px 16px;
  }

  .result-header__actions .btn--ghost {
    display: none;
  }

  .result-shell {
    padding: 6px 12px 30px;
  }

  .result-hero {
    padding: 26px 22px;
    border-radius: 26px;
  }

  .result-hero__top {
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .result-hero__tag {
    display: none;
  }

  .type-code {
    font-size: clamp(92px, 27vw, 130px);
  }

  .type-name {
    font-size: 31px;
  }

  .type-tagline {
    margin-top: 12px;
    font-size: 12px;
  }

  .keyword-list {
    margin-top: 18px;
  }

  .result-hero__bottom {
    margin-top: 28px;
    padding-top: 18px;
  }

  .result-hero blockquote {
    font-size: 12px;
  }

  .dims-panel,
  .portrait-panel,
  .blindspot-panel,
  .story-panel {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .panel__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .panel__head > p {
    text-align: left;
  }

  .dim-row {
    padding: 20px 0;
  }

  .dim-word {
    display: none;
  }

  .dim-letter {
    font-size: 25px;
  }

  .dim-pct {
    font-size: 8px;
  }

  .dim-desc {
    font-size: 10px;
  }

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

  .strength-item:nth-child(2) {
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }

  .portrait-copy {
    font-size: 15.5px;
  }

  .result-cta {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .result-cta__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .result-cta .btn {
    width: 100%;
  }

  .result-footer {
    padding: 20px 18px 0;
  }

  .modal {
    width: calc(100% - 20px);
    border-radius: 24px;
  }

  .modal__inner {
    padding: 26px 20px;
  }

  .modal__facts li {
    padding: 11px;
  }

  .modal__actions {
    flex-direction: column-reverse;
  }

  .toast {
    bottom: 18px;
    max-width: calc(100% - 32px);
    text-align: center;
    white-space: nowrap;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .result-header,
  .result-footer,
  .result-cta,
  .grain {
    display: none !important;
  }

  body,
  .screen--result {
    background: #fff;
  }

  .result-hero {
    color: #111;
    background: #f2f2f2;
    box-shadow: none;
  }

  .result-hero::before,
  .result-hero::after {
    display: none;
  }

  .type-code,
  .result-hero blockquote {
    color: #111;
  }

  .panel,
  .result-cta {
    break-inside: avoid;
  }
}
