/* Cache bust: 1795783255 */
/* v08 noc sodowa: granat nocy, bursztyn lampy sodowej, zimny cyjan instrumentow.
   Zasada koloru: bursztyn = request (sygnal, slad, szyna, przycisk, ktory wysyla Twoj request),
   cyjan = system, ktory go obserwuje (tagi, piny, odczyty), biel ksiezyca = tekst.
   Kroj naglowkow: Overpass (potomek Highway Gothic, czyli kroju z amerykanskich tablic drogowych), mono: DM Mono.
   Zapis zdaniowy jak na znakach kierunkowych, nie wersaliki. */

:root {
  --cyjan: #63D2EE;
  --cyjan-2: rgba(99, 210, 238, .5);
  --cyjan-3: rgba(99, 210, 238, .22);
  --sod: #FFB13B;
  --sod-glow: rgba(255, 165, 31, .55);
  --ink: #0A1122;
  --petrol: #0F1A36;
  --tag-bg: rgba(8, 14, 32, .88);
  --display: "Overpass", "Arial Narrow", sans-serif;
  /* Overpass jest szerszy od kondensowanych groteskow: skala o dwa stopnie nizej */
  --d1: clamp(42px, 6.4vw, 120px);
  --d2: clamp(32px, 4.4vw, 82px);
  --d3: clamp(24px, 2.4vw, 40px);
}

::selection { background: var(--sygnal); color: var(--ink); }
:focus-visible { outline-color: var(--cyjan); }

h1, h2, h3 { letter-spacing: -.022em; font-feature-settings: "kern" 1; }
.d1 { line-height: .92; }
.d2 { line-height: .98; }
.hero-h h1 { font-size: clamp(38px, 4.3vw, 92px); line-height: 1.0; letter-spacing: -.028em; }
.gl .hero-h h1 .ln { white-space: nowrap; }
.mark { font-weight: 800; letter-spacing: -.02em; }

/* ---------- noc nad miastem: sodowa poswiata ulic gdzies pod kadrem, zimne niebo ---------- */
.gl .scrim {
  background:
    linear-gradient(to top, rgba(5, 9, 21, .58) 0%, rgba(5, 9, 21, 0) 30%),
    radial-gradient(130% 48% at 50% 112%, rgba(255, 138, 28, .11), rgba(255, 138, 28, 0) 70%),
    linear-gradient(to bottom, rgba(5, 9, 21, .45) 0%, rgba(5, 9, 21, 0) 16%);
}

/* ---------- proza nad swiatem: miekka ciemna poduszka, zeby promienie i tor nie szly po literach ---------- */
@media (min-width: 761px) { .gl .hero-side { width: min(400px, 30vw); } }
.gl .hero-side::before, .gl .lead-bio::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -48px -56px -36px -64px;
  background: radial-gradient(closest-side, rgba(9, 15, 34, .9) 55%, rgba(9, 15, 34, 0));
}
.gl .hero-side, .gl .lead-bio { isolation: isolate; }

