/* Віктор Мандзяк — лендинг. Мотив: мірна стрічка («Досить зважуватися. Міряй талію»).
   Жовтий — лише для того, що можна натиснути, і для результату «стало». */

@font-face {
  font-family: 'Oswald';
  src: url('/assets/fonts/Oswald-Cyrillic.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  src: url('/assets/fonts/Oswald-Latin.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/GolosText-Variable.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0e0e0c;
  --plate: #181815;
  --plate-a: rgba(24, 24, 21, 0.9);
  --text: #f4f1e8;
  --text-2: #aaa598;
  --tape: #ffd21f;
  --tape-hi: #ffe160;
  --tape-ink: #15140f;
  --was: #ff6a45;
  --paper: #efece3;
  --hairline: rgba(244, 241, 232, 0.14);
  --control: rgba(244, 241, 232, 0.4);
  --f-title: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --f-body: 'Golos Text', -apple-system, system-ui, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  /* поділки стрічки: дрібна кожні 8px, довга кожні 40px */
  --ticks:
    repeating-linear-gradient(90deg, var(--control) 0 1px, transparent 1px 40px) 0 100% / 100% 100%
      no-repeat,
    repeating-linear-gradient(90deg, var(--hairline) 0 1px, transparent 1px 8px) 0 100% / 100% 45%
      no-repeat;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading {
  overflow: hidden;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--f-title);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
button {
  font: inherit;
  color: inherit;
}
.mono {
  font-family: var(--f-mono);
  font-size: 0.82em;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.dim {
  color: var(--text-2);
}
.center {
  text-align: center;
  margin-inline: auto;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--tape);
  color: var(--tape-ink);
  border-radius: 4px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
:focus-visible {
  outline: 2px solid var(--tape);
  outline-offset: 3px;
}

/* ── Завантажувач ───────────────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  background: var(--ink);
  transition:
    opacity 0.9s var(--ease),
    visibility 0.9s;
}
body:not(.is-loading) .loader {
  opacity: 0;
  visibility: hidden;
}
.loader-word {
  font-family: var(--f-title);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--text-2);
}
.loader-bar {
  width: min(320px, 70vw);
  height: 18px;
  background: var(--ticks);
  border-bottom: 1px solid var(--control);
  position: relative;
}
.loader-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background:
    repeating-linear-gradient(90deg, var(--tape-ink) 0 1px, transparent 1px 40px) 0 100% / 100%
      100% no-repeat,
    repeating-linear-gradient(90deg, rgba(21, 20, 15, 0.55) 0 1px, transparent 1px 8px) 0 100% /
      100% 45% no-repeat,
    var(--tape);
  transition: width 0.3s linear;
}
.loader-meta {
  width: min(320px, 70vw);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.08em;
}

/* ── Шари 3D-світу ──────────────────────────────────────────────────────── */
#world {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  display: block;
}
.no-webgl #world {
  display: none;
}
body.no-webgl,
.no-webgl body {
  background:
    radial-gradient(900px 520px at 78% 12%, rgba(255, 210, 31, 0.1) 0%, transparent 60%), var(--ink);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.labels {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.lbl {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  padding-left: 12px;
  transform: translate3d(-9999px, 0, 0);
  will-change: transform, opacity;
}
.lbl::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 1px;
  background: var(--control);
}
.lbl.is-tape {
  color: var(--tape);
}

/* ── Шапка ──────────────────────────────────────────────────────────────── */
.top {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px var(--gutter);
  transition:
    background 0.3s,
    border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.top.is-solid {
  background: rgba(14, 14, 12, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.logo-mark {
  flex: none;
  width: auto;
  height: 34px;
  fill: var(--text);
}
.loader .logo-mark {
  height: 64px;
}
.brand b {
  display: block;
  font-family: var(--f-title);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.15;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.nav {
  display: flex;
  gap: 26px;
}
.nav a {
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 12px 0;
  transition: color 0.18s;
}
.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

/* ── Права лінійка ──────────────────────────────────────────────────────── */
.rail {
  position: fixed;
  z-index: 15;
  right: calc(var(--gutter) * 0.5);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
}
.rail span {
  display: block;
  width: 12px;
  height: 1px;
  background: var(--control);
  margin-left: auto;
  transition:
    width 0.2s,
    background 0.2s;
}
.rail span.is-on {
  width: 26px;
  height: 2px;
  background: var(--tape);
}

/* ── Розділи ────────────────────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 3;
}
.ch {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--gutter) 96px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow i {
  width: 14px;
  height: 6px;
  background: var(--tape);
}
.eyebrow.center {
  justify-content: center;
}
.ch-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 48px;
}
.ch-head .rule {
  flex: 1;
  height: 12px;
  background: var(--ticks);
  border-bottom: 1px solid var(--hairline);
}
h1 {
  font-size: clamp(46px, 7.2vw, 118px);
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
h2 {
  font-size: clamp(38px, 5vw, 80px);
  line-height: 1.04;
  text-transform: uppercase;
}
h2.huge {
  font-size: clamp(46px, 8vw, 132px);
  text-align: center;
  margin: 24px auto 28px;
}
h3 {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
/* слова на жовтій стрічці — як на обкладинці книжки */
.on-tape {
  display: inline-block;
  padding: 0.04em 0.22em 0.1em;
  margin: 0.08em 0 0 -0.08em;
  background: var(--tape);
  color: var(--tape-ink);
  transform: rotate(-2deg);
  transform-origin: 0 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.tm {
  font-size: 0.26em;
  font-weight: 500;
  vertical-align: top;
  margin-left: 0.2em;
  line-height: 1.9;
}
.tagline {
  font-family: var(--f-title);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.begin-logo {
  width: clamp(84px, 8vw, 120px);
  margin-bottom: 20px;
}
.foot-tm {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-2);
}
.lede {
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--text-2);
  max-width: 46ch;
}
.lede b {
  color: var(--text);
  font-weight: 500;
}
.prose {
  display: grid;
  gap: 18px;
  max-width: 58ch;
  font-size: 16px;
}
.lead {
  display: grid;
  gap: 24px;
  max-width: min(100%, 720px);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 96px);
  align-items: start;
}

/* Герой */
.ch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(34vw, 430px));
  grid-template-rows: 1fr auto;
  column-gap: clamp(24px, 5vw, 88px);
  row-gap: 40px;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 128px;
  padding-right: calc(var(--gutter) + 56px);
}
.hero-copy {
  min-width: 0;
  display: grid;
  gap: 26px;
  align-content: center;
}
.hero-copy h1 {
  font-size: clamp(40px, 6.1vw, 104px);
}
.hero-copy h1 > span {
  display: block;
}
.hero-copy h1 .on-tape {
  display: table;
  white-space: nowrap;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 6px;
}
.ctas.center {
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 4px;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease),
    background 0.18s,
    border-color 0.18s;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-tape {
  background: var(--tape);
  color: var(--tape-ink);
}
.btn-tape:hover {
  transform: translateY(-1px);
  background: var(--tape-hi);
}
.btn-tape:active,
.btn-line:active {
  transform: scale(0.97);
}
.btn-line {
  border: 1px solid var(--control);
}
.btn-line:hover {
  border-color: var(--text);
}
.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}
.hint {
  font-size: 13px;
  color: var(--text-2);
  max-width: 27ch;
  line-height: 1.4;
  padding: 8px 12px;
  background: rgba(14, 14, 12, 0.82);
}
.hero-photo {
  position: relative;
  margin: 0;
  align-self: center;
  transform: rotate(1.6deg);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  outline: 1px solid rgba(244, 241, 232, 0.16);
  outline-offset: -1px;
  background: var(--plate);
}
.hero-photo figcaption {
  position: absolute;
  left: -18px;
  bottom: 26px;
  padding: 8px 14px 9px;
  background: var(--tape);
  color: var(--tape-ink);
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}
.hero-photo figcaption small {
  display: block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.hero-side {
  position: absolute;
  right: calc(var(--gutter) + 22px);
  top: 140px;
  writing-mode: vertical-rl;
  font-family: var(--f-title);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text-2);
}
.hero-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}
.scroll-hint i {
  width: 64px;
  height: 1px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.scroll-hint i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--tape);
  transform: translateX(-100%);
  animation: sweep 2.4s var(--ease) infinite;
}
@keyframes sweep {
  to {
    transform: translateX(100%);
  }
}
.hero-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(20px, 3.5vw, 56px);
}
.hero-index a {
  display: grid;
  gap: 2px;
  text-decoration: none;
}
.hero-index b {
  font-family: var(--f-title);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1;
  color: var(--text);
  transition: color 0.18s;
}
.hero-index span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero-index a:hover b {
  color: var(--tape);
}

