@font-face {
  font-family: "Golos Text";
  src: url("/presentations/vendor/fonts/golos-text-latin-cyrillic.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("/presentations/vendor/fonts/unbounded-latin-cyrillic.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/presentations/vendor/fonts/jetbrains-mono-latin-cyrillic.woff2") format("woff2");
  font-display: swap;
}

:root {
  --canvas: #f4f9fb;
  --surface: #ffffff;
  --canvas-raised: #e8f1f4;
  --ink: #10252d;
  --muted: #526b75;
  --grid: #c7d9df;
  --system: #0968cf;
  --human: #e84f35;
  --evidence: #1f765c;
  --focus: #c17a00;
  --warning: #a9442f;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(rgba(9, 104, 207, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 104, 207, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 85% 12%, rgba(232, 79, 53, 0.12), transparent 28rem),
    var(--canvas);
  background-size: 40px 40px, 40px 40px, auto, auto;
  color: var(--ink);
  font-family: "Golos Text", sans-serif;
}

.reveal {
  color: var(--ink);
  font-family: "Golos Text", sans-serif;
}

.reveal .slides { text-align: left; }

.reveal .slides > section {
  height: 100%;
  padding: 0;
}

.deck-mobile-guide { display: none; }

.slide__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.38fr);
  height: 100%;
  min-height: 0;
  padding: 54px 64px 44px;
  gap: 28px;
  overflow: hidden;
}

.slide__grid::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  width: 9px;
  height: 58%;
  background: var(--human);
  border-radius: 0 9px 9px 0;
}

.slide__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.slide__count,
.eyebrow,
.kicker {
  margin: 0;
  color: var(--system);
  font: 700 16px/1.2 "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reveal h1,
.catalog h1 {
  max-width: 1130px;
  margin: 0;
  color: var(--ink);
  font: 650 clamp(44px, 4.5vw, 76px)/1.04 "Golos Text", sans-serif;
  letter-spacing: -0.035em;
  text-transform: none;
}

.slide--manifesto h1,
.slide--threshold h1 {
  font-family: "Unbounded", "Golos Text", sans-serif;
  font-size: clamp(38px, 3.7vw, 66px);
  line-height: 1.08;
}

.slide__thesis {
  max-width: 1030px;
  margin: 0;
  color: var(--muted);
  font-size: 27px;
  line-height: 1.32;
}

.body-copy {
  max-width: 960px;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.42;
}

#cover .slide__grid {
  grid-template-columns: minmax(0, 1fr);
  padding: 30px 44px 28px;
}

#cover .slide__copy {
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
}

#cover h1 {
  max-width: none;
  font-family: "Unbounded", "Golos Text", sans-serif;
  font-size: clamp(32px, 2.7vw, 44px);
  line-height: 1.06;
}

#cover .slide__thesis:empty { display: none; }

.announcement {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  min-height: 0;
  padding: 2px 10px 4px 0;
  overflow-y: auto;
  scrollbar-color: var(--grid) transparent;
  scrollbar-width: thin;
}

.announcement__column { min-width: 0; }

.announcement p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14.3px;
  line-height: 1.32;
}

.announcement__visual {
  height: 142px;
  margin: 0 0 11px;
  overflow: hidden;
  border: 1px solid var(--grid);
  border-radius: 4px 28px 4px 4px;
  background: var(--canvas-raised);
}

.announcement__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.announcement__principle {
  margin: 12px 0;
  padding: 14px 16px;
  border-left-width: 5px;
  font-size: 18px;
  line-height: 1.28;
}

.announcement h2 {
  margin: 12px 0 7px;
  color: var(--system);
  font: 700 14px/1.25 "JetBrains Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.announcement ul,
.announcement ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

.announcement li {
  margin-bottom: 5px;
  font-size: 13.8px;
  line-height: 1.32;
}

.announcement__closing { color: var(--muted) !important; font-weight: 650; }
.announcement__contacts { display: grid; gap: 6px; margin-top: 12px; }
.announcement__contacts .deck-link { width: 100%; min-height: 36px; padding: 6px 10px; font-size: 13px; }

.visual {
  position: relative;
  width: min(1020px, 100%);
  height: 320px;
  margin: 8px 0 0;
  overflow: hidden;
  border: 1px solid var(--grid);
  border-radius: 6px 44px 6px 6px;
  background: var(--canvas-raised);
  box-shadow: 0 22px 60px rgba(16, 37, 45, 0.12);
}

.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -90px 90px -85px rgba(16, 37, 45, 0.7);
  pointer-events: none;
}

.visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 1;
  max-width: 75%;
  padding: 8px 10px;
  background: rgba(244, 249, 251, 0.92);
  color: var(--ink);
  font: 600 14px/1.25 "JetBrains Mono", monospace;
}

.bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  padding: 9px 13px;
  border: 1px solid var(--grid);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
}

.bullet-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--system);
  font-weight: 700;
  text-decoration: none;
}

.bullet-link::after { content: "\2197"; color: var(--human); }
.bullet-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bullet-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.slide__evidence {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 23px 0 0 24px;
  border-left: 1px solid var(--grid);
}

.slide__evidence p,
.article-ref,
.source-list span,
.claim-tags span,
.slide__evidence time {
  margin: 0;
  font: 650 14px/1.35 "JetBrains Mono", monospace;
}

.slide__evidence p { color: var(--evidence); }
.slide__evidence time { margin-top: auto; color: var(--muted); }

.claim-tags,
.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.claim-tags span,
.source-list span {
  padding: 6px 8px;
  border: 1px solid var(--grid);
  background: rgba(255,255,255,.72);
  color: var(--muted);
}

.article-ref {
  color: var(--focus);
  letter-spacing: 0.03em;
}

.deck-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 520px);
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--grid);
  border-radius: 4px 18px 4px 4px;
  background: rgba(255, 255, 255, .88);
  color: var(--system);
  font: 700 15px/1.3 "JetBrains Mono", monospace;
  text-decoration: none;
}

.deck-link::after {
  content: "\2197";
  margin-left: 18px;
  color: var(--human);
}

.deck-link:hover { border-color: var(--system); }
.deck-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  max-width: 920px;
  margin-top: 40px;
}

.comparison p {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--grid);
  background: var(--surface);
  font-size: 25px;
}

.comparison span { color: var(--human); font-size: 36px; }

.timeline {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  counter-reset: stages;
  list-style: none;
}

.timeline li {
  flex: 1;
  padding: 11px;
  border-top: 4px solid var(--system);
  background: var(--surface);
  font-size: 16px;
}

.metric {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-right: 14px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--grid);
}

.metric strong {
  color: var(--evidence);
  font: 700 25px/1 "JetBrains Mono", monospace;
}

.metric span { color: var(--muted); font-size: 14px; }

blockquote {
  margin: 22px 0 0;
  padding: 26px 30px;
  border-left: 6px solid var(--human);
  background: var(--surface);
  font-size: 28px;
  line-height: 1.3;
}

.catalog {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 90px 0;
}

.catalog h1 { margin-top: 18px; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 48px;
}

.catalog-card {
  padding: 28px;
  border: 1px solid var(--grid);
  border-radius: 4px 38px 4px 4px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 40px rgba(16, 37, 45, .08);
}

.catalog-card span {
  color: var(--system);
  font: 700 13px/1 "JetBrains Mono", monospace;
}

.catalog-card h2 { margin: 20px 0 12px; font-size: 30px; }
.catalog-card p { color: var(--muted); font-size: 18px; line-height: 1.5; }
.catalog-card a { color: var(--system); font-weight: 700; }
.catalog-empty { margin-top: 44px; color: var(--muted); font-size: 21px; }

