:root {
  --paper: #f5f3eb;
  --paper-deep: #ebe8de;
  --ink: #18231f;
  --muted: #69716b;
  --line: #d7d8ce;
  --lime: #cfe39b;
  --coral: #f2a58e;
  --lilac: #c7bdf0;
  --blue: #aacbe8;
  --white: #fffef9;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(24, 35, 31, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #735ce4; outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -80px; background: var(--ink); color: white; padding: 12px 18px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 16px; }

.site-header { max-width: 1380px; margin: auto; height: 96px; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 25px; letter-spacing: -.8px; }
.brand-mark { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; color: var(--lime); background: var(--ink); font-size: 22px; transform: rotate(-5deg); }
.brand-dot { color: #6a8722; }
.main-nav { display: flex; gap: 34px; margin-left: auto; margin-right: 38px; font-size: 14px; font-weight: 600; }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--ink); transition: right .2s; }
.main-nav a:hover::after { right: 0; }
.local-badge { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 9px 13px; color: var(--muted); font-size: 11px; }
.local-badge span { width: 7px; height: 7px; border-radius: 50%; background: #75a23c; box-shadow: 0 0 0 3px #e3ead8; }

main { overflow: hidden; }
.hero { max-width: 1284px; margin: auto; padding: 72px 48px 82px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 72px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: 1.65px; font-weight: 700; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; }
h1 { font-size: clamp(50px, 5.1vw, 76px); line-height: .99; letter-spacing: -4.2px; margin: 25px 0 28px; max-width: 680px; }
h1 em { font-style: normal; position: relative; z-index: 1; white-space: nowrap; }
h1 em::after { content: ""; position: absolute; height: 17px; background: var(--lime); left: -4px; right: -6px; bottom: 3px; z-index: -1; transform: rotate(-2deg); border-radius: 40% 10% 35% 15%; }
.hero-intro { max-width: 570px; color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0; }
.hero-actions { display: flex; gap: 12px; align-items: center; margin-top: 34px; }
.button { border: 0; border-radius: 12px; min-height: 50px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; cursor: pointer; font-weight: 600; font-size: 14px; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: white; box-shadow: 0 7px 0 #bfcf8e; }
.button-primary:hover { box-shadow: 0 9px 0 #bfcf8e; }
.button-quiet { background: transparent; border: 1px solid var(--line); }
.button-dark { background: var(--ink); color: white; }
.hero-meta { display: flex; margin-top: 43px; gap: 0; }
.hero-meta div { display: flex; flex-direction: column; padding: 0 26px; border-left: 1px solid var(--line); }
.hero-meta div:first-child { padding-left: 0; border: 0; }
.hero-meta strong { font-family: "Space Grotesk"; font-size: 20px; }
.hero-meta span { font-size: 11px; color: var(--muted); margin-top: 2px; }

.hero-art { position: relative; min-width: 0; }
.memory-card { background: #202e29; color: white; border-radius: 29px; min-height: 510px; padding: 24px 26px; transform: rotate(2.3deg); box-shadow: 22px 25px 0 #e4e1d7; overflow: hidden; }
.memory-card-top { display: flex; align-items: center; justify-content: space-between; font-size: 10px; letter-spacing: 1.7px; color: #d8dfd9; }
.live-pill { border: 1px solid #52615b; border-radius: 99px; padding: 6px 9px; color: var(--lime); font-size: 9px; }
.neural-map { height: 362px; position: relative; display: grid; place-items: center; }
.neural-map svg { width: 100%; overflow: visible; }
.orbit { fill: none; stroke: #52645c; stroke-width: 1; stroke-dasharray: 4 6; }
.orbit-two { stroke: #3d4c46; }
.connection { fill: none; stroke: #91a398; stroke-width: 1.2; opacity: .7; }
.nodes circle { fill: var(--lilac); stroke: #202e29; stroke-width: 5; }
.nodes circle:nth-child(2n) { fill: var(--coral); }
.nodes circle:nth-child(3n) { fill: var(--lime); }
.core { fill: white; animation: pulse 2.2s infinite; }
.thought { position: absolute; font-family: "Space Grotesk"; font-weight: 600; border-radius: 10px; padding: 10px 14px; color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.thought-one { right: 5%; top: 21%; background: var(--lime); transform: rotate(7deg); font-size: 19px; }
.thought-two { bottom: 17%; left: 3%; background: var(--white); font-size: 11px; transform: rotate(-5deg); }
.memory-card-bottom { border-top: 1px solid #41514a; display: flex; align-items: center; gap: 15px; padding: 22px 2px 0; }
.memory-card-bottom p { font-size: 13px; color: #bdc9c2; margin: 0; line-height: 1.5; }
.memory-card-bottom strong { color: white; }
.mini-icon { color: var(--lime); font-size: 23px; }
.sticky-note { position: absolute; width: 174px; height: 164px; right: -30px; bottom: -37px; background: var(--coral); padding: 21px; transform: rotate(-7deg); box-shadow: 0 15px 25px rgba(24,35,31,.13); display: flex; flex-direction: column; }
.sticky-note span { font-size: 9px; letter-spacing: 1.5px; font-weight: 700; }
.sticky-note strong { font-family: "Space Grotesk"; font-size: 18px; line-height: 1.2; margin-top: 18px; }
.sticky-note i { font-style: normal; margin-left: auto; margin-top: auto; font-size: 23px; }

.principle-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1380px; margin: auto; padding: 0 48px; }
.principle-strip div { padding: 24px 25px; border-left: 1px solid var(--line); font-family: "Space Grotesk"; font-size: 13px; font-weight: 600; }
.principle-strip div:last-child { border-right: 1px solid var(--line); }
.principle-strip span { color: #899189; font-size: 10px; margin-right: 14px; }

.lab-section { max-width: 1284px; margin: auto; padding: 105px 48px 115px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 43px; }
h2 { font-size: clamp(38px, 4vw, 52px); letter-spacing: -2.3px; line-height: 1.08; margin: 14px 0; }
.section-heading p { color: var(--muted); margin: 0; line-height: 1.6; }
.overall-progress { width: 225px; flex: 0 0 auto; }
.progress-label { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 10px; }
.progress-label span { color: var(--muted); }
.progress-track { height: 6px; background: #dddeda; border-radius: 10px; overflow: hidden; }
.progress-track div { width: 0; height: 100%; background: var(--ink); border-radius: inherit; transition: width .5s; }
.lab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lab-card { min-width: 0; border: 1px solid rgba(24,35,31,.1); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-height: 480px; transition: transform .25s, box-shadow .25s; }
.lab-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-coral { background: #f6c9ba; }.card-lilac { background: #d9d2f4; }.card-lime { background: #e5eec4; }.card-blue { background: #cfe2f2; }
.card-top { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; gap: 5px; }
.card-number { font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.status-badge { padding: 5px 8px; border-radius: 99px; background: rgba(255,255,255,.55); font-size: 9px; font-weight: 600; }
.status-badge.done { background: var(--ink); color: white; }
.card-illustration { height: 190px; margin: 0 13px; border-radius: 14px; background: rgba(255,255,255,.28); position: relative; overflow: hidden; }
.card-content { padding: 23px 20px 18px; flex: 1; }
.card-content h3 { font-size: 23px; letter-spacing: -.8px; margin: 0 0 10px; }
.card-content p { font-size: 13px; line-height: 1.6; margin: 0; color: #46514b; }
.card-action { background: transparent; border: 0; border-top: 1px solid rgba(24,35,31,.15); margin: 0 20px; padding: 17px 0 19px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 12px; cursor: pointer; text-align: left; }
.card-action span:last-child { font-size: 18px; transition: transform .2s; }.card-action:hover span:last-child { transform: translate(3px,-3px); }
.illusion-illustration { display: grid; place-items: center; }
.illusion-word { font-family: "Space Grotesk"; font-size: 29px; letter-spacing: -2px; font-weight: 700; position: absolute; transform: rotate(-8deg); }
.word-back { color: transparent; -webkit-text-stroke: 1px rgba(24,35,31,.5); transform: translate(6px, -6px) rotate(-8deg); }
.word-front { color: var(--ink); }
.spark { position: absolute; }.spark-one { top: 25px; right: 27px; font-size: 23px; }.spark-two { bottom: 25px; left: 28px; font-size: 15px; }
.palace-illustration { background: #c3b9e8; }
.room-window { width: 58px; height: 75px; border: 5px solid var(--ink); position: absolute; left: 27px; top: 24px; display: grid; grid-template-columns: 1fr 1fr; background: #dce6ed; }
.room-window i { border-right: 2px solid var(--ink); }.room-window i:last { border: 0; }
.room-lamp { position: absolute; right: 28px; top: 25px; width: 47px; height: 30px; border-radius: 50% 50% 8px 8px; background: var(--lime); border: 3px solid var(--ink); }
.room-lamp::after { content: ""; position: absolute; width: 3px; height: 72px; background: var(--ink); left: 19px; top: 27px; }
.room-sofa { position: absolute; left: 45px; bottom: 26px; width: 132px; height: 54px; border: 3px solid var(--ink); background: var(--coral); border-radius: 16px 16px 7px 7px; }
.room-sofa::before { content: ""; position: absolute; left: -14px; right: -14px; bottom: -3px; height: 30px; background: var(--coral); border: 3px solid var(--ink); border-radius: 12px; }
.room-plant { position: absolute; right: 19px; bottom: 20px; font-size: 53px; }
.room-label { position: absolute; left: 20px; top: 112px; padding: 6px 9px; background: var(--white); font-size: 9px; font-weight: 700; transform: rotate(-7deg); }
.sorter-illustration { background: #dbe8b2; }
.floating-chip { position: absolute; background: var(--white); border: 1px solid var(--ink); border-radius: 99px; padding: 6px 10px; font-size: 9px; font-weight: 600; z-index: 2; box-shadow: 3px 3px 0 var(--ink); }
.chip-a { left: 18px; top: 26px; transform: rotate(-8deg); }.chip-b { right: 20px; top: 35px; transform: rotate(7deg); }.chip-c { left: 70px; top: 77px; transform: rotate(2deg); }
.black-hole { position: absolute; width: 75px; height: 75px; border-radius: 50%; background: var(--ink); border: 9px solid #6e8147; box-shadow: inset 0 0 0 7px #26342e, 0 0 0 1px var(--ink); }
.hole-a { bottom: -18px; left: 16px; }.hole-b { right: 9px; bottom: 14px; transform: scale(.7); }
.quiz-illustration { background: #a8cbe5; display: flex; align-items: center; justify-content: center; gap: 8px; }
.quiz-tile { width: 57px; height: 68px; background: var(--white); border: 2px solid var(--ink); border-radius: 9px; display: grid; place-items: center; font-family: "Space Grotesk"; font-weight: 700; font-size: 22px; position: relative; box-shadow: 4px 4px 0 rgba(24,35,31,.9); }
.quiz-tile span { position: absolute; right: 5px; top: 2px; font-size: 13px; }.tile-right { background: var(--lime); transform: translateY(-10px) rotate(4deg); }.tile-wrong { transform: rotate(-7deg); }.tile-wrong.second { transform: rotate(7deg); }
.quiz-question { position: absolute; right: 18px; top: 16px; font-family: "Space Grotesk"; font-size: 30px; font-weight: 700; }

.method-section { background: var(--ink); color: white; padding: 100px max(48px, calc((100vw - 1188px) / 2)); display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.eyebrow.light { color: var(--lime); }
.method-intro h2 { font-size: 45px; margin-top: 20px; }
.method-intro h2 em { font-style: normal; color: #a8b2ac; }
.method-intro p { color: #abb7b0; font-size: 14px; line-height: 1.75; max-width: 420px; margin: 24px 0; }
.method-intro a { color: var(--lime); font-size: 12px; font-weight: 600; border-bottom: 1px solid #64744b; padding-bottom: 5px; }
.method-list article { display: grid; grid-template-columns: 42px 1fr auto; gap: 18px; align-items: start; border-bottom: 1px solid #3c4943; padding: 25px 0; }
.method-list article:first-child { padding-top: 5px; }
.method-icon { width: 40px; height: 40px; border: 1px solid #50615a; border-radius: 50%; display: grid; place-items: center; color: var(--lime); font-size: 20px; }
.method-list h3 { font-size: 18px; margin: 0 0 7px; }
.method-list p { color: #aab5af; font-size: 12px; line-height: 1.65; margin: 0; max-width: 400px; }
.method-tag { font-size: 8px; letter-spacing: 1px; color: var(--lime); background: #2d3b34; border-radius: 99px; padding: 6px 8px; white-space: nowrap; }
.return-section { max-width: 1188px; margin: auto; padding: 80px 0; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.return-section > div { position: relative; }
.return-section h2 { font-size: 42px; margin: 0; }
.return-spark { position: absolute; color: var(--coral); right: -40px; top: 0; font-size: 30px; }
.return-section p { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.site-footer { border-top: 1px solid var(--line); max-width: 1380px; margin: auto; padding: 30px 48px; display: flex; align-items: center; gap: 35px; color: var(--muted); font-size: 11px; }
.footer-brand { color: var(--ink); font-size: 19px; }.footer-brand .brand-mark svg { width: 24px; height: 30px; }
.site-footer p { margin: 0; }.site-footer > span { margin-left: auto; }

/* Experiment dialog */
.lab-dialog { width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 25px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.3); overflow: auto; }
.lab-dialog::backdrop { background: rgba(15,24,20,.72); backdrop-filter: blur(6px); }
.dialog-shell { min-height: 500px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 27px 32px 21px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(245,243,235,.96); backdrop-filter: blur(12px); z-index: 10; }
.dialog-kicker { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); }
.dialog-header h2 { font-size: 28px; letter-spacing: -1px; margin: 5px 0 0; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; }
.icon-button:hover { background: var(--paper-deep); }
.dialog-content { padding: 30px 32px 34px; }
.experiment-intro { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 24px; }
.experiment-layout { display: grid; grid-template-columns: 1fr 240px; gap: 24px; }
.experiment-panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 25px; }
.experiment-side { background: var(--paper-deep); border-radius: 18px; padding: 22px; }
.experiment-side h3 { font-size: 14px; margin: 0 0 10px; }.experiment-side p { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }
.step-label { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 1.2px; font-weight: 700; margin-bottom: 17px; }
.step-label span { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: white; display: grid; place-items: center; font-size: 10px; }
.reading-text { font-family: "Space Grotesk"; font-size: 20px; line-height: 1.8; letter-spacing: -.3px; }
.reading-text p { margin: 0 0 8px; }
.line-number { color: #a0a69f; font-family: "DM Sans"; font-size: 10px; display: inline-block; width: 25px; vertical-align: middle; }
.experiment-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 24px; }
.small-note { font-size: 11px; color: var(--muted); }
.feedback { border-radius: 12px; padding: 16px 18px; margin-top: 18px; font-size: 13px; line-height: 1.6; }
.feedback.success { background: #e4f2c6; border: 1px solid #c2d993; }.feedback.error { background: #fee4dc; border: 1px solid #f2b8a9; }
.feedback strong { display: block; margin-bottom: 3px; }
.answer-input { width: 100%; border: 1px solid #bfc4bb; border-radius: 10px; padding: 13px 14px; background: white; color: var(--ink); }
.answer-input::placeholder { color: #969d96; }
.glitching { animation: glitch .38s 2; }
.revealed-line { background: #ffe1d6; padding: 0 3px; }

.palace-board { display: grid; grid-template-columns: 190px 1fr; gap: 20px; }
.concept-list { display: flex; flex-direction: column; gap: 9px; }
.concept-chip { border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 12px 13px; text-align: left; cursor: pointer; font-size: 12px; font-weight: 600; }
.concept-chip.selected { background: var(--ink); color: white; border-color: var(--ink); }
.concept-chip.placed { opacity: .45; text-decoration: line-through; cursor: default; }
.room { min-height: 390px; border-radius: 19px; background: #d8cef6; position: relative; overflow: hidden; border: 1px solid #b8abdf; }
.room::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: #c1b5e8; transform: skewY(-5deg); transform-origin: right; }
.room-object { position: absolute; z-index: 2; border: 0; background: transparent; cursor: pointer; padding: 5px; text-align: center; transition: transform .2s; }
.room-object:hover { transform: scale(1.08); }
.room-object .object-icon { display: block; font-size: 45px; filter: saturate(.8); }
.room-object .object-name { display: inline-block; background: rgba(255,255,255,.85); border-radius: 99px; padding: 4px 8px; font-size: 9px; font-weight: 600; margin-top: 4px; }
.room-object.placed .object-name { background: var(--lime); }
.room-object.pop { animation: objectPop .6s; }
.object-microwave { left: 10%; top: 15%; }.object-plant { right: 8%; top: 13%; }.object-sofa { left: 32%; bottom: 13%; }.object-clock { right: 10%; bottom: 24%; }.object-lamp { left: 10%; bottom: 21%; }
.scene-caption { position: absolute; z-index: 4; left: 18px; right: 18px; top: 18px; background: var(--ink); color: white; border-radius: 12px; padding: 13px 16px; font-size: 12px; line-height: 1.5; box-shadow: var(--shadow); }
.scene-caption strong { color: var(--lime); }
.palace-progress { margin-top: 17px; font-size: 12px; color: var(--muted); }

.sorter-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.timer { font-family: "Space Grotesk"; font-weight: 700; font-size: 22px; }.timer.danger { color: #bc4d35; }
.sorter-score { font-size: 12px; color: var(--muted); }
.sorter-board { display: grid; grid-template-columns: 1fr 230px; gap: 20px; }
.bubble-field { min-height: 360px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; }
.sort-chip { border: 1px solid var(--ink); background: white; padding: 11px 13px; border-radius: 99px; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 2px 3px 0 var(--ink); }
.sort-chip:nth-child(3n) { transform: rotate(2deg); }.sort-chip:nth-child(3n+1) { transform: rotate(-2deg); }
.sort-chip.selected { background: var(--coral); }.sort-chip:disabled { opacity: .3; box-shadow: none; }
.holes { display: flex; flex-direction: column; gap: 12px; }
.hole-button { min-height: 105px; border: 0; border-radius: 17px; background: var(--ink); color: white; cursor: pointer; padding: 16px; position: relative; overflow: hidden; }
.hole-button::before { content: ""; position: absolute; width: 70px; height: 70px; border: 1px dashed #6a7c73; border-radius: 50%; left: -20px; top: 17px; }
.hole-button strong { position: relative; display: block; font-family: "Space Grotesk"; font-size: 16px; }.hole-button span { position: relative; font-size: 10px; color: #aebcb5; }
.hole-button.reject { animation: shake .35s; background: #8e402f; }.hole-button.accept { background: #3c642c; }

.quiz-progress { display: flex; gap: 7px; margin-bottom: 25px; }
.quiz-progress i { display: block; height: 5px; flex: 1; background: #dcddd5; border-radius: 10px; }.quiz-progress i.active { background: var(--ink); }.quiz-progress i.done { background: #8ba84f; }
.quiz-question-text { font-family: "Space Grotesk"; font-size: 23px; line-height: 1.3; letter-spacing: -.5px; margin: 0 0 22px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.quiz-option { border: 1px solid var(--line); background: var(--white); border-radius: 13px; padding: 17px; text-align: left; cursor: pointer; font-size: 13px; line-height: 1.45; display: flex; gap: 12px; align-items: flex-start; min-height: 78px; }
.quiz-option .option-letter { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 6px; background: var(--paper-deep); display: grid; place-items: center; font-weight: 700; font-size: 10px; }
.quiz-option:hover:not(:disabled) { border-color: var(--ink); }.quiz-option.correct { background: #e4f2c6; border-color: #8ba84f; }.quiz-option.wrong { background: #fee4dc; border-color: #da8c78; }.quiz-option:disabled { cursor: default; }
.completion { text-align: center; padding: 22px 10px 10px; }
.completion-icon { width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 34px; box-shadow: 0 0 0 10px #edf5d9; }
.completion h3 { font-size: 30px; margin: 0 0 10px; }.completion p { color: var(--muted); line-height: 1.65; max-width: 510px; margin: 0 auto 24px; font-size: 14px; }
.completion-stats { display: flex; justify-content: center; gap: 12px; margin: 25px 0; }.completion-stats div { background: var(--paper-deep); padding: 14px 20px; border-radius: 12px; min-width: 110px; }.completion-stats strong { display: block; font-family: "Space Grotesk"; font-size: 24px; }.completion-stats span { font-size: 10px; color: var(--muted); }
.completion-actions { display: flex; justify-content: center; gap: 10px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--ink); color: white; border-radius: 99px; padding: 12px 20px; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: var(--shadow); }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes pulse { 50% { r: 13px; opacity: .5; } }
@keyframes glitch { 20% { transform: translateX(-5px); filter: hue-rotate(40deg); } 40% { transform: translateX(6px); } 60% { transform: translateX(-3px); filter: none; } }
@keyframes objectPop { 40% { transform: scale(1.4) rotate(-8deg); } 70% { transform: scale(.9) rotate(4deg); } }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* Herhaling: de terugkeer-banner bovenaan de pagina */
.review-banner { width: calc(100% - 96px); max-width: 1188px; margin: 8px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.review-banner[hidden] { display: none; }
.review-banner > div { display: grid; gap: 3px; }
.review-banner strong { font-family: "Space Grotesk"; font-size: 19px; }
.review-banner span:not(.review-banner-kicker) { color: var(--muted); font-size: 13px; }
.review-banner-kicker { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.review-banner.due { background: var(--lime); border-color: #b7da55; }
.review-banner.due span:not(.review-banner-kicker), .review-banner.due .review-banner-kicker { color: var(--ink); }
.review-banner .button { flex-shrink: 0; }
.timer-toggle { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer; margin-left: 10px; vertical-align: middle; }
.timer-toggle:hover { background: var(--paper-deep); }
.fluency-hint { font-family: "Space Grotesk"; font-size: 18px; margin-top: 8px; }

@media (max-width: 1100px) {
  .hero { gap: 40px; }.hero-art { transform: scale(.9); transform-origin: center; }.sticky-note { right: -10px; }
  .lab-grid { grid-template-columns: repeat(2, 1fr); }.lab-card { min-height: 455px; }.card-illustration { height: 210px; }
  .method-section { gap: 55px; }.return-section { margin: 0 48px; }
}
@media (max-width: 800px) {
  .site-header { height: 78px; padding: 0 24px; }.main-nav { margin-right: 0; }.local-badge { display: none; }
  .hero { grid-template-columns: 1fr; padding: 52px 24px 75px; }.review-banner { width: calc(100% - 48px); flex-direction: column; align-items: stretch; }.hero-copy { max-width: 650px; }.hero-art { width: min(540px, 95%); margin: auto; transform: none; }.memory-card { min-height: 460px; }
  .principle-strip { grid-template-columns: 1fr 1fr; padding: 0 24px; }.principle-strip div:nth-child(3) { border-top: 1px solid var(--line); }.principle-strip div:nth-child(4) { border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
  .lab-section { padding: 75px 24px; }.section-heading { align-items: flex-start; }.overall-progress { width: 180px; margin-top: 30px; }
  .method-section { padding: 75px 24px; grid-template-columns: 1fr; gap: 45px; }.return-section { margin: 0 24px; padding: 60px 0; }
  .site-footer { padding: 28px 24px; }.site-footer p { display: none; }
  .experiment-layout, .sorter-board { grid-template-columns: 1fr; }.experiment-side { display: none; }.holes { display: grid; grid-template-columns: repeat(3,1fr); }.hole-button { min-height: 90px; }
  .palace-board { grid-template-columns: 150px 1fr; }
}
@media (max-width: 560px) {
  .main-nav { gap: 18px; font-size: 12px; }.brand { font-size: 21px; }.brand-mark { width: 31px; height: 31px; }
  h1 { font-size: 50px; letter-spacing: -3px; }.hero-intro { font-size: 16px; }.hero-actions { align-items: stretch; flex-direction: column; }.button { width: 100%; }.hero-meta div { padding: 0 16px; }.hero-meta strong { font-size: 18px; }.hero-meta span { font-size: 9px; }
  .memory-card { min-height: 390px; padding: 20px; }.neural-map { height: 290px; }.sticky-note { width: 145px; height: 139px; bottom: -45px; }.sticky-note strong { font-size: 15px; margin-top: 12px; }
  .principle-strip div { padding: 18px 10px; font-size: 11px; }.principle-strip span { margin-right: 5px; }
  .section-heading { flex-direction: column; gap: 10px; }.overall-progress { width: 100%; margin-top: 5px; }.lab-grid { grid-template-columns: 1fr; }.lab-card { min-height: 450px; }
  .method-intro h2 { font-size: 36px; }.method-list article { grid-template-columns: 40px 1fr; }.method-tag { grid-column: 2; justify-self: start; }.return-section { flex-direction: column; align-items: flex-start; }.return-section h2 { font-size: 35px; }.return-spark { right: -25px; }
  .site-footer > span { font-size: 9px; text-align: right; }
  .dialog-header { padding: 20px; }.dialog-header h2 { font-size: 24px; }.dialog-content { padding: 22px 20px 25px; }.experiment-panel { padding: 19px; }.reading-text { font-size: 17px; }.experiment-actions { align-items: stretch; flex-direction: column; }.small-note { order: 2; }
  .palace-board { grid-template-columns: 1fr; }.concept-list { flex-direction: row; flex-wrap: wrap; }.concept-chip { padding: 9px 11px; }.room { min-height: 370px; }
  .bubble-field { min-height: 270px; padding: 15px; }.holes { grid-template-columns: 1fr; }.hole-button { min-height: 70px; }.quiz-options { grid-template-columns: 1fr; }.quiz-question-text { font-size: 20px; }.completion-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Taalkeuze (leerlingkant) */
.lang-picker { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 4px 6px 4px 10px; background: var(--white); font-size: 13px; flex-shrink: 0; }
.lang-picker select { border: 0; background: transparent; font: 600 13px "DM Sans", sans-serif; color: var(--ink); cursor: pointer; padding: 4px 2px; max-width: 120px; }
/* Rechts-naar-links (Arabisch) */
[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] body, [dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] select, [dir="rtl"] button { font-family: "DM Sans", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
@media (max-width: 800px) { .lang-picker select { max-width: 92px; } }
@media (max-width: 560px) { .site-header .lang-picker { padding: 2px 4px 2px 8px; } .lang-picker > span:first-child { display: none; } }

/* ---------- Nieuwe stijl: schrift met een vonk (zachte kleuren) ---------- */
body { background-color: var(--paper); background-image: radial-gradient(#d9dacf 1.1px, transparent 1.3px); background-size: 24px 24px; }
body.calm { background-image: none; }
.brand-mark { width: auto; height: auto; background: none; transform: none; border-radius: 0; display: inline-flex; }
.brand-mark svg { display: block; }
.button-dark { box-shadow: 3px 3px 0 var(--lime); }
.button-primary { box-shadow: 4px 4px 0 var(--lime); border: 2px solid var(--ink); }
.button-primary:hover { box-shadow: 6px 6px 0 var(--lime); }
.button-quiet { border: 2px solid currentColor; background: transparent; }
.hero-actions .button-quiet, .section-heading .button-quiet { background: var(--white); }

/* Bovenaan: een schriftblaadje met de vergeetcurve */
.notebook { position: relative; background-color: var(--white); background-image: repeating-linear-gradient(transparent 0 33px, #e3e9f3 33px 34px); border: 2px solid var(--ink); border-radius: 18px; padding: 26px 22px 16px 52px; box-shadow: 7px 7px 0 var(--ink); }
.notebook::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 36px; width: 2px; background: #f3c6b8; }
.notebook svg { display: block; width: 100%; height: auto; margin-top: 6px; }
.notebook-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); }
.tape { position: absolute; top: -12px; height: 24px; border-radius: 3px; }
.tape-one { inset-inline-start: 44px; width: 92px; background: rgba(199, 189, 240, .8); transform: rotate(-4deg); }
.tape-two { inset-inline-end: 44px; width: 80px; background: rgba(207, 227, 155, .9); transform: rotate(3deg); }
.hero-bubble { position: absolute; inset-inline-end: -8px; bottom: -34px; max-width: 300px; background: var(--white); border: 2px solid var(--ink); border-radius: 16px 16px 4px 16px; padding: 12px 15px; box-shadow: 3px 3px 0 var(--lilac); font-size: 14px; line-height: 1.45; }
.hero-bubble p { margin: 0; }

/* Kaarten en blokken: donkere rand, zachte harde schaduw */
.lab-card { border: 2px solid var(--ink); }
.lab-card:hover { box-shadow: 6px 6px 0 var(--ink); }
.ai-section { border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--blue); }
.bridge-section { border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--coral); }
.principle-strip { border-color: transparent; gap: 12px; padding-top: 4px; padding-bottom: 4px; }
.principle-strip div { border: 2px solid var(--ink) !important; border-radius: 14px; background: var(--white); padding: 16px 18px; }
@media (max-width: 800px) {
  .notebook { padding: 20px 14px 12px 40px; box-shadow: 5px 5px 0 var(--ink); }
  .notebook::before { inset-inline-start: 26px; }
  .hero-bubble { position: relative; inset: auto; margin: 18px 0 0 auto; }
}
@media (max-width: 800px) {
  .site-header .lang-picker { order: 2; margin-inline-start: auto; }
  .lang-picker select { max-width: 124px; }
  .brand-mark { width: auto; height: auto; }
}
@media (min-width: 801px) { .hero-bubble { bottom: -78px; inset-inline-end: 24px; } .hero { padding-bottom: 120px; } }

/* Getekende iconen (public/icons.js) */
.icon { display: inline-block; vertical-align: -0.32em; flex-shrink: 0; }
.eyebrow .icon { width: 1.9em; height: 1.9em; vertical-align: middle; }
.scene-emoji .icon { display: block; margin: 0 auto; }
.app-version { opacity: .6; margin-inline-start: 8px; font-size: 11px; }
