/* Mara Defence / GOLOMB — styl defense-tech: czerń, grafit, czerwony sygnałowy, krój szeroki + mono */
:root { --ez: cubic-bezier(.22, .7, .2, 1);
  --bg: #060708;
  --bg2: #0c0e10;
  --line: rgba(232, 234, 230, 0.14);
  --line2: rgba(232, 234, 230, 0.28);
  --ink: #e9eae5;
  --mute: #8c9197;
  --red: #ff2b2b;
  --red-d: #c41a1a;
  --ok: #e9eae5;   /* bez drugiego koloru akcentu: status w kolorze tekstu */
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ------------------------------------------------------------ loader */
#loader { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: grid; place-items: center; transition: opacity .8s ease, visibility .8s; }
#loader.done { opacity: 0; visibility: hidden; }
.boot { width: min(420px, 82vw); font: 500 12px/1.7 var(--mono); color: var(--mute); letter-spacing: .06em; }
.boot-mark { width: 44px; height: 44px; color: var(--ink); margin-bottom: 18px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot pre { margin: 0 0 14px; font: inherit; white-space: pre-wrap; min-height: 7.5em; }
.boot-bar { height: 2px; background: var(--line); }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s ease; }

/* ------------------------------------------------------------ 3D stage */
#stage { position: fixed; inset: 0; z-index: 0; }
#gl { width: 100%; height: 100%; display: block; }
#scrim i { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
#scrim .l { background: linear-gradient(90deg, rgba(6,7,8,.86) 0, rgba(6,7,8,.6) 30%, rgba(6,7,8,0) 52%); }
#scrim .r { background: linear-gradient(270deg, rgba(6,7,8,.86) 0, rgba(6,7,8,.6) 30%, rgba(6,7,8,0) 52%); }
#poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; display: none; }
body.no-webgl #poster { display: block; }
body.no-webgl #gl { display: none; }

#hud-frame { position: fixed; inset: 14px; z-index: 2; pointer-events: none; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; color: var(--mute); transition: opacity .4s; }
#hud-frame .c { position: absolute; width: 18px; height: 18px; border: 1px solid var(--line2); }
#hud-frame .tl { left: 0; top: 0; border-right: 0; border-bottom: 0; }
#hud-frame .tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
#hud-frame .bl { left: 0; bottom: 0; border-right: 0; border-top: 0; }
#hud-frame .br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
#hud-frame .hud-read { position: absolute; bottom: 4px; }
#hud-frame .left { left: 30px; } #hud-frame .right { right: 30px; }
#hud-sys { color: var(--ok); }
.hud-scroll { position: absolute; right: 4px; top: 50%; width: 1px; height: 120px; transform: translateY(-50%); background: var(--line); }
.hud-scroll i { position: absolute; left: -1px; top: 0; width: 3px; height: 100%; background: var(--red); transform: scaleY(0); transform-origin: top; will-change: transform; }
body.past-3d #hud-frame { opacity: 0; }

/* ------------------------------------------------------------ nav */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--pad); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
#nav.solid { background: rgba(6, 7, 8, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-svg { display: block; height: 40px; width: auto; aspect-ratio: 332 / 180; color: var(--ink); }
.logo-foot { height: 64px; }
.nav-links { display: flex; gap: 32px; font: 500 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.nav-links a { position: relative; padding: 8px 0; text-decoration: none; color: var(--ink); transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: .16em; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ez); }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a.active { color: var(--red); }
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line2); }
.lang button { background: none; border: 0; color: var(--mute); font: 500 12px/1 var(--mono); letter-spacing: .1em; padding: 8px 9px; cursor: pointer; }
.lang button[aria-pressed=true] { color: var(--bg); background: var(--ink); }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 16px 22px; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #ff4a4a; }
.btn-red:disabled { opacity: .6; cursor: wait; }
.btn-ghost { border-color: var(--line2); color: var(--ink); clip-path: none; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 11px 14px; font-size: 11px; }
.nav-m { display: none; }
#nav .btn-sm { font-size: 12px; }
.lang button:hover { color: var(--ink); }

/* ------------------------------------------------------------ sections */
main { position: relative; z-index: 3; }
.scene { position: relative; min-height: 100vh; min-height: 100svh; pointer-events: none; }
.scene.tall { height: 220vh; }
.scene.xtall { height: 420vh; }
#hero { height: 130vh; }
.panel { pointer-events: auto; position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px var(--pad) 70px; max-width: calc(min(560px, 44vw) + 2 * var(--pad)); }
.panel-right { margin-left: auto; }
.panel > * { max-width: 520px; }