/* Пластини: прямі кути, мітки-поділки по кутах */
.plate {
  position: relative;
  margin: 0;
  background: var(--plate-a);
  border: 1px solid var(--hairline);
  padding: 20px 22px;
}
.plate::before,
.plate::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--control);
}
.plate::before {
  left: -5px;
  top: -5px;
  border-width: 0 1px 1px 0;
}
.plate::after {
  right: -5px;
  bottom: -5px;
  border-width: 1px 0 0 1px;
}
.plate figcaption {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
}

/* 01 · Підхід */
.allow {
  margin-top: 10px;
}
.allow ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.allow li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--hairline);
}
.allow li:first-child {
  border-top: 0;
}
.allow .mark {
  width: 18px;
  height: 10px;
  border-left: 2px solid var(--tape);
  border-bottom: 2px solid var(--tape);
  transform: rotate(-45deg) translate(2px, -2px);
}
.allow b {
  font-weight: 500;
  font-size: 16px;
}
.allow a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  text-underline-offset: 3px;
  text-decoration-color: var(--hairline);
  padding: 8px 0;
}
.allow a:hover {
  color: var(--tape);
}
.stats {
  margin: 72px 0 0;
  padding-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  background: rgba(14, 14, 12, 0.86);
}
.stats div {
  padding: 22px 18px 0;
  border-left: 1px solid var(--hairline);
}
.stats div:first-child {
  border-left: 0;
}
.stats dt {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: clamp(44px, 5vw, 80px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats div:first-child dt {
  color: var(--tape);
}
.stats dd {
  margin: 10px 0 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  max-width: 24ch;
}
.rules {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline);
  background: rgba(14, 14, 12, 0.86);
}
.rules li {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 22px 22px 18px;
  min-height: 220px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.2s;
}
.rules li:nth-child(3n) {
  border-right: 0;
}
.rules li:nth-last-child(-n + 3) {
  border-bottom: 0;
}
.rules li:hover {
  background: rgba(30, 30, 26, 0.9);
}
.rules i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--tape);
}
.rules p {
  color: var(--text-2);
  font-size: 15px;
  max-width: 36ch;
}
.rules small {
  color: var(--text-2);
}

