/* Page shell for allyyeo.pages.dev: "watercolour sketchbook".
   Tokens live in index.html :root; sketchbook extras are below.
   Mode differences use [data-mode="pro"]; no data-mode yet means the default (fun) look.
   Every step is one screen tall; extras sit behind taps. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  --peach: #f2c6ad;
  --wash-blue: #cfe3f1;
  --sheet: #fcfaf5;
  --paper2: #f1ebdf;
  --pencil: #b9b0a0;
  --ink-blue: #1a6fa3;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", Georgia, serif;
  --rot: 1;
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --shadow-paper: 0 1px 1px rgba(70, 50, 20, .06), 0 12px 26px -14px rgba(70, 50, 20, .38);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .23 0 0 0 0 .12 .55 0 0 0 -.24'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20 L0 8.5 L10 9.1 L20 10.3 L29 4.9 L34 13.8 L46 6.3 L51 5.9 L62 8.4 L74 9.0 L82 14.0 L94 7.2 L100 11.7 L109 13.6 L117 13.1 L126 4.7 L134 4.9 L147 5.2 L153 12.9 L163 5.9 L175 5.2 L183 13.7 L198 6.1 L210 5.0 L218 11.7 L224 4.9 L235 7.7 L245 9.7 L252 13.1 L259 11.4 L275 12.8 L281 4.4 L294 6.6 L302 5.8 L309 9.6 L317 13.2 L325 6.7 L334 9.3 L349 13.8 L361 2.5 L376 11.0 L388 8.8 L404 4.8 L419 11.4 L434 7.5 L448 8.2 L460 10.2 L471 4.8 L486 11.3 L497 8.4 L511 4.3 L518 11.0 L533 5.7 L546 9.4 L558 8.4 L570 6.0 L585 12.8 L594 5.4 L600 8.5 L600 20Z'/%3E%3C/svg%3E");
}
html[data-mode="pro"] { --rot: 0; }
html[data-lang="zh"] { --display: var(--font); --hand: var(--font); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); scroll-snap-type: y proximity; }
body { background: var(--grain), var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; width: 100%; }
@media (max-width: 420px) { .wrap { padding-inline: 16px; } }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; color: var(--navy); }
html[data-lang="zh"] :is(h1, h2, h3, h4) { font-weight: 800; letter-spacing: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-mode="pro"] .fun-only { display: none !important; }
html:not([data-mode="pro"]) .pro-only { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 10px; }

/* Handwriting: Caveat in English, plain system type in Chinese (no rotation there). */
.hand { font-family: var(--hand); font-weight: 600; }
html[data-lang="zh"] .hand { font-weight: 600; transform: none !important; }

/* ---------- Ink doodles: they draw themselves in ---------- */
.ink, .jcirc, .strike, .caret, .tick { overflow: visible; }
.ink path, .jcirc path, .strike path, .caret path, .tick path, .next-ring path { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html.js .ink path { stroke-dasharray: 1 1.5; stroke-dashoffset: 1.2; transition: stroke-dashoffset 1s var(--ease); }
html.js .ink path + path { transition-delay: .6s; transition-duration: .4s; }
html.js .ink.drawn path, html.js .drawn > .ink path, html.js .drawn .ink path { stroke-dashoffset: 0; }
html.js .rotator:not(.drawn) .rot-ink path { stroke-dashoffset: 1.2; transition: none; }

/* ---------- Painted washes ---------- */
.wash { position: absolute; z-index: 0; pointer-events: none; border-radius: 47% 53% 42% 58% / 55% 45% 58% 42%; filter: url(#wc); }
.w-peach { background: radial-gradient(farthest-side at 42% 45%, rgba(242,198,173,.42), rgba(242,198,173,.62) 80%, rgba(226,160,128,.66) 100%); }
.w-blue { background: radial-gradient(farthest-side at 55% 50%, rgba(207,227,241,.55), rgba(190,218,238,.78) 82%, rgba(150,196,228,.75) 100%); }
.w-sky { background: radial-gradient(farthest-side at 50% 50%, rgba(54,171,226,.16), rgba(54,171,226,.3) 82%, rgba(54,171,226,.42) 100%); }
html[data-mode="pro"] .wash { opacity: .55; }

/* ---------- Washi tape ---------- */
.tape { position: absolute; z-index: 3; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(calc(-4deg * var(--rot))); background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 60%), rgba(242,190,160,.62); clip-path: polygon(2% 0, 98% 0, 100% 20%, 97% 40%, 100% 60%, 97% 80%, 99% 100%, 1% 100%, 3% 80%, 0 60%, 3% 40%, 0 20%); pointer-events: none; }
.tape.blue, .t-r { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 60%), rgba(160,205,235,.66); }
html[data-mode="pro"] .tape { width: 64px; height: 18px; top: -8px; opacity: .55; }

/* ---------- Buttons: ink outline, wobbly edge, sky wash on hover ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 2px solid var(--navy); border-radius: var(--wobble); background: transparent; color: var(--navy); font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .2s var(--ease), background .25s, box-shadow .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover, .btn:focus-visible { background: radial-gradient(ellipse at 35% 45%, rgba(54,171,226,.38), rgba(54,171,226,.16) 75%); }
.btn-sky { background: linear-gradient(100deg, #6cc4ec, #36abe2 46%, #52b8e7); color: var(--navy-deep); box-shadow: 3px 3px 0 var(--navy); }
.btn-sky:hover, .btn-sky:focus-visible { background: linear-gradient(100deg, #7dcbee, #45b1e4 46%, #62bfe9); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--navy); }
.btn-line { border-color: var(--navy); color: var(--navy); }
html[data-mode="pro"] .btn { border-radius: 12px; }
html[data-mode="pro"] .btn-sky { box-shadow: none; }
html[data-mode="pro"] .btn:hover { transform: none; }

/* ---------- Kicker: a handwritten label with a little pen stroke ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--hand); font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--ink-blue); margin-bottom: 8px; letter-spacing: 0; }
.kicker::before { content: ""; width: 30px; height: 10px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M2 6c6-4 10 3 16-1s8-2 10 0' fill='none' stroke='%231a6fa3' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
html[data-mode="pro"] .kicker, html[data-lang="zh"] .kicker { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
html[data-lang="zh"] .kicker { letter-spacing: .06em; font-size: 15px; }

/* ---------- Header and notebook tabs ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: var(--grain), rgba(246,243,236,.97); box-shadow: 0 1px 0 rgba(15,43,82,.12); }
.bar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--navy); font-family: var(--display); font-weight: 600; font-size: 19px; white-space: nowrap; }
.brand img { height: 30px; width: auto; flex: none; }
.controls { display: flex; align-items: center; gap: 8px; flex: none; }
.switch { display: inline-flex; padding: 3px; border-radius: var(--wobble); border: 1.5px solid rgba(15,43,82,.35); background: rgba(255,255,255,.4); }
.switch button { min-height: 34px; min-width: 40px; padding: 0 13px; border-radius: var(--wobble); font-size: 14px; font-weight: 700; color: var(--ink-soft); transition: background .2s, color .2s; }
.switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.switch button:hover:not([aria-pressed="true"]) { color: var(--ink); background: rgba(54,171,226,.15); }
.switch .short { display: none; }
@media (max-width: 640px) { .switch .long { display: none; } .switch .short { display: inline; } }
@media (max-width: 420px) {
  .brand { font-size: 16px; gap: 8px; }
  .brand img { height: 26px; }
  .controls { gap: 5px; }
  .switch button { padding: 0 9px; font-size: 13px; min-width: 36px; }
}
@media (max-width: 350px) { .brand span { display: none; } }

.journey .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; height: 44px; }
.jnow { min-width: 0; flex: 1; align-self: center; font-family: var(--hand); font-size: 21px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-lang="zh"] .jnow { font-size: 14px; font-weight: 700; }
.journey ol { display: flex; gap: 3px; flex: none; align-items: flex-end; }
.jstep { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; min-width: 34px; padding: 0 7px; border: 1px solid rgba(15,43,82,.16); border-bottom: 0; border-radius: 9px 11px 0 0; background: #ebe4d5; color: var(--ink-soft); font-size: 14px; font-weight: 600; transition: background .2s, transform .25s var(--ease), color .2s; }
.journey li:nth-child(3n+1) .jstep { background: #efe0d4; }
.journey li:nth-child(3n+2) .jstep { background: #dde8ee; }
.jico { display: grid; place-items: center; width: 20px; height: 20px; flex: none; }
.jico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jlbl { display: none; white-space: nowrap; }
.jnum { font-family: var(--hand); font-size: 19px; margin-right: 5px; color: var(--ink-blue); }
.jstep:hover { transform: translateY(-2px); color: var(--navy); }
.jstep.done { color: var(--navy); }
.jstep[aria-current="step"] { background: var(--sheet) !important; color: var(--navy); height: 42px; box-shadow: 0 -3px 10px -6px rgba(15,43,82,.35); }
.jcirc { position: absolute; left: -5px; top: 1px; width: calc(100% + 10px); height: calc(100% - 2px); pointer-events: none; }
.jcirc path { stroke: var(--navy); stroke-width: 1.8; stroke-dasharray: 1 1.5; stroke-dashoffset: 1.2; transition: stroke-dashoffset .7s var(--ease); }
.jstep[aria-current="step"] .jcirc path { stroke-dashoffset: 0; }
html[data-mode="pro"] .jcirc { display: none; }
html[data-mode="pro"] .jstep { background: #ece6da !important; border-radius: 8px 8px 0 0; }
.jbar { height: 3px; background: repeating-linear-gradient(90deg, rgba(15,43,82,.18) 0 6px, transparent 6px 10px); }
.jbar i { display: block; height: 100%; width: 0; background: var(--sky); border-radius: 0 3px 3px 0; transition: width .4s var(--ease); }
@media (min-width: 1040px) {
  .jnow { display: none; }
  .journey ol { flex: 1; justify-content: space-between; gap: 4px; }
  .journey li { flex: 1; }
  .jstep { width: 100%; padding: 0 10px; justify-content: flex-start; }
  .jlbl { display: inline; }
}
@media (max-width: 420px) { .jstep { min-width: 33px; padding: 0 5px; } .journey ol { gap: 2px; } }
@media (max-width: 360px) { .jstep { min-width: 29px; padding: 0 3px; } .jico, .jico svg { width: 17px; height: 17px; } }

/* ---------- Steps: one screen each, torn paper between them ---------- */
.sec { --bg: var(--paper); --prev: var(--paper); position: relative; min-height: calc(100vh - var(--head-h)); min-height: calc(100svh - var(--head-h)); display: flex; flex-direction: column; justify-content: center; padding: 34px 0 84px; background: var(--grain), var(--bg); scroll-snap-align: start; overflow: hidden; }
.sec { isolation: isolate; }
.sec .wash { z-index: -1; }
.sec:not(.hello)::before, .sec:not(.hello)::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; transform: scaleY(-1); -webkit-mask: var(--torn) repeat-x 0 0 / 600px 100%; mask: var(--torn) repeat-x 0 0 / 600px 100%; pointer-events: none; }
.sec:not(.hello)::before { z-index: 3; background: var(--prev); }
.sec:not(.hello)::after { z-index: 2; top: 2px; background: rgba(60, 44, 20, .13); }
html[data-mode="pro"] .sec:not(.hello)::before { -webkit-mask: none; mask: none; height: 1px; background: rgba(15,43,82,.12); transform: none; }
html[data-mode="pro"] .sec:not(.hello)::after { display: none; }
.story { --bg: var(--sheet); --prev: var(--paper); }
.think { --bg: var(--paper2); --prev: var(--sheet); }
.truth { --bg: var(--sheet); --prev: var(--paper2); }
.train { --bg: var(--paper); --prev: var(--sheet); }
.question { --bg: var(--sheet); --prev: var(--paper); }
.build { --bg: var(--paper2); --prev: var(--sheet); }
.contact { --bg: var(--navy); --prev: var(--paper2); }
:is(h1, h2)[tabindex]:focus { outline: none; }
.story:focus { outline: none; }