@media (max-width: 780px) {
  /* Native single-finger vertical scroll of the document itself.

     Two traps we must NOT fall into (both produced the exact "two fingers on
     the trackpad scroll, one finger / tap-drag does nothing" symptom):

     1. `scroll-snap-type: y` (mandatory or proximity) on html — short
        one-finger swipes stick between slides on Android.
     2. `overflow-x: hidden` (or `overflow-y: auto`) on BOTH html AND body.
        Per CSS, when one axis is not `visible` the other computes to `auto`,
        so `overflow-x: hidden` silently makes `overflow-y: auto` on body too.
        Body then becomes a second scroll context sized to the full content
        (scrollHeight == clientHeight, i.e. nothing to scroll) that swallows
        the one-finger touch-drag, while wheel / two-finger gestures bubble up
        to <html> and appear to work. Result: one finger dead, two fingers OK.

     Fix: let the document scroll natively. Do not touch overflow on html.
     Contain any horizontal spill on body with `overflow-x: clip`, which —
     unlike `hidden` — does NOT create a scroll container and does NOT coerce
     `overflow-y` to `auto`. */
  html {
    height: auto;
  }
  body {
    height: auto;
    overflow-x: clip;
  }

  /* CRITICAL for one-finger scroll: reveal.css ships
     `.reveal{touch-action:pinch-zoom}`. `pinch-zoom` allows only the
     two-finger zoom gesture and BLOCKS single-finger pan — this is exactly
     why two fingers (or a trackpad's two-finger wheel) scrolled but one
     finger did not. In compact mode the whole document lives inside
     `.reveal`, so every one-finger touch lands on it and dies. Override the
     whole stack to allow vertical panning. (Overflow is reset to visible in
     the `.reveal-viewport, .reveal` rule just below.) */
  .reveal,
  .reveal-viewport,
  .reveal .slides,
  .reveal .slides > section {
    touch-action: pan-y;
  }
  .deck-mobile-guide {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 48px;
    margin: 0 0 6px;
    padding: 9px 14px;
    border: 1px solid var(--grid);
    border-radius: 4px 18px 4px 4px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    box-shadow: 0 12px 30px rgba(16, 37, 45, .10);
    font: 700 14px/1.3 "JetBrains Mono", monospace;
  }
  .deck-mobile-guide span:first-child {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--system);
    color: var(--surface);
    font-size: 18px;
  }
  .reveal-viewport,
  .reveal {
    height: auto;
    overflow: visible;
  }
  .reveal .slides {
    position: static;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }
  .reveal .slides > section {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100svh;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    scroll-snap-align: start;
  }
  .slide__grid {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 100svh;
    padding: 38px 24px 28px 34px;
    overflow: visible;
  }
  .slide__evidence {
    min-height: 140px;
    padding: 16px 0 0;
    border-top: 1px solid var(--grid);
    border-left: 0;
  }
  .slide__evidence time { margin-top: 18px; }
  .reveal h1 {
    font-size: clamp(31px, 9vw, 42px);
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  .slide__thesis { font-size: 21px; }
  #cover .slide__grid { padding: 38px 24px 28px 34px; }
  #cover .slide__copy { grid-template-rows: auto; }
  #cover h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .announcement { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0; overflow: visible; }
  .announcement p { font-size: 17px; line-height: 1.45; }
  .announcement__visual { height: min(42svh, 340px); }
  .announcement__principle { font-size: 21px; }
  .announcement h2 { font-size: 15px; }
  .announcement li { margin-bottom: 8px; font-size: 16px; line-height: 1.42; }
  .announcement__contacts .deck-link { min-height: 44px; padding: 9px 13px; font-size: 14px; }
  .body-copy { font-size: 17px; }
  .deck-link { width: 100%; font-size: 14px; overflow-wrap: anywhere; }
  .visual { height: min(48svh, 430px); border-radius: 4px 24px 4px 4px; }
  .timeline { flex-direction: column; }
  .comparison { grid-template-columns: 1fr; }
  .comparison span { transform: rotate(90deg); justify-self: center; }
}

@media print {
  @page { size: 16in 9in; margin: 0; }
  body { background: var(--canvas); }
  .reveal .slides { position: static !important; width: auto !important; }
  .reveal .slides > section {
    display: block !important;
    position: relative !important;
    width: 16in !important;
    height: 9in !important;
    break-after: page;
    page-break-after: always;
    transform: none !important;
  }
}
