/* =========================================
   心屿 Inner Isle
   Editorial psychology studio
   ========================================= */

:root {
  --paper: #f4f1e8;
  --paper-light: #fbf9f3;
  --paper-deep: #e9e3d6;
  --ink: #172421;
  --ink-soft: #4f5b55;
  --ink-faint: #7d877f;
  --line: rgba(23, 36, 33, 0.16);
  --line-strong: rgba(23, 36, 33, 0.28);
  --lime: #dff56a;
  --peach: #ffc9aa;
  --sky: #bfddea;
  --lilac: #d9cff4;
  --white: #fffdf6;
  --danger: #9b392d;

  --font-sans: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;

  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --shadow-soft: 0 22px 60px rgba(23, 36, 33, 0.09);
  --shadow-card: 0 30px 80px rgba(23, 36, 33, 0.14);
  --container: 1280px;
  --header-height: 84px;
}

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

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--ink);
  color: var(--lime);
}

a {
  color: inherit;
}

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

button {
  color: inherit;
}

img,
svg {
  display: block;
}

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

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

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #2b7664;
  outline-offset: 3px;
}

.theme-lime {
  --theme: #dff56a;
  --theme-soft: #eff6cb;
  --theme-deep: #afc93d;
  --theme-wash: rgba(223, 245, 106, 0.34);
}

.theme-peach {
  --theme: #ffc9aa;
  --theme-soft: #fae5d8;
  --theme-deep: #db8b68;
  --theme-wash: rgba(255, 201, 170, 0.34);
}

.theme-sky {
  --theme: #bfddea;
  --theme-soft: #e3f0f4;
  --theme-deep: #7ba6b6;
  --theme-wash: rgba(191, 221, 234, 0.34);
}

.theme-lilac {
  --theme: #d9cff4;
  --theme-soft: #ece7f8;
  --theme-deep: #9c89c4;
  --theme-wash: rgba(217, 207, 244, 0.34);
}

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

.container-wide {
  width: min(calc(100% - 64px), 1440px);
  margin-inline: auto;
}

.section {
  padding: 122px 0;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow,
.section-kicker,
.micro-label,
.panel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
}

.eyebrow-star {
  display: inline-flex;
  color: var(--ink);
}

.eyebrow-star .icon {
  width: 14px;
  height: 14px;
}

.micro-label {
  color: var(--ink-faint);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.section-kicker > span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 9px;
  letter-spacing: 0;
  color: var(--ink);
}

.section-kicker--light {
  color: rgba(251, 249, 243, 0.56);
}

.section-kicker--light > span {
  border-color: rgba(251, 249, 243, 0.28);
  color: var(--white);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
}

.btn:hover .icon[href="#i-arrow"],
.btn:hover .icon[href="#i-arrow-up"] {
  transform: translate(2px, -2px);
}

.btn:hover .icon[href="#i-arrow-down"] {
  transform: translateY(2px);
}

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: #2c4039;
  border-color: #2c4039;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 253, 246, 0.2);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--paper-light);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(23, 36, 33, 0.52);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background: #7f2f25;
  border-color: #7f2f25;
}

.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 0.96rem;
}

.btn-sm {
  min-height: 40px;
  padding: 0 17px;
  font-size: 0.8rem;
}

.btn-sm .icon {
  width: 15px;
  height: 15px;
}

.text-button,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
}

.text-button .icon,
.text-link .icon {
  width: 15px;
  height: 15px;
}

.text-button:hover,
.text-link:hover {
  color: var(--ink-soft);
}

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

.text-button:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.5);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.icon-button:hover {
  background: var(--paper-light);
  transform: rotate(4deg);
}

/* Reduced motion / reveal */

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

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* =========================================
   Header
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 232, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(244, 241, 232, 0.93);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(23, 36, 33, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: var(--header-height);
}

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

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

.brand-word {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-word strong {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.brand-word small {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-link {
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.86rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(23, 36, 33, 0.055);
}

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

.records-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.records-trigger:hover {
  background: rgba(23, 36, 33, 0.055);
  color: var(--ink);
}

.records-trigger .icon {
  width: 16px;
  height: 16px;
}

.records-count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-left: 3px;
  padding: 0 19px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta .icon {
  width: 15px;
  height: 15px;
}

.header-cta:hover {
  background: #2c4039;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.mobile-toggle .icon {
  width: 19px;
  height: 19px;
}

.mobile-toggle .icon-close {
  display: none;
}

.mobile-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.mobile-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
}

body.quiz-mode .site-header,
body.quiz-mode .site-footer {
  display: none;
}

/* =========================================
   Home hero
   ========================================= */

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 55px 0 0;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: -18%;
  left: -13%;
  width: 48vw;
  height: 48vw;
  min-width: 480px;
  min-height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 60%, rgba(223, 245, 106, 0.22), transparent 66%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 54px;
  min-height: 610px;
  padding-bottom: 44px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 32px 0 26px;
}

.hero-eyebrow {
  margin-bottom: 30px;
}

.hero-title {
  max-width: 720px;
  font-family: var(--font-serif);
  font-size: clamp(3.1rem, 5.15vw, 4.7rem);
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: -0.055em;
}

.hero-highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
  margin: 0.02em 0;
}

.hero-highlight::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.08em;
  bottom: 0.055em;
  height: 0.3em;
  z-index: -1;
  border-radius: 2px 12px 4px 14px;
  background: var(--lime);
  transform: rotate(-0.8deg);
}

.hero-lede {
  max-width: 510px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 28px;
  color: var(--ink-faint);
  font-size: 0.72rem;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-trust span:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 11px;
  border-radius: 50%;
  background: var(--ink-faint);
  opacity: 0.6;
}

.hero-trust .icon {
  width: 13px;
  height: 13px;
}

.hero-trust i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ca533;
}

/* Hero portrait composition */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 585px;
  isolation: isolate;
}

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

.hero-orbit--outer {
  width: min(545px, 100%);
  aspect-ratio: 1;
  border: 1px dashed rgba(23, 36, 33, 0.22);
  animation: orbitSpin 80s linear infinite;
}

.hero-orbit--inner {
  width: min(430px, 82%);
  aspect-ratio: 1;
  border: 1px solid rgba(23, 36, 33, 0.1);
}

.hero-orbit--outer::before,
.hero-orbit--outer::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.hero-orbit--outer::before {
  top: 9%;
  left: 22%;
}

.hero-orbit--outer::after {
  right: 7%;
  bottom: 24%;
  background: var(--theme-deep, var(--peach));
}

.hero-blob {
  position: absolute;
  width: min(470px, 86%);
  aspect-ratio: 0.96;
  border-radius: 47% 53% 59% 41% / 43% 39% 61% 57%;
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 201, 170, 0.55) 0 16%, transparent 16.5%),
    linear-gradient(145deg, #e8e1d2 0%, #e2dccd 60%, #ded9cd 100%);
  transform: rotate(-7deg);
  box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.18);
}

.hero-blob::before {
  content: "";
  position: absolute;
  right: 7%;
  bottom: 11%;
  width: 34%;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 36, 33, 0.2);
  border-radius: 50%;
}

.portrait-card {
  position: relative;
  z-index: 3;
  width: min(353px, 76%);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 168px 168px 26px 26px;
  background: #172421;
  color: var(--white);
  box-shadow: 0 42px 80px rgba(23, 36, 33, 0.28);
  transform: rotate(-2.6deg);
  animation: portraitFloat 8s ease-in-out infinite;
}

.portrait-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 16px 15px;
  color: rgba(251, 249, 243, 0.62);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.portrait-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 330px;
  padding: 26px 22px 16px;
  overflow: hidden;
  border-radius: 152px 152px 16px 16px;
  background: var(--lime);
  color: var(--ink);
}

.portrait-sun {
  position: absolute;
  top: 30px;
  right: 25px;
  width: 81px;
  height: 81px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 0 16px rgba(255, 201, 170, 0.2);
}

.portrait-sun::after {
  content: "";
  position: absolute;
  top: 42%;
  left: 42%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(23, 36, 33, 0.68);
}

.portrait-arch {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-code {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(4.7rem, 6.3vw, 6.1rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.085em;
  margin-right: 0.07em;
}

.portrait-name {
  position: relative;
  z-index: 2;
  margin-top: 17px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
}

.portrait-name-en {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(23, 36, 33, 0.58);
}

.portrait-wave {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 18px;
  color: rgba(23, 36, 33, 0.42);
}

.portrait-visual::before {
  content: "";
  position: absolute;
  top: 20%;
  left: -25%;
  width: 120%;
  height: 75%;
  border: 1px solid rgba(23, 36, 33, 0.12);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.portrait-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 10px 6px;
  color: rgba(251, 249, 243, 0.58);
  font-size: 0.63rem;
  letter-spacing: 0.02em;
}

.portrait-index {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.hero-star {
  position: absolute;
  z-index: 4;
  color: var(--ink);
  font-size: 1.3rem;
}

.hero-star--one {
  top: 13%;
  right: 11%;
}

.hero-star--two {
  bottom: 16%;
  left: 8%;
  color: var(--peach);
  font-size: 1rem;
}

.hero-side-word {
  position: absolute;
  top: 45%;
  right: -7px;
  z-index: 1;
  color: rgba(23, 36, 33, 0.34);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  line-height: 1.7;
  writing-mode: vertical-rl;
}

.floating-note {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 145px;
  padding: 13px 16px;
  border: 1px solid rgba(23, 36, 33, 0.14);
  border-radius: 13px;
  background: rgba(255, 253, 246, 0.9);
  box-shadow: 0 12px 35px rgba(23, 36, 33, 0.1);
  backdrop-filter: blur(8px);
  animation: noteFloat 7s ease-in-out infinite;
}

.floating-note .note-label {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.floating-note strong {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.note-a {
  top: 16%;
  left: -18px;
  transform: rotate(-3.4deg);
}

.note-b {
  right: 0;
  bottom: 14%;
  animation-delay: -3.5s;
  transform: rotate(2.8deg);
}

.note-b::before {
  content: "✦";
  position: absolute;
  top: -12px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--ink);
  font-size: 10px;
  transform: rotate(8deg);
}

.hero-caption {
  padding: 0 0 30px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-align: right;
}

/* Marquee */

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 249, 243, 0.46);
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeMove 44s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.marquee-group i {
  margin: 0 28px;
  color: var(--theme-deep, #9dab42);
  font-size: 11px;
  font-style: normal;
}

/* =========================================
   Section headings
   ========================================= */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 70px;
  margin-bottom: 48px;
}

.section-head-main h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4vw, 4.15rem);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -0.05em;
}

.section-head-main h2 em {
  position: relative;
  font-style: normal;
}

.section-head-main h2 em::after {
  content: "✦";
  position: absolute;
  top: -0.25em;
  right: -0.8em;
  color: var(--theme-deep, #a9bd42);
  font-family: var(--font-sans);
  font-size: 0.35em;
  font-style: normal;
}

.section-head-aside {
  flex: 0 0 350px;
  padding-bottom: 7px;
}

.section-head-aside p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.9;
}

.hand-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--lime);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.section-head-aside--small {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.section-head--compact {
  margin-bottom: 36px;
}

.section-head--compact h2 {
  font-size: clamp(2.2rem, 3.2vw, 3.15rem);
}

/* =========================================
   Test library
   ========================================= */

.library-section {
  padding-top: 112px;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.test-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 510px;
  padding: 21px 24px 24px;
  overflow: hidden;
  border: 1px solid rgba(23, 36, 33, 0.14);
  border-radius: 29px;
  background: var(--theme);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease;
}

.test-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.17), transparent 42%);
  pointer-events: none;
}

.test-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-card);
}

.test-card--mbti {
  grid-column: span 7;
}

.test-card--bigfive {
  grid-column: span 5;
}

.test-card--attachment {
  grid-column: span 5;
  min-height: 468px;
}

