/* Final, shared usability layer. Load AFTER every page-specific stylesheet.
   Keep the industrial composition; give text and controls enough physical room. */
:root {
  --gutter: clamp(20px, 4.5vw, 88px);
  --ui-header-height: 96px;
  --ui-control: 48px;
  --ui-focus: #efd6a9;
  --ui-subtle: #a8b5ad;
  --ui-selected: #c7a77917;
  --muted: #a8b5ad;
}

html { scroll-padding-top: 24px; scroll-padding-bottom: 112px; }
body { font-size: 16px; line-height: 1.75; }
button, input, select, textarea { font-family: var(--body); }
button, a, summary { touch-action: manipulation; }
:is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 4px;
}
:is(button, a, summary, input) { scroll-margin-block: 24px 112px; }
button:disabled { cursor: not-allowed; }

/* Text links inside prose remain inline. These selectors are actual controls. */
.button, .community-link, .hero-secondary, .motion-button,
.showcase-tabs button, .showcase-points-list button, .showcase-copy .text-link,
.media-filters button, .guide-play, .guide-back, .guide-mode-link,
.hangar-home, .hangar-frame-switch button, .hangar-view-bottom a,
.ops-back, .ops-tool, .ops-command, .ops-reset, .ops-next,
.trailer-bottom a, .download {
  min-height: var(--ui-control);
  font-size: 14px;
  line-height: 1.45;
}
.button {
  min-height: 52px;
  padding: 14px 22px;
  gap: 20px;
  font-size: 15px;
  white-space: normal;
  text-align: left;
}
.button > span:first-child { min-width: 0; }
.button > span:last-child { flex-shrink: 0; }
.text-control, .hangar-language, .ops-language {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-width: 84px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #a7b39b55;
  background: #121b1ed9;
  color: #a8b4ab;
  font: 14px/1.4 var(--body) !important;
  letter-spacing: .01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.language-current { color: #f0dfbf; font-weight: 700; }
.language-divider, .language-separator { color: #839086; font-weight: 400; }
:is(.text-control, .hangar-language, .ops-language):hover {
  border-color: var(--accent);
  background: #c7a77914;
}
.am-icon { width: 32px; height: 32px; }

/* Navigation: real text size and full targets, before collapsing to a menu. */
.site-header {
  height: var(--ui-header-height);
  padding-inline: var(--gutter);
  gap: 24px;
}
.site-header .brand { flex-shrink: 0; }
.main-nav { gap: clamp(16px, 1.8vw, 28px); }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .01em;
  white-space: nowrap;
}
.header-actions { gap: 12px; flex-shrink: 0; }
.community-link { padding: 12px 16px; gap: 16px; }
.menu-toggle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 12px;
  border: 1px solid #a7b39b55;
  align-items: center;
}
.menu-toggle span { width: 24px; }
.mobile-nav {
  top: var(--ui-header-height);
  padding: 16px var(--gutter) 24px;
  max-height: calc(100svh - var(--ui-header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav:not([hidden]) { gap: 4px; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; font-size: 16px; }

/* The first screen grows with English copy. No absolute copy/CTA/index anchors. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 270px);
  grid-template-areas: "topline topline" "copy index" "foot foot";
  align-items: center;
  align-content: center;
  column-gap: clamp(32px, 4vw, 64px);
  row-gap: clamp(28px, 4vh, 48px);
  height: auto;
  min-height: 100svh;
  max-height: none;
  padding: calc(var(--ui-header-height) + 32px) var(--gutter) 34px;
}
.hero-topline, .hero-copy, .hero-index, .hero-foot {
  position: relative;
  inset: auto;
  width: auto;
  max-width: none;
  min-width: 0;
}
.hero-topline { grid-area: topline; font-size: 12px; line-height: 1.6; letter-spacing: .09em; gap: 20px; }
.hero-topline > span:last-child { font-size: 12px; letter-spacing: .09em; }
.hero-copy { grid-area: copy; }
.hero-copy > .eyebrow { font-size: 12px; line-height: 1.6; letter-spacing: .1em; }
.hero-copy > .eyebrow:before { flex-shrink: 0; }
.hero h1 {
  font-size: clamp(88px, 11.6vw, 174px);
  line-height: .98;
  letter-spacing: .005em;
  margin: 24px 0 32px;
  max-width: 100%;
}
.hero h1 > span:first-child { font-size: .34em; letter-spacing: .2em; margin-bottom: 12px; }
.hero-bottom-copy {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(24px, 3vw, 42px);
  max-width: none;
}
.hero-statement { font-size: clamp(27px, 2.7vw, 38px); line-height: 1.3; }
.hero-description { width: auto; max-width: 440px; margin: 0; }
.hero-description p { font-size: 16px; line-height: 1.75; }
.hero-description p br { display: none; }
.hero-description .button { min-width: 0; min-height: 54px; padding: 14px 20px; margin-top: 20px; font-size: 15px; width: 100%; }
.hero-secondary-links { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px 12px; margin-top: 12px; }
.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #b4c1b74d;
  background: #10191b7d;
  color: #d5d9cd;
  font-size: 14px;
  line-height: 1.45;
  white-space: normal;
}
.hero-secondary:hover { border-color: var(--accent); color: #f0d6aa; background: #c7a77912; }
.trailer-trigger i { font-size: 22px; line-height: 1; flex-shrink: 0; }
.hero-index { grid-area: index; padding: 0 0 16px; align-self: end; }
.hero-index-head { padding: 16px 0; font-size: 12px; letter-spacing: .035em; gap: 12px; flex-wrap: wrap; }
.hero-scene-caption { font-size: 28px; line-height: 1.3; min-height: 0; }
.hero-scene-copy { font-size: 14px; line-height: 1.65; min-height: 0; margin-top: 12px !important; }
.hero-scene-options { margin-top: 22px; }
.hero-scene-option {
  min-height: 64px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 13px;
  padding: 12px 10px;
  font-size: 15px;
  line-height: 1.45;
}
.hero-scene-option[aria-pressed=true] { padding: 12px 10px; }
.hero-scene-option .am-icon { width: 28px; height: 28px; }
.hero-scene-option small { font-size: 12px; }
.hero-index-foot { font-size: 12px; line-height: 1.6; letter-spacing: .025em; }
.hero-foot { grid-area: foot; flex-wrap: wrap; gap: 16px 28px; font-size: 12px; letter-spacing: .04em; }
.scroll-cue { min-height: 44px; max-width: none; line-height: 1.5; }
.scroll-line { height: 32px; flex-shrink: 0; }
.art-note { font-size: 12px; }
.motion-button { padding: 10px 12px; border: 1px solid #a7b39b45; font-size: 14px; line-height: 1.4; }
.motion-icon { font-size: 24px; }

/* Narrative text: readable without changing the display-title hierarchy. */
:is(.intro-text > p:not(.lead), .intro-text p.muted, .chapter p,
  .heading-row > .muted, .showcase-section .heading-row > .muted,
  .experience-heading > p, .experience-card-copy > p,
  .principle-preface > p, .principle-panel .chain-explanation p,
  .enemy-tactics p, .mode-content > p, .guide-directory > p,
  .media-wait p, .community-body, .platform p,
  .showcase-description, .showcase-focus-note,
  .guide-intro, .guide-section > p, .guide-section .guide-prose p,
  .guide-card p, .guide-system-grid dd, .guide-example p,
  .hangar-intro-copy p, .hangar-panel-source > p, .hangar-detail-note p,
  .ops-intro-copy, .ops-panel-heading > p, .ops-small-copy,
  .ops-research-details dd, .ops-research-principle p,
  .trailer-bottom p, .review-intro > p, .review-section > p, .state-list p, .steps) {
  font-size: 16px;
  line-height: 1.75;
}
.intro-text .lead { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.5; }
.intro-layout { gap: clamp(32px, 6vw, 86px); }
.intro-text { max-width: 620px; }
.heading-row > .muted, .experience-heading > p { max-width: 380px; }
.eyebrow, .section-number, .chapter-kicker, .chapter-detail,
.manifesto-strip, .world-link > small, .hero-index-foot,
.experience-visual > .scene-code, .experience-card-copy > small, .experience-foot,
.map-caption, .map-footer, .map-footer > span:last-child, .chapter-image-hint,
.showcase-image-kind, .showcase-frame-count, .showcase-bottom > p,
.showcase-thumbnails span, .showcase-provenance, .media-provenance,
.node-number, .node-status, .diagram-caption, .return-route p,
.enemy-map-footer, .enemy-map-footer > span:last-child,
.mode-heading small, .mode-type, .mode-tags span, .modes-footnote,
.gallery-caption small, .community-eyebrow, .community-meta,
.guide-status, .guide-figure figcaption, .guide-card .guide-card-index,
.guide-system-grid dt, .guide-example > span, .guide-table th, .guide-note,
.guide-next span, .guide-footer, .site-footer p, .preview-note,
.hangar-eyebrow, .hangar-inventory > span, .hangar-source-meta,
.hangar-view-number, .hangar-capture-label, .hangar-stage-tag,
.hangar-single-frame, .hangar-view-bottom, .hangar-catalog-index,
.hangar-catalog-meta, .hangar-footer,
.ops-eyebrow, .ops-surface-heading, .ops-inspector-label,
.ops-point-name, .ops-point-unit, .ops-map-legend, .ops-receipt-label,
.ops-panel-footnote, .ops-node-eyebrow, .ops-node-state, .ops-node-level,
.ops-fleet-status small, .ops-footer, .trailer-top small, .trailer-credits {
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: .035em;
}
.experience-foot, .diagram-caption, .media-provenance, .showcase-provenance,
.modes-footnote, .guide-note, .community-meta, .ops-panel-footnote,
.site-footer p, .trailer-credits { color: var(--ui-subtle); }
.world-link > span, .guide-directory-links a, .experience-open { font-size: 14px; line-height: 1.5; }
.world-link { min-width: 0; }
.world-link > span { padding-right: 4px; }
.experience-card-copy { display: flex; flex-direction: column; padding: 28px; }
.experience-card-copy > small { padding-right: 40px; }
.experience-card-copy > p { max-width: none; min-height: 0; }
.experience-open { min-height: 48px; margin-top: auto; padding-top: 20px; }
.experience-card-copy > p + .experience-open { margin-top: 24px; }
.experience-heading { gap: 32px; }
.logic-node p { font-size: 14px; line-height: 1.7; }
.principle-panel .chain-explanation .chain-consequence { font-size: 14px; }
.mode-number small { font-size: 11px; right: 5px; bottom: 2px; }
.mode-heading small { max-width: none; }
.mode-content > .guide-mode-link { display: inline-flex; align-items: center; font-size: 14px; line-height: 1.5; }
.mode-tags span { padding: 7px 10px; }
.gallery-caption { align-items: end; flex-wrap: wrap; gap: 8px 20px; }
.gallery-caption small { white-space: normal; }
.platform-status { font-size: 16px; line-height: 1.5; }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.platform { min-width: 0; }
.platform p { max-width: none; }

/* Atlas, image inspection and filters. Inverse-zoom hotspot transforms stay intact. */
.world-explorer { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); }
.world-visual { --atlas-controls-height: 64px; height: 76svh; min-height: 500px; max-height: 840px; }
.map-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(100px, 1fr) auto;
  height: calc(100% - var(--atlas-controls-height));
  min-height: 330px;
}
.world-controls { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); height: auto; min-height: var(--atlas-controls-height); gap: 0; align-items: stretch; }
.world-controls button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  width: auto;
  min-height: 64px;
  padding: 8px 4px;
  font: 14px/1.35 var(--body);
  color: #a8b5ad;
}
.world-controls button small { font: 12px/1.4 var(--mono); opacity: .8; }
.world-controls button span { max-width: 100%; overflow-wrap: anywhere; }
.world-controls button.active:after { left: 6px; right: 6px; height: 2px; }
.chapter { min-width: 0; }
.chapter p, .chapter-detail { max-width: 500px; }
.chapter-media { position: relative; inset: auto; grid-column: 1 / -1; grid-row: 2; padding: 0; width: 100%; height: 100%; min-height: 0; }
.chapter-image-hint { bottom: 8px; right: 12px; padding: 4px 8px; background: #101718e8; }
.map-caption { position: relative; inset: auto; grid-column: 1; grid-row: 1; flex-wrap: wrap; gap: 4px 10px; padding: 12px 16px; min-width: 0; }
.map-footer { position: relative; inset: auto; grid-column: 1 / -1; grid-row: 3; padding: 12px 16px; align-items: start; min-height: 54px; border-top: 1px solid var(--line); }
.map-footer > span:last-child { max-width: 60%; text-align: right; }
.atlas-zoom { position: relative; inset: auto; grid-column: 2; grid-row: 1; margin: 12px 12px 12px 0; align-self: center; justify-self: end; }
.atlas-zoom button, .showcase-zoom button,
.hangar-tool-button, .hangar-catalog-arrows button,
.showcase-bottom button, .lightbox-close, .lightbox-prev, .lightbox-next,
.trailer-close, .hangar-pan button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 8px;
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.atlas-zoom #zoom-reset, .showcase-zoom button:nth-child(2) { width: 64px; min-width: 64px; font-size: 14px; }
.showcase-point, .hangar-hotspot { width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: 14px !important; }
.showcase-tabs { flex-wrap: wrap; gap: 8px 24px; overflow: visible; }
.showcase-tabs button { gap: 12px; padding: 12px 4px; min-height: 56px; }
.showcase-tabs button .am-icon { width: 28px; height: 28px; }
.showcase-tabs button span { font-size: 12px; }
.showcase-layout { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 32px; }
.showcase-points-list button { padding: 12px 8px; gap: 16px; }
.showcase-points-list button > span { font-size: 12px; }
.showcase-copy .text-link { padding-block: 10px; gap: 20px; }
.showcase-thumbnails { gap: 14px; padding: 5px 4px 16px; }
.showcase-thumbnails button { flex-basis: 170px; }
.showcase-thumbnails img { height: 100px; }
.showcase-bottom { align-items: start; }
.showcase-bottom > div { gap: 8px; }
.showcase-zoom { right: 12px; bottom: 12px; }
.showcase-frame-count { bottom: 27px; left: 12px; }
.media-filters { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.media-filters button { padding: 10px 8px; min-height: 48px; }
.scenario-tabs button { min-height: 64px; min-width: 0; }
.scenario-tabs button b { font-size: 14px; line-height: 1.5; }
.scenario-tabs button > i { font-size: 18px; flex-shrink: 0; }

/* Selected means a border/underline as well as a different colour. */
:is(.hero-scene-option, .world-controls button, .showcase-tabs button,
  .showcase-points-list button, .media-filters button, .scenario-tabs button,
  .hangar-frame-switch button, .hangar-filters button, .hangar-point-button,
  .guide-nav-link, .ops-command):is([aria-pressed=true], [aria-current=page], .active, .is-selected) {
  color: #f0dfbd;
  background-color: var(--ui-selected);
  border-color: #b99e72;
  box-shadow: inset 0 -2px #c7a779;
}
:is(.atlas-zoom button, .showcase-zoom button, .hangar-tool-button, .ops-primary):disabled {
  color: #9ba79d;
  background: #232d29;
  border-color: #647064;
  box-shadow: none;
  opacity: .65;
  cursor: not-allowed;
}

/* Field guide. The larger sidebar stays independent of prose and tables. */
.guide-header { height: auto; min-height: 96px; padding-block: 20px; gap: 24px; }
.guide-back, .guide-play { display: inline-flex; align-items: center; }
.guide-layout { grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 4.5vw, 72px); }
.guide-sidebar { top: 24px; }
.guide-nav-link { min-height: 60px; padding: 13px 12px; gap: 12px; font-size: 14px; line-height: 1.5; align-items: center; }
.guide-nav-link[aria-current=page] { padding-left: 10px; }
.guide-nav-link > .am-icon { width: 26px; height: 26px; }
.guide-nav-link > span { font-size: 12px; }
.guide-content h1 { overflow-wrap: anywhere; }
.guide-system summary { min-height: 80px; font-size: 26px; line-height: 1.35; gap: 16px; }
.guide-system summary > .am-icon { width: 30px; height: 30px; }
.guide-system summary > span { font-size: 12px; }
.guide-system summary:after { font-size: 28px; flex-shrink: 0; }
.guide-system-grid { grid-template-columns: 145px minmax(0, 1fr); gap: 18px 26px; padding-left: 0; padding-right: 0; }
.guide-system-grid dt { font-size: 13px; }
.guide-table td { font-size: 14px; line-height: 1.75; }
.guide-table th { font-size: 12px; }
.guide-table-wrap { padding: 4px 0 10px; }
.guide-next { font-size: 16px; line-height: 1.5; min-height: 64px; flex-wrap: wrap; }
.guide-demo-link.button { display: inline-flex; max-width: 100%; min-height: 52px; font-size: 15px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }

/* Hangar: roomy controls, same image transform, no global scaling. */
.hangar-header { min-height: 96px; height: auto; padding: 20px var(--gutter); gap: 24px; }
.hangar-header-location { margin-left: 0; gap: 20px; font-size: 13px; }
.hangar-header-actions { gap: 16px; }
.hangar-main { padding-inline: var(--gutter); }
.hangar-intro { flex-wrap: wrap; }
.hangar-intro-copy { max-width: 480px; }
.hangar-intro-copy > span { font-size: 14px; line-height: 1.75; }
.hangar-inventory > span { max-width: 100px; }
.hangar-console { grid-template-columns: minmax(0, 1fr) 330px; }
.hangar-panel { padding: 26px 24px 0; }
.hangar-panel-head > .hangar-eyebrow, .hangar-panel-source > .hangar-eyebrow,
.hangar-points-heading > .hangar-eyebrow { font-size: 12px; }
.hangar-panel h2 { font-size: 38px; line-height: 1.25; }
.hangar-role { font-size: 14px; line-height: 1.7; }
.hangar-view-top { height: auto; min-height: 64px; padding: 12px 18px; flex-wrap: wrap; }
.hangar-view-heading { font-size: 14px; line-height: 1.5; gap: 12px; flex: 1 1 180px; }
.hangar-view-heading > span:last-child { white-space: normal; overflow: visible; }
.hangar-capture-label { max-width: 180px; white-space: normal; line-height: 1.6; text-align: right; }
.hangar-tools { gap: 12px; padding: 14px 16px; }
.hangar-frame-switch { gap: 6px; flex: 1 1 280px; }
.hangar-frame-switch button { padding: 10px 12px; line-height: 1.5; }
.hangar-zoom { gap: 8px; flex-wrap: wrap; }
.hangar-zoom output { width: 48px; font-size: 14px; }
.hangar-page .hangar-tool-button { font-size: 26px !important; }
.hangar-page .hangar-reset, .hangar-page .hangar-point-button,
.hangar-page .hangar-filters button { font-size: 14px !important; line-height: 1.45; }
.hangar-reset { min-height: 48px; padding: 10px 12px; gap: 8px; }
.hangar-reset > span:first-child { font-size: 25px; }
.hangar-details-link { display: none; }
.hangar-point-button { min-height: 52px; padding: 12px; gap: 12px; }
.hangar-point-button > span:first-child { font-size: 13px; }
.hangar-point-button > span:last-child { font-size: 20px; }
.hangar-view-bottom { flex-wrap: wrap; align-items: center; padding: 12px 16px; }
.hangar-view-bottom > span { flex: 1 1 240px; max-width: none; }
.hangar-view-bottom a { white-space: normal; }
.hangar-points-heading .am-icon { width: 26px; height: 26px; }
.hangar-source-meta { flex-wrap: wrap; }
.hangar-detail-index { font-size: 14px; }
.hangar-catalog-heading { flex-wrap: wrap; gap: 12px 20px; }
.hangar-catalog h2 { font-size: 13px; line-height: 1.5; white-space: normal; }
.hangar-filters { flex-wrap: wrap; gap: 8px; }
.hangar-filters button { min-height: 48px; padding: 10px 12px; }
.hangar-catalog-arrows { gap: 8px; }
.hangar-catalog-track { grid-auto-columns: minmax(180px, 1fr); gap: 12px; padding: 5px 4px 16px; margin-inline: -4px; }
.hangar-catalog-info { padding: 12px; }
.hangar-catalog-name { font-size: 20px; line-height: 1.35; min-height: 54px; }
.hangar-catalog-meta { flex-wrap: wrap; gap: 4px 8px; }

/* Orders/research remain compact workspaces, with readable operational labels. */
.ops-header { gap: 24px; min-height: 96px; }
.ops-header-tools { gap: 16px; }
.ops-tool { font-size: 14px; gap: 10px; }
.ops-scheme-note strong { font-size: 14px; line-height: 1.65; }
.ops-scheme-note span:not(.ops-note-mark) { font-size: 13px; line-height: 1.7; }
.ops-panel-heading > p { max-width: 400px; }
.ops-tab { min-height: 76px; font-size: 26px; line-height: 1.3; gap: 14px; }
.ops-tab .am-icon { width: 30px; height: 30px; }
.ops-tab-number { font-size: 12px; }
.ops-order-workspace { grid-template-columns: minmax(0, 1fr) 330px; }
.ops-orders-controls { padding: 26px; }
.ops-surface-heading { flex-wrap: wrap; gap: 10px 16px; }
.ops-map-point { width: min(128px, 30%); min-height: 90px; transform: translate(-50%, -24px); }
.ops-point-dot { width: 48px; height: 48px; font-size: 24px; }
.ops-point-name { max-width: 100%; line-height: 1.4; letter-spacing: 0; }
.ops-point-unit { letter-spacing: 0; }
.ops-map-legend { flex-wrap: wrap; }
.ops-command { min-height: 56px; padding: 13px 14px; font-size: 15px; }
.ops-command > svg { width: 28px; height: 28px; flex-shrink: 0; }
.ops-command-description, .ops-obstacle-control p,
.ops-research-actions > p, .ops-feedback { font-size: 14px; line-height: 1.75; }
.ops-obstacle-control label { min-height: 48px; font-size: 15px; line-height: 1.5; }
.ops-check-indicator { width: 24px; height: 24px; }
.ops-obstacle-control input { width: 24px; height: 24px; }
.ops-obstacle-control input:checked + .ops-check-indicator:after { left: 7px; top: 4px; width: 6px; height: 11px; }
.ops-reset { padding-block: 10px; font-size: 14px; line-height: 1.5; text-align: left; }
.ops-reset > span:first-child { font-size: 24px; }
.ops-research-graph .ops-reset { font-size: 14px; line-height: 1.5; }
.ops-receipt { gap: 22px; }
.ops-receipt strong { font-size: 15px; line-height: 1.65; }
.ops-research-workspace { grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); }
.ops-research-node { min-height: 124px; gap: 16px; padding: 18px; }
.ops-node-icon { width: 48px; height: 48px; }
.ops-node-icon .am-icon { width: 32px; height: 32px; }
.ops-node-copy strong { font-size: 26px; line-height: 1.3; }
.ops-node-copy { gap: 8px; }
.ops-node-arrow { font-size: 22px; flex-shrink: 0; }
.ops-research-details dt { font-size: 14px; line-height: 1.5; }
.ops-research-details dt .am-icon { width: 26px; height: 26px; }
.ops-research-details dd { margin-left: 36px; }
.ops-primary { min-height: 56px; padding: 14px 18px; font-size: 16px; line-height: 1.5; }
.ops-primary > span:first-child, .ops-next > span:first-child { min-width: 0; }
.ops-primary > span:last-child, .ops-next > span:last-child { flex-shrink: 0; font-size: 22px; }
.ops-next { padding-block: 12px; font-size: 14px; line-height: 1.5; text-align: left; }
.ops-fleet-status strong { font-size: 14px; line-height: 1.65; }
.ops-fleet-status .am-icon { width: 30px; height: 30px; }

