:root {
  --paper: #fbf9f2;
  --surface: #fffcfa;
  --ink: #062d3c;
  --soft: #015e77;
  --line: #cddacd;
  --brown: #044b61;
  --copper: #025870;
  --night: #041f2a;
  --petal: #b9cdc1;
}
main { max-width: none; }
.topbar { background: var(--night); color: #f7f6ed; border-bottom: 1px solid #ffffff25; }
.header-inner { max-width: 1600px; min-height: 4.7rem; }
.wordmark img { filter: brightness(0) invert(93%) sepia(8%) saturate(400%); width: 4.2rem; }
.nav-separator { background: #b9cdc14d; }
.studio { color: #dee5d9; }
.header-inner nav { gap: clamp(.6rem,2.25vw,2.3rem); }
.header-inner nav .motion-setting { display: inline-flex; gap: .55rem; align-items: center; border: 1px solid #afc7bc54; padding: .45rem .8rem; border-radius: 2rem; font-size: .84rem; line-height: 1.1; }
.motion-bars { display: inline-flex; gap: 2px; height: 14px; align-items: center; }
.motion-bars i { width: 2px; height: 45%; background: currentColor; border-radius: 2px; }
.motion-bars i:nth-child(2) { height: 100%; }
.motion-bars i:nth-child(3) { height: 68%; }
.motion-setting[aria-pressed=false] .motion-bars i { height: 2px; }
.studio-cover { overflow: visible; background: var(--night); color: #fbf9f1; isolation: auto; }
.studio-cover::after { content: none; }
.cover-stage { isolation: isolate; position: relative; overflow: hidden; background: #031b25; }
.v2-portrait { position: absolute; inset: 0; z-index: -3; }
.v2-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; }
.cover-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg,#021b2471 0%,transparent 59%); pointer-events: none; }
.v2-intro { max-width: 1600px; margin: auto; min-height: clamp(35rem,44vw,48rem); padding: clamp(3rem,4vw,5.6rem) clamp(1.3rem,7.3vw,9rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.v2-intro .studio-signature { color: #b7ccc0; font-size: clamp(.82rem,1vw,1.1rem); margin-bottom: 1.6rem; }
.v2-intro h1 { color: #faf8ef; font: 500 clamp(5.8rem,8vw,9.6rem)/.79 var(--serif); letter-spacing: -.07em; margin-left: -.055em; outline: none; }
.v2-intro h1 em { font-weight: 500; color: #a7c2b8; }
.cover-deck { font-size: clamp(1rem,1.35vw,1.22rem); line-height: 1.52; max-width: 31ch; color: #dae2d6; margin-top: 1.5rem; }
.v2-intro .cover-button { display: inline-flex; align-items: center; justify-content: center; gap: .85rem; width: auto; min-width: 12.8rem; min-height: 3.35rem; padding: .9rem 1.8rem; background: #bdd0c4; border: 1px solid #bdd0c4; border-radius: 3rem; color: #052633; margin-top: 1.4rem; box-shadow: 0 .3rem 1.75rem #041f2a80; }
.v2-intro .cover-button:hover { background: #e2e8dd; border-color: #e2e8dd; }
.v2-intro .cover-meta { color: #b5cbbf; gap: .5rem; margin-top: .92rem; font-size: .87rem; }
.cover-meta i { width: 3px; height: 3px; background: currentColor; margin: 0 .15rem; border-radius: 50%; }
.cover-focus { position: absolute; width: clamp(5rem,8vw,9.5rem); left: 73.1%; top: 46%; transform: translate(-50%,-50%); pointer-events: none; stroke: #d1dba5; stroke-width: 1.4; opacity: .72; }
.cover-preview { display: grid; grid-template-columns: 1fr repeat(3,1.35fr); max-width: 1600px; margin: auto; padding: 1.35rem clamp(1.3rem,7.3vw,9rem); align-items: center; gap: clamp(.75rem,2.8vw,2.75rem); }
.cover-preview h2 { font: italic 500 clamp(1.8rem,2.3vw,2.5rem)/1 var(--serif); letter-spacing: -.045em; color: #bfd1c5; }
.cover-preview button { border: 0; border-left: 1px solid #015e77; background: none; color: #f9f7ee; display: flex; align-items: center; gap: .8rem; text-align: left; padding: .1rem 0 .1rem clamp(.7rem,1.8vw,1.55rem); min-width: 0; font-weight: 500; font-size: .97rem; }
.cover-preview button:hover span { text-decoration: underline; text-underline-offset: .25em; }
.cover-preview img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; flex: none; }
.cover-preview i { color: #b6cbc0; font-size: 1.35rem; font-style: normal; margin-left: auto; }
.cover-fine { background: #eceee4; color: #035067; font-size: .87rem; line-height: 1.55; padding: .95rem max(5vw,calc((100vw - 1400px)/2)); }
.footer { background: #fbf9f2; border-color: var(--line); }
.footer-inner { min-height: 3.4rem; color: var(--soft); }
.quiz-layout, #results { max-width: 1510px; margin: auto; }
.quiz-layout { gap: clamp(1.5rem,4.5vw,4.7rem); }
.editorial { border-radius: 1.35rem; }
.editorial-shade { background: linear-gradient(0deg,#04212ded 0%,#04212c80 31%,transparent 78%); }
.editorial-lines, .reveal-lines, .result-lines, .tour-lines { position: absolute; pointer-events: none; overflow: hidden; color: white; }
.editorial-lines { width: 77%; height: 46%; bottom: 12%; right: -26%; opacity: .38; mix-blend-mode: screen; }
.studio-traces { width: 100%; height: 100%; display: block; overflow: visible; }
.studio-traces path { stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.question-view { position: relative; isolation: isolate; }
.question-motif { position: absolute; right: 0; top: -.9rem; width: 32%; height: 7rem; pointer-events: none; z-index: -1; opacity: .2; color: var(--motion-ink); overflow: hidden; mask-image: linear-gradient(110deg,transparent,black); }
.progress-text { font-size: .89rem; }
.progress-text .section-name { padding: .27rem .78rem; border-radius: 1rem; background: var(--motion-tint); color: var(--motion-ink); font-weight: 600; }
.segments { gap: .28rem; }
.segments span { border-radius: 3px; height: 4px; background: #d2ddd0; }
.segments .filled { background: var(--motion-ink); }
.quiz h2 { letter-spacing: -.032em; line-height:1.04; }
.quiz .hint { color: var(--soft); }
.answer.answer-frame, .age-option { border-color: #c5d5c8; background: #fffdfc; box-shadow: 0 2px 7px #062e3e04; border-radius: .7rem; }
.answer.answer-frame:hover, .answer.answer-frame:focus-visible, .answer[aria-pressed=true], .age-option:hover { border-color: var(--motion-ink); box-shadow: 0 3px 16px #062f3f12; }
.answer[aria-pressed=true] .answer-indicator { background: var(--motion-ink); }
.age-option[aria-pressed=true] { background: var(--motion-tint); border-color: var(--motion-ink); }
.photo-copy { z-index: 1; }
.studio-play { z-index: 2; }
.face-map { box-shadow: 0 .4rem 2.2rem #073b4e1c; }
.face-pin > span { outline: 1px solid #e7ebe0; outline-offset: 3px; }
.example-photo:hover { transform: translateY(-2px); }
#answer-reveal { width: min(62rem,calc(100vw - 2.75rem)); border-radius: 1.2rem; border-color: #ffffff65; box-shadow: 0 2rem 8rem #041e2975; }
#answer-reveal::backdrop, #tour::backdrop { background: #04202b9e; backdrop-filter: blur(8px); }
.reveal-layout { grid-template-columns: 1fr 1fr; min-height: min(30.5rem,74dvh); }
.reveal-media { background: var(--motion-tint); }
.reveal-media::after { content:""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg,#04202c4d,transparent 54%); }
.reveal-lines { inset: auto -14% -2% 4%; height: 49%; z-index: 1; opacity: .76; filter: drop-shadow(0 1px 2px #06334455); }
.reveal-media.has-film .reveal-lines { opacity: .3; bottom: -16%; }
.media-control { z-index: 2; }
.reveal-copy { position: relative; background: linear-gradient(140deg,#fffdfb 39%,var(--motion-tint) 145%); padding: clamp(1.3rem,3.6vw,3.6rem); }
.reveal-clock { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--motion-tint); }
.reveal-clock span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--motion-ink); transition: transform .12s linear; }
.reveal-copy .eyebrow { color: var(--motion-ink); }
.reveal-copy h2 { font-size: clamp(2.65rem,4.55vw,4.75rem); }
.reveal-graphic { border: 1px solid #ffffff9c; border-radius: .6rem; background: linear-gradient(110deg,var(--motion-tint),#fdfcf7); }
#confirm-answer, .guide-actions .primary { background: var(--motion-ink); border-color: var(--motion-ink); }
.reveal-actions { width: 100%; }
.reveal-close { border-radius: 50%; background: #fdfcf7e8; color: #073e52; }
.result-intro { position: relative; isolation: isolate; background: radial-gradient(at 35% 0,#044a5f,#05232f 80%); border-radius: 1.2rem; }
.result-intro > .result-lines { padding: 0; bottom: -30%; left: 25%; width: 48%; height: 115%; z-index: -1; color: #9abab1; opacity: .45; }
.result-intro .result-copy { align-self: center; }
.result-art { mask-image: linear-gradient(90deg,transparent,black 26%); }
.routine-view[aria-pressed=true] { background: linear-gradient(110deg,#062f3f,#054a5f); border-color: #07374a; }
.routine-view { box-shadow: 0 .4rem 1.2rem #06304009; }
.product-art { background: radial-gradient(ellipse at 50% 41%,#fdfdfa,#e0e7db); }
.product-link, .primary { background-color: var(--brown); }
#tour { padding: 0; border: 1px solid #d6e0d4; border-radius: 1.1rem; width: min(31rem,calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); background: var(--surface); color: var(--ink); }
.tour-media { height: clamp(8rem,27dvh,15rem); position: relative; overflow: hidden; background: #dde4d9; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.tour-lines { bottom:-15%; right:0; width: 65%; height: 90%; opacity: .7; }
.tour-copy { padding: 1.5rem; }
.tour-copy h2 { font-size: 2.9rem; line-height: 1; letter-spacing: -.055em; }
.tour-copy p { margin-top: .7rem; line-height: 1.5; }
.tour-dots { display: flex; margin: .6rem 0; }
.tour-dots button { position: relative; width: 2.4rem; height: 2.65rem; background: transparent; border: 0; }
.tour-dots button::before { content:""; position:absolute; height:4px; left:3px; right:3px; top:50%; background:#adc6bb; border-radius:5px; }
.tour-dots button[aria-pressed=true]::before { background:var(--motion-ink); }
/* Draw the answer-specific lines as the new photograph arrives. */
html[data-motion=on] .studio-traces path {
  animation: draw-contour 1.25s cubic-bezier(.18,.67,.25,1) backwards;
  animation-delay: calc(var(--i) * 45ms);
}
html[data-motion=on] .reveal-lines .studio-traces { animation: move-contours 3.2s ease-out both; }
html[data-motion=on] .question-view { animation: question-arrives .3s cubic-bezier(.2,.7,.2,1) both; }
html[data-motion=on] .question-view .answer-grid > *,
html[data-motion=on] .question-view .example-row,
html[data-motion=on] .product-card { animation: option-arrives .26s cubic-bezier(.2,.7,.2,1) backwards; }
html[data-motion=on] :is(.answer-grid,.photo-guide,.match-grid) > :nth-child(2) { animation-delay: 16ms; }
html[data-motion=on] :is(.answer-grid,.photo-guide,.match-grid) > :nth-child(3) { animation-delay: 28ms; }
html[data-motion=on] .answer-grid > :nth-child(n+4) { animation-delay: 40ms; }
html[data-motion=on] .v2-portrait img { animation: portrait-focus 2s ease-out both; }
html[data-motion=on] .v2-intro > * { animation: cover-type .72s ease-out backwards; }
html[data-motion=on] .v2-intro h1 { animation-delay: 90ms; }
html[data-motion=on] .v2-intro .cover-deck { animation-delay: 150ms; }
html[data-motion=on] .v2-intro .cover-button { animation-delay: 220ms; }
html[data-motion=on] .focus-rings { transform-origin: center; animation: focus-lock 2.4s ease-out both; }
html[data-motion=on] .focus-pulse { transform-origin: center; animation: focus-wave 2s ease-out 2; }
html[data-motion=on] .face-pin > span { animation: face-locate 1.4s ease-out 2; }
html[data-motion=on] .face-pin:nth-of-type(2) > span { animation-delay: .15s; }
html[data-motion=on] .face-pin:nth-of-type(3) > span { animation-delay: .3s; }
html[data-motion=on] .example-photo, html[data-motion=on] .cover-button { transition: background .2s, transform .2s, border-color .2s; }
html[data-motion=on] .example-photo[aria-pressed=true] img { animation: example-focus .35s ease-out; }
html[data-motion=on] #answer-reveal[open] { animation: reveal-in .42s cubic-bezier(.16,.75,.23,1) both; }
html[data-motion=on] .reveal-copy > h2 { animation: cover-type .45s .12s ease-out backwards; }
html[data-motion=on] .preview-pick { animation: option-arrives .5s ease-out backwards; }
html[data-motion=on] .preview-pick:nth-child(2) { animation-delay: 160ms; }
html[data-motion=on] .preview-pick:nth-child(3) { animation-delay: 290ms; }
html[data-motion=on] .result-intro .result-art { animation: portrait-focus .55s ease-out both; }
html[data-motion=on] #results.switching-view :is(.result-art,.studio-traces path) { animation:none; }
html[data-motion=on] #results.switching-view .product-card { animation: option-arrives .24s ease-out backwards; }
@keyframes draw-contour { from { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; } to { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 1; } }
@keyframes move-contours { from { transform: scale(.83) translateY(7%); } to { transform: scale(1.06); } }
@keyframes question-arrives { from { opacity: .25; transform: translateY(5px); } }
@keyframes option-arrives { from { opacity: .12; transform: translateY(5px); } }
@keyframes cover-type { from { opacity: 0; transform: translateY(12px); } }
@keyframes portrait-focus { from { transform: scale(1.055); } to { transform: none; } }
@keyframes focus-lock { from { opacity:0;transform:scale(1.45) rotate(-22deg); } to { opacity:1;transform:scale(1); } }
@keyframes focus-wave { 0% { opacity:0;transform:scale(.8); } 30% { opacity:.9; } 100% { opacity:0;transform:scale(1.65); } }
@keyframes face-locate { 0% { box-shadow: 0 0 0 0 #fcfaf4c9; } 100% { box-shadow: 0 0 0 11px transparent; } }
@keyframes example-focus { from { transform:scale(1.09); } }
@keyframes reveal-in { from { opacity:0;transform:translateY(15px) scale(.96); } }
@supports (view-transition-name: quiz-slide) {
  html[data-motion=on] main { view-transition-name: quiz-slide; }
  ::view-transition { pointer-events: none; }
  ::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  ::view-transition-group(quiz-slide) { animation-duration: .32s; }
  ::view-transition-old(quiz-slide) { animation: slide-out .22s cubic-bezier(.4,.03,.8,.35) both; }
  ::view-transition-new(quiz-slide) { animation: slide-in .32s cubic-bezier(.2,.8,.22,1) both; }
  html[data-direction=back]::view-transition-old(quiz-slide) { animation-name: back-out; }
  html[data-direction=back]::view-transition-new(quiz-slide) { animation-name: back-in; }
  html[data-direction=results]::view-transition-new(quiz-slide) { animation-name: results-bloom; animation-duration:.36s; }
}
@keyframes slide-out { to { transform:scale(1.032); opacity:0; } }
@keyframes slide-in { from { transform:scale(.975); opacity:0; } to { transform:scale(1); opacity:1; } }
@keyframes back-out { to { transform:scale(.968); opacity:0; } }
@keyframes back-in { from { transform:scale(1.025); opacity:.1; } }
@keyframes results-bloom { from { transform: scale(1.025); opacity:0; clip-path: inset(5% 1% 0 round .8rem); } to { transform:none; opacity:1; clip-path: inset(0); } }
html[data-motion=off] *, html[data-motion=off] *::before, html[data-motion=off] *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
html[data-motion=off] .reveal-clock, html[data-motion=off] .focus-pulse { visibility:hidden; }
@media (min-width:701px) and (max-width:970px) {
  .cover-preview { gap:.65rem; padding:1rem 1.4rem; }
  .cover-preview img { width:2.4rem; height:2.4rem; }
  .v2-intro { padding-left:5%; }
}
@media (max-width:700px) {
  .header-inner { min-height:3.8rem; gap:.65rem; padding:0 1rem; }
  .wordmark img { width:3.4rem; }
  .studio { font-size:1.17rem; }
  .header-inner nav { gap:.65rem; }
  .header-inner nav .motion-setting { padding:.4rem .55rem; font-size:.77rem; }
  .shop { font-size:0; }
  .shop .icon { width:1.3rem; height:1.3rem; }
  .cover-stage { min-height:35.5rem; }
  .v2-portrait { inset:0 0 auto auto; width:100%; height:81%; }
  .v2-portrait img { object-position: 50% 30%; }
  .cover-stage::before { background:linear-gradient(0deg,#031b25 0%,#031b25f5 17%,#031b2570 49%,#031b2505 76%),linear-gradient(85deg,#031b25a8 0%,transparent 68%); }
  .v2-intro { min-height:clamp(35.5rem,79svh,44rem); padding:12rem 1.4rem 1.75rem; justify-content:flex-end; }
  .v2-intro .studio-signature { margin-bottom: .94rem; font-size:.78rem; }
  .v2-intro h1 { font-size: clamp(4.9rem,15vw,6.1rem); }
  .v2-intro h1 br { display:none; }
  .v2-intro h1 em::before { content:" "; }
  .cover-deck { max-width:28ch; margin-top:1rem; }
  .v2-intro .cover-button { margin-top:1.05rem; min-width:12rem; min-height:3rem; }
  .v2-intro .cover-meta { margin-top:.7rem; }
  .cover-focus { top:32%; left:66%; width:4.6rem; }
  .cover-preview { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.6rem; padding: 1.15rem 1.25rem; border-top:1px solid #064055; }
  .cover-preview h2 { grid-column:1/-1; font-size:1.7rem; }
  .cover-preview button { border:0; border-top:1px solid #00617a; padding:.55rem 0 0; align-items:flex-start; flex-direction:column; gap:.4rem; font-size:.86rem; }
  .cover-preview img { border-radius:.4rem; width:100%; height:2.65rem; }
  .cover-preview i { display:none; }
  .cover-fine { padding:.85rem 1.25rem; font-size:.83rem; }
  .quiz-layout { padding-inline:1rem; }
  .question-motif { top:0; height:4.5rem; }
  .result-intro > .result-lines { left:13%; }
  .result-intro h1 { font-size:clamp(2.2rem,9vw,3.7rem); }
}
@media (max-width:620px) {
  #answer-reveal { width:min(28rem,calc(100vw - 1rem)); max-height:calc(100dvh - 1rem); }
  .reveal-layout { grid-template-columns:1fr; min-height:0; }
  .reveal-media { height:clamp(7rem,24dvh,13.5rem); }
  .reveal-copy { padding:1.15rem 1.3rem .9rem; }
  .reveal-copy h2 { font-size:clamp(2.3rem,8.5vw,3rem); }
  .reveal-lines { inset:auto -8% -9% auto; width:73%; height:90%; }
  .reveal-close { top:.4rem; right:.5rem; }
}
@media (max-width:370px) {
  .v2-intro h1 { font-size:4.3rem; }
  .header-inner { gap:.45rem; }
  .studio { font-size:1rem; }
}
@media (max-width:700px) {
  .v2-portrait { mask-image: linear-gradient(to bottom, black 69%, transparent 100%); }
  .header-inner nav .shop .bag-icon { display: inline-flex; }
  .header-inner nav .shop { min-width: 1.4rem; min-height: 2.65rem; justify-content: center; }
}
