/* ==========================================================================
   SLIDES — DVF pilnsapulce 11.10.2026 (pārbūve 09.–10.10.). Dzinējs: deck.css / deck.js.
   Toņi: lins (gaišs), nakts (tumšs), karogs (zīmola krāsa). Noskaņu josla maina:
     data-palette (K)  data-type (T)  data-fons = jaukts | lins | nakts | karogs (R)
     data-mark = a | b | d (Z, 1–3)  data-stars = on | off (X)  data-motion = on | off (A)
   Režģis 1920×1080: malas 140, virsraksts no 110, apakšā 100 drošā zona. Pamatteksts ≥ 40, paraksti ≥ 30.
   Klašu nosaukumi neitrāli (bez „social”, „share”, „ad”, „banner” — reklāmu bloķētāji tos slēpj).
   ========================================================================== */

/* ---------- 1. Fons (arī ārpus 16:9 skatuves) un tipogrāfijas mērogs ---------- */
:root {
  --bg-lins: var(--paper);
  --bg-nakts: radial-gradient(120% 110% at 74% 16%, var(--night-hi) 0%, var(--night) 64%);
  --bg-karogs: radial-gradient(130% 120% at 30% 0%, color-mix(in oklab, var(--brand) 88%, #fff) 0%, var(--brand) 46%, var(--brand-deep) 100%);
  --bg-l: var(--bg-lins);
  --bg-d: var(--bg-nakts);
  --linen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='h' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .62' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .13 0 0 0 0 .1 .62 0 0 0 -.25'/%3E%3C/filter%3E%3Cfilter id='v' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.62 .008' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .13 0 0 0 0 .1 .55 0 0 0 -.24'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23h)'/%3E%3Crect width='320' height='320' filter='url(%23v)'/%3E%3C/svg%3E");
}
html[data-fons="lins"]   { --bg-d: var(--bg-lins); }
html[data-fons="nakts"]  { --bg-l: var(--bg-nakts); }
html[data-fons="karogs"] { --bg-l: var(--bg-karogs); --bg-d: var(--bg-karogs); }

:root, :root[data-type="plakats"] { --ds: .82; }   /* Alfa Slab One ir plats un smags */
:root[data-type="ziemeli"] { --ds: .96; }
:root[data-type="piemineklis"] { --ds: .92; }

/* ---------- 2. Toņi: krāsas tekstam, līnijām, zīmēm, jostai ---------- */
.slide, html[data-fons="lins"] .slide, [data-tone="light"]:not(.slide), [data-tone="white"] {
  --fg: var(--ink);
  --muted: color-mix(in oklab, var(--ink) 70%, var(--paper));
  --rule: color-mix(in oklab, var(--ink) 20%, transparent);
  --em: var(--brand);
  --river: var(--brand);
  --river-op: .55;
  --tex-op: .6;
  --belt-dark: var(--brand);
  --belt-light: #FFFFFF;
  --surface: color-mix(in oklab, var(--ink) 5%, var(--paper));
  --mk-disc: var(--brand);
  --mk-on: #FBF8F3;
  --mk-ink: var(--brand);
  --mk-accent: var(--accent);
  --mk-star: var(--star);
}
.slide[data-tone="dark"], html[data-fons="nakts"] .slide, [data-tone="dark"]:not(.slide) {
  --fg: #F3EFE8;
  --muted: color-mix(in oklab, #F3EFE8 74%, var(--night));
  --rule: rgba(243, 239, 232, .22);
  --em: var(--accent);
  --river: var(--metal);
  --river-op: 1;
  --tex-op: 0;
  --belt-dark: var(--brand);
  --belt-light: #FFFFFF;
  --surface: rgba(243, 239, 232, .07);
  --mk-disc: var(--brand);
  --mk-on: #FBF8F3;
  --mk-ink: #F3EFE8;
  --mk-accent: var(--accent);
  --mk-star: var(--star);
}
html[data-fons="karogs"] .slide, [data-tone="brand"]:not(.slide) {
  --fg: #FFFFFF;
  --muted: color-mix(in oklab, #fff 80%, var(--brand));
  --rule: rgba(255, 255, 255, .3);
  --em: color-mix(in oklab, var(--accent) 50%, #fff);   /* gaišs zelts: starpvirsraksti atšķiras no baltā teksta, ≥ 4,5:1 (B33) */
  --river: #FFFFFF;
  --river-op: .6;
  --tex-op: 0;
  --belt-dark: var(--brand);
  --belt-light: #FFFFFF;
  --surface: rgba(255, 255, 255, .1);
  --mk-disc: #FBF8F3;
  --mk-on: var(--brand);
  --mk-ink: #FFFFFF;
  --mk-accent: var(--accent);
  --mk-star: var(--brand);
}
[data-tone="mono"] {                      /* vienā krāsā: zīme tintē uz lina */
  --mk-disc: var(--ink); --mk-on: var(--paper); --mk-ink: var(--ink); --mk-accent: var(--ink); --mk-star: var(--paper);
}

.slide { color: var(--fg); }

/* lina auduma faktūra (projektorā gandrīz neredzama, ekrānā — materiāls). Dzīvajā prezentācijā tā ir TIKAI vienā slānī
   uz visa ekrāna (.deck-bg::after zemāk): divi slāņi — slaidā un aiz tā — satura laukumā deva tumšāku joslu ar robežu.
   Slaidā pašā faktūra paliek tikai pārskata (O) sīktēlos, kam pilnekrāna fona nav. */
.ov-stage .slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--linen);
  opacity: var(--tex-op);
  pointer-events: none;
  transition: opacity var(--t-theme) ease;
}

/* faktūra visam ekrānam vienādi (skatuvei un malu joslām), kad aktīvais slaids ir gaišs */
.deck-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--linen);
  opacity: 0;
  transition: opacity var(--t-bg) ease;
  pointer-events: none;
}
html[data-tone-now="light"]:not([data-fons="nakts"]):not([data-fons="karogs"]) .deck-bg::after,
html[data-fons="lins"] .deck-bg::after { opacity: .6; }

