/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4
 * Organic questionnaire · question-first flow · five-point result motif.
 */
@import url("./tokens.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--sand); color: var(--ink); line-height: 1.5; }
body::before, body::after { content: ""; position: fixed; top: 0; bottom: 0; width: min(31vw, 390px); z-index: 0; pointer-events: none; background-image: url("./assets/ministry-doodles.jpg"); background-repeat: no-repeat; background-size: auto 100vh; opacity: .3; }
body::before { left: 0; background-position: left center; mask-image: linear-gradient(to right, #000 42%, transparent 100%); }
body::after { right: 0; background-position: right center; mask-image: linear-gradient(to left, #000 42%, transparent 100%); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, input:focus-visible + .answer-content { outline: 3px solid var(--terracotta); outline-offset: 4px; }
::selection { background: #cfab83; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.page-grain { position: fixed; inset: 0; pointer-events: none; z-index: 10; opacity: .025; 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='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.department-map { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; width: min(100%, 610px); height: 80px; margin: 0 auto 15px; }
.department-line { position: absolute; inset: 0; width: 100%; height: 45px; overflow: visible; fill: none; stroke: rgba(180,93,61,.5); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.department-line path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: sketch-line 1.25s var(--ease-gentle) forwards; }
.department-item { position: relative; z-index: 1; min-width: 0; display: flex; align-items: center; flex-direction: column; gap: 5px; text-align: center; }
.department-disc { position: relative; display: grid; place-items: center; width: 45px; height: 45px; color: var(--moss); background: var(--sand); border-radius: 48% 52% 51% 49% / 51% 48% 52% 49%; }
.department-disc::before { content: ""; position: absolute; inset: 1px; border: 1.7px solid currentColor; border-radius: 48% 52% 51% 49% / 51% 48% 52% 49%; animation: circle-sketch 6.5s ease-in-out infinite; }
.department-item:nth-child(3) .department-disc { animation-delay: -1.5s; }.department-item:nth-child(4) .department-disc { animation-delay: -3s; }.department-item:nth-child(5) .department-disc { animation-delay: -4.5s; }.department-item:nth-child(6) .department-disc { animation-delay: -2.2s; }
.department-disc svg { position: relative; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.department-label { width: 100%; color: var(--moss); font-size: 11px; font-weight: 800; letter-spacing: .025em; line-height: 1.2; overflow-wrap: anywhere; }
.site-header, .site-footer { position: relative; z-index: 1; max-width: 1240px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 36px; }
.site-header { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark { position: relative; width: 27px; height: 27px; border: 2px solid var(--moss); border-radius: 9px 10px 11px 8px; transform: rotate(-12deg); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; width: 5px; height: 5px; background: var(--terracotta); border-radius: 50%; }
.brand-mark::before { top: 4px; left: 5px; }.brand-mark::after { right: 4px; top: 9px; }.brand-mark span { left: 10px; bottom: 3px; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.07em; }.brand-name span { color: var(--terracotta); }
.header-place, .site-footer { font-size: 10px; letter-spacing: .19em; font-weight: 700; color: var(--muted); }
.header-place span, .site-footer span { padding: 0 7px; color: var(--terracotta); }
main { position: relative; z-index: 1; }
.splash-screen { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(25px, 5vw, 70px); min-height: calc(100svh - 141px); max-width: 1240px; margin: 0 auto; padding: 42px 36px 70px; }
.splash-copy { max-width: 560px; }.splash-copy h1 { margin: 0 0 21px; font-size: clamp(48px, 5.3vw, 76px); line-height: 1.03; }.splash-copy > p:not(.eyebrow, .splash-privacy) { max-width: 480px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.splash-button { min-height: 52px; margin-top: 25px; padding: 14px 23px; font-size: 13px; }.splash-privacy { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.splash-art { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: 286px; overflow: hidden; padding: 45px 18px 35px; background: var(--sand-light); border: 1px solid var(--line); border-radius: 31px; box-shadow: var(--shadow); }
.splash-art-kicker { position: relative; z-index: 1; margin: 0 0 28px; color: var(--terracotta); font-size: 10px; font-weight: 800; letter-spacing: .2em; text-align: center; }
.splash-art .department-line { transform: translate3d(var(--art-x, 0px), var(--art-y, 0px), 0); transition: transform .22s var(--ease-gentle); }
.splash-art .department-map { z-index: 1; width: 100%; margin-bottom: 0; }.splash-art .department-disc { background: var(--sand-light); }
.quiz-screen, .result-screen { max-width: 1240px; margin: 0 auto; padding: 28px 36px 60px; }
.quiz-screen { min-height: calc(100svh - 141px); }
.quiz-intro { position: relative; max-width: 850px; margin: 0 auto 16px; text-align: center; }
.eyebrow, .card-kicker { margin: 0 0 10px; color: var(--terracotta); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.eyebrow span { display: inline-block; margin: 0 5px; }
h1, h2, p { margin-top: 0; }
h1, h2, .footer-call { font-family: "Fraunces", Georgia, serif; font-weight: 500; letter-spacing: -.055em; }
.quiz-intro h1 { font-size: clamp(38px, 4.8vw, 66px); line-height: 1.05; margin-bottom: 12px; }
h1 em { color: var(--terracotta); font-weight: 400; }
.intro-copy { max-width: 630px; margin: 0 auto; font-size: 13px; line-height: 1.65; color: var(--muted); }
.quiz-card { max-width: 760px; margin: 0 auto; padding: 28px var(--space-4) 30px; background: var(--sand-light); border: 1px solid rgba(84,88,65,.18); border-radius: 28px; box-shadow: var(--shadow); }
.progress-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 10px; }
.question-counter { font-size: 11px; font-weight: 700; color: var(--moss); }.progress-fraction { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: #d6c7ae; }.progress-fill { display: block; height: 100%; width: 5%; border-radius: inherit; background: var(--terracotta); transition: width .4s var(--ease-gentle); }
.question-prompt { margin: 24px 0 5px; font-size: 11px; font-weight: 700; color: var(--muted); }
.question-text { min-height: 74px; margin: 0 0 19px; font-size: clamp(20px, 2.6vw, 27px); line-height: 1.4; font-weight: 500; }
.question-english { font-family: var(--font-display); font-size: 1.04em; font-style: italic; font-weight: 400; color: var(--moss); }
.question-highlight { position: relative; }
.highlight-brush, .highlight-jagged { display: inline-block; max-width: 100%; padding-bottom: .38em; line-height: 1.15; vertical-align: baseline; background-repeat: no-repeat; background-position: left bottom; }
.highlight-brush { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 24' preserveAspectRatio='none'%3E%3Cpath d='M2 8 21 5 42 7 66 4 91 7 113 4 140 6 178 5 175 17 145 19 120 17 91 20 61 17 38 20 3 18Z' fill='%23c66b3d' fill-opacity='.27'/%3E%3C/svg%3E"); background-size: 0% .34em; animation: brush-reveal .62s .12s var(--ease-gentle) forwards; }
.highlight-jagged { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7 16 5 30 8 44 4 58 7 73 5 88 8 104 4 119 7 135 5 151 8 178 5' stroke='%23b45d3d' stroke-opacity='.75' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 0% .28em; animation: jagged-reveal .62s .12s var(--ease-gentle) forwards; }
.highlight-ring { display: inline-block; max-width: 100%; }
.question-ring { position: absolute; z-index: 1; top: -.18em; left: -.17em; width: calc(100% + .34em); height: calc(100% + .34em); overflow: visible; pointer-events: none; }
.question-ring path { fill: none; stroke: rgba(180,93,61,.74); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ring-draw .83s .12s var(--ease-gentle) forwards; }
.question-cue { display: inline-block; width: .84em; height: .84em; margin-left: .16em; color: var(--terracotta); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.12em; overflow: visible; transform-origin: 50% 70%; }
.cue-scan { animation: cue-scan 3.6s .35s ease-in-out infinite; }
.cue-beat { animation: cue-beat 3.3s .4s ease-in-out infinite; }
.cue-float { animation: cue-float 3.5s .35s ease-in-out infinite; }
.cue-glow { animation: cue-glow 3.7s .35s ease-in-out infinite; }
.cue-bloom { animation: cue-bloom 3.8s .4s ease-in-out infinite; }
.cue-tilt { animation: cue-tilt 3.5s .35s ease-in-out infinite; }
.cue-wave { animation: cue-wave 3.2s .35s ease-in-out infinite; }
.cue-tick { animation: cue-tick 3.4s .35s ease-in-out infinite; }
.cue-peek { animation: cue-peek 3.7s .4s ease-in-out infinite; }
.cue-slide { animation: cue-slide 3.6s .4s ease-in-out infinite; }
.cue-hug { animation: cue-hug 3.6s .4s ease-in-out infinite; }
.cue-reach { animation: cue-reach 3.5s .35s ease-in-out infinite; }
.question-text:focus { outline: none; }
.answers-fieldset { border: 0; margin: 0; padding: 0; }.answer-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.answer-option { position: relative; display: block; cursor: pointer; }.answer-option input { position: absolute; inset: 0; z-index: 1; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.answer-content { min-height: 66px; display: flex; align-items: center; gap: 13px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 16px; background: #e8dac4; transition: background .28s ease, border-color .28s ease, transform .28s ease, box-shadow .28s ease; }
.answer-option:hover .answer-content { background: #dfcfb6; transform: translateY(-2px); }.answer-option input:checked + .answer-content { background: #d8e0ce; border-color: var(--moss); box-shadow: inset 0 0 0 1px var(--moss); }
.answer-number { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #d6c7ad; color: var(--moss); font-size: 11px; font-weight: 800; }.answer-option input:checked + .answer-content .answer-number { color: var(--sand-light); background: var(--moss); }
.answer-label { font-size: 12px; font-weight: 600; line-height: 1.35; }
.question-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 21px; }
.auto-next-note { margin-left: auto; color: var(--muted); font-size: 11px; text-align: right; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 13px; padding: 12px 20px; font-size: 12px; font-weight: 700; text-decoration: none; transition: transform .28s ease, background .28s ease, opacity .28s ease; }.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { background: var(--moss); color: #ede2cf; }.button-primary:hover:not(:disabled) { background: #30462d; }.button-primary:disabled { opacity: .45; }
.button-text { padding-left: 5px; padding-right: 5px; background: transparent; color: var(--moss); }.button-text:disabled { visibility: hidden; }
.button-outline { background: transparent; color: var(--moss); border: 1px solid var(--moss); }.button-outline:hover { background: #dce1d2; }
.keyboard-tip { margin-left: auto; font-size: 10px; color: var(--muted); }.privacy-note { margin: 14px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
.site-footer { min-height: 64px; border-top: 1px solid var(--line); justify-content: center; text-align: center; }

.result-screen { padding-top: 48px; }.result-heading { position: relative; max-width: 720px; margin-bottom: 32px; }.result-heading h1 { font-size: clamp(42px, 5.5vw, 74px); line-height: 1; margin-bottom: 18px; }.result-heading > p:last-child { max-width: 660px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.result-confetti { position: absolute; top: -16px; right: -112px; width: 100px; height: 80px; pointer-events: none; }.result-confetti span { position: absolute; display: block; width: 5px; height: 12px; border-radius: 3px; background: var(--terracotta); opacity: 0; }.result-confetti span:nth-child(1) { left: 8%; top: 24%; }.result-confetti span:nth-child(2) { left: 29%; top: 4%; width: 4px; height: 8px; background: var(--moss); }.result-confetti span:nth-child(3) { left: 50%; top: 36%; width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); }.result-confetti span:nth-child(4) { left: 72%; top: 12%; background: var(--moss); }.result-confetti span:nth-child(5) { left: 90%; top: 39%; width: 5px; height: 5px; border-radius: 50%; }.result-confetti span:nth-child(6) { left: 40%; top: 64%; width: 4px; height: 9px; background: var(--ochre); }
.result-screen.is-entering .result-confetti span { animation: confetti-accent .85s ease-out both; }.result-screen.is-entering .result-confetti span:nth-child(2) { animation-delay: .09s; }.result-screen.is-entering .result-confetti span:nth-child(3) { animation-delay: .16s; }.result-screen.is-entering .result-confetti span:nth-child(4) { animation-delay: .05s; }.result-screen.is-entering .result-confetti span:nth-child(5) { animation-delay: .21s; }.result-screen.is-entering .result-confetti span:nth-child(6) { animation-delay: .13s; }
.result-overview { display: grid; grid-template-columns: 1.15fr .85fr; gap: 17px; align-items: stretch; }.chart-card, .matches-card, .vibe-card { background: var(--sand-light); border: 1px solid var(--line); border-radius: 26px; }
.chart-card, .matches-card { padding: 25px 27px 22px; }.chart-card h2, .matches-card h2, .vibes-section h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.14; }.radar-chart { display: block; width: 100%; max-width: 540px; margin: 4px auto 0; overflow: visible; }.radar-grid polygon { fill: none; stroke: rgba(63,88,58,.2); stroke-width: 1; }.radar-grid line { stroke: rgba(63,88,58,.19); stroke-width: 1; }.radar-shape { fill: rgba(180,93,61,.2); stroke: var(--terracotta); stroke-width: 3; stroke-linejoin: round; transform-box: view-box; transform-origin: 50% 50%; }.radar-dot { stroke: var(--sand-light); stroke-width: 3; transform-box: fill-box; transform-origin: center; }.result-screen.is-entering .radar-shape { animation: radar-reveal .75s var(--ease-gentle) both; }.result-screen.is-entering .radar-dot { animation: radar-dot-pop .45s .42s var(--ease-gentle) both; }.radar-label { font-family: "Epilogue", sans-serif; font-size: 13px; font-weight: 800; fill: var(--moss); }.chart-note { margin: -8px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.top-matches { margin-top: 27px; }.top-match { position: relative; padding: 19px 0; border-top: 1px solid var(--line); }.top-match-number { color: var(--terracotta); font-size: 11px; font-weight: 800; letter-spacing: .13em; }.top-match-line { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }.top-match h3 { margin: 3px 0 0; font-size: clamp(21px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -.04em; }.top-match strong { font-family: "Fraunces", Georgia, serif; font-size: clamp(28px, 3.1vw, 42px); line-height: 1; font-weight: 500; color: var(--terracotta); }.top-match p { margin: 7px 0 0; font-family: "Fraunces", Georgia, serif; font-size: 16px; color: var(--moss); }.explore-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.category-icon { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 48% 52% 51% 49% / 51% 48% 52% 49%; background: var(--sand-light); color: var(--moss); }
.category-icon::before { content: ""; position: absolute; inset: 1px; border: 1.5px solid currentColor; border-radius: 48% 52% 51% 49% / 51% 48% 52% 49%; animation: circle-sketch 6.8s ease-in-out infinite; }
.category-icon svg { position: relative; width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.category-icon-large { width: 46px; height: 46px; }.category-icon-large svg { width: 31px; height: 31px; }.category-icon-small { width: 31px; height: 31px; background: var(--oat-soft); }.category-icon-small svg { width: 20px; height: 20px; }
.category-icon[data-category="PEOPLE"] { color: #a75640; }.category-icon[data-category="TECH"] { color: #46634c; }.category-icon[data-category="STAGE"] { color: #9c6d2d; }.category-icon[data-category="GENERATIONS"] { color: #607d62; }.category-icon[data-category="EVENTS & MEDIA"] { color: #83604f; }
.top-match-line { align-items: center; }.top-match-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }.top-match-identity h3 { min-width: 0; margin: 0; }
.vibe-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }.vibe-card .vibe-heading h3 { margin: 0; }
.other-area-title-row { display: flex; align-items: center; gap: 9px; margin-bottom: 3px; }.other-area-intro .other-area-title-row h2 { margin: 0; }
.result-screen.is-entering .top-match .category-icon[data-category="PEOPLE"]::before { animation-duration: 4.8s; }
.vibes-section { margin-top: 40px; }.section-heading { margin-bottom: 17px; }.vibe-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; }.vibe-card { position: relative; overflow: hidden; padding: 25px 27px 27px; }.vibe-card::before { content: ""; position: absolute; top: -40px; right: -20px; width: 170px; aspect-ratio: 1; border: 1px solid currentColor; opacity: .16; border-radius: 38% 62% 55% 45% / 52% 40% 60% 48%; transform: rotate(16deg); }.vibe-card[data-category="PEOPLE"] { --vibe: #a75640; }.vibe-card[data-category="TECH"] { --vibe: #46634c; }.vibe-card[data-category="STAGE"] { --vibe: #9c6d2d; }.vibe-card[data-category="GENERATIONS"] { --vibe: #607d62; }.vibe-card[data-category="EVENTS & MEDIA"] { --vibe: #83604f; }.vibe-card { color: var(--vibe); }.vibe-kicker { margin: 0 0 9px; font-size: 10px; font-weight: 800; letter-spacing: .16em; }.vibe-card h3 { margin: 0 0 12px; font-family: "Fraunces", Georgia, serif; font-size: clamp(27px, 3vw, 39px); font-weight: 500; letter-spacing: -.05em; line-height: 1.05; }.vibe-description { max-width: 470px; color: var(--ink); font-size: 13px; line-height: 1.65; }.vibe-meta { display: grid; gap: 15px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 17px; }.vibe-meta span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; }.vibe-meta p { color: var(--ink); font-size: 12px; font-weight: 600; margin: 0; line-height: 1.55; }.vibe-card .try { margin-top: 7px; color: var(--vibe); font-size: 13px; font-weight: 800; }
.other-area { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: center; margin-top: 18px; padding: 21px 27px; background: var(--oat-soft); border: 1px solid var(--line); border-radius: var(--radius-card); }
.other-area-intro h2 { margin: 0 0 3px; font-size: 27px; }.other-area-slogan { margin: 0; color: var(--moss); font-family: var(--font-display); font-size: 15px; }
.other-area-detail { display: grid; gap: 10px; border-left: 1px solid var(--line); padding-left: 25px; }.other-area-detail span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; }.other-area-detail p { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.45; }
.result-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 34px 0 10px; }.footer-call { margin-bottom: 5px; color: var(--moss); font-size: 27px; }.booth-summary { max-width: 540px; margin: 0; color: var(--muted); font-size: 12px; }.result-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
@keyframes marker-drift { 50% { transform: translateY(-3px); } }
@keyframes circle-sketch { 0%, 100% { transform: rotate(-4deg) scale(.98); } 50% { transform: rotate(5deg) scale(1.045); } }
@keyframes sketch-line { to { stroke-dashoffset: 0; } }
@keyframes brush-reveal { to { background-size: 100% .34em; } }
@keyframes jagged-reveal { to { background-size: 100% .28em; } }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes cue-scan { 0%, 72%, 100% { transform: rotate(-8deg); } 35% { transform: rotate(8deg) translate(1px, -1px); } }
@keyframes cue-beat { 0%, 68%, 100% { transform: scale(1); } 20%, 33% { transform: scale(1.13); } 27% { transform: scale(.96); } }
@keyframes cue-float { 0%, 75%, 100% { transform: translateY(0) rotate(-3deg); } 35% { transform: translateY(-4px) rotate(5deg); } }
@keyframes cue-glow { 0%, 70%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); } 35% { transform: scale(1.09); filter: drop-shadow(0 0 5px rgba(180,93,61,.58)); } }
@keyframes cue-bloom { 0%, 75%, 100% { transform: scale(.94); } 38% { transform: scale(1.12); } }
@keyframes cue-tilt { 0%, 75%, 100% { transform: rotate(-4deg); } 36% { transform: rotate(9deg); } }
@keyframes cue-wave { 0%, 70%, 100% { transform: rotate(0); } 22%, 40% { transform: rotate(13deg); } 31%, 49% { transform: rotate(-8deg); } }
@keyframes cue-tick { 0%, 74%, 100% { transform: translateY(0); } 27% { transform: translateY(-2px); } 40% { transform: translateY(1px); } }
@keyframes cue-peek { 0%, 72%, 100% { transform: scale(1); } 35% { transform: scale(1.07, .92); } }
@keyframes cue-slide { 0%, 74%, 100% { transform: translateX(0); } 36% { transform: translateX(3px); } }
@keyframes cue-hug { 0%, 72%, 100% { transform: scale(1); } 34% { transform: scale(.93, 1.04); } }
@keyframes cue-reach { 0%, 72%, 100% { transform: translateX(0) rotate(-3deg); } 35% { transform: translateX(2px) rotate(3deg); } }
@keyframes radar-reveal { from { opacity: 0; transform: scale(.18); } to { opacity: 1; transform: scale(1); } }
@keyframes radar-dot-pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes confetti-accent { 0% { opacity: 0; transform: translate(0, 25px) rotate(-25deg) scale(.65); } 22%, 58% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--drift-x, 0px), -74px) rotate(115deg) scale(1.04); } }
@keyframes people-wave { 0% { opacity: 0; transform: translateY(3px) rotate(-7deg); } 55% { opacity: 1; transform: translateY(-1px) rotate(5deg); } 100% { opacity: 1; transform: translateY(0) rotate(0); } }

@media (max-width: 850px) { .result-overview { grid-template-columns: 1fr; }.chart-card { padding-bottom: 9px; }.radar-chart { max-width: 500px; }.result-footer { align-items: flex-start; flex-direction: column; }.result-actions { justify-content: flex-start; } }
@media (max-width: 850px) { .result-confetti { right: 0; top: -24px; transform: scale(.72); transform-origin: top right; } }
@media (max-width: 900px) { .splash-screen { grid-template-columns: 1fr; gap: 23px; min-height: calc(100svh - 141px); padding-top: 34px; }.splash-copy { max-width: 710px; }.splash-copy h1 { max-width: 690px; font-size: clamp(43px, 6vw, 62px); }.splash-art { min-height: 220px; padding: 35px 16px 28px; }.splash-art-kicker { margin-bottom: 18px; } }
@media (max-width: 650px) { .site-header, .site-footer { padding-left: 18px; padding-right: 18px; }.header-place { max-width: 130px; text-align: right; line-height: 1.4; font-size: 8px; }.header-place span { padding: 0 2px; }.quiz-screen, .result-screen { padding-left: 16px; padding-right: 16px; }.quiz-screen { padding-top: 20px; }.quiz-intro { margin-bottom: 9px; }.intro-copy { font-size: 12px; }.quiz-card { padding: 22px 19px 23px; border-radius: 23px; }.question-text { min-height: auto; font-size: 21px; }.answer-options { grid-template-columns: 1fr; gap: 8px; }.answer-content { min-height: 53px; padding: 9px 12px; }.question-actions { margin-top: 16px; }.keyboard-tip { display: none; }.vibe-cards { grid-template-columns: 1fr; }.result-heading { margin-bottom: 22px; }.result-heading > p:last-child { font-size: 12px; }.result-screen { padding-top: 32px; }.chart-card, .matches-card, .vibe-card { padding-left: 20px; padding-right: 20px; }.radar-label { font-size: 13px; } }
@media (max-width: 650px) { .splash-screen { gap: 18px; padding: 26px 16px 45px; }.splash-copy h1 { margin-bottom: 12px; font-size: clamp(38px, 8vw, 48px); }.splash-copy > p:not(.eyebrow, .splash-privacy) { font-size: 14px; line-height: 1.6; }.splash-button { margin-top: 17px; }.splash-art { min-height: 180px; padding: 25px 10px 20px; border-radius: 23px; }.splash-art-kicker { margin-bottom: 15px; } }
@media (max-width: 650px) { .question-text { line-height: 1.48; } }
@media (max-width: 650px) { .department-map { height: 78px; margin-bottom: 10px; }.department-disc { width: 39px; height: 39px; }.department-disc svg { width: 25px; height: 25px; }.department-line { height: 39px; }.department-label { font-size: 10px; letter-spacing: 0; } }
@media (max-width: 650px) { .quiz-intro .eyebrow { font-size: 12px; }.quiz-intro .intro-copy { font-size: 14px; } }
@media (max-width: 360px) { .department-map { height: 75px; }.department-disc { width: 36px; height: 36px; }.department-disc svg { width: 23px; height: 23px; }.department-line { height: 36px; }.department-label { font-size: 9px; } }
@media (max-width: 650px) { .other-area { grid-template-columns: 1fr; gap: 13px; padding: 20px; }.other-area-detail { border-left: 0; border-top: 1px solid var(--line); padding: 13px 0 0; } }
@media (max-width: 360px) { .brand-name { font-size: 16px; }.header-place { max-width: 112px; font-size: 7px; }.question-text { font-size: 19px; }.answer-label { font-size: 11px; }.button { padding: 11px 14px; }.radar-label { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: reduce) { .highlight-brush { animation: none !important; background-size: 100% .34em; }.highlight-jagged { animation: none !important; background-size: 100% .28em; }.question-ring path { animation: none !important; stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .question-cue { animation: none !important; transform: none !important; filter: none !important; } }
@media (prefers-reduced-motion: reduce) { .department-line path { animation: none !important; stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .department-disc::before, .category-icon::before { animation: none !important; transform: none !important; } }
@media (prefers-reduced-motion: reduce) { .splash-art .department-line { transform: none !important; }.result-confetti { display: none !important; }.radar-shape, .radar-dot { animation: none !important; transform: none !important; opacity: 1 !important; } }
@media (prefers-reduced-motion: reduce) { .top-match .category-icon[data-category="PEOPLE"] svg, .vibe-card .category-icon[data-category="PEOPLE"] svg { animation: none !important; transform: none !important; opacity: 1 !important; } }

.profile-screen { position: relative; isolation: isolate; display: grid; place-items: center; min-height: calc(100svh - 141px); max-width: 1240px; margin: 0 auto; padding: 44px 36px 70px; overflow: hidden; }
.profile-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.profile-art::before, .profile-art::after { content: ""; position: absolute; top: 3%; bottom: 3%; width: min(34%, 380px); background-image: url("./assets/ministry-doodles.jpg"); background-repeat: no-repeat; background-size: auto 100%; opacity: .17; animation: marker-drift 9s ease-in-out infinite; }
.profile-art::before { left: 0; background-position: left center; mask-image: linear-gradient(to right, #000 53%, transparent); }
.profile-art::after { right: 0; background-position: right center; mask-image: linear-gradient(to left, #000 53%, transparent); animation-delay: -4s; }
.profile-card { width: min(100%, 660px); padding: clamp(29px, 5vw, 49px); background: rgba(248,242,230,.96); border: 1px solid var(--line); border-radius: 31px; box-shadow: var(--shadow); }
.profile-card h1 { margin: 0 0 10px; font-size: clamp(40px, 5vw, 66px); line-height: 1.05; }
.profile-intro { margin: 0 0 31px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.profile-fieldset { border: 0; padding: 0; margin: 0 0 27px; }
.profile-fieldset legend { margin: 0 0 12px; padding: 0; font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.profile-fieldset legend em { color: var(--moss); }
.profile-options { display: flex; flex-wrap: wrap; gap: 9px; }
.profile-options label { position: relative; cursor: pointer; }
.profile-options input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.profile-options span { display: grid; place-items: center; min-height: 45px; padding: 10px 16px; background: #e8dac4; border: 1px solid var(--line); border-radius: 999px; color: var(--moss); font-size: 12px; font-weight: 700; transition: background .2s, color .2s, transform .2s; }
.profile-options label:hover span { transform: translateY(-2px); background: #e0cfb2; }
.profile-options input:checked + span { background: var(--moss); color: var(--sand-light); border-color: var(--moss); }
.profile-options input:focus-visible + span { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.profile-actions { display: flex; align-items: center; gap: 19px; margin-top: 32px; }
.profile-auto-note { margin-left: auto; color: var(--muted); font-size: 11px; text-align: right; }
.profile-privacy { margin: 17px 0 0; color: var(--muted); font-size: 10px; }
.result-overview { grid-template-columns: .91fr 1.09fr; }
.matches-card { position: relative; overflow: hidden; }
.matches-card::after { content: ""; position: absolute; top: -34px; right: -36px; width: 150px; height: 115px; background: #eec99d; opacity: .24; border-radius: 35% 65% 68% 32% / 46% 36% 64% 54%; transform: rotate(-14deg); pointer-events: none; }
.top-matches { position: relative; z-index: 1; margin-top: 19px; display: grid; gap: 12px; }
.top-match { --match-color: var(--terracotta); padding: 15px 17px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.32); }
.top-match[data-category="PEOPLE"] { --match-color: #a75640; }.top-match[data-category="GENERATIONS"] { --match-color: #607d62; }.top-match[data-category="EVENTS & MEDIA"] { --match-color: #83604f; }.top-match[data-category="STAGE"] { --match-color: #9c6d2d; }.top-match[data-category="TECH"] { --match-color: #46634c; }
.top-match-number { color: var(--match-color); font-size: 9px; }
.top-match-heading { display: flex; align-items: center; gap: 8px 10px; margin: 7px 0 8px; }
.top-match-title { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.top-match-heading h3 { margin: 0; color: var(--match-color); font-family: var(--font-display); font-size: clamp(20px, 2.1vw, 28px); font-weight: 500; letter-spacing: -.04em; }
.top-match-tagline { display: block; margin-top: 2px; color: var(--match-color); font-size: 8px; font-weight: 800; letter-spacing: .06em; line-height: 1.35; text-transform: uppercase; white-space: nowrap; }
.top-match .top-match-description { margin: 0 0 11px; color: var(--ink); font-family: var(--font-body); font-size: 11px; line-height: 1.55; }
.top-match-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.top-match-meta span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.top-match-meta p { margin: 0; color: var(--ink); font-family: var(--font-body); font-size: 10px; font-weight: 600; line-height: 1.4; }
.top-match-meta .try { color: var(--match-color); font-weight: 800; }
.top-match .category-icon { width: 34px; height: 34px; color: var(--match-color); }.top-match .category-icon svg { width: 23px; height: 23px; }
.explore-note { margin-top: 15px; font-family: var(--font-display); font-size: 13px; font-style: italic; }
.result-save-status { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.result-confetti { top: -27px; right: -140px; width: 175px; height: 128px; }
.result-confetti span { width: 8px; height: 19px; border-radius: 4px; }
.result-confetti span:nth-child(2) { width: 7px; height: 14px; }
.result-confetti span:nth-child(3), .result-confetti span:nth-child(5) { width: 10px; height: 10px; }
.result-confetti span:nth-child(7) { left: 14%; top: 61%; background: var(--ochre); transform: rotate(28deg); }
.result-confetti span:nth-child(8) { left: 67%; top: 66%; width: 10px; height: 10px; border-radius: 50%; background: var(--moss); }
.result-confetti span:nth-child(9) { left: 86%; top: 11%; width: 7px; height: 15px; background: var(--ochre); }
.result-confetti span:nth-child(10) { left: 94%; top: 70%; width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); }
.result-confetti span:nth-child(odd) { --drift-x: -21px; }
.result-confetti span:nth-child(even) { --drift-x: 20px; }
.result-screen.is-entering .result-confetti span { animation: confetti-accent 1.28s cubic-bezier(.18,.64,.35,1) both; }
.result-screen.is-entering .result-confetti span:nth-child(7) { animation-delay: .09s; }
.result-screen.is-entering .result-confetti span:nth-child(8) { animation-delay: .19s; }
.result-screen.is-entering .result-confetti span:nth-child(9) { animation-delay: .05s; }
.result-screen.is-entering .result-confetti span:nth-child(10) { animation-delay: .15s; }
.save-retry { border: 0; background: none; color: var(--moss); font-size: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 850px) { .result-confetti { right: -12px; top: -21px; transform: scale(.78); transform-origin: top right; } }
@media (max-width: 850px) { .result-overview { grid-template-columns: 1fr; }.top-match-meta { grid-template-columns: 1fr 1fr; } }
@media (max-width: 650px) { body::before, body::after { width: 34vw; opacity: .22; }.profile-screen { padding: 18px 16px 50px; }.profile-card { padding: 25px 21px; }.profile-art::before, .profile-art::after { opacity: .08; }.profile-fieldset legend { font-size: 18px; }.age-options span { min-height: 42px; padding: 8px 12px; }.profile-auto-note { font-size: 10px; }.top-match-tagline { font-size: 7px; letter-spacing: .035em; }.top-match-meta { grid-template-columns: 1fr; gap: 9px; }.top-match-heading h3 { font-size: 22px; } }

/* The confetti starts at the word “match”, fans upward, then falls away. */
.result-match-word { position: relative; display: inline-block; white-space: nowrap; }
.result-match-word .result-confetti { left: 50%; top: 43%; right: auto; width: 0; height: 0; transform: none; }
.result-match-word .result-confetti span { left: 0; top: 0; }
.result-confetti span:nth-child(1) { --burst-x: -125px; --burst-y: -61px; --land-x: -166px; --land-y: 112px; }
.result-confetti span:nth-child(2) { --burst-x: -94px; --burst-y: -87px; --land-x: -130px; --land-y: 146px; }
.result-confetti span:nth-child(3) { --burst-x: -63px; --burst-y: -45px; --land-x: -87px; --land-y: 119px; }
.result-confetti span:nth-child(4) { --burst-x: -29px; --burst-y: -99px; --land-x: -47px; --land-y: 154px; }
.result-confetti span:nth-child(5) { --burst-x: -5px; --burst-y: -64px; --land-x: 14px; --land-y: 127px; }
.result-confetti span:nth-child(6) { --burst-x: 31px; --burst-y: -96px; --land-x: 48px; --land-y: 153px; }
.result-confetti span:nth-child(7) { --burst-x: 65px; --burst-y: -53px; --land-x: 89px; --land-y: 121px; }
.result-confetti span:nth-child(8) { --burst-x: 91px; --burst-y: -88px; --land-x: 127px; --land-y: 143px; }
.result-confetti span:nth-child(9) { --burst-x: 119px; --burst-y: -55px; --land-x: 158px; --land-y: 111px; }
.result-confetti span:nth-child(10) { --burst-x: 145px; --burst-y: -76px; --land-x: 183px; --land-y: 132px; }
.result-screen.is-entering .result-confetti span { animation: confetti-accent 1.45s ease-out both; }
@keyframes confetti-accent {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.45); }
  10% { opacity: 1; }
  27% { opacity: 1; transform: translate(var(--burst-x), var(--burst-y)) rotate(95deg) scale(1.08); }
  64% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--land-x), var(--land-y)) rotate(280deg) scale(.83); }
}
@media (max-width: 650px) { .result-match-word .result-confetti { transform: scale(.68); } }

/* Short entrance motions make each step feel connected without slowing answers. */
@keyframes content-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes question-from-right { from { opacity: .55; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }
@keyframes question-from-left { from { opacity: .55; transform: translateX(-26px); } to { opacity: 1; transform: translateX(0); } }
.splash-screen.is-entering .splash-copy > .eyebrow { animation: content-rise .56s .03s both; }
.splash-screen.is-entering .splash-copy h1 { animation: content-rise .72s .12s both; }
.splash-screen.is-entering .splash-copy > p:not(.eyebrow, .splash-privacy) { animation: content-rise .65s .29s both; }
.splash-screen.is-entering .splash-button { animation: content-rise .62s .45s both; }
.splash-screen.is-entering .splash-privacy { animation: content-rise .55s .59s both; }
.splash-screen.is-entering .splash-art { animation: content-rise .68s .29s both; }
.profile-screen.is-entering .profile-card { animation: content-rise .56s both; }
.quiz-screen.is-entering .quiz-intro { animation: content-rise .48s both; }
.quiz-screen.is-entering .quiz-card { animation: question-from-right .52s .11s both; }
.quiz-screen .quiz-card.slide-next { animation: question-from-right .34s ease-out both; }
.quiz-screen .quiz-card.slide-back { animation: question-from-left .34s ease-out both; }
.result-screen.is-entering .result-heading { animation: content-rise .6s both; }
.result-screen.is-entering .chart-card { animation: content-rise .66s .13s both; }
.result-screen.is-entering .matches-card { animation: content-rise .66s .25s both; }
.result-screen.is-entering .other-area { animation: content-rise .62s .41s both; }
.result-screen.is-entering .result-footer { animation: content-rise .6s .49s both; }

@page { size: A4; margin: 0; }
@media print {
  :root { --sand: #e8dcc7; --sand-light: #eee2cf; }
  html, body { width: 100%; background: var(--sand) !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body::before, body::after, .page-grain, .site-header, .site-footer, .splash-screen, .profile-screen, .quiz-screen, .result-actions, .result-confetti, .result-save-status { display: none !important; }
  .radar-shape, .radar-dot { animation: none !important; transform: none !important; opacity: 1 !important; }
  .result-heading, .chart-card, .matches-card, .other-area, .result-footer { animation: none !important; opacity: 1 !important; transform: none !important; }
  .department-disc::before, .category-icon::before { animation: none !important; transform: none !important; }
  .result-screen { display: block !important; padding: 13mm !important; max-width: none; }
  *:focus { outline: none !important; }
  .result-heading { break-after: avoid; }.result-overview, .vibe-cards, .other-area { break-inside: avoid; page-break-inside: avoid; }
  .result-heading { margin-bottom: 13px; }.result-heading h1 { font-size: 42px; margin-bottom: 7px; }.result-heading > p:last-child { font-size: 10px; line-height: 1.45; max-width: none; margin-bottom: 0; }.eyebrow { margin-bottom: 5px; font-size: 8px; }
  .result-overview { grid-template-columns: 1fr .85fr; gap: 10px; }.chart-card, .matches-card { padding: 13px 16px 11px; border-radius: 17px; }.card-kicker { font-size: 8px; margin-bottom: 4px; }.chart-card h2, .matches-card h2 { font-size: 21px; }.radar-chart { height: 267px; margin-top: -7px; }.radar-label { font-size: 12px; }.chart-note { font-size: 8px; margin-top: -6px; }.top-matches { margin-top: 10px; }.top-match { padding: 11px 0; }.top-match h3 { font-size: 18px; }.top-match strong { font-size: 25px; }.top-match p { font-size: 12px; margin-top: 4px; }.explore-note { margin-top: 8px; font-size: 9px; }
  .vibes-section { margin-top: 16px; }.section-heading { margin-bottom: 9px; }.vibes-section h2 { font-size: 23px; }.vibe-cards { gap: 10px; }.vibe-card { padding: 14px 16px; border-radius: 17px; break-inside: avoid; }.vibe-kicker { font-size: 8px; margin-bottom: 4px; }.vibe-card h3 { font-size: 24px; margin-bottom: 6px; }.vibe-description { font-size: 10px; line-height: 1.45; margin-bottom: 0; }.vibe-meta { margin-top: 9px; padding-top: 8px; gap: 7px; }.vibe-meta span { font-size: 8px; margin-bottom: 2px; }.vibe-meta p { font-size: 9px; line-height: 1.35; }.vibe-card .try { font-size: 10px; margin-top: 4px; }
  .other-area { grid-template-columns: .85fr 1.15fr; gap: 15px; margin-top: 10px; padding: 11px 16px; border-radius: 17px; }.other-area-intro h2 { font-size: 21px; }.other-area-slogan { font-size: 12px; }.other-area-detail { gap: 5px; padding-left: 15px; }.other-area-detail span { font-size: 10px; }.other-area-detail p { font-size: 11px; }
  .result-footer { padding: 11px 0 0; }.footer-call { font-size: 19px; }.booth-summary { font-size: 9px; }
  .result-heading > p:last-child { font-size: 12px; }.eyebrow, .card-kicker, .vibe-kicker { font-size: 10px; }
  .chart-note, .explore-note, .vibe-meta span { font-size: 10px; }
  .vibe-description, .vibe-meta p, .vibe-card .try, .booth-summary { font-size: 11px; }
  .category-icon { width: 27px; height: 27px; }.category-icon svg { width: 18px; height: 18px; }.vibe-card .category-icon { width: 34px; height: 34px; }.vibe-card .category-icon svg { width: 23px; height: 23px; }.other-area .category-icon { width: 25px; height: 25px; }.other-area .category-icon svg { width: 17px; height: 17px; }
  .top-match .category-icon[data-category="PEOPLE"] svg, .vibe-card .category-icon[data-category="PEOPLE"] svg { animation: none !important; transform: none !important; opacity: 1 !important; }
  .result-overview { grid-template-columns: .9fr 1.1fr; }
  .matches-card::after { display: none; }
  .top-matches { gap: 7px; margin-top: 9px; }
  .top-match { padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: #f7efe1; break-inside: avoid; }
  .top-match-number { font-size: 8px; }
  .top-match-heading { gap: 5px 7px; margin: 4px 0 5px; }
  .top-match-heading h3 { font-size: 17px; }
  .top-match-tagline { font-size: 7px; letter-spacing: .02em; }
  .top-match .top-match-description { margin: 0 0 6px; font-family: var(--font-body); font-size: 9px; line-height: 1.35; }
  .top-match-meta { gap: 5px; padding-top: 5px; }
  .top-match-meta span { font-size: 7px; }
  .top-match-meta p { margin: 0; font-family: var(--font-body); font-size: 8px; line-height: 1.25; }
  .top-match .category-icon { width: 25px; height: 25px; }.top-match .category-icon svg { width: 17px; height: 17px; }
  .explore-note { margin-top: 7px; font-size: 10px; }
  .chart-card, .matches-card, .other-area { box-shadow: none !important; }
}