/* 02 · Результати */
.results {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
}
.results li {
  grid-column: span 3;
}
.results li.is-top {
  grid-column: span 4;
}
.results li[hidden] {
  display: none;
}
.res {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--plate);
  cursor: zoom-in;
  text-align: left;
  overflow: hidden;
}
.res img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  outline: 1px solid rgba(244, 241, 232, 0.12);
  outline-offset: -1px;
  transition: transform 0.6s var(--ease);
}
.res img.is-contain {
  object-fit: contain;
}
.res:hover img {
  transform: scale(1.03);
}
.res-cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 44px 14px 12px;
  background: linear-gradient(transparent, rgba(8, 8, 7, 0.88) 62%);
  pointer-events: none;
}
.res-cap span {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
}
.res-cap b {
  flex: none;
  padding: 2px 8px 3px;
  background: var(--tape);
  color: var(--tape-ink);
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform: rotate(-3deg);
}
.results .is-top .res-cap b {
  font-size: clamp(26px, 2.6vw, 40px);
}
.results .is-top .res-cap span {
  font-size: 15px;
}
.res-legend {
  display: flex;
  gap: 22px;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.res-legend i {
  display: inline-block;
  width: 14px;
  height: 6px;
  margin-right: 8px;
  background: var(--was);
}
.res-legend span + span i {
  background: var(--tape);
}
.more {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.more button {
  background: transparent;
  cursor: pointer;
}
.note {
  color: var(--text-2);
  font-size: 13px;
  max-width: 62ch;
}

.zoom {
  padding: 0;
  border: 1px solid var(--control);
  background: var(--ink);
  color: var(--text);
  max-width: min(92vw, 880px);
  max-height: 92vh;
  overflow: hidden;
}
.zoom::backdrop {
  background: rgba(6, 6, 5, 0.86);
}
.zoom img {
  width: 100%;
  max-height: calc(92vh - 64px);
  object-fit: contain;
}
.zoom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 6px 0 18px;
  min-height: 56px;
}
.zoom-bar p {
  font-weight: 500;
}
.zoom-bar p b {
  margin-left: 10px;
  font-family: var(--f-title);
  font-size: 20px;
  color: var(--tape);
}
.zoom-bar button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* 03 · Застосунок */
.app-id {
  display: flex;
  align-items: center;
  gap: 14px;
}
.app-id img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  outline: 1px solid rgba(244, 241, 232, 0.16);
  outline-offset: -1px;
}
.app-id b {
  display: block;
  font-family: var(--f-title);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.app-id small {
  display: block;
  font-size: 13px;
  color: var(--text-2);
}
.btn .apple {
  width: 20px;
  height: 20px;
  margin-top: -3px;
  fill: currentColor;
  stroke: none;
}
.rules-4 {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
}
.rules-4 li:nth-child(n) {
  border-right: 1px solid var(--hairline);
  border-bottom: 0;
}
.rules-4 li:last-child {
  border-right: 0;
}
.shots {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 22px);
}
.shots img {
  width: 100%;
  outline: 1px solid rgba(244, 241, 232, 0.14);
  outline-offset: -1px;
  background: var(--plate);
}
.shots li:nth-child(even) {
  margin-top: 40px;
}

