:root {
  --ink: #24312c;
  --muted: #6d756f;
  --cream: #f6f0e7;
  --paper: #fffdf8;
  --orange: #e56f43;
  --sage: #a6b99b;
  --line: rgba(36, 49, 44, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream);
  font-family: "Noto Sans SC", sans-serif;
}
button { font: inherit; }
.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}
.site-header {
  height: 78px; max-width: 1240px; margin: auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .08em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--cream); background: var(--ink); border-radius: 50%; font-family: "DM Serif Display"; font-size: 19px; }
.header-note { color: var(--muted); font-size: 12px; letter-spacing: .14em; }
main { max-width: 1240px; margin: auto; padding: 0 28px; }
.screen { display: none; animation: fade .55s ease; }
.screen.active { display: flex; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.welcome-screen { min-height: calc(100vh - 130px); align-items: center; gap: 7vw; padding: 64px 0 72px; }
.hero-copy { width: 52%; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 22px; color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .23em; display: flex; align-items: center; gap: 10px; }
.eyebrow span { display: inline-block; width: 28px; height: 1px; background: var(--orange); }
h1 { margin: 0; font-size: clamp(56px, 7vw, 96px); line-height: 1.05; letter-spacing: -.07em; font-weight: 600; }
h1 em { color: var(--orange); font-family: "DM Serif Display", serif; font-weight: 400; font-style: italic; letter-spacing: -.04em; }
.hero-desc { max-width: 540px; margin: 30px 0; color: var(--muted); font-size: 16px; line-height: 1.95; }
.primary-btn {
  min-width: 178px; border: 0; border-radius: 99px; padding: 16px 22px 16px 28px;
  color: #fff; background: var(--orange); cursor: pointer; display: inline-flex; align-items: center; justify-content: space-between; gap: 25px;
  font-weight: 600; box-shadow: 0 12px 28px rgba(229,111,67,.23); transition: .25s ease;
}
.primary-btn span { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; display: grid; place-items: center; }
.primary-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(229,111,67,.32); }
.mode-select { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 610px; }
.mode-card {
  position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
  background: rgba(255,253,248,.62); cursor: pointer; text-align: left; transition: .25s ease;
}
.mode-card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 14px 30px rgba(36,49,44,.08); }
.mode-card.featured { background: var(--ink); color: var(--cream); }
.mode-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mode-top b { font-size: 15px; }.mode-top em { color: var(--orange); font-size: 9px; font-style: normal; letter-spacing: .08em; }
.mode-desc { display: block; min-height: 52px; margin: 14px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.featured .mode-desc { color: #b9c1bd; }
.mode-action { color: var(--orange); font-size: 11px; font-weight: 700; }
.mode-badge { position: absolute; right: 12px; top: -10px; padding: 4px 9px; border-radius: 99px; color: #fff; background: var(--orange); font-size: 8px; letter-spacing: .12em; }
.hero-meta { margin-top: 48px; display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.hero-meta b { color: var(--ink); font-size: 14px; }
.hero-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--orange); }
.hero-visual { flex: 1; min-height: 570px; position: relative; display: grid; place-items: center; }
.portrait-card { width: min(350px, 90%); height: 510px; padding: 20px; position: relative; z-index: 2; background: #c9d2c1; border: 1px solid rgba(36,49,44,.2); box-shadow: 20px 24px 0 rgba(36,49,44,.08); transform: rotate(2deg); }
.portrait-top, .portrait-bottom { display: flex; justify-content: space-between; color: rgba(36,49,44,.65); font-size: 8px; letter-spacing: .15em; }
.portrait-bottom { align-items: end; }
.portrait-bottom strong { color: var(--ink); font-size: 18px; letter-spacing: .15em; }
.abstract-face { height: 410px; position: relative; overflow: hidden; }
.sun { position: absolute; width: 180px; height: 180px; border-radius: 50%; top: 52px; left: 68px; background: #efd59f; }
.face-line { position: absolute; width: 160px; height: 245px; top: 89px; left: 88px; border: 3px solid var(--ink); border-left-color: transparent; border-radius: 50% 50% 42% 45%; transform: rotate(10deg); }
.face-line::before, .face-line::after { content: ""; position: absolute; background: var(--ink); border-radius: 50%; }
.face-line::before { width: 6px; height: 6px; top: 69px; right: 48px; }
.face-line::after { width: 25px; height: 2px; top: 150px; right: 28px; transform: rotate(-12deg); }
.leaf { position: absolute; width: 48px; height: 110px; border: 2px solid var(--ink); border-radius: 100% 0 100% 0; }
.leaf-one { left: 27px; top: 88px; transform: rotate(-28deg); }
.leaf-two { right: 23px; bottom: 65px; transform: rotate(38deg); }
.leaf-three { left: 53px; bottom: 37px; transform: rotate(-70deg) scale(.7); }
.orbit { position: absolute; border: 1px solid rgba(36,49,44,.18); border-radius: 50%; }
.orbit-one { width: 510px; height: 510px; }
.orbit-two { width: 420px; height: 590px; transform: rotate(55deg); }
.float-tag { position: absolute; z-index: 3; padding: 9px 16px; border: 1px solid var(--line); background: var(--paper); border-radius: 99px; color: var(--muted); font-size: 11px; letter-spacing: .15em; box-shadow: 0 8px 25px rgba(36,49,44,.08); }
.tag-one { top: 14%; left: 3%; }.tag-two { right: -1%; top: 45%; }.tag-three { left: 1%; bottom: 11%; }

.quiz-screen { min-height: calc(100vh - 130px); flex-direction: column; padding: 30px 0 70px; }
.quiz-top { display: grid; grid-template-columns: 1fr 2.2fr 1fr; align-items: center; gap: 30px; }
.text-btn, .prev-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; letter-spacing: .08em; }
.text-btn { justify-self: start; }.prev-btn { margin-top: 30px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.progress-label strong { color: var(--ink); }
.progress-track { height: 3px; background: rgba(36,49,44,.1); border-radius: 3px; overflow: hidden; }
#progress-bar { width: 4.16%; height: 100%; background: var(--orange); transition: width .35s ease; }
.dimension-pill { justify-self: end; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.question-stage { width: min(820px, 100%); margin: auto; padding: 60px 0 20px; text-align: center; }
.question-kicker { color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.question-stage h2 { max-width: 750px; min-height: 112px; margin: 24px auto 12px; font-size: clamp(27px, 4vw, 43px); line-height: 1.45; letter-spacing: -.04em; }
.question-hint { color: var(--muted); font-size: 12px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; text-align: left; }
.option {
  min-height: 130px; border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: rgba(255,253,248,.56); cursor: pointer;
  color: var(--ink); transition: .25s ease; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
}
.option:hover { transform: translateY(-4px); border-color: var(--orange); background: var(--paper); box-shadow: 0 16px 30px rgba(36,49,44,.07); }
.option .letter { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--orange); font-family: "DM Serif Display"; }
.option span:last-child { line-height: 1.7; font-size: 14px; }
.options.scale-options { grid-template-columns: repeat(5, 1fr); gap: 10px; }
.scale-options .option { min-height: 108px; padding: 15px 10px; align-items: center; text-align: center; }
.scale-options .option .letter { flex: 0 0 auto; }
.scale-options .option span:last-child { font-size: 11px; }

.result-screen { flex-direction: column; align-items: center; padding: 70px 0 90px; }
.result-heading { text-align: center; }
.result-heading .eyebrow { justify-content: center; }
.result-label { margin: 26px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .2em; }
.result-mode { display: inline-block; margin-top: 10px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.result-heading h2 { margin: 4px 0 -12px; font-family: "DM Serif Display"; color: var(--orange); font-size: clamp(90px, 14vw, 160px); font-weight: 400; letter-spacing: -.04em; }
.result-heading h3 { margin: 0; font-size: 25px; letter-spacing: .25em; }
.result-tagline { max-width: 600px; margin: 20px auto 42px; color: var(--muted); line-height: 1.8; }
.result-grid { width: 100%; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.result-card { min-height: 330px; padding: 28px; background: rgba(255,253,248,.65); border: 1px solid var(--line); border-radius: 8px; }
.card-index { color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.overview-card > p { margin: 40px 0 28px; line-height: 2; font-size: 14px; }
.trait-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.trait-tags span { padding: 7px 12px; background: #e4eadf; border-radius: 99px; color: #52604f; font-size: 11px; }
.dimension-results { margin-top: 32px; display: grid; gap: 22px; }
.dim-row-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11px; }
.dim-row-head span { color: var(--muted); }.dim-row-head b { color: var(--orange); }
.dim-track { height: 5px; background: #dfe4da; overflow: hidden; border-radius: 5px; }
.dim-fill { height: 100%; background: var(--orange); border-radius: 5px; }
.borderline-note { margin: 22px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.note-card { color: #f5efe5; background: var(--ink); }
.note-card .card-index { color: #e8a486; }
.note-card blockquote { margin: 48px 0 32px; font-family: "DM Serif Display", "Noto Sans SC"; font-size: 23px; line-height: 1.75; }
.note-card p { color: #b9c1bd; font-size: 11px; line-height: 1.8; }
.dark-btn { margin-top: 38px; background: var(--ink); box-shadow: none; }
footer { max-width: 1240px; margin: auto; padding: 22px 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; letter-spacing: .15em; }

@media (max-width: 900px) {
  .welcome-screen { flex-direction: column; padding-top: 50px; }
  .hero-copy { width: 100%; }
  .hero-visual { width: 100%; min-height: 560px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-card { min-height: auto; }
}
@media (max-width: 620px) {
  .site-header { height: 65px; padding: 0 18px; }.header-note { display: none; }
  main { padding: 0 18px; }
  h1 { font-size: 52px; }
  .hero-desc { font-size: 14px; }
  .hero-meta { gap: 9px; flex-wrap: wrap; }
  .mode-select { grid-template-columns: 1fr; }
  .hero-visual { min-height: 490px; }
  .portrait-card { height: 445px; }.abstract-face { height: 350px; }.sun { left: 50px; }.face-line { left: 68px; }
  .orbit-one { width: 390px; height: 390px; }.orbit-two { width: 330px; height: 450px; }
  .quiz-top { grid-template-columns: 1fr 2.5fr; }.dimension-pill { display: none; }
  .question-stage { padding-top: 45px; }.question-stage h2 { min-height: 135px; }
  .options { grid-template-columns: 1fr; margin-top: 28px; }.option { min-height: 105px; }
  .options.scale-options { grid-template-columns: 1fr; gap: 8px; }
  .scale-options .option { min-height: 58px; padding: 10px 14px; flex-direction: row; justify-content: flex-start; gap: 14px; text-align: left; }
  .result-heading h2 { font-size: 88px; }
  footer { padding: 18px; flex-direction: column; gap: 8px; }
}