/* The round "next" ink arrow at the foot of each step */
.next-row { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; z-index: 4; pointer-events: none; }
.next { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 10px 0 4px; color: var(--navy); border-radius: 999px; }
.next-ring { width: 50px; height: 50px; flex: none; transition: transform .3s var(--ease); }
.next-ring svg { width: 100%; height: 100%; overflow: visible; }
.next-ring .nr-c { fill: rgba(54,171,226,0); transition: fill .25s; }
.next:hover .nr-c, .next:focus-visible .nr-c { fill: rgba(54,171,226,.3); }
html:not([data-mode="pro"]) .next:hover .next-ring { transform: translateY(3px) rotate(-4deg); }
.next-lbl { font-family: var(--hand); font-size: 23px; font-weight: 600; line-height: 1; }
html[data-mode="pro"] .next-lbl, html[data-lang="zh"] .next-lbl { font-family: var(--font); font-size: 15px; font-weight: 700; }
html.js:not([data-mode="pro"]) .hello .next-ring { animation: nudge 2.6s ease-in-out 3s 3; }

/* ---------- Floating "Talk to me" ---------- */
.talk-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border: 2px solid var(--navy); border-radius: var(--wobble); background: var(--sheet); color: var(--navy); font-family: var(--hand); font-size: 22px; font-weight: 700; text-decoration: none; box-shadow: 3px 3px 0 var(--navy); transition: transform .2s var(--ease), background .2s; }
.talk-fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.talk-fab:hover, .talk-fab:focus-visible { background: #dff0fa; transform: translate(-1px, -1px); }
html[data-mode="pro"] .talk-fab, html[data-lang="zh"] .talk-fab { font-family: var(--font); font-size: 15px; }
html[data-mode="pro"] .talk-fab { border-radius: 12px; box-shadow: 0 6px 18px rgba(15,43,82,.18); }
@media (max-width: 640px) {
  .talk-fab { right: 12px; bottom: 16px; width: 50px; height: 50px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; }
  .talk-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* =========================================================
   1. Hello
   ========================================================= */
.hello { padding-top: 26px; }
.hello-w1 { width: 520px; height: 420px; right: -80px; top: 10px; }
.hello-w2 { width: 380px; height: 300px; left: -140px; bottom: 40px; opacity: .8; }
.hello-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 30px 54px; align-items: center; }
.hello h1 { position: relative; display: inline-block; font-size: clamp(42px, 7vw, 86px); font-weight: 700; letter-spacing: -0.03em; }
html[data-lang="zh"] .hello h1 { letter-spacing: 0; }
.spark { position: absolute; right: -50px; top: -10px; width: 42px; height: 42px; }
.spark path { stroke: var(--sky); stroke-width: 2.4; }
.hello .line { font-size: clamp(18px, 2.1vw, 22px); color: var(--ink-soft); margin-top: 14px; max-width: 520px; }
.bring { margin-top: 14px; font-family: var(--display); font-size: clamp(21px, 2.6vw, 28px); font-weight: 600; color: var(--ink); line-height: 1.3; }
html[data-lang="zh"] .bring { font-weight: 700; }
.rotator { position: relative; display: inline-block; color: var(--ink-blue); padding-bottom: 6px; }
.rotator #rotWord { display: inline-block; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.rotator #rotWord.out { opacity: 0; transform: translateY(10px); }
.rot-ink { position: absolute; left: -2%; bottom: -4px; width: 104%; height: 14px; }
.rot-ink path { stroke: var(--sky); stroke-width: 3.2; }
.ask-row { position: relative; display: flex; align-items: flex-end; gap: 12px; margin-top: 26px; }
.ask { font-weight: 700; font-size: 17px; }
.pick-note { white-space: nowrap; display: inline-flex; align-items: flex-start; gap: 0; font-size: 24px; color: var(--ink-blue); transform: rotate(calc(-4deg * var(--rot))) translateY(10px); }
.pick-note svg { width: 46px; height: 32px; margin-top: 10px; }
.pick-note path { stroke: var(--ink-blue); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; max-width: 540px; }
.choice { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 16px 18px; min-height: 92px; border: 2px solid var(--navy); border-radius: 18px 26px 16px 30px / 26px 16px 28px 18px; transition: transform .25s var(--ease), box-shadow .25s; }
.choice b { font-family: var(--display); font-weight: 700; font-size: 23px; display: flex; align-items: center; gap: 8px; }
.choice b svg { width: 22px; height: 22px; }
.choice > span { font-size: 14px; line-height: 1.4; }
.choice-fun { background: linear-gradient(110deg, #79c9ee, #36abe2 55%, #5fbde8); color: var(--navy-deep); box-shadow: 4px 4px 0 var(--navy); transform: rotate(calc(-1.2deg * var(--rot))); }
.choice-fun > span { color: #0b2c4b; }
.choice-pro { background: var(--navy); color: #fff; box-shadow: 4px 4px 0 rgba(15,43,82,.35); transform: rotate(calc(.8deg * var(--rot))); }
.choice-pro > span { color: #d3def0; }
.choice:hover { transform: translate(-2px, -2px) rotate(0deg); }
html:not([data-mode="pro"]) .choice-fun:hover b svg { animation: wiggle .6s var(--ease); }
.choice[aria-pressed="true"] { outline: 3px solid rgba(54,171,226,.55); outline-offset: 3px; }
html[data-mode="pro"] .choice { border-radius: 14px; box-shadow: none; }
.switch-note { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

.portrait { position: relative; margin: 10px 0 30px; }
.portrait.missing { display: none; }
.portrait-w { inset: -8% -10% -14% -6%; }
.print { position: relative; z-index: 1; display: block; background: #fffdf7; padding: 12px 12px 30px; box-shadow: var(--shadow-paper), 0 30px 50px -30px rgba(15,43,82,.35); transform: rotate(calc(2deg * var(--rot))); }
.print img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 35%; }
.print img.wc { aspect-ratio: 1200 / 896; object-position: 50% 50%; }
.photo-print { position: absolute; z-index: 2; width: 42%; right: -6%; bottom: -12%; padding: 7px 7px 18px; transform: rotate(calc(-5deg * var(--rot))); }
.photo-print .t-p { top: -9px; left: 50%; width: 64px; margin-left: -32px; transform: rotate(calc(-4deg * var(--rot))); }
html[data-mode="pro"] .photo-print { transform: none; }
@media (max-width: 860px) { .photo-print { width: 40%; right: -4%; bottom: -10%; } }
.portrait { justify-self: center; width: min(100%, 430px); }
.print .tape { top: -10px; width: 96px; }
.print .t-l { left: -18px; transform: rotate(calc(-38deg * var(--rot) - 0deg)); }
.print .t-r { left: auto; right: -18px; transform: rotate(calc(36deg * var(--rot))); }
html[data-mode="pro"] .print .t-l { left: 12px; transform: none; }
html[data-mode="pro"] .print .t-r { right: 12px; transform: none; }
.margin-note { position: absolute; z-index: 2; left: -8px; bottom: -40px; display: flex; align-items: flex-end; gap: 4px; font-size: 25px; color: var(--navy); transform: rotate(calc(-3deg * var(--rot))); }
.margin-note svg { width: 54px; height: 40px; order: -1; }
html[data-mode="pro"] .margin-note { display: none; }
html.js .print img { animation: paintIn 2s var(--ease) .15s both; -webkit-mask-image: radial-gradient(circle at 45% 45%, #000 52%, transparent 70%); mask-image: radial-gradient(circle at 45% 45%, #000 52%, transparent 70%); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 45% 45%; mask-position: 45% 45%; -webkit-mask-size: 320% 320%; mask-size: 320% 320%; }
html.js .portrait-w { animation: bloom 1.6s var(--ease) both; }

.stats { position: relative; z-index: 1; display: flex; flex-wrap: nowrap; gap: 6px 0; margin-top: 22px; padding-top: 12px; border-top: 1.5px dashed rgba(15,43,82,.22); }
.stat { display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; padding-right: 16px; margin-right: 16px; border-right: 1.5px solid rgba(15,43,82,.14); font-size: 13px; color: var(--ink-soft); line-height: 1.3; }
.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stat b { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--navy); white-space: nowrap; }
html[data-lang="zh"] .stat b { font-family: var(--font); }

@media (max-width: 860px) {
  .hello { padding-top: 18px; }
  .hello-grid { grid-template-columns: 1fr 44%; gap: 0 14px; align-items: start; }
  .hello-copy { display: contents; }
  .hello h1 { grid-column: 1; grid-row: 1; align-self: center; font-size: clamp(38px, 11vw, 64px); }
  .spark { right: -10px; top: -26px; width: 30px; height: 30px; }
  .portrait { grid-column: 2; grid-row: 1; margin: 6px 0 26px; }
  .print { padding: 7px 7px 18px; }
  .print .tape { width: 54px; height: 18px; }
  .margin-note { left: auto; right: 0; bottom: -30px; font-size: 19px; }
  .margin-note svg { width: 30px; height: 24px; transform: scaleX(-1); order: 1; }
  .hello .line, .bring, .ask-row, .choices, .switch-note { grid-column: 1 / -1; }
  .hello .line { margin-top: 6px; }
  .ask-row { margin-top: 18px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 14px; padding-top: 8px; }
  .stat { border: 0; margin: 0; padding: 0; font-size: 11.5px; gap: 6px; align-items: center; line-height: 1.2; }
  .stat b { font-size: 19px; }
  .hello-w1 { width: 300px; height: 260px; right: -110px; top: -20px; }
  .hello-w2 { width: 260px; height: 220px; left: -130px; bottom: 30px; }
}
@media (max-width: 420px) {
  .choices { gap: 10px; }
  .choice { padding: 12px 13px; min-height: 0; }
  .choice b { font-size: 20px; }
  .choice > span { font-size: 13px; }
  .pick-note { font-size: 19px; }
  .pick-note svg { width: 30px; height: 24px; }
  .ask { font-size: 15.5px; }
  .switch-note { display: none; }
}

/* =========================================================
   2. My story (the story module styles its own frame)
   ========================================================= */
.story { padding-top: 12px; padding-bottom: 74px; }
.story .mount { margin: 0; }

/* =========================================================
   3. How I think: teaser, then the game
   ========================================================= */
.think-w1 { width: 560px; height: 420px; right: -120px; top: 40px; }
.teaser { display: grid; grid-template-columns: 1fr 1.05fr; gap: 20px 40px; align-items: center; position: relative; }
.k-sub { color: var(--ink-soft); font-size: .8em; }
.teaser-h { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; margin-top: 4px; max-width: 520px; }
.teaser-lines { margin-top: 18px; display: grid; gap: 6px; }
.teaser-lines li { display: flex; align-items: center; gap: 12px; font-size: 18px; color: var(--ink); }
.teaser-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.btn-play { min-height: 58px; padding: 0 34px; font-size: 20px; }
.btn-play svg { width: 22px; height: 22px; }
html:not([data-mode="pro"]) .btn-play { animation: breathe 2.8s ease-in-out 1.2s 3; }
.skip-to { font-weight: 600; font-size: 15px; color: var(--ink-blue); text-underline-offset: 4px; text-decoration-thickness: 1.5px; padding: 8px 2px; }
.previews { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; padding-top: 16px; }
.pv { position: relative; width: 33%; max-width: 190px; background: #fffdf7; padding: 10px 10px 12px; box-shadow: var(--shadow-paper); text-align: center; }
.pv img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; background: linear-gradient(160deg, #f6efe2, #fbf7ef); }
.pv-k { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-blue); }
.pv-n { display: block; font-family: var(--hand); font-size: 20px; font-weight: 600; line-height: 1.05; color: var(--navy); }
html[data-lang="zh"] .pv-n { font-family: var(--font); font-size: 14px; font-weight: 700; }
html[data-lang="zh"] .pv-k { letter-spacing: 0; }
.pv1 { transform: rotate(calc(-5deg * var(--rot))) translateY(14px); z-index: 1; }
.pv2 { transform: rotate(calc(2deg * var(--rot))); margin: 0 14px; z-index: 2; }
.pv3 { transform: rotate(calc(6deg * var(--rot))) translateY(22px); z-index: 1; }
.pv2 .tape { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 60%), rgba(160,205,235,.66); }
.teaser-ally { position: absolute; right: -10px; bottom: -170px; width: 96px; z-index: 3; pointer-events: none; mix-blend-mode: multiply; }
.teaser-ally img { width: 100%; }
.ally-say { position: absolute; right: 104%; top: 46%; width: 170px; font-size: 22px; line-height: 1.05; color: var(--navy); transform: rotate(calc(-5deg * var(--rot))); text-align: right; }
html[data-lang="zh"] .ally-say { font-size: 14px; }
.teaser-pro { margin-top: 12px; max-width: 560px; font-size: 18px; color: var(--ink-soft); }
html[data-mode="pro"] .teaser { grid-template-columns: 1fr; justify-items: start; max-width: 760px; margin: 0 auto; padding: 28px 0; border-top: 1.5px solid rgba(15,43,82,.18); border-bottom: 1.5px solid rgba(15,43,82,.18); }
html[data-mode="pro"] .teaser-h { font-size: clamp(28px, 3.6vw, 40px); }
@media (max-width: 860px) {
  .teaser { grid-template-columns: 1fr; gap: 6px; }
  .teaser-h { font-size: clamp(30px, 8.6vw, 44px); }
  .teaser-lines { margin-top: 12px; }
  .teaser-lines li { font-size: 16px; }
  .previews { order: 2; padding: 22px 6px 26px; }
  .pv { padding: 6px 6px 8px; }
  .pv-n { font-size: 16px; }
  .pv-k { font-size: 9.5px; letter-spacing: .04em; }
  .teaser-act { order: 3; margin-top: 4px; }
  .teaser-ally { display: none; }
  .think-w1 { width: 340px; height: 300px; right: -120px; top: 60px; }
}

/* the game frame lives inside the one screen; it scrolls inside itself if a scene is tall */
.game-frame { position: relative; max-height: calc(100vh - var(--head-h) - 110px); max-height: calc(100svh - var(--head-h) - 110px); overflow-y: auto; overscroll-behavior: contain; padding: 6px 4px 4px; scrollbar-width: thin; }
.think.playing { padding-top: 14px; }
.think.playing .mount { margin: 0; }
#chefs-mind:focus { outline: none; }

/* =========================================================
   4. The AI truth: a correction written into the notebook
   ========================================================= */
.truth-w1 { width: 760px; height: 300px; left: -120px; top: 12%; }
.truth-w2 { width: 340px; height: 260px; right: -60px; bottom: 60px; }
.truth h2 { font-size: clamp(54px, 10.5vw, 132px); font-weight: 700; letter-spacing: -0.035em; line-height: .95; max-width: 11ch; }
html[data-lang="zh"] .truth h2 { letter-spacing: 0; line-height: 1.1; font-size: clamp(44px, 9vw, 104px); }
.truth-pad { display: grid; grid-template-columns: 1.3fr .9fr; gap: 20px 56px; align-items: start; margin-top: 30px; padding-left: clamp(0px, 8vw, 120px); }
.truth-line { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 6px 4px; border-radius: 10px; }
.tl-old { position: relative; font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; color: var(--ink); line-height: 1.2; transition: color .4s .3s; }
.strike { position: absolute; left: -3%; top: 34%; width: 106%; height: 34%; pointer-events: none; }
.strike path { stroke: #c2412d; stroke-width: 3.4; stroke-dasharray: 1 1.5; stroke-dashoffset: 1.2; transition: stroke-dashoffset .45s var(--ease); }
.strike path + path { transition-delay: .3s; stroke-width: 2.6; }
.tl-new { position: relative; display: block; padding-left: 26px; font-family: var(--hand); font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; color: var(--ink-blue); line-height: 1.05; transform: rotate(calc(-2deg * var(--rot))); clip-path: inset(0 100% -10% 0); transition: clip-path 1.1s cubic-bezier(.5,.1,.3,1) .7s; }
html[data-mode="pro"] .tl-new, html[data-lang="zh"] .tl-new { font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(24px, 3vw, 36px); }
html[data-lang="zh"] .tl-new { font-style: normal; }
.caret { position: absolute; left: 0; top: .35em; width: 22px; height: 18px; }
.caret path { stroke: #c2412d; stroke-width: 2.6; stroke-dasharray: 1 1.5; stroke-dashoffset: 1.2; transition: stroke-dashoffset .3s .6s; }
.tl-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--hand); font-size: 22px; font-weight: 600; color: var(--ink-soft); }
.tl-hint svg { width: 34px; height: 26px; }
.tl-hint path { stroke: var(--ink-soft); }
html[data-mode="pro"] .tl-hint, html[data-lang="zh"] .tl-hint { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.truth-line:hover .tl-old { color: var(--navy); }
.truth-line.done .tl-old { color: #7d8698; }
.truth-line.done .strike path, .truth-line.done .caret path { stroke-dashoffset: 0; }
.truth-line.done .tl-new { clip-path: inset(-10% -4% -20% -4%); }
.truth-body { position: relative; max-width: 380px; margin-top: 14px; padding-left: 18px; border-left: 2px solid rgba(54,171,226,.6); font-size: 17px; color: var(--ink); opacity: 0; transform: translateY(8px); transition: opacity .6s 1.4s, transform .6s 1.4s var(--ease); }
.truth-pad:has(.truth-line.done) .truth-body, .truth-pad.solved .truth-body { opacity: 1; transform: none; }
html:not(.js) .truth-body { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .truth-pad { grid-template-columns: 1fr; padding-left: 0; margin-top: 18px; }
  .truth h2 { font-size: clamp(50px, 15vw, 86px); }
  .truth-w1 { width: 420px; height: 240px; left: -120px; }
  .truth-w2 { width: 260px; height: 220px; right: -120px; bottom: 120px; }
  .truth-body { font-size: 16px; margin-top: 4px; }
}

/* =========================================================
   5. What I train
   ========================================================= */
.train-w1 { width: 520px; height: 380px; right: -140px; bottom: 30px; }
.train-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; }
.train h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; }
.train h2 small { font-size: .5em; font-weight: 600; color: var(--ink-blue); letter-spacing: 0; display: inline-block; transform: rotate(calc(-3deg * var(--rot))) translateY(-4px); }
html[data-mode="pro"] .train h2 small { font-family: var(--font); font-size: .36em; color: var(--ink-soft); }
html[data-lang="zh"] .train h2 small { font-size: .38em; }
.tabs { position: relative; display: inline-flex; padding: 0; gap: 4px; max-width: 100%; border-bottom: 2px solid var(--navy); }
.tab { position: relative; z-index: 1; padding: 10px 16px 8px; border-radius: 12px 14px 0 0; border: 1.5px solid rgba(15,43,82,.25); border-bottom: 0; background: rgba(255,255,255,.35); font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--ink-soft); transition: color .25s, background .25s; }
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { color: var(--navy-deep); background: transparent; border-color: var(--navy); border-width: 2px; margin-bottom: -2px; padding-bottom: 10px; }
.tab-pill { position: absolute; top: 0; bottom: -2px; left: 0; border-radius: 12px 14px 0 0; background: radial-gradient(ellipse at 40% 40%, rgba(54,171,226,.32), rgba(54,171,226,.14) 80%), var(--paper); transition: transform .35s var(--ease), width .35s var(--ease); }
@media (max-width: 640px) {
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: 8px 6px 7px; font-size: 13px; }
  .tab[aria-selected="true"] { padding-bottom: 9px; }
}
.panel { margin-top: 22px; }
html:not([data-mode="pro"]) .panel { animation: fadeUp .45s var(--ease); }
.sub-h { font-size: 22px; }
.hand-h { font-family: var(--hand); font-size: 30px; font-weight: 700; color: var(--navy); letter-spacing: 0; line-height: 1.05; }
html[data-mode="pro"] .hand-h, html[data-lang="zh"] .hand-h { font-family: var(--display); font-size: 21px; }
html[data-lang="zh"] .hand-h { font-family: var(--font); font-weight: 800; }
.hint { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }

/* the training path: stops on a winding pencil line */
.ai-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px 48px; align-items: center; }
.tpath-wrap { position: relative; margin-top: 12px; }
.tpath { display: grid; gap: 6px; counter-reset: s; }
.tpath li { position: relative; }
.tpath li:nth-child(even) { margin-left: 64px; }
.tpath li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; left: 21px; top: 40px; width: 72px; height: calc(100% - 20px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 40' preserveAspectRatio='none'%3E%3Cpath d='M2 0C2 24 60 12 66 40' fill='none' stroke='%23a99f8e' stroke-width='2.2' stroke-dasharray='5 5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%; pointer-events: none; }
.tpath li:nth-child(even):not(:last-child)::after { left: -44px; transform: scaleX(-1); }
.tpath li:has(+ li .tp.lit)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 40' preserveAspectRatio='none'%3E%3Cpath d='M2 0C2 24 60 12 66 40' fill='none' stroke='%2336abe2' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tp { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; width: auto; max-width: 100%; padding: 4px 12px 4px 0; text-align: left; border-radius: 12px; }
.tp-node { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--pencil); border-radius: 52% 48% 50% 50% / 48% 52% 48% 52%; background: var(--paper); font-family: var(--hand); font-size: 25px; font-weight: 700; color: var(--ink-soft); transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease); }
html[data-lang="zh"] .tp-node, html[data-mode="pro"] .tp-node { font-family: var(--font); font-size: 17px; }
.tp-text { display: block; min-width: 0; }
.tp-h { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.2; color: var(--ink-soft); transition: color .25s; }
html[data-lang="zh"] .tp-h { font-family: var(--font); font-weight: 700; }
.tp-body, .tp-take { display: none; }
.tp:hover .tp-h { color: var(--navy); }
.tp.lit .tp-node { border-color: var(--sky); color: var(--navy); background: #e8f4fb; }
.tp.lit .tp-h { color: var(--navy); }
.tp.on .tp-node { background: var(--sky); border-color: var(--navy); color: var(--navy-deep); transform: rotate(calc(-6deg * var(--rot))) scale(1.08); box-shadow: 2px 2px 0 var(--navy); }
.tp.on .tp-h { background: linear-gradient(transparent 58%, rgba(54,171,226,.3) 58%, rgba(54,171,226,.3) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.tp-note { position: relative; background: #fffdf7; padding: 26px 26px 24px; box-shadow: var(--shadow-paper); transform: rotate(calc(1.6deg * var(--rot))); background-image: repeating-linear-gradient(180deg, transparent 0 29px, rgba(54,171,226,.16) 29px 30px); background-position: 0 14px; }
.tp-note.flip { animation: noteIn .45s var(--ease); }
.tpn-num { position: absolute; right: 18px; top: 4px; font-size: 54px; line-height: 1; color: rgba(54,171,226,.45); }
.tpn-h { font-size: 24px; padding-right: 40px; }
.tpn-body { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.tpn-take { margin-top: 12px; font-weight: 700; color: var(--navy); font-size: 17px; }
.tpn-take small { display: block; font-size: 21px; font-weight: 600; color: var(--ink-blue); line-height: 1.1; }
html[data-mode="pro"] .tpn-take small, html[data-lang="zh"] .tpn-take small { font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tp-note .btn { margin-top: 16px; min-height: 44px; font-size: 15px; }
html[data-mode="pro"] .tp-note { background-image: none; border-left: 3px solid var(--sky); }

@media (max-width: 860px) {
  .ai-grid { grid-template-columns: 1fr; gap: 14px; }
  .hand-h { font-size: 24px; }
  .hint { display: none; }
  .tpath { gap: 2px; }
  .tpath li:nth-child(even) { margin-left: 40px; }
  .tpath li:not(:last-child)::after { width: 46px; top: 36px; left: 17px; }
  .tpath li:nth-child(even):not(:last-child)::after { left: -26px; }
  .tp { gap: 10px; padding: 3px 0; }
  .tp-node { width: 36px; height: 36px; font-size: 20px; }
  .tp-h { font-size: 15.5px; }
  .tp-note { padding: 16px 16px 16px; }
  .tpn-num { font-size: 40px; }
  .tpn-h { font-size: 19px; }
  .tpn-body { font-size: 14.5px; margin-top: 4px; }
  .tpn-take { font-size: 15px; margin-top: 8px; }
  .tpn-take small { font-size: 18px; }
  .tp-note .btn { margin-top: 10px; min-height: 40px; padding: 0 16px; font-size: 14px; }
}

/* radiation protection: a stamped page, no boxes */
.rad { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px 56px; align-items: center; }
.panel-intro h3 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; max-width: 14ch; }
.panel-intro p { margin-top: 12px; font-size: 17px; color: var(--ink-soft); max-width: 440px; }
.stamp { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 14px; border: 2.5px solid #b8432f; border-radius: 6px; color: #a03a28; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; transform: rotate(calc(-3deg * var(--rot))); box-shadow: inset 0 0 0 1px rgba(184,67,47,.25); }
.stamp svg { width: 20px; height: 20px; flex: none; }
html[data-mode="pro"] .stamp { border-color: var(--navy); color: var(--navy); box-shadow: none; }
html[data-lang="zh"] .stamp { letter-spacing: 0; }
.panel-intro .btn { display: flex; width: max-content; margin-top: 20px; }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.svc-item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); line-height: 1.4; }
.svc-item b { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.2; margin-bottom: 2px; }
html[data-lang="zh"] .svc-item b { font-family: var(--font); font-weight: 700; }
.svc-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50% 46% 52% 48%; background: radial-gradient(circle at 40% 40%, rgba(207,227,241,.9), rgba(160,205,235,.7)); }
.svc-item:nth-child(even) .svc-ic { background: radial-gradient(circle at 40% 40%, rgba(242,198,173,.75), rgba(232,170,140,.6)); }
.svc-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) {
  .rad { grid-template-columns: 1fr; gap: 18px; }
  .panel-intro h3 { font-size: 26px; }
  .panel-intro p { font-size: 15px; margin-top: 6px; }
  .stamp { margin-top: 10px; font-size: 11.5px; }
  .panel-intro .btn { margin-top: 12px; min-height: 42px; font-size: 15px; }
  .svc { gap: 12px 14px; }
  .svc-item { font-size: 13px; gap: 8px; }
  .svc-item b { font-size: 15px; }
  .svc-ic { width: 34px; height: 34px; }
  .svc-ic svg { width: 18px; height: 18px; }
}

/* credentials: a handwritten list with ticks; industries as stickers */
.cred-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px 56px; align-items: start; }
.creds { display: grid; gap: 6px; margin-top: 10px; }
.cred { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.35; padding-bottom: 6px; border-bottom: 1px solid rgba(54,171,226,.22); }
.tick { flex: none; width: 22px; height: 22px; margin-top: 0; }
.tick path { stroke: var(--sky); stroke-width: 3; stroke-dasharray: 1 1.5; stroke-dashoffset: 0; }
html.js:not([data-mode="pro"]) .panel-cred:not([hidden]) .tick path { animation: draw .5s var(--ease) both; }
.cred:nth-child(2) .tick path { animation-delay: .12s !important; }
.cred:nth-child(3) .tick path { animation-delay: .24s !important; }
.cred:nth-child(4) .tick path { animation-delay: .36s !important; }
.cred:nth-child(5) .tick path { animation-delay: .48s !important; }
.cred:nth-child(6) .tick path { animation-delay: .6s !important; }
.academy { font-size: 13px; color: var(--ink-soft); padding-top: 4px; line-height: 1.7; }
.academy a { color: var(--ink-blue); font-weight: 600; text-underline-offset: 2px; white-space: nowrap; }
.academy a + a::before { content: "·"; display: inline-block; color: var(--ink-soft); margin: 0 6px; text-decoration: none; }
.ind { display: flex; flex-wrap: wrap; gap: 9px 8px; margin: 12px 0 22px; }
.ind li { padding: 6px 12px; border-radius: 4px; background: #fffdf7; color: var(--navy); font-size: 14px; font-weight: 700; box-shadow: 0 1px 0 rgba(70,50,20,.12), 0 4px 10px -6px rgba(70,50,20,.4); border: 1.5px dashed rgba(15,43,82,.28); }
html:not([data-mode="pro"]) .ind li:nth-child(odd) { transform: rotate(-1.6deg); }
html:not([data-mode="pro"]) .ind li:nth-child(3n) { transform: rotate(1.8deg); background: #fdf1e8; }
html:not([data-mode="pro"]) .ind li:nth-child(4n) { background: #ecf5fb; }
.langs-line { margin-top: 6px; font-family: var(--hand); font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.15; }
html[data-mode="pro"] .langs-line, html[data-lang="zh"] .langs-line { font-family: var(--font); font-size: 16px; }
@media (max-width: 860px) {
  .cred-grid { grid-template-columns: 1fr; gap: 10px; }
  .creds { gap: 3px; margin-top: 4px; }
  .cred { font-size: 13.5px; gap: 8px; padding-bottom: 3px; }
  .tick { width: 17px; height: 17px; }
  .academy { font-size: 12px; line-height: 1.6; }
  .ind { gap: 6px 5px; margin: 6px 0 10px; }
  .ind li { padding: 3px 8px; font-size: 12px; }
  .langs-line { font-size: 21px; margin-top: 0; }
  html[data-mode="pro"] .langs-line, html[data-lang="zh"] .langs-line { font-size: 14px; }
  .ind-col { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: baseline; }
  .ind-col .ind { grid-column: 1 / -1; }
}

/* =========================================================
   6. One question
   ========================================================= */
.q-w1 { width: 480px; height: 440px; right: 4%; top: 12%; }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; align-items: center; }
.q-big { font-family: var(--hand); font-size: clamp(48px, 6.4vw, 84px); font-weight: 700; line-height: .98; color: var(--navy); max-width: 9ch; transform: rotate(calc(-2deg * var(--rot))); margin-top: 6px; }
html[data-mode="pro"] .q-big, html[data-lang="zh"] .q-big { font-family: var(--display); font-size: clamp(36px, 4.6vw, 58px); transform: none; }
html[data-lang="zh"] .q-big { font-weight: 800; max-width: 10em; }
.question.solved .q-big { text-decoration: line-through; text-decoration-color: rgba(194,65,45,.75); text-decoration-thickness: 4px; color: #7d8698; }
.q-stage { display: flex; flex-direction: column; align-items: center; }
.orbit { --s: min(400px, 40vw); --r: calc(var(--s) * .42); --spin: 18s; position: relative; display: block; width: var(--s); height: var(--s); border-radius: 50%; }
html[data-mode="pro"] .orbit { --spin: 40s; }
.orbit::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 2px dashed var(--pencil); transition: inset .6s var(--ease), border-color .6s; }
.oc { position: absolute; inset: 26%; display: grid; place-items: center; border-radius: 48% 52% 46% 54% / 54% 46% 54% 46%; background: radial-gradient(circle at 42% 40%, rgba(242,198,173,.5), rgba(242,198,173,.8) 85%); transition: background .5s, inset .6s var(--ease); filter: url(#rough); }
.oc::before { content: "?"; grid-area: 1 / 1; font-family: var(--display); font-size: calc(var(--s) * .26); font-weight: 700; color: var(--navy); transition: opacity .4s, transform .4s var(--ease); }
.oc span { grid-area: 1 / 1; padding: 0 10px; text-align: center; }
.oc-q { display: none; }
.oc-a { font-family: var(--hand); font-size: calc(var(--s) * .12); font-weight: 700; line-height: 1; color: var(--navy-deep); opacity: 0; transform: scale(.7); transition: opacity .45s, transform .45s var(--ease); }
html[data-lang="zh"] .oc-a, html[data-mode="pro"] .oc-a { font-family: var(--display); font-size: calc(var(--s) * .08); font-weight: 800; }
@property --spin-a { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.orbit { animation: orbitSpin var(--spin) linear infinite; }
@keyframes orbitSpin { to { --spin-a: 360deg; } }
.ring { position: absolute; inset: 0; transform: rotate(var(--spin-a)); transition: opacity .4s; }
.tool { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)); }
.tool span { display: block; padding: 7px 14px; border: 2px solid var(--navy); border-radius: var(--wobble); background: #fffdf7; color: var(--navy); font-weight: 700; font-size: 15px; white-space: nowrap; box-shadow: 2px 2px 0 var(--navy); transform: rotate(calc(-1 * var(--spin-a))); transition: font-size .5s, padding .5s; }
.orbit .t2 span { background: #dcefFA; }
.o-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 23px; color: var(--ink-soft); }
.o-hint svg { width: 34px; height: 26px; }
.o-hint path { stroke: var(--ink-soft); }
html[data-mode="pro"] .o-hint, html[data-lang="zh"] .o-hint { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.orbit.swap .ring { opacity: 0; transform: rotate(var(--spin-a)) scale(.4); }
.orbit.solved::before { inset: 18%; border-color: var(--sky); }
.orbit.solved .oc { inset: 29%; background: radial-gradient(circle at 42% 40%, rgba(54,171,226,.45), rgba(54,171,226,.75) 85%); }
.orbit.solved .oc::before { opacity: 0; transform: scale(.6); }
.orbit.solved .oc-a { opacity: 1; transform: none; }
.orbit.solved .ring { transform: rotate(var(--spin-a)) scale(.78); }
.orbit.solved .tool span { padding: 4px 10px; font-size: 12px; box-shadow: none; }
.q-line { max-width: 460px; margin-top: 20px; font-size: clamp(17px, 2vw, 21px); font-weight: 600; color: var(--navy); transition: opacity .5s .3s, transform .5s .3s var(--ease); }
html.js .question:not(.solved) .q-line { opacity: 0; transform: translateY(10px); visibility: hidden; }
.q-again { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ink-blue); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; padding: 0 2px; }
.question:not(.solved) .q-again { display: none; }
@media (max-width: 860px) {
  .q-grid { grid-template-columns: 1fr; gap: 0; }
  .q-copy { display: contents; }
  .q-copy .kicker { order: 1; }
  .q-big { order: 2; font-size: clamp(40px, 11vw, 60px); max-width: none; }
  .q-stage { order: 3; margin-top: 10px; }
  .q-line { order: 4; margin-top: 8px; font-size: 16px; }
  .q-again { order: 5; justify-self: start; }
  .orbit { --s: min(300px, 76vw); }
  .question:not(.solved) .q-line { display: none; }
  .question.solved .q-big { font-size: clamp(28px, 8vw, 40px); }
  .q-w1 { width: 320px; height: 300px; right: -60px; top: 30%; }
}

/* =========================================================
   7. What I build: taped polaroids, scattered
   ========================================================= */
.build-w1 { width: 600px; height: 360px; left: 20%; top: 30%; }
.build h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; }
.builds { position: relative; display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 30px; align-items: start; margin-top: 26px; }
.pol { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 20px; background: #fffdf7; box-shadow: var(--shadow-paper), 0 24px 40px -28px rgba(15,43,82,.4); transition: transform .3s var(--ease); }
.pol-art { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 8px; background: radial-gradient(ellipse at 40% 40%, rgba(207,227,241,.8), rgba(176,210,234,.75) 85%); }
.pol-art img { width: 38%; height: auto; border-radius: 22%; box-shadow: 0 10px 20px -8px rgba(15,43,82,.45); }
.pol h3 { font-size: 26px; font-weight: 700; }
.pol p { font-size: 15px; color: var(--ink-soft); }
.pol .btn { align-self: flex-start; margin-top: 8px; min-height: 44px; padding: 0 18px; font-size: 15px; }
.pol-sn { transform: rotate(calc(-2.4deg * var(--rot))); }
.pol-mood { transform: rotate(calc(2deg * var(--rot))) translateY(46px); }
.pol-mood .pol-art { background: radial-gradient(ellipse at 40% 40%, rgba(242,198,173,.55), rgba(232,170,140,.6) 85%); }
.pol-mood .tape { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 60%), rgba(160,205,235,.66); left: 30%; }
.mood-art svg { width: 34%; height: auto; }
html:not([data-mode="pro"]) .mood-art svg { animation: bob 3.2s ease-in-out infinite; }
.soon { align-self: flex-start; margin-top: 6px; font-size: 24px; color: #a03a28; transform: rotate(calc(-4deg * var(--rot))); border-bottom: 2px solid rgba(194,65,45,.5); line-height: 1.05; }
html[data-mode="pro"] .soon, html[data-lang="zh"] .soon { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pol-next { transform: rotate(calc(-1deg * var(--rot))) translateY(-10px); background: transparent; box-shadow: none; padding-top: 0; }
.pol-next .pol-art { background: none; aspect-ratio: auto; justify-content: start; margin: 0; }
.pol-next h3 { font-size: 30px; line-height: 1; color: var(--navy); font-weight: 700; }
html[data-mode="pro"] .pol-next h3, html[data-lang="zh"] .pol-next h3 { font-family: var(--display); font-size: 20px; }
.flask { width: 80px; height: 100px; overflow: visible; }
.flask .bub { fill: var(--sky); opacity: 0; }
html:not([data-mode="pro"]) .flask .bub { animation: bubble 2.6s ease-in infinite; }
html:not([data-mode="pro"]) .flask .b2 { animation-delay: .9s; }
html:not([data-mode="pro"]) .flask .b3 { animation-delay: 1.7s; }
html[data-mode="pro"] .flask .bub { opacity: .6; }
html:not([data-mode="pro"]) .pol:hover { transform: rotate(0deg) translateY(-4px); }
.build-arrow { position: absolute; right: 18%; top: -40px; width: 110px; height: 56px; }
@media (max-width: 860px) {
  .builds { grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-top: 14px; }
  .pol-sn { grid-column: 1 / -1; display: grid; grid-template-columns: 38% 1fr; column-gap: 14px; align-items: center; padding: 10px 12px 12px; }
  .pol-sn .pol-art { grid-row: 1 / span 3; margin: 0; aspect-ratio: 1; }
  .pol-sn .pol-art img { width: 56%; }
  .pol-sn .btn { margin-top: 2px; min-height: 40px; font-size: 14px; padding: 0 14px; }
  .pol { padding: 10px 10px 14px; gap: 2px; }
  .pol h3 { font-size: 21px; }
  .pol p { font-size: 13.5px; line-height: 1.4; }
  .pol-mood { transform: rotate(calc(2deg * var(--rot))) translateY(6px); }
  .pol-next { transform: rotate(calc(-2deg * var(--rot))) translateY(20px); }
  .pol-next h3 { font-size: 25px; }
  .flask { width: 60px; height: 76px; }
  .soon { font-size: 20px; }
  .build-arrow { display: none; }
  .build-w1 { width: 360px; height: 300px; left: -40px; top: 40%; }
}

/* =========================================================
   8. Let's talk: dark ink page, a letter pinned on it
   ========================================================= */
.contact { color: #fff; padding-bottom: 0; justify-content: space-between; }
.contact > .wrap:first-child { margin-block: auto; padding-block: 10px 26px; }
.contact h2 { color: #fff; font-size: clamp(36px, 5vw, 62px); font-weight: 700; }
.contact .kicker { color: #8fd0f0; }
.contact .kicker::before { filter: brightness(2.2); }
.contact .lead { font-size: 18px; color: #c9d6ea; margin-top: 10px; max-width: 480px; }
.talk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.chip { min-height: 42px; padding: 8px 16px; border-radius: var(--wobble); border: 1.5px solid rgba(255,255,255,.4); color: #fff; font-weight: 600; font-size: 15px; transition: .2s var(--ease); }
.chip:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.chip[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--navy-deep); transform: rotate(calc(-1.5deg * var(--rot))); }
html[data-mode="pro"] .chip { border-radius: 999px; }
.letter { position: relative; color: var(--ink); background: #fffdf7; padding: 26px 26px 20px; box-shadow: 0 30px 50px -24px rgba(0,0,0,.55); transform: rotate(calc(1.4deg * var(--rot))); background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(54,171,226,.18) 27px 28px); background-position: 0 40px; }
.draft small { font-family: var(--hand); font-size: 22px; font-weight: 600; color: var(--ink-blue); }
html[data-mode="pro"] .draft small, html[data-lang="zh"] .draft small { font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.draft p { margin-top: 2px; color: var(--navy); white-space: pre-line; overflow-wrap: anywhere; line-height: 28px; font-size: 16px; max-height: 196px; overflow-y: auto; }
.letter .buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.letter .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.copied { font-size: 14px; font-weight: 700; color: var(--ink-blue); opacity: 0; transition: opacity .2s; overflow-wrap: anywhere; }
.copied.show { opacity: 1; }
.note { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
footer { position: relative; z-index: 1; color: #9fb3d1; font-size: 13px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.12); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
footer .fbrand { display: flex; align-items: center; gap: 10px; }
footer img { height: 24px; width: auto; }
footer a { color: #c9d6ea; }
@media (max-width: 860px) {
  .talk-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact > .wrap:first-child { padding-block: 4px 16px; }
  .contact h2 { font-size: clamp(28px, 7.8vw, 44px); }
  .contact .kicker { margin-bottom: 2px; }
  .contact .lead { font-size: 15px; margin-top: 6px; }
  .chips { gap: 6px; margin-top: 12px; }
  .chip { min-height: 34px; padding: 4px 10px; font-size: 12.5px; }
  .letter { padding: 12px 14px 12px; }
  .draft small { font-size: 18px; line-height: 1; }
  .draft p { font-size: 13.5px; line-height: 22px; max-height: 66px; }
  .letter .buttons { gap: 8px; margin-top: 10px; }
  .letter .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .note { font-size: 11.5px; margin-top: 6px; line-height: 1.35; }
  .letter .btn { min-height: 38px; }
  footer { padding-block: 8px; font-size: 11.5px; }
  footer .wrap { gap: 2px 12px; }
  footer img { height: 18px; }
}

/* Small phones / short screens: tighten everything a little */
@media (max-height: 760px) and (max-width: 860px) {
  .sec { padding-top: 18px; padding-bottom: 76px; }
  .next-ring { width: 44px; height: 44px; }
}

/* ---------- Motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes noteIn { from { opacity: .3; transform: rotate(calc(4deg * var(--rot))) translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { from { stroke-dashoffset: 1.2; } to { stroke-dashoffset: 0; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-4deg); } }
@keyframes bubble { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateY(-46px) scale(1.1); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(6px); } 60% { transform: translateY(0); } 75% { transform: translateY(3px); } }
@keyframes breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.04) rotate(-1deg); } }
@keyframes paintIn {
  0% { opacity: 0; filter: blur(16px) saturate(.15) brightness(1.25); -webkit-mask-size: 0% 0%; mask-size: 0% 0%; }
  35% { opacity: 1; }
  100% { opacity: 1; filter: none; -webkit-mask-size: 320% 320%; mask-size: 320% 320%; }
}
@keyframes bloom { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .ink path, .jcirc path { stroke-dashoffset: 0 !important; }
  .jstep:not([aria-current]) .jcirc path { stroke-dashoffset: 1.2 !important; }
  html.js .print img { -webkit-mask-image: none; mask-image: none; }
  .flask .bub { opacity: .6; }
  .truth-body { transition: none; }
}

.teaser-names { margin-top: 10px; font-weight: 700; color: var(--ink-blue); font-size: 15px; }
html[data-lang="zh"] .hello h1 { font-size: clamp(36px, 5.4vw, 70px); white-space: nowrap; }
html[data-lang="zh"] .margin-note { white-space: nowrap; font-size: 15px; }
@media (max-width: 860px) {
  html[data-lang="zh"] .hello h1 { font-size: clamp(32px, 9vw, 52px); white-space: normal; }
  html[data-lang="zh"] .margin-note { font-size: 12px; bottom: -24px; }
}

/* =========================================================
   Icon-led details: hand-drawn line icons on watercolour dabs
   ========================================================= */
.ico { position: relative; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%; background: radial-gradient(circle at 36% 34%, rgba(225,239,248,.95), rgba(176,213,238,.9) 70%, rgba(140,192,228,.9)); box-shadow: inset 0 -2px 0 rgba(15,43,82,.06); }
.ico.peach { background: radial-gradient(circle at 36% 34%, rgba(251,232,220,.95), rgba(242,198,173,.92) 70%, rgba(228,168,138,.9)); border-radius: 55% 45% 52% 48% / 46% 56% 44% 54%; }
.ico svg, .tp-node svg, .ind svg, .chip svg, .stamp svg { fill: none; stroke: var(--navy); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ico svg { width: 56%; height: 56%; filter: url(#wob); }
.ico.sm { width: 32px; height: 32px; }
.ico.lg { width: 56px; height: 56px; }
html[data-mode="pro"] .ico { background: #e3f0f8; border-radius: 50%; box-shadow: none; }
html[data-mode="pro"] .ico.peach { background: #f8e6dc; }
html[data-mode="pro"] .ico svg { filter: none; }

/* hero stats and choices */
.stat .ico.sm { width: 30px; height: 30px; align-self: center; }
.choice b .ico { width: 38px; height: 38px; background: rgba(255,255,255,.55); }
.choice-pro b .ico { background: rgba(255,255,255,.14); }
.choice-pro b .ico svg { stroke: #fff; }
.choice b .ico svg { width: 60%; height: 60%; }
@media (max-width: 860px) { .stat .ico.sm { width: 24px; height: 24px; } .choice b .ico { width: 30px; height: 30px; } }

/* game teaser lines */
.teaser-lines li .ico.sm { width: 34px; height: 34px; }
@media (max-width: 860px) { .teaser-lines li { gap: 10px; } .teaser-lines li .ico.sm { width: 28px; height: 28px; } }

/* training stops: icon dab with a small number tag */
.tp-node { position: relative; width: 48px; height: 48px; border: 0; background: radial-gradient(circle at 36% 34%, rgba(238,234,226,.98), rgba(214,206,192,.9) 75%); }
.tp-node svg { width: 58%; height: 58%; stroke: var(--ink-soft); filter: url(#wob); }
.tp-n { position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font); font-size: 11px; font-weight: 800; line-height: 1; }
.tp.lit .tp-node { background: radial-gradient(circle at 36% 34%, rgba(225,239,248,.98), rgba(176,213,238,.92) 72%); border: 0; }
.tp.lit .tp-node svg { stroke: var(--navy); }
.tp.on .tp-node { background: radial-gradient(circle at 36% 34%, #8fd3f2, #36abe2 75%); box-shadow: 2px 3px 0 var(--navy); border: 0; }
.tp.on .tp-node svg { stroke: var(--navy-deep); }
.tp.on .tp-n { background: var(--sheet); color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
html[data-mode="pro"] .tp-node svg { filter: none; }
@media (max-width: 860px) { .tp-node { width: 40px; height: 40px; } .tp-n { width: 17px; height: 17px; font-size: 10px; } }
/* the detail note: icon, bold title, one line, takeaway on a wash */
.tp-note { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; border-left: 4px solid var(--sky); }
.tp-note > .tape, .tp-note > .tpn-num { grid-column: auto; }
.tp-note #tpnIco { grid-row: 1 / span 2; }
.tp-note .tpn-h, .tp-note .tpn-body { grid-column: 2; }
.tp-note .tpn-take, .tp-note .btn { grid-column: 1 / -1; }
.tpn-take { padding: 10px 14px; background: radial-gradient(ellipse at 20% 30%, rgba(207,227,241,.7), rgba(207,227,241,.35) 80%); border-radius: 6px 18px 8px 16px; }
@media (max-width: 860px) { .tp-note #tpnIco { width: 44px; height: 44px; } .tp-note { column-gap: 12px; } }

/* radiation services and RPO badge */
.svc-item { padding: 14px 14px 14px 12px; background: rgba(255,253,247,.85); border-radius: 4px 14px 6px 12px; box-shadow: var(--shadow-paper); border-left: 3px solid var(--sky); }
.svc-item:nth-child(even) { border-left-color: #e8a585; }
.svc-item .ico { width: 46px; height: 46px; }
.stamp { border-radius: 999px; padding: 8px 16px 8px 8px; background: rgba(255,253,247,.7); }
.stamp svg { width: 26px; height: 26px; stroke: currentColor; padding: 3px; border-radius: 50%; background: rgba(242,198,173,.6); box-sizing: content-box; }
@media (max-width: 860px) { .svc-item { padding: 9px 9px 9px 8px; } .svc-item .ico { width: 34px; height: 34px; } }

/* credentials as medallion cards */
.creds { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.cred { align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-bottom: 0; background: rgba(255,253,247,.9); border-radius: 4px 14px 6px 12px; box-shadow: var(--shadow-paper); font-size: 14.5px; }
.cred .ico { width: 42px; height: 42px; }
.academy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.academy .ico.sm { width: 26px; height: 26px; margin-right: 8px; }
.academy > span[data-i18n] { margin-right: 6px; }
.ind li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border: 0; border-radius: 999px; background: rgba(255,253,247,.95); box-shadow: 0 1px 0 rgba(70,50,20,.1), 0 5px 12px -7px rgba(70,50,20,.45); }
.ind li svg { width: 18px; height: 18px; flex: none; padding: 3px; border-radius: 50%; background: rgba(207,227,241,.85); box-sizing: content-box; }
.ind li:nth-child(even) svg { background: rgba(242,198,173,.75); }
html:not([data-mode="pro"]) .ind li:nth-child(3n), html:not([data-mode="pro"]) .ind li:nth-child(4n) { background: rgba(255,253,247,.95); }
@media (max-width: 860px) {
  .creds { grid-template-columns: 1fr; gap: 5px; }
  .cred { padding: 5px 8px 5px 6px; gap: 9px; font-size: 13px; line-height: 1.25; }
  .cred .ico { width: 30px; height: 30px; }
  .academy .ico.sm { width: 20px; height: 20px; margin-right: 6px; }
  .ind li { padding: 3px 9px 3px 4px; gap: 5px; }
  .ind li svg { width: 13px; height: 13px; padding: 2px; }
}

/* project captions */
.pol-h { display: flex; align-items: center; gap: 10px; }
.pol-h .ico.sm { width: 32px; height: 32px; }
@media (max-width: 860px) { .pol-h { gap: 7px; } .pol-h .ico.sm { width: 26px; height: 26px; } }

/* contact topic chips */
.chip { display: inline-flex; align-items: center; gap: 8px; padding-left: 8px; }
.chip svg { width: 18px; height: 18px; flex: none; stroke: #bfe3f6; padding: 4px; border-radius: 50%; background: rgba(255,255,255,.1); box-sizing: content-box; }
.chip[aria-pressed="true"] svg { stroke: var(--navy-deep); background: rgba(255,255,255,.45); }
@media (max-width: 860px) { .chip { gap: 5px; padding-left: 5px; } .chip svg { width: 14px; height: 14px; padding: 3px; } }
/* connectors re-centred for the larger icon stops */
.tpath li:not(:last-child)::after { left: 24px; top: 48px; }
.tpath li:nth-child(even):not(:last-child)::after { left: -40px; }
@media (max-width: 860px) {
  .tpath li:not(:last-child)::after { left: 20px; top: 40px; width: 40px; }
  .tpath li:nth-child(even):not(:last-child)::after { left: -20px; }
  .creds { grid-template-columns: 1fr 1fr; gap: 6px; }
  .cred { font-size: 11.5px; padding: 6px 6px 6px 5px; gap: 6px; line-height: 1.2; }
  .cred .ico { width: 26px; height: 26px; }
  .stat { display: grid; grid-template-columns: auto 1fr; column-gap: 7px; row-gap: 0; align-items: center; }
  .stat .ico.sm { grid-row: 1 / span 2; }
  .stat > span:last-child { grid-column: 2; }
}
@media (max-width: 860px) {
  .panel-cred { margin-top: 14px; }
  .panel-cred .hand-h { font-size: 21px; }
  .cred-grid { gap: 6px; }
  .ind { margin: 4px 0 6px; }
}
@media (max-width: 860px) {
  .tpn-num { display: none; }
  .tpn-take { padding: 6px 10px; margin-top: 6px; }
  .panel-ai { margin-top: 14px; }
  .panel-ai .hand-h { font-size: 21px; }
  .tp-note { padding: 12px 14px; }
  .tp-note .btn { margin-top: 8px; min-height: 38px; }
}