.eyebrow, .kicker, .label { font: 500 11px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin: 0 0 18px; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.kicker { color: var(--red); }
.display { margin: 0; font: 800 clamp(64px, 11vw, 168px)/.86 var(--sans); font-stretch: 125%; letter-spacing: -.01em; display: flex; align-items: flex-start; gap: .12em; }
.display .mk { font: 500 12px/1 var(--mono); letter-spacing: .2em; border: 1px solid var(--line2); padding: 6px 8px; margin-top: .6em; color: var(--mute); font-stretch: 100%; }
.sub { font: 600 clamp(16px, 1.6vw, 21px)/1.25 var(--sans); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; margin: 22px 0 12px; }
.lead, .body { color: #c3c6c8; font-size: clamp(15px, 1.15vw, 17px); margin: 0 0 22px; }
.h2 { margin: 0 0 20px; font: 750 clamp(34px, 4.4vw, 64px)/.98 var(--sans); font-stretch: 118%; letter-spacing: -.01em; text-transform: uppercase; }
.h3 { margin: 26px 0 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }

.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin: 8px 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 14px 18px 14px 0; }
.stats div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.stats dt { font: 500 10px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.stats dd { margin: 6px 0 0; font: 650 17px/1.1 var(--sans); font-stretch: 110%; }
.stats small { display: block; font: 400 10px/1.4 var(--mono); color: var(--mute); letter-spacing: .08em; margin-top: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.scroll-cue { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--ink), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: #c3c6c8; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 12px; height: 1px; background: var(--red); }

/* engagement phases */
.phases { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 2px; }
.phases li { display: grid; grid-template-columns: 38px 1fr; gap: 6px; padding: 10px 0 10px 12px; border-left: 2px solid var(--line); opacity: .55; transition: opacity .45s var(--ez), border-color .45s var(--ez); }
.phases li b { font: 600 11px/1.5 var(--mono); color: var(--mute); }
.phases li em { display: block; font: 650 15px/1.3 var(--sans); font-style: normal; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; }
.phases li small { display: block; color: var(--mute); font-size: 13.5px; line-height: 1.45; max-height: 0; overflow: hidden; transition: max-height .55s var(--ez); }
.phases li { cursor: pointer; }
.phases li:focus-visible { outline: 1px solid var(--red); outline-offset: 2px; }
.phases li.past { opacity: .72; }
.phases li.on { opacity: 1; border-color: var(--red); }
.phases li.on b { color: var(--red); }
.phases li.on small { max-height: 4.5em; }
.phases li:not(.on):hover { opacity: .9; }
.banner { position: fixed; top: 96px; left: 50%; transform: translateX(-50%); z-index: 5; pointer-events: none; font: 600 13px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ok); border: 1px solid var(--ok); padding: 12px 16px; background: rgba(6,7,8,.72); white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .5s var(--ez), visibility .5s, transform .5s var(--ez); }
.banner.on { opacity: 1; visibility: visible; }

/* sensor feed */
#feed { position: fixed; right: var(--pad); bottom: 56px; z-index: 4; width: min(640px, 42vw); border: 1px solid var(--line2); background: rgba(6, 7, 8, .55); font: 500 10.5px/1 var(--mono); letter-spacing: .12em; color: var(--mute); opacity: 0; visibility: hidden; transition: opacity .5s var(--ez), visibility .5s; }
#feed.on { opacity: 1; visibility: visible; }
.feed-head { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.feed-head span:nth-child(2) { flex: 1; color: var(--ink); }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1s steps(2) infinite; }
.feed-view { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.feed-scan { position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.18) 2px 3px); pointer-events: none; }
.feed-cross { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%); }
.feed-cross::before, .feed-cross::after { content: ''; position: absolute; background: rgba(255,255,255,.55); }
.feed-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.feed-cross::after { top: 50%; left: 0; right: 0; height: 1px; }
#feed-box { position: absolute; left: 0; top: 0; border: 1.5px solid var(--ok); display: none; will-change: transform; }
/* warstwy aktualizowane co klatkę: układ liczony lokalnie, nie dla całej strony */
#feed, #callouts { contain: layout style; }
#feed-box.lock { border-color: var(--red); box-shadow: 0 0 0 1px rgba(255,43,43,.3); }
#feed-tag { position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 3px; background: var(--ok); color: #031; padding: 3px 5px; font-weight: 700; white-space: nowrap; }
#feed-box.lock #feed-tag { background: var(--red); color: #fff; }
.feed-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feed-rows div { display: flex; justify-content: space-between; padding: 8px 10px; }
.feed-rows div + div { border-left: 1px solid var(--line); }
.feed-rows div { gap: 8px; min-width: 0; }
.feed-rows span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-rows b { color: var(--ink); font-weight: 700; }
.feed-rows b.ok { color: var(--ok); }
.feed-rows b.red { color: var(--red); }