/* ---------- 3. Zīmes (sprite <use>): mainīgie katram virzienam ---------- */
.mk { display: block; overflow: visible; }
.mk[data-m="a"] { --mk-fg: var(--mk-on); }
.mk[data-m="b"],
.mk[data-m="d"] { --mk-fg: var(--mk-ink); }

/* ---------- 4. Tipogrāfija ---------- */
.stage { font-size: 44px; line-height: 1.32; font-weight: 500; }
.t-display { letter-spacing: -.012em; }
.title {
  position: absolute;
  left: 140px;
  top: 104px;
  max-width: 1560px;
  font-size: calc(100px * var(--ds));
  line-height: 1.04;
  text-wrap: balance;
}
.lead { font-size: 44px; line-height: 1.32; text-wrap: balance; }
.foot {
  position: absolute;
  left: 140px;
  bottom: 96px;
  max-width: 1400px;
  font-size: 38px;
  line-height: 1.3;
  color: var(--muted);
  text-wrap: pretty;
}
.under {
  position: absolute;
  left: 140px;
  top: calc(104px + 118px * var(--ds));
  max-width: 1640px;
  font-size: 40px;
  color: var(--muted);
}

/* ---------- 5. Josta un Daugava ---------- */
.belt { display: block; overflow: hidden; }   /* vektors 1:1: bez crispEdges — daļējā mērogā dūrieni paliek vienādi */
.belt-band {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1920px;
  height: 289px;                               /* josta 1:1, proporcija 988,8 : 148,9 */
}
.belt-band.belt-half { height: 144.5px; }
/* upe slaidā pa visu platumu: gali izgaist, lai malu joslās (augšējā josla tās rada gandrīz katrā ekrānā) nav asa griezuma */
.slide > .river {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}      /* vākā: tikai augšējā puse līdz simetrijas asij, apakšējā „aiz malas” (B32) */
.river {
  position: absolute;
  left: 0;
  bottom: 70px;
  width: 1920px;
  height: 420px;
  opacity: var(--river-op);
  pointer-events: none;
}

/* ---------- 6. Progresa līnija ---------- */
.progress { height: 5px; }
.progress::after { background: var(--brand); opacity: .9; }

/* =========================== SLAIDI (Brand Deck, 10.10.) =========================== */

/* kopīgie bloki */
.cols2 {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  margin: 0;
}
.cols2 h3 { font-size: calc(64px * var(--ds)); line-height: 1.08; color: var(--em); text-wrap: balance; }
.facts { margin: 30px 0 0; padding: 0; list-style: none; }
.facts li { padding: 16px 0; border-top: 2px solid var(--rule); font-size: 40px; line-height: 1.25; text-wrap: pretty; }
.facts li:last-child { border-bottom: 2px solid var(--rule); }
.facts.small li { padding: 12px 0; font-size: 34px; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; margin: 30px 0 0; }
.spec dt { font-size: 30px; line-height: 1.3; color: var(--muted); }
.spec dd { margin: 0; font-size: 36px; line-height: 1.25; }
/* mazā izmēra rinda: īstas vektora zīmes īstajā izmērā (B33) — asas un slaida krāsās, nevis palielināti pikseļi */
.sizes { display: flex; align-items: flex-end; gap: 48px; margin-top: 36px; }
.sz { display: grid; justify-items: center; gap: 12px; }
.sz small { font-size: 30px; line-height: 1; color: var(--muted); white-space: nowrap; }

