/* Odkrywamy Lubuskie, the home: the forest folds into the logo, the logo turns to silver and gold, the chapters
   gather around it like a compass, and a Land Rover drives round it. Then the people. What every page shares
   (the colours, the menu, the buttons, the sound) is in spolocne.css. */
html { scroll-behavior: auto; }   /* no long glide on arrival; the in-page link glides by itself (koncept.js) */
/* no scrollbar on the home: with it the bar sat 15 px narrower than on the chapters, which never scroll, and moved at
   every page change (the owner, 2026-10-16); the wheel, the touch and the keys still scroll */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* 1. the forest, the logo and the compass */
.las { position: relative; height: 340vh; }
/* the opening played once (koncept.js zamkni; the owner, 2026-10-17 and 2026-10-28): the photo with its words, then the
   map, as two still screens. The photo as the opening's first frame shows it: zoom(0), 1.04 (a phone 1.12) about 50 % 60 % */
.las.raz { height: calc(100vh + 100lvh); overflow: clip; }
.las.raz .scena { position: absolute; left: 0; right: 0; top: 100vh; }
.las.raz::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 100vh; background: url("stranka/img/las.webp") 50% 50% / cover no-repeat;
  transform: scale(1.04); transform-origin: 50% 60%; }
.las.raz::after { content: ""; position: absolute; left: 0; right: 0; top: 62vh; height: 38vh; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 31, 22, .85), rgba(10, 31, 22, 0)); }
@media (max-width: 760px) { .las.raz::before { background-image: url("stranka/img/las-m.webp"); transform: scale(1.12); } }
/* the large viewport: when a phone's toolbar hides, the screen grows, and a scene of the small one left a green band
   under it that the trunks rose out of (the owner, 2026-10-16) */
.scena { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.foto, .foto img { position: absolute; inset: 0; width: 100%; height: 100%; }
.foto img { object-fit: cover; transform-origin: 50% 60%; will-change: transform; }
.zielen { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 46%, #14352a 0%, var(--zelen) 62%); opacity: 0; }
.scena::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 31, 22, .85), rgba(10, 31, 22, 0));
}
.okruh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; }
/* the ten trunks, each its own layer the compositor moves (koncept.js); on the wood its shading (.tien) and its turning
   white (.biela), then the white of the whole box, the letter's stripe (i) */