/* system callouts */
#callout-lines { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
#callout-lines line { stroke: rgba(233,234,229,.5); stroke-width: 1; }
#callout-lines circle { fill: var(--red); }
#callouts { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.co { position: absolute; left: 0; top: 0; transform: translateY(-50%); will-change: transform; font: 500 10.5px/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .45s var(--ez); }
.co.on { opacity: 1; }
.co b { display: block; color: var(--ink); font-weight: 700; }
.co span { color: var(--mute); letter-spacing: .06em; text-transform: none; font-size: 11px; }
.co.l { text-align: right; }
#callouts.compact .co span { display: none; }

.spec { width: 100%; border-collapse: collapse; margin: 4px 0 4px; font-size: 14px; }
.spec th, .spec td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font: 500 10.5px/1.9 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); width: 38%; }
.roe { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 8px; }
.roe li { counter-increment: r; position: relative; padding-left: 34px; color: #c3c6c8; font-size: 14px; }
.roe li::before { content: 'R' counter(r); position: absolute; left: 0; top: 1px; font: 700 11px/1.6 var(--mono); color: var(--red); }

/* status */
.launch { display: flex; align-items: baseline; gap: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin-bottom: 18px; }
.launch span { font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.launch b { font: 800 clamp(30px, 3.4vw, 46px)/1 var(--sans); font-stretch: 125%; color: var(--red); }
.timeline { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 8px 0 8px 24px; font-size: 14px; color: var(--mute); }
.timeline li::before { content: ''; position: absolute; left: 3px; top: 15px; width: 7px; height: 7px; border: 1px solid var(--mute); }
.timeline li::after { content: ''; position: absolute; left: 6.5px; top: 24px; bottom: -8px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li b { font: 500 11px/1.8 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.now { color: var(--ink); }
.timeline li.now::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.4s steps(2) infinite; }
.timeline li.now b { color: var(--red); }
.socials { margin-bottom: 26px; }
.socials .label { margin-bottom: 10px; }
.socials ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: flex; align-items: center; gap: 8px; text-decoration: none; border: 1px solid var(--line2); padding: 9px 12px; font: 700 11px/1 var(--mono); letter-spacing: .12em; transition: border-color .2s, color .2s; }
.socials a span { font-weight: 400; color: var(--mute); letter-spacing: .04em; }
.socials a:hover { border-color: var(--red); }

/* ------------------------------------------------------------ contact */
.contact { position: relative; z-index: 5; background: var(--bg); border-top: 1px solid var(--line); padding: 120px var(--pad); }
.contact::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; opacity: .35; mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.contact-inner { position: relative; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form { display: grid; gap: 16px; background: rgba(12,14,16,.9); border: 1px solid var(--line); padding: clamp(20px, 3vw, 34px); }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0; }
.seg legend { font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 11px 16px; border: 1px solid var(--line2); margin-right: -1px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.field input, .field textarea { width: 100%; background: #08090a; border: 1px solid var(--line2); color: var(--ink); font: 400 15px/1.4 var(--sans); padding: 12px 13px; border-radius: 0; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.invalid input, .invalid textarea { border-color: var(--red) !important; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: 13px; color: var(--mute); line-height: 1.45; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--red); }
.check.invalid span { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
#form-msg { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; }
#form-msg.ok { color: var(--ok); } #form-msg.err { color: var(--red); }

/* ------------------------------------------------------------ footer */
.foot { position: relative; z-index: 5; background: #040505; border-top: 1px solid var(--line); padding: 56px var(--pad) 28px; }
.foot-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand p { color: var(--mute); max-width: 340px; font-size: 14px; margin: 14px 0 0; }
.foot-cols { display: flex; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; }
.foot-cols div { display: grid; gap: 9px; align-content: start; }
.foot-cols .label { margin-bottom: 4px; }
.foot-cols a { text-decoration: none; color: #c3c6c8; font-size: 14px; }
.foot-cols a:hover { color: var(--red); }
.foot-legal { max-width: 1200px; margin: 44px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 11px/1.5 var(--mono); color: var(--mute); letter-spacing: .06em; }

#system .h2 { white-space: nowrap; }

/* ------------------------------------------------------------ niskie okna (laptop): panele System i Status muszą się zmieścić */
@media (min-width: 861px) and (max-height: 960px) {
  .panel { padding-top: 84px; padding-bottom: 28px; }
  #system .h2, #status .h2 { font-size: clamp(30px, 3.2vw, 46px); margin-bottom: 12px; }
  #system .body { margin-bottom: 10px; font-size: 14.5px; }
  .spec { font-size: 13px; }
  .spec th, .spec td { padding: 5px 0; }
  .spec th { line-height: 1.6; }
  .h3 { margin: 14px 0 8px; }
  .roe { gap: 4px; }
  .roe li { font-size: 13px; }
  .launch { padding: 10px 0; margin-bottom: 10px; }
  .timeline { margin-bottom: 12px; }
  .timeline li { padding-top: 5px; padding-bottom: 5px; }
  .timeline li::before { top: 11px; }
  .timeline li::after { top: 20px; bottom: -5px; }
  .launch b { font-size: clamp(26px, 2.8vw, 38px); }
  .socials { margin: 12px 0; }
  .socials .label { margin-bottom: 8px; }
}

/* sekcja Engagement i obraz z kamery większe na desktopie (2026-11-17): panel ok. 1,4×, feed do 780 px */
@media (min-width: 861px) {
  #engage .panel { max-width: calc(min(700px, 44vw) + 2 * var(--pad)); }
  #engage .panel > * { max-width: 700px; }
  #engage .kicker { font-size: 15px; margin-bottom: 24px; }
  #engage .h2 { font-size: clamp(46px, 6vw, 90px); margin-bottom: 30px; }
  #engage .phases { gap: 4px; }
  #engage .phases li { grid-template-columns: 54px 1fr; gap: 8px; padding: 14px 0 14px 18px; border-left-width: 3px; }
  #engage .phases li b { font-size: 15px; }
  #engage .phases li em { font-size: 21px; }
  #engage .phases li small { font-size: 17px; margin-top: 4px; }
  #engage .phases li.on small { max-height: 5em; }
  #feed { width: min(780px, 48vw); font-size: 12.5px; }
  .feed-head { padding: 11px 12px; }
  .feed-rows div { padding: 10px 12px; }
  .rec { width: 8px; height: 8px; }
}
@media (min-width: 861px) and (max-height: 960px) {
  #engage .h2 { font-size: clamp(40px, 4.6vw, 70px); margin-bottom: 20px; }
  #engage .phases li { padding: 10px 0 10px 18px; }
}

/* ------------------------------------------------------------ mobile */
/* wydajność na telefonie (2026-11-17): płótno w stałej wysokości 100lvh (pasek adresu nie przelicza renderu),
   pasek nawigacji bez rozmycia tła (rozmycie nad WebGL liczone w każdej klatce) */
@media (max-width: 860px), (hover: none) {
  #stage { bottom: auto; height: 100vh; height: 100lvh; }
  #nav.solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6, 7, 8, 0.94); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  #nav .btn-sm[data-cta] { display: none; }
  #nav .nav-m { display: inline-flex; }
  .banner { top: 46vh; font-size: 11px; padding: 10px 12px; }
  .panel, .panel-right { max-width: none; margin: 0; justify-content: flex-end; padding: 90px var(--pad) 40px; background: linear-gradient(transparent 30%, rgba(6,7,8,.82) 62%); }
  #hero .panel { justify-content: flex-end; }
  .display { font-size: clamp(44px, 14.5vw, 96px); flex-wrap: wrap; }
  .display .mk { display: none; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stats div, .stats div + div { padding: 10px 8px 10px 0; }
  .stats div + div { padding-left: 8px; }
  .stats dd { font-size: 14px; }
  .scroll-cue { display: none; }
  #feed { left: var(--pad); right: auto; top: 76px; bottom: auto; width: min(330px, 74vw); }
  .feed-rows { grid-template-columns: 1fr; }
  .feed-rows div + div { border-left: 0; }
  .feed-rows div:not(:last-child) { display: none; }
  .feed-rows div { padding: 6px 8px; }
  .phases li small { font-size: 13px; }
  .phases li:not(.on) { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .co span { display: none; }
  #system .panel, #status .panel { background: linear-gradient(rgba(6,7,8,.55), rgba(6,7,8,.92) 30%); }
  #callouts, #callout-lines { display: none; }
  #system .spec, #system .roe, #system .h3 { font-size: 13px; }
  #hud-frame .hud-read.right { display: none; }
}

/* ------------------------------------------------------------ ograniczony ruch */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* wąskie telefony: logo + język + przycisk kontaktu w jednym rzędzie */
@media (max-width: 440px) {
  #nav { gap: 10px; }
  #nav .logo-svg { height: 34px; }
  .nav-right { gap: 8px; }
  .lang button { padding: 7px 7px; }
  #nav .nav-m { padding: 9px 10px; letter-spacing: .08em; }
}

/* fokus na czerwonych przyciskach (clip-path ucina obrys zewnętrzny) */
.btn-red:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
/* bez sceny 3D (brak WebGL / JS): fazy akcji widoczne w całości */
body.no-webgl .phases li { display: grid; opacity: 1; }
body.no-webgl .phases li small { max-height: none; }
