:root {
  --ink: #20231e;
  --paper: #f1ead8;
  --surface: #fffaf0;
  --moss: #59753a;
  --leaf: #8fae52;
  --dirt: #9b714a;
  --sky: #91c5cf;
  --sand: #d9c28a;
  --line: #b8aa86;
  --muted: #6d6c60;
  --danger: #b75138;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --shadow: 6px 6px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--font-body); }
a { color: inherit; }
button, input, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.page-progress { position: fixed; inset: 0 0 auto; z-index: 100; height: 4px; pointer-events: none; }
.page-progress span { display: block; width: 100%; height: 100%; background: var(--leaf); transform: scaleX(0); transform-origin: left; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(241, 234, 216, .94); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 500 13px/1 var(--font-mono); letter-spacing: .08em; }
.logo-blocks { width: 26px; height: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; transform: rotate(45deg); }
.logo-blocks i { display: block; background: var(--moss); animation: logo-build 2.8s steps(2, end) infinite; }
.logo-blocks i:nth-child(2), .logo-blocks i:nth-child(3) { background: var(--leaf); }
.logo-blocks i:nth-child(2) { animation-delay: .12s; }.logo-blocks i:nth-child(3) { animation-delay: .24s; }.logo-blocks i:nth-child(4) { animation-delay: .36s; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { position: relative; padding: 28px 0; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--ink); }
.site-nav a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--moss); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 7px; padding: 28px 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: 700 13px/1 var(--font-body); }
.nav-dropdown-toggle:hover, .nav-dropdown-toggle[aria-expanded='true'], .nav-dropdown.is-active-group .nav-dropdown-toggle { color: var(--ink); }
.nav-dropdown.is-active-group .nav-dropdown-toggle::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--moss); }
.dropdown-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .16s ease; }
.nav-dropdown-toggle[aria-expanded='true'] .dropdown-caret { transform: rotate(-135deg) translateY(1px); }
.dropdown-menu { position: absolute; top: 100%; left: 50%; z-index: 30; min-width: 190px; padding: 7px; border: 1px solid var(--ink); background: var(--surface); box-shadow: 5px 5px 0 var(--ink); opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.nav-dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown-menu a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.dropdown-menu a:hover, .dropdown-menu a[aria-current='page'] { background: var(--paper); color: var(--moss); }
@media (hover: hover) {
  .nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.menu-button { display: none; width: 42px; height: 42px; padding: 11px; border: 1px solid var(--line); background: transparent; }
.menu-button > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }
.menu-button > span:not(.sr-only) { transition: transform .2s steps(3, end); }
.menu-button[aria-expanded='true'] > span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded='true'] > span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

