/* BRL-01 «Rama» — prezentacja Brillnet. Grafit + lodowa biel LED; złoto Brillnet tylko w marce i kontakcie. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-condensed-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-condensed-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url("../fonts/dm-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url("../fonts/dm-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #07080a; --bg2: #0b0d10; --bg3: #101318; --panel: rgba(10, 13, 17, 0.74); --panel2: rgba(16, 20, 26, 0.86);
  --line: rgba(170, 200, 230, 0.12); --line2: rgba(170, 200, 230, 0.24); --line3: rgba(190, 220, 250, 0.42);
  --ice: #eef6ff; --ice2: #cfe7ff; --ice3: #8fc8ff; --txt: #dbe4ee; --mut: #8d9aa9; --mut2: #5d6875;
  --gold: #f2a63a; --gold2: #ffc97c;
  --ok: #8fe0b0; --nok: #ff8f7e; --cav: #4d9dff; --core: #ffa64d;
  --f-disp: "Barlow Condensed", "Arial Narrow", sans-serif; --f-body: "Barlow", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; --f-brand: "DM Sans", "Barlow", system-ui, sans-serif;
  --hdr: 64px; --pad: clamp(16px, 3vw, 44px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--txt); font: 400 16px/1.55 var(--f-body); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); overflow-x: hidden; }
img, svg { display: block; }
a { color: var(--ice2); text-decoration: none; }
a:hover { color: var(--ice); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ice3); outline-offset: 3px; border-radius: 3px; }
.mono { font-family: var(--f-mono); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ice); color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }
.wordmark { font-family: var(--f-brand); font-weight: 600; letter-spacing: 0.01em; color: var(--gold); }

/* ------------------------------------------------------------------------------------------- nagłówek */
.top { position: fixed; inset: 0 0 auto 0; height: var(--hdr); z-index: 30; display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.86), rgba(5, 6, 8, 0)); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(6, 7, 9, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(242, 166, 58, 0.12)); }
.brand .wordmark { font-size: 22px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font: 500 13px/1 var(--f-disp); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut); padding: 6px 0; position: relative; }
.nav a:hover { color: var(--ice); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ice3); transform: scaleX(0); transition: transform .3s; }
.nav a:hover::after { transform: scaleX(1); }
.lang { display: flex; border: 1px solid var(--line2); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; padding: 5px 11px; border-radius: 999px; font: 600 12px/1 var(--f-mono); letter-spacing: 0.06em; color: var(--mut); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ice2); color: #071018; }