/* 04 · Книги */
.books {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 28px);
}
.book {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  text-decoration: none;
  background: var(--plate-a);
  border: 1px solid var(--hairline);
  transition:
    transform 0.3s var(--ease),
    border-color 0.2s;
}
.book:hover {
  transform: translateY(-4px);
  border-color: var(--control);
}
.book-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--paper);
  overflow: hidden;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.book-cover img.is-flat {
  width: auto;
  height: 78%;
  mix-blend-mode: normal;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 14px 28px -8px rgba(0, 0, 0, 0.45);
  transform: rotate(-3deg);
}
.book-body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 18px 18px 16px;
}
.book-body i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--tape);
}
.book-body h3 {
  font-size: 21px;
}
.book-body small {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-2);
}
.book:hover .book-body small span:last-child {
  color: var(--tape);
}

/* 04 · Відео */
.talk {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 96px);
  align-items: center;
}
.talk-copy {
  display: grid;
  gap: 20px;
}
.talk-photo {
  margin: 0;
  position: relative;
}
.talk-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  outline: 1px solid rgba(244, 241, 232, 0.14);
  outline-offset: -1px;
}
.videos {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
.vid {
  display: grid;
  gap: 12px;
  text-decoration: none;
}
.vid-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--plate);
}
.vid-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  outline: 1px solid rgba(244, 241, 232, 0.12);
  outline-offset: -1px;
  transition: transform 0.6s var(--ease);
}
.vid:hover .vid-thumb img {
  transform: scale(1.04);
}
.vid-thumb::after {
  content: '';
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 38'%3E%3Cpath d='M15 11.5v15l12-7.5z' fill='%2315140f'/%3E%3C/svg%3E")
      center / 100% no-repeat,
    var(--tape);
  transition: transform 0.18s var(--ease);
}
.vid:hover .vid-thumb::after {
  transform: scale(1.1);
}
.vid b {
  display: block;
  font-family: var(--f-title);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
  text-wrap: balance;
}
.vid small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-2);
}
.sub-head {
  margin: 64px 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}
.sub-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.sub-head + .videos {
  margin-top: 24px;
}

/* 05 · Про Віктора */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 110px);
  align-items: center;
}
.about-photo {
  margin: 0;
  max-width: 440px;
  transform: rotate(-1.6deg);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 12%;
  outline: 1px solid rgba(244, 241, 232, 0.14);
  outline-offset: -1px;
}
.about-copy {
  display: grid;
  gap: 22px;
}
.socials {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 16px;
  border-top: 1px solid var(--hairline);
  background: rgba(14, 14, 12, 0.86);
}
.socials li:last-child a {
  border-bottom: 0;
}
.socials a {
  display: grid;
  grid-template-columns: 9ch 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  transition:
    color 0.18s,
    padding 0.3s var(--ease);
}
.socials a:hover {
  color: var(--tape);
  padding-left: 10px;
}
.socials b {
  font-family: var(--f-title);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.socials span {
  color: var(--text-2);
  font-size: 14px;
}
.socials i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-2);
}