/* ---------- podpowiedz scrolla w swiecie: instrument przy kropce, nie napis w rogu ---------- */
.cue { display: none !important; }
.hud-cue {
  position: absolute; left: 0; top: 33px; display: flex; align-items: center; gap: 9px; padding: 7px 11px 7px 9px;
  font: 500 13px/1 var(--mono); color: var(--kosc); background: var(--tag-bg); border-left: 2px solid var(--cyjan);
  opacity: 0; translate: 0 -4px; transition: opacity .2s ease-out, translate .3s var(--ease-out);
}
#hud.with-cue .hud-cue { opacity: 1; translate: 0 0; transition: opacity .5s var(--ease-out) .15s, translate .6s var(--ease-out) .15s; }
.hud-cue svg { width: 14px; height: 22px; flex: none; fill: none; stroke: var(--cyjan); stroke-width: 1.4; stroke-linecap: round; }
.hud-cue .g-swipe, .hud-cue .cue-m { display: none; }
.g-w { animation: g-wheel 1.6s cubic-bezier(.55, 0, .25, 1) infinite; }
.g-s { fill: var(--cyjan); stroke: none; animation: g-swipe 1.8s cubic-bezier(.55, 0, .25, 1) infinite; }
@keyframes g-wheel { 0% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(5px); opacity: 0; } 61%, 100% { transform: translateY(0); opacity: 0; } 75% { opacity: 1; } }
@keyframes g-swipe { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(-12px); opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
#hud.cue-idle .cue-d, #hud.cue-idle .cue-m { display: none; }
#hud.cue-idle .hud-cue::after { content: "przewiń dalej"; }
@media (pointer: coarse) {
  .hud-cue .g-wheel, .hud-cue .cue-d { display: none; }
  .hud-cue .g-swipe { display: block; }
  .hud-cue .cue-m { display: inline; }
  #hud.cue-idle .cue-m { display: none; }
}
@media (max-width: 760px) {
  .hud-cue { top: 31px; font-size: 12px; }
  .hud-txt { width: max-content; max-width: calc(100vw - 32px); white-space: normal; line-height: 1.35; }
}
@media (prefers-reduced-motion: reduce) { .g-w, .g-s { animation: none; } }

/* ---------- gdzie jestem: postep u gory i nazwa ujecia (zawsze widoczna) ---------- */
.where { position: fixed; inset: 0 0 auto 0; z-index: 6; pointer-events: none; display: none; opacity: 0; transition: opacity .5s var(--ease-out); }
.gl .where { display: block; }
.cue-on .where { opacity: 1; }
.at-end .where { opacity: 0; }
.where-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(99, 210, 238, .14); }
.where-bar i { position: absolute; inset: 0; background: var(--sygnal); transform-origin: 0 0; transform: scaleX(var(--k, 0)); box-shadow: 0 0 10px var(--sod-glow); }
.where-t {
  position: absolute; left: 50%; top: 21px; translate: -50% 0; display: flex; align-items: baseline; gap: 12px;
  font: 400 12px/1 var(--mono); color: var(--kosc-3); white-space: nowrap; transition: opacity .3s ease-out;
}
.where-t b { font: 700 15px/1 var(--display); letter-spacing: -.01em; color: var(--kosc); }
.where-t .wn { color: var(--cyjan); opacity: .8; }
.where.pre .where-t { opacity: 0; }
@media (max-width: 760px) {
  .where-t { left: auto; right: 16px; translate: none; top: 50px; gap: 8px; font-size: 11px; }
  .where-t b { font-size: 13px; }
  .where-t .wd { display: none; }
}