.test-card--mood {
  grid-column: span 7;
  min-height: 468px;
}

.test-card-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
}

.card-index {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid rgba(23, 36, 33, 0.32);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 9px;
}

.card-en {
  flex: 1;
  color: rgba(23, 36, 33, 0.58);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.card-arrow {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(23, 36, 33, 0.26);
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.18);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.card-arrow .icon {
  width: 18px;
  height: 18px;
}

.test-card:hover .card-arrow {
  background: var(--ink);
  color: var(--white);
  transform: rotate(45deg);
}

.test-card-art {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  align-items: stretch;
  min-height: 200px;
  margin: 27px 0 20px;
}

.test-card-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.test-card-copy h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2.8vw, 2.65rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.test-card-copy > p {
  max-width: 50ch;
  margin-top: 11px;
  color: rgba(23, 36, 33, 0.68);
  font-size: 0.83rem;
  line-height: 1.8;
}

.test-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  color: rgba(23, 36, 33, 0.62);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

.test-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.test-card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 4px;
}

.test-card-meta .icon {
  width: 12px;
  height: 12px;
}

/* Test art — MBTI */

.test-art {
  flex: 1;
  width: 100%;
}

.art-mbti {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.art-mbti-top {
  display: flex;
  justify-content: space-between;
  color: rgba(23, 36, 33, 0.52);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: min(100%, 246px);
  margin: 0 auto;
}

.test-card--mbti .type-grid {
  width: min(72%, 258px);
}

.type-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1.6;
  border: 1px solid rgba(23, 36, 33, 0.16);
  border-radius: 7px;
  background: rgba(255, 253, 246, 0.18);
  color: rgba(23, 36, 33, 0.55);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  transition: transform 0.3s ease, background 0.3s ease;
}

.type-cell.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--theme, var(--lime));
  font-weight: 700;
}

.test-card:hover .type-cell.is-active {
  transform: scale(1.08) rotate(-2deg);
}

.art-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(23, 36, 33, 0.45);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.art-caption i {
  width: 26px;
  height: 1px;
  background: rgba(23, 36, 33, 0.3);
}

.art-caption .caption-gap {
  width: 7px;
}

.art-caption--between {
  justify-content: space-between;
  width: 100%;
}

/* Test art — Big Five */

.art-bigfive {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 21px;
  padding: 0 4px;
}

.art-bigfive-head {
  display: flex;
  justify-content: space-between;
  color: rgba(23, 36, 33, 0.5);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.13em;
}

.bigfive-bars {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.bigfive-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bigfive-letter {
  width: 16px;
  color: rgba(23, 36, 33, 0.6);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
}

.bigfive-name {
  width: 54px;
  color: rgba(23, 36, 33, 0.62);
  font-size: 0.68rem;
}

.bigfive-track {
  flex: 1;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 253, 246, 0.44);
}

.bigfive-track i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-stamp {
  display: none;
}

/* Test art — attachment */

.art-attachment {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attachment-venn {
  position: relative;
  flex: 1;
  min-height: 175px;
}

.venn-circle {
  position: absolute;
  top: 50%;
  width: 51%;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 36, 33, 0.38);
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.17);
  transform: translateY(-50%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.venn-one {
  left: 5%;
}

.venn-two {
  right: 5%;
}

.test-card:hover .venn-one {
  transform: translate(-7px, -50%);
}

.test-card:hover .venn-two {
  transform: translate(7px, -50%);
}

.venn-word {
  position: absolute;
  top: 50%;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  transform: translateY(-50%);
}

.venn-word-a {
  left: 17%;
}

.venn-word-b {
  right: 17%;
}

.venn-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 63px;
  height: 63px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--theme);
  font-family: var(--font-serif);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  transform: translate(-50%, -50%);
}

.venn-dot {
  position: absolute;
  top: 23%;
  left: 48%;
  z-index: 4;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--peach);
  border: 1px solid var(--ink);
}

/* Test art — mood */

.art-mood {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.weather-symbol {
  position: relative;
  flex: 1;
  min-height: 140px;
}

.weather-sun {
  position: absolute;
  top: 5%;
  left: 14%;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 0 16px rgba(255, 253, 246, 0.16);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.test-card:hover .weather-sun {
  transform: translateY(-5px) scale(1.04);
}

.weather-sun::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 24px;
  color: rgba(23, 36, 33, 0.42);
  transform: translate(-50%, -50%);
}

.weather-cloud {
  position: absolute;
  top: 36%;
  right: 13%;
  width: 150px;
  height: 55px;
  border-radius: 60px;
  background: rgba(255, 253, 246, 0.72);
  box-shadow: 0 10px 24px rgba(23, 36, 33, 0.07);
}

.weather-cloud::before,
.weather-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.weather-cloud::before {
  width: 70px;
  height: 70px;
  left: 20px;
  bottom: 16px;
}

.weather-cloud::after {
  width: 48px;
  height: 48px;
  right: 19px;
  bottom: 18px;
}

.weather-drop {
  position: absolute;
  z-index: 2;
  width: 2px;
  height: 15px;
  border-radius: 99px;
  background: rgba(23, 36, 33, 0.38);
  transform: rotate(18deg);
}

.drop-one {
  top: 66%;
  right: 29%;
}

.drop-two {
  top: 61%;
  right: 19%;
  height: 10px;
  opacity: 0.6;
}

.weather-line {
  width: min(100%, 420px);
  height: auto;
  color: rgba(23, 36, 33, 0.4);
}

.test-card--mood .art-mood {
  align-items: flex-start;
}

.test-card--mood .weather-symbol {
  width: min(100%, 420px);
}

.library-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.library-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.library-footnote .icon {
  width: 13px;
  height: 13px;
}

/* =========================================
   How it works
   ========================================= */

.how-section {
  padding-top: 20px;
}

.how-panel {
  position: relative;
  padding: 62px 66px 56px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}

.how-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  align-items: end;
  gap: 60px;
}

.how-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 4.25vw, 4.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.how-head > p {
  max-width: 360px;
  padding-bottom: 7px;
  color: rgba(251, 249, 243, 0.6);
  font-size: 0.86rem;
  line-height: 1.9;
}

.how-steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 68px;
  border-top: 1px solid rgba(251, 249, 243, 0.16);
}

.how-step {
  position: relative;
  padding: 27px 36px 14px 0;
}

.how-step + .how-step {
  padding-left: 36px;
  border-left: 1px solid rgba(251, 249, 243, 0.12);
}

.how-step:last-child {
  padding-right: 0;
}

