/* Content stays readable without JavaScript. Desktop retains its existing composition. */
.reveal { opacity: 1; transform: none; }
.can-reveal .reveal:not(.visible) { opacity: 0; transform: translateY(22px); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

@media (max-width: 800px) {
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(100px + env(safe-area-inset-top)); }
  body { min-width: 0; padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); font-size: 1rem; }
  a, button { touch-action: manipulation; -webkit-tap-highlight-color: #69dcff26; }
  .section-shell { width: calc(100% - 36px); }
  .page-glow { height: 780px; opacity: .75; }
  .site-header { position: sticky; top: 0; height: auto; min-height: 72px; padding: calc(12px + env(safe-area-inset-top)) 18px 12px; gap: 12px; background: #071321f2; backdrop-filter: blur(14px); }
  .wordmark { min-width: 0; gap: 9px; font-size: 1rem; }
  .wordmark > span:last-child { font-size: 1rem; overflow-wrap: anywhere; }
  .wordmark-icon { flex: 0 0 36px; width: 36px; height: 38px; }
  .menu-button { display: flex; flex: 0 0 48px; width: 48px; height: 48px; padding: 12px; border: 1px solid #3d5870; border-radius: 12px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #ddf8ff; background: #102337; }
  .menu-button span:not(.sr-only) { display: block; width: 21px; height: 2px; background: currentColor; transition: transform .15s; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { display: none; position: absolute; top: calc(100% - 1px); left: 12px; right: 12px; max-height: calc(100dvh - 110px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; padding: 10px; gap: 4px; align-items: stretch; flex-direction: column; border: 1px solid #3c5670; border-radius: 0 0 16px 16px; background: #102135; box-shadow: 0 20px 35px #0007; }
  .main-nav.open { display: flex; }
  .main-nav a { min-height: 48px; padding: 14px; font-size: 1rem; line-height: 1.5; border-radius: 8px; }
  .main-nav .nav-feature { height: auto; margin: 4px 0 0; justify-content: space-between; }

  .hero { min-height: 0; padding: 36px 0 40px; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-copy { min-width: 0; }
  .kicker { margin-bottom: 18px; gap: 9px; font-size: .75rem; line-height: 1.6; letter-spacing: .06em; }
  .kicker span { flex: 0 0 18px; }
  .hero h1 { font-size: clamp(2.2rem, 9.6vw, 3.5rem); line-height: 1.1; letter-spacing: -.045em; overflow-wrap: anywhere; }
  .hero-intro { margin-top: 22px; font-size: 1rem; line-height: 1.7; color: #bdcada; }
  .hero-actions { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .button { min-height: 52px; width: 100%; padding: 14px 16px; border-radius: 10px; font-size: 1rem; line-height: 1.4; text-align: center; }
  .button span { flex-shrink: 0; }

  /* Reflow the existing topology and its labels; no floating cards obscure the diagram. */
  .hero-visual { min-height: 0; padding: 16px 12px 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-radius: 18px; clip-path: none; overflow: hidden; }
  .visual-label { position: static; grid-column: 1 / -1; font-size: .75rem; letter-spacing: .06em; padding-left: 4px; }
  .visual-label span { animation: none; }
  .topology { position: relative; inset: auto; grid-column: 1 / -1; width: 100%; aspect-ratio: 700 / 520; }
  .topology svg { display: block; position: absolute; inset: 0; }
  .topology-node text { font-size: 27px; letter-spacing: .035em; }
  .node-core text { font-size: 24px; }
  .signal-card { position: static; min-width: 0; display: flex; justify-content: center; padding: 10px 3px; border-radius: 7px; box-shadow: none; backdrop-filter: none; }
  .signal-card b, .signal-card i { display: none; }
  .signal-card span { font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
  .principles { margin-inline: 18px; padding: 0; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .principles > div, .principles > div:first-child { min-height: 0; padding: 20px 16px; gap: 0 4px; border: 0; }
  .principles > div + div { border-top: 1px solid var(--line); }
  .principles span { font-size: .75rem; line-height: 1.8; }
  .principles strong { font-size: 1rem; }
  .principles p { margin-top: 7px; font-size: 1rem; line-height: 1.6; color: #a6b8cc; }

  .featured, .content-section { padding-top: 64px; }
  .section-heading, .section-heading.compact { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 26px; }
  .section-heading h2, .about h2 { font-size: clamp(1.9rem, 7.8vw, 2.9rem); line-height: 1.14; letter-spacing: -.035em; overflow-wrap: anywhere; }
  .section-heading h2 br, .about h2 br { display: none; }
  .section-heading > p { font-size: 1rem; line-height: 1.65; color: #acbfd2; }
  .project-card { min-height: 0; grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .project-card:hover { transform: none; }
  .project-copy { min-height: 0; padding: 24px 20px; gap: 28px; }
  .project-meta { flex-wrap: wrap; gap: 8px; font-size: .75rem; line-height: 1.6; letter-spacing: .04em; }
  .project-overline { font-size: .875rem; line-height: 1.5; letter-spacing: .025em; }
  .project-copy h3 { font-size: clamp(1.8rem, 8vw, 2.7rem); line-height: 1.1; }
  .project-copy h3 + p { margin-top: 18px; font-size: 1rem; color: #acbfd2; }
  .project-link { font-size: 1rem; min-height: 44px; justify-content: space-between; }
  .project-link b { width: 44px; height: 44px; border-radius: 9px; }
  .project-preview { align-self: stretch; height: 238px; min-width: 0; margin: 0 12px 12px; transform: none; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 30px #0005; }
  .preview-browser { height: 34px; gap: 5px; padding: 0 10px; }
  .preview-browser span { width: auto; flex: 1; min-width: 0; margin-left: 4px; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .preview-body { height: calc(100% - 34px); grid-template-columns: minmax(0, 1fr); }
  .preview-sidebar, .preview-title, .preview-search { display: none; }
  .preview-grid { padding: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 78px minmax(0, 1fr); gap: 8px; }
  .preview-stat { min-width: 0; padding: 10px 6px; }
  .preview-stat b { font-size: 1.4rem; }
  .preview-stat span { font-size: .75rem; letter-spacing: -.03em; overflow-wrap: anywhere; }
  .preview-chart { padding: 12px; gap: 8px; }

  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .content-card, .primary-content { grid-column: auto; min-height: 0; padding: 22px 20px; border-radius: 14px; gap: 26px; }
  .primary-content { border-color: #437489; background: radial-gradient(ellipse at 0 0, #16465b66, transparent 70%), #0b1b2c; }
  .card-top { align-items: start; flex-wrap: wrap; gap: 9px; }
  .content-type, .card-arrow, .card-index { font-size: .75rem; line-height: 1.5; letter-spacing: .03em; }
  .card-series { font-size: .75rem; line-height: 1.6; letter-spacing: .045em; }
  .content-card h3 { margin-top: 10px; font-size: 1.5rem; line-height: 1.2; }
  .content-card h3 + p { font-size: 1rem; line-height: 1.65; color: #a6bbd1; }
  .card-visual { height: 126px; margin: 0; border-radius: 10px; }
  .card-visual b { font-size: .75rem; letter-spacing: .06em; }
  .card-visual .play-button { width: 48px; height: 48px; }
  .mini-diagram, .nse-mark { display: none; }
  .about { margin-top: 64px; padding-block: 40px 48px; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about-mark { width: 72px; max-width: 72px; margin: 0; }
  .about-mark span { font-size: 2rem; }
  .about-mark i { display: none; }
  .about-copy > p:not(.kicker) { margin-top: 20px; font-size: 1rem; line-height: 1.7; color: #aebfd1; }
  .about-tags { margin-top: 24px; gap: 7px; }
  .about-tags span { font-size: .75rem; line-height: 1.5; color: #abc1d7; border-radius: 6px; }
  .site-footer { min-height: 0; padding-block: 28px calc(28px + env(safe-area-inset-bottom)); grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .site-footer > div:first-child { gap: 10px; }
  .footer-mark { flex: 0 0 38px; }
  .site-footer > div:first-child p { font-size: 1rem; line-height: 1.5; }
  .footer-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .footer-links a { min-height: 48px; display: flex; align-items: center; padding: 10px 2px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .fine-print { margin-top: 4px; font-size: .75rem; line-height: 1.65; letter-spacing: .02em; color: #8ba3bc; }
  .reveal, .can-reveal .reveal:not(.visible) { opacity: 1; transform: none; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .can-reveal .reveal:not(.visible) { opacity: 1; transform: none; transition: none; }
  .data-pulses { display: none; }
  .menu-button span { transition: none; }
}