/* ------------------------------------------------------------------------------------------- scena */
.stage { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #050607; isolation: isolate; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; }
.stage canvas:active { cursor: grabbing; }
.stage.fs { height: 100vh; }
.ov { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ov svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ov .labels { position: absolute; inset: 0; }
.leader { fill: none; stroke: rgba(207, 231, 255, 0.62); stroke-width: 1; transition: opacity .35s; }
.leader.pt { stroke: rgba(207, 231, 255, 0.35); }
.anchor { fill: #07090c; stroke: var(--ice2); stroke-width: 1.3; transition: opacity .35s; }
.anchor.pt { fill: var(--ok); stroke: #071008; }
.anchor.nok { fill: var(--nok); }
.callout { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .4s; will-change: transform; white-space: nowrap; }
.callout.in { opacity: 1; }
.callout .tag { display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 10px 6px; background: rgba(7, 9, 12, 0.78); border: 1px solid var(--line2);
  border-radius: 2px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); }
.callout .n { font: 500 11px/1 var(--f-mono); color: #071018; background: var(--ice2); padding: 3px 5px; border-radius: 1px; }
.callout .tx { font: 500 14px/1.15 var(--f-disp); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ice); }
.callout em { font: 400 11px/1.2 var(--f-mono); font-style: normal; color: var(--mut); }
.callout.dim .tag { background: rgba(20, 15, 6, 0.82); border-color: rgba(255, 211, 138, 0.45); }
.callout.dim .tx { font-family: var(--f-mono); text-transform: none; letter-spacing: 0; color: #ffd38a; font-size: 13px; }
.callout.pt .tag { padding: 3px 6px 4px; gap: 6px; }
.callout.pt .tx { font: 600 11px/1 var(--f-mono); text-transform: none; letter-spacing: 0; color: var(--ok); }
.callout.pt em { font-size: 10px; color: var(--ice2); }
.callout.note .tag { flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px 5px; }
.callout.note .tx { font-size: 12px; }

/* ramka techniczna */
.frame { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.cn { position: absolute; width: 22px; height: 22px; border: 0 solid var(--line3); }
.cn.tl { left: 18px; top: calc(var(--hdr) + 6px); border-left-width: 1px; border-top-width: 1px; }
.cn.tr { right: 18px; top: calc(var(--hdr) + 6px); border-right-width: 1px; border-top-width: 1px; }
.cn.bl { left: 18px; bottom: 18px; border-left-width: 1px; border-bottom-width: 1px; }
.cn.br { right: 18px; bottom: 18px; border-right-width: 1px; border-bottom-width: 1px; }
.ruler { position: absolute; opacity: 0.5; }
.ruler.rt { left: 60px; right: 60px; top: calc(var(--hdr) + 10px); height: 7px;
  background: repeating-linear-gradient(90deg, var(--line2) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, var(--line3) 0 1px, transparent 1px 120px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.ruler.rr { right: 22px; top: 24%; bottom: 24%; width: 7px;
  background: repeating-linear-gradient(180deg, var(--line2) 0 1px, transparent 1px 12px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); }
.stamp { position: absolute; right: 46px; top: calc(var(--hdr) + 26px); display: flex; gap: 0; font: 400 10.5px/1 var(--f-mono); color: var(--mut); letter-spacing: 0.08em; }
.stamp span { padding: 5px 8px; border: 1px solid var(--line); margin-left: -1px; }
.stamp span:first-child { color: var(--ice2); }
.readout { position: absolute; right: 46px; top: calc(var(--hdr) + 56px); font: 400 10.5px/1 var(--f-mono); color: var(--mut2); letter-spacing: 0.06em; }
.scale { position: absolute; right: 46px; bottom: 132px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font: 400 10.5px/1 var(--f-mono); color: var(--mut); }
.scale i { display: block; height: 6px; width: 100px; border: 1px solid var(--ice2); border-top: 0; opacity: 0.8; transition: width .3s; }

/* karta opisu (desktop) */
.hud { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hud > *, .sheet > * { pointer-events: auto; }
.sheet { position: absolute; inset: 0; pointer-events: none; }
.card { position: absolute; left: var(--pad); top: calc(var(--hdr) + 44px); width: min(410px, 34vw); padding: 22px 24px 20px;
  background: linear-gradient(180deg, rgba(12, 15, 20, 0.80), rgba(8, 10, 13, 0.70)); border: 1px solid var(--line); border-radius: 3px;
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transition: opacity .26s, transform .26s; max-height: calc(100% - var(--hdr) - 170px); overflow: auto; scrollbar-width: thin; }
.card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 46px; height: 2px; background: var(--ice2); box-shadow: 0 0 14px rgba(150, 205, 255, 0.7); }
.card.swap { opacity: 0; transform: translateY(8px); }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 500 12px/1 var(--f-disp); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mut); }
.ch-n { font: 500 11px/1 var(--f-mono); letter-spacing: 0.04em; color: var(--ice2); padding: 3px 5px; border: 1px solid var(--line2); }
.sim { font: 500 10px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #ffd38a; border: 1px solid rgba(255, 211, 138, 0.4); padding: 3px 6px; border-radius: 1px; }
.step-id { margin-left: auto; font: 400 11px/1 var(--f-mono); letter-spacing: 0.06em; color: var(--mut2); }
.title { margin: 0 0 12px; font: 600 clamp(28px, 2.5vw, 38px)/1.02 var(--f-disp); letter-spacing: 0.01em; color: var(--ice); text-wrap: balance; }
.text { margin: 0 0 18px; font-size: 15.5px; line-height: 1.6; color: #c3cdd8; }
.more { display: none; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.fact { background: rgba(8, 10, 13, 0.9); padding: 10px 11px 11px; min-width: 0; }
.fact dt { font: 500 10.5px/1.2 var(--f-disp); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut); margin-bottom: 6px; }
.fact dd { margin: 0; font: 500 15px/1.2 var(--f-mono); color: var(--ice); letter-spacing: -0.01em; overflow-wrap: anywhere; }

/* legenda */
.legend { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }
.lg-t { font: 500 11px/1.3 var(--f-disp); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; color: var(--mut); }
.lg-bar { height: 10px; border: 1px solid var(--line2); }
.lg-bar.thermal { background: linear-gradient(90deg, rgb(15, 26, 82) 0%, rgb(26, 107, 242) 25%, rgb(51, 217, 204) 50%, rgb(250, 235, 82) 70%, rgb(255, 128, 36) 86%, rgb(255, 51, 41) 100%); }
.lg-scale { display: flex; justify-content: space-between; margin-top: 5px; font: 400 11px/1 var(--f-mono); color: var(--ice2); }
.lg-row { display: flex; align-items: center; gap: 10px; margin: 5px 0; color: var(--txt); }
.sw { width: 14px; height: 14px; border: 1px solid var(--line2); }
.sw.cav { background: var(--cav); } .sw.core { background: var(--core); } .sw.par { background: #e9edf2; }
.lg-iso { display: flex; flex-wrap: wrap; gap: 4px; }
.lg-iso span { font: 400 11px/1 var(--f-mono); color: var(--ice2); border: 1px solid var(--line2); padding: 4px 6px; }
.lg-chain { width: 100%; border-collapse: collapse; font-size: 12px; }
.lg-chain td { padding: 3px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.35; }
.lg-chain .d { color: #b5c1cd; padding-right: 10px; max-width: 0; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-chain .v, .lg-chain .tl { font-family: var(--f-mono); color: var(--ice); text-align: right; white-space: nowrap; padding-left: 8px; }
.lg-chain .tl { color: var(--mut); }
.lg-chain .sum td { border-bottom: 0; padding-top: 7px; color: var(--ice); font-weight: 500; }

/* pasek dolny: sterowanie, oś czasu, licznik */
.bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 24px; display: flex; align-items: flex-end; gap: 22px; }
.controls { display: flex; gap: 6px; }
.ic { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line2); background: rgba(8, 10, 13, 0.7); border-radius: 50%; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s, background .2s; }
.ic:hover { border-color: var(--ice3); background: rgba(20, 28, 38, 0.85); }
.ic svg { width: 18px; height: 18px; fill: none; stroke: var(--ice); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic.play { width: 48px; height: 48px; border-color: var(--line3); }
.ic.play svg { fill: var(--ice); stroke: none; width: 20px; height: 20px; }
.timeline { flex: 1; display: flex; gap: 6px; min-width: 0; container-type: inline-size; }
.seg { display: flex; flex-direction: column; gap: 8px; min-width: 30px; flex-basis: 0; }
/* pełne nazwy rozdziałów, gdy oś czasu ma na nie miejsce (krótkie rozdziały nie dostają wielokropka) */
@container (min-width: 660px) { .seg { min-width: max-content; } }
/* węższa oś: pełna nazwa tylko bieżącego rozdziału, pozostałe numerem */
@container (max-width: 659.98px) { .seg:not(.on) .seg-h .t { display: none; } .seg.on { min-width: max-content; } }
.seg-h { border: 0; background: none; padding: 0; text-align: left; display: flex; gap: 6px; align-items: baseline; cursor: pointer; white-space: nowrap; overflow: hidden; color: var(--mut2); transition: color .25s; }
.seg-h .n { font: 400 10px/1 var(--f-mono); }
.seg-h .t { font: 500 11.5px/1 var(--f-disp); letter-spacing: 0.14em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.seg.on .seg-h, .seg-h:hover { color: var(--ice); }
.seg:first-child .seg-h .t { display: none; }
.seg .ticks { display: flex; gap: 2px; }
.tick { flex: 1; height: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer; position: relative; }
.tick::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: rgba(170, 200, 230, 0.18); }
.tick i { position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--ice2); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 8px rgba(150, 205, 255, 0.6); }
.tick:hover::before { background: rgba(170, 200, 230, 0.45); }
.meta { display: flex; align-items: center; gap: 12px; }
.counter { font: 400 12px/1 var(--f-mono); color: var(--mut); letter-spacing: 0.06em; }

.caption { position: absolute; left: 50%; bottom: 96px; transform: translate(-50%, 6px); font: 400 12.5px/1 var(--f-mono); letter-spacing: 0.04em; color: var(--ice);
  background: rgba(6, 8, 11, 0.72); border: 1px solid var(--line2); padding: 9px 14px; border-radius: 2px; opacity: 0; transition: opacity .35s, transform .35s;
  white-space: nowrap; pointer-events: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.caption::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; background: var(--ice2); box-shadow: 0 0 10px var(--ice3); vertical-align: 1px; }
.caption.in { opacity: 1; transform: translate(-50%, 0); }
.hint { position: absolute; left: 50%; top: calc(var(--hdr) + 20px); transform: translateX(-50%); font: 400 11px/1 var(--f-mono); color: var(--mut); letter-spacing: 0.05em;
  transition: opacity 1s; pointer-events: none; white-space: nowrap; }
.hint.gone { opacity: 0; }
.down { position: absolute; right: var(--pad); bottom: 84px; display: flex; align-items: center; gap: 8px; font: 500 11px/1 var(--f-disp); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mut); }
.down svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.down:hover { color: var(--ice); }

/* ładowanie */
.loader { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, #0f1318 0%, #050607 70%); transition: opacity .8s; }
.loader.done { opacity: 0; pointer-events: none; }
.ld-in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ld-in img { width: 72px; height: 72px; opacity: 0.92; animation: breathe 2.6s ease-in-out infinite; }
.ld-brand { font: 600 26px/1 var(--f-brand); color: var(--gold); }
.ld-title { font: 500 13px/1 var(--f-disp); letter-spacing: 0.3em; text-transform: uppercase; color: var(--mut); margin-bottom: 10px; }
.ld-bar { width: 220px; height: 2px; background: rgba(170, 200, 230, 0.14); overflow: hidden; }
.ld-bar i { display: block; height: 100%; background: var(--ice2); transform-origin: 0 50%; transform: scaleX(0); transition: transform .2s; box-shadow: 0 0 10px var(--ice3); }
.ld-msg { font: 400 11.5px/1.4 var(--f-mono); color: var(--mut); text-align: center; max-width: 320px; }
.loader.err .ld-bar { display: none; }
.loader.err .ld-msg { color: var(--txt); }
.noscript { position: absolute; inset: auto 0 40% 0; text-align: center; color: var(--txt); z-index: 25; }
@keyframes breathe { 50% { opacity: 0.6; transform: scale(0.97); } }

/* ------------------------------------------------------------------------------------------- sekcje */
.sec { position: relative; padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.sec::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 120px 120px;
  -webkit-mask: radial-gradient(ellipse at 20% 0%, #000 0%, transparent 60%); mask: radial-gradient(ellipse at 20% 0%, #000 0%, transparent 60%); }
.wrap { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.sec-h { max-width: 760px; margin-bottom: 44px; }
.eyebrow { display: block; font: 500 12px/1 var(--f-disp); letter-spacing: 0.26em; text-transform: uppercase; color: var(--ice3); margin-bottom: 16px; }
.sec h2 { margin: 0 0 16px; font: 600 clamp(34px, 4.2vw, 54px)/1.0 var(--f-disp); color: var(--ice); letter-spacing: 0.005em; text-wrap: balance; }
.lead { margin: 0; font-size: 17px; color: #b8c4d0; max-width: 720px; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.spec-grid > div { background: var(--bg2); padding: 22px 22px 24px; min-height: 140px; }
.spec-grid dt { font: 500 11.5px/1.2 var(--f-disp); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mut); margin-bottom: 12px; }
.spec-grid dd { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ice); }

.stage-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stage-card { position: relative; display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; color: inherit; transition: border-color .25s, transform .25s; height: 100%; }
.stage-card:hover { border-color: var(--line3); transform: translateY(-2px); color: inherit; }
.stage-card .ph { aspect-ratio: 16 / 9; background: #050607; position: relative; overflow: hidden; }
.stage-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.stage-card:hover .ph img { transform: scale(1.03); }
.stage-card .ph .no { position: absolute; left: 14px; top: 12px; font: 500 12px/1 var(--f-mono); color: var(--ice2); background: rgba(5, 6, 8, 0.7); padding: 4px 6px; border: 1px solid var(--line2); }
.stage-card .bd { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.stage-card h3 { margin: 0; font: 600 24px/1.05 var(--f-disp); color: var(--ice); }
.stage-card p { margin: 0; font-size: 14.5px; color: #aebbc8; flex: 1; }
.stage-card .go { font: 500 11.5px/1 var(--f-disp); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice3); margin-top: 8px; }

.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.res { background: var(--bg2); padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.res .k { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.res h3 { margin: 0; font: 600 22px/1.1 var(--f-disp); color: var(--ice); }
.res .tag { font: 400 10.5px/1 var(--f-mono); color: #ffd38a; border: 1px solid rgba(255, 211, 138, 0.35); padding: 3px 6px; white-space: nowrap; }
.res .big { font: 500 34px/1 var(--f-mono); color: var(--ice); letter-spacing: -0.02em; }
.res .big small { font-size: 14px; color: var(--mut); margin-left: 6px; letter-spacing: 0; }
.res p { margin: 0; font-size: 14.5px; color: #aebbc8; flex: 1; }
.res a { font: 500 11.5px/1 var(--f-disp); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice3); margin-top: 6px; }

.doc-group { margin-top: 36px; }
.doc-group h3 { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font: 500 13px/1 var(--f-disp); letter-spacing: 0.22em; text-transform: uppercase; color: var(--mut); }
.doc-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.doc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.doc { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 16px 15px; background: var(--bg2); border: 1px solid var(--line); border-radius: 3px; color: inherit; transition: border-color .2s, background .2s; }
.doc:hover { border-color: var(--line3); background: var(--bg3); color: inherit; }
.doc .ty { width: 44px; height: 52px; border: 1px solid var(--line2); display: grid; place-items: end center; padding-bottom: 7px; font: 600 10px/1 var(--f-mono); color: var(--ice2); position: relative;
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); background: linear-gradient(135deg, rgba(143, 200, 255, 0.07), transparent); }
.doc .ty::after { content: ""; position: absolute; right: 0; top: 0; width: 28%; height: 22%; background: var(--line2); }
.doc .nm, .doc .ds, .doc .mt { display: block; }
.doc .nm { font: 600 17px/1.2 var(--f-disp); color: var(--ice); letter-spacing: 0.01em; }
.doc .ds { font-size: 13.5px; line-height: 1.45; color: #9fadbb; margin-top: 4px; }
.doc .mt { font: 400 11px/1.3 var(--f-mono); color: var(--mut2); margin-top: 8px; }

.contact { background: radial-gradient(ellipse at 80% 0%, rgba(242, 166, 58, 0.06), transparent 55%), var(--bg); }
.contact-box { display: grid; grid-template-columns: 140px 1fr; gap: 40px; align-items: start; padding: 44px; border: 1px solid var(--line2); border-radius: 4px;
  background: linear-gradient(180deg, rgba(16, 19, 24, 0.9), rgba(9, 11, 14, 0.9)); position: relative; }
.contact-box::before { content: ""; position: absolute; left: -1px; top: -1px; width: 64px; height: 2px; background: var(--gold); box-shadow: 0 0 16px rgba(242, 166, 58, 0.5); }
.contact-logo { width: 120px; height: 120px; opacity: 0.95; }
.contact .eyebrow { color: var(--gold2); }
.person { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 26px; font-size: 18px; color: var(--ice); }
.wordmark.small { font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border: 1px solid var(--line3); border-radius: 2px; font: 500 14px/1 var(--f-disp); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn:hover { border-color: var(--ice2); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1a1007; }
.btn.gold .mono { font: 500 13px/1 var(--f-mono); letter-spacing: 0; text-transform: none; opacity: 0.85; }
.btn.gold:hover { background: var(--gold2); border-color: var(--gold2); color: #1a1007; }

.foot { border-top: 1px solid var(--line2); padding: 28px 0 40px; background: #050607; }
.title-block { display: grid; grid-template-columns: auto 1fr 1.3fr 1.3fr; border: 1px solid var(--line2); padding: 0; }
.title-block > * { padding: 14px 18px; border-left: 1px solid var(--line2); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.title-block > :first-child { border-left: 0; flex-direction: row; align-items: center; gap: 10px; }
.tb-brand img { width: 30px; height: 30px; }
.tb-brand .wordmark { font-size: 18px; }
.tb-cell .k { font: 500 10.5px/1 var(--f-disp); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mut); }
.tb-cell .v { font: 400 12.5px/1.4 var(--f-mono); color: var(--txt); }

/* ------------------------------------------------------------------------------------------- tryb kompaktowy (telefon, małe okno) */
@media (max-width: 1100px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-grid, .doc-list, .res-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 16px; }
}
@media (max-width: 899px) {
  :root { --hdr: 56px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .brand .wordmark { font-size: 20px; }
  .stage-grid, .doc-list, .res-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid > div { min-height: 0; }
  .contact-box { grid-template-columns: 1fr; padding: 28px 22px; gap: 20px; }
  .contact-logo { width: 72px; height: 72px; }
  .title-block { grid-template-columns: 1fr; }
  .title-block > * { border-left: 0; border-top: 1px solid var(--line2); }
  .title-block > :first-child { border-top: 0; }
}
.stage.compact .stamp, .stage.compact .ruler, .stage.compact .readout, .stage.compact .scale, .stage.compact .cn.bl, .stage.compact .cn.br, .stage.compact .down { display: none; }
.stage.compact .hint { top: calc(var(--hdr) + 8px); font-size: 10px; }
.stage.compact .sheet { inset: auto 0 0 0; display: flex; flex-direction: column; pointer-events: auto; padding: 0 0 max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(6, 8, 11, 0) 0, rgba(6, 8, 11, 0.86) 22px, rgba(6, 8, 11, 0.95) 100%); }
.stage.compact .card { position: relative; left: auto; top: auto; width: auto; max-height: none; overflow: visible; order: 2; margin: 0 12px; padding: 4px 4px 8px;
  background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.stage.compact .card::before { display: none; }
.stage.compact .card-h { margin-bottom: 8px; }
.stage.compact .title { font-size: 25px; margin-bottom: 6px; }
.stage.compact .text { font-size: 14px; line-height: 1.5; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stage.compact .card.open .text { -webkit-line-clamp: unset; display: block; }
.stage.compact .more { display: inline-block; border: 0; background: none; padding: 2px 0 10px; font: 500 11px/1 var(--f-disp); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice3); cursor: pointer; }
.stage.compact .fact { padding: 8px 8px 9px; }
.stage.compact .fact dt { font-size: 9.5px; letter-spacing: 0.1em; margin-bottom: 4px; }
.stage.compact .fact dd { font-size: 13px; }
.stage.compact .legend { margin-top: 10px; padding-top: 10px; }
.stage.compact .legend[data-type="chain"] .lg-chain .d { font-size: 11px; }
.stage.compact .card:not(.open) .legend[data-type="chain"] .lg-chain tr:not(.sum) { display: none; }
.stage.compact .bar { position: relative; left: auto; right: auto; bottom: auto; order: 1; padding: 12px 12px 10px; gap: 10px; align-items: center; }
.stage.compact .seg-h { display: none; }
.stage.compact .seg { min-width: 8px; gap: 0; }
.stage.compact .timeline { gap: 3px; }
.stage.compact .ic { width: 36px; height: 36px; }
.stage.compact .ic.play { width: 40px; height: 40px; }
.stage.compact .counter { font-size: 11px; }
.stage.compact .caption { bottom: auto; top: calc(var(--hdr) + 30px); font-size: 11px; padding: 7px 10px; max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; }
.stage.compact .callout .tx { font-size: 12px; }
.stage.compact .callout .tag { padding: 4px 7px 5px; }
.stage.compact:not(.portrait) .sheet { inset: var(--hdr) auto 0 0; width: min(330px, 42vw); background: linear-gradient(90deg, rgba(6, 8, 11, 0.94), rgba(6, 8, 11, 0.6)); overflow: auto; }
.stage.compact:not(.portrait) .text { -webkit-line-clamp: 3; }
.stage.nogl .loader { background: #050607; }

.capture .hud, .capture .top, .capture .frame, .capture .ov, .capture .loader { display: none !important; }
.notrans *, .notrans *::before, .notrans *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .caption, .callout, .stage-card, .ld-in img { transition: none !important; animation: none !important; }
}

/* Podstrony dokumentów i teksty dwujęzyczne. */
html[lang="pl"] .l-en, html[lang="en"] .l-pl { display: none !important; }
html[lang="pl"] .dochead .l-en[data-i18n="doc.lang"] { display: none !important; }
html[lang="en"] .dochead [data-i18n="doc.lang"] { display: inline !important; }

.docpage { background: var(--bg); }
.docpage .top { position: sticky; }
.back { display: flex; align-items: center; gap: 8px; margin-left: auto; font: 500 12.5px/1 var(--f-disp); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut); }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.back:hover { color: var(--ice); }
.docmain { min-height: 60vh; }
.dochead { padding: 56px 0 30px; border-bottom: 1px solid var(--line); position: relative; }
.dochead::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 120px 120px;
  -webkit-mask: radial-gradient(ellipse at 15% 0%, #000, transparent 65%); mask: radial-gradient(ellipse at 15% 0%, #000, transparent 65%); }
.dochead h1 { margin: 0 0 12px; font: 600 clamp(32px, 4vw, 50px)/1.02 var(--f-disp); color: var(--ice); }
.docmeta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 24px; font: 400 12px/1.4 var(--f-mono); color: var(--mut); }
.docmeta b { font: 500 10.5px/1 var(--f-disp); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut2); margin-right: 6px; }
.docbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.docbtns .btn { padding: 11px 16px; font-size: 13px; }
.btn.gold-line { border-color: var(--ice2); color: var(--ice); background: rgba(143, 200, 255, 0.06); }

.viewer { padding: 28px 0 60px; }
.pdfv { padding: 0; }
.pdf-tools { position: sticky; top: var(--hdr); z-index: 10; display: flex; align-items: center; gap: 8px; padding: 10px var(--pad); background: rgba(7, 8, 10, 0.9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pdf-tools .ic { width: 36px; height: 36px; }
.pdf-tools .pg { margin-left: 12px; font: 400 12px/1 var(--f-mono); color: var(--mut); }
.pdf-tools .pg b { color: var(--ice); font-weight: 500; }
.pdf-pages { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px var(--pad) 60px; overflow-x: auto; min-height: 60vh; background: #0b0d10; }
.pdf-page { background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); flex: none; }
.pdf-page canvas { display: block; }
.pdf-msg { color: var(--mut); font: 400 13px/1.4 var(--f-mono); }

.md { max-width: 1100px; color: var(--txt); font-size: 15.5px; }
.md h2 { font: 600 30px/1.1 var(--f-disp); color: var(--ice); margin: 44px 0 14px; }
.md h3 { font: 600 22px/1.15 var(--f-disp); color: var(--ice); margin: 30px 0 10px; }
.md h4 { font: 600 17px/1.2 var(--f-disp); letter-spacing: 0.04em; color: var(--ice2); margin: 22px 0 8px; }
.md p, .md li { color: #c3cdd8; line-height: 1.65; }
.md strong { color: var(--ice); }
.md code { font: 400 0.88em/1.4 var(--f-mono); color: var(--ice2); background: rgba(143, 200, 255, 0.07); padding: 1px 5px; border-radius: 2px; }
.md a { color: var(--ice3); border-bottom: 1px solid rgba(143, 200, 255, 0.35); overflow-wrap: anywhere; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.md blockquote { margin: 16px 0; padding: 8px 16px; border-left: 2px solid var(--ice3); color: var(--mut); }
.tbl { overflow-x: auto; margin: 16px 0 26px; border: 1px solid var(--line); }
.md table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.md th { text-align: left; font: 500 11.5px/1.3 var(--f-disp); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); background: var(--bg3); padding: 10px 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.md td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: #c9d3dd; }
.md tr:hover td { background: rgba(143, 200, 255, 0.03); }
.md td[align="right"], .md th[align="right"] { text-align: right; font-family: var(--f-mono); }
.md td[align="center"], .md th[align="center"] { text-align: center; }

.animv { padding: 24px var(--pad) 60px; }
.frame-wrap { position: relative; width: 100%; height: min(82vh, 900px); min-height: 520px; border: 1px solid var(--line2); background: #000; }
.frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.stepgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.step3d { position: sticky; top: calc(var(--hdr) + 16px); aspect-ratio: 4 / 3; border: 1px solid var(--line2); background: #07090b; }
.step-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.step-cap { position: absolute; left: 12px; top: 10px; font-size: 11.5px; color: var(--ice2); background: rgba(5, 6, 8, 0.7); padding: 5px 8px; border: 1px solid var(--line); pointer-events: none; }
.steplist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); }
.steplist li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.steplist li:last-child { border-bottom: 0; }
.steplist li.on { background: rgba(143, 200, 255, 0.07); }
.steplist .prev { text-align: left; border: 0; background: none; padding: 11px 12px; cursor: pointer; min-width: 0; }
.steplist .fn { font-size: 12.5px; color: var(--txt); overflow-wrap: anywhere; }
.steplist li.on .fn, .steplist .prev:hover .fn { color: var(--ice); }
.steplist .sz { font-size: 11px; color: var(--mut2); }
.steplist .dl { display: grid; place-items: center; width: 40px; height: 40px; color: var(--mut); }
.steplist .dl svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.steplist .dl:hover { color: var(--ice); }
@media (max-width: 899px) {
  .stepgrid { grid-template-columns: 1fr; }
  .step3d { position: relative; top: auto; }
  .back span { display: none; }
  .dochead { padding-top: 36px; }
}