.step-number {
  display: block;
  margin-bottom: 35px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.how-step h3 {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 1.48rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.how-step p {
  max-width: 300px;
  color: rgba(251, 249, 243, 0.55);
  font-size: 0.81rem;
  line-height: 1.85;
}

.step-mark {
  position: absolute;
  right: 31px;
  bottom: 13px;
  color: rgba(251, 249, 243, 0.18);
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

.how-step:last-child .step-mark {
  right: 0;
}

.how-orbs {
  position: absolute;
  right: -125px;
  bottom: -190px;
  z-index: 0;
  width: 440px;
  height: 440px;
  pointer-events: none;
}

.how-orb {
  position: absolute;
  border-radius: 50%;
}

.orb-a {
  inset: 0;
  border: 1px solid rgba(223, 245, 106, 0.22);
}

.orb-b {
  inset: 75px;
  background: rgba(223, 245, 106, 0.06);
  border: 1px solid rgba(223, 245, 106, 0.13);
}

.how-star {
  position: absolute;
  top: 24%;
  left: 28%;
  color: var(--lime);
  font-size: 1.05rem;
}

/* =========================================
   About
   ========================================= */

.about-section {
  padding-top: 132px;
  padding-bottom: 130px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 100px;
  align-items: start;
}

.about-left {
  position: sticky;
  top: 130px;
}

.about-left h2 {
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 5.2vw, 5.7rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.about-left h2 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}

.about-stamp {
  width: 164px;
  height: 164px;
  margin-top: 52px;
  color: var(--ink);
}

.about-stamp svg {
  width: 100%;
  height: 100%;
  animation: stampSpin 38s linear infinite;
}

.stamp-text {
  font-family: var(--font-mono);
  font-size: 7.4px;
  letter-spacing: 0.17em;
  fill: currentColor;
}

.stamp-letter {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  fill: currentColor;
}

.stamp-small {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.03em;
  fill: currentColor;
}

.about-right {
  padding-top: 8px;
}

.about-lede {
  max-width: 610px;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.6vw, 2.55rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.about-body {
  max-width: 600px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.95;
}

.about-reference {
  max-width: 600px;
  margin-top: 22px;
  padding: 14px 0 14px 16px;
  border-left: 2px solid var(--line-strong);
  color: var(--ink-faint);
  font-size: 0.71rem;
  line-height: 1.8;
}

.about-reference span {
  display: inline-block;
  margin-right: 8px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}

.principles {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.principle-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.principle-number {
  padding-top: 2px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.principle-row h3 {
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.principle-row p {
  max-width: 510px;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.8;
}

.quote-slab {
  position: relative;
  margin-top: 44px;
  padding: 34px 38px 30px;
  overflow: hidden;
  border: 1px solid rgba(23, 36, 33, 0.13);
  border-radius: 27px;
  background: var(--lime);
}

.quote-slab::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -64px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(23, 36, 33, 0.18);
  border-radius: 50%;
}

.quote-mark {
  position: absolute;
  top: 17px;
  right: 28px;
  color: rgba(23, 36, 33, 0.28);
  font-family: var(--font-serif);
  font-size: 4.4rem;
  line-height: 1;
}

.quote-slab p {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 600;
  line-height: 1.65;
}

.quote-sign {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 15px;
  color: rgba(23, 36, 33, 0.55);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

/* =========================================
   Trace section
   ========================================= */

.traces-section {
  padding-top: 0;
  padding-bottom: 120px;
}

.trace-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trace-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 23px 24px 21px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-light);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trace-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--theme);
}

.trace-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.trace-number {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.trace-date {
  position: absolute;
  top: 23px;
  right: 24px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.trace-card strong {
  margin-top: 40px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.trace-card p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.65;
}

.trace-arrow {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  margin-top: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  align-self: flex-end;
  transition: background 0.25s ease, color 0.25s ease;
}

.trace-arrow .icon {
  width: 15px;
  height: 15px;
}

.trace-card:hover .trace-arrow {
  background: var(--ink);
  color: var(--white);
}

/* =========================================
   Closing CTA
   ========================================= */

.closing-section {
  padding: 0 0 112px;
}

.closing-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 60px;
  overflow: hidden;
  padding: 58px 62px;
  border-radius: var(--radius-xl);
  background: var(--peach);
}

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

.closing-copy .micro-label {
  color: rgba(23, 36, 33, 0.58);
  margin-bottom: 22px;
}

.closing-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4.5vw, 4.55rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.closing-action {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 6px;
}

.closing-action p {
  color: rgba(23, 36, 33, 0.66);
  font-size: 0.85rem;
  line-height: 1.8;
}

.closing-art {
  position: absolute;
  right: -28px;
  bottom: -75px;
  z-index: 1;
  width: 330px;
  height: 330px;
  pointer-events: none;
}

.closing-arch {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(23, 36, 33, 0.2);
  border-radius: 50% 50% 9% 9%;
  transform: rotate(22deg);
}

.closing-arch::before {
  content: "";
  position: absolute;
  inset: 39px;
  border: 1px dashed rgba(23, 36, 33, 0.2);
  border-radius: inherit;
}

.closing-dot {
  position: absolute;
  top: 21%;
  right: 22%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
}

.closing-glyph {
  position: absolute;
  top: 46%;
  left: 30%;
  color: rgba(23, 36, 33, 0.36);
  font-size: 25px;
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
  padding: 68px 0 22px;
  background: var(--ink);
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.9fr 1.25fr;
  gap: 55px;
  padding-bottom: 54px;
}

.brand--light {
  color: var(--white);
}

.brand--light .brand-word small {
  color: rgba(251, 249, 243, 0.46);
}

.footer-brand p {
  margin-top: 22px;
  color: rgba(251, 249, 243, 0.52);
  font-size: 0.82rem;
  line-height: 1.9;
}

.footer-label {
  display: block;
  margin-bottom: 19px;
  color: rgba(251, 249, 243, 0.34);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-nav a,
.footer-nav button {
  padding: 0;
  margin-bottom: 11px;
  border: 0;
  background: none;
  color: rgba(251, 249, 243, 0.68);
  font-size: 0.78rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav button:hover {
  color: var(--lime);
}

.footer-support p {
  color: rgba(251, 249, 243, 0.5);
  font-size: 0.74rem;
  line-height: 1.8;
}

.support-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0 10px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.support-line .icon {
  width: 14px;
  height: 14px;
}

.footer-support .support-small {
  font-size: 0.68rem;
  color: rgba(251, 249, 243, 0.34);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 19px;
  border-top: 1px solid rgba(251, 249, 243, 0.12);
  color: rgba(251, 249, 243, 0.32);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
}

.footer-motto {
  color: rgba(251, 249, 243, 0.5);
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* =========================================
   Animations
   ========================================= */

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

@keyframes portraitFloat {
  0%, 100% { transform: rotate(-2.6deg) translateY(0); }
  50% { transform: rotate(-1.8deg) translateY(-10px); }
}

@keyframes noteFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

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

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

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* =========================================
   Breadcrumbs & intro page
   ========================================= */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.breadcrumbs a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs span[aria-current="page"] {
  color: var(--ink-soft);
}

.breadcrumbs > span:not([aria-current]) {
  opacity: 0.45;
}

.intro-page {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 30px 0 100px;
  background:
    linear-gradient(180deg, var(--theme-soft) 0%, rgba(244, 241, 232, 0.55) 55%, var(--paper) 100%);
}

.intro-page::before {
  content: "";
  position: absolute;
  top: -28%;
  right: -12%;
  z-index: -1;
  width: min(760px, 66vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--theme);
  opacity: 0.72;
}

.intro-page::after {
  content: "✦";
  position: absolute;
  top: 12%;
  right: 9%;
  z-index: -1;
  color: rgba(23, 36, 33, 0.35);
  font-size: 1.25rem;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
  gap: clamp(50px, 7vw, 105px);
  align-items: start;
  padding-top: 45px;
}

.intro-copy {
  padding-top: 8px;
}

.intro-eyebrow {
  margin-bottom: 28px;
}

.intro-copy h1 {
  max-width: 9.2em;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4.05vw, 4.45rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.intro-lede {
  max-width: 630px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.9;
}

.intro-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 25px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-facts > div {
  min-width: 120px;
  padding: 0 27px;
  border-left: 1px solid var(--line);
}

.intro-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.intro-facts > div > span {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
}

.intro-facts > div > span small {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
}

.intro-facts > div > small {
  display: block;
  margin-top: 6px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.intro-outcomes {
  margin-top: 24px;
}

.intro-outcomes .micro-label {
  margin-bottom: 18px;
}

.intro-outcomes ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.intro-outcomes li {
  display: flex;
  align-items: baseline;
  gap: 17px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(23, 36, 33, 0.1);
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.intro-outcomes li span {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.intro-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 19px;
  padding: 15px 18px;
  border: 1px solid rgba(23, 36, 33, 0.13);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 246, 0.48);
}

.intro-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--ink-faint);
}

.intro-note p {
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.8;
}

.intro-start {
  margin-top: 22px;
}

.intro-start-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.intro-start > p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 0.7rem;
}

.intro-start > p .icon {
  width: 12px;
  height: 12px;
}

.intro-aside {
  position: sticky;
  top: 112px;
}

.intro-poster {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(23, 36, 33, 0.16);
  border-radius: 31px;
  background: var(--theme);
  box-shadow: 0 35px 70px rgba(23, 36, 33, 0.12);
  transform: rotate(1.2deg);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-poster:hover {
  transform: rotate(0deg) translateY(-4px);
}

.poster-head,
.poster-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(23, 36, 33, 0.56);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.poster-head {
  padding: 3px 4px 15px;
}

.poster-art {
  display: flex;
  align-items: stretch;
  min-height: 350px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(23, 36, 33, 0.12);
  border-radius: 20px;
  background: rgba(255, 253, 246, 0.46);
}

.poster-foot {
  padding: 16px 5px 3px;
}

.poster-foot > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.poster-foot > div span {
  color: rgba(23, 36, 33, 0.48);
  font-size: 7px;
}

.poster-foot strong {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}

.poster-foot > span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(23, 36, 33, 0.3);
  border-radius: 50%;
}

.poster-foot .icon {
  width: 14px;
  height: 14px;
}

.intro-poster .art-mbti {
  gap: 20px;
}

.intro-poster .type-grid {
  width: 100%;
}

.intro-poster .type-cell {
  aspect-ratio: 1.7;
  font-size: 8.5px;
}

.intro-poster .bigfive-bar-row {
  gap: 8px;
}

.intro-poster .bigfive-name {
  width: 48px;
  font-size: 0.62rem;
}

.intro-poster .attachment-venn {
  min-height: 215px;
}

.intro-poster .art-bigfive {
  gap: 28px;
}

.intro-poster .weather-symbol {
  min-height: 195px;
}

.intro-poster .weather-sun {
  width: 115px;
  height: 115px;
}

.intro-poster .weather-cloud {
  width: 175px;
}

.intro-poster .art-stamp {
  display: none;
}

.intro-side-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 24px 4px 0;
  padding: 0 17px;
}

.side-note-mark {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1;
  opacity: 0.5;
}

.intro-side-note p {
  color: var(--ink-faint);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.7;
}

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

.quiz-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 93% 18%, var(--theme-wash, rgba(223, 245, 106, 0.23)), transparent 24%),
    var(--paper);
}

.quiz-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 232, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.quiz-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 76px;
}

.quiz-topbar .brand-mark {
  width: 33px;
  height: 33px;
}

.quiz-topbar .brand-word strong {
  font-size: 1.05rem;
}

.quiz-topbar .brand-word small {
  font-size: 6.7px;
}

.quiz-topbar-center {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.quiz-topbar-center i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-faint);
  opacity: 0.6;
}

.quiz-exit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 8px 12px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.74rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.quiz-exit .icon {
  width: 15px;
  height: 15px;
}

.quiz-progress {
  height: 3px;
  background: rgba(23, 36, 33, 0.08);
}

.quiz-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--theme-deep, var(--ink));
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  align-items: start;
  gap: 66px;
  max-width: 1140px;
  padding-top: 55px;
  padding-bottom: 90px;
}

.quiz-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 46px 52px 30px;
  border: 1px solid var(--line);
  border-radius: 31px;
  background: rgba(251, 249, 243, 0.92);
  box-shadow: 0 25px 70px rgba(23, 36, 33, 0.065);
  animation: questionIn 0.36s ease both;
}

.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.question-position {
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.question-position b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.quiz-meta-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quiz-meta-note::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--theme-deep, var(--lime));
}

.quiz-question {
  max-width: 720px;
  margin-top: 36px;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.65vw, 2.55rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.032em;
  text-wrap: balance;
  scroll-margin-top: 110px;
}

.quiz-question:focus {
  outline: none;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 45px;
}

.choice-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
  width: 100%;
  min-height: 80px;
  padding: 17px 21px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 253, 246, 0.64);
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.65;
  text-align: left;
  cursor: pointer;
  transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease, color 0.24s ease;
}

.choice-button:hover {
  border-color: rgba(23, 36, 33, 0.45);
  background: var(--paper-light);
  transform: translateY(-2px);
}

.choice-letter {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.choice-label {
  flex: 1;
}

.choice-check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.choice-check .icon {
  width: 14px;
  height: 14px;
}

.choice-button.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

.choice-button.is-selected .choice-letter {
  border-color: var(--theme);
  background: var(--theme);
  color: var(--ink);
}

.choice-button.is-selected .choice-check {
  border-color: var(--theme);
  background: var(--theme);
  color: var(--ink);
  transform: scale(1.03);
}

.choice-list.is-locked .choice-button:not(.is-selected),
.likert-options.is-locked .likert-button:not(.is-selected) {
  opacity: 0.5;
}

.scale-question {
  margin-top: 50px;
}

.scale-polarity {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.likert-options {
  display: grid;
  grid-template-columns: repeat(var(--count, 5), minmax(0, 1fr));
  gap: 10px;
}

.likert-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px 7px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.likert-button:hover {
  background: rgba(23, 36, 33, 0.04);
}

.likert-circle {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.5);
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  transition: background 0.24s ease, border-color 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.likert-label {
  min-height: 2.8em;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
  transition: color 0.2s ease;
}

.likert-button:hover .likert-circle {
  border-color: var(--ink);
  transform: scale(1.04);
}

.likert-button.is-selected .likert-circle {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--theme, var(--lime));
  transform: scale(1.08);
  box-shadow: 0 0 0 5px var(--theme-wash, rgba(223, 245, 106, 0.3));
}

.likert-button.is-selected .likert-label {
  color: var(--ink);
  font-weight: 600;
}

.scale-help {
  margin-top: 19px;
  color: var(--ink-faint);
  font-size: 0.71rem;
  text-align: center;
}

.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.76rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.quiz-back .icon {
  width: 16px;
  height: 16px;
}

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

.quiz-back:disabled {
  opacity: 0.25;
  pointer-events: none;
}

.quiz-key-hint {
  color: var(--ink-faint);
  font-size: 0.67rem;
}

.quiz-key-hint kbd {
  display: inline-flex;
  min-width: 25px;
  height: 21px;
  align-items: center;
  justify-content: center;
  margin: 0 3px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper-light);
  font-family: var(--font-mono);
  font-size: 7px;
  box-shadow: 0 1px 0 var(--line);
}

.quiz-autosave {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.03em;
}

.quiz-mobile-hint {
  display: none;
  color: var(--ink-faint);
  font-size: 0.68rem;
  text-align: center;
}

.quiz-autosave .icon {
  width: 12px;
  height: 12px;
  color: #6b8a36;
}

.quiz-aside {
  position: sticky;
  top: 112px;
  padding-top: 8px;
}

.quiz-aside-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.quiz-aside-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 9px;
}

.quiz-aside-head p {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.quiz-aside-head h2 {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.quiz-aside-copy {
  position: relative;
  padding: 25px 4px 22px;
  border-bottom: 1px solid var(--line);
}

.aside-quote-mark {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--ink-faint);
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1;
  opacity: 0.3;
}

.quiz-aside-copy p {
  position: relative;
  padding-left: 17px;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.8;
}

.quiz-map {
  padding: 24px 0 23px;
  border-bottom: 1px solid var(--line);
}

.quiz-map-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.quiz-map-head > span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.quiz-map-head strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.quiz-map-head strong i {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
}

.quiz-dots {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 5px;
}

.quiz-dots i {
  height: 4px;
  border-radius: 99px;
  background: rgba(23, 36, 33, 0.1);
  transition: background 0.25s ease, transform 0.25s ease;
}

.quiz-dots i.is-done {
  background: var(--theme-deep, var(--ink));
}

.quiz-dots i.is-current {
  background: var(--ink);
  transform: scaleY(1.7);
}

.quiz-privacy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-top: 20px;
}

.quiz-privacy .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: var(--ink-faint);
}

.quiz-privacy p {
  color: var(--ink-faint);
  font-size: 0.68rem;
  line-height: 1.75;
}

/* =========================================
   Result hero
   ========================================= */

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

.result-hero {
  position: relative;
  overflow: hidden;
  padding: 21px 0 74px;
  background: var(--theme);
  color: var(--ink);
}