/* Dialogs and bottom navigation keep their controls reachable. */
.trailer-dialog { width: min(1200px, calc(100vw - 32px)); max-height: calc(100svh - 32px); }
.trailer-top { padding: 16px 24px; gap: 16px; }
.trailer-top > div { flex-wrap: wrap; gap: 6px 20px; min-width: 0; }
.trailer-top h2 { font-size: 26px; line-height: 1.3; }
.trailer-close { width: 48px; height: 48px; }
.trailer-bottom { padding: 22px 24px; gap: 24px; }
.trailer-bottom p { max-width: 680px; }
.trailer-bottom a { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border: 1px solid #c7a77980; white-space: normal; flex: 0 0 auto; max-width: 100%; }
.trailer-credits { padding: 0 24px 24px; overflow-wrap: anywhere; }
.trailer-error { font-size: 16px; line-height: 1.7; }
.lightbox-close { left: calc(100% - 56px); top: 8px; }
.lightbox figure { margin: 20px 60px 30px; }
.lightbox figcaption p { font-size: 16px; line-height: 1.75; }
.lightbox figcaption a { font-size: 14px; line-height: 1.5; min-height: 44px; padding-block: 10px; }
.guide-footer a, .hangar-footer a, .ops-footer a, .site-footer > a:last-child { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; line-height: 1.5; }
.site-footer { padding-bottom: 40px; gap: 24px; }
.preview-note { position: static; padding: 16px var(--gutter); gap: 8px 16px; flex-wrap: wrap; min-height: 0; }
.preview-note a { margin-left: 0; font-size: 14px; line-height: 1.5; }
.community-dock {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  left: auto;
  max-width: calc(100vw - 40px);
}
body:has(#preview-note[hidden]) .community-dock { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
body:has(.community-dock) { padding-bottom: 100px; }
.dock-label { font-size: 12px; line-height: 1.5; padding-inline: 16px; max-width: 165px; }
.community-dock a { min-height: 56px; padding: 12px 16px; font-size: 14px; line-height: 1.4; gap: 12px; }
.community-dock small { font-size: 12px; line-height: 1.4; }
.review-header { flex-wrap: wrap; gap: 14px 24px; font-size: 13px; line-height: 1.6; }
.review-header a { display: inline-flex; align-items: center; min-height: 44px; }
.state-list h3 { font-size: 22px; line-height: 1.4; }
.review-section .community-grid p { font-size: 14px; }
.review-section .community-grid h3, .review-section th { font-size: 12px; }
.review-section td { font-size: 14px; line-height: 1.7; }
.review-section .note { font-size: 14px; line-height: 1.7; }
.download { display: inline-flex; align-items: center; padding: 12px 18px; }
.community-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 8px 0 32px;
  padding: 28px;
  border: 1px solid #b79b6b66;
  background: #17201f;
}
.community-invite-copy { min-width: 0; font-size: 16px; line-height: 1.75; }
.community-invite-copy p { font-size: 16px; line-height: 1.75; }
.community-invite-copy h2, .community-invite-copy h3 { font: 400 28px/1.3 var(--display); margin-bottom: 12px; }
.community-invite-actions { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-end; gap: 12px; max-width: 520px; min-width: 0; }
a.community-discord-link, a.community-telegram-link, [data-community-discord], [data-community-telegram] { min-height: 56px; font-size: 16px; line-height: 1.5; white-space: normal; }
a.community-discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  max-width: 100%;
  color: #111a19;
  background: #c7a779;
  border: 1px solid #dfc18b;
  font-weight: 700;
  text-align: center;
}
a.community-discord-link:hover { background: #dbc08e; }
a.community-telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  max-width: 100%;
  color: #e2cfad;
  background: #c7a7790b;
  border: 1px solid #b99e7280;
  font-weight: 600;
  text-align: center;
}
a.community-telegram-link:hover { background: #c7a7791c; border-color: #dfc18b; }
.community-invite-actions > a { flex: 1 1 210px; min-width: 0; }
.community-discord-link .am-icon, .community-discord-link > svg,
.community-telegram-link .am-icon, .community-telegram-link > svg { width: 28px; height: 28px; color: inherit; flex-shrink: 0; }

@media (max-width: 1200px) {
  .main-nav { gap: 16px; }
  .site-header { gap: 18px; }
  .hero { grid-template-columns: minmax(0, 1fr) 230px; column-gap: 32px; }
  .hero-bottom-copy { grid-template-columns: 1fr; gap: 20px; }
  .hero-statement br { display: none; }
  .hero-description { max-width: 540px; }
  .hero-description .button { width: auto; min-width: 280px; max-width: 100%; }
  .hangar-console { grid-template-columns: minmax(0, 1fr) 300px; }
  .ops-order-workspace { grid-template-columns: minmax(0, 1fr) 310px; }
  .experience-card-copy { padding: 24px; }
  .experience-card-copy > .am-icon { right: 24px; }
}

@media (max-width: 1100px) {
  .main-nav, .site-header .community-link { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "topline" "copy" "index" "foot"; row-gap: 28px; }
  .hero-bottom-copy { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; }
  .hero-description .button { width: 100%; min-width: 0; }
  .hero h1 { font-size: clamp(100px, 13vw, 144px); }
  .hero-index { padding: 0; border-top: 0; background: transparent; }
  .hero-index-head, .hero-scene-caption, .hero-scene-copy { display: none; }
  .hero-scene-options { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid #b6ad8240; }
  .hero-scene-option, .hero-scene-option[aria-pressed=true] { min-height: 64px; padding: 12px 16px; border-bottom: 0; }
  .hero-scene-option + .hero-scene-option { border-left: 1px solid #b6ad8240; }
  .hero-index-foot { margin-top: 12px !important; }
  .world-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-directory-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
  .guide-cards { grid-template-columns: 1fr; }
  .showcase-layout { grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); gap: 26px; }
}

@media (max-width: 960px) {
  .experience-grid { grid-template-columns: 1fr; }
  .experience-card { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); border-right: 0; border-bottom: 1px solid var(--line); }
  .experience-card:last-child { border-bottom: 0; }
  .experience-visual { height: 100%; min-height: 270px; border-bottom: 0; border-right: 1px solid var(--line); }
  .guide-layout { display: block; }
  .guide-sidebar { position: static; }
  #guide-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--line); }
  .guide-nav-link { border-right: 1px solid var(--line); }
  .guide-content { padding-top: 48px; }
  .guide-system-grid { grid-template-columns: 145px minmax(0, 1fr); }
  .hangar-console { grid-template-columns: minmax(0, 1fr); }
  .hangar-stage { height: clamp(340px, 52vw, 520px); }
  .hangar-panel { display: block; border-left: 0; border-top: 1px solid var(--line); padding: 26px; }
  .hangar-panel-head { grid-column: 1; }
  .hangar-panel-source { grid-column: 1; grid-row: 2; border-bottom: 0; }
  .hangar-inspection-list { grid-column: 2; grid-row: 1 / 3; padding-top: 0; }
  .hangar-detail-note { grid-column: 1 / -1; margin-top: 20px; min-height: 0; }
  .hangar-inventory { display: none; }
  .ops-order-workspace, .ops-research-workspace { grid-template-columns: minmax(0, 1fr); }
  .ops-orders-controls, .ops-research-inspector { border-left: 0; border-top: 1px solid var(--line); }
  .ops-orders-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; }
  .ops-orders-controls .ops-inspector-label { grid-column: 1 / -1; }
  .ops-orders-controls h3, .ops-orders-controls > .ops-small-copy,
  .ops-command-list, .ops-command-description { grid-column: 1; }
  .ops-obstacle-control { grid-column: 2; grid-row: 2 / span 3; align-self: start; }
  .ops-orders-controls > .ops-reset { grid-column: 2; grid-row: 5; align-self: end; justify-self: start; }
  .ops-fleet-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-fleet-status > div:nth-child(3) { border-left: 0; }
  .ops-fleet-status > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ops-research-node { max-width: none; }
}