/* 1 · Vāks: trīs zīmes vienā rindā, vienādā izmērā — vienlīdzīgi kandidāti (B32) */
.s-cover .cover-text { position: absolute; left: 140px; top: 200px; width: 800px; }
.s-cover .cover-title { font-size: calc(170px * var(--ds)); line-height: .96; text-wrap: balance; }
.s-cover .cover-sub { margin-top: 40px; font-size: calc(64px * var(--ds)); line-height: 1.1; color: var(--em); }
.s-cover .cover-meta { margin-top: 26px; font-size: 34px; color: var(--muted); text-wrap: balance; }
.s-cover .cover-marks {
  position: absolute;
  right: 140px;
  top: 270px;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.s-cover .cover-marks li { width: 230px; }
.s-cover .cover-marks .mk { width: 230px; height: 230px; }
.s-cover .cover-marks p { margin-top: 28px; text-align: center; font-size: calc(44px * var(--ds)); line-height: 1.05; }
.s-cover .cover-marks b { color: var(--em); margin-right: .2em; }

/* 3 · Kā ir šobrīd */
.s-audit figure { margin: 0; }
.s-audit .sizes { margin-top: 44px; gap: 56px; }
.s-audit figcaption { margin-top: 30px; max-width: 880px; font-size: 36px; line-height: 1.3; text-wrap: pretty; }
.s-audit .names { margin: 30px 0 0; padding: 0; list-style: none; }
.s-audit .names li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-top: 2px solid var(--rule); }
.s-audit .names li:last-child { border-bottom: 2px solid var(--rule); }
.s-audit .names b { font-size: 38px; font-weight: 600; line-height: 1.2; }
.s-audit .names span { flex: none; font-size: 30px; color: var(--muted); }
.s-audit .src { margin-top: 18px; font-size: 30px; color: var(--muted); }

/* 4 · Trīs virzieni */
.s-paths .paths {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 290px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.s-paths .mk { width: 380px; height: 380px; margin: 0 auto; }
.s-paths .path-name { margin-top: 40px; text-align: center; font-size: calc(64px * var(--ds)); line-height: 1.05; }
.s-paths .path-name b { color: var(--em); margin-right: .2em; }
.s-paths .path-role { margin-top: 10px; text-align: center; font-size: 36px; color: var(--muted); }

/* 5–7 · Katra zīme */
.s-mark .mark-hero { position: absolute; left: 140px; top: 170px; width: 740px; height: 740px; }
.s-mark .mark-text { position: absolute; left: 990px; top: 110px; width: 800px; }
.s-mark .mark-num,
.s-mark .mark-name { display: inline-block; font-size: calc(104px * var(--ds)); line-height: 1.05; }
.s-mark .mark-num { color: var(--em); margin-right: .3em; }
.s-mark .variants { display: flex; gap: 22px; margin-top: 40px; }
.s-mark .variants figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.s-mark .variants .tile { width: 150px; height: 150px; }
.s-mark .variants .tile .mk { width: 108px; height: 108px; }
.s-mark .variants figcaption { font-size: 30px; color: var(--muted); white-space: nowrap; }
.s-mark .small-test { margin: 40px 0 0; }
.s-mark .small-test figcaption { margin-top: 14px; font-size: 30px; line-height: 1.3; color: var(--muted); text-wrap: pretty; }

.tile {
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  border-radius: 4px;
}
.tile[data-tone="light"] { background: color-mix(in oklab, var(--ink) 6%, var(--paper)); box-shadow: inset 0 0 0 2px var(--rule); }
.tile[data-tone="white"] { background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--rule); }
.tile[data-tone="dark"]  { background: var(--bg-nakts); box-shadow: inset 0 0 0 2px var(--rule); }   /* mala: uz tādas pašas krāsas slaida flīze nepazūd (B33) */
.tile[data-tone="brand"] { background: var(--brand); box-shadow: inset 0 0 0 2px var(--rule); }
.tile[data-tone="mono"]  { background: var(--paper); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--ink) 20%, transparent); }
.tile .mk { width: 132px; height: 132px; }