.result-hero::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -8%;
  width: 55vw;
  height: 55vw;
  min-width: 550px;
  min-height: 550px;
  border: 1px solid rgba(23, 36, 33, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.result-hero::after {
  content: "";
  position: absolute;
  top: -18%;
  right: 3%;
  width: 33vw;
  height: 33vw;
  min-width: 320px;
  min-height: 320px;
  border: 1px dashed rgba(23, 36, 33, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.result-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.breadcrumbs--result {
  color: rgba(23, 36, 33, 0.5);
}

.breadcrumbs--result a:hover {
  color: var(--ink);
}

.breadcrumbs--result span[aria-current="page"] {
  color: rgba(23, 36, 33, 0.72);
}

.result-date {
  color: rgba(23, 36, 33, 0.55);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.result-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: clamp(45px, 6vw, 92px);
  padding-top: 49px;
}

.result-hero-copy {
  min-width: 0;
}

.result-eyebrow {
  color: rgba(23, 36, 33, 0.59);
  margin-bottom: 39px;
}

.result-type-lockup {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.result-big-code {
  display: block;
  margin-left: -0.06em;
  font-family: var(--font-serif);
  font-size: clamp(5rem, 8.35vw, 8.25rem);
  font-weight: 600;
  line-height: 0.73;
  letter-spacing: -0.095em;
}

.result-type-name {
  padding-bottom: 3px;
}

.result-type-name h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.1vw, 3.1rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.result-type-name p {
  margin-top: 9px;
  color: rgba(23, 36, 33, 0.55);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-title {
  max-width: 720px;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.25vw, 5.3rem);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.result-title--weather {
  max-width: 710px;
  font-size: clamp(2.3rem, 3.7vw, 3.85rem);
  line-height: 1.28;
  letter-spacing: -0.045em;
}

.result-en {
  margin-top: 14px;
  color: rgba(23, 36, 33, 0.52);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.result-weather-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 19px;
  padding: 7px 13px;
  border: 1px solid rgba(23, 36, 33, 0.27);
  border-radius: 999px;
  color: rgba(23, 36, 33, 0.7);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.result-weather-code::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.result-tagline {
  max-width: 40ch;
  margin-top: 24px;
  color: rgba(23, 36, 33, 0.72);
  font-family: var(--font-serif);
  font-size: clamp(1.03rem, 1.4vw, 1.23rem);
  line-height: 1.75;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.result-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(23, 36, 33, 0.22);
  border-radius: 999px;
  color: rgba(23, 36, 33, 0.66);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.result-tags > span::before {
  content: "✦";
  color: rgba(23, 36, 33, 0.46);
  font-size: 7px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
}

.result-actions .btn {
  gap: 7px;
}

.result-hero-art {
  position: relative;
  min-width: 0;
}

.hero-art-panel {
  position: relative;
  width: 100%;
  max-width: 465px;
  margin-left: auto;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(23, 36, 33, 0.15);
  border-radius: 33px;
  background: rgba(255, 253, 246, 0.44);
  box-shadow: 0 30px 75px rgba(23, 36, 33, 0.1);
  backdrop-filter: blur(8px);
}

.hero-art-panel::before {
  content: "";
  position: absolute;
  top: -45%;
  right: -25%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(23, 36, 33, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero-art-label,
.hero-art-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: rgba(23, 36, 33, 0.49);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.11em;
}

.hero-art-label {
  padding: 4px 5px 15px;
}

.hero-art-foot {
  padding: 9px 5px 2px;
  justify-content: center;
  font-size: 7px;
}

.hero-art-panel--types .type-grid--hero {
  position: relative;
  z-index: 1;
  width: 100%;
  gap: 7px;
}

.type-grid--hero .type-cell {
  aspect-ratio: 1.65;
  border-color: rgba(23, 36, 33, 0.2);
  background: rgba(255, 253, 246, 0.36);
  font-size: 9px;
}

.type-grid--hero .type-cell.is-active {
  color: var(--theme);
  border-color: var(--ink);
  background: var(--ink);
  transform: scale(1.04) rotate(-1.5deg);
  box-shadow: 0 9px 22px rgba(23, 36, 33, 0.2);
}

.hero-art-panel--radar {
  padding: 17px 12px 9px;
}

.radar-svg {
  width: 100%;
  height: auto;
  margin: 4px 0;
  color: var(--ink);
  overflow: visible;
}

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

.radar-score {
  fill: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.55;
}

.hero-art-panel--quadrant {
  padding: 17px 14px 9px;
}

.quadrant-svg {
  width: 100%;
  height: auto;
  margin: 3px 0;
  overflow: visible;
}

.quadrant-label {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  opacity: 0.63;
}

.quadrant-axis {
  fill: var(--ink);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  opacity: 0.46;
}

.quadrant-here {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
}

.hero-art-panel--gauge {
  text-align: center;
  padding: 17px 18px 12px;
}

.mood-gauge {
  position: relative;
  width: min(100%, 300px);
  margin: 0 auto;
  aspect-ratio: 1;
  color: var(--ink);
}

.mood-gauge > svg {
  width: 100%;
  height: 100%;
}

.mood-gauge .gauge-progress {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gauge-number {
  font-family: var(--font-serif);
  font-size: clamp(3.1rem, 4.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.gauge-number small {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.5;
}

.gauge-label {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(23, 36, 33, 0.24);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.result-hero-decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.result-hero-decoration span:nth-child(1) {
  position: absolute;
  right: 3.5%;
  bottom: 5%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
}

.result-hero-decoration span:nth-child(2) {
  position: absolute;
  left: -35px;
  top: 55%;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(23, 36, 33, 0.16);
  border-radius: 50%;
}

.result-hero-decoration span:nth-child(3) {
  position: absolute;
  right: 47%;
  top: 16%;
  color: rgba(23, 36, 33, 0.38);
  font-size: 11px;
}

/* =========================================
   Result body — shared
   ========================================= */

.result-body {
  padding-top: 82px;
  padding-bottom: 104px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: clamp(48px, 6vw, 82px);
}

.result-main {
  min-width: 0;
}

.result-aside {
  min-width: 0;
  align-self: stretch;
}

.result-aside-inner {
  position: sticky;
  top: 114px;
}

.result-section {
  margin-bottom: 73px;
}

.result-section:last-child {
  margin-bottom: 0;
}

.result-section .section-kicker {
  margin-bottom: 23px;
}

.result-intro h2 {
  max-width: 770px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 3.05rem);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.result-lede {
  max-width: 700px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 2.02;
}

.result-section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.1vw, 2.9rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.result-section-lede {
  max-width: 680px;
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.9;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.keyword-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.73rem;
}

.keyword-row span::before {
  content: "✦";
  color: var(--ink-faint);
  font-size: 7px;
}

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

.insight-card {
  min-height: 280px;
  padding: 27px 26px 25px;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.insight-card--good {
  background: rgba(223, 245, 106, 0.28);
}

.insight-card--watch {
  background: rgba(255, 201, 170, 0.25);
}

.insight-label {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.insight-card h3 {
  margin-bottom: 17px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.marker-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.marker-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.75;
}

.marker-list--check li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: #52691e;
  font-size: 0.8rem;
}

.marker-list--dot li::before {
  content: "";
  position: absolute;
  top: 0.66em;
  left: 1px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--ink-soft);
  border-radius: 50%;
}

.scene-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.scene-card {
  position: relative;
  padding: 28px 30px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--paper-light);
}

.scene-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(23, 36, 33, 0.09);
  border-radius: 50%;
}

.scene-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.09em;
}

.scene-index {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 7px;
}

.scene-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 600;
}

.scene-card p {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.9;
}

.growth-panel {
  position: relative;
  overflow: hidden;
  padding: 40px 42px 35px;
  border: 1px solid rgba(23, 36, 33, 0.13);
  border-radius: 29px;
  background: var(--theme-soft);
}

.growth-panel--peach {
  background: #fae5d8;
}

.growth-panel--sky {
  background: #e3f0f4;
}

.growth-panel::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(23, 36, 33, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.growth-star {
  position: absolute;
  top: 30px;
  right: 31px;
  color: rgba(23, 36, 33, 0.4);
  font-size: 19px;
}

.growth-panel .section-kicker {
  margin-bottom: 24px;
}

.growth-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 700px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.028em;
}

.growth-panel > p {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin-top: 19px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.9;
}

.growth-quote {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: 27px;
  padding-top: 19px;
  border-top: 1px solid rgba(23, 36, 33, 0.17);
}

.growth-quote > span {
  color: var(--ink-faint);
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

.growth-quote p {
  padding-top: 5px;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.7;
}

.growth-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 36, 33, 0.15);
}

.growth-actions span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.8;
}

.growth-actions span:first-child::before {
  content: "发挥";
  display: block;
  margin-bottom: 6px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.09em;
}

.growth-actions span:last-child::before {
  content: "留意";
  display: block;
  margin-bottom: 6px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.09em;
}

/* Aside shared */

.score-panel,
.support-panel {
  padding: 24px 23px 25px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--ink);
  color: var(--white);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(251, 249, 243, 0.38);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.score-panel > h3,
.support-panel > h3 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.axis-list {
  margin-top: 24px;
}

.axis-row {
  padding: 16px 0;
  border-top: 1px solid rgba(251, 249, 243, 0.13);
}

.axis-row:last-child {
  padding-bottom: 2px;
}

.axis-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  color: rgba(251, 249, 243, 0.44);
  font-size: 0.71rem;
}

.axis-head > span:last-child {
  text-align: right;
}

.axis-head > .is-chosen {
  color: var(--white);
  font-weight: 600;
}

.axis-title {
  color: rgba(251, 249, 243, 0.42);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.02em;
  text-align: center;
}

.axis-track {
  display: flex;
  gap: 3px;
  height: 5px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
}

.axis-left {
  display: block;
  height: 100%;
  border-radius: 999px 0 0 999px;
  background: rgba(251, 249, 243, 0.22);
}

.axis-right {
  display: block;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: rgba(251, 249, 243, 0.22);
}

.axis-row--left .axis-left,
.axis-row--right .axis-right {
  background: var(--theme);
}

.axis-percents {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: rgba(251, 249, 243, 0.36);
  font-family: var(--font-mono);
  font-size: 7px;
}

.axis-row p {
  margin-top: 9px;
  color: rgba(251, 249, 243, 0.5);
  font-size: 0.72rem;
  line-height: 1.65;
}

.score-panel--compact {
  padding-bottom: 21px;
}

.mini-meter-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 21px;
}

.mini-meter > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(251, 249, 243, 0.68);
  font-size: 0.74rem;
}

.mini-meter strong {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
}

.mini-meter-track {
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(251, 249, 243, 0.13);
}

.mini-meter-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--trait-color, var(--theme));
}

.attachment-score-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 20px;
}

.attachment-score-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: rgba(251, 249, 243, 0.58);
  font-size: 0.7rem;
}

.attachment-score-head strong {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.attachment-score .mini-meter-track {
  margin-top: 8px;
}

.attachment-score p {
  margin-top: 8px;
  color: rgba(251, 249, 243, 0.44);
  font-size: 0.66rem;
  line-height: 1.65;
}

.panel-footnote {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(251, 249, 243, 0.12);
  color: rgba(251, 249, 243, 0.36);
  font-size: 0.63rem;
  line-height: 1.65;
}

.aside-keywords {
  margin-top: 23px;
  padding: 22px 4px 21px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.aside-keywords .panel-label {
  color: var(--ink-faint);
}

.aside-keywords p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.8;
}

.next-mirror {
  margin-top: 23px;
}

.next-mirror > span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.next-mirror a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 11px;
  padding: 17px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper-light);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.next-mirror a:hover {
  border-color: var(--ink);
  background: var(--theme-soft, var(--paper-deep));
}