/* ---------- instrumenty na cyjan ---------- */
.tag, .micro { border-left-color: var(--cyjan); }
.gl .anc-pin { background: var(--cyjan); box-shadow: 0 0 0 3px rgba(99, 210, 238, .16); }
.gl .anc-lead { background: var(--cyjan-2); }
.hud-line { background: rgba(255, 165, 31, .55); }
.hud-txt { color: #FFE2B0; }
.gl .plate { border-color: rgba(99, 210, 238, .2); background: linear-gradient(180deg, rgba(20, 32, 66, .95), rgba(10, 18, 40, .96)); }
.gl .plate::before { background: radial-gradient(circle at 3.5px 3.5px, rgba(99, 210, 238, .45) 2.6px, transparent 3.2px) 0 0 / 13px 7px repeat-x; }
.gl .plate code, code { background: rgba(38, 58, 102, .75); color: #CFE9F5; }
.odo-line { color: rgba(99, 210, 238, .62); }
.odo-line b { color: var(--kosc); }

/* szyna: przystanki to odczyty (cyjan), przejechana droga to bursztyn */
.rail-line { background: var(--cyjan-3); }
.rail button i { background: var(--cyjan-2); }
.rail li.done button i { background: var(--sygnal); }
.rail-dot { box-shadow: 0 0 0 3px rgba(255, 165, 31, .18), 0 0 14px var(--sod-glow); }
.rail-hint, .rail.flash li.cur button span { color: var(--kosc); }
.cue-t { color: var(--kosc); }
.cue-track { background: linear-gradient(to bottom, rgba(99, 210, 238, .55), rgba(99, 210, 238, .08)); }

/* ---------- przyciski: request wysylasz Ty, wiec glowny przycisk ma kolor sygnalu ---------- */
.btn, .sform button { font-weight: 700; font-size: 21px; letter-spacing: .01em; }
.duo .btn:first-child, .sform button, .gl .cap.anc.term .btn[href="#zapis"] {
  color: var(--ink); background: var(--sygnal); border-color: var(--sygnal);
}
.duo .btn + .btn { color: var(--kosc); background: rgba(5, 9, 21, .55); border-color: rgba(228, 232, 240, .42); }
@media (hover: hover) and (pointer: fine) {
  .duo .btn:first-child:hover, .sform button:hover, .gl .cap.anc.term .btn[href="#zapis"]:hover { background: #FFB846; border-color: #FFB846; }
  .duo .btn + .btn:hover { background: rgba(18, 29, 58, .9); border-color: var(--kosc); }
}
.gl .cap.anc.term.on .btn { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--sygnal), 0 0 26px -4px var(--sod-glow); }

.sform input { border-color: rgba(99, 210, 238, .28); }
.sform input:focus { border-color: var(--cyjan); }
.form-msg .ok-code { color: var(--sygnal); }

/* blok zespolu: odblaskowa tablica (lico biel ksiezyca, glebia granatowa) */
.tb-l { font-weight: 800; letter-spacing: -.01em; }
.x-word { font-weight: 800; letter-spacing: -.01em; }
.z-head .ln { background: var(--ink); }
.slab .ln { background: var(--ink); }
.foot { border-top-color: rgba(99, 210, 238, .16); }

@media (max-width: 760px) {
  .gl .hero-h h1 { font-size: clamp(32px, 9.4vw, 44px); }
  .gl .hero-h h1 .ln { white-space: normal; text-wrap: balance; }
  .duo .btn { font-size: 17px; }
}

/* prowadzacy: Overpass jest szerszy, bio o stopien mniejsze, zeby nie wchodzilo na nazwisko */
.bio-l { font-size: clamp(22px, 2.1vw, 36px); line-height: 1.04; letter-spacing: -.018em; }
@media (max-width: 760px) { .bio-l { font-size: clamp(20px, 5.6vw, 26px); } }
.bio-l .ln { text-wrap: balance; }
@media (max-width: 760px) {
  /* telefon: naglowek nizej, zeby pod tablica zmiescil sie tag przy kropce z podpowiedzia */
  .gl .hero-h { top: 59svh; }
}
@media (min-width: 761px) { .hud-cue { font-size: 14px; padding: 8px 12px 8px 10px; top: 34px; } .hud-cue svg { width: 15px; height: 24px; } }

/* proza na swiecie: dodatkowy cien pod litery, zeby kable i promienie nie rwaly czytania */
.gl .hero-side p, .gl .lead-bio .bio-l { text-shadow: 0 0 2px rgba(9, 15, 34, .95), 0 0 14px rgba(9, 15, 34, .9), 0 0 28px rgba(9, 15, 34, .8); }
/* przypomnienie o scrollu: przy kropce (HUD) i w naglowku obok nazwy ujecia, nie przy krawedzi ekranu */
.rail-hint { display: none !important; }
.where-t::after { content: "przewiń dalej"; font: 500 12px/1 var(--mono); color: var(--sygnal); opacity: 0; translate: -4px 0; transition: opacity .3s ease-out, translate .4s var(--ease-out); }
.idle .where-t::after { opacity: 1; translate: 0 0; animation: where-tug 1.8s cubic-bezier(.55, 0, .25, 1) infinite; }
@keyframes where-tug { 0%, 100% { translate: 0 0; } 35% { translate: 0 3px; } 60% { translate: 0 0; } }
@media (max-width: 760px) { .where-t::after { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .idle .where-t::after { animation: none; } }

/* tryb statyczny: lead w hero w czytelnej miarze */
.hero-side p { max-width: 62ch; }
