/* Midnight Support. Served from assets/ by both the public and local servers. */
:root {
  color-scheme: dark;
  --paper: #091629;
  --white: #14243a;
  --navy: #f1f5ff;
  --ink: #eaf1fc;
  --muted: #a7b8d0;
  --blue-50: #0c1b30;
  --blue-100: #172d47;
  --blue-200: #314e71;
  --blue-400: #9ccaff;
  --blue-600: #80b7ff;
  --blue-700: #17375d;
  --pink-100: #302439;
  --pink-300: #e6a2d1;
  --pink-600: #e6a2d1;
  --line: #243750;
  --success: #a6ddc9;
  --success-500: #87d2b3;
  --success-100: #122f31;
  --error: #ffadb9;
  --font: "Plus Jakarta Sans", "Readex Pro", sans-serif;
  --shadow-ambient: 0 24px 70px -30px #0008;
  --shadow-contact: 0 1px 0 #ffffff04;
  --section-space: clamp(80px, 8vw, 120px);
  --r-lg: 24px;
}
html[dir="rtl"] { --font: "Readex Pro", "Plus Jakarta Sans", sans-serif; }
html[dir="rtl"] :is(h1,h2,h3) { letter-spacing: -.025em; }
html { scroll-padding-top: 125px; }
body { background: var(--paper); }
button, a { -webkit-tap-highlight-color: transparent; }
.site-header { width: min(1280px, calc(100% - 64px)); padding: 0; background: #13233aee; box-shadow: inset 0 1px #ffffff0c; }
.site-header::before { inset: 0; background: transparent; box-shadow: none; }
.site-header.is-scrolled { box-shadow: 0 8px 40px #0003, inset 0 0 0 1px #ffffff09; }
.nav { min-height: 76px; padding-inline: 25px; }
.brand { gap: 15px; }
.brand-wordmark { width: 134px; height: auto; filter: brightness(0) invert(1); }
.brand-name { border-inline-start: 1px solid #ffffff26; padding-inline-start: 15px; }
.brand-name strong { color: var(--ink); font: 600 27px/1.4 "Readex Pro", sans-serif; }
.brand-name strong span { color: var(--pink-300); }
.nav-links a { font-size: 13px; }
.nav-links a:last-child, .button.primary, .lang-option.is-active, .idea-vote.is-voted, .app-dialog-zoom { color: #0b2447; }
.nav-toggle { background: #243a56; color: #eaf1fc; }
.lang-trigger { background: transparent; }
.button { min-height: 54px; transition: transform 200ms var(--spring), background-color 200ms; }
.button.primary { box-shadow: none; background: #80b7ff; }
.button.primary:hover { background: #a5ccff; }
.button.secondary { background: #14263e; color: var(--ink); box-shadow: inset 0 0 0 1px #314760; }
.button-island { background: #143b7020; }
.button.secondary .button-island { background: #233b57; }
.hero { padding-block: 40px 0; background: radial-gradient(ellipse 40% 48% at 50% 74%, #123e6b 0, transparent 90%), var(--paper); }
.hero::before, .hero-copy::before, .hero-visual::before, .hero-visual::after { display: none; }
.hero-grid { display: block; }
.hero-copy { text-align: center; max-width: 930px; margin-inline: auto; padding-block: 14px 0; }
.hero h1, html[dir="ltr"] .hero h1 { font-size: clamp(43px, 4.4vw, 62px); line-height: 1.52; font-weight: 600; letter-spacing: -.045em; margin-bottom: 19px; }
html[dir="ltr"] .hero h1 { line-height: 1.14; max-width: 900px; margin-inline: auto; }
.hero h1 em { color: #80b7ff; font-style: normal; }
.hero-description { max-width: 710px; margin-inline: auto; font-size: 15px; line-height: 1.95; }
.hero-actions { justify-content: center; margin-top: 26px; }
.hero-note { justify-content: center; max-width: none; margin-top: 20px; font-size: 12px; }
.hero-note .tiny-mark { font-size: 15px; }
.midnight-stage { max-width: 1120px; height: 390px; margin: 25px auto 0; }
.logo-scene { position: absolute; width: 365px; height: 390px; aspect-ratio: auto; left: 50%; transform: translateX(-50%); }
.logo-scene .layer-animal img { object-fit: contain; }
.adventure-launch { cursor: pointer; border-radius: 28px; }
.adventure-launch .layer-animal { transition: scale 250ms var(--settle); }
.adventure-launch:hover .layer-animal, .adventure-launch:focus-visible .layer-animal { scale: 1.025; }
.adventure-tooltip { position: absolute; bottom: 12px; left: 50%; transform: translate(-50%, 6px); opacity: 0; white-space: nowrap; background: #14243af2; border: 1px solid #7094bc; color: #eef5ff; border-radius: 24px; padding: 9px 18px; font-size: 13px; pointer-events: none; transition: opacity 200ms, transform 200ms; }
.adventure-launch:hover .adventure-tooltip, .adventure-launch:focus-visible .adventure-tooltip { opacity: 1; transform: translate(-50%, 0); }
.adventure-transition { position: fixed; inset: 0; z-index: 100; background: #091629; display: grid; align-content: center; justify-items: center; gap: 24px; animation: opening-in 300ms both; }
.adventure-transition img { width: 150px; filter: brightness(0) invert(1); }
@media (hover: none) { .adventure-tooltip { opacity: 1; transform: translate(-50%, 0); } }
.logo-scene.is-animated { animation: none; }
.logo-scene.is-animated .layer-animal { animation: midnight-mascot-in 1000ms var(--settle) both; }
@keyframes midnight-mascot-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.scene-orbit { inset: 40px 120px 25px; transform: rotate(-11deg); border: 1px solid #5883ae28; }
.second-orbit { inset: 85px 75px 30px; transform: rotate(10deg); border-style: dashed; }
.hero-status-card { position: absolute; width: 278px; padding: 25px; border-radius: 23px; text-align: start; background: linear-gradient(145deg, #21364c, #11243b); box-shadow: inset 0 1px #ffffff10, 0 18px 60px -30px #0009; }
.request-card { inset-inline-start: 0; top: 42px; transform: rotate(2deg); }
.opportunity-card { inset-inline-end: 0; bottom: 30px; transform: rotate(-2deg); }
.preview-caption { display: flex; align-items: center; gap: 8px; color: #9fcaff; font-size: 11px; margin-bottom: 16px; }
.mini-index { margin-inline-start: auto; color: #b4c4d8; font: 11px var(--latin); }
.status-light, .state-dot { width: 6px; height: 6px; border-radius: 50%; background: #e6a2d1; flex: none; }
.small-plus { font: 20px/1 var(--latin); }
.hero-status-card h2 { font-size: 25px; line-height: 1.55; letter-spacing: -.04em; margin-bottom: 12px; }
.hero-status-card p { color: #b7c8dc; font-size: 13px; line-height: 1.85; }
.request-state { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-block: 13px; border-top: 1px solid #ffffff12; font-size: 12px; }
.request-state .state-dot { background: #80b7ff; }
.opportunity-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-block: 20px 12px; padding-top: 14px; border-top: 1px solid #ffffff12; font-size: 12px; color: #b7d4f6; }
.sample-caption { display: block; font-size: 10px; color: #b5c4d5; }
.mission-strip { margin-top: 0; padding-block: 22px; font-size: 13px; color: var(--muted); }
.mission-item { gap: 10px; }
.mission-item img { width: 32px; height: 32px; padding: 6px; background: #1a304b; box-shadow: none; }
.section-heading { max-width: 790px; }
h2 { font-size: clamp(32px, 3.2vw, 47px); line-height: 1.5; font-weight: 600; }
html[dir="ltr"] h2 { line-height: 1.2; }
.section-index { display: block; color: #9cbfe9; font-size: 12px; letter-spacing: .08em; margin-bottom: 24px; }
.app-showcase { background: #0d1e34; }
.walkthrough-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.walkthrough-copy h2 { max-width: 560px; margin-bottom: 22px; }
.walkthrough-copy > p { max-width: 49ch; color: var(--muted); font-size: 16px; }
.role-tabs { display: inline-flex; gap: 5px; padding: 5px; background: #09172a; border: 1px solid var(--line); border-radius: 14px; margin-block: 28px; }
.role-tabs button { border: 0; border-radius: 10px; padding: 12px 20px; min-height: 48px; background: transparent; color: #aabbd0; font-size: 14px; }
.role-tabs [aria-selected="true"] { background: #80b7ff; color: #0b2447; font-weight: 600; }
.demo-steps { display: grid; gap: 7px; margin-bottom: 26px; }
.demo-step { display: grid; grid-template-columns: 35px 1fr 20px; align-items: start; gap: 16px; width: 100%; min-height: 73px; padding: 16px; border: 1px solid transparent; border-radius: 14px; background: transparent; text-align: start; }
.demo-step-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #3a5270; font: 12px var(--latin); color: #aabbd0; }
.demo-step strong { display: block; font-size: 16px; font-weight: 500; }
.demo-step small { display: block; color: #9daec5; font-size: 13px; line-height: 1.8; margin-top: 5px; }
.demo-step-arrow { margin-top: 4px; color: #80b7ff; }
.demo-step[aria-pressed="true"] { background: #152b45; border-color: #345678; }
.demo-step[aria-pressed="true"] .demo-step-number { color: #0b2447; background: #80b7ff; border-color: transparent; }
.demo-step:hover { background: #14273e; }
.text-action { display: inline-flex; gap: 20px; align-items: center; min-height: 44px; color: #9ccaff; font-size: 14px; font-weight: 600; text-underline-offset: 6px; }
.text-action:hover { text-decoration: underline; }
.walkthrough-copy .demo-disclaimer { font-size: 12px; line-height: 1.9; max-width: 56ch; margin-top: 19px; }
.demo-panel { position: relative; display: grid; justify-items: center; padding: 22px; isolation: isolate; }
.demo-panel::before { content: ""; position: absolute; inset: 12% -5%; border-radius: 50%; z-index: -1; background: radial-gradient(ellipse, #23486b55, transparent 68%); }
.demo-phone { width: 326px; min-height: 650px; background: #f5f7ff; color: #1b2d5b; border: 7px solid #617d9d; box-shadow: 0 0 0 2px #98afc8, 0 35px 70px -30px #000a, inset 0 0 0 1px #fff; border-radius: 43px; padding: 16px 17px 14px; font-family: "Readex Pro", sans-serif; overflow: hidden; }
.demo-phone-top { display: flex; align-items: center; justify-content: space-between; height: 24px; gap: 12px; margin: 0 5px 25px; direction: ltr; font: 600 10px var(--latin); }
.phone-island { width: 83px; height: 24px; background: #14233b; border-radius: 20px; }
.demo-screen { min-height: 530px; }
.phone-home-bar { width: 90px; height: 4px; border-radius: 9px; background: #192c59; margin: 13px auto 0; }
.demo-footnote { margin-top: 24px; font-size: 11px; color: #a9bbd1; }
.phone-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 12px; }
.phone-brand img { width: 67px; height: auto; }
.phone-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 11px; background: #e2eaff; color: #24499a; font-size: 17px; }
.phone-heading { font-size: 23px; font-weight: 600; line-height: 1.6; margin-bottom: 7px; }
.phone-subtitle { font-size: 11px; color: #626f90; line-height: 1.9; }
.phone-welcome { margin-top: 18px; position: relative; overflow: hidden; border-radius: 20px; padding: 20px 15px; background: #e2ebff; min-height: 165px; }
.phone-welcome strong { display: block; max-width: 145px; font-size: 17px; line-height: 1.7; position: relative; z-index: 1; }
.phone-welcome img { position: absolute; height: 150px; width: 115px; object-fit: contain; inset-inline-end: -2px; bottom: -4px; }
.phone-pseudo-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 16px; margin-top: 17px; border: 0; background: #24499a; color: #fff; border-radius: 12px; font-size: 11px; line-height: 1.5; }
.phone-pseudo-button:hover { background: #173577; }
.phone-pseudo-button:active { transform: scale(.98); }
.phone-section-label { display: block; font-size: 12px; font-weight: 600; margin: 22px 0 11px; }
.phone-card { padding: 16px; border-radius: 17px; background: #fff; border: 1px solid #e4e9f5; margin-top: 12px; }
.phone-card strong { display: block; font-size: 13px; line-height: 1.8; }
.phone-card p { color: #626f90; font-size: 10px; margin-top: 7px; line-height: 1.9; }
.phone-status { display: inline-flex; gap: 7px; align-items: center; font-size: 10px; margin-top: 10px; color: #71531b; background: #fff5df; padding: 6px 9px; border-radius: 7px; }
.phone-status.accepted { color: #23725b; background: #e9f6f0; }
.phone-input { font-size: 10px; padding: 13px; border: 1px solid #dce4f3; border-radius: 10px; margin-top: 8px; background: #fff; color: #697592; }
.phone-input.tall { min-height: 72px; }
.phone-field-label { display: block; font-size: 11px; font-weight: 500; margin-top: 19px; }
.phone-location-row { display: flex; gap: 8px; }
.phone-location-row > div { flex: 1; }
.phone-note { font-size: 10px; line-height: 1.9; color: #5d6e90; margin-top: 17px; padding: 11px; background: #e8efff; border-radius: 10px; }
.phone-timeline { padding: 0; margin: 20px 0; list-style: none; }
.phone-timeline li { display: flex; align-items: start; gap: 12px; font-size: 11px; padding-block: 12px; }
.phone-timeline li > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #e3ebff; color: #24499a; font: 10px var(--latin); flex: none; }
.phone-timeline small { display: block; font-size: 10px; color: #697592; margin-top: 4px; }
.phone-check { display: grid; place-items: center; width: 62px; height: 62px; background: #e2f3ed; color: #23856b; font-size: 28px; border-radius: 50%; margin: 14px auto 21px; }
.phone-center { text-align: center; }
.phone-nav { display: flex; justify-content: space-around; gap: 6px; border-top: 1px solid #e1e7f2; margin-top: 26px; padding-top: 14px; font-size: 10px; color: #52678f; }
.screenshot-archive { margin-top: 75px; padding-top: 25px; border-top: 1px solid var(--line); }
.screenshot-archive summary { color: #b7cff0; font-size: 14px; padding: 15px 0; cursor: pointer; }
.screenshot-archive[open] summary { margin-bottom: 25px; }
.screenshot-archive .app-showcase-heading h2 { font-size: 28px; }
.screenshot-archive .app-showcase-heading p { font-size: 14px; }
.screenshot-archive .app-gallery { grid-auto-columns: 240px; }
.app-screen-link { background: #425e7b; }
.app-phone-frame { background: #10243b; }
.app-phone-frame img { background: #fff; }
.app-zoom-mark { color: #0b2447; }
.app-dialog::backdrop { background: #020a16cc; }
.about { border-bottom: 1px solid var(--line); }
.problem-card-list { background: transparent; padding-block: 0; box-shadow: none; }
.problem-card-list li { padding-block: 20px; }
.scope-section { padding-top: var(--section-space); }
.scope-card { position: relative; padding: 30px; border: 1px solid var(--line); box-shadow: none; }
.scope-card img, .audience-icon { padding: 10px; border-radius: 14px; background: #23415f; }
.patient-journey { background: #0b1a2e; }
.journey-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 0; margin: 0; list-style: none; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--line); }
.journey-summary li { padding: 28px; background: #102138; }
.journey-summary span { display: block; color: var(--blue-400); font: 12px var(--latin); margin-bottom: 20px; }
.journey-summary h3 { font-size: 18px; }
.journey-summary p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.journey-details { margin-top: 24px; }
.journey-details > summary { cursor: pointer; color: var(--blue-400); font-weight: 700; padding-block: 16px; }
.journey-details[open] > summary { margin-bottom: 16px; }
@media (max-width: 767px) { .journey-summary { grid-template-columns: 1fr; } .journey-summary li { padding: 22px; } .journey-summary span { margin-bottom: 10px; } }
.needs-journey { gap: 1px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.needs-step { border-radius: 0; box-shadow: none; padding: 27px; background: #102138; }
.needs-step p { font-size: 14px; }
.needs-step h3 { font-size: 17px; }
.needs-step:last-child { background: #172e48; }
.request-next { display: grid; grid-template-columns: .8fr 1fr auto; gap: 25px; align-items: center; border-block: 1px solid var(--line); padding-block: 30px; margin-top: 38px; }
.request-next .section-index { margin-bottom: 9px; font: 10px var(--latin); }
.request-next h3 { font-size: 19px; }
.request-next p { font-size: 14px; color: var(--muted); }
.request-next .text-action { font-size: 12px; }
.privacy-panel { background: transparent; border: 1px solid var(--line); }
.privacy-panel ul li { padding-inline-start: 16px; border-inline-start: 2px solid #5588b6; }
.volunteer-panel, .join-form { box-shadow: inset 0 0 0 1px var(--line); }
.volunteer-intro { background: #122b47; color: var(--ink); }
.volunteer-symbol { opacity: .3; }
.volunteer-content { background: #102137; }
.volunteer-item p { font-size: 14px; }
.impact-section { padding-top: 0; }
.impact-grid { gap: 0; border-block: 1px solid var(--line); }
.impact-card, .impact-card:nth-last-child(-n+2) { grid-column: auto; border-radius: 0; box-shadow: none; padding: 22px; background: transparent; border-inline-end: 1px solid var(--line); }
.impact-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.impact-card:last-child { border-inline-end: 0; }
.impact-card h3 { font-size: 16px; }
.impact-card p { font-size: 13px; }
.contribution-record { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; align-items: center; padding: 50px; margin-top: 40px; background: #11243b; border: 1px solid #29425f; border-radius: 30px; overflow: hidden; }
.record-intro { position: relative; min-height: 335px; padding-bottom: 40px; }
.record-intro h3 { font-size: 29px; line-height: 1.6; max-width: 380px; }
.record-intro p { color: var(--muted); font-size: 14px; max-width: 34ch; margin-top: 20px; }
.record-intro img { position: absolute; height: 135px; width: 100px; object-fit: contain; bottom: -47px; inset-inline-end: -15px; opacity: .9; }
.record-document { padding: 28px; background: #0a192c; border: 1px solid #2b4666; border-radius: 18px; transform: rotate(-2deg); }
.record-document-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.record-document-head img { width: 37px; height: 37px; object-fit: contain; }
.record-mark { margin-inline-start: auto; font-size: 22px; color: #80b7ff; }
.sample-label { font-size: 11px; color: #a5b8d0; margin-block: 16px 22px; }
.record-document dl { margin: 0; }
.record-document dl > div { padding-block: 15px; border-top: 1px solid var(--line); }
.record-document dt { color: #9cacbf; font-size: 11px; }
.record-document dd { margin: 6px 0 0; font-size: 13px; }
.record-document-end { display: flex; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); color: #a4d8c2; font-size: 11px; }
.volunteer-record { background: transparent; padding-inline: 0; }
.audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.audience-card, .audience-card:nth-child(3), .audience-card:nth-child(4) { background: #12243b; margin-top: 0; box-shadow: inset 0 0 0 1px var(--line); }
.audience-card { min-height: 260px; }
.audience-card h3 { font-size: 24px; }
.future { background: #0c1c30; }
.club-card { background: #132840; box-shadow: inset 0 0 0 1px var(--line); }
.club-brand img { border-radius: 12px; background: #fff; padding: 5px; width: 64px; height: 64px; object-fit: contain; }
.idea-card:first-child { background: #132a44; }
.idea-vote { box-shadow: none; }
.register-section { background: radial-gradient(ellipse at 90% 20%, #173a6022, transparent 60%), #0d2037; color: var(--ink); border-top: 1px solid var(--line); }
.register-copy > p:not(.eyebrow), .preview-notice p { color: var(--muted); }
.register-logo { width: 190px; height: 260px; background: transparent; padding: 0; border-radius: 0; box-shadow: none; }
.join-form { --core: #14273f; --tray: #14273f; color: var(--ink); }
.role-option:has(:checked) { background: #213d5f; }
.form-field :is(input,select,textarea):focus { background: #11233a; }
.role-details .form-field :is(input,textarea,select) { background: #12263e; }
.footer { background: #071222; }
.footer .brand-name strong { color: var(--ink); }
.founder-card strong { color: var(--ink); }
.skip-link { color: #0b2447; }

/* A small companion stays at the viewport edge after the main mascot leaves. */
.mascot-companion {
  position: fixed;
  z-index: 10;
  inset-inline-end: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  width: 112px;
  pointer-events: none;
  animation: companion-arrive 300ms var(--settle) both;
}
.mascot-companion-toggle { display: block; width: 100%; border: 0; padding: 0; background: transparent; pointer-events: auto; transform: rotate(var(--guide-lean, 0deg)); transform-origin: bottom center; transition: transform 180ms ease; }
.mascot-companion-toggle img { width: 100%; height: auto; filter: drop-shadow(0 10px 13px #0006); user-select: none; }
.mascot-companion-toggle:hover { transform: rotate(var(--guide-lean, 0deg)) scale(1.04); }
.mascot-guide-panel { position: absolute; bottom: calc(100% + 10px); inset-inline-end: 0; width: min(300px, calc(100vw - 32px)); padding: 20px; color: #edf5ff; background: #142b44; border: 1px solid #496886; border-radius: 20px; box-shadow: 0 18px 50px #0009; pointer-events: auto; text-align: start; }
.mascot-guide-panel strong { display:block; font-size:16px; }
.mascot-guide-panel p { color:#bfd0e0; font-size:12px; margin:5px 0 13px; }
.mascot-guide-panel nav { display:grid; gap:3px; }
.mascot-guide-panel a { display:flex; align-items:center; min-height:42px; padding:8px 12px; font-size:13px; border-radius:10px; }
.mascot-guide-panel a:hover, .mascot-guide-panel a:focus-visible { background:#254866; }
.mascot-guide-game { color:#a9d2ff; }
.footer-guide-slot { display:none; justify-content:flex-end; padding-block:24px; }
.footer.guide-docked .footer-guide-slot { display:flex; }
.mascot-companion.is-docked { position:relative; inset:auto; bottom:auto; flex:none; }
.mascot-companion.is-form-active { display:none; }
.mascot-companion-dismiss { position: absolute; inset-inline-end: -14px; top: -15px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; pointer-events: auto; }
.mascot-companion-dismiss span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #4b6481; border-radius: 50%; background: #14243a; color: #eaf1fc; font: 20px/1 var(--latin); transition: background 150ms; }
.mascot-companion-dismiss:hover span { background: #294666; }
body.menu-open .mascot-companion, body.app-viewer-open .mascot-companion { display: none; }
@keyframes companion-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .mascot-companion { width: 76px; inset-inline-end: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .mascot-companion { animation: none; } .mascot-companion-toggle { transform:none !important; transition:none; } }

@media (max-width: 1180px) {
  .site-header { width: calc(100% - 48px); }
  .nav-links { background: #0b1a2efc; }
.midnight-stage { height: 420px; }
  .hero-status-card { width: 240px; padding: 22px; }
  .hero-status-card h2 { font-size: 22px; }
  .logo-scene { width: 340px; }
  .walkthrough-layout { gap: 35px; }
  .contribution-record { gap: 35px; padding: 35px; }
  .request-next { grid-template-columns: 1fr 1fr; }
  .request-next .text-action { grid-column: 1 / -1; }
  .impact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .impact-card { border-block-end: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero-status-card { width: 215px; padding: 20px; }
  .logo-scene { width: 320px; }
  .request-card { top: 25px; }
  .opportunity-card { bottom: 10px; }
  .hero-status-card h2 { font-size: 20px; }
  .walkthrough-layout { grid-template-columns: 1fr 1fr; gap: 20px; }
  .demo-panel { padding-inline: 5px; }
  .role-tabs button { padding-inline: 13px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .midnight-stage { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 20px; padding-top: 380px; height: auto; }
  .logo-scene { top: 0; height: 380px; }
  .hero-status-card { position: relative; inset: auto; width: auto; transform: none; }
  .scene-orbit { inset: 45px 0 210px; }
  .second-orbit { inset: 80px 0 190px; }
  .mission-strip { margin-top: 28px; }
}
@media (max-width: 767px) {
  :root { --section-space: 65px; }
  .site-header { width: calc(100% - 24px); top: 12px; }
  .nav { min-height: 65px; padding-inline: 15px; gap: 10px; }
  .brand-wordmark { width: 90px; }
  .brand, .nav-actions { gap: 10px; }
  .brand-name { padding-inline-start: 10px; }
  .brand-name strong { font-size: 22px; }
  .hero { padding-block: 40px 0; }
  .hero-copy { padding-inline: 5px; }
  .hero h1, html[dir="ltr"] .hero h1 { font-size: clamp(31px, 7.5vw, 48px); margin-bottom: 20px; }
  .hero-description { font-size: 14px; }
  .hero-note { font-size: 11px; align-items: baseline; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .button { font-size: 13px; }
  .midnight-stage { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding-top: 355px; height: auto; margin-top: 16px; }
  .logo-scene { top: 0; width: 310px; height: 360px; max-width: 100%; }
  .scene-orbit { inset: 65px 0 270px; }
  .second-orbit { inset: 80px 10px 255px; }
  .hero-status-card { position: relative; inset: auto; width: auto; min-width: 0; padding: 20px; transform: none; }
  .hero-status-card h2 { font-size: 20px; }
  .hero-status-card p { font-size: 12px; }
  .preview-caption { font-size: 10px; gap: 6px; }
  .mini-index { display: none; }
  .request-state { margin-top: 15px; }
  .opportunity-meta { margin-top: 15px; gap: 6px; }
  .mission-strip { margin-top: 30px; gap: 12px; padding-block: 22px; font-size: 12px; }
  .walkthrough-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .walkthrough-copy h2 { font-size: 35px; }
  .section-index { margin-bottom: 16px; font-size: 11px; }
  .demo-steps { gap: 3px; }
  .role-tabs { width: 100%; }
  .role-tabs button { flex: 1; padding-inline: 10px; font-size: 13px; }
  .demo-step { padding: 14px 10px; }
  .demo-phone { width: min(326px, 100%); }
  .demo-panel { padding: 12px 5px; }
  .demo-panel::before { inset-inline: 0; }
  .screenshot-archive { margin-top: 40px; }
  .screenshot-archive .app-gallery { grid-auto-columns: min(70vw, 250px); }
  .scope-grid { gap: 14px; }
  .scope-card { display: grid; grid-template-columns: 45px 1fr; gap: 4px 18px; padding: 23px; }
  .scope-card img { grid-row: span 2; width: 45px; height: 45px; margin: 0; }
  .scope-card h3 { font-size: 18px; }
  .scope-card p { grid-column: 2; margin-top: 5px; font-size: 14px; }
  .needs-journey { gap: 1px; }
  .needs-step { padding: 24px; display: grid; grid-template-columns: 30px 1fr; gap: 0 18px; }
  .needs-number { grid-row: span 2; margin: 4px 0 0; }
  .needs-step p { grid-column: 2; font-size: 14px; margin-top: 8px; }
  .request-next { grid-template-columns: minmax(0, 1fr); }
  .privacy-panel { padding-inline: 0; border: 0; }
  .privacy-panel ul { grid-template-columns: 1fr 1fr; width: 100%; }
  .impact-grid { grid-template-columns: minmax(0, 1fr); }
  .impact-card, .impact-card:nth-last-child(-n+2) { display: grid; grid-template-columns: 25px 1fr; gap: 0 15px; padding: 22px 0; border-inline: 0; }
  .impact-card > span { grid-row: span 2; margin-bottom: 0; padding-top: 4px; }
  .impact-card p { grid-column: 2; margin-top: 5px; }
  .contribution-record { grid-template-columns: minmax(0, 1fr); gap: 25px; padding: 25px 20px; }
  .record-intro { min-height: auto; padding: 0; }
  .record-intro img { display: none; }
  .record-intro h3 { font-size: 26px; }
  .record-intro p { max-width: none; }
  .record-document { transform: none; padding: 20px; }
  .audience-grid { grid-template-columns: minmax(0, 1fr); }
  .audience-card { min-height: auto; }
  .club-card { padding: 26px; }
}
@media (max-width: 400px) {
  .midnight-stage { grid-template-columns: minmax(0, 1fr); }
  .hero-status-card { padding: 22px; }
  .hero-status-card h2 { font-size: 23px; }
  .hero-status-card p { font-size: 13px; }
  .opportunity-meta { gap: 20px; }
  .hero-actions { display: flex; }
  .hero-actions .button { padding-inline: 16px 8px; gap: 8px; }
  .brand-wordmark { width: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-scene { transform: translateX(-50%) !important; }
  .hero-status-card { transform: none; }
}
@media (forced-colors: active) {
  .brand-wordmark { filter: none; background: white; }
  .hero-status-card, .demo-phone, .record-document, .role-tabs, .demo-step { border: 1px solid CanvasText; }
  .role-tabs [aria-selected="true"], .demo-step[aria-pressed="true"] { outline: 2px solid Highlight; }
}