.next-mirror h3 {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  font-weight: 600;
}

.next-mirror p {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 0.7rem;
  line-height: 1.6;
}

.next-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.next-arrow .icon {
  width: 13px;
  height: 13px;
}

.aside-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.aside-actions .text-button {
  color: var(--ink-faint);
  font-size: 0.67rem;
}

.aside-actions .text-button:hover {
  color: var(--ink);
}

.result-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 64px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
}

.result-disclaimer .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.result-disclaimer p {
  max-width: 850px;
  font-size: 0.67rem;
  line-height: 1.8;
}

/* =========================================
   Big Five result specifics
   ========================================= */

.combination-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 32px;
}

.combination-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2px 12px;
  padding: 17px 17px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-light);
}

.combination-index {
  grid-column: 1 / -1;
  margin-bottom: 16px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
}

.combination-name {
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.combination-item strong {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
}

.combination-item small {
  grid-column: 1 / -1;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.trait-detail-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 31px;
}

.trait-detail {
  position: relative;
  padding: 25px 26px 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-light);
}

.trait-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--trait-color);
}

.trait-detail-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.trait-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--trait-color);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
}

.trait-detail-name {
  flex: 1;
}

.trait-detail-name > span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
}

.trait-detail-name h3 {
  margin-top: 1px;
  font-family: var(--font-serif);
  font-size: 1.26rem;
  font-weight: 600;
}

.trait-detail-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.trait-detail-score strong {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 600;
  line-height: 1;
}

.trait-detail-score span {
  color: var(--ink-faint);
  font-size: 0.68rem;
}

.trait-meter {
  height: 6px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(23, 36, 33, 0.08);
}

.trait-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--trait-color);
}

.trait-detail-text {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.81rem;
  line-height: 1.8;
}

.trait-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.trait-notes span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.trait-notes p {
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.7;
}

/* =========================================
   Attachment result specifics
   ========================================= */

.attachment-need-inline {
  margin-top: 27px;
  padding: 21px 24px;
  border-left: 3px solid var(--theme-deep);
  background: var(--theme-soft);
}

.attachment-need-inline > span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.attachment-need-inline p {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.85;
}

.practice-list {
  margin-top: 29px;
  border-top: 1px solid var(--line);
}

.practice-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.practice-list li > span {
  color: var(--ink-faint);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.3;
}

.practice-list p {
  max-width: 670px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.85;
}

/* =========================================
   Mood result specifics
   ========================================= */

.mood-index-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 33px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mood-index-row > div {
  min-width: 145px;
  padding: 17px 25px;
  border-left: 1px solid var(--line);
}

.mood-index-row > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.mood-index-row span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.mood-index-row strong {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
}

.mood-index-row strong small {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
}

.mood-index-row .mood-index-name,
.mood-index-row .mood-index-date {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
}

.mood-index-row .mood-index-date {
  color: var(--ink-soft);
}

.mood-dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 29px;
}

.mood-dimension-card {
  padding: 19px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-light);
}

.mood-dimension-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mood-dimension-head > span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.mood-dimension-head strong {
  color: var(--mood-color);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.mood-dimension-head small {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
}

.mood-dimension-card h3 {
  margin-top: 13px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}

.mood-dimension-bar {
  height: 5px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(23, 36, 33, 0.08);
}

.mood-dimension-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mood-color);
}

.mood-dimension-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.mood-dimension-foot span {
  color: var(--ink-faint);
  font-size: 0.67rem;
  line-height: 1.55;
}

.mood-dimension-foot b {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 500;
}

.care-panel {
  position: relative;
  padding: 30px 32px;
  overflow: hidden;
  border: 1px solid rgba(23, 36, 33, 0.12);
  border-radius: 26px;
  background: var(--theme-soft);
}

.care-panel::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -50px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(23, 36, 33, 0.12);
  border-radius: 50%;
}

.care-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
}

.care-label {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.07em;
}

.care-panel h2 {
  margin-top: 7px;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
}

.care-badge {
  display: inline-flex;
  padding: 5px 11px;
  border: 1px solid rgba(23, 36, 33, 0.22);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 7px;
}

.care-title {
  position: relative;
  z-index: 1;
  margin-top: 21px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.care-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 15px;
}

.care-list li {
  position: relative;
  padding-left: 19px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.75;
}

.care-list li::before {
  content: "✦";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--ink-faint);
  font-size: 8px;
}

.small-actions {
  margin-top: 30px;
}

.small-actions h3 {
  margin-bottom: 11px;
  font-family: var(--font-serif);
  font-size: 1.23rem;
  font-weight: 600;
}

.small-actions ul {
  border-top: 1px solid var(--line);
}

.small-actions li {
  display: flex;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.79rem;
  line-height: 1.75;
}

.small-actions li span {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
}

.safety-card {
  display: flex;
  align-items: flex-start;
  gap: 19px;
  padding: 28px 29px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 201, 170, 0.18);
}

.safety-card--strong {
  border-color: rgba(155, 57, 45, 0.25);
  background: rgba(255, 201, 170, 0.28);
}

.safety-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(23, 36, 33, 0.07);
}

.safety-icon .icon {
  width: 18px;
  height: 18px;
}

.safety-card h2 {
  margin-top: 7px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.safety-card p:not(.micro-label) {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.8;
}

.safety-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.safety-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 7.5px;
  text-decoration: none;
}

.safety-links a:hover {
  background: var(--ink);
  color: var(--white);
}

.safety-links .icon {
  width: 12px;
  height: 12px;
}

/* Mood aside */

.support-panel {
  background: #172421;
}

.support-panel h3 {
  margin-bottom: 18px;
}

.support-phone {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-top: 1px solid rgba(251, 249, 243, 0.14);
  border-bottom: 1px solid rgba(251, 249, 243, 0.14);
  color: var(--theme);
  text-decoration: none;
}

.support-phone .icon {
  width: 19px;
  height: 19px;
}

.support-phone > span {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.2;
}

.support-phone small {
  color: rgba(251, 249, 243, 0.42);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.support-panel > p {
  margin-top: 15px;
  color: rgba(251, 249, 243, 0.43);
  font-size: 0.65rem;
  line-height: 1.7;
}

.breath-panel {
  position: relative;
  margin-top: 13px;
  padding: 24px 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-light);
}

.breath-panel .micro-label {
  margin-bottom: 15px;
}

.breath-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.breath-panel > p:not(.micro-label) {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.75;
}

.breath-panel .btn {
  margin-top: 16px;
}

.breath-mini {
  position: absolute;
  top: 17px;
  right: 18px;
  width: 47px;
  height: 47px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.breath-mini span:first-child {
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.breath-mini span:last-child {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: var(--theme);
}

/* =========================================
   Result next
   ========================================= */

.result-next-section {
  padding: 0 0 100px;
}

.result-next-panel {
  position: relative;
  overflow: hidden;
  padding: 54px 58px 38px;
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--white);
}

.result-next-panel::before {
  content: "";
  position: absolute;
  top: -130px;
  right: -80px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(223, 245, 106, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.result-next-panel::after {
  content: "✦";
  position: absolute;
  top: 30%;
  right: 5%;
  color: rgba(223, 245, 106, 0.46);
  font-size: 18px;
}

.next-title-block {
  position: relative;
  z-index: 1;
}

.next-title-block .micro-label {
  color: rgba(251, 249, 243, 0.36);
}

.next-title-block h2 {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 3.8vw, 3.8rem);
  font-weight: 600;
  line-height: 1.23;
  letter-spacing: -0.05em;
}

.next-title-block > p:not(.micro-label) {
  margin-top: 18px;
  color: rgba(251, 249, 243, 0.45);
  font-size: 0.79rem;
}

.next-test-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 39px;
}

.next-test-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 14px;
  border: 1px solid rgba(251, 249, 243, 0.15);
  border-radius: 15px;
  color: var(--white);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.next-test-item:hover {
  border-color: rgba(223, 245, 106, 0.48);
  background: rgba(251, 249, 243, 0.06);
}

.next-test-number {
  flex: 0 0 auto;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
}

.next-test-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.next-test-copy strong {
  font-family: var(--font-serif);
  font-size: 0.91rem;
  font-weight: 500;
}

.next-test-copy small {
  margin-top: 3px;
  color: rgba(251, 249, 243, 0.35);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.03em;
}

.next-test-arrow {
  flex: 0 0 auto;
  color: rgba(251, 249, 243, 0.5);
}

.next-test-arrow .icon {
  width: 14px;
  height: 14px;
}

.next-panel-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 31px;
  padding-top: 19px;
  border-top: 1px solid rgba(251, 249, 243, 0.12);
}

.next-panel-foot .text-button {
  color: rgba(251, 249, 243, 0.46);
  font-size: 0.7rem;
}

.next-panel-foot .text-button:hover {
  color: var(--lime);
}

/* =========================================
   Records drawer
   ========================================= */

.drawer-shell {
  position: fixed;
  inset: 0;
  z-index: 180;
  visibility: hidden;
  pointer-events: none;
}

.drawer-shell.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 25, 22, 0.4);
  opacity: 0;
  cursor: default;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.drawer-shell.is-open .drawer-backdrop {
  opacity: 1;
}

.records-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(470px, 100%);
  height: 100%;
  padding: 31px 29px 24px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: -30px 0 80px rgba(23, 36, 33, 0.16);
  transform: translateX(102%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer-shell.is-open .records-drawer {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.drawer-head h2 {
  margin-top: 7px;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.drawer-head .micro-label {
  color: var(--ink-faint);
}

.drawer-sub {
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 0.72rem;
  line-height: 1.7;
}

.records-list {
  flex: 1;
  margin-top: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
}

.record-item {
  position: relative;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.record-link {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 14px;
  min-width: 0;
  padding: 17px 33px 17px 0;
  color: var(--ink);
  text-decoration: none;
}

.record-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 52px;
  border: 1px solid rgba(23, 36, 33, 0.14);
  border-radius: 12px;
  background: var(--theme);
  font-family: var(--font-mono);
  font-size: 8px;
}

.record-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.record-meta {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.record-info strong {
  margin-top: 3px;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-info small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.68rem;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-arrow {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: var(--ink-faint);
  transition: transform 0.2s ease;
}

.record-link:hover .record-arrow {
  transform: translate(2px, -2px);
}

.record-delete {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-faint);
  opacity: 0;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.record-delete .icon {
  width: 13px;
  height: 13px;
}

.record-item:hover .record-delete,
.record-delete:focus-visible {
  opacity: 1;
}

.record-delete:hover {
  background: rgba(155, 57, 45, 0.09);
  color: var(--danger);
}

.records-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 20px 35px;
  text-align: center;
}

.empty-orbit {
  position: relative;
  width: 106px;
  height: 106px;
  margin-bottom: 27px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.empty-orbit span:first-child {
  position: absolute;
  top: 23px;
  left: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lime);
}

.empty-orbit span:last-child {
  position: absolute;
  right: 13px;
  bottom: 19px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--peach);
}

.records-empty h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.records-empty p {
  max-width: 280px;
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 0.76rem;
  line-height: 1.8;
}

.records-empty .btn {
  margin-top: 21px;
}

.drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.drawer-footer .text-button {
  color: var(--ink-faint);
  font-size: 0.68rem;
}

.drawer-footer .text-button:hover {
  color: var(--danger);
}

/* =========================================
   Modals
   ========================================= */

#modal-root:empty {
  display: none;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 24, 21, 0.55);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  cursor: default;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 38px 37px 32px;
  border: 1px solid rgba(23, 36, 33, 0.13);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.28);
  animation: modalIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 36px;
  height: 36px;
}

.modal-close .icon {
  width: 16px;
  height: 16px;
}

.confirm-modal .micro-label {
  margin-bottom: 17px;
}

