:root {
  --paper: #f7f3ea;
  --ink: #1f2926;
  --muted: #6c746e;
  --sage: #829b8c;
  --sage-dark: #526b5e;
  --coral: #e88b70;
  --blue: #7298ad;
  --yellow: #e7c35f;
  --line: rgba(31, 41, 38, .14);
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(65, 77, 69, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
}
button { font: inherit; }
button:focus-visible { outline: 3px solid rgba(114, 152, 173, .45); outline-offset: 4px; }
.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .16; z-index: -1;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
.site-header {
  width: min(1180px, calc(100% - 40px)); margin: 0 auto; height: 88px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.brand-mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border-radius: 50%; color: var(--white); background: var(--sage-dark); }
.text-button { border: 0; border-bottom: 1px solid var(--ink); padding: 4px 0; color: var(--ink); background: none; cursor: pointer; }
main { min-height: calc(100vh - 160px); }
.screen { display: none; }
.screen.active { display: block; animation: enter .45s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }

.hero {
  width: min(1180px, calc(100% - 40px)); margin: 38px auto 0;
  display: none; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.hero.active { display: grid; }
.eyebrow { margin: 0 0 22px; color: var(--sage-dark); font-size: .72rem; font-weight: 700; letter-spacing: .2em; }
.hero h1 { margin: 0; max-width: 700px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(3rem, 6.1vw, 5.6rem); font-weight: 400; line-height: 1.04; letter-spacing: -.045em; }
.hero h1 em { color: var(--coral); font-weight: 400; }
.hero-description { max-width: 570px; margin: 28px 0; color: var(--muted); font-size: 1.05rem; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.primary-button, .secondary-button {
  border: 1px solid var(--sage-dark); border-radius: 999px; padding: 15px 24px; cursor: pointer; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.primary-button { color: #fff; background: var(--sage-dark); box-shadow: 0 10px 30px rgba(82, 107, 94, .2); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(82, 107, 94, .28); }
.primary-button span { margin-left: 24px; }
.secondary-button { color: var(--sage-dark); background: transparent; }
.secondary-button:hover { background: rgba(82, 107, 94, .06); }
.time-note { color: var(--muted); font-size: .85rem; }
.hero-visual { position: relative; min-height: 460px; }
.orbit { position: absolute; border: 1px solid rgba(82, 107, 94, .27); border-radius: 50%; }
.orbit-one { width: 390px; height: 390px; top: 34px; left: 50%; transform: translateX(-50%); }
.orbit-two { width: 300px; height: 420px; top: 16px; left: 50%; transform: translateX(-50%) rotate(48deg); }
.center-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-4deg); width: 225px; height: 270px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.center-card span { font-size: .68rem; letter-spacing: .22em; }
.center-card strong { margin: 6px 0; font-family: Georgia, serif; font-size: 3.4rem; font-weight: 400; }
.center-card small { color: var(--muted); font-style: italic; }
.shape { position: absolute; filter: drop-shadow(0 12px 16px rgba(31, 41, 38, .08)); }
.shape-coral { width: 90px; height: 90px; left: 5%; top: 20%; background: var(--coral); border-radius: 58% 42% 70% 30% / 35% 59% 41% 65%; transform: rotate(24deg); }
.shape-blue { width: 112px; height: 112px; right: 1%; bottom: 12%; background: var(--blue); clip-path: polygon(50% 0%, 62% 34%, 98% 34%, 69% 55%, 80% 92%, 50% 70%, 19% 92%, 30% 55%, 2% 34%, 38% 34%); }
.shape-yellow { width: 72px; height: 72px; left: 19%; bottom: 2%; background: var(--yellow); border-radius: 50% 10% 50% 10%; transform: rotate(42deg); }
.dimension-preview { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dimension-preview div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 16px 22px; border-right: 1px solid var(--line); }
.dimension-preview div:last-child { border: 0; }
.dimension-preview b { font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.dimension-preview span { color: var(--muted); text-align: center; font-size: .76rem; }
.dimension-guide { grid-column: 1 / -1; display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; margin-top: 76px; padding: 76px 0 10px; border-top: 1px solid var(--line); }
.guide-heading { position: sticky; top: 30px; align-self: start; }
.guide-heading h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(2rem, 4.2vw, 3.65rem); font-weight: 400; line-height: 1.15; letter-spacing: -.035em; }
.guide-heading h2 em { display: block; color: var(--coral); font-weight: 400; }
.guide-heading > p:last-child { max-width: 420px; margin-top: 24px; color: var(--muted); line-height: 1.85; }
.guide-list { border-top: 1px solid var(--line); }
.guide-row { display: grid; grid-template-columns: 72px 80px 1fr 1px 1fr; gap: 18px; align-items: center; min-height: 150px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.guide-pair { display: flex; align-items: center; gap: 6px; }
.guide-pair b { display: grid; place-items: center; width: 29px; height: 38px; color: var(--white); background: var(--sage-dark); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.guide-pair b:last-child { color: var(--ink); background: var(--yellow); }
.guide-pair span { color: var(--muted); font-size: .68rem; }
.guide-topic { color: var(--muted); font-size: .74rem; letter-spacing: .08em; }
.guide-side strong { font-size: .88rem; font-weight: 700; }
.guide-side p { margin: 8px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.guide-divider { width: 1px; height: 58px; background: var(--line); }

.quiz { width: min(960px, calc(100% - 40px)); margin: 20px auto 70px; }
.quiz-topline { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 24px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.25); cursor: pointer; font-size: 1.25rem; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: .76rem; }
.progress-track { height: 4px; overflow: hidden; border-radius: 10px; background: rgba(82,107,94,.12); }
.progress-bar { height: 100%; width: 2.5%; border-radius: inherit; background: var(--sage-dark); transition: width .3s; }
.question-card { min-height: 510px; margin-top: 30px; padding: 66px 70px 45px; text-align: center; background: rgba(255,253,248,.72); border: 1px solid rgba(31,41,38,.1); box-shadow: var(--shadow); }
.question-number { color: var(--coral); font-family: Georgia, serif; font-size: 1.2rem; }
.question-card h2 { max-width: 720px; margin: 25px auto 14px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; line-height: 1.45; }
.question-hint, .keyboard-hint { color: var(--muted); font-size: .84rem; }
.answer-scale { display: grid; grid-template-columns: auto repeat(7, auto) auto; justify-content: center; align-items: center; gap: 17px; margin: 65px 0 34px; }
.scale-end { font-size: .8rem; font-weight: 600; }
.agree-label { color: var(--sage-dark); }
.disagree-label { color: #a76556; }
.answer-dot { display: block; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: transform .15s, background .15s; }
.answer-dot:hover { transform: scale(1.14); }
.answer-dot.agree { border: 2px solid var(--sage); }
.answer-dot.agree:hover, .answer-dot.agree.selected { background: var(--sage); }
.answer-dot.disagree { border: 2px solid var(--coral); }
.answer-dot.disagree:hover, .answer-dot.disagree.selected { background: var(--coral); }
.answer-dot.neutral { border: 2px solid #a9aaa5; }
.answer-dot.neutral:hover, .answer-dot.neutral.selected { background: #a9aaa5; }
.dot-xl { width: 46px; height: 46px; }
.dot-lg { width: 38px; height: 38px; }
.dot-md { width: 31px; height: 31px; }
.dot-sm { width: 25px; height: 25px; }

.result { width: min(1040px, calc(100% - 40px)); margin: 42px auto 70px; }
.result-header { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.result-kicker { margin: 0; color: var(--muted); }
.result-header h2 { margin: 2px 0; color: var(--coral); font-family: Georgia, serif; font-size: clamp(5rem, 13vw, 8.5rem); font-weight: 400; letter-spacing: -.04em; }
.result-name { margin: 0 0 20px; font-family: Georgia, "Noto Serif SC", serif; font-size: 1.6rem; }
.result-summary { color: var(--muted); line-height: 1.85; }
.result-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.panel { padding: 30px; background: rgba(255,253,248,.72); border: 1px solid var(--line); }
.panel h3 { margin: 0 0 28px; font-family: Georgia, "Noto Serif SC", serif; font-size: 1.25rem; font-weight: 400; }
.dimension-row { margin-bottom: 24px; }
.dimension-row:last-child { margin-bottom: 0; }
.dimension-labels { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .85rem; }
.dimension-labels strong { font-family: Georgia, serif; font-size: 1.2rem; }
.bar-track { position: relative; display: flex; height: 10px; overflow: hidden; border-radius: 10px; background: #e3dfd7; }
.bar-fill { height: 100%; background: var(--sage); }
.bar-fill.right { margin-left: auto; background: var(--coral); }
.bar-center { position: absolute; left: 50%; top: -3px; width: 1px; height: 16px; background: var(--white); z-index: 1; }
.dimension-percent { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: .74rem; }
.trait-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.trait-cloud span { padding: 9px 13px; border: 1px solid rgba(82,107,94,.25); border-radius: 999px; color: var(--sage-dark); background: rgba(130,155,140,.08); }
.result-note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; line-height: 1.7; }
.result-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }

dialog { width: min(520px, calc(100% - 32px)); padding: 42px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(31,41,38,.45); backdrop-filter: blur(4px); }
dialog h2 { margin: 0 0 20px; font-family: Georgia, "Noto Serif SC", serif; font-size: 2rem; font-weight: 400; }
dialog p { color: var(--muted); line-height: 1.8; }
dialog .primary-button { margin-top: 12px; }
.dialog-close { position: absolute; right: 18px; top: 14px; border: 0; color: var(--ink); background: none; cursor: pointer; font-size: 1.6rem; }
footer { width: min(1180px, calc(100% - 40px)); margin: 30px auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }

@media (max-width: 820px) {
  .site-header { height: 72px; }
  .hero.active { grid-template-columns: 1fr; margin-top: 25px; }
  .hero-copy { text-align: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 380px; }
  .orbit-one { width: 320px; height: 320px; }
  .orbit-two { width: 250px; height: 350px; }
  .center-card { width: 185px; height: 225px; }
  .dimension-preview { grid-template-columns: 1fr 1fr; }
  .dimension-preview div:nth-child(2) { border-right: 0; }
  .dimension-preview div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dimension-guide { grid-template-columns: 1fr; gap: 30px; margin-top: 48px; padding-top: 54px; text-align: left; }
  .guide-heading { position: static; }
  .guide-heading h2 em { display: inline; }
  .question-card { padding: 52px 22px 35px; }
  .answer-scale { grid-template-columns: repeat(7, auto); gap: 12px; }
  .scale-end { display: none; }
  .result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 2.85rem; }
  .hero-visual { min-height: 330px; }
  .orbit-one { width: 270px; height: 270px; }
  .orbit-two { width: 205px; height: 300px; }
  .shape-coral { width: 65px; height: 65px; left: 0; }
  .shape-blue { width: 80px; height: 80px; }
  .dimension-preview span { display: none; }
  .dimension-preview div { grid-template-columns: 1fr 1fr; }
  .guide-row { grid-template-columns: 68px 1fr; gap: 16px; padding: 28px 0; }
  .guide-pair { grid-row: 1 / 3; align-self: start; }
  .guide-topic { align-self: center; }
  .guide-side { grid-column: 2; padding-top: 4px; }
  .guide-divider { display: none; }
  .question-card { min-height: 450px; }
  .answer-scale { gap: 7px; margin-top: 50px; }
  .dot-xl { width: 38px; height: 38px; }
  .dot-lg { width: 33px; height: 33px; }
  .dot-md { width: 28px; height: 28px; }
  .result-actions { flex-direction: column; }
  dialog { padding: 34px 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