@media (max-width: 820px) {
  .hero-bottom-copy { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: clamp(64px, 16.6vw, 128px); }
  .hero-description { max-width: 560px; }
  .hero-statement { font-size: 32px; }
  .hero-foot .art-note { display: none; }
  .intro-layout { display: block; }
  .intro-text { margin-top: 32px; max-width: none; }
  .small-cross { display: none; }
  .world-explorer { display: block; }
  .world-visual { position: sticky; top: 0; z-index: 10; height: clamp(350px, 50svh, 480px); min-height: 0; max-height: none; padding-top: 12px; padding-bottom: 0; background: #14191a; }
  .map-frame { min-height: 0; height: calc(100% - var(--atlas-controls-height)); }
  .world-chapters { padding: 0; }
  .chapter { scroll-margin-top: clamp(366px, calc(50svh + 16px), 496px); min-height: 65svh; padding: 48px 0; }
  .chapter p, .chapter-detail { max-width: none; }
  .showcase-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .showcase-stage { aspect-ratio: 4 / 3; }
  .showcase-copy h3 { font-size: 36px; }
  .trailer-bottom { flex-direction: column; align-items: stretch; }
  .trailer-bottom a { align-self: flex-start; }
}

@media (max-width: 760px) {
  :root { --ui-header-height: 88px; }
  .brand { font-size: 14px; gap: 11px; }
  .header-actions { gap: 10px; }
  .hero { padding-top: calc(var(--ui-header-height) + 24px); padding-bottom: 28px; row-gap: 26px; }
  .hero-topline { font-size: 12px; }
  .hero-copy > .eyebrow { font-size: 12px; gap: 12px; letter-spacing: .06em; }
  .hero-copy > .eyebrow:before { width: 24px; }
  .hero h1 { margin: 24px 0 28px; }
  .hero-description p { font-size: 16px; }
  .hero-description .button { font-size: 15px; min-height: 54px; }
  .hero-secondary { font-size: 14px; }
  .hero-scene-option, .hero-scene-option[aria-pressed=true] { display: flex; flex-direction: column; gap: 8px; padding: 12px 6px; min-height: 88px; font-size: 14px; text-align: center; }
  .hero-scene-option .am-icon { width: 28px; height: 28px; }
  .hero-scene-option small { display: none; }
  .hero-foot { font-size: 12px; gap: 12px; }
  .scroll-cue { flex: 1 1 180px; max-width: none; gap: 12px; }
  .motion-button { font-size: 14px; white-space: normal; }
  .section-pad { padding-block: 64px; }
  .section-number, .eyebrow { font-size: 12px; }
  .heading-row, .experience-heading { display: block; }
  .heading-row > .muted, .experience-heading > p { max-width: none; margin-top: 22px; font-size: 16px; }
  .manifesto-strip { font-size: 12px; line-height: 1.6; gap: 16px; }
  .manifesto-strip > span:last-child { max-width: 44%; }
  .world-link { padding: 20px 12px 16px; gap: 16px; }
  .world-link > span { font-size: 14px; }
  .world-link > small { font-size: 11px; }
  .experience-card { display: flex; }
  .experience-visual { height: 240px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .experience-card-copy { padding: 26px; }
  .experience-card-copy > .am-icon { right: 26px; top: 28px; }
  .experience-card-copy > p { font-size: 16px; }
  .experience-open { font-size: 14px; }
  .logic-node p, .logic-node .node-status { font-size: 13px; }
  .logic-node { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; padding-inline: 16px; }
  .logic-node > svg { width: 68px; height: 58px; }
  .logic-node h3 { font-size: 24px; }
  .node-number { font-size: 11px; }
  .return-route p { font-size: 13px; }
  .mode-row > summary { gap: 14px; padding-block: 24px; }
  .mode-number { width: 56px; height: 56px; }
  .mode-heading { min-width: 0; }
  .mode-heading > b { font-size: 30px; }
  .mode-heading small { font-size: 13px; line-height: 1.65; }
  .mode-content { padding: 0 0 28px; }
  .mode-content > p { font-size: 16px; }
  .mode-tags span { font-size: 12px; }
  .guide-directory > p, .community-body, .platform p { font-size: 16px; }
  .guide-directory-links a { padding: 20px 16px; min-height: 140px; font-size: 14px; }
  .guide-nav-link { font-size: 14px; padding: 12px; min-height: 64px; gap: 10px; }
  .guide-nav-link > .am-icon { width: 26px; height: 26px; }
  .guide-content h1 { font-size: clamp(44px, 10vw, 70px); }
  .guide-system summary { font-size: 25px; }
  .guide-system-grid { grid-template-columns: minmax(0, 1fr); padding: 0 0 26px; gap: 8px; }
  .guide-system-grid dt:not(:first-child) { margin-top: 14px; }
  .guide-system-grid dd, .guide-card p, .guide-example p { font-size: 16px; }
  .guide-table td { font-size: 14px; }
  .guide-next { font-size: 16px; }
  .hangar-view-bottom { font-size: 13px; }
  .hangar-intro { display: block; }
  .hangar-intro-copy { margin-top: 18px; max-width: none; }
  .ops-intro { grid-template-columns: 1fr; gap: 24px; }
  .ops-panel-heading { display: block; }
  .ops-panel-heading > p { margin-top: 16px; max-width: none; }
  .ops-receipt { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 8px 22px; }
  .ops-receipt > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 18px 0; }
  .ops-receipt > div + .ops-receipt-arrow + div { border-top: 1px solid var(--line); }
  .ops-receipt strong { margin: 0; font-size: 15px; }
  .ops-receipt-arrow { display: none; }
  .trailer-dialog { width: calc(100vw - 24px); max-height: calc(100svh - 24px); }
  .trailer-top { padding: 14px 16px; }
  .trailer-top h2 { font-size: 24px; }
  .trailer-top small { font-size: 12px; }
  .trailer-bottom { padding: 20px 16px; }
  .trailer-bottom p { font-size: 16px; }
  .trailer-bottom a { font-size: 14px; }
  .trailer-credits { padding: 0 16px 22px; font-size: 12px; }
  .lightbox { width: calc(100vw - 20px); }
  .lightbox figure { margin: 12px 10px 22px; }
  .lightbox img { max-height: 60svh; }
  .lightbox-prev, .lightbox-next { top: 35%; background: #101819df; }
  .lightbox figcaption { padding-inline: 8px; }
  .community-dock, body:has(#preview-note[hidden]) .community-dock {
    position: static;
    width: auto;
    max-width: none;
    margin: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    justify-content: center;
  }
  body:has(.community-dock) { padding-bottom: 0; }
  .community-dock a { flex: 1; justify-content: center; min-height: 56px; padding: 12px; font-size: 14px; gap: 8px; }
  .community-dock small { font-size: 12px; }
  .dock-label { display: none; }
  .preview-note { font-size: 12px; padding: 16px var(--gutter); gap: 8px 12px; }
  .preview-note a { flex-basis: auto; text-align: left; }
  .site-footer { padding-block: 30px; }
  .site-footer p { font-size: 12px; }
  .site-footer > a:last-child { margin-left: 0; }
  .community-invite { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 20px; }
  .community-discord-link { justify-self: start; }
  .community-invite-actions { max-width: none; justify-content: flex-start; }
}

@media (max-width: 650px) {
  .guide-header { gap: 16px; min-height: 88px; flex-wrap: wrap; padding-block: 16px; }
  .guide-header .text-control { margin-left: auto; }
  .guide-back { order: 3; flex-basis: 100%; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
  .hangar-header { min-height: 88px; padding: 16px var(--gutter); gap: 12px; }
  .hangar-header-location { display: none; }
  .hangar-header-actions { gap: 10px; }
  .hangar-home { width: 44px; min-width: 44px; min-height: 48px; justify-content: center; }
  .hangar-home > span:first-child { font-size: 26px; }
  .hangar-home > span:last-child { display: none; }
  .hangar-panel { display: block; padding: 24px 20px; }
  .hangar-panel-source { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .hangar-inspection-list { padding-top: 22px; }
  .hangar-detail-note { padding-bottom: 0; }
  .hangar-stage { height: clamp(280px, 62vw, 390px); }
  .hangar-tools { padding: 12px; }
  .hangar-frame-switch { flex-basis: 100%; }
  .hangar-frame-switch button { flex: 1 1 auto; }
  .hangar-zoom { width: 100%; margin-left: 0; }
  .hangar-reset { margin-left: auto; }
  .hangar-catalog-arrows { margin-left: auto; }
  .hangar-filters { order: 3; flex-basis: 100%; margin-left: 0; }
  .ops-header { padding-block: 16px; gap: 12px; flex-wrap: wrap; }
  .ops-header-tools { gap: 12px; margin-left: auto; }
  .ops-tool { font-size: 14px; }
  .ops-back { order: 3; width: 100%; margin: 0; min-height: 48px; font-size: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
  .ops-tab { gap: 10px; padding: 16px 12px; font-size: 23px; min-height: 72px; }
  .ops-tab .am-icon { width: 28px; height: 28px; }
  .ops-tab-number { display: none; }
  .ops-tab-arrow { font-size: 20px; }
  .ops-surface-heading { padding: 14px 16px; font-size: 12px; }
  .ops-map { margin-bottom: 32px; }
  .ops-point-unit { display: none; }
  .ops-point-name { font-size: 12px; }
  .ops-map-legend { font-size: 12px; padding: 14px 16px; }
  .ops-orders-controls { display: block; padding: 24px 20px; }
  .ops-command-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ops-command { min-height: 96px; padding: 12px 8px; flex-direction: column; justify-content: center; font-size: 14px; gap: 10px; text-align: center; }
  .ops-command-indicator { display: none; }
  .ops-obstacle-control { margin-top: 24px; }
  .ops-orders-controls > .ops-reset { margin-top: 16px; }
  .ops-research-nodes { padding: 26px 20px 28px 46px; }
  .ops-research-node { min-height: 124px; gap: 12px; padding: 16px 12px; }
  .ops-node-copy strong { font-size: 25px; }
  .ops-node-eyebrow, .ops-node-state { font-size: 12px; }
  .ops-node-level { left: -28px; font-size: 12px; }
  .ops-node-icon { width: 44px; height: 48px; }
  .ops-node-icon .am-icon { width: 30px; height: 30px; }
  .ops-research-principle { margin: 0 20px 24px; }
  .ops-research-principle p { font-size: 16px; }
  .ops-research-inspector { padding: 26px 20px; }
  .ops-research-details dd { font-size: 16px; }
  .ops-research-details dt { font-size: 14px; }
  .ops-fleet-status > div { padding: 20px 14px; gap: 12px; }
  .ops-fleet-status strong { font-size: 14px; }
  .ops-fleet-status small { font-size: 12px; }
  .ops-fleet-status .am-icon { width: 26px; height: 26px; }
  .ops-footer, .hangar-footer, .guide-footer { font-size: 12px; gap: 14px; padding: 22px var(--gutter); flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .world-visual { --atlas-controls-height: 128px; height: clamp(430px, 58svh, 540px); }
  .world-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .world-controls button:nth-child(n+4) { border-top: 1px solid var(--line); }
  .chapter { scroll-margin-top: clamp(446px, calc(58svh + 16px), 556px); }
  .chapter-image-hint { font-size: 12px; bottom: 8px; }
  .map-caption, .map-footer { font-size: 12px; letter-spacing: .015em; }
  .map-caption .map-coordinate { display: none; }
  .map-footer > span:last-child { font-size: 12px; line-height: 1.4; }
}

/* At phone width, keep the image clear and use the same details as large rows. */
@media (max-width: 600px) {
  .hangar-hotspots { display: none; }
  .hangar-details-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: 100%;
    padding: 14px 16px;
    border-block: 1px solid var(--line);
    color: var(--accent);
    background: #c7a7790d;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
  }
  #hangar-point-list { scroll-margin-top: 24px; }
}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .site-header { gap: 12px; }
  .site-header .brand { font-size: 13px; gap: 9px; letter-spacing: .13em; }
  .site-header .brand svg { width: 24px; height: 32px; }
  .header-actions { gap: 8px; }
  .hero h1 { font-size: clamp(56px, 17.4vw, 73px); }
  .hero-copy > .eyebrow { letter-spacing: .025em; }
  .hero-topline > span:last-child { display: none; }
  .hero-statement { font-size: 29px; }
  .hero-secondary-links { display: grid; grid-template-columns: 1fr; }
  .hero-secondary { justify-content: center; min-height: 48px; }
  .hero-foot { align-items: stretch; }
  .scroll-cue, .motion-button { flex-basis: 100%; }
  .motion-button { justify-content: center; }
  .world-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manifesto-strip { flex-wrap: wrap; }
  .manifesto-strip > span:last-child { max-width: none; text-align: left; }
  .manifesto-strip .strip-mark { display: none; }
  .guide-directory { padding: 24px 16px; }
  .guide-directory-links a { padding: 18px 12px; font-size: 14px; }
  .guide-nav-link { gap: 8px; padding: 12px 8px; font-size: 14px; }
  .guide-nav-link > .am-icon { width: 24px; height: 24px; }
  .guide-example, .guide-card { padding: 22px 18px; }
  .showcase-tabs { gap: 8px 16px; }
  .showcase-tabs button { font-size: 14px; gap: 8px; }
  .showcase-image-kind { max-width: calc(100% - 24px); font-size: 12px; }
  .showcase-frame-count { bottom: 70px; left: 12px; }
  .showcase-bottom { flex-wrap: wrap; }
  .showcase-bottom > p { flex-basis: 100%; }
  .showcase-bottom > div { margin-left: auto; }
  .logic-node { display: block; padding: 24px 18px 20px; }
  .logic-node > svg { margin: 6px 0 12px; }
  .mode-heading > b { font-size: 27px; }
  .mode-number { width: 48px; height: 52px; }
  .mode-expand { width: 20px; }
  .hangar-header .hangar-brand { font-size: 12px !important; letter-spacing: .13em !important; gap: 9px !important; }
  .hangar-header-actions { gap: 6px; }
  .hangar-view-top { padding: 12px; }
  .hangar-capture-label { flex-basis: 100%; max-width: none; text-align: left; margin: 0; }
  .hangar-zoom { justify-content: center; }
  .hangar-reset { flex-basis: 100%; margin: 4px 0 0; justify-content: center; border: 1px solid var(--line); }
  .hangar-stage-tag { font-size: 11px; }
  .ops-header .brand { font-size: 12px; gap: 9px; }
  .ops-header-tools { gap: 8px; }
  .ops-header-tools #ops-motion { min-height: 48px; font-size: 14px; gap: 8px; white-space: normal; }
  .ops-tab { font-size: 22px; gap: 8px; }
  .ops-tab-arrow { display: none; }
  .ops-command-list { grid-template-columns: minmax(0, 1fr); }
  .ops-command { min-height: 56px; flex-direction: row; justify-content: flex-start; padding: 14px; text-align: left; font-size: 15px; }
  .ops-receipt > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ops-research-node { flex-wrap: wrap; padding: 16px 14px; gap: 12px; }
  .ops-node-copy { flex: 1 1 115px; }
  .ops-node-arrow { display: none; }
  .ops-research-details dd { margin-left: 0; }
  .ops-fleet-status > div { flex-direction: column; align-items: flex-start; padding: 20px 14px; }
  .community-dock a { flex-wrap: wrap; gap: 5px 9px; }
  .community-dock small { font-size: 12px; }
  .trailer-top h2 { font-size: 23px; }
  .community-invite { padding: 22px 18px; }
  a.community-discord-link, a.community-telegram-link { width: 100%; }
}

/* A short viewport must not be mostly occupied by the sticky atlas. */
@media (max-width: 820px) and (max-height: 700px) {
  .world-visual { position: relative; }
  .chapter { scroll-margin-top: 24px; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-secondary, .hero-scene-option, .main-nav a { transition: none; }
}

/* Three channels: a compact desktop dock, a normal-flow tablet/mobile footer. */
@media (max-width: 1100px) {
  .community-dock, body:has(#preview-note[hidden]) .community-dock {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
    max-width: none;
    margin: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .community-dock .dock-label { grid-column: 1 / -1; max-width: none; padding: 12px 16px; }
  .community-dock a { min-width: 0; min-height: 56px; justify-content: center; font-size: 14px; padding: 12px; gap: 8px; }
  body:has(.community-dock) { padding-bottom: 0; }
}
@media (max-width: 960px) {
  .platforms { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 620px) {
  .community-dock, body:has(#preview-note[hidden]) .community-dock { grid-template-columns: minmax(0, 1fr); }
  .community-dock a { border-left: 0; min-height: 56px; }
  .community-dock a + a { border-top: 1px solid var(--line); }
}

/* Vertical/coarse-pointer presentation does not need decorative GPU layers. */
@media (max-width: 760px), (pointer: coarse) {
  .hero-landscape { filter: none; opacity: .65; animation: none; will-change: auto; }
  .hero-light, .haze, .hero-grain, .atmosphere-beam, #ash { display: none; }
  .am-reactive-surface:before { display: none; }
  .community-dock, .preview-note, .atlas-zoom,
  .trailer-dialog::backdrop, .lightbox::backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .gallery-card img, .experience-visual > img, .guide-figure img,
  .showcase-thumbnails img { filter: none; }
  .gallery-card:hover img, .experience-card:hover .experience-visual > img,
  .hangar-catalog-item:hover .hangar-thumbnail img { transform: none; }
  .mission-shell, .showcase-stage, .enemy-map, .hangar-console,
  .guide-figure, .trailer-dialog, .community-dock { box-shadow: none; }
}

/* Bring out the running gear in the overcast test-yard capture. */
body img[src*="/t72a-yard-"] { filter: brightness(1.25); }
.experience-card .experience-visual > img[src*="/t72a-yard-"] { object-fit: contain; filter: brightness(1.25); }