.confirm-modal h2 {
  max-width: 310px;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.modal-copy {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.81rem;
  line-height: 1.85;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.copy-modal {
  width: min(100%, 570px);
}

.copy-modal h2 {
  margin-top: 12px;
  padding-right: 28px;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.copy-textarea {
  width: 100%;
  min-height: 265px;
  max-height: 42vh;
  margin-top: 20px;
  padding: 16px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper-light);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.8;
}

.copy-textarea:focus {
  outline: 2px solid #2b7664;
  outline-offset: 2px;
}

.breathing-modal {
  width: min(100%, 500px);
  padding: 34px 40px 27px;
  background: #f1ebdf;
  text-align: center;
}

.breathing-head h2 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.breathing-head > p:not(.micro-label) {
  max-width: 340px;
  margin: 9px auto 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.75;
}

.breathing-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 270px;
  height: 270px;
  margin: 23px auto 8px;
}

.breathing-halo {
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(23, 36, 33, 0.2);
  border-radius: 50%;
}

.breathing-orb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 190px;
  height: 190px;
  padding: 25px;
  border: 1px solid rgba(23, 36, 33, 0.2);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 20px 45px rgba(96, 118, 37, 0.16), 0 0 0 14px rgba(223, 245, 106, 0.16);
  transform: scale(0.88);
  transition: transform 4s ease-in-out, box-shadow 1s ease;
}

.breathing-orb[data-breath-phase="inhale"] {
  transform: scale(1.18);
  transition-duration: 4s;
  box-shadow: 0 25px 55px rgba(96, 118, 37, 0.18), 0 0 0 24px rgba(223, 245, 106, 0.16);
}

.breathing-orb[data-breath-phase="hold"] {
  transform: scale(1.18);
  transition-duration: 0.35s;
}

.breathing-orb[data-breath-phase="exhale"] {
  transform: scale(0.85);
  transition-duration: 6s;
  box-shadow: 0 15px 35px rgba(96, 118, 37, 0.12), 0 0 0 7px rgba(223, 245, 106, 0.14);
}

.breathing-orb[data-breath-phase="done"] {
  transform: scale(0.92);
  transition-duration: 0.6s;
}

.breathing-phase {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
}

.breathing-orb small {
  max-width: 110px;
  color: rgba(23, 36, 33, 0.54);
  font-family: var(--font-mono);
  font-size: 6.5px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.breathing-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 240px;
  margin: 0 auto 15px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
}

.breathing-readout span:first-child {
  color: var(--ink);
  font-size: 10px;
}

.breathing-start {
  min-width: 150px;
}

.breathing-note {
  max-width: 330px;
  margin: 14px auto 0;
  color: var(--ink-faint);
  font-size: 0.64rem;
  line-height: 1.7;
}

