@charset "UTF-8";

:root {
  color-scheme: dark;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  color: #f2f1e9;
  background: #10201c;
  font-synthesis: none;
  --charcoal: #14211e;
  --green: #18342c;
  --green-2: #25483e;
  --mint: #9dc5b2;
  --cream: #f1f0e7;
  --gold: #cfb374;
  --line: rgba(223, 235, 226, .19);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; background: #10201c; }
body { margin: 0; min-width: 320px; background: #10201c; overflow-x: clip; }
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { border: 0; }
.skip-link { position: fixed; left: 18px; top: -100px; z-index: 1000; padding: 12px 18px; color: #10201c; background: #f1f0e7; }
.skip-link:focus { top: 18px; }

.story { height: 520vh; min-height: 3200px; }
.stage { --hud-opacity: 1; --journey: 0; position: sticky; top: 0; height: 100svh; min-height: 600px; overflow: hidden; background: #dce4df; isolation: isolate; }
.scene-viewport { position: absolute; inset: 0; transition: opacity .18s linear; }
.scene-viewport canvas { display: block; width: 100%; height: 100%; visibility: hidden; }
.scene-viewport.is-ready canvas { visibility: visible; }
.fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-viewport.is-ready .fallback { display: none; }
.scene-grade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(13, 27, 23, .44) 0%, rgba(13, 27, 23, .10) 30%, transparent 58%), linear-gradient(0deg, rgba(8, 22, 18, .25) 0%, transparent 23%), linear-gradient(180deg, rgba(8, 22, 18, .22) 0%, transparent 20%); opacity: var(--hud-opacity); transition: opacity .12s linear; }

.topbar { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 98px; display: flex; align-items: center; justify-content: space-between; padding: 0 4.2vw; border-bottom: 1px solid rgba(255, 255, 255, .17); opacity: var(--hud-opacity); pointer-events: auto; }
.brand, .portal-brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 34px; aspect-ratio: 1; border: 1px solid currentColor; transform: rotate(45deg); }
.brand-mark i { position: absolute; display: block; background: currentColor; }
.brand-mark i:first-child { width: 15px; height: 1px; }
.brand-mark i:last-child { width: 1px; height: 15px; }
.brand > span:last-child, .portal-brand > span:last-child { display: flex; flex-direction: column; }
.brand b, .portal-brand b { font-size: 14px; line-height: 1.4; letter-spacing: .04em; font-weight: 600; }
.brand small, .portal-brand small { margin-top: 3px; font: 500 7px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; opacity: .66; }
.topbar-meta { display: flex; align-items: center; gap: 25px; font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .17em; }
.topbar-meta b { display: flex; align-items: center; gap: 7px; color: #b5d4c4; font-weight: 500; }
.topbar-meta b i, .portal-status i { width: 6px; height: 6px; border-radius: 50%; background: #80c69e; box-shadow: 0 0 12px #80c69e; }

.intro-copy { position: absolute; z-index: 3; left: 7vw; top: 28%; max-width: 590px; opacity: var(--hud-opacity); transform: translateY(calc(var(--journey) * -20px)); pointer-events: none; }
.eyebrow { margin: 0 0 20px; color: #c5d7cd; font: 600 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .28em; }
.intro-copy h1 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(52px, 6.1vw, 92px); font-weight: 500; line-height: 1.16; letter-spacing: -.065em; text-shadow: 0 3px 26px rgba(8, 22, 18, .22); }
.intro-copy > p:last-child { margin: 28px 0 0; color: rgba(247, 247, 240, .78); font-size: 12px; line-height: 2; letter-spacing: .08em; }

.phase-rail { position: absolute; z-index: 3; top: 25%; right: 4.2vw; width: 210px; opacity: var(--hud-opacity); }
.phase-rail ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .25); }
.phase-rail li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 9px; align-items: center; min-height: 64px; border-bottom: 1px solid rgba(255, 255, 255, .16); color: rgba(246, 246, 239, .42); transition: color .35s ease, padding .35s ease; }
.phase-rail li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: #d3bd84; transition: width .55s cubic-bezier(.22, 1, .36, 1); }
.phase-rail li.is-current { color: #fff; padding-left: 8px; }
.phase-rail li.is-current::before { width: 100%; }
.phase-rail li > span { font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.phase-rail li div { display: flex; flex-direction: column; gap: 5px; }
.phase-rail li b { font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.phase-rail li small { font: 500 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; opacity: .62; }

.scene-status { position: absolute; z-index: 3; left: 4.2vw; top: 126px; display: flex; align-items: center; gap: 14px; opacity: var(--hud-opacity); }
.scene-index { display: grid; place-items: center; width: 55px; height: 31px; border: 1px solid rgba(255, 255, 255, .32); font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.scene-status > div { display: flex; flex-direction: column; gap: 5px; }
.scene-status small { font: 500 6px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; opacity: .58; }
.scene-status b { font: 600 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }

.bottom-ui { position: absolute; z-index: 3; left: 4.2vw; right: 4.2vw; bottom: max(28px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 34px; opacity: var(--hud-opacity); }
.scroll-prompt { display: flex; align-items: center; gap: 13px; font: 600 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.scroll-prompt > i { position: relative; display: block; width: 20px; height: 33px; border: 1px solid rgba(255, 255, 255, .46); border-radius: 12px; }
.scroll-prompt > i span { position: absolute; width: 2px; height: 5px; left: 8px; top: 7px; background: #fff; animation: wheel 1.8s ease infinite; }
.scroll-prompt > span { display: flex; flex-direction: column; gap: 4px; }
.scroll-prompt small { font: 500 8px/1.2 "Yu Gothic", sans-serif; letter-spacing: .06em; opacity: .57; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 75%, 100% { opacity: 0; transform: translateY(11px); } }
.progress { display: grid; grid-template-columns: 28px minmax(120px, 16vw) 28px; align-items: center; gap: 10px; font: 500 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.progress > i { display: block; height: 1px; background: rgba(255, 255, 255, .30); }
.progress > i b { display: block; height: 1px; width: 0; background: #e5d5ac; box-shadow: 0 0 9px rgba(229, 213, 172, .6); }
.motion-button, .replay-button { cursor: pointer; background: transparent; color: inherit; font-size: 9px; letter-spacing: .09em; border-bottom: 1px solid rgba(255, 255, 255, .36); padding: 9px 1px; }
.motion-button:focus-visible, .replay-button:focus-visible, .menu-card:focus-visible, .portal-brand:focus-visible { outline: 2px solid #d9bd78; outline-offset: 4px; }

.loading-state { position: absolute; z-index: 9; top: 112px; right: 4.2vw; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 10px 13px; color: #f4f5ef; background: rgba(19, 40, 34, .88); border: 1px solid rgba(255, 255, 255, .2); pointer-events: none; transition: opacity .45s ease, visibility .45s ease; }
.loading-state.is-done { opacity: 0; visibility: hidden; }
.loading-state > i { flex: none; width: 18px; height: 18px; border: 1px solid rgba(244, 245, 239, .3); border-top-color: #f4f5ef; border-radius: 50%; animation: spin 1.2s linear infinite; }
.loading-state > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.loading-state b { font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.loading-state span { font-size: 10px; letter-spacing: .08em; opacity: .63; }
@keyframes spin { to { transform: rotate(1turn); } }
.fallback-message { position: absolute; z-index: 15; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; color: rgba(255,255,255,.72); font-size: 9px; }

.display-portal { --portal-content: 0; --portal-scale: .98; position: absolute; z-index: 10; inset: 0; overflow: hidden; color: #f3f1e7; background: #10241e; opacity: 0; clip-path: inset(47% 46% round 7px); pointer-events: none; }
.is-portal-ready .display-portal { pointer-events: auto; }
.portal-noise { position: absolute; inset: 0; pointer-events: none; opacity: .14; background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(196, 224, 209, .09) 3px 4px), radial-gradient(circle at 50% 42%, rgba(85, 130, 109, .33), transparent 46%); mix-blend-mode: screen; }
.portal-header, .portal-main, .portal-footer { position: relative; z-index: 1; opacity: var(--portal-content); transform: scale(var(--portal-scale)); transform-origin: 50% 50%; }
.portal-header { height: 94px; display: flex; align-items: center; justify-content: space-between; padding: 0 4.2vw; border-bottom: 1px solid var(--line); }
.portal-brand { color: #f1f0e7; }
.portal-status { display: flex; align-items: center; gap: 24px; color: rgba(238, 240, 232, .58); font: 500 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.portal-status span { display: flex; align-items: center; gap: 8px; }
.portal-status time { color: rgba(238, 240, 232, .38); }
.portal-main { height: calc(100% - 142px); display: grid; grid-template-columns: minmax(170px, 17vw) 1fr; }
.telemetry { padding: 5vh 2.5vw 3vh 4.2vw; border-right: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.telemetry p { margin: 0 0 24px; display: flex; flex-direction: column; gap: 7px; }
.telemetry p span { color: rgba(228, 236, 230, .38); font-size: 7px; letter-spacing: .16em; }
.telemetry p b { color: #bad2c5; font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.telemetry .scope { position: relative; width: min(112px, 8vw); aspect-ratio: 1; margin: 5vh 0; border: 1px solid rgba(177, 211, 193, .24); border-radius: 50%; }
.scope::before, .scope::after { content: ""; position: absolute; background: rgba(177, 211, 193, .22); }
.scope::before { left: 50%; top: -12%; width: 1px; height: 124%; }
.scope::after { left: -12%; top: 50%; width: 124%; height: 1px; }
.scope i { position: absolute; border: 1px solid rgba(177, 211, 193, .17); border-radius: 50%; inset: 20%; }
.scope i:nth-child(2) { inset: 38%; background: #c8ae70; box-shadow: 0 0 18px rgba(200, 174, 112, .55); }
.scope i:nth-child(3) { inset: -9%; border-style: dashed; }
.telemetry > small { color: rgba(229, 237, 230, .25); font-size: 6px; line-height: 1.7; letter-spacing: .12em; }
.menu-content { padding: 4.5vh 4.2vw 3vh; display: flex; flex-direction: column; min-width: 0; }
.menu-heading { display: grid; grid-template-columns: 1fr minmax(260px, 34%); align-items: end; gap: 6vw; margin-bottom: 3.4vh; }
.menu-heading p { margin: 0 0 14px; color: #b7c9bf; font: 600 8px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .21em; }
.menu-heading h2 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(31px, 3.45vw, 54px); font-weight: 500; line-height: 1.24; letter-spacing: -.045em; }
.menu-heading > p { margin: 0 0 5px; color: rgba(235, 239, 232, .57); font: 500 11px/2 "Yu Gothic", sans-serif; letter-spacing: .06em; }
.menu-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(118px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); perspective: 900px; }
.menu-card { --gx: 50%; --gy: 50%; --rx: 0deg; --ry: 0deg; position: relative; display: grid; grid-template-columns: 32px 1fr 20px; gap: 15px; align-items: start; padding: clamp(18px, 2.2vw, 31px); overflow: hidden; background: #152a24; transform: translateZ(0) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .26s ease, background .3s ease, box-shadow .3s ease; }
.menu-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--gx) var(--gy), rgba(158, 207, 181, .24), transparent 46%); opacity: .25; transition: opacity .3s ease; }
.menu-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #d0b579; transition: width .45s cubic-bezier(.22, 1, .36, 1); }
.menu-card:hover { z-index: 2; background: #1b382f; box-shadow: 0 14px 30px rgba(4, 15, 11, .25); transform: translateY(-4px) rotateX(var(--rx)) rotateY(var(--ry)); }
.menu-card:hover::before { opacity: 1; }
.menu-card:hover::after { width: 100%; }
.menu-card-contact { background: #d5c18e; color: #11221d; }
.menu-card-contact::before { background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .53), transparent 50%); }
.menu-card > span { position: relative; font: 500 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .45; }
.menu-card > div { position: relative; display: flex; flex-direction: column; }
.menu-card small { margin-bottom: 11px; font: 600 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; opacity: .43; }
.menu-card b { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(19px, 1.7vw, 27px); font-weight: 600; letter-spacing: -.025em; }
.menu-card p { margin: 11px 0 0; font-size: 9px; line-height: 1.6; letter-spacing: .04em; opacity: .55; }
.menu-card > i { position: relative; justify-self: end; font-style: normal; font-size: 15px; opacity: .52; transition: transform .3s ease; }
.menu-card:hover > i { transform: translate(3px, -3px); }
.portal-footer { height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 4.2vw; border-top: 1px solid var(--line); }
.portal-footer p { margin: 0; color: rgba(235, 239, 232, .37); font-size: 7px; letter-spacing: .07em; }
.replay-button { border: 0; color: rgba(235, 239, 232, .65); font-size: 8px; }

.is-fallback .scene-grade { opacity: .38; }
.noscript-note { position: fixed; z-index: 40; left: 12px; bottom: 10px; margin: 0; padding: 8px 10px; color: #fff; background: #243b34; font-size: 9px; }

@media (max-width: 1100px) {
  .topbar, .portal-header { padding-inline: 5vw; }
  .phase-rail { right: 5vw; width: 180px; }
  .intro-copy { left: 6vw; }
  .bottom-ui { left: 5vw; right: 5vw; }
  .telemetry { padding-left: 3vw; }
  .menu-content { padding-inline: 3vw; }
  .menu-card { padding: 22px 19px; }
}

@media (max-width: 820px) {
  .story { height: 480svh; min-height: 3000px; }
  .stage { min-height: 540px; }
  .loading-state { top: 88px; right: 6vw; }
  .topbar { height: 76px; padding-inline: 6vw; }
  .brand { gap: 10px; }
  .brand-mark { width: 27px; }
  .brand b, .portal-brand b { font-size: 11px; }
  .brand small, .portal-brand small { font-size: 5px; }
  .topbar-meta > span { display: none; }
  .topbar-meta { font-size: 7px; }
  .intro-copy { left: 7vw; right: 7vw; top: 18%; max-width: none; }
  .intro-copy h1 { font-size: clamp(39px, 12vw, 58px); line-height: 1.23; }
  .intro-copy > p:last-child { max-width: 320px; margin-top: 20px; font-size: 10px; line-height: 1.8; }
  .eyebrow { margin-bottom: 14px; font-size: 7px; }
  .phase-rail { top: auto; left: 7vw; right: 7vw; bottom: 104px; width: auto; }
  .phase-rail ol { display: grid; grid-template-columns: repeat(4, 1fr); }
  .phase-rail li { display: block; min-height: 46px; padding: 11px 5px 0 0; border-bottom-color: rgba(255,255,255,.21); }
  .phase-rail li.is-current { padding-left: 0; color: #fff; }
  .phase-rail li div { margin-top: 6px; }
  .phase-rail li b { display: none; }
  .phase-rail li small { font-size: 5px; letter-spacing: .06em; }
  .scene-status { left: 7vw; top: 94px; }
  .scene-index { width: 46px; height: 26px; font-size: 7px; }
  .scene-status small { display: none; }
  .scene-status b { font-size: 6px; }
  .bottom-ui { left: 7vw; right: 7vw; bottom: 24px; grid-template-columns: 1fr auto; gap: 15px; }
  .progress { grid-template-columns: 22px 68px 22px; gap: 6px; font-size: 6px; }
  .motion-button { display: none; }
  .scroll-prompt { font-size: 6px; }
  .scroll-prompt small { font-size: 6px; }
  .scroll-prompt > i { width: 17px; height: 28px; }
  .scroll-prompt > i span { left: 7px; }

  .portal-header { height: 66px; padding-inline: 5vw; }
  .portal-header .brand-mark { width: 24px; }
  .portal-status span:first-child, .portal-status time { display: none; }
  .portal-status { font-size: 6px; }
  .portal-main { height: calc(100% - 108px); display: block; }
  .telemetry { display: none; }
  .menu-content { height: 100%; padding: 3.2vh 5vw 2vh; }
  .menu-heading { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 2.2vh; }
  .menu-heading p { margin-bottom: 7px; font-size: 6px; }
  .menu-heading h2 { font-size: clamp(28px, 8vw, 37px); line-height: 1.25; }
  .menu-heading h2 br { display: none; }
  .menu-heading > p { max-width: 440px; font-size: 8px; line-height: 1.6; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(86px, 1fr)); }
  .menu-card { grid-template-columns: 16px minmax(0, 1fr) 10px; gap: 6px; padding: 14px 10px; min-height: 0; }
  .menu-card small { margin-bottom: 7px; font-size: 5px; }
  .menu-card b { font-size: clamp(14px, 3.8vw, 17px); white-space: nowrap; }
  .menu-card p { margin-top: 6px; font-size: 6px; line-height: 1.45; }
  .menu-card > i { font-size: 10px; }
  .menu-card > span { font-size: 6px; }
  .menu-card:hover { transform: none; }
  .portal-footer { height: 42px; padding-inline: 5vw; }
  .portal-footer p { max-width: 70%; font-size: 5px; line-height: 1.4; }
  .replay-button { font-size: 6px; white-space: nowrap; }
}

@media (max-height: 680px) and (min-width: 821px) {
  .topbar, .portal-header { height: 76px; }
  .scene-status { top: 95px; }
  .intro-copy { top: 24%; }
  .phase-rail { top: 22%; }
  .portal-main { height: calc(100% - 118px); }
  .menu-content { padding-top: 3vh; }
  .menu-heading { margin-bottom: 2vh; }
  .menu-heading h2 { font-size: 36px; }
  .menu-card { padding-block: 16px; }
  .portal-footer { height: 42px; }
}

@media (max-width: 370px) {
  .intro-copy { top: 17%; }
  .intro-copy h1 { font-size: 38px; }
  .intro-copy > p:last-child { font-size: 9px; }
  .phase-rail li small { display: none; }
  .menu-heading > p { display: none; }
  .menu-card p { display: none; }
  .menu-card { padding: 13px 10px; }
  .portal-footer p { display: none; }
  .portal-footer { justify-content: flex-end; }
}

@media (hover: none), (pointer: coarse) {
  .menu-card { transform: none !important; }
  .menu-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* These controls exist only at ?review=1; they are absent from the live site. */
.review-panel { position: fixed; z-index: 100; top: 12px; right: 12px; width: min(450px, calc(100vw - 24px)); padding: 12px; border: 1px solid #82938b; color: #eaf0ec; background: #10231ef2; font: 11px/1.6 ui-monospace, monospace; max-height: 84vh; overflow: auto; }
.review-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.review-tools label { display: flex; gap: 6px; align-items: center; width: 100%; }
.review-tools select { width: 220px; background: #213c32; color: white; }
.review-tools input { width: 240px; }
.review-tools button { background: #29483c; padding: 5px 8px; cursor: pointer; }
.review-panel summary { cursor: pointer; margin-top: 9px; }
.review-panel pre { font-size: 9px; white-space: pre-wrap; }
.review-panel p { margin: 8px 0 0; color: #b4cabe; font-size: 9px; }
.is-clean .review-panel, .is-clean .topbar, .is-clean .intro-copy, .is-clean .phase-rail, .is-clean .scene-status, .is-clean .bottom-ui, .is-clean .scene-grade { visibility: hidden !important; }

/* Menu palette: fresh green, warm paper and restrained gold accents. */
.menu-shortcut { cursor: pointer; padding: 10px 13px; border: 1px solid rgba(255,255,255,.65); border-radius: 2px; color: #fff; background: rgba(15,34,27,.65); font: 600 10px/1.2 "Yu Gothic", sans-serif; letter-spacing: .04em; }
.menu-shortcut span { margin-left: 6px; }
.menu-shortcut:hover { background: #315b42; }
.menu-shortcut:focus-visible { outline: 2px solid #e4c571; outline-offset: 3px; }
.display-portal { --line: rgba(50, 83, 57, .2); color: #203e2b; background: #e8f0df; }
.portal-noise { opacity: .32; mix-blend-mode: normal; background-image: radial-gradient(circle at 88% 5%, rgba(255,255,255,.6), transparent 38%), repeating-linear-gradient(0deg, transparent 0 3px, rgba(56,94,59,.025) 3px 4px); }
.portal-header { background: rgba(249,249,239,.72); }
.portal-brand { color: #25462e; }
.portal-status { color: #4f6a50; }
.portal-status time { color: #66806a; }
.portal-status i { background: #5b9f62; box-shadow: 0 0 10px rgba(82, 147, 84, .35); }
.telemetry { background: rgba(207,226,195,.48); }
.telemetry p span { color: #536e50; }
.telemetry p b { color: #2f5837; }
.telemetry > small { color: #557155; }
.telemetry .scope { border-color: rgba(70,112,72,.4); }
.scope::before, .scope::after { background: rgba(70,112,72,.35); }
.scope i { border-color: rgba(70,112,72,.33); }
.scope i:nth-child(2) { background: #b28a3b; box-shadow: 0 0 15px rgba(174,139,61,.4); }
.menu-heading p { color: #728e67; }
.menu-heading > p { color: #546c53; }
.menu-grid { gap: 10px; background: transparent; border: 0; }
.menu-card { border: 1px solid rgba(82, 114, 78, .2); background: #f7f7ed; box-shadow: 0 4px 16px rgba(51, 75, 45, .045); }
.menu-card::before { background: radial-gradient(circle at var(--gx) var(--gy), rgba(159,194,140,.26), transparent 56%); }
.menu-card::after { background: #ad8c47; }
.menu-card:hover { background: #fffef5; box-shadow: 0 14px 28px rgba(55,80,48,.14); }
.menu-card-contact { background: #c8dbb8; color: #203e2b; border-color: #9eb88e; }
.menu-card-contact:hover { background: #d9e8cd; }
.menu-card > span, .menu-card small, .menu-card p, .menu-card > i { opacity: .72; }
.portal-footer { background: rgba(248,249,238,.5); }
.portal-footer p { color: #62785f; }
.replay-button { color: #3f6144; }
.survey-marker { position: absolute; z-index: 5; width: 28px; height: 28px; pointer-events: none; border: 1px solid #a77d2b; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px rgba(255,255,255,.5); animation: survey-mark .9s ease-out forwards; }
.survey-marker::before, .survey-marker::after { content: ""; position: absolute; pointer-events: none; }
.survey-marker::before { inset: 5px; border: 1px solid #a77d2b; border-radius: 50%; }
.survey-marker::after { left: 50%; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #a77d2b; transform: translate(-50%, -50%); }
@keyframes survey-mark { 0% { opacity: .3; transform: translate(-50%,-50%) scale(.5); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.45); } }

@media (max-width: 820px) {
  .topbar-meta { gap: 10px; }
  .menu-shortcut { padding: 8px 9px; font-size: 9px; white-space: nowrap; }
  .telemetry { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; padding: 9px 5vw; border-right: 0; border-bottom: 1px solid var(--line); }
  .telemetry p { margin: 0; gap: 4px; }
  .telemetry p span { font-size: 6px; }
  .telemetry p b { font-size: 8px; letter-spacing: 0; white-space: nowrap; }
  .telemetry .scope, .telemetry > small { display: none; }
  .menu-content { height: calc(100% - 46px); }
  .menu-grid { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .survey-marker { animation: none; }
}
@media (max-width: 820px) {
  .telemetry p span { font-size: 8px; letter-spacing: .08em; }
  .telemetry p b { font-size: 10px; }
  .menu-card small { font-size: 7px; }
  .menu-card p { font-size: 10px; line-height: 1.4; }
}

/* A restrained instrument display, with readable controls at small widths. */
.display-portal { --line:rgba(228,234,225,.2);color:#f6f4ec;background:#183a30; }
.portal-noise { opacity:.18;background-image:radial-gradient(circle at 80% 0,rgba(195,170,120,.15),transparent 44%); }
.portal-header,.portal-footer { background:rgba(18,48,38,.38); }
.portal-brand { color:#f6f4ec; }
.portal-status,.portal-status time { color:#c2d0c5; }
.telemetry { background:rgba(15,46,35,.32); }
.telemetry p span,.telemetry > small { color:#c0d1c4; }
.telemetry p b { color:#f6f4ec; }
.telemetry .scope { border-color:rgba(195,170,120,.72); }
.scope::before,.scope::after { background:rgba(195,170,120,.5); }
.scope i { border-color:rgba(195,170,120,.55); }
.scope i:nth-child(2) { background:#c3aa78;box-shadow:none; }
.menu-heading p { color:#d7c9a9; }
.menu-heading > p { color:#e4eae1; }
.menu-card { background:#315e4e;color:#fffef9;border:1px solid rgba(228,234,225,.26);box-shadow:none; }
.menu-card::before { background:radial-gradient(circle at var(--gx) var(--gy),rgba(228,234,225,.13),transparent 56%); }
.menu-card::after { background:#c3aa78; }
.menu-card:hover { background:#3b705c;box-shadow:0 12px 26px rgba(10,30,22,.18); }
.menu-card-contact,.menu-card-contact:hover { color:#183a30;background:#e4eae1;border-color:#e4eae1; }
.menu-card > span,.menu-card small,.menu-card p,.menu-card > i { opacity:.9; }
.portal-footer p { color:#d4e0d5; }
.replay-button { color:#f6f4ec; }
@media (max-width:820px) {
  .telemetry p span { font-size:9px; }
  .telemetry p b { font-size:11px; }
  .menu-heading > p { font-size:12px;line-height:1.5; }
  .menu-card { padding:12px 10px; }
  .menu-card small { display:none; }
  .menu-card b { font-size:clamp(15px,4vw,18px);white-space:normal;line-height:1.35; }
  .menu-card p { font-size:11px;line-height:1.45; }
  .portal-footer p { font-size:10px;line-height:1.4; }
  .replay-button { font-size:10px; }
}
@media (max-width:370px) {
  .menu-card p { display:none; }
  .menu-card b { font-size:15px; }
  .portal-footer p { display:none; }
}

/* Stage 13: the existing instrument menu, in the independent TS palette. */
.display-portal { --line:rgba(231,236,227,.25);color:#f7f5ed;background:#244b3e; }
.portal-header,.portal-footer { background:rgba(28,63,50,.52); }
.portal-brand { color:#f7f5ed; }
.portal-status,.portal-status time { color:#e1ebe0; }
.telemetry { background:rgba(27,64,50,.38); }
.telemetry p span,.telemetry > small { color:#d8e5d8; }
.telemetry p b { color:#f7f5ed; }
.telemetry .scope { border-color:#c9b17f; }
.scope::before,.scope::after { background:rgba(201,177,127,.65); }
.scope i { border-color:rgba(201,177,127,.75); }
.scope i:nth-child(2) { background:#c9b17f; }
.menu-heading p { color:#e8d9b8; }
.menu-heading > p { color:#e7ece3; }
.menu-card { background:#3b6653;color:#f7f5ed;border-color:rgba(231,236,227,.32); }
.menu-card::after { background:#c9b17f; }
.menu-card:hover { background:#4a7863; }
.menu-card-contact,.menu-card-contact:hover { background:#e7ece3;border-color:#e7ece3;color:#244b3e; }
.portal-footer p { color:#e1ebe0; }
.replay-button { color:#f7f5ed; }
@media (max-width:820px) {
  .menu-content { padding-top:2.5vh; }
  .menu-grid { max-height:360px; }
  .menu-card { padding:12px 10px; }
}