/* 06 · Почати */
.ch-begin {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.ch-begin .lede {
  margin-bottom: 18px;
  color: var(--text);
}
.ch-begin h2 .on-tape {
  margin-left: 0;
  transform-origin: 50% 50%;
}
.disclaimer {
  margin-top: 56px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2);
  max-width: 60ch;
  background: rgba(14, 14, 12, 0.82);
}

/* Підвал */
.foot {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--hairline);
  background: rgba(14, 14, 12, 0.9);
  font-size: 14px;
}
.foot-brand {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.foot-brand b {
  font-family: var(--f-title);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: flex-end;
}
.foot nav a {
  color: var(--text-2);
  text-decoration: none;
  padding: 10px 0;
}
.foot nav a:hover {
  color: var(--tape);
}

/* Поява під час прокрутки */
/* Щільні сітки з дрібним текстом закривають світ темною завісою,
   щоб яскрава стрічка не йшла під підписами. */
.veil {
  position: relative;
}
.veil::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -28px calc(var(--gutter) * -1);
  background: rgba(14, 14, 12, 0.86);
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ── Адаптив ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav {
    display: none;
  }
  .rules-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .rules-4 li:nth-child(n) {
    border-bottom: 1px solid var(--hairline);
  }
  .rules-4 li:nth-child(2n) {
    border-right: 0;
  }
  .rules-4 li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .results li {
    grid-column: span 4;
  }
  .results li.is-top {
    grid-column: span 6;
  }
  .books,
  .videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rules {
    grid-template-columns: repeat(2, 1fr);
  }
  .rules li:nth-child(n) {
    border-right: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }
  .rules li:nth-child(2n) {
    border-right: 0;
  }
  .rules li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  #world {
    opacity: 0.6;
  }
  .top {
    padding: 10px 16px;
    gap: 12px;
  }
  .brand small {
    display: none;
  }
  .brand b {
    font-size: 12px;
    letter-spacing: 0.08em;
    max-width: 12ch;
  }
  .logo-mark {
    height: 30px;
  }
  .rail,
  .hero-side,
  .hero-index,
  .labels {
    display: none;
  }
  .ch {
    padding: 96px 16px 72px;
  }
  .ch-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 96px 16px 48px;
    row-gap: 36px;
  }
  .hero-photo {
    max-width: 320px;
    margin-left: 18px;
  }
  .ch-head {
    margin-bottom: 32px;
  }
  .split,
  .talk,
  .about {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 56px;
  }
  .stats div:nth-child(3) {
    border-left: 0;
  }
  .stats div:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
    margin-top: 18px;
  }
  .rules {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }
  .rules li:nth-child(n) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }
  .rules li:last-child {
    border-bottom: 0;
  }
  .results {
    margin-top: 36px;
  }
  .results li,
  .results li.is-top {
    grid-column: span 6;
  }
  .results li.is-top:first-child {
    grid-column: 1 / -1;
  }
  .res-cap {
    padding: 36px 10px 10px;
  }
  .res-cap span,
  .results .is-top .res-cap span {
    font-size: 12px;
  }
  .res-cap b {
    font-size: 16px;
  }
  .rules-4 {
    grid-template-columns: 1fr;
  }
  .rules-4 li:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }
  .rules-4 li:last-child {
    border-bottom: 0;
  }
  .shots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 48px -16px 0;
    padding: 0 16px 8px;
    gap: 12px;
  }
  /* прокрутний ряд обрізав би завісу — тут вона не потрібна */
  .shots.veil::before {
    display: none;
  }
  .shots li {
    flex: 0 0 64%;
    scroll-snap-align: center;
  }
  .shots li:nth-child(even) {
    margin-top: 0;
  }
  .books {
    margin-top: 36px;
  }
  .book-body {
    padding: 14px 12px 12px;
  }
  .book-body h3 {
    font-size: 17px;
  }
  .book-body small span:last-child {
    display: none;
  }
  .videos {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .vid {
    grid-template-columns: 42% 1fr;
    align-items: start;
  }
  .vid b {
    font-size: 16px;
  }
  .about-photo {
    max-width: 300px;
  }
  .socials a {
    grid-template-columns: 1fr auto;
  }
  .socials span {
    display: none;
  }
  .foot {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .foot nav {
    justify-content: center;
  }
  .foot-brand {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .ch-hero .lede {
    padding: 10px 12px;
    margin-inline: -12px;
    background: rgba(14, 14, 12, 0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-hint i::after {
    animation: none;
  }
}