.stromy { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.stromy .kmen { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.stromy .kmen canvas { display: block; width: 100%; height: 100%; }
.stromy .kmen .tien, .stromy .kmen .biela { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.stromy .kmen i { position: absolute; inset: 0; background: #fff; opacity: 0; will-change: opacity; }
/* the forest behind the ten: two depths, each one canvas */
.stromy canvas.les { position: absolute; left: -3%; top: -4%; width: 106%; height: 108%; transform-origin: 50% 60%; opacity: 0; will-change: transform, opacity; }
/* the light that crosses the logo at the handoff and once more on the map, masked by the logo */
.lesk {
  position: absolute; z-index: 4; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 38%, rgba(255, 246, 222, .95) 50%, rgba(255, 255, 255, 0) 62%) no-repeat;
  background-size: 250% 100%; -webkit-mask: url(img/logo.svg?v=85b54d86ff) 0 0 / 100% 100% no-repeat; mask: url(img/logo.svg?v=85b54d86ff) 0 0 / 100% 100% no-repeat;
}
/* height: auto - koncept.js sets their width alone, and the width and height attributes (P20.3, against a shift while
   loading) would otherwise hold the file's height and stretch the flat logo over the trunks (the owner's phone, 10-29) */
.litery, .napis { position: absolute; left: 0; top: 0; z-index: 3; height: auto; transform-origin: 0 0; opacity: 0; will-change: transform, opacity; }
.velke-3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; opacity: 0; pointer-events: none; }
.logo-dotyk { position: absolute; z-index: 5; cursor: grab; touch-action: pan-y; pointer-events: none; border-radius: 12px; }
.logo-dotyk.aktivne { pointer-events: auto; }
.logo-dotyk.tahanie { cursor: grabbing; }

/* the opening's words: larger, and on a shadow so they read over the sunlit forest (the owner, 2026-10-16) */
/* their frame is the page's first screen, not the sticky scene; clipped across only, since the words' shadow reaches
   past the right edge and a phone would widen the page (DesignStudio's finding) */
.uvod-ram { position: absolute; z-index: 7; inset: 0 0 auto 0; height: 100vh; height: 100svh; pointer-events: none; overflow-x: clip; }
.uvod { position: absolute; z-index: 5; left: var(--okraj); bottom: clamp(88px, 15vh, 150px); }
.uvod::before {
  content: ""; position: absolute; z-index: -1; inset: -18% -40% -30% -30%; pointer-events: none;
  background: radial-gradient(ellipse at 30% 60%, rgba(5, 13, 9, .72), rgba(5, 13, 9, 0) 68%);
}
.uvod .stitok { font-size: 14px; letter-spacing: .14em; color: var(--zlta); text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }
/* the sentence under the headline (from his old home, 2026-10-16), on the same shadow as the label above it */
.uvod-l { max-width: 46ch; margin-top: 22px; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.5; color: var(--biela);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .75), 0 0 3px rgba(0, 0, 0, .45); }
.uvod h1 { max-width: 13ch; font-weight: 200; font-size: clamp(42px, 6.6vw, 104px); line-height: 1; letter-spacing: -.035em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.dalej {
  position: absolute; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-2);
}
.dalej::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--text-2), transparent); animation: kvapka 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes kvapka { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* the compass became a map (the owner, 2026-10-16): the logo is its title, the chapters are its markers, each with its
   symbol, its coordinates and a field note; the MRU line runs from the Warta to the Odra and a Land Rover drives it */
.mapa { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; pointer-events: none; opacity: 0;
  will-change: transform, opacity; }   /* P6.1: its own layer, so its fade-in moves a raster and repaints nothing */
.mapa .izo { fill: none; stroke: rgba(255, 255, 255, .075); stroke-width: 1; }
.mapa .ram { fill: rgba(10, 31, 22, .35); stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.mapa .ram-2 { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.mapa .ram-obrazovka { fill: none; }   /* a phone: the frame around the screen, nothing tinted under it (10-16) */
.mapa .riska { stroke: rgba(255, 255, 255, .3); stroke-width: 1; }
.mapa .sur { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; fill: rgba(255, 255, 255, .42); }
.mapa .rieka { fill: none; stroke: rgba(126, 184, 196, .55); stroke-width: 1.8; stroke-linecap: round; }
.mapa .rieka-meno { font-family: var(--sans); font-style: italic; font-size: 11px; fill: rgba(126, 184, 196, .8); letter-spacing: .04em; }
.mapa .s3-von { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 4; }
.mapa .s3-dnu { fill: none; stroke: rgba(10, 31, 22, .95); stroke-width: 1.6; }
.mapa .s3-stit { fill: rgba(255, 255, 255, .85); }
.mapa .s3-text { font-family: var(--mono); font-size: 9px; fill: var(--zelen); font-weight: 500; }
.mapa .mru { fill: none; stroke: var(--zlta); stroke-width: 2; stroke-dasharray: 7 5; stroke-linecap: round; }
.mapa .mru-zuby { fill: none; stroke: rgba(255, 193, 73, .75); stroke-width: 1.4; }
.mapa .mru-meno { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; fill: rgba(255, 193, 73, .85); text-transform: uppercase; }
.mapa .miesto { fill: rgba(255, 255, 255, .7); }
.mapa .miesto-meno { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; fill: rgba(255, 255, 255, .6); }
.mapa .miesto-meno.mesto { font-size: 11px; fill: rgba(255, 255, 255, .78); }
.mapa .sever { font-family: var(--mono); font-size: 11px; fill: var(--zlta); }
.mapa .sever-sipka { fill: var(--zlta); }

/* the markers */
.kompas { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.znacka { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 18px;   /* the label a little off its symbol (the owner) */ text-decoration: none; opacity: 0; pointer-events: none; }
.kompas.aktivne .znacka { pointer-events: auto; }
.znacka.z-l { flex-direction: row-reverse; text-align: right; }
.z-sym {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--zlta); background: rgba(10, 31, 22, .85); color: var(--zlta);
  box-shadow: 0 0 0 6px rgba(255, 193, 73, .08); transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.z-sym svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.znacka:hover .z-sym, .znacka:focus-visible .z-sym { background: var(--zlta); color: var(--zelen); box-shadow: 0 0 0 10px rgba(255, 193, 73, .14); }
.z-text { display: grid; gap: 1px; padding: 6px 10px; border-radius: 10px; background: rgba(10, 31, 22, .72); backdrop-filter: blur(4px); }
.z-text i { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--zlta); }
.z-text b { font-weight: 300; font-size: clamp(17px, 1.35vw, 21px); letter-spacing: -.01em; white-space: nowrap; }
/* the arrow points at the marker (the owner, 2026-10-16): after the name when the label is left of it, before it when
   the label is right of it */
.z-l .z-text b::after { content: " →"; color: var(--text-3); transition: color .3s ease; }
.z-p .z-text b::before { content: "← "; color: var(--text-3); transition: color .3s ease; }
.znacka:hover .z-text b::after, .znacka:hover .z-text b::before { color: var(--zlta); }
.z-text em { font-style: normal; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
/* the map shows only the names and their arrows (the owner, 2026-10-16: three lines in a box were too much text) */
.z-text i, .z-text em { display: none; }

/* the legend, like a map's own */
.legenda {
  position: absolute; z-index: 6; width: 250px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 4px;
  background: rgba(10, 31, 22, .78); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; font-size: 12.5px; color: var(--text-2);
}
.legenda.aktivne { pointer-events: auto; }
.leg-h { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--zlta); margin-bottom: 8px; }
.legenda ul { list-style: none; display: grid; gap: 5px; }
.legenda li { display: flex; align-items: center; gap: 10px; }
.legenda li i { flex: none; width: 26px; height: 0; }
.leg-mru { border-top: 2px dashed var(--zlta); }
.leg-rieka { border-top: 2px solid rgba(126, 184, 196, .7); }
.leg-s3 { border-top: 4px double rgba(255, 255, 255, .5); }
.leg-odkazy { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ciara); }
.leg-odkazy a { color: var(--biela); text-decoration: none; font-size: 13.5px; padding: 4px 0; }
.leg-odkazy a:hover { color: var(--zlta); }
.leg-mierka { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--text-3); }
.legenda.bez-mierky .leg-mierka { display: none; }        /* a low screen (koncept.js) */
#mierka { display: inline-block; height: 6px; border: 1px solid rgba(255, 255, 255, .55); border-top: 0; }

/* four facts under the motto (from his old home, 2026-10-16): small mono numbers, the label beside each; koncept.js
   places them between the motto and the legend, on a phone under the map */
.liczby { position: absolute; z-index: 6; opacity: 0; pointer-events: none; display: grid; grid-template-columns: auto auto;
  justify-content: start; gap: 5px 14px; margin: 0; }
.liczby > div { display: contents; }
.liczby dt { font-family: var(--mono); font-size: 11px; line-height: 18px; letter-spacing: .06em; color: var(--zlta); white-space: nowrap; }
.liczby dd { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-2); }
.heslo { position: absolute; z-index: 6; opacity: 0; pointer-events: none; font-weight: 200; font-size: clamp(15px, 1.3vw, 19px); color: var(--text-2); }
.kto {
  position: absolute; z-index: 6; bottom: 22px; padding: 12px; left: var(--okraj);
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2);
  text-decoration: none; opacity: 0; pointer-events: none;
}
.kto.aktivne { pointer-events: auto; }