/* 8 · Aizsargzona: zīme 240 px 480 × 480 laukumā; rāmis = zīmes robežas + x (puse no zīmes augstuma) */
.s-rules .zones {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 360px;
  display: grid;
  grid-template-columns: repeat(3, 520px);
  justify-content: space-between;
}
.s-rules figure { margin: 0; }
.s-rules .zone { position: relative; width: 480px; height: 480px; zoom: .875; margin: 0 auto; }
.s-rules .zone .mk { position: absolute; left: 120px; top: 120px; width: 240px; height: 240px; }
.s-rules .zone::before {
  content: "";
  position: absolute;
  border: 3px dashed color-mix(in oklab, var(--em) 70%, transparent);
  left: var(--zl); top: var(--zt); width: var(--zw); height: var(--zh);
}
.s-rules .x { position: absolute; font-style: normal; font-weight: 700; font-size: 34px; line-height: 1; color: var(--em); transform: translate(-50%, -50%); }
.s-rules .x-top { left: 240px; top: var(--xt); }
.s-rules .x-left { left: var(--xl); top: 240px; }
.s-rules .zones figure:nth-child(1) .zone { --zl: 7.5px; --zt: 7.5px; --zw: 465px; --zh: 465px; --xt: 66px; --xl: 66px; }
.s-rules .zones figure:nth-child(2) .zone { --zl: 46.9px; --zt: 46.9px; --zw: 380.6px; --zh: 375px; --xt: 94px; --xl: 94px; }
.s-rules .zones figure:nth-child(3) .zone { --zl: 40.3px; --zt: 56.7px; --zw: 399.4px; --zh: 327.2px; --xt: 97px; --xl: 81px; }
.s-rules figcaption { margin-top: 16px; text-align: center; font-size: 30px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.s-rules figcaption b { display: block; color: var(--fg); font-size: calc(46px * var(--ds)); font-family: var(--f-display), serif; font-weight: var(--f-display-wght); }

/* 9 · Foni un kļūdas */
.s-misuse .row-h { position: absolute; left: 140px; font-size: calc(46px * var(--ds)); line-height: 1.1; }
.s-misuse .ok-h { top: 250px; color: var(--em); }
.s-misuse .no-h { top: 590px; color: var(--em); }                  /* bija ciets sarkans: uz karoga un tumša fona 1,2:1 (B33) */
.s-misuse .row { position: absolute; left: 140px; display: flex; gap: 40px; }
.s-misuse .row.ok { top: 320px; }
.s-misuse .row.no { top: 660px; }
.s-misuse .row figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.s-misuse .row .tile { width: 196px; height: 196px; overflow: hidden; position: relative; }
.s-misuse .row figcaption { font-size: 30px; color: var(--muted); }
.s-misuse .row.no .tile { box-shadow: inset 0 0 0 3px #B3261E; }
.s-misuse .bad-stretch { transform: scaleX(1.45); }
.s-misuse .bad-rotate { transform: rotate(-20deg); }
.s-misuse .bad-color { --mk-disc: #3E8E41; --mk-ink: #3E8E41; --mk-accent: #8E44AD; --mk-star: #F2D21B; }
.s-misuse .bad-shadow { filter: drop-shadow(10px 14px 6px rgba(0, 0, 0, .55)); }
.s-misuse .tile-busy .belt { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-misuse .tile-busy .mk { position: relative; }
.s-misuse .tile-crop .mk { transform: translate(34%, 28%) scale(1.35); }

/* 10 · Krāsas */
.s-colors .swatches {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 240px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}
.s-colors .swatches figure { margin: 0; }
.s-colors .swatches i { display: block; height: 140px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--rule); }
.s-colors .swatches figcaption { display: grid; margin-top: 14px; font-size: 30px; line-height: 1.3; }
.s-colors .swatches b { font-size: 34px; }
.s-colors .swatches span { font-variant-numeric: tabular-nums; }
.s-colors .swatches em { font-style: normal; color: var(--muted); }
.s-colors .share { position: absolute; left: 140px; top: 640px; width: 760px; height: 40px; display: flex; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--rule); }
.s-colors .share i { display: block; }
.s-colors .share-l { position: absolute; left: 140px; top: 696px; width: 760px; font-size: 30px; line-height: 1.3; color: var(--muted); }
.s-colors .contrast { position: absolute; left: 980px; top: 610px; width: 800px; border-collapse: collapse; font-size: 32px; }
.s-colors .contrast td { padding: 7px 0; border-top: 2px solid var(--rule); white-space: nowrap; }
.s-colors .contrast td:nth-child(2) { width: 150px; text-align: right; padding-right: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.s-colors .contrast td:nth-child(3) { color: var(--muted); }
.s-colors .contrast .fail td:nth-child(2) { color: var(--em); font-weight: 700; }   /* bija ciets sarkans: 1,5:1 (B33) */
.s-colors .foot { max-width: 780px; font-size: 32px; }

/* 11 un 13 · Trīs noskaņas, trīs burtu komplekti */
.pal3 {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 330px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pal3 button {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 30px 30px;
  border: 0;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--rule);
  color: var(--fg);
  font: 500 30px/1.3 var(--f-text), system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: box-shadow .3s ease, background-color .3s ease;
}
.pal3 button.is-on { box-shadow: inset 0 0 0 5px var(--em); background: color-mix(in oklab, var(--em) 10%, transparent); }
.pal3 .pal-sw { display: flex; height: 200px; border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.pal3 .pal-sw i { flex: 1; }
.pal3 .pal-sw i:first-child { flex: 2.2; }
.pal3 .pal b { font-size: calc(54px * var(--ds)); line-height: 1.05; }
.pal3 .ts b { font-size: 40px; font-weight: 700; margin-top: 10px; }
.pal3 .pal-hex { color: var(--fg); font-variant-numeric: tabular-nums; }
.pal3 .pal-why { color: var(--muted); }
.pal3 .ts-t { font-size: 66px; line-height: 1.02; color: var(--em); }
.pal3 .ts-b { font-size: 34px; line-height: 1.3; }

/* 12 · Tipogrāfija */
.s-type .type-l { position: absolute; left: 140px; top: 250px; width: 640px; }
.s-type .aa { font-size: 300px; line-height: 1; color: var(--em); }
.s-type .type-r { position: absolute; left: 860px; top: 250px; width: 920px; }
.s-type .lvl { display: grid; gap: 6px; padding: 14px 0; border-top: 2px solid var(--rule); }
.s-type .lvl small { font-size: 30px; color: var(--muted); }
.s-type .l1 { font-size: calc(120px * var(--ds)); line-height: 1; }
.s-type .l2 { font-size: calc(72px * var(--ds)); line-height: 1.05; }
.s-type .l3 { font-size: 44px; line-height: 1.25; }
.s-type .l4 { font-size: 30px; line-height: 1.3; }
.s-type .l5 { font-size: calc(54px * var(--ds)); line-height: 1.2; letter-spacing: .02em; }

/* 14 · Raksts */
.s-pattern .pattern-belt { position: absolute; left: 140px; top: 250px; width: 1640px; height: 247px; }
.s-pattern .pattern-cols { top: 560px; }
.s-pattern .signs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0 0; padding: 0; list-style: none; }
.s-pattern .signs li { display: grid; justify-items: center; gap: 10px; font-size: 30px; color: var(--muted); text-align: center; }
.s-pattern .signs svg { width: 110px; height: 110px; color: var(--em); }
.s-pattern .note { margin-top: 26px; font-size: 32px; line-height: 1.3; text-wrap: pretty; }

/* 15 · Universāls fons */
.s-backdrop .formats {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 300px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 90px;
}
.s-backdrop figure { margin: 0; display: grid; justify-items: center; gap: 16px; }
.s-backdrop figcaption { font-size: 30px; color: var(--muted); }
.s-backdrop .fmt { position: relative; height: 600px; overflow: hidden; box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .45); }
.s-backdrop .fmt-roll { width: 255px; background: var(--paper); }
.s-backdrop .fmt-post { width: 480px; background: var(--bg-nakts); }
.s-backdrop .fmt-story { width: 338px; background: var(--bg-karogs); }
.s-backdrop .fmt .mk { position: absolute; left: 50%; top: 9%; width: 46%; translate: -50% 0; }
.s-backdrop .fmt-post .mk { width: 34%; }
.s-backdrop .fmt p { position: absolute; left: 8%; right: 8%; top: 46%; text-align: center; color: var(--fg); font-size: calc(40px * var(--ds)); line-height: 1.05; text-wrap: balance; }
.s-backdrop .fmt-roll p { font-size: calc(32px * var(--ds)); }
.s-backdrop .fmt .belt { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; }
.s-backdrop .fmt .river { position: absolute; left: 0; bottom: 0; width: 100%; height: 40%; opacity: .9; }

/* 16 · Pielietojumi */
.s-life .life {
  position: absolute;
  left: 140px;
  right: 140px;
  bottom: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.s-life .lf { margin: 0; display: grid; justify-items: center; gap: 18px; }
.s-life .lf figcaption { font-size: 30px; color: var(--muted); }
.s-life .poster {
  position: relative;
  width: 380px;
  height: 537px;
  overflow: hidden;
  background: var(--bg-karogs);
  color: #fff;
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .5);
}
.s-life .poster .mk { position: absolute; left: 40px; top: 40px; width: 170px; height: 170px; }
.s-life .poster-title { position: absolute; left: 40px; right: 26px; top: 246px; font-size: calc(50px * var(--ds)); line-height: 1.02; }
.s-life .poster-sub { position: absolute; left: 40px; bottom: 96px; font-size: 22px; opacity: .85; }
.s-life .poster-belt { position: absolute; left: 0; bottom: 0; width: 380px; height: 57px; }
.s-life .phone {
  width: 300px;
  height: 600px;
  padding: 18px 14px;
  border-radius: 44px;
  background: #121416;
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .55), inset 0 0 0 3px #2a2d31;
  color: #EDEBE7;
  font-size: 20px;
  line-height: 1.3;
}
.s-life .ph-bar { display: flex; align-items: center; gap: 12px; padding: 34px 8px 14px; }
.s-life .ph-av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); }
.s-life .ph-av .mk { width: 36px; height: 36px; }
.s-life .ph-img {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  height: 272px;
  background: var(--bg-nakts);
  text-align: center;
}
.s-life .ph-img .mk { width: 150px; height: 150px; }
.s-life .ph-img p { color: #F3EFE8; font-size: calc(28px * var(--ds)); line-height: 1.05; padding: 0 16px; }
.s-life .ph-cap { padding: 16px 8px 0; color: #C9C6C0; }
.s-life .ph-cap b { color: #EDEBE7; }
.s-life .shirt { position: relative; width: 440px; height: 460px; }
.s-life .shirt-body { width: 100%; height: 100%; }
.s-life .shirt-body path { fill: var(--night); }
.slide[data-tone="dark"] .shirt-body path,
html[data-fons="nakts"] .shirt-body path { fill: var(--brand); }
html[data-fons="lins"] .shirt-body path { fill: var(--night); }
.s-life .shirt-mark { position: absolute; left: 265px; top: 110px; width: 74px; height: 74px; }
.s-life .pin {
  display: grid;
  place-items: center;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFFFFF 0%, #D5D9DB 34%, #9AA1A5 70%, #C9CDD0 100%);
  box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .55), inset 0 0 0 3px rgba(255, 255, 255, .6);
}
.s-life .pin .mk { width: 180px; height: 180px; }
.s-life .pin { --mk-ink: var(--brand); }
html[data-fons="karogs"] .s-life .poster { background: var(--bg-nakts); }

/* 17 · Zīme ar nosaukumu */
.s-lockup .lockups {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 40px;
}
.s-lockup .lk {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  padding: 30px 36px;
  border-radius: 4px;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--rule);
}
.s-lockup .lk .mk { flex: none; width: 150px; height: 150px; }
.s-lockup .lk p { font-size: calc(48px * var(--ds)); line-height: 1.08; }

/* 18 · Lēmumi valdei */
.s-decide .decisions {
  position: absolute;
  left: 140px;
  right: 140px;
  top: 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 100px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lem;
}
.s-decide .decisions li { counter-increment: lem; padding-top: 26px; border-top: 4px solid var(--em); }
.s-decide .decisions b { display: block; font-size: calc(58px * var(--ds)); line-height: 1.08; }
.s-decide .decisions b::before { content: counter(lem) " "; color: var(--em); }
.s-decide .decisions span { display: block; margin-top: 14px; font-size: 40px; line-height: 1.25; color: var(--muted); }
.s-decide .river { bottom: 40px; }
.s-decide .foot { max-width: 1060px; }
.s-decide .byline { position: absolute; right: 140px; bottom: 96px; margin: 0; font-size: 32px; line-height: 1.3; color: var(--muted); }

/* ===================== JOSLA: vienmēr redzama, augšā (B32) ===================== */
:root { --nav-h: 60px; }
.deck { top: var(--nav-h); }                   /* dzinējs mērogo skatuvi .deck izmērā, tāpēc josla saturu neaizsedz */
.overview { top: var(--nav-h); }
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: var(--night);
  border-bottom: 1px solid rgba(243, 239, 232, .1);
  color: var(--fg);
  font: 500 15px/1.2 "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.nav, .nav * { box-sizing: border-box; }      /* augstums ar visu apakšlīniju = tieši --nav-h, skatuvi nepārklāj */
.nav button { font: inherit; color: inherit; cursor: pointer; }
.nav-by { flex: none; margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.nav-set {                                     /* šaurā ekrānā pogas pabīda ar pirkstu; auto malas centrē, kad vietas pietiek */
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-set::-webkit-scrollbar { display: none; }
.nav-set > :first-child { margin-left: auto; }
.nav-set > :last-child { margin-right: auto; }
.nav-g { position: relative; display: flex; align-items: center; gap: 4px; flex: none; }
.nav-l { margin-right: 4px; font-size: 13px; color: var(--muted); }
.nav-b {
  display: inline-grid;
  grid-auto-flow: column;
  place-items: center;
  flex: none;
  min-width: 38px;
  height: 38px;
  padding: 0 7px;
  border: 0;
  border-radius: 10px;
  background: rgba(243, 239, 232, .06);
  transition: background-color .15s ease, box-shadow .15s ease, scale .09s ease;
}
.nav-b:hover { background: rgba(243, 239, 232, .14); }
.nav-b:active { scale: .93; }
.nav-b.is-on, .nav-b[aria-pressed="true"] { background: rgba(243, 239, 232, .12); box-shadow: inset 0 0 0 2px var(--accent); }
/* izvēles gredzens aizslīd uz izvēlēto pogu (B34); grupām ar gredzenu pogas pašas sava rāmja nezīmē */
.nav-ring {
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--ring-w, 0px);
  height: 38px;
  translate: var(--ring-x, 0px) -50%;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px var(--accent);
  pointer-events: none;
  transition: translate .32s cubic-bezier(.3, .7, .2, 1), width .32s cubic-bezier(.3, .7, .2, 1);
}
.nav-g.has-ring .nav-b.is-on, .nav-g.has-ring .nav-b[aria-pressed="true"] { box-shadow: none; }
.nav.no-glide .nav-ring { transition: none; }
.nav-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-pal i { width: 12px; height: 12px; margin-left: -3px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--night); }
.nav-pal i:first-child { margin-left: 0; }
.nav-type { font-size: 19px; line-height: 1; }
.nav-type[data-set-type="plakats"] { font-family: "Alfa Slab One", serif; }
.nav-type[data-set-type="ziemeli"] { font-family: "Familjen Grotesk", sans-serif; font-weight: 700; }
.nav-type[data-set-type="piemineklis"] { font-family: Marcellus, serif; }
.nav-fons i { width: 20px; height: 20px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(243, 239, 232, .3); }
.nav-fons[data-set-fons="jaukts"] i { background: linear-gradient(135deg, var(--paper) 50%, var(--night-hi) 50%); }
.nav-fons[data-set-fons="lins"] i { background: var(--paper); }
.nav-fons[data-set-fons="nakts"] i { background: var(--night-hi); }
.nav-fons[data-set-fons="karogs"] i { background: var(--brand); }
.nav-mark .mk { width: 26px; height: 26px; }
.nav .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-stars .ico { fill: currentColor; stroke-width: 1.5; }
html[data-stars="off"] .nav-stars .ico { fill: none; }
.nav-slides { display: flex; align-items: center; gap: 6px; flex: none; }
.nav-count { min-width: 64px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-count b { color: var(--fg); font-weight: 700; }
.nav-count b { display: inline-block; }
@media (max-width: 1439px) {                  /* grupu nosaukumi paliek; autors divās rindās, lai pietiek vietas */
  .nav-by { line-height: 1.15; }
  .nav-by span { display: block; }
}
@media (max-width: 1365px) { .nav { gap: 12px; } .nav-set { gap: 10px; } }
@media (max-width: 1279px) { .nav-l { display: none; } }
@media (max-width: 1100px) { .nav-by { display: none; } }
@media (max-width: 700px), (max-height: 520px) {
  :root { --nav-h: 48px; }
  .nav { gap: 10px; padding: 0 8px; }
  .nav-set { gap: 10px; }
  .nav-b { min-width: 32px; height: 32px; padding: 0 5px; }
  .nav-ring { height: 32px; }
  .nav-slides { gap: 4px; }
  .nav-count { min-width: 50px; }
  .guide { font-size: 13px; }
  .guide-lead { top: 8px; }
}
@media (pointer: coarse) and (max-width: 900px) { [data-fullscreen] { display: none; } }   /* telefonā: vietas joslā */
html.no-fs [data-fullscreen] { display: none; }

/* paskaidrojums pie pogām (data-tip): uzreiz, arī tastatūras fokusā (B34) */
.tip {
  position: fixed;
  z-index: 96;
  margin: 0;
  padding: 7px 11px;
  border-radius: 8px;
  background: #F3EFE8;
  color: #11181C;
  font: 600 14px/1.2 "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
  pointer-events: none;
  opacity: 0;
  translate: -50% 4px;
  transition: opacity .12s ease, translate .12s ease;
}
.tip.is-up { translate: -50% -4px; }
.tip.is-on { opacity: 1; translate: -50% 0; }

/* skaidrojumu rinda 1. slaidā (B34): pastāvīga, zem joslas; JS novieto parakstus zem grupām */
.guide {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-h);
  z-index: 80;
  height: 0;
  color: #F3EFE8;
  font: 500 15px/1.3 "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
html[data-slide="1"] .guide {
  opacity: 1;
  visibility: visible;
  transition: opacity .6s ease 1.3s, visibility 0s linear 1.3s;
}
.guide-lead, .guide-cap {
  box-sizing: border-box;
  position: absolute;
  margin: 0;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(11, 16, 19, .88);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.guide-lead { top: 12px; left: 20px; width: 300px; }
.guide-cap { top: var(--y, 12px); left: var(--x, 0px); white-space: nowrap; }
.guide-cap i {                                 /* līnija no paraksta līdz savai grupai joslā */
  position: absolute;
  left: var(--tick, 50%);
  bottom: 100%;
  width: 1px;
  height: var(--y, 12px);
  margin-left: -.5px;
  background: var(--accent);
  opacity: .75;
  transform-origin: 50% 0;
}
html[data-slide="1"] .guide-cap i { animation: tick .5s cubic-bezier(.2, .7, .2, 1) 1.5s backwards; }
@keyframes tick { from { scale: 1 0; } }
.guide-cap.is-off { display: none; }
@media (max-width: 1279px) {
  .guide-cap { display: none; }
  .guide-lead { left: 50%; translate: -50% 0; width: min(560px, calc(100vw - 32px)); text-align: center; }
}

/* telefons stāvus: aicinājums pagriezt (B34) */
.turn {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 32px;
  background: var(--night);
  color: #F3EFE8;
  text-align: center;
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (orientation: portrait) and (max-width: 600px) { html:not(.turn-ok) .turn { display: grid; } }
.turn-ico { width: 76px; height: 76px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; animation: turn 3s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes turn { 0%, 22% { rotate: 0deg; } 50%, 78% { rotate: -90deg; } 100% { rotate: 0deg; } }
.turn-t { margin: 10px 0 0; font-size: 26px; font-weight: 700; line-height: 1.2; }
.turn-s { margin: 0; max-width: 300px; font-size: 18px; line-height: 1.4; color: color-mix(in oklab, #F3EFE8 78%, var(--night)); }
.turn-b { margin-top: 18px; padding: 12px 22px; border: 1.5px solid rgba(243, 239, 232, .45); border-radius: 12px; background: transparent; color: inherit; font: inherit; font-size: 17px; }

/* slaidu josla (B34): tā pati tumšā kā augšējā josla */
:root { --thumb-w: clamp(80px, calc((100vw - 160px) / 18), 112px); }
.strip {
  background: var(--night);
  border-top: 1px solid rgba(243, 239, 232, .1);
  color: #F3EFE8;
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.strip-row { gap: 14px; padding: 0 16px 9px; }
.strip-items { gap: 5px; }
.strip-chn { padding-left: 2px; font-size: 12px; font-weight: 600; line-height: 1; color: color-mix(in oklab, #F3EFE8 60%, var(--night)); transition: color .25s ease; }
.strip-ch.is-current .strip-chn { color: var(--accent); }
.strip-frame { box-shadow: 0 0 0 1px rgba(243, 239, 232, .16); }
.strip-item:hover .strip-frame { translate: 0 -3px; box-shadow: 0 0 0 2px rgba(243, 239, 232, .6); }
.strip-item.is-current .strip-frame { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--accent); }
.strip-item:focus-visible { outline: none; }
.strip-item:focus-visible .strip-frame { box-shadow: 0 0 0 3px var(--accent), 0 0 0 7px color-mix(in oklab, var(--accent) 40%, transparent); }
.strip-num { padding: 2px 5px; border-radius: 4px; background: rgba(8, 12, 14, .66); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.strip-item.is-current .strip-num { background: var(--accent); color: var(--night); }
.strip-item.is-lit .strip-frame { animation: lit 1.1s ease 2; }   /* zīmes maiņa: šie slaidi to rāda */
@keyframes lit { 50% { box-shadow: 0 0 0 3px var(--accent), 0 0 20px 4px color-mix(in oklab, var(--accent) 55%, transparent); } }

/* nodaļas maiņa: jostas lente (B34) */
.sweep { width: clamp(84px, 7vw, 150px); filter: drop-shadow(0 0 18px rgba(0, 0, 0, .32)); }
.sweep svg { display: block; width: 100%; height: 100%; }

/* klikšķa zonas: pie malas, kur atrodas pele, vāja bultiņa (B34) */
.cue {
  position: fixed;
  top: calc((100vh + var(--nav-h) - var(--strip-h)) / 2);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  background: rgba(11, 16, 19, .5);
  color: #F3EFE8;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.cue svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cue-prev { left: 14px; }
.cue-next { right: 14px; }
html[data-cue="prev"] .cue-prev, html[data-cue="next"] .cue-next { opacity: .8; }
html.is-idle .cue { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .turn-ico, html[data-slide="1"] .guide-cap i, .strip-item.is-lit .strip-frame { animation: none; }
  .nav-ring { transition: none; }
}

.toast {
  position: fixed;
  left: 50%;
  top: calc(var(--nav-h) + 14px);
  z-index: 85;
  translate: -50% -10px;
  padding: 10px 18px;
  border-radius: 20px;
  background: rgba(14, 20, 24, .88);
  color: #F2EFEA;
  font: 600 16px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, translate .2s ease;
}
.toast.is-on { opacity: 1; translate: -50% 0; }
html[data-slide="1"] .toast { top: auto; bottom: calc(var(--strip-h) + 22px); translate: -50% 10px; }   /* vākā: apakšā, ne virs virsraksta */
html[data-slide="1"] .toast.is-on { translate: -50% 0; }