/* =========================================
   Toast / 404 / noscript
   ========================================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  max-width: min(90vw, 480px);
  padding: 12px 19px;
  border: 1px solid rgba(251, 249, 243, 0.18);
  border-radius: 999px;
  background: rgba(23, 36, 33, 0.94);
  color: var(--white);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(10px);
}

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

.not-found {
  position: relative;
  min-height: 64vh;
  padding: 100px 0 110px;
  overflow: hidden;
}

.not-found .eyebrow {
  margin-bottom: 24px;
}

.not-found h1 {
  max-width: 760px;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.3vw, 5.15rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.not-found > .container > p:not(.eyebrow) {
  max-width: 580px;
  margin-top: 21px;
  color: var(--ink-soft);
  font-size: 0.89rem;
  line-height: 1.9;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 31px;
}

.not-found-art {
  position: absolute;
  right: 8%;
  bottom: -80px;
  width: 330px;
  height: 330px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  pointer-events: none;
}

.not-found-art span:first-child {
  position: absolute;
  top: 25%;
  left: 17%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--lime);
}

.not-found-art span:nth-child(2) {
  position: absolute;
  right: 14%;
  bottom: 21%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--peach);
}

.not-found-art span:nth-child(3) {
  position: absolute;
  top: 12%;
  right: 22%;
  font-size: 17px;
}

.noscript-card {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  max-width: 380px;
  padding: 15px 19px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8rem;
  line-height: 1.7;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1200px) {
  .hero-layout {
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(3.05rem, 5.35vw, 4.8rem);
  }

  .hero-visual {
    min-height: 555px;
  }

  .portrait-card {
    width: min(330px, 76%);
  }

  .about-layout {
    gap: 65px;
  }

  .result-hero-grid {
    gap: 45px;
  }

  .result-layout {
    grid-template-columns: minmax(0, 1fr) 315px;
    gap: 45px;
  }

  .quiz-layout {
    gap: 45px;
  }

  .closing-panel {
    padding: 52px 52px;
  }
}

@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: grid;
  }

  .header-inner {
    gap: 16px;
  }

  .mobile-nav {
    position: fixed;
    top: calc(var(--header-height) - 5px);
    left: 18px;
    right: 18px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(251, 249, 243, 0.98);
    box-shadow: 0 25px 65px rgba(23, 36, 33, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-9px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .mobile-nav nav {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav nav button {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
  }

  .mobile-nav nav button span {
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 7px;
  }

  .mobile-nav-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 17px;
    border-radius: 13px;
    background: var(--ink);
    color: var(--white);
    font-size: 0.8rem;
    text-decoration: none;
  }

  .mobile-nav-cta .icon {
    width: 16px;
    height: 16px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding-bottom: 20px;
  }

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

  .hero-title {
    max-width: 820px;
    font-size: clamp(3.4rem, 7vw, 5rem);
  }

  .hero-lede {
    max-width: 580px;
  }

  .hero-visual {
    width: min(100%, 620px);
    min-height: 565px;
    margin: 0 auto;
  }

  .hero-caption {
    text-align: center;
  }

  .section-head {
    gap: 40px;
  }

  .section-head-aside {
    flex-basis: 315px;
  }

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

  .test-card--mbti,
  .test-card--bigfive,
  .test-card--attachment,
  .test-card--mood {
    grid-column: span 1;
    min-height: 485px;
  }

  .test-card--mbti .type-grid {
    width: min(100%, 245px);
  }

  .test-card {
    padding: 20px 21px 22px;
  }

  .test-card-art {
    min-height: 195px;
    margin-top: 22px;
  }

  .test-card-copy h3 {
    font-size: clamp(1.75rem, 3.5vw, 2.2rem);
  }

  .test-card-copy > p {
    font-size: 0.79rem;
  }

  .weather-cloud {
    right: 3%;
    width: 130px;
  }

  .weather-sun {
    width: 85px;
    height: 85px;
  }

  .how-panel {
    padding: 48px 44px 44px;
  }

  .how-head {
    gap: 35px;
  }

  .how-step {
    padding-right: 22px;
  }

  .how-step + .how-step {
    padding-left: 22px;
  }

  .step-mark {
    display: none;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 43px;
  }

  .about-left {
    position: relative;
    top: 0;
  }

  .about-left h2 {
    font-size: clamp(3.3rem, 7vw, 5.2rem);
  }

  .about-stamp {
    position: absolute;
    right: 4%;
    bottom: 0;
    width: 135px;
    height: 135px;
    margin: 0;
  }

  .about-right {
    max-width: 720px;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 48px;
  }

  .intro-copy h1 {
    max-width: 100%;
    font-size: clamp(2.9rem, 6vw, 4.4rem);
  }

  .intro-aside {
    position: static;
    width: min(100%, 530px);
  }

  .intro-poster {
    transform: rotate(0.5deg);
  }

  .poster-art {
    min-height: 390px;
  }

  .intro-side-note {
    max-width: 500px;
  }

  .intro-page::before {
    width: 72vw;
    top: -22%;
    right: -22%;
  }

  .quiz-layout {
    grid-template-columns: 1fr;
    max-width: 790px;
    gap: 0;
    padding-top: 36px;
  }

  .quiz-aside {
    display: none;
  }

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

  .quiz-topbar-center {
    display: none;
  }

  .result-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 38px;
  }

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

  .result-hero-art {
    width: min(100%, 500px);
    margin: 0 auto;
  }

  .hero-art-panel {
    margin-inline: auto;
  }

  .result-title {
    max-width: 690px;
  }

  .result-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .result-main {
    max-width: 800px;
  }

  .result-aside {
    max-width: none;
  }

  .result-aside-inner {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }

  .result-aside-inner > .score-panel,
  .result-aside-inner > .support-panel,
  .result-aside-inner > .breath-panel {
    grid-column: 1 / -1;
  }

  .result-aside-inner > .aside-actions {
    grid-column: 1 / -1;
    margin-top: 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .next-mirror,
  .aside-keywords {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .next-mirror > span {
    display: block;
    margin-bottom: 0;
  }

  .next-mirror a {
    margin-top: 11px;
  }

  .result-next-panel {
    padding: 45px 40px 31px;
  }

  .next-test-list {
    gap: 8px;
  }

  .next-test-item {
    padding: 13px 11px;
  }

  .next-test-copy strong {
    font-size: 0.84rem;
  }

  .section-head-main h2 em::after {
    right: -0.6em;
  }

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

  .footer-main {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
  }

  .footer-support {
    grid-column: 1 / -1;
    max-width: 550px;
    padding-top: 24px;
    border-top: 1px solid rgba(251, 249, 243, 0.12);
  }

  .footer-support .support-line {
    margin-top: 12px;
  }

  .closing-panel {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 33px;
    padding: 48px;
  }

  .closing-action {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .closing-art {
    opacity: 0.55;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  .container,
  .container-wide {
    width: min(calc(100% - 40px), var(--container));
  }

  .section {
    padding: 82px 0;
  }

  .header-cta {
    display: none;
  }

  .header-inner {
    gap: 10px;
  }

  .records-trigger {
    padding: 0 9px;
  }

  .records-trigger > span:not(.records-count) {
    display: none;
  }

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

  .brand-word strong {
    font-size: 1.1rem;
  }

  .home-hero {
    padding-top: 25px;
  }

  .hero-copy {
    padding-top: 22px;
  }

  .hero-eyebrow {
    margin-bottom: 22px;
  }

  .hero-title {
    font-size: clamp(2.9rem, 9.1vw, 4.3rem);
    line-height: 1.13;
  }

  .hero-lede {
    margin-top: 23px;
    font-size: 0.9rem;
  }

  .hero-actions {
    margin-top: 27px;
  }

  .hero-actions .btn {
    min-height: 50px;
    padding: 0 21px;
    font-size: 0.85rem;
  }

  .hero-trust {
    margin-top: 21px;
    font-size: 0.68rem;
  }

  .hero-trust span:not(:last-child)::after {
    margin: 0 8px;
  }

  .hero-visual {
    min-height: 510px;
    transform: scale(0.96);
    transform-origin: center;
  }

  .portrait-card {
    width: min(320px, 77%);
    border-radius: 152px 152px 24px 24px;
  }

  .portrait-visual {
    min-height: 300px;
  }

  .portrait-code {
    font-size: 5rem;
  }

  .floating-note {
    min-width: 130px;
    padding: 11px 13px;
  }

  .note-a {
    top: 14%;
    left: 0;
  }

  .note-b {
    right: 0;
    bottom: 10%;
  }

  .hero-caption {
    padding-bottom: 23px;
    font-size: 7px;
  }

  .hero-side-word {
    display: none;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 35px;
  }

  .section-head-main h2 {
    font-size: clamp(2.35rem, 7.5vw, 3.3rem);
  }

  .section-head-aside {
    flex: auto;
    max-width: 520px;
    padding-bottom: 0;
  }

  .section-head-aside p {
    font-size: 0.83rem;
  }

  .hand-note {
    margin-top: 13px;
  }

  .test-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .test-card--mbti,
  .test-card--bigfive,
  .test-card--attachment,
  .test-card--mood {
    grid-column: span 1;
    min-height: 455px;
  }

  .test-card {
    padding: 18px 19px 21px;
  }

  .test-card-art {
    min-height: 185px;
    margin: 17px 0 18px;
  }

  .test-card-copy h3 {
    font-size: 2rem;
  }

  .test-card-copy > p {
    max-width: 47ch;
    font-size: 0.81rem;
  }

  .test-card-meta {
    margin-top: 16px;
  }

  .art-bigfive {
    gap: 16px;
  }

  .bigfive-bars {
    gap: 10px;
  }

  .attachment-venn {
    min-height: 165px;
  }

  .weather-symbol {
    min-height: 130px;
  }

  .library-footnote {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin-top: 20px;
    font-size: 7.5px;
  }

  .how-section {
    padding-top: 12px;
  }

  .how-panel {
    padding: 34px 25px 30px;
    border-radius: 30px;
  }

  .how-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .how-head h2 {
    font-size: clamp(2.35rem, 8vw, 3.3rem);
  }

  .how-head > p {
    padding-bottom: 0;
    font-size: 0.81rem;
  }

  .how-steps {
    grid-template-columns: 1fr;
    margin-top: 37px;
  }

  .how-step {
    padding: 22px 0 19px;
  }

  .how-step + .how-step {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(251, 249, 243, 0.12);
  }

  .step-number {
    margin-bottom: 17px;
  }

  .how-step h3 {
    margin-bottom: 7px;
    font-size: 1.3rem;
  }

  .how-step p {
    max-width: 470px;
    font-size: 0.78rem;
  }

  .how-orbs {
    right: -210px;
    bottom: -270px;
    opacity: 0.7;
  }

  .about-section {
    padding: 88px 0 82px;
  }

  .about-left h2 {
    font-size: clamp(3rem, 12vw, 4.3rem);
  }

  .about-stamp {
    width: 108px;
    height: 108px;
    right: 0;
    bottom: 5px;
  }

  .about-lede {
    font-size: clamp(1.55rem, 5.7vw, 2rem);
  }

  .about-body {
    margin-top: 20px;
    font-size: 0.86rem;
  }

  .principles {
    margin-top: 31px;
  }

  .principle-row {
    grid-template-columns: 38px 1fr;
    gap: 13px;
    padding: 19px 0;
  }

  .quote-slab {
    margin-top: 32px;
    padding: 28px 25px;
  }

  .quote-slab p {
    font-size: 1.25rem;
  }

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

  .trace-card {
    min-height: 190px;
  }

  .trace-card strong {
    margin-top: 28px;
  }

  .traces-section {
    padding-bottom: 82px;
  }

  .closing-section {
    padding-bottom: 82px;
  }

  .closing-panel {
    padding: 35px 25px 37px;
    border-radius: 30px;
    gap: 28px;
  }

  .closing-copy h2 {
    font-size: clamp(2.45rem, 10vw, 3.4rem);
  }

  .closing-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .closing-action p br {
    display: none;
  }

  .closing-art {
    width: 250px;
    height: 250px;
    right: -72px;
    bottom: -100px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 35px 26px;
    padding-bottom: 38px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    margin-top: 15px;
  }

  .footer-support {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px 18px;
    line-height: 1.8;
  }

  .footer-motto {
    flex-basis: 100%;
  }

  .site-footer {
    padding-top: 48px;
  }

  .intro-page {
    padding: 23px 0 71px;
  }

  .intro-layout {
    padding-top: 35px;
    gap: 37px;
  }

  .intro-eyebrow {
    margin-bottom: 21px;
  }

  .intro-copy {
    display: flex;
    flex-direction: column;
  }

  .intro-copy .intro-eyebrow {
    order: 1;
  }

  .intro-copy h1 {
    order: 2;
    font-size: clamp(2.45rem, 9vw, 3.6rem);
  }

  .intro-copy .intro-lede {
    order: 3;
  }

  .intro-copy .intro-facts {
    order: 4;
  }

  .intro-copy .intro-note {
    order: 5;
  }

  .intro-copy .intro-start {
    order: 6;
  }

  .intro-copy .intro-outcomes {
    order: 7;
  }

  .intro-lede {
    margin-top: 20px;
    font-size: 0.9rem;
  }

  .intro-facts {
    margin-top: 28px;
    padding: 16px 0;
  }

  .intro-facts > div {
    min-width: 0;
    flex: 1;
    padding: 0 13px;
  }

  .intro-facts > div > span {
    font-size: 1.1rem;
  }

  .intro-facts > div > small {
    font-size: 6.8px;
  }

  .intro-outcomes {
    margin-top: 29px;
  }

  .intro-outcomes li {
    gap: 12px;
    font-size: 0.8rem;
  }

  .intro-note {
    margin-top: 22px;
    padding: 14px 15px;
  }

  .intro-start {
    margin-top: 27px;
  }

  .intro-start-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .poster-art {
    min-height: 330px;
    padding: 18px;
  }

  .intro-poster {
    padding: 13px;
    border-radius: 25px;
  }

  .intro-poster .type-cell {
    aspect-ratio: 1.7;
    font-size: 7.5px;
  }

  .intro-poster .attachment-venn {
    min-height: 170px;
  }

  .intro-poster .art-bigfive {
    gap: 19px;
  }

  .intro-poster .weather-symbol {
    min-height: 145px;
  }

  .intro-poster .weather-sun {
    width: 95px;
    height: 95px;
  }

  .intro-poster .weather-cloud {
    width: 145px;
    height: 47px;
  }

  .intro-side-note {
    margin-top: 18px;
    padding: 0 5px;
  }

  .intro-page::before {
    top: -12%;
    right: -36%;
    width: 95vw;
  }

  .quiz-topbar-inner {
    min-height: 67px;
  }

  .quiz-topbar .brand-word small {
    display: none;
  }

  .quiz-exit {
    gap: 6px;
    padding: 8px 0 8px 8px;
    font-size: 0.68rem;
  }

  .quiz-exit .icon {
    width: 16px;
    height: 16px;
  }

  .quiz-layout {
    padding-top: 24px;
    padding-bottom: 55px;
  }

  .quiz-card {
    padding: 29px 22px 23px;
    border-radius: 24px;
  }

  .quiz-meta {
    font-size: 7px;
  }

  .quiz-question {
    margin-top: 28px;
    font-size: clamp(1.55rem, 6.5vw, 2rem);
    line-height: 1.5;
  }

  .choice-list {
    margin-top: 32px;
    gap: 9px;
  }

  .choice-button {
    min-height: 72px;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 14px;
    font-size: 0.86rem;
  }

  .choice-letter {
    width: 31px;
    height: 31px;
    font-size: 9px;
  }

  .choice-check {
    width: 22px;
    height: 22px;
  }

  .scale-question {
    margin-top: 33px;
  }

  .likert-options {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .likert-button {
    flex-direction: row;
    gap: 11px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-align: left;
  }

  .likert-button:hover {
    border-color: var(--line);
  }

  .likert-circle {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .likert-label {
    min-height: 0;
    font-size: 0.79rem;
    text-align: left;
  }

  .likert-button.is-selected {
    border-color: var(--ink);
    background: rgba(255, 253, 246, 0.7);
  }

  .likert-button.is-selected .likert-circle {
    box-shadow: none;
    transform: none;
  }

  .scale-help {
    margin-top: 14px;
    text-align: left;
  }

  .quiz-footer {
    margin-top: 31px;
    gap: 10px;
  }

  .quiz-key-hint {
    display: none;
  }

  .quiz-mobile-hint {
    display: inline;
  }

  .quiz-autosave {
    font-size: 7px;
  }

  .result-hero {
    padding: 17px 0 46px;
  }

  .result-hero-grid {
    padding-top: 29px;
    gap: 28px;
  }

  .result-eyebrow {
    margin-bottom: 28px;
  }

  .result-big-code {
    font-size: clamp(5.1rem, 19vw, 7.2rem);
  }

  .result-type-lockup {
    gap: 17px;
  }

  .result-type-name h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .result-type-name p {
    font-size: 6.5px;
  }

  .result-title {
    font-size: clamp(2.45rem, 10vw, 3.5rem);
  }

  .result-title--weather {
    font-size: clamp(1.95rem, 7.6vw, 2.7rem);
    line-height: 1.35;
  }

  .result-tagline {
    margin-top: 18px;
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .result-tags {
    margin-top: 21px;
  }

  .result-actions {
    margin-top: 24px;
    gap: 7px;
  }

  .result-actions .btn {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.72rem;
  }

  .result-actions .btn .icon {
    width: 14px;
    height: 14px;
  }

  .hero-art-panel {
    padding: 12px;
    border-radius: 24px;
  }

  .hero-art-panel--radar,
  .hero-art-panel--quadrant,
  .hero-art-panel--gauge {
    padding: 13px 9px 7px;
  }

  .hero-art-label {
    padding: 3px 5px 11px;
    font-size: 6.5px;
  }

  .type-grid--hero .type-cell {
    font-size: 7.5px;
  }

  .result-body {
    padding-top: 55px;
    padding-bottom: 68px;
  }

  .result-section {
    margin-bottom: 54px;
  }

  .result-intro h2 {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
    line-height: 1.42;
  }

  .result-lede {
    margin-top: 18px;
    font-size: 0.9rem;
    line-height: 1.9;
  }

  .result-section-title {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
  }

  .result-section-lede {
    font-size: 0.8rem;
  }

  .insight-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .insight-card {
    min-height: 0;
    padding: 23px 21px;
  }

  .insight-label {
    margin-bottom: 18px;
  }

  .scene-card {
    padding: 23px 21px;
  }

  .growth-panel {
    padding: 29px 24px 27px;
    border-radius: 23px;
  }

  .growth-panel h2 {
    font-size: 1.5rem;
    line-height: 1.55;
  }

  .growth-star {
    top: 20px;
    right: 21px;
    font-size: 15px;
  }

  .result-aside-inner {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .result-aside-inner > .aside-actions {
    margin-top: 4px;
  }

  .next-mirror {
    margin-top: 2px;
  }

  .aside-keywords {
    padding-top: 18px;
    padding-bottom: 18px;
    border-top: 1px solid var(--line);
  }

  .result-disclaimer {
    margin-top: 45px;
    padding-top: 17px;
  }

  .result-next-section {
    padding-bottom: 68px;
  }

  .result-next-panel {
    padding: 34px 22px 25px;
    border-radius: 29px;
  }

  .next-title-block h2 {
    font-size: clamp(2rem, 8.5vw, 2.75rem);
  }

  .next-test-list {
    grid-template-columns: 1fr;
    margin-top: 27px;
  }

  .next-test-item {
    padding: 14px 13px;
  }

  .next-panel-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-top: 22px;
  }

  .combination-row {
    margin-top: 24px;
  }

  .combination-item {
    padding: 14px 12px;
  }

  .combination-item strong {
    font-size: 1.4rem;
  }

  .trait-detail {
    padding: 21px 18px;
  }

  .trait-detail-head {
    gap: 10px;
  }

  .trait-symbol {
    width: 35px;
    height: 35px;
    font-size: 0.95rem;
  }

  .trait-detail-name h3 {
    font-size: 1.12rem;
  }

  .trait-detail-score strong {
    font-size: 1.65rem;
  }

  .trait-notes {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .attachment-need-inline {
    margin-top: 21px;
    padding: 17px 18px;
  }

  .practice-list li {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .practice-list p {
    font-size: 0.81rem;
  }

  .mood-index-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mood-index-row > div {
    min-width: 0;
    padding: 13px 15px;
  }

  .mood-index-row > div:first-child {
    grid-column: 1 / -1;
    padding-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .mood-index-row > div:nth-child(2) {
    padding-left: 0;
    border-left: 0;
  }

  .mood-index-row strong {
    font-size: 1.4rem;
  }

  .mood-dimension-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 22px;
  }

  .mood-dimension-card {
    padding: 16px 17px;
  }

  .care-panel {
    padding: 23px 20px;
  }

  .care-panel h2 {
    font-size: 1.7rem;
  }

  .care-list li {
    font-size: 0.77rem;
  }

  .small-actions {
    margin-top: 24px;
  }

  .safety-card {
    padding: 21px 19px;
    gap: 12px;
  }

  .safety-icon {
    width: 32px;
    height: 32px;
  }

  .safety-card h2 {
    font-size: 1.15rem;
  }

  .records-drawer {
    width: min(100%, 430px);
    padding: 24px 20px 18px;
  }

  .drawer-head h2 {
    font-size: 1.6rem;
  }

  .record-delete {
    opacity: 1;
  }

  .drawer-footer {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 12px;
  }

  .modal-panel {
    padding: 31px 24px 25px;
    border-radius: 25px;
  }

  .confirm-modal h2 {
    font-size: 1.55rem;
  }

  .breathing-modal {
    padding: 29px 18px 23px;
  }

  .breathing-stage {
    width: 235px;
    height: 235px;
    margin-top: 19px;
  }

  .breathing-orb {
    width: 166px;
    height: 166px;
  }

  .breathing-readout {
    width: 210px;
  }

  .breathing-head h2 {
    font-size: 1.6rem;
  }

  .not-found {
    padding: 70px 0 80px;
  }

  .not-found-art {
    display: none;
  }

  .toast {
    bottom: 18px;
    font-size: 0.71rem;
  }
}

@media (max-width: 520px) {
  .container,
  .container-wide {
    width: calc(100% - 32px);
  }

  .brand {
    gap: 8px;
  }

  .brand-word small {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.6rem, 11.6vw, 3.55rem);
  }

  .hero-highlight::after {
    height: 0.27em;
  }

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

  .hero-actions .btn {
    justify-content: space-between;
    width: 100%;
  }

  .hero-actions .btn-ghost {
    justify-content: center;
  }

  .hero-visual {
    min-height: 450px;
    margin-top: 5px;
    transform: scale(0.91);
    margin-bottom: -22px;
  }

  .portrait-card {
    width: min(304px, 82%);
  }

  .portrait-visual {
    min-height: 278px;
    padding-top: 20px;
  }

  .portrait-code {
    font-size: 4.45rem;
  }

  .portrait-sun {
    width: 64px;
    height: 64px;
    top: 25px;
    right: 19px;
  }

  .portrait-name {
    margin-top: 13px;
    font-size: 1.03rem;
  }

  .floating-note {
    min-width: 116px;
    padding: 10px 11px;
  }

  .floating-note strong {
    font-size: 0.76rem;
  }

  .floating-note .note-label {
    font-size: 6px;
  }

  .note-a {
    left: -2px;
  }

  .note-b {
    right: -2px;
    bottom: 7%;
  }

  .note-b::before {
    display: none;
  }

  .portrait-head {
    font-size: 6.5px;
    padding: 7px 12px 12px;
  }

  .portrait-foot {
    font-size: 0.58rem;
    padding: 11px 7px 3px;
  }

  .hero-caption {
    display: none;
  }

  .section-head-main h2 {
    font-size: 2.25rem;
  }

  .test-card {
    min-height: 430px;
  }

  .test-card-head {
    gap: 10px;
  }

  .card-en {
    font-size: 7px;
  }

  .card-arrow {
    width: 38px;
    height: 38px;
  }

  .test-card-copy h3 {
    font-size: 1.8rem;
  }

  .test-card-art {
    min-height: 168px;
  }

  .test-card--mbti .type-grid {
    width: 100%;
  }

  .type-cell {
    font-size: 7px;
  }

  .bigfive-name {
    width: 43px;
    font-size: 0.59rem;
  }

  .bigfive-letter {
    width: 12px;
    font-size: 0.86rem;
  }

  .attachment-venn {
    min-height: 148px;
  }

  .venn-word {
    font-size: 1rem;
  }

  .venn-center {
    width: 51px;
    height: 51px;
    font-size: 0.7rem;
  }

  .weather-sun {
    width: 72px;
    height: 72px;
  }

  .weather-cloud {
    width: 115px;
    height: 44px;
  }

  .weather-cloud::before {
    width: 56px;
    height: 56px;
    left: 15px;
    bottom: 13px;
  }

  .weather-cloud::after {
    width: 38px;
    height: 38px;
    right: 14px;
    bottom: 14px;
  }

  .how-panel {
    padding: 29px 20px 25px;
  }

  .how-head h2 {
    font-size: 2.2rem;
  }

  .about-left h2 {
    font-size: 3rem;
  }

  .about-stamp {
    width: 89px;
    height: 89px;
    bottom: 0;
  }

  .about-lede {
    font-size: 1.5rem;
  }

  .principle-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .principle-number {
    font-size: 8px;
  }

  .quote-slab p {
    font-size: 1.1rem;
  }

  .closing-copy h2 {
    font-size: 2.4rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px 18px;
  }

  .footer-nav a,
  .footer-nav button {
    font-size: 0.75rem;
  }

  .footer-support p {
    font-size: 0.7rem;
  }

  .intro-copy h1 {
    font-size: 2.35rem;
  }

  .intro-facts {
    flex-wrap: nowrap;
    gap: 0;
  }

  .intro-facts > div {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 9px;
  }

  .intro-facts > div > span {
    font-size: 1.08rem;
  }

  .intro-facts > div:nth-child(3) {
    padding-right: 0;
    border-left: 1px solid var(--line);
  }

  .poster-art {
    min-height: 280px;
    padding: 14px;
  }

  .intro-poster .attachment-venn {
    min-height: 140px;
  }

  .intro-poster .weather-symbol {
    min-height: 120px;
  }

  .intro-poster .bigfive-track {
    height: 6px;
  }

  .poster-head {
    font-size: 6.5px;
  }

  .quiz-card {
    padding: 25px 17px 19px;
  }

  .quiz-meta-note {
    display: none;
  }

  .quiz-question {
    font-size: 1.48rem;
  }

  .choice-button {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .quiz-footer {
    margin-top: 26px;
  }

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

  .result-date {
    display: none;
  }

  .result-eyebrow {
    margin-bottom: 24px;
  }

  .result-big-code {
    font-size: 4.7rem;
  }

  .result-type-lockup {
    gap: 13px;
  }

  .result-type-name h1 {
    font-size: 1.7rem;
  }

  .result-type-name p {
    letter-spacing: 0.04em;
    font-size: 6px;
  }

  .result-title {
    font-size: 2.3rem;
  }

  .result-title--weather {
    font-size: 1.88rem;
  }

  .result-tags > span {
    padding: 6px 9px;
    font-size: 7.5px;
  }

  .result-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 7px;
  }

  .result-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .result-actions .btn:first-child:nth-last-child(3) {
    grid-column: 1 / -1;
  }

  .hero-art-panel--radar .hero-art-label {
    padding-bottom: 1px;
  }

  .hero-art-foot {
    font-size: 6.3px;
    text-align: center;
  }

  .result-intro h2 {
    font-size: 1.65rem;
  }

  .combination-row {
    grid-template-columns: 1fr;
  }

  .combination-item {
    grid-template-columns: 1fr auto;
  }

  .combination-index {
    margin-bottom: 8px;
  }

  .trait-detail-score {
    align-items: flex-end;
    flex-direction: column;
    gap: 0;
  }

  .trait-detail-score strong {
    font-size: 1.55rem;
  }

  .trait-meter {
    margin-top: 14px;
  }

  .keyword-row span {
    font-size: 0.68rem;
  }

  .mood-index-row {
    grid-template-columns: 1fr;
  }

  .mood-index-row > div:nth-child(2) {
    padding-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .mood-index-row > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .care-panel-head {
    gap: 12px;
  }

  .care-badge {
    white-space: nowrap;
  }

  .safety-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-next-panel {
    padding: 29px 18px 22px;
  }

  .next-title-block h2 {
    font-size: 1.95rem;
  }

  .score-panel,
  .support-panel {
    padding: 21px 18px;
  }

  .axis-title {
    font-size: 6px;
  }

  .aside-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-disclaimer {
    gap: 8px;
  }

  .records-drawer {
    padding-inline: 16px;
  }

  .record-icon {
    width: 39px;
    height: 47px;
  }

  .record-info strong {
    font-size: 0.92rem;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .breathing-stage {
    width: 215px;
    height: 215px;
  }

  .breathing-orb {
    width: 150px;
    height: 150px;
  }

  .breathing-phase {
    font-size: 1.35rem;
  }

  .breathing-orb small {
    font-size: 6px;
  }

  .breathing-readout {
    width: 190px;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  .hero-trust span:not(:last-child)::after {
    display: none;
  }

  .result-hero-decoration span:nth-child(2) {
    display: none;
  }

  .toast {
    width: max-content;
    max-width: calc(100vw - 32px);
    border-radius: 15px;
    padding: 11px 15px;
  }
}

@media (min-width: 1021px) and (max-height: 850px) {
  .result-aside-inner {
    position: static;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 2.45rem;
  }

  .intro-copy h1 {
    font-size: 1.95rem;
  }

  .hero-visual {
    transform: scale(0.86);
    margin-bottom: -40px;
  }

  .portrait-card {
    width: 286px;
  }

  .floating-note {
    display: none;
  }

  .test-card-copy h3 {
    font-size: 1.68rem;
  }

  .result-big-code {
    font-size: 4.2rem;
  }

  .result-type-name h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 340px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-trust {
    font-size: 0.64rem;
  }

  .intro-facts > div {
    padding-inline: 6px;
  }

  .intro-facts > div > span {
    font-size: 0.98rem;
  }

  .quiz-mobile-hint {
    font-size: 0.6rem;
  }

  .quiz-autosave {
    font-size: 6.2px;
  }
}

/* =========================================
   Print
   ========================================= */

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    background: #fff !important;
    color: #172421;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  body::before,
  .site-header,
  .mobile-nav,
  .site-footer,
  .result-actions,
  .aside-actions,
  .result-next-section,
  .drawer-shell,
  #modal-root,
  .toast,
  .result-disclaimer .icon {
    display: none !important;
  }

  .result-hero {
    padding: 0 0 24px !important;
    background: transparent !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

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

  .result-hero-grid {
    display: block;
    padding-top: 15px !important;
  }

  .result-hero-art {
    margin-top: 22px;
    width: 70%;
  }

  .hero-art-panel {
    max-width: 380px;
    background: #fff;
    box-shadow: none;
  }

  .result-hero-copy {
    max-width: 100%;
  }

  .result-big-code {
    font-size: 88px;
  }

  .result-title,
  .result-title--weather {
    font-size: 34px;
    max-width: 100%;
  }

  .result-tags,
  .result-actions,
  .result-topline {
    display: none !important;
  }

  .result-body {
    width: 100%;
    max-width: 100%;
    padding: 20px 0 0 !important;
  }

  .result-layout {
    display: block;
  }

  .result-main {
    max-width: 100%;
  }

  .result-aside {
    max-width: 100%;
    margin-top: 24px;
  }

  .result-aside-inner {
    display: block;
    position: static;
  }

  .result-section {
    margin-bottom: 27px;
    break-inside: avoid;
  }

  .result-intro h2,
  .result-section-title {
    font-size: 24px;
  }

  .result-section .section-kicker {
    margin-bottom: 13px;
  }

  .scene-card,
  .trait-detail,
  .insight-card,
  .growth-panel,
  .care-panel,
  .safety-card,
  .score-panel {
    break-inside: avoid;
  }

  .result-disclaimer {
    margin-top: 25px;
    padding-top: 12px;
  }

  .result-page {
    background: #fff;
  }

  .breadcrumbs,
  .next-mirror,
  .aside-keywords,
  .support-panel,
  .breath-panel {
    display: none !important;
  }

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

  .result-page .theme-lime {
    --theme: #dff56a;
  }
}