.hero { min-height: 650px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 78px; align-items: center; padding-block: 74px 84px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: var(--muted); font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow > span { width: 8px; height: 8px; background: var(--leaf); box-shadow: 8px 0 0 var(--moss); }
.eyebrow > span { animation: pixel-blink 2.4s steps(2, end) infinite; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(50px, 6.3vw, 86px); font-weight: 500; line-height: .96; letter-spacing: -.06em; }
.hero h1 strong { color: var(--moss); font-weight: 800; }
.hero-line { display: block; transform-origin: left bottom; animation: text-build .65s cubic-bezier(.2, .8, .2, 1) both; }
.hero-line:nth-child(2) { animation-delay: .1s; }.hero-line:nth-child(3) { animation-delay: .2s; }
.subheadline { margin: 28px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 23px); }
.text-link { display: inline-flex; align-items: center; gap: 13px; margin-top: 32px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); text-decoration: none; font-weight: 700; font-size: 13px; }
.text-link span { color: var(--moss); }
.text-link:hover span { animation: arrow-hop .55s steps(4, end) infinite; }
.hero-visual { position: relative; min-height: 470px; display: grid; place-items: center; isolation: isolate; --mx: 50%; --my: 50%; }
.hero-visual::after { content: ''; position: absolute; inset: 3%; z-index: -1; background: radial-gradient(circle at var(--mx) var(--my), rgba(145, 197, 207, .75), transparent 31%); pointer-events: none; }
.hero-grid { position: absolute; inset: 7% 2% 1% 5%; z-index: -2; display: grid; grid-template-columns: repeat(6, 1fr); transform: rotate(-3deg); border: 1px solid var(--ink); box-shadow: 11px 11px 0 var(--moss); }
.hero-grid > span { border: 1px solid rgba(32, 35, 30, .16); background: var(--sand); animation: block-breathe 4s steps(3, end) infinite; }
.hero-grid > span:nth-child(3n) { background: var(--dirt); }
.hero-grid > span:nth-child(4n) { background: var(--moss); }
.hero-grid > span:nth-child(7n) { background: var(--leaf); }
.hero-grid > span:nth-child(2n) { animation-delay: -.8s; }.hero-grid > span:nth-child(5n) { animation-delay: -1.7s; }
.figurine-trigger { position: relative; z-index: 1; display: block; width: 126%; max-width: none; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.figurine-trigger:focus-visible { outline: 4px solid var(--sky); outline-offset: 6px; }
.hero-figurines { display: block; width: 100%; height: auto; transform: translate(1%, 2%); filter: drop-shadow(0 18px 18px rgba(32, 35, 30, .2)); animation: figurine-bob 3.2s steps(6, end) infinite; transition: filter .16s steps(2, end); }
.figurine-trigger:hover .hero-figurines { filter: drop-shadow(0 22px 16px rgba(32, 35, 30, .27)) brightness(1.06); }
.play-hint { position: absolute; top: 7%; right: 2%; padding: 8px 10px; border: 1px solid var(--ink); background: var(--sky); box-shadow: 3px 3px 0 var(--ink); font: 500 9px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; animation: hint-wiggle 2.5s steps(5, end) infinite; }
.hero-visual.is-celebrating .hero-figurines { animation: hero-celebrate 1.05s steps(9, end); }
.hero-visual.is-celebrating .hero-grid > span { animation: grid-celebrate 1.05s steps(5, end); }
.hero-visual.is-celebrating .play-hint { background: var(--leaf); animation: message-pop 1.05s steps(6, end); }
.celebration-burst { position: absolute; left: 52%; top: 48%; z-index: 6; width: 1px; height: 1px; pointer-events: none; }
.celebration-burst i { position: absolute; width: 14px; height: 14px; opacity: 0; background: var(--leaf); box-shadow: 5px 5px 0 rgba(32, 35, 30, .25); }
.celebration-burst i:nth-child(2n) { background: var(--sky); }.celebration-burst i:nth-child(3n) { background: var(--sand); }.celebration-burst i:nth-child(4n) { background: var(--dirt); }
.hero-visual.is-celebrating .celebration-burst i { animation: idea-burst .95s steps(7, end) forwards; }
.celebration-burst i:nth-child(1) { --burst-x: -150px; --burst-y: -105px; }.celebration-burst i:nth-child(2) { --burst-x: -62px; --burst-y: -155px; animation-delay: .04s !important; }.celebration-burst i:nth-child(3) { --burst-x: 52px; --burst-y: -148px; }.celebration-burst i:nth-child(4) { --burst-x: 142px; --burst-y: -82px; animation-delay: .08s !important; }.celebration-burst i:nth-child(5) { --burst-x: 155px; --burst-y: 42px; }.celebration-burst i:nth-child(6) { --burst-x: 68px; --burst-y: 112px; animation-delay: .04s !important; }.celebration-burst i:nth-child(7) { --burst-x: -72px; --burst-y: 105px; }.celebration-burst i:nth-child(8) { --burst-x: -142px; --burst-y: 36px; animation-delay: .08s !important; }
.hero-caption { position: absolute; right: -2%; bottom: 1%; z-index: 2; width: 58%; margin: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--ink); font: 500 11px/1.55 var(--font-mono); box-shadow: 4px 4px 0 var(--ink); }
.frame-corner { position: absolute; z-index: 5; width: 34px; height: 34px; pointer-events: none; animation: corner-hop 2.2s steps(2, end) infinite; }
.frame-corner::before, .frame-corner::after { content: ''; position: absolute; background: var(--ink); }
.frame-corner::before { width: 100%; height: 5px; }.frame-corner::after { width: 5px; height: 100%; }
.frame-corner.top-left { left: -3%; top: 1%; }.frame-corner.top-right { right: -3%; top: 1%; transform: rotate(90deg); animation-delay: -.55s; }.frame-corner.bottom-right { right: -3%; bottom: -2%; transform: rotate(180deg); animation-delay: -1.1s; }.frame-corner.bottom-left { left: -3%; bottom: -2%; transform: rotate(270deg); animation-delay: -1.65s; }

