/* To Be — ethereal. A grainy night sky of glowing auras that shift colour with each
   exercise; serif-italic mantras; glass controls. Dark first, misty dawn in light mode.
   Layout: one calm centre column for exercises; card + reading side by side for results. */
@property --a1 { syntax: '<color>'; inherits: true; initial-value: #ff7a45; }
@property --a2 { syntax: '<color>'; inherits: true; initial-value: #ff4fa3; }
@property --a3 { syntax: '<color>'; inherits: true; initial-value: #5b6cff; }

:root {
  --bg: #08070f; --fg: #f5f0ea; --mute: #a39db3; --line: #2c2939; --glass: #ffffff0f; --glass-hi: #ffffff1c; --on-glow: #170b12; --orb-alpha: .55;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --r: 18px; --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --bg: #f4efe9; --fg: #1d1626; --mute: #6c6378; --line: #ddd3d6; --glass: #ffffff8c; --glass-hi: #ffffffcc; --on-glow: #1d1626; --orb-alpha: .42; color-scheme: light; } }
:root[data-theme="light"] { --bg: #f4efe9; --fg: #1d1626; --mute: #6c6378; --line: #ddd3d6; --glass: #ffffff8c; --glass-hi: #ffffffcc; --on-glow: #1d1626; --orb-alpha: .42; color-scheme: light; }

body { --a1: #ff7a45; --a2: #ff4fa3; --a3: #5b6cff; transition: --a1 1.6s var(--ease), --a2 1.6s var(--ease), --a3 1.6s var(--ease); }
body[data-mood="joy"] { --a1: #ff8a3d; --a2: #ff5fa2; --a3: #ffd36b; }
body[data-mood="flow"] { --a1: #3d5bff; --a2: #9b4dff; --a3: #22d3c5; }
body[data-mood="drives"] { --a1: #ff3fa4; --a2: #ff8a3d; --a3: #8b3dff; }
body[data-mood="strengths"] { --a1: #ff4f6d; --a2: #ffb13d; --a3: #4d7bff; }
body[data-mood="arc"] { --a1: #ff6b3d; --a2: #5be3ff; --a3: #a35bff; }
body[data-mood="tobe"] { --a1: #ff5fa2; --a2: #5bc8ff; --a3: #ffd36b; }

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--sans); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 64px; overflow-x: hidden; }

/* the sky */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; view-transition-name: sky; }
.orb { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: var(--orb-alpha); filter: blur(60px); will-change: transform; }
.orb.o1 { background: radial-gradient(circle, var(--a1) 0%, transparent 62%); left: -25vmax; top: -20vmax; animation: drift1 26s var(--ease) infinite alternate; }
.orb.o2 { background: radial-gradient(circle, var(--a2) 0%, transparent 62%); right: -30vmax; top: 10vh; animation: drift2 32s var(--ease) infinite alternate; }
.orb.o3 { background: radial-gradient(circle, var(--a3) 0%, transparent 62%); left: 10vw; bottom: -40vmax; animation: drift3 38s var(--ease) infinite alternate; }
.grain { position: absolute; inset: -50%; opacity: .16; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(4) infinite; }
@keyframes drift1 { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vw, 18vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(14vw, -26vh) scale(1.2); } }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

#app { position: relative; z-index: 1; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
h1 { font: italic 400 clamp(2.7rem, 8vw, 4.6rem)/1 var(--serif); letter-spacing: -0.01em; }
h2 { font: italic 400 clamp(2.1rem, 6vw, 3rem)/1.05 var(--serif); }
h3 { font: italic 400 1.9rem/1.1 var(--serif); }
h4 { font: 700 1rem/1.3 var(--sans); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 6px; }

.top { display: flex; align-items: center; gap: 12px; max-width: 1080px; margin: 0 auto; padding-block: 20px; }
.brand { font: italic 1.6rem/1 var(--serif); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.brand::before { content: "✦"; font: 0.9rem/1 var(--sans); color: var(--a2); text-shadow: 0 0 12px var(--a2); animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.7) rotate(45deg); } }
.tag { font: 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; }
.top .link { margin-left: auto; }

.screen { max-width: 1080px; margin: 0 auto; padding-block: 28px; display: flex; flex-direction: column; gap: 22px; }
.narrow { max-width: 640px; }
.eyebrow { font: 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: "✦"; font-family: var(--sans); color: var(--a1); }
.lede { font-size: 1.15rem; max-width: 56ch; }
.note { font-size: .92rem; color: var(--mute); max-width: 60ch; }
.anno { font-family: var(--mono); font-size: .78rem; border-left: 2px solid var(--a3); padding-left: 10px; }
.error { background: var(--glass); border: 1px solid var(--a2); border-radius: 14px; padding: 10px 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.hero { padding-block: 9vh 2vh; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(2.9rem, 8.5vw, 5.4rem); }
.mantra { font: italic 1.5rem/1.3 var(--serif); color: var(--mute); }

.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
input, textarea { font: 400 1rem/1.5 var(--sans); color: var(--fg); background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; width: 100%; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .3s, box-shadow .3s; }
input:focus, textarea:focus { outline: none; border-color: var(--a2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a2) 22%, transparent), 0 0 30px color-mix(in srgb, var(--a2) 25%, transparent); }
.field-head { display: flex; justify-content: space-between; align-items: end; gap: 10px 14px; flex-wrap: wrap; }
.mic { background: var(--glass); color: var(--fg); border: 1px solid var(--line); padding: 8px 14px 8px 12px; border-radius: 99px; font: 600 .85rem/1 var(--sans); display: inline-flex; align-items: center; gap: 9px; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color .3s, box-shadow .4s, transform .35s var(--ease); }
.mic:hover { border-color: var(--a2); transform: translateY(-1px); }
.mic-dot { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--a2) 60%, var(--a3)); box-shadow: 0 0 8px var(--a2); }
.mic[aria-pressed="true"] { border-color: var(--a2); box-shadow: 0 0 26px color-mix(in srgb, var(--a2) 45%, transparent); }
.mic[aria-pressed="true"] .mic-dot { animation: breathe 1.3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.7); box-shadow: 0 0 18px 5px var(--a2); } }
.listening textarea { border-color: var(--a2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a2) 18%, transparent), 0 0 40px color-mix(in srgb, var(--a2) 28%, transparent); }
textarea { resize: vertical; font: 400 1.05rem/1.55 var(--sans); }

button, .button, .ghost-btn { font: 700 1rem/1 var(--sans); cursor: pointer; border-radius: 99px; padding: 15px 24px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-position .8s var(--ease); }
button:not(.ghost):not(.link):not(.icon):not(.chip):not(.mic):not(.jstop):not(.inline-stage):not([data-likert]), .button { color: var(--on-glow); background: linear-gradient(110deg, var(--a1), var(--a2), var(--a3), var(--a1)); background-size: 300% 100%; box-shadow: 0 8px 30px color-mix(in srgb, var(--a2) 40%, transparent); }
button:not(.ghost):not(.link):not(.icon):not(.chip):not(.mic):not(.jstop):not(.inline-stage):not([data-likert]):hover, .button:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 12px 40px color-mix(in srgb, var(--a2) 55%, transparent); }
button.ghost, .ghost-btn { background: var(--glass); color: var(--fg); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
button.ghost:hover, .ghost-btn:hover { border-color: var(--a2); transform: translateY(-2px); }
button.wide { width: 100%; }
button:disabled { opacity: .55; }
.link { background: none; border: 0; padding: 0; font: 400 .95rem var(--sans); color: var(--mute); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.icon { background: var(--glass); color: var(--fg); border: 1px solid var(--line); padding: 9px 11px; border-radius: 12px; font: 400 .9rem/1 var(--sans); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* overview */
.intro-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: end; }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.meter i { height: 4px; background: var(--line); border-radius: 2px; }
.meter i.on { background: linear-gradient(90deg, var(--a1), var(--a2)); box-shadow: 0 0 12px var(--a2); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tests { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.test-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform .4s var(--ease), border-color .4s; animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 200ms); }
.test-row:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--a2) 60%, var(--line)); }
.num { font: italic 1.3rem/1 var(--serif); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.is-done .num { background: radial-gradient(circle at 35% 35%, #fff, var(--a2) 55%, var(--a3)); color: var(--on-glow); border: 0; box-shadow: 0 0 18px var(--a2); }
.t-body h3 { font-size: 1.6rem; }
.t-body p { color: var(--mute); font-size: .95rem; }
.meta { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.t-act { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.t-act .ghost-btn { padding: 10px 16px; font-size: .9rem; }
.panel { border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.tobe-mini { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tobe-mini li { font: italic 1.35rem/1.2 var(--serif); display: flex; gap: 10px; animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 400ms); }
.tobe-mini li::before { content: "✦"; font: .75rem/1.9 var(--sans); color: var(--a2); }

/* exercises */
.testbar { display: flex; justify-content: space-between; align-items: center; font: 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.testbar .link { text-decoration: none; font: inherit; }
.progress { height: 3px; background: var(--line); border-radius: 2px; position: relative; }
.progress i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--a3), var(--a1), var(--a2)); border-radius: 2px; transition: width .9s var(--ease); }
.progress i::after { content: ""; position: absolute; right: -5px; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px var(--a2); }
.step { display: flex; flex-direction: column; gap: 26px; }
.group { display: flex; flex-direction: column; gap: 10px; }
.q { font: 600 1.1rem/1.4 var(--sans); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--glass); color: var(--fg); border: 1px solid var(--line); font: 500 .95rem/1 var(--sans); padding: 11px 16px; border-radius: 99px; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .4s var(--ease), background .4s, color .4s, box-shadow .4s, border-color .4s; }
.chip:hover { border-color: var(--a2); }
.chip[aria-pressed="true"] { background: linear-gradient(120deg, var(--a1), var(--a2)); color: var(--on-glow); border-color: transparent; box-shadow: 0 0 22px color-mix(in srgb, var(--a2) 55%, transparent); animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.12); } }
.slider { display: flex; flex-direction: column; gap: 6px; }
.slider label { font: 600 1.05rem/1.4 var(--sans); }
.slider input { padding: 0; border: 0; background: none; backdrop-filter: none; -webkit-appearance: none; appearance: none; height: 28px; }
.slider input::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--a3), var(--a1), var(--a2)); }
.slider input::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--a3), var(--a1), var(--a2)); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 4px var(--a2); cursor: grab; }
.slider input::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 4px var(--a2); }
.slider input:focus { box-shadow: none; }
.ends { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--mute); }
.items { display: flex; flex-direction: column; gap: 30px; }
.item { display: flex; flex-direction: column; gap: 12px; animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 150ms); }
.item p { font: 500 1.15rem/1.45 var(--sans); }
.likert { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; align-items: start; }
.likert button { background: none; border: 0; color: var(--mute); font: 500 .76rem/1.2 var(--sans); padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.likert button::before { content: ""; width: var(--d); height: var(--d); border-radius: 50%; border: 1px solid var(--line); background: var(--glass); transition: transform .45s var(--ease), box-shadow .45s, background .45s; }
.likert button:hover::before { border-color: var(--a2); transform: scale(1.1); }
.likert button[aria-pressed="true"] { color: var(--fg); font-weight: 700; }
.likert button[aria-pressed="true"]::before { background: radial-gradient(circle at 35% 35%, #fff, var(--a2) 55%, var(--a3)); border-color: transparent; box-shadow: 0 0 22px 2px var(--a2); transform: scale(1.12); }
.nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; }

/* results */
.result-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: start; }
.card-wrap { margin: 0; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; align-items: start; }
canvas.card { width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 30px; display: block; background: var(--glass); box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--a2) 55%, transparent); animation: cardIn 1.2s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.96) rotate(-1.5deg); filter: blur(14px); } }
.result-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.kv span { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.kv b { font: italic 400 1.35rem/1.2 var(--serif); }
blockquote { margin: 0; font: italic 1.6rem/1.25 var(--serif); padding-left: 18px; border-left: 2px solid var(--a2); }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: center; font-size: .92rem; color: var(--mute); }
.bar i { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--a3), var(--a2)); border-radius: 2px; transform-origin: left; animation: grow 1.4s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 300ms); }
.bar.on { color: var(--fg); font-weight: 700; }
.bar.on b { box-shadow: 0 0 12px var(--a2); }
@keyframes grow { from { transform: scaleX(0); } }
.pair { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.pair h3 { font-size: 1.7rem; }
.pair small { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-left: 8px; font-style: normal; }
.pair p strong { font-weight: 700; color: var(--fg); }
.pair p { color: color-mix(in srgb, var(--fg) 85%, var(--mute)); }
details summary { cursor: pointer; color: var(--mute); }
.full { columns: 2; font: italic 1.15rem/1.5 var(--serif); margin-top: 10px; }
.added { position: relative; overflow: hidden; }
.added ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.added li { font: italic 1.55rem/1.2 var(--serif); display: flex; gap: 10px; animation: arrive 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 260ms + 700ms); }
.added li::before { content: "✦"; font: .8rem/2.1 var(--sans); color: var(--a2); text-shadow: 0 0 10px var(--a2); }
@keyframes arrive { from { opacity: 0; filter: blur(10px); transform: translateX(-14px); letter-spacing: .08em; } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.thumb { text-decoration: none; display: flex; flex-direction: column; gap: 10px; font: italic 1.25rem/1.1 var(--serif); transition: transform .5s var(--ease); }
.thumb:hover { transform: translateY(-6px) rotate(-1deg); }
.thumb canvas.card { border-radius: 20px; animation-delay: calc(var(--i, 0) * 110ms); }

/* story arc: the path (intro) and the journey (result) */
.path { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 20px; }
.path::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: linear-gradient(180deg, var(--a1), var(--a2), var(--a3)); opacity: .55; }
.path li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; position: relative; animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 600ms); }
.pdot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: italic 1rem/1 var(--serif); background: var(--bg); border: 1px solid var(--a2); box-shadow: 0 0 14px color-mix(in srgb, var(--a2) 40%, transparent); }
.path h3 { font-size: 1.55rem; }
.pm { font: italic 1.1rem/1.35 var(--serif); color: color-mix(in srgb, var(--fg) 80%, var(--mute)); margin-top: 4px; }
.journey { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; position: relative; margin-block: 6px 2px; }
.journey::before { content: ""; position: absolute; left: 4%; right: 4%; top: 18px; height: 2px; background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3)); opacity: .5; }
.jname { display: none; }
.jstop { background: none; border: 0; padding: 0; color: var(--mute); display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; font: 500 .72rem/1.2 var(--sans); text-align: center; position: relative; }
.jdot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: italic 1.05rem/1 var(--serif); background: var(--bg); border: 1px solid var(--line); color: var(--mute); transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; }
.jstop.past .jdot { background: color-mix(in srgb, var(--a2) 22%, var(--bg)); color: var(--fg); border-color: color-mix(in srgb, var(--a2) 50%, var(--line)); }
.jstop.now .jdot { background: radial-gradient(circle at 35% 35%, #fff, var(--a2) 55%, var(--a3)); color: var(--on-glow); border: 0; box-shadow: 0 0 26px var(--a2); }
.jstop:hover .jdot { transform: scale(1.12); }
.jstop[aria-pressed="true"] { color: var(--fg); font-weight: 700; }
.jstop[aria-pressed="true"]:not(.now) .jdot { border-color: var(--a2); box-shadow: 0 0 16px color-mix(in srgb, var(--a2) 50%, transparent); transform: scale(1.12); }
.stage-panel h3 { font-size: 2rem; }
.stage-mantra { font: italic 1.5rem/1.25 var(--serif); padding-left: 16px; border-left: 2px solid var(--a2); }
.situate { font-size: 1.1rem; max-width: 56ch; }
.inline-stage { background: none; border: 0; padding: 0; font: italic 1.25em/1 var(--serif); color: var(--fg); text-decoration: underline; text-decoration-color: var(--a2); text-underline-offset: 4px; cursor: pointer; }
.inline-stage:hover { text-decoration-thickness: 2px; }
.insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.insight { padding: 18px; gap: 10px; animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 300ms); }
.insight ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: .95rem; }
.insight li::marker { color: var(--a2); }
/* journey map */
.jmap { position: relative; width: 100%; max-width: 620px; margin-inline: auto; }
.jmap svg { width: 100%; height: auto; display: block; overflow: visible; }
.jtrack { fill: none; stroke: url(#jgrad); stroke-width: 2.5; opacity: .55; }
.jwalk { fill: none; stroke: url(#jgrad); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--a2)); }
.jhorizon { stroke: var(--mute); stroke-width: 1; stroke-dasharray: 3 6; opacity: .6; }
.jworld { font: 10px var(--mono); letter-spacing: .18em; fill: var(--mute); }
.jnode { cursor: pointer; outline: none; }
.jdisc { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.jnode text { font: italic 15px var(--serif); fill: var(--mute); pointer-events: none; }
.jnode.past .jdisc { fill: color-mix(in srgb, var(--a2) 28%, var(--bg)); stroke: color-mix(in srgb, var(--a2) 60%, var(--line)); }
.jnode.past text { fill: var(--fg); }
.jnode.now .jdisc { fill: var(--a2); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 0 10px var(--a2)); }
.jnode.now text { fill: var(--on-glow); font-style: normal; font-size: 14px; }
.jnode:hover .jdisc, .jnode:focus-visible .jdisc { stroke: var(--a2); stroke-width: 2.5; }
.jring { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 3 4; animation: spin 14s linear infinite; transform-box: fill-box; transform-origin: center; }
.jpulse { fill: var(--a2); opacity: .5; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(2.4); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.jhere { font: 11px var(--mono); letter-spacing: .16em; fill: var(--fg); font-weight: 600; }
.jcenter { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.jcenter .eyebrow::before { display: none; }
.jname2 { font: italic clamp(1.25rem, 4.2vw, 2rem)/1.05 var(--serif); text-wrap: balance; }
.jnav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.jnav button.ghost { padding: 10px 16px; white-space: nowrap; }
.jnav .link, .jnav .note { text-align: center; font-size: .85rem; }
.jnav + .stage-detail { margin-top: 8px; }
.jnav button:disabled { opacity: .3; }
.stage-detail { display: flex; flex-direction: column; gap: 18px; }
.stage-detail.swap, .stage-panel.swap { animation: rise .7s var(--ease) both; }

/* to-be editor */
.editor { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.editor li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 6px; align-items: center; animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.editor input { font: italic 1.3rem/1.2 var(--serif); padding: 11px 16px; border-radius: 16px; }
.src { font: 9.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); min-width: 74px; text-align: right; }
.addline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

/* text and page motion */
.w { display: inline-block; animation: wordIn 1s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes wordIn { from { opacity: 0; filter: blur(12px); transform: translateY(.35em); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.fade { animation: rise .9s var(--ease) both; animation-delay: var(--d, 300ms); }
#app.enter { animation: pageIn .8s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; filter: blur(14px); transform: translateY(16px); } }
::view-transition-old(root) { animation: vtOut .45s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .8s var(--ease) both; }
::view-transition-old(sky), ::view-transition-new(sky) { animation-duration: 1.4s; }
@keyframes vtOut { to { opacity: 0; filter: blur(14px); transform: scale(1.03); } }
@keyframes vtIn { from { opacity: 0; filter: blur(18px); transform: translateY(18px) scale(.985); } }
.spark { position: fixed; pointer-events: none; z-index: 30; font: 14px/1 var(--sans); color: var(--c); text-shadow: 0 0 10px var(--c); animation: fly .9s var(--ease) forwards; }
@keyframes fly { from { transform: translate(-50%, -50%) scale(.4); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(90deg); opacity: 0; } }

#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--glass-hi); color: var(--fg); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 12px 20px; border-radius: 99px; font-size: .92rem; max-width: calc(100% - 32px); z-index: 40; box-shadow: 0 10px 40px color-mix(in srgb, var(--a2) 30%, transparent); }

@media (max-width: 780px) {
  .home-grid, .result-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .card-wrap { position: static; max-width: 300px; }
  .editor li { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .src { display: none; }
  .bar { grid-template-columns: 124px minmax(0, 1fr); }
  .test-row { grid-template-columns: 40px minmax(0, 1fr); }
  .t-act { grid-column: 2; flex-direction: row; align-items: center; gap: 14px; }
  .likert button { font-size: .7rem; }
  .jname { display: none; }
  .journey { gap: 2px; }
  .jdot { width: 25px; height: 25px; font-size: .85rem; }
  .journey::before { top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; transition: none !important; }
}

.sit { font: 600 1.2rem/1.45 var(--sans); }

.other { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; font: 500 .9rem/1.3 var(--sans); color: var(--mute); }
.other input { flex: 1 1 220px; width: auto; padding: 10px 14px; border-radius: 99px; font-size: .95rem; }