@media (max-width: 760px) {
  .z-text i, .z-text em { display: none; }
  .z-text b { font-size: 14px; }
  .z-text { padding: 3px 7px; }
  .z-sym { width: 30px; height: 30px; box-shadow: none; }
  .znacka { gap: 14px; }
  .z-sym svg { width: 16px; height: 16px; }
  .legenda { display: none; }
  .liczby { left: 16px; right: 16px; justify-content: center; gap: 3px 12px; }
  .liczby dt { font-size: 10.5px; line-height: 17px; }
  .liczby dd { font-size: 12px; line-height: 17px; }
  .kto { left: 50%; transform: translateX(-50%); }
}

/* 2. the people */
.ludzie {
  min-height: 100vh; padding: 16vh var(--okraj) 0; display: grid; gap: 8vh 6vw;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-content: start;
  background: linear-gradient(to bottom, var(--zelen), #0c2419);
}
.ludzie h2 { font-weight: 200; font-size: clamp(36px, 5vw, 76px); line-height: 1.02; letter-spacing: -.03em; max-width: 17ch; margin-bottom: 28px; }
.ludzie h2 em { display: block; font-style: normal; color: var(--zlta); }
.fakty { list-style: none; margin-top: 32px; display: grid; gap: 14px; max-width: 46ch; }
.fakty li { padding-top: 14px; border-top: 1px solid var(--ciara); font-size: 15px; line-height: 1.55; color: var(--text-2); }
.fakty b { font-weight: 400; color: var(--biela); }
.kontakt { align-self: end; display: grid; gap: 10px; justify-items: start; }
.blizej { font-weight: 200; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 26px; }
.kontakt .tel { font-size: clamp(34px, 4vw, 60px); font-weight: 200; letter-spacing: -.02em; text-decoration: none; color: var(--zlta); }
.kontakt .mail { font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--ciara); padding-bottom: 2px; }
.adresa { margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--text-2); max-width: 36ch; }
.adresa b { font-weight: 400; color: var(--biela); }
.stopka {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px 0 84px; border-top: 1px solid var(--ciara); font-size: 12px; color: var(--text-3);
}
.stopka a { color: var(--text-2); }
/* the footer's links: one row of the menu's main pages, Projekt UE among them (7d) */
.stopka-odkazy { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.stopka-odkazy a { font-size: 13px; text-decoration: none; padding: 4px 0; }
.stopka-odkazy a:hover { color: var(--zlta); }

@media (max-width: 760px) {
  .ludzie { grid-template-columns: 1fr; padding-top: 14vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dalej::after { animation: none; }
}

/* SAMPLE vzorka-uvod (the owner, 2026-10-16): the opening plays by itself, so it needs only a short scroll; on a phone
   the map fills the screen and the four facts sit on its foot (data-mapa="cela"), or "vacsia": a larger map */
.las { height: 180vh; }
@media (max-width: 760px) {
  [data-mapa="cela"] .heslo { display: none; }
}