.play-strip { overflow: hidden; border-block: 1px solid var(--ink); background: var(--leaf); }
.play-track { display: flex; width: 100%; align-items: center; justify-content: center; gap: 28px; min-height: 54px; padding-inline: 20px; }
.play-track span { font: 500 12px/1 var(--font-mono); letter-spacing: .14em; animation: strip-word-hop 3s steps(4, end) infinite; }.play-track span:nth-of-type(2) { animation-delay: -.5s; }.play-track span:nth-of-type(3) { animation-delay: -1s; }.play-track span:nth-of-type(4) { animation-delay: -1.5s; }.play-track span:nth-of-type(5) { animation-delay: -2s; }
.play-track i { width: 12px; height: 12px; flex: 0 0 12px; background: var(--paper); box-shadow: 6px 6px 0 var(--moss); transform: rotate(45deg); }

.experiments { padding-block: 105px 120px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr .62fr; gap: 80px; align-items: end; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: 1; letter-spacing: -.055em; }
.section-heading > p { max-width: 490px; margin: 0; color: var(--muted); line-height: 1.75; }
.experiments-list { display: grid; gap: 22px; }
.experiment-card { display: grid; grid-template-columns: 90px 170px 1fr auto; gap: 28px; align-items: center; min-height: 230px; padding: 28px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transform-style: preserve-3d; transition: transform .16s ease, box-shadow .16s ease; }
.experiment-card:hover { box-shadow: 10px 10px 0 var(--moss); }
.experiment-number { align-self: start; font: 500 10px/1 var(--font-mono); color: var(--muted); }
.experiment-icon { width: 150px; height: 150px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.experiment-icon i { border: 1px solid rgba(32, 35, 30, .15); background: var(--sand); transition: transform .16s steps(2, end); }
.experiment-icon i:nth-child(2), .experiment-icon i:nth-child(4), .experiment-icon i:nth-child(8) { background: var(--moss); }
.experiment-icon i:nth-child(5) { background: var(--sky); }
.experiment-card:hover .experiment-icon i:nth-child(odd) { transform: translateY(-5px); }.experiment-card:hover .experiment-icon i:nth-child(even) { transform: translateY(5px); }
.experiment-content { display: grid; justify-items: start; gap: 10px; }
.experiment-content .status { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid var(--line); font: 500 9px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.status i { width: 6px; height: 6px; background: var(--leaf); }
.experiment-content strong { font-size: 30px; letter-spacing: -.035em; }
.experiment-content > span:last-child { max-width: 530px; color: var(--muted); line-height: 1.6; }
.card-action { align-self: end; font: 500 11px/1 var(--font-mono); }
.card-action b { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 8px; background: var(--moss); color: white; }

.site-footer { border-top: 1px solid var(--line); background: var(--ink); color: var(--paper); }
.footer-inner { min-height: 150px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.site-footer p { margin: 0; color: #c4bfaf; font-size: 12px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--paper); text-decoration: none; font-size: 12px; }
.copyright { text-align: right; }

.help-hero { overflow: hidden; background: var(--ink); color: var(--paper); }
.help-hero-inner { min-height: 500px; display: grid; grid-template-columns: .82fr .48fr 1fr; gap: 40px; align-items: center; padding-block: 58px; }
.eyebrow.light { color: #c4bfaf; }
.help-hero h1, .contact-page h1, .not-found h1 { margin: 0; font-size: clamp(52px, 7vw, 88px); line-height: .94; letter-spacing: -.06em; }
.help-hero h1 + p { max-width: 520px; margin: 25px 0 0; color: #c4bfaf; font-size: 17px; line-height: 1.7; }
.help-guide-figure { display: block; width: 128%; max-width: 300px; height: auto; justify-self: center; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .28)); transform: translateY(4%); animation: guide-wave 3s steps(5, end) infinite; }
.help-search-wrap label { display: block; margin-bottom: 10px; color: #c4bfaf; font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.help-search { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--paper); background: var(--surface); box-shadow: 7px 7px 0 var(--moss); }
.help-search > span { width: 15px; height: 15px; border: 2px solid var(--ink); border-radius: 50%; position: relative; }
.help-search > span::after { content: ''; position: absolute; width: 7px; height: 2px; right: -5px; bottom: -2px; background: var(--ink); transform: rotate(45deg); }
.help-search input { width: 100%; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.help-hero:has(#help-search:focus) .help-guide-figure { filter: drop-shadow(0 20px 16px rgba(0, 0, 0, .34)) brightness(1.08); animation: guide-thinking .8s steps(5, end) infinite alternate; }
.help-search kbd { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); }
.help-search-wrap > p { margin: 17px 0 0; color: #c4bfaf; font: 400 10px/1 var(--font-mono); }
.help-content { padding-block: 100px 120px; }
.filter-row { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 38px; }
.filter-row h2 { margin: 0; font-size: clamp(36px, 4vw, 54px); letter-spacing: -.05em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { padding: 9px 13px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: 500 10px/1 var(--font-mono); text-transform: uppercase; }
.filter-button:hover, .filter-button.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.filter-button.is-active { animation: filter-snap .24s steps(3, end); box-shadow: 3px 3px 0 var(--moss); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card { min-height: 330px; padding: 24px; border: 1px solid var(--line); background: var(--surface); transition: transform .16s steps(2, end), box-shadow .16s steps(2, end); }
.guide-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--moss); }
.guide-card:has(details[open]) { border-color: var(--moss); background: color-mix(in srgb, var(--surface) 90%, var(--leaf)); box-shadow: 5px 5px 0 var(--moss); }
.guide-card:has(details[open]) .guide-marker { animation: marker-dance .8s steps(5, end); }
.guide-card[hidden] { display: none; }
.guide-marker { display: block; width: 32px; height: 32px; margin-bottom: 30px; box-shadow: 16px 16px 0 color-mix(in srgb, currentColor 45%, transparent); }
.guide-marker.moss { background: var(--moss); color: var(--leaf); }.guide-marker.sand { background: var(--sand); color: var(--dirt); }.guide-marker.sky { background: var(--sky); color: var(--moss); }.guide-marker.dirt { background: var(--dirt); color: var(--sand); }.guide-marker.leaf { background: var(--leaf); color: var(--moss); }.guide-marker.ink { background: var(--ink); color: var(--moss); }
.guide-card > p:first-of-type { color: var(--muted); font: 500 9px/1 var(--font-mono); letter-spacing: .08em; }
.guide-card h3 { min-height: 62px; margin: 14px 0 12px; font-size: 21px; line-height: 1.35; letter-spacing: -.025em; }
.guide-card h3 + p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.guide-card details { margin-top: 20px; border-top: 1px solid var(--line); }
.guide-card summary, .guide-card > a { display: flex; justify-content: space-between; padding-top: 15px; cursor: pointer; font: 500 11px/1.2 var(--font-mono); text-decoration: none; list-style: none; }
.guide-card details > div { padding-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.guide-card details[open] summary span { transform: rotate(45deg); }
.empty-state { padding: 70px 20px; border: 1px dashed var(--line); text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; background: var(--sand); font: 500 23px/1 var(--font-mono); }
.empty-state h3 { margin: 0; font-size: 26px; }.empty-state p { color: var(--muted); }.empty-state button { padding: 9px 12px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-weight: 700; }
.process-section { padding-block: 90px; border-top: 1px solid var(--line); }
.process-section.alt { background: var(--surface); }
.process-list { display: grid; gap: 14px; list-style: none; margin: 24px 0 0; padding: 0; }
.process-item { display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start; padding: 22px; border: 1px solid var(--line); background: var(--surface); transition: transform .16s steps(2, end), box-shadow .16s steps(2, end); }
.process-section.alt .process-item { background: var(--paper); }
.process-item:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--moss); }
.process-num { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink); font: 700 18px/1 var(--font-mono); }
.process-num.moss { background: var(--moss); color: #fff; }.process-num.sand { background: var(--sand); color: var(--ink); }.process-num.sky { background: var(--sky); color: var(--ink); }.process-num.leaf { background: var(--leaf); color: var(--ink); }
.process-item > div { display: grid; gap: 5px; align-content: start; }
.process-item strong { font-size: 17px; letter-spacing: -.01em; }
.process-item span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.process-note { margin: 26px 0 0; color: var(--muted); font: 500 12px/1.6 var(--font-mono); }
.process-note strong { color: var(--ink); }
.process-section .primary-button { margin-top: 22px; }
.ask-section { padding-block: 105px; background: var(--moss); color: white; }
.ask-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: start; }
.ask-grid h2 { margin: 0; font-size: clamp(46px, 6vw, 72px); line-height: .96; letter-spacing: -.055em; }
.ask-grid > div > p:last-child { max-width: 430px; color: #e1e7d9; line-height: 1.7; }
.help-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 28px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.field { display: grid; gap: 8px; }.field.full { grid-column: 1 / -1; }
.field label { font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--paper); padding: 13px; color: var(--ink); outline: 0; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 2px var(--leaf); }
.field input:not(:placeholder-shown):valid, .field textarea:not(:placeholder-shown):valid { border-color: var(--moss); background: color-mix(in srgb, var(--paper) 90%, var(--leaf)); }
.primary-button { display: inline-flex; width: max-content; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 0 17px; border: 1px solid var(--ink); background: var(--ink); color: white; cursor: pointer; text-decoration: none; font-weight: 800; box-shadow: 4px 4px 0 var(--dirt); }
.primary-button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--dirt); }
.form-note { align-self: center; margin: 0; color: var(--muted); font-size: 11px; }
.contact-page { min-height: calc(100vh - 226px); display: grid; grid-template-columns: 1fr .85fr; gap: 90px; align-items: center; padding-block: 100px; }
.contact-page > div > p:last-child { max-width: 570px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.not-found { min-height: 70vh; padding-block: 110px; }.not-found > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }.not-found .primary-button { margin-top: 20px; }

.game-hero { overflow: hidden; background: var(--ink); color: var(--paper); }
.game-hero-inner { min-height: 360px; display: grid; grid-template-columns: 1fr .34fr; gap: 40px; align-items: center; padding-block: 58px; }
.game-hero h1 { margin: 0; font-size: clamp(46px, 6vw, 76px); line-height: .96; letter-spacing: -.06em; }
.game-hero h1 + p { max-width: 520px; margin: 22px 0 0; color: #c4bfaf; font-size: 17px; line-height: 1.7; }
.game-mascot { display: block; width: 100%; max-width: 220px; height: auto; justify-self: center; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .28)); animation: guide-wave 3.4s steps(5, end) infinite; }
.game-stage { padding-block: 60px 110px; }
.game-frame { position: relative; border: 1px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); }
#runner-canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; background: var(--paper); touch-action: none; }
/* Fallback ratios matching the JS breakpoints below, so the frame doesn't flash thin before script.js sizes the canvas. */
@media (max-width: 860px) { #runner-canvas { aspect-ratio: 900 / 391; } }
@media (max-width: 640px) { #runner-canvas { aspect-ratio: 900 / 486; } }
@media (max-width: 420px) { #runner-canvas { aspect-ratio: 3 / 2; } }
.game-hud { position: absolute; top: 14px; right: 16px; display: flex; gap: 16px; color: var(--muted); font: 500 12px/1 var(--font-mono); letter-spacing: .06em; pointer-events: none; }
.game-hud b { display: block; margin-top: 3px; color: var(--ink); font-size: 15px; }
.game-toolbar { position: absolute; top: 8px; left: 8px; z-index: 6; display: flex; gap: 8px; }
.game-fullscreen-toggle, .game-sound-toggle { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; font: 500 10px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; box-shadow: 2px 2px 0 var(--ink); }
.game-fullscreen-toggle:hover, .game-sound-toggle:hover { background: var(--paper); }
.game-fullscreen-toggle[hidden], .game-sound-toggle[hidden] { display: none; }
.fullscreen-icon { position: relative; width: 12px; height: 12px; flex: 0 0 12px; }
.fullscreen-icon i { position: absolute; width: 5px; height: 5px; border: 2px solid currentColor; transition: transform .16s ease; }
.fullscreen-icon i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.fullscreen-icon i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.fullscreen-icon i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.fullscreen-icon i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.game-fullscreen-toggle[aria-pressed='true'] .fullscreen-icon i:nth-child(1) { transform: translate(3px, 3px); }
.game-fullscreen-toggle[aria-pressed='true'] .fullscreen-icon i:nth-child(2) { transform: translate(-3px, 3px); }
.game-fullscreen-toggle[aria-pressed='true'] .fullscreen-icon i:nth-child(3) { transform: translate(3px, -3px); }
.game-fullscreen-toggle[aria-pressed='true'] .fullscreen-icon i:nth-child(4) { transform: translate(-3px, -3px); }
.sound-icon { position: relative; width: 12px; height: 12px; flex: 0 0 12px; }
.sound-icon::before { content: ''; position: absolute; left: 0; top: 3px; width: 4px; height: 6px; background: currentColor; }
.sound-icon::after { content: ''; position: absolute; left: 3px; top: 0; width: 5px; height: 12px; background: currentColor; clip-path: polygon(0 35%, 40% 35%, 100% 0, 100% 100%, 40% 65%, 0 65%); }
.sound-wave { position: absolute; right: -1px; top: 2px; width: 5px; height: 8px; border: 2px solid currentColor; border-left: 0; border-radius: 0 8px 8px 0; }
.game-sound-toggle[aria-pressed='true'] .sound-wave { display: none; }
.game-sound-toggle[aria-pressed='true'] .sound-icon { opacity: .55; }
.game-frame:fullscreen, .game-frame:-webkit-full-screen { display: grid; place-items: center; width: 100vw; height: 100vh; border: 0; box-shadow: none; background: var(--ink); }
.game-frame:fullscreen #runner-canvas, .game-frame:-webkit-full-screen #runner-canvas { width: auto; height: auto; max-width: 100vw; max-height: 100vh; }
.game-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; gap: 10px; padding: 20px; text-align: center; background: rgba(241, 234, 216, .93); cursor: pointer; }
.game-overlay[hidden] { display: none; }
.game-overlay-title { margin: 0; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.04em; }
.game-overlay p:not(.game-overlay-title) { margin: 0; max-width: 320px; color: var(--muted); }
.game-overlay .primary-button { margin-top: 6px; }
.game-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.game-controls kbd { padding: 3px 7px; border: 1px solid var(--line); color: var(--ink); font-family: var(--font-mono); font-size: 11px; }
.game-rotate-button { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 8px 14px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: 700 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.game-rotate-button:hover { border-color: var(--ink); color: var(--ink); }
.game-rotate-button[hidden] { display: none; }
.rotate-icon { display: inline-block; width: 9px; height: 14px; border: 2px solid currentColor; border-radius: 2px; animation: rotate-hint-spin 2.4s steps(6, end) infinite; }
#game-rotate-hint { margin-top: 2px; font-size: 12px; }
#game-rotate-hint[hidden] { display: none; }
#runner-canvas, .game-toolbar, .game-overlay .primary-button, .game-rotate-button { -webkit-tap-highlight-color: transparent; }
#runner-canvas { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.game-frame { overscroll-behavior: contain; }

.motion-ready .reveal { opacity: 0; transform: translateY(26px); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.click-block { position: fixed; z-index: 200; width: 9px; height: 9px; pointer-events: none; background: var(--particle, var(--leaf)); box-shadow: 4px 4px 0 rgba(32, 35, 30, .25); animation: block-pop .55s steps(5, end) forwards; }

@keyframes text-build { from { opacity: 0; transform: translateY(28px) rotate(1deg); } to { opacity: 1; transform: none; } }
@keyframes figurine-bob { 0%, 100% { transform: translate(1%, 2%); } 50% { transform: translate(1%, -1%); } }
@keyframes guide-wave { 0%, 100% { transform: translateY(4%) rotate(0); } 50% { transform: translateY(1%) rotate(1deg); } }
@keyframes block-breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.13); } }
@keyframes block-pop { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(var(--scatter-x), var(--scatter-y)) scale(.2) rotate(90deg); } }
@keyframes corner-hop { 0%, 100% { margin: 0; } 50% { margin: -4px; } }
@keyframes logo-build { 0%, 100% { transform: scale(1); } 50% { transform: scale(.72); } }
@keyframes hero-celebrate { 0%, 100% { transform: translate(1%, 2%) scale(1) rotate(0); } 20% { transform: translate(-1%, -14%) scale(1.05) rotate(-2deg); filter: drop-shadow(0 30px 18px rgba(32, 35, 30, .32)) saturate(1.2); } 44% { transform: translate(2%, 1%) scale(.98) rotate(1deg); } 65% { transform: translate(0, -8%) scale(1.03) rotate(-1deg); } 82% { transform: translate(1%, 0) scale(1); } }
@keyframes grid-celebrate { 0%, 100% { transform: scale(1); } 35% { transform: scale(.8) rotate(2deg); filter: brightness(1.35) saturate(1.25); } 65% { transform: scale(1.04); } }
@keyframes hint-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-3deg) translateY(-3px); } 92% { transform: rotate(3deg); } }
@keyframes message-pop { 0% { transform: scale(.7) rotate(-4deg); } 35% { transform: scale(1.15) rotate(3deg); } 65%, 100% { transform: scale(1) rotate(0); } }
@keyframes idea-burst { 0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0); } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--burst-x), var(--burst-y)) scale(1.15) rotate(135deg); } }
@keyframes strip-word-hop { 0%, 82%, 100% { transform: translateY(0); } 88% { transform: translateY(-5px); } 94% { transform: translateY(2px); } }
@keyframes arrow-hop { 50% { transform: translateY(4px); } }
@keyframes pixel-blink { 0%, 65%, 100% { opacity: 1; } 70%, 78% { opacity: .25; } }
@keyframes filter-snap { 0% { transform: scale(.88); } 100% { transform: scale(1); } }
@keyframes marker-dance { 25% { transform: rotate(8deg) scale(1.1); } 55% { transform: rotate(-6deg); } }
@keyframes guide-thinking { to { transform: translateY(1%) rotate(1.6deg) scale(1.02); } }
@keyframes rotate-hint-spin { 0%, 55%, 100% { transform: rotate(0deg); } 75% { transform: rotate(-90deg); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 55px; }
  .hero-visual { width: min(540px, 88vw); min-height: 450px; justify-self: center; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .experiment-card { grid-template-columns: 62px 130px 1fr; }
  .experiment-icon { width: 120px; height: 120px; }
  .card-action { grid-column: 3; }
  .help-hero-inner { grid-template-columns: 1fr .55fr; gap: 35px; }
  .help-search-wrap { grid-column: 1 / -1; }
  .help-guide-figure { width: 100%; max-width: 230px; }
  .ask-grid, .contact-page { grid-template-columns: 1fr; gap: 55px; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .game-hero-inner { grid-template-columns: 1fr .4fr; gap: 30px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 66px; }
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; padding: 10px 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current='page']::after { display: none; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav-dropdown.is-active-group .nav-dropdown-toggle::after { display: none; }
  .dropdown-menu { position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; max-height: 0; overflow: hidden; transition: max-height .18s ease; }
  .nav-dropdown.is-open .dropdown-menu, .nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { transform: none; }
  .nav-dropdown.is-open .dropdown-menu { max-height: 160px; }
  .dropdown-menu a { padding: 12px 4px 12px 16px; border-bottom: 1px solid var(--line); }
  .hero { min-height: 0; padding-block: 58px 80px; }
  .hero h1 { font-size: clamp(43px, 13vw, 64px); }
  .hero-visual { width: 92vw; min-height: 350px; margin-left: -3vw; }
  .hero-grid { box-shadow: 7px 7px 0 var(--moss); }
  .figurine-trigger { width: 104%; }
  .hero-caption { right: 0; bottom: -1%; width: 62%; padding: 13px 15px; }
  .play-track { gap: 11px; padding-inline: 8px; }
  .play-track span { font-size: 9px; letter-spacing: .09em; }
  .play-track i { width: 8px; height: 8px; flex-basis: 8px; box-shadow: 4px 4px 0 var(--moss); }
  .experiments { padding-block: 76px 90px; }
  .experiment-card { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .experiment-number { position: absolute; margin: 10px; padding: 5px; background: var(--surface); color: var(--ink); }
  .experiment-icon { width: 100%; height: auto; aspect-ratio: 2 / 1; }
  .card-action { grid-column: auto; justify-self: start; }
  .footer-inner { grid-template-columns: 1fr; padding-block: 35px; text-align: center; }
  .site-footer nav { justify-content: center; }
  .copyright { text-align: center; }
  .help-hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 34px; padding-block: 58px; }
  .help-guide-figure { grid-row: 2; width: 58%; max-width: 220px; margin: -30px auto -18px; }
  .help-search-wrap { width: 100%; grid-column: auto; grid-row: 3; }
  .help-content, .ask-section, .process-section { padding-block: 76px; }
  .process-item { grid-template-columns: 40px 1fr; gap: 14px; padding: 16px; }
  .process-num { width: 36px; height: 36px; font-size: 15px; }
  .filter-row { align-items: flex-start; flex-direction: column; }
  .filters { width: 100%; }
  .filter-button { flex: 1; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 0; }
  .help-form { grid-template-columns: 1fr; padding: 20px; box-shadow: 6px 6px 0 var(--ink); }
  .field.full { grid-column: auto; }
  .contact-page { min-height: 70vh; padding-block: 75px; }
  .game-hero-inner { grid-template-columns: 1fr; gap: 18px; padding-block: 32px; text-align: center; }
  .game-mascot { grid-row: 1; max-width: 120px; margin-inline: auto; }
  .game-stage { padding-block: 22px 60px; }
  .game-frame { margin-inline: calc(50% - 50vw); border-inline: 0; box-shadow: none; }
  .game-hud { top: 10px; right: 12px; gap: 10px; font-size: 10px; }
  .game-hud b { margin-top: 2px; font-size: 12px; }
  .game-toolbar { top: 8px; left: 8px; gap: 6px; }
  .game-fullscreen-toggle, .game-sound-toggle { justify-content: center; width: 36px; height: 36px; padding: 0; }
  .game-fullscreen-toggle span:not(.fullscreen-icon), .game-sound-toggle span:not(.sound-icon) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .game-fullscreen-toggle .fullscreen-icon, .game-sound-toggle .sound-icon { width: 14px; height: 14px; flex-basis: 14px; }
  .game-overlay { gap: 8px; padding: 16px; }
  .game-overlay-title { font-size: clamp(22px, 7vw, 32px); }
  .game-overlay p:not(.game-overlay-title) { max-width: 260px; font-size: 13px; }
  .game-overlay .primary-button { min-height: 40px; padding: 0 16px; font-size: 12px; box-shadow: 3px 3px 0 var(--dirt); }
  .game-controls { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .hero-visual.is-celebrating { outline: 5px solid var(--sky); outline-offset: -5px; }
  .hero-visual.is-celebrating .play-hint { background: var(--leaf); color: var(--ink); }
  .hero-visual.is-celebrating .hero-grid > span:nth-child(3n) { background: var(--sky); }
}
