:root { --ink: #173f38; --paper: #f5f1dc; --sky: #064bbe; --font-sans: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body.pixel-home { margin: 0; color: white; background: #064bbe; font-family: var(--font-sans); overflow-x: clip; }
body.pixel-home::before { content: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #ffdb7d; outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 110; background: white; color: #143d36; padding: 14px 20px; }
.skip-link:focus { top: 12px; }
.pixel-hero { position: relative; display: flex; flex-direction: column; min-height: max(720px, 100svh); isolation: isolate; overflow: clip; background: #064bbe; }
.hero-scene { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.scene-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 100%; image-rendering: auto; }
.hero-scene::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #001e624d, transparent 55%), linear-gradient(#00338630, transparent 30%); }
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
.hero-scene .scene-canvas { image-rendering: auto; }
.pixel-home .topbar { position: relative; top: auto; z-index: 40; background: transparent; border: 0; backdrop-filter: none; }
.pixel-home .topbar-inner { width: calc(100% - 72px); max-width: 1800px; min-height: 92px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; margin: auto; padding: 18px 0; }
.pixel-home .brand { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.pixel-home .brand-mark { width: 46px; height: 46px; border-radius: 12px; background: white; overflow: hidden; border: 1px solid #ffffff80; box-shadow: none; }
.pixel-home .brand-mark img { width: 100%; height: 100%; }
.pixel-home .brand-text strong { font-family: Georgia, serif; font-weight: 500; font-size: 27px; letter-spacing: -.5px; }
.pixel-home .brand-text span { display: none; }
.pixel-home .home-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0; padding: 2px; border: 1px solid #c5e7ff38; border-radius: 12px; background: #0b387c77; backdrop-filter: blur(12px); font-size: 14px; }
.pixel-home .home-nav > .nav-link, .pixel-home .nav-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; min-height: 44px; color: #fff; font-size: 14px; font-weight: 500; border: none; border-radius: 9px; background: none; }
.pixel-home .home-nav > .nav-link:hover, .pixel-home .nav-trigger:hover, .pixel-home .nav-item.is-open > .nav-trigger { background: #c7e8ff26; }
.pixel-home .home-nav > .nav-link::after { content: none; }
.pixel-home .home-nav > .nav-link.active { display: none; }
.pixel-home .nav-link--mobile-only { display: none !important; }
.pixel-home .nav-item { position: relative; }
.pixel-home .nav-trigger-icon { width: 10px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.pixel-home .nav-submenu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px; padding-top: 0; color: #173e36; transition: opacity .15s, visibility .15s; }
.pixel-home.mobile-nav-ready .nav-submenu { opacity: 0; visibility: hidden; pointer-events: none; }
.pixel-home.mobile-nav-ready .nav-item.is-open > .nav-submenu { opacity: 1; visibility: visible; pointer-events: auto; }
.pixel-home .nav-submenu-list { padding: 8px; margin: 0; list-style: none; border: 1px solid #cfdfd7; border-radius: 12px; background: #f9fcf4; box-shadow: 0 12px 30px #001b4630; }
.pixel-home .nav-submenu-link { display: flex; align-items: center; gap: 10px; padding: 10px 13px; min-height: 44px; border-radius: 7px; font-size: 14px; }
.pixel-home .nav-submenu-link:hover { background: #e4eddf; }
.pixel-home .nav-submenu-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; flex-shrink: 0; }
.pixel-home .home-nav .about-link { margin-left: 8px; border-left: 1px solid #ffffff30; border-radius: 0 8px 8px 0; }
.hero-copy { position: relative; z-index: 1; width: min(600px, 43%); margin: clamp(40px, 8vh, 100px) 0 160px max(5.4vw, 36px); text-shadow: 0 2px 14px #002c6740; }
.hero-eyebrow { margin: 0 0 22px; font: 12px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .22em; opacity: .82; }
.hero-copy h1 { margin: 0; font-size: clamp(48px, 5.8vw, 90px); font-weight: 500; letter-spacing: .08em; line-height: 1.35; }
.hero-slogan { margin: 20px 0 34px; font-size: clamp(19px, 2vw, 29px); font-weight: 300; line-height: 1.9; letter-spacing: .16em; }
.hero-slogan span { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; text-shadow: none; }
.pixel-button { display: inline-flex; align-items: center; gap: 23px; min-height: 49px; padding: 12px 20px; border: 1px solid #e9f6ff77; border-radius: 7px; color: #123c68; background: #f5faf5; box-shadow: 0 3px 0 #082c5c30; font-size: 15px; transition: transform .15s; }
.pixel-button:hover { transform: translateY(-2px); }
.pixel-button.secondary { color: white; background: #2b76bca6; backdrop-filter: blur(8px); }
.pixel-courtyard { position: relative; display: flex; flex-direction: column; min-height: 100svh; color: var(--ink); background: #21a0eb; }
.courtyard-heading { position: absolute; top: 7%; right: 4.5%; z-index: 2; text-align: right; width: 25%; text-shadow: 0 1px 5px #ffffffd0; }
.courtyard-heading p { margin: 0 0 11px; font: 11px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .2em; color: #205b65; }
.courtyard-heading h2 { margin: 0; font-weight: 500; font-size: clamp(24px, 2.7vw, 46px); letter-spacing: .1em; }
.courtyard-heading .courtyard-caption { margin-top: 13px; font: 13px/1.8 var(--font-sans); letter-spacing: .05em; color: #1d5662; }
.courtyard-scene { position: relative; flex-shrink: 0; width: 100%; aspect-ratio: 1672 / 941; margin-top: auto; overflow: hidden; background: #c0d7a9; }
.courtyard-scene .scene-image { object-position: center; }
#courtyard-plate:not([src]) { visibility: hidden; }
.exhibit { position: absolute; z-index: 3; color: #fff0c9; }
/* Each SVG uses coordinates from the 1672 × 941 scene, including the board's
   own baseline and skew. Hover scales lettering inside that same plane. */
.exhibit-sign { position: absolute; max-width: none; overflow: visible; }
.exhibit-sign text { fill: currentColor; text-anchor: middle; dominant-baseline: central; font-family: 'KaiTi', 'STKaiti', serif; font-weight: 600; letter-spacing: 2px; filter: drop-shadow(0 1px 1px #4f200e); }
.sign-title { transform: scale(1); transition: transform .2s ease, filter .2s ease; }
.sign-edge { fill: none; stroke: #ffe3a0; stroke-width: 1.6px; stroke-linejoin: round; opacity: 0; filter: drop-shadow(0 0 4px #ffe3a0); transition: opacity .2s ease; }
.exhibit:is(:hover, :focus-visible, .is-target) .sign-title { transform: scale(1.045); filter: drop-shadow(0 0 3px #fff0bd80); }
.exhibit:is(:hover, :focus-visible, .is-target) .sign-edge { opacity: .85; }
.exhibit:focus-visible { outline: none; }
.exhibit[data-zone='highschool'] { left: 8%; top: 12%; width: 27%; height: 30%; }
.exhibit[data-zone='highschool'] .exhibit-sign { left: 16.8882%; top: -2.4513%; width: 55.1568%; height: 32.2352%; }
.exhibit[data-zone='experiments'] { left: 40%; top: 17.5%; width: 20%; height: 25.5%; }
.exhibit[data-zone='experiments'] .exhibit-sign { left: 29.6651%; top: -1.9483%; width: 62.7990%; height: 35.8401%; }
.exhibit[data-zone='aeromodelling'] { left: 7%; top: 41%; width: 24%; height: 30%; }
.exhibit[data-zone='aeromodelling'] .exhibit-sign { left: 15.1914%; top: -2.0581%; width: 48.5945%; height: 27.2759%; }
.exhibit[data-zone='blog'] { left: 37.5%; top: 42%; width: 20%; height: 28%; }
.exhibit[data-zone='blog'] .exhibit-sign { left: 11.3636%; top: -3.8789%; width: 60.1077%; height: 26.1879%; }
.exhibit-directory { display: none; }
.pixel-footer { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 8px 145px; background: #eef0df; color: #637461; border-top: 1px solid #d6dcc8; font-size: 11px; text-align: center; white-space: nowrap; }
.pixel-footer a { line-height: 24px; white-space: nowrap; }
.pixel-footer a:hover { text-decoration: underline; }
@media (min-width: 1600px) { .hero-copy { margin-top: 11vh; } }
@media (min-width: 720.01px) and (max-width: 1050px) { .pixel-home .topbar-inner { width: calc(100% - 40px); gap: 12px; } .pixel-home .home-nav > .nav-link, .pixel-home .nav-trigger { padding-inline: 12px; } .hero-copy { margin-left: 32px; width: 43%; } .hero-copy h1 { font-size: 57px; } .hero-slogan { font-size: 22px; } .hero-actions { gap: 10px; } .pixel-button { padding-inline: 13px; gap: 12px; } }
@media (min-width: 720.01px) and (max-width: 1180px) and (min-height: 850px) {
    .pixel-hero > .topbar { order: 0; }
    .hero-copy { order: 1; width: auto; margin: 35px 36px 45px; }
    .hero-scene { position: relative; z-index: -1; inset: auto; order: 3; width: 100%; aspect-ratio: 1672 / 941; margin-top: auto; }
    .hero-scene::after { background: linear-gradient(#064bbe, transparent 15%); }
}
@media (max-width: 720px) {
    .pixel-hero { min-height: 100svh; }
    .pixel-hero > .topbar { order: 0; }
    .pixel-hero > .hero-copy { order: 1; }
    .pixel-hero > .hero-scene { order: 3; }
    .pixel-home .topbar-inner, .pixel-home.mobile-nav-ready .topbar-inner { width: calc(100% - 36px); display: grid; grid-template-columns: 1fr auto; padding: 14px 0; min-height: 76px; }
    .pixel-home .brand-text strong { font-size: 24px; }
    .pixel-home .brand-mark, .pixel-home.mobile-nav-ready .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
    .pixel-home.mobile-nav-ready .topbar { background: transparent; }
    .pixel-home .mobile-menu-toggle { color: #fff; border-color: #ffffff50; background: #123f8e80; border-radius: 8px; }
    .pixel-home .home-nav { grid-column: 1/-1; width: 100%; }
    .pixel-home.mobile-nav-ready .home-nav:not(.is-mobile-open) { display: none; }
    .pixel-home.mobile-nav-ready .home-nav.is-mobile-open { background: #f5f7ec; border-color: #d7e4e0; border-radius: 12px; }
    .pixel-home.mobile-nav-ready .home-nav > .nav-link, .pixel-home.mobile-nav-ready .nav-trigger { color: #173e36; }
    .pixel-home.mobile-nav-ready .nav-submenu { position: static; min-width: 0; width: 100%; }
    .pixel-home .nav-submenu-clip { min-height: 0; overflow: hidden; }
    .pixel-home .nav-submenu-list { box-shadow: none; border: none; background: #eaf0e2; }
    .pixel-home.mobile-nav-ready .home-nav .about-link { border: 0; margin: 0; }
    .hero-copy { width: auto; max-width: none; margin: clamp(22px, 6vh, 55px) 26px 20px; }
    .hero-eyebrow { font-size: 10px; margin-bottom: 17px; }
    .hero-copy h1 { font-size: clamp(44px, 11.5vw, 70px); }
    .hero-slogan { margin: 15px 0 26px; font-size: 21px; line-height: 1.7; }
    .hero-slogan span { display: inline; }
    .hero-slogan span + span::before { content: '，'; }
    .hero-actions { gap: 10px; }
    .pixel-button { min-height: 47px; padding: 10px 15px; font-size: 14px; gap: 15px; }
    .hero-scene { position: relative; z-index: -1; inset: auto; width: 100%; aspect-ratio: 5 / 4; flex-shrink: 0; margin-top: auto; }
    .hero-scene::after { background: linear-gradient(#064bbe, transparent 15%); }
    .hero-scene .scene-image { object-fit: cover; }
    .pixel-courtyard { padding-top: 28px; background: var(--paper); }
    .courtyard-heading { position: relative; top: auto; right: auto; text-align: left; width: auto; margin: 0 24px 25px; text-shadow: none; }
    .courtyard-heading h2 { font-size: 29px; }
    .courtyard-heading .courtyard-caption { font-size: 12px; margin-bottom: 0; }
    .courtyard-scene { overflow: visible; }
    .exhibit { pointer-events: none; }
    .exhibit-directory { position: relative; display: block; margin: 5px 24px 20px; }
    .directory-link { display: grid; grid-template-columns: 31px 1fr 24px; align-items: center; gap: 15px; min-height: 100px; border-bottom: 1px solid #ccd1b7; }
    .directory-link > span:first-child { color: #789078; font: 12px ui-monospace, monospace; }
    .directory-link strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: .08em; margin-bottom: 9px; }
    .directory-link small { display: block; color: #627763; font-size: 12px; }
    .directory-link:hover, .directory-link.is-target { color: #286b55; }
    .pixel-footer { padding: 8px 10px 76px; gap: 4px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; } }
