/* ============================================================
   НЕЙРОБУНТ — black / video / Fellix-style (ref: titangatequity)
   ============================================================ */
:root {
  --bg:        #000000;
  --bg-1:      #0a0a0a;
  --surface:   #121110;
  --surface-2: #1a1917;
  --line:      rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --ink:       #ededeb;
  --ink-str:   #ffffff;
  --muted:     rgba(255, 255, 255, 0.5);
  --bg-beige:  #eceae4;   /* світлий фон berg / feats — заливка овальних стиків */

  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* fluid scale — big, tight (titangate-like) */
  --fs-display: clamp(3rem, 0.5rem + 12vw, 13rem);
  --fs-h2:      clamp(2rem, 0.9rem + 4.6vw, 5.6rem);
  --fs-h3:      clamp(1.35rem, 1.05rem + 1.3vw, 2.1rem);
  --fs-lead:    clamp(1.1rem, 0.95rem + 0.7vw, 1.55rem);
  --fs-body:    clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --fs-mono:    clamp(0.72rem, 0.7rem + 0.12vw, 0.8rem);

  --pad: clamp(1.25rem, 4.5vw, 4.5rem);
  --maxw: 1400px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* , *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--ink-str); }
ul { list-style: none; padding: 0; }
::selection { background: #fff; color: #000; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(6rem, 14vh, 13rem); position: relative; }

.mono {
  font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.02em;
  color: var(--muted); text-transform: uppercase;
}
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: var(--fs-mono);
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted);
  margin-bottom: 1.6rem;
}
.lead {
  font-size: var(--fs-lead); line-height: 1.35; color: var(--ink);
  font-weight: 400; letter-spacing: -0.015em; max-width: 34ch;
}
.footnote { color: var(--muted); line-height: 1.5; max-width: 30ch; text-transform: none; letter-spacing: 0.01em; }

/* ============================================================
   nav
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 1rem var(--pad);
  transition: transform 0.6s var(--ease), background 0.4s, backdrop-filter 0.4s;
}
.nav.is-stuck { background: rgba(0,0,0,0.5); backdrop-filter: blur(12px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { justify-self: start; display: flex; align-items: center; }
.nav__logo img { height: clamp(20px, 2.2vw, 28px); width: auto; display: block; }
.nav__brand {
  justify-self: center; display: inline-flex; align-items: center; gap: 0;
  font-weight: 800; font-size: clamp(1rem, 1.5vw, 1.3rem); letter-spacing: 0.02em;
  color: var(--ink-str); white-space: nowrap;
}
.nav__monkey { display: inline-flex; align-items: center; height: 2.1em; margin: 0 0.32em 0 0.1em; transform: translateY(-3px); }
.nav__monkey svg { height: 100%; width: auto; display: block; image-rendering: pixelated; }
.nav__monkey [fill] { fill: var(--ink-str); }            /* біла піксельна мавпа на темному */
.nav .c-button { justify-self: end; }
.nav__monkey .frame-a { animation: pm-a 5s steps(1) infinite; }
.nav__monkey .frame-b { animation: pm-b 5s steps(1) infinite; }
@keyframes pm-a { 0%,6%{opacity:1} 6%,12%{opacity:0} 12%,18%{opacity:1} 18%,24%{opacity:0} 24%,100%{opacity:1} }
@keyframes pm-b { 0%,6%{opacity:0} 6%,12%{opacity:1} 12%,18%{opacity:0} 18%,24%{opacity:1} 24%,100%{opacity:0} }
@media (max-width: 620px) { .nav__logo { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .nav__monkey .frame-a { animation: none; opacity: 1; }
  .nav__monkey .frame-b { animation: none; opacity: 0; }
}

/* ============================================================
   button — c-button (салатова рамка + 2 темні пігулки; стрілка перестрибує)
   used site-wide: nav, hero, CTA card, and the work cards
   ============================================================ */
.c-button {
  display: inline-flex; align-items: stretch; max-width: 100%; vertical-align: middle;
  background: #aef135; padding: 4px; border-radius: 1em;
  font-size: clamp(1.02rem, 1.7vw, 1.45rem); font-weight: 700;
  letter-spacing: -0.01em; will-change: transform; cursor: pointer;
}
.c-button__pill {
  display: flex; align-items: center; min-width: 0;
  background: #111113; color: #ededeb; border-radius: 0.78em;
  padding: 0.7em 1em; line-height: 1.12; overflow-wrap: anywhere; white-space: nowrap;
}
.c-button__arrow {
  flex: none; display: flex; align-items: center; justify-content: center;
  background: #111113; color: #ededeb; border-radius: 0.78em;
  width: 2.8em; overflow: hidden;
  transition: width 0.5s cubic-bezier(.16,.64,.32,1), margin 0.5s cubic-bezier(.16,.64,.32,1);
}
.c-button__arrow svg { width: 1.15em; height: 1.15em; flex: none; }
.c-button__arrow--left  { width: 0;     margin-right: 0; }
.c-button__arrow--right { width: 2.8em; margin-left: 4px; }
/* стрілка перестрибує ліворуч — на наведення самої кнопки або всієї картки */
.c-button:hover .c-button__arrow--left,
.work .card:hover .c-button__arrow--left  { width: 2.8em; margin-right: 4px; }
.c-button:hover .c-button__arrow--right,
.work .card:hover .c-button__arrow--right { width: 0; margin-left: 0; }
/* компактний варіант для навбару */
.c-button--sm { font-size: 0.8rem; border-radius: 0.8em; letter-spacing: 0.02em; }
@media (prefers-reduced-motion: reduce) { .c-button__arrow { transition: none; } }

/* ============================================================
   01 — hero with background video
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.cap .hero { min-height: 680px; } /* dev aid: full-page capture */
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 32%, rgba(0,0,0,0.55) 72%, rgba(0,0,0,0.95) 100%),
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(0,0,0,0.4) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 8vh, 6.5rem); width: 100%; }
.hero__title {
  font-weight: 800; font-size: var(--fs-display); line-height: 0.86;
  letter-spacing: -0.05em; color: var(--ink-str); margin: 0 0 clamp(1.2rem, 3vh, 2.2rem);
}
.hero__monkey { position: absolute; z-index: 3; pointer-events: none; transform-origin: 50% 100%; will-change: transform; }
.hero__monkey svg { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.hero__monkey [fill] { fill: var(--ink-str); }   /* біла мавпа */
.hero__row { display: grid; grid-template-columns: 1fr auto; column-gap: clamp(1.5rem, 4vw, 4rem); }
.hero__lead { grid-column: 1 / -1; grid-row: 1; margin: 0; max-width: none; color: rgba(255,255,255,0.82); }
.hero__actions {
  grid-column: 2; grid-row: 2; align-self: start; justify-self: end;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem;
}
@media (max-width: 720px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__actions { grid-column: 1; grid-row: 2; justify-self: start; }
}
.hero__foot {
  position: relative; z-index: 2; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 1.6rem; padding-top: 1.4rem;
}
.scrollhint { animation: bob 1.9s var(--ease) infinite; }
@keyframes bob { 0%,100% { opacity: 0.45; transform: translateY(0); } 50% { opacity: 1; transform: translateY(3px); } }

/* line reveal */
[data-lines] .line { display: block; overflow: visible; }
[data-lines] .line__in { display: block; will-change: transform; }

/* ── per-letter 3D flip reveal (ref: cappen.com) — exact values ── */
.flip-word { display: inline-block; white-space: nowrap; perspective: 500px; }
.flip-char {
  display: inline-block; will-change: transform;
  backface-visibility: hidden; transform-style: preserve-3d; transform-origin: center center;
  transform:
    translateZ(var(--tz, -1em))
    rotateX(calc(var(--rx, 0) * 1deg))
    scaleY(var(--sy, 1))
    translateZ(calc(var(--tz, -1em) * -1));
}
@media (prefers-reduced-motion: reduce) { .flip-char { --rx: 0; --sy: 1; } }

/* ============================================================
   02 — approach (pinned horizontal — screen by screen)
   ============================================================ */
.approach { position: relative; background: var(--bg); overflow: hidden; padding-block: clamp(5rem, 12vh, 11rem); }

/* checkered grid background — fades in, drifts gently (lighter than content) */
.approach__grid {
  position: absolute; inset: -2px; z-index: 0; pointer-events: none; opacity: 0.54;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 78px 78px; background-position: 0 0;
  -webkit-mask-image: radial-gradient(135% 118% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(135% 118% at 50% 50%, #000 58%, transparent 100%);
}

.approach__pin { position: relative; z-index: 1; }
.approach__track {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: clamp(3rem, 9vh, 6rem);
  padding-inline: var(--pad);
}

/* each panel = one screen */
.screen { position: relative; }
.screen__inner { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* big stat heading */
.approach__title {
  font-weight: 800; line-height: 0.92; letter-spacing: -0.045em; color: var(--ink-str);
  font-size: clamp(2.4rem, 0.9rem + 6vw, 7rem);
}

/* mission */
.screen--mission .eyebrow { margin-bottom: clamp(1.4rem, 3vh, 2.4rem); }
.approach__mission {
  font-weight: 600; line-height: 1.06; letter-spacing: -0.03em; color: var(--ink-str);
  font-size: clamp(2rem, 0.8rem + 4.4vw, 5.2rem); max-width: 22ch;
}
.phil__media {
  position: relative; flex: 0 0 auto; width: clamp(138px, 13vw, 192px); aspect-ratio: 3/4;   /* ліворуч від тексту, ще на 1.3× менше */
  border-radius: 6px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.phil__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: none;   /* жорсткий миттєвий перехід (без кросфейду) */
}
.phil__media img.is-active { opacity: 1; }

/* line-mask + blue gradient sweep on big text (titangate-style) */
.line { display: block; overflow: visible; padding-bottom: 0.08em; }
.sweep {
  display: inline-block;
  background-image: linear-gradient(100deg,
    var(--ink-str) 0%, var(--ink-str) 42%,
    #57a6ff 49%, #d2e6ff 52%, #57a6ff 55%,
    var(--ink-str) 62%, var(--ink-str) 100%);
  background-size: 230% 100%; background-position: 160% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* client marquee — narrowed to the first heading line (width set by JS) */
.marquee {
  margin-top: clamp(1.8rem, 4vh, 3rem); overflow: hidden; max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__row { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  font-weight: 600; letter-spacing: -0.01em; color: var(--ink-str); white-space: nowrap;
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.4rem);
}
.marquee__item--muted { color: var(--muted); }
.marquee__sep { color: #57a6ff; font-style: normal; margin: 0 0.8em; font-size: 0.7em; }

/* stages — huge ghost number behind, big animated title, fill-on-scroll body */
.screen--stage .screen__inner { max-width: 1240px; }
.stage__ghost {
  position: absolute; z-index: 0; left: -0.7em; top: 40%; transform: translateY(-50%); /* JS keeps this via yPercent + adds xPercent */
  font-weight: 800; line-height: 0.78; letter-spacing: -0.05em; white-space: nowrap;
  font-size: clamp(15rem, 7rem + 30vw, 40rem);
  color: transparent; -webkit-text-stroke: 1.1px rgba(255,255,255,0.18); text-stroke: 1.1px rgba(255,255,255,0.18);
  pointer-events: none; user-select: none; will-change: transform;
}
.stage__title {
  position: relative; z-index: 1;
  font-weight: 700; line-height: 0.96; letter-spacing: -0.03em; color: var(--ink-str);
  font-size: clamp(2.8rem, 1rem + 5.6vw, 6.4rem); margin-bottom: clamp(1.2rem, 2.8vh, 2.2rem);
}
.stage__body {
  position: relative; z-index: 1; max-width: 30ch;
  font-size: clamp(1.4rem, 0.9rem + 1.5vw, 2.4rem); line-height: 1.32; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.82); /* base; JS fills word-by-word to white on scroll */
}
.stage__body .word { color: inherit; }
.stage__body--pre { white-space: pre-line; }   /* зберігає ручний перенос рядка (перед «і робота…») */
/* екран «філософія» — заголовок розміру «Моя мета» + сірий опис, що заповнюється */
.phil__title { font-size: clamp(1.4rem, 0.55rem + 2.9vw, 3.3rem); line-height: 1.06; margin-bottom: clamp(1rem, 2.6vh, 1.9rem); }
.phil__desc  { max-width: 34ch; font-size: clamp(1.15rem, 0.82rem + 1.05vw, 1.95rem); line-height: 1.4; }
.stage__tag {
  position: relative; z-index: 1; display: inline-block; margin-top: clamp(1.6rem, 3.4vh, 2.6rem);
  color: rgba(255,255,255,0.28);
}
.stage__tag .tag-ch { display: inline-block; will-change: color; }

/* hand-drawn journey path (shown + sized in horizontal mode) */
.approach__path { display: none; }

/* thin progress fill along the bottom of the section */
.approach__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-soft); z-index: 3; }
.approach__progress span {
  display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, #57a6ff, #bcd9ff);
}

/* === horizontal mode (enabled by JS) === */
.approach.is-h { padding: 0; }
.approach.is-h .approach__pin { height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.approach.is-h .approach__track {
  flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 0;
  height: 100%; padding-inline: 0; will-change: transform;
}
.approach.is-h .screen { flex: 0 0 auto; width: 100vw; height: 100%; display: flex; align-items: center; }
/* nudge content left (hug the grid edge) and slightly up */
.approach.is-h .screen__inner { margin-inline: 0; padding-bottom: clamp(3rem, 9vh, 8rem); }
/* …but the stat heading aligns to the same centred grid as the top of the page */
.approach.is-h .screen--stat .screen__inner { margin-inline: auto; }
/* mission + philosophy: текст по центру екрана */
/* mission: текст по центру екрана */
.approach.is-h .screen--mission .screen__inner { margin-inline: auto; width: fit-content; max-width: 90vw; }
/* philosophy: текст ліворуч + фото праворуч (по верхньому краю тексту), блок по центру */
.approach.is-h .screen--philosophy .screen__inner {
  margin-inline: auto; width: fit-content; max-width: 92vw;
  display: flex; align-items: flex-start; gap: clamp(1.4rem, 3vw, 3.5rem);
}
.approach.is-h .phil__text { flex: 0 1 auto; min-width: 0; }
/* стадії (01 Початок…) — зсунути праворуч, щоб було більше місця між екранами */
.approach.is-h .screen--stage .screen__inner { margin-left: clamp(3rem, 16vw, 16rem); }
.approach.is-h .approach__path {
  display: block; position: absolute; left: 0; top: 30%; height: 48vh; z-index: 0; pointer-events: none;
}
.approach__rocket-layer { display: none; }
.approach.is-h .approach__rocket-layer {
  display: block; position: absolute; left: 0; top: 30%; height: 48vh; z-index: 4; pointer-events: none;  /* поверх тексту (screen__inner z-index:1) */
}
.approach__rocket {
  font-size: 44px; fill: #fff; opacity: 0; pointer-events: none;   /* fill потрібен: svg-шар має fill:none, інакше емодзі не малюється */
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}

/* === mobile (вертикальний стек, < 800px — той самий поріг, що й useH у JS) === */
@media (max-width: 799px) {
  /* mission: desktop-переноси (.line) форсують рвані рядки → даємо тексту текти природно + дрібніший кегль */
  .approach__mission { font-size: clamp(1.7rem, 1rem + 2.6vw, 2.4rem); max-width: 20ch; }
  .screen--mission .line { display: inline; }

  /* ghost-цифри стадій: менші й заведені за заголовок (а не обрізані off-screen зліва) */
  .stage__ghost {
    font-size: clamp(7rem, 30vw, 11rem);
    top: -0.12em; left: -0.06em; transform: none;
    -webkit-text-stroke-width: 1px; text-stroke-width: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sweep { color: var(--ink-str); -webkit-text-fill-color: currentColor; }
  .approach__progress span { transform: scaleX(1); }
}

/* ============================================================
   03 — monkey: 3D model centred over a viewfinder grid + corner brackets
   ============================================================ */
.monkey { position: relative; min-height: 100svh; overflow: hidden; background: var(--bg); }

/* line grid → rectangles (1px gaps over a line-coloured backing) */
.monkey__cells {
  position: absolute; inset: 0; z-index: 1;
  display: grid; gap: 1px; background: rgba(255,255,255,0.09);
  grid-template-columns: 1fr 1fr 1fr;   /* all rectangles equal */
  grid-template-rows: 1fr 1fr 1fr;
}
.monkey__cell {
  position: relative; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 2.4vw, 2.6rem);
}
.monkey__text {
  color: rgba(255,255,255,0.78); letter-spacing: -0.015em; line-height: 1.4;
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.4rem); max-width: 30ch;
}
.monkey__text em { color: #8898e7; font-style: normal; }

/* "БУНД!" — physics letters that fall + pile inside the centre cell */
.monkey__cell[data-cell-default] { overflow: hidden; padding: 0; }
.monkey__word { position: absolute; inset: 0; font-size: min(13vh, 9.5vw); }
.monkey__char {
  position: absolute; top: 0; left: 0;
  font-weight: 800; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase;
  color: rgba(255,255,255,0.3); white-space: pre; user-select: none; will-change: transform;
}

/* monkey sits ABOVE the lines — bigger than the centre cell and raised, so it
   rises above the rectangle and overlaps the grid lines around it */
.monkey__viewer {
  position: absolute; z-index: 2; left: 50%; top: 45%; transform: translate(-50%, -50%);
  width: min(70vh, 55vw, 720px); aspect-ratio: 1; pointer-events: none;
}
.monkey__viewer canvas { display: block; }

/* white corner brackets that snap to the hovered cell (JS sets box, default = centre) */
.monkey__corners { position: absolute; z-index: 3; pointer-events: none; opacity: 0; }
.monkey__corners i {
  position: absolute; width: clamp(13px, 1.3vw, 22px); height: clamp(13px, 1.3vw, 22px);
  border: 2px solid #fff;
}
.monkey__corners i:nth-child(1) { top: 0;    left: 0;  border-right: 0; border-bottom: 0; }
.monkey__corners i:nth-child(2) { top: 0;    right: 0; border-left: 0;  border-bottom: 0; }
.monkey__corners i:nth-child(3) { bottom: 0; left: 0;  border-right: 0; border-top: 0; }
.monkey__corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0;  border-top: 0; }

@media (max-width: 860px) {
  .monkey__cells { grid-template-columns: 1fr; grid-template-rows: auto 56vh auto auto; }
  /* stack: top text, monkey, left text, right text */
  .monkey__cell:nth-child(1), .monkey__cell:nth-child(3),
  .monkey__cell:nth-child(7), .monkey__cell:nth-child(8), .monkey__cell:nth-child(9) { display: none; }
  .monkey__viewer { width: min(72vw, 360px); }
}

/* ============================================================
   problem / iceberg / features
   ============================================================ */
.dialog { max-width: 62ch; display: flex; flex-direction: column; gap: 1.7rem; margin-bottom: clamp(5rem, 12vh, 9rem); }
.dialog__line {
  font-weight: 500; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink-str);
  padding-left: 1.6rem; border-left: 1px solid var(--line);
}
.dialog__line--alt { color: var(--muted); margin-left: clamp(1rem, 6vw, 5rem); }

.iceberg { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: end; margin-bottom: clamp(4rem, 9vh, 7rem); }
.iceberg__title { font-size: var(--fs-h2); }
.iceberg__aside .lead { max-width: 32ch; color: var(--muted); }
@media (max-width: 860px) { .iceberg { grid-template-columns: 1fr; align-items: start; } }

/* features screen — same light background as the iceberg section */
.feats { background: #eceae4; }

/* bento grid: long-text cards are TALL (icon + multi-line text always fits) */
.features {
  display: grid; gap: clamp(10px, 0.8vw, 16px);
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(128px, 15vh, 180px);
  grid-template-areas:
    "a a b c"
    "a a b c"
    "d e f g"
    "h e f g";
  margin-bottom: clamp(10px, 0.8vw, 16px);     /* same gap as between the cards */
}
.features .feature:nth-child(1) { grid-area: d; }   /* 10 базових блоків — short, 1×1 */
.features .feature:nth-child(2) { grid-area: b; }   /* 40+ уроків — 1×2 */
.features .feature:nth-child(3) { grid-area: c; }   /* Розбір кейсів — long, 1×2 */
.features .feature:nth-child(4) { grid-area: a; }   /* Instagram — longest, 2×2 */
.features .feature:nth-child(5) { grid-area: e; }   /* Telegram — 1×2 */
.features .feature:nth-child(6) { grid-area: f; }   /* щотижня — 1×2 */
.features .feature:nth-child(7) { grid-area: g; }   /* Платформа — long, 1×2 */
.features .feature:nth-child(8) { grid-area: h; }   /* Цікаві ДЗ — short, 1×1 */

.feature {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(0.6rem, 1.6vh, 1.2rem);
  padding: clamp(1.1rem, 1.6vw, 1.9rem);
  border: 1px solid var(--line-soft); border-radius: 20px; background: var(--surface);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
/* faint static grid drawn across each card (cell size matches the pixels) */
.feature::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
/* flickering squares — only along the bottom (canvas drawn by JS) */
.feature__pixels { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.feature:hover { border-color: rgba(255,255,255,0.22); transform: translateY(-4px); }
.feature__icon { width: clamp(28px, 2.5vw, 40px); height: clamp(28px, 2.5vw, 40px); color: #fff; flex: none;
  animation: feat-float 4.6s var(--ease) infinite; will-change: transform; }
.features .feature:nth-child(2n) .feature__icon { animation-duration: 5.4s; animation-delay: -1.6s; }
.features .feature:nth-child(3n) .feature__icon { animation-delay: -0.9s; }
.feature__icon--spin { animation: feat-spin 7s linear infinite; }
.feature__title {
  font-weight: 600; color: var(--ink); line-height: 1.22; letter-spacing: -0.01em; max-width: 24ch;
  font-size: clamp(1.05rem, 0.85rem + 0.6vw, 1.45rem);
}
/* the big 2×2 card (longest text) reads a touch larger */
.features .feature:nth-child(4) .feature__title { font-size: clamp(1.3rem, 1rem + 1.1vw, 2.1rem); max-width: 20ch; }
.features .feature:nth-child(4) .feature__icon { width: clamp(44px, 4vw, 64px); height: clamp(44px, 4vw, 64px); }

/* the CTA is also a card (text + button inside), full width */
.feature--cta {
  --accent: #6db0ff;
  flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(1.8rem, 3.2vw, 3.2rem); border-radius: 26px;
}
.feature--cta .closing { margin: 0; font-size: clamp(1.5rem, 1rem + 1.7vw, 2.7rem); line-height: 1.12; max-width: 20ch; }
.feature--cta .btn { flex: none; }

@keyframes feat-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(-4deg); } }
@keyframes feat-spin  { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { .feature__icon { animation: none; } }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; grid-template-areas: none; grid-auto-rows: minmax(120px, auto); }
  .features .feature { grid-area: auto !important; }
  .feature--cta { flex-direction: column; align-items: flex-start; }
}

.problem__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.8rem; margin-top: clamp(3.5rem, 8vh, 6rem); }
.closing { font-weight: 600; font-size: var(--fs-h3); letter-spacing: -0.02em; max-width: 22ch; color: var(--ink-str); }

/* ============================================================
   ВЕРШИНА АЙСБЕРГУ — light interlude (ref: original readymag)
   ============================================================ */
.berg {
  position: relative; overflow: hidden;
  background: #eceae4; color: #14120f;
  padding: clamp(3rem, 7vh, 6rem) 0 clamp(4rem, 9vh, 8rem);
}
.berg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55;
  background-image:
    linear-gradient(rgba(20,18,15,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,18,15,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(130% 80% at 50% 5%, #000 25%, transparent 75%);
          mask-image: radial-gradient(130% 80% at 50% 5%, #000 25%, transparent 75%);
}
.berg__head { position: relative; z-index: 1; text-align: center; padding-top: clamp(2rem, 7vw, 8rem); will-change: transform; }
.berg__eyebrow {
  font-family: var(--sans); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.005em; line-height: 1.1; color: #14120f;
  font-size: clamp(0.95rem, 0.4rem + 1.5vw, 1.9rem);
  max-width: 34ch; text-wrap: balance; margin: 0 auto;
}
.berg__eyebrow .muted { color: rgba(20,18,15,0.3); }
.berg__title {
  font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; text-transform: uppercase;
  font-size: clamp(2.1rem, 0.5rem + 6.6vw, 7rem); color: #14120f; white-space: nowrap;
  margin-top: clamp(0.5rem, 1.2vw, 1.1rem);
}

/* full-bleed iceberg composition */
.berg__viz { position: relative; z-index: 2; width: 100%; margin-top: clamp(-3rem, -4.5vw, -1rem); }
.berg__sea { position: relative; z-index: 2; }
.berg__img { display: block; width: 100%; height: auto; pointer-events: none; }

/* speech bubbles (parallax via data-speed) */
.bubble {
  position: absolute; z-index: 4;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  font-weight: 600; letter-spacing: -0.01em; line-height: 1.04;
  font-size: clamp(1.5rem, 0.7rem + 1.9vw, 2.55rem);
  will-change: transform;
}
/* each wrapped line gets its own white strip fitted to the words */
.bubble__line {
  width: max-content; max-width: 22rem;
  padding: 0.16em 0.42em; background: #fff; color: #14120f;
  box-shadow: 0 12px 30px rgba(20,45,90,0.15);
  will-change: clip-path;
}
/* strips must butt together with zero gap — overlap a hair to kill sub-pixel seams */
.bubble__line + .bubble__line { margin-top: -1px; }
.bubble--1 { top: 44%; left: 22%; }
.bubble--2 { top: 72%; left: 38%; }
.bubble--3 { top: 63%; left: 59%; }

/* lower group: big character IN FRONT, axe hooks the berg tip; carries parallax */
.berg__lower {
  position: relative; z-index: 5; width: 100%; margin-top: clamp(-15rem, -19vw, -7rem);
}
.berg__char {
  position: relative; z-index: 2; width: 21vw; margin: 0 auto;
  aspect-ratio: 820 / 1469; cursor: pointer;
}
.berg__char img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: bottom center;
  opacity: 0; /* instant switch — no transition */
  filter: drop-shadow(0 26px 34px rgba(20,30,60,0.22));
}
.berg__char img.is-active { opacity: 1; }

/* subtle gray notes around the character */
.berg__note {
  position: absolute; z-index: 1; color: rgba(20,18,15,0.42); font-weight: 500; line-height: 1.28;
  font-size: clamp(1.1rem, 0.55rem + 1.15vw, 1.95rem);
}
.berg__note--desc { top: 20%; left: 57%; max-width: 12rem; }
.berg__note--hint {
  top: 48%; left: 34%;
  display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap;
}

/* small hand-drawn arrow for the "Клікай" hint — loops as if being sketched */
.hint-arrow { width: 1.55em; height: 0.78em; flex: none; overflow: visible; }
.hint-arrow path {
  stroke-dasharray: 74; stroke-dashoffset: 74;
  animation: hint-draw 2.4s ease-in-out infinite;
}
@keyframes hint-draw {
  0%        { stroke-dashoffset: 74; opacity: 0; }
  10%       { opacity: 1; }
  52%       { stroke-dashoffset: 0; opacity: 1; }
  82%       { stroke-dashoffset: 0; opacity: 1; }
  96%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hint-arrow path { animation: none; stroke-dashoffset: 0; }
}

@media (max-width: 760px) {
  .berg__lower { margin-top: -8vw; }
  .berg__char { width: 52vw; }
  .bubble__line { max-width: 11rem; padding: 0.14em 0.38em; }
  .bubble--1 { top: 42%; left: 3%; } .bubble--2 { top: 71%; left: 26%; } .bubble--3 { top: 62%; left: 52%; }
  .berg__note--desc { top: 18%; left: 60%; } .berg__note--hint { top: 46%; left: 22%; }
}

/* ============================================================
   reveal helpers (JS-driven)
   ============================================================ */
[data-fade] { opacity: 0; transform: translateY(26px); }
.is-ready [data-fade].is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  [data-fade] { opacity: 1 !important; transform: none !important; }
  [data-lines] .line__in { transform: none !important; }
  .scrollhint { animation: none; }
}

/* ============================================================
   ПРИКЛАД AI РОБІТ — selected work (cappen-style cards + fluid lens)
   all selectors scoped under .work so generic names (.grid/.card/.word…)
   never collide with the rest of the site
   ============================================================ */
.work {
  position: relative; background: #0a0a0b; color: var(--ink-str);
  font-family: "Roboto Flex", var(--sans);
}
.work .wrap {
  max-width: 1440px; margin: 0 auto;
  padding: clamp(80px,12vh,160px) clamp(20px,5vw,80px) clamp(120px,18vh,220px);
  position: relative; z-index: 2;
}

/* ── шапка ── */
.work .intro { margin-bottom: clamp(60px,10vh,140px); }
.work .intro__title {
  font-size: clamp(1.9rem,5vw,4.4rem); line-height: 1.05;
  font-variation-settings: "wght" 600; font-weight: 600; letter-spacing: -0.015em;
  will-change: transform;
}
.work .intro__title .t-line { display: block; }
.work .intro__title .word { display: inline-block; white-space: nowrap; perspective: 500px; }
.work .intro__title .char {
  display: inline-block; will-change: transform;
  backface-visibility: hidden; transform-style: preserve-3d; transform-origin: center center;
  transform:
    translateZ(var(--tz,-1em))
    rotateX(calc(var(--rx,0) * 1deg))
    scaleY(var(--sy,1))
    translateZ(calc(var(--tz,-1em) * -1));
}

/* ── сітка карток ── */
.work .grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px,7vw,130px) clamp(24px,4vw,90px);
}
.work .card { cursor: pointer; }
.work .card:nth-child(even) { margin-top: clamp(40px,11vw,170px); }

.work .card__media {
  position: relative; display: block; width: 100%; will-change: transform;
  border-radius: 6px; overflow: hidden; aspect-ratio: 4/5; cursor: pointer;
  box-shadow:
    0 1px 1px rgba(0,0,0,.10), 0 2px 2px rgba(0,0,0,.10),
    0 4px 8px rgba(0,0,0,.12), 0 10px 18px rgba(0,0,0,.14),
    0 22px 40px rgba(0,0,0,.30);
}
.work .card[data-ar="3-4"] .card__media { aspect-ratio: 3/4; }
.work .card[data-ar="1-1"] .card__media { aspect-ratio: 1/1; }

.work .card__inner {
  position: absolute; left: 0; top: -10%; width: 100%; height: 120%;
  z-index: 0; will-change: transform;
}
.work .card__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.04); will-change: transform;
}

/* WebGL-полотно рідкого спотворення (переноситься у наведену картку) */
.work .gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: block; }

.work .card__overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.40) 0%, transparent 30%, transparent 60%, rgba(0,0,0,.55) 100%);
  opacity: .65; transition: opacity .6s ease;
}
.work .card__media:hover .card__overlay { opacity: 1; }

/* «Детальніше» — слідує за курсором */
.work .card__cta { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; display: flex; gap: 6px; }
.work .card__cta b {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  background: var(--ink-str); color: #0a0a0b; padding: 13px 17px; border-radius: 5px; white-space: nowrap;
}
.work .card__cta i { display: grid; place-items: center; width: 44px; background: var(--ink-str); color: #0a0a0b; border-radius: 5px; }
.work .card__cta svg { width: 16px; height: 16px; }

/* шторка деталей — рівний темний бекдроп, контент по центру, lime CTA */
.work .card__detail {
  position: absolute; inset: 0; z-index: 5; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 50%, rgba(5,5,8,0.84), rgba(5,5,8,0.93) 100%);
  backdrop-filter: blur(9px) saturate(0.82);
  -webkit-backdrop-filter: blur(9px) saturate(0.82);
  clip-path: inset(100% 0 0 0);
  display: flex; align-items: safe center; justify-content: center;
  text-align: center; padding: clamp(18px,3.5vw,40px);
}
.work .card__detail-inner { position: relative; width: 100%; }
.work .card__detail-title {
  font-size: clamp(1.5rem,2.7vw,2.35rem); line-height: 1.05;
  font-weight: 700; letter-spacing: -0.015em;
  text-transform: uppercase; color: var(--ink-str); margin-bottom: clamp(12px,1.6vw,16px);
}
.work .card__detail-desc {
  font-size: clamp(.8rem,1vw,.96rem); line-height: 1.5; color: rgba(237,237,235,.78);
  max-width: 42ch; margin: 0 auto;
}

/* гіф-картка («AI реклама»): контейнер 3:4, відео показуємо повністю (contain), без зуму */
.work .card.card--gif .card__media { aspect-ratio: 3/4 !important; background: #060608; }
.work .card.card--gif .card__inner { top: 0; height: 100%; }
.work .card.card--gif .card__img  { object-fit: contain; transform: none; }

.work .card__body { padding-top: 22px; position: relative; will-change: transform; }

@media (max-width: 760px) {
  .work .grid { grid-template-columns: 1fr; gap: clamp(48px,11vw,80px); }
  .work .card:nth-child(even) { margin-top: 0; }
  .work .card__media { aspect-ratio: 4/5 !important; }
  .work .intro__title { font-size: clamp(1.6rem,8vw,2.6rem); }
}
@media (prefers-reduced-motion: reduce) {
  .work .card__detail { clip-path: inset(100% 0 0 0); }
}

/* ============================================================
   овальні стики чорна↔світла (морфінг дуги по скролу, чистий GSAP)
   ============================================================ */
.seam {
  position: absolute; left: 0; width: 100%; height: 220px;  /* height фіксована — preserveAspectRatio="none" */
  display: block; pointer-events: none; z-index: 4;
}
.seam path { fill: var(--bg-beige); }
.seam--down { bottom: -1px; }   /* дно чорної monkey-секції */
.seam--up   { top: -1px; }      /* верх чорної work-секції */

/* ============================================================
   3 рухомі лінії (titangate-style) + текст
   ============================================================ */
.tg-lines {
  --tg-bg-size: 200%;
  background: #0a0a0b;            /* як фон секції work вище */
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(4rem, 9vh, 7rem);
  padding: clamp(6rem, 14vh, 11rem) 5vw;
}
.tg-lines__rows {
  display: flex; flex-wrap: wrap;
  align-items: flex-start; justify-content: center;
  gap: clamp(3rem, 12vw, 12rem);
}
.tg-lines__row { flex: 0 1 auto; display: flex; align-items: stretch; gap: 1.25rem; height: clamp(380px, 52vh, 500px); }
.tg-lines__col { position: relative; display: flex; flex-direction: column; align-items: flex-start; height: 100%; }
.tg-lines__btm { position: absolute; left: 0; top: 56%; margin: 0; }   /* всі нижні елементи — на спільному верхньому краю */
.tg-lines__text {
  color: #fff; margin: 0; max-width: 20ch; letter-spacing: -0.01em;
  font: 400 clamp(1.05rem, 1.4vw, 1.4rem)/1.4 var(--sans);
}
.tg-lines__guide-outer { position: relative; flex: none; width: 1px; height: 100%; }
.tg-lines__guide-outer::after {        /* нижня частина лінії згасає в чорне */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0 70%, #0a0a0b);
}
.tg-lines__guide {
  display: block; width: 1px; height: 100%;
  color: #5a5a5a;                       /* колір пунктиру */
  background: linear-gradient(to bottom,
      rgba(255,255,255,0) 20%,
      rgba(255,255,255,0.82),
      rgba(255,255,255,0)) 0 0 / 100% var(--tg-bg-size);
  animation: tg-moving-stroke 1.1s linear infinite,
             tg-move-bg       2.25s linear infinite;
}
@keyframes tg-moving-stroke { 0% { stroke-dashoffset: 0; } to { stroke-dashoffset: 4px; } }
@keyframes tg-move-bg       { to { background-position: 0 var(--tg-bg-size); } }

@media (max-width: 768px) {
  .tg-lines { padding: 5rem 8vw; gap: 3.5rem; }
  .tg-lines__rows { flex-direction: column; gap: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tg-lines__guide { animation: none; }
}

/* ============================================================
   ПРОГРАМА НАВЧАННЯ — акордеон-програма
   ============================================================ */
.program { background: #0a0a0b; padding: clamp(5rem, 12vh, 10rem) 0; position: relative; }
.program__head { margin-bottom: clamp(2.5rem, 6vh, 5rem); }
.program__eyebrow {
  display: block; font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem;
}
.program__title {
  font-size: clamp(2.4rem, 7vw, 6rem); line-height: 0.95; font-weight: 800;
  letter-spacing: -0.03em; text-transform: uppercase; color: var(--ink-str); margin: 0;
}

.prog-list { border-top: 1px solid var(--line); }
.prog-item {
  position: relative; background: transparent;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}
.prog-fill {                   /* біла заливка — плавна GPU-анімація (scaleY), згори вниз / назад */
  position: absolute; inset: 0; z-index: 0; background: #fff;
  transform: scaleY(0); transform-origin: top;
}
.prog-head, .prog-panel { position: relative; z-index: 1; }
.prog-head {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: clamp(1.1rem, 3vw, 2.5rem); width: 100%; text-align: left;
  padding: clamp(1.4rem, 2.6vw, 2.2rem) clamp(1.1rem, 2vw, 1.9rem);
  background: none; border: 0; color: inherit; font-family: inherit; cursor: pointer;
}
.prog-num { font-family: var(--sans); font-size: clamp(0.9rem, 1.2vw, 1.15rem); color: var(--muted); align-self: start; margin-top: 0.5em; }
.prog-titles { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.prog-title { font-size: clamp(1.5rem, 3.2vw, 2.9rem); font-weight: 600; letter-spacing: -0.025em; color: var(--ink-str); }
.prog-teaser { font-size: clamp(1rem, 1.4vw, 1.3rem); color: var(--muted); }
.prog-count {
  font-family: var(--mono); font-size: clamp(0.8rem, 1vw, 0.95rem); white-space: nowrap; color: #8898e7;
  border: 1px solid rgba(136, 152, 231, 0.4); border-radius: 100px; padding: 0.5rem 1rem;
}
.prog-icon { position: relative; width: 34px; height: 34px; flex: none; color: var(--ink-str); }
.prog-icon svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.prog-icon [fill] { fill: currentColor; }
.prog-icon .frame { transition: opacity 70ms steps(1); }          /* різкий «удар» молотком */
.prog-icon .frame-b { opacity: 0; }                                /* закрито → рука вгорі */
.prog-item.is-open .prog-icon .frame-a { opacity: 0; }
.prog-item.is-open .prog-icon .frame-b { opacity: 1; }             /* відкрито → рука б'є вниз і застигає */

.prog-panel { height: 0; overflow: hidden; }
.prog-points {
  list-style: none; margin: 0; max-width: 64ch;
  padding: 0 clamp(1.1rem, 2vw, 1.9rem) clamp(1.4rem, 2.6vw, 2.2rem);
}
.prog-points li {
  position: relative; padding-left: 1.7rem; margin: 0.7rem 0;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem); color: var(--ink); line-height: 1.5;
}
.prog-points li::before { content: "—"; position: absolute; left: 0; color: #8898e7; }

/* відкритий модуль — біла картка, чорний текст (миттєво, без зникання) */
.prog-item.is-open { border-color: transparent; }
.prog-item.is-open .prog-title { color: #000; }
.prog-item.is-open .prog-num { color: rgba(0, 0, 0, 0.5) !important; }
.prog-item.is-open .prog-teaser,
.prog-item.is-open .prog-teaser .flick-word { color: rgba(0, 0, 0, 0.6) !important; }
.prog-item.is-open .prog-points li { color: #111; }
.prog-item.is-open .prog-points li::before { color: #57a6ff; }
.prog-item.is-open .prog-icon { color: #000; }   /* на білій картці — чорна мавпа */
.prog-item.is-open .prog-count { color: #000; border-color: rgba(0, 0, 0, 0.3); }

@media (max-width: 640px) {
  .prog-head { grid-template-columns: auto 1fr auto; gap: 1rem; }
  .prog-icon { display: none; }            /* тап по всьому рядку */
  .prog-count { padding: 0.35rem 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .prog-item { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   АВТОР ПРОГРАМИ — info card + фото зі зміною стилю
   ============================================================ */
.author { background: #0a0a0b; padding: clamp(2rem, 6vh, 5rem) 0 clamp(5rem, 12vh, 9rem); }
.author__grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(0.9rem, 1.4vw, 1.4rem);
  align-items: stretch;
}
.author__card { border-radius: 28px; min-width: 0; }   /* не дати маркі роздути колонку */

/* ── ліва картка: інформація ── */
.author__info {
  background: #ebeae8; color: #111; display: flex; flex-direction: column;
  justify-content: space-between;          /* рівні проміжки: верх ↔ клієнти ↔ біо */
  padding: clamp(1.8rem, 3.4vw, 3.6rem);
}
.author__top { display: flex; flex-direction: column; }
.author__eyebrow { font-size: clamp(0.95rem, 1.3vw, 1.2rem); color: rgba(0, 0, 0, 0.45); }
.author__name {
  font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 0.98; font-weight: 800;
  letter-spacing: -0.03em; color: #000; margin: 0.4rem 0 clamp(1.6rem, 3.2vh, 2.8rem);
}
.author__stats { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3.2rem); }
.author__stat { display: flex; flex-direction: column; line-height: 1.15; }
.author__stat b { font-size: clamp(1.1rem, 1.65vw, 1.55rem); font-weight: 600; letter-spacing: -0.01em; color: #000; }
.author__stat span { font-size: clamp(1.1rem, 1.65vw, 1.55rem); font-weight: 400; color: #000; }

/* рухомий маркі клієнтів (як на екрані 2) */
.author__clients {
  overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.author__marquee { display: inline-flex; width: max-content; animation: author-marq 28s linear infinite; }
.author__marquee .grp { display: inline-flex; align-items: center; }
.author__marquee .it { font-size: clamp(1.05rem, 1.6vw, 1.5rem); font-weight: 700; color: #000; white-space: nowrap; letter-spacing: -0.01em; }
.author__marquee .sep { margin: 0 1rem; color: rgba(0, 0, 0, 0.3); font-style: normal; }
.author__clients:hover .author__marquee { animation-play-state: paused; }
@keyframes author-marq { to { transform: translateX(-50%); } }

.author__bio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); }
.author__bio p { font-size: clamp(1rem, 1.35vw, 1.3rem); line-height: 1.4; color: rgba(0, 0, 0, 0.42); margin: 0; }

/* ── права картка: фото + перемикач стилю ── */
.author__media {
  background: #242424; display: flex; flex-direction: column;
  padding: clamp(0.7rem, 1vw, 1rem); gap: clamp(0.7rem, 1vw, 1rem);
}
.author__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #1a1a1a; }
.author__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.author__btns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.7rem, 1vw, 1rem); }
.author__btn {
  font-family: var(--sans); font-size: clamp(0.95rem, 1.3vw, 1.2rem); font-weight: 500; color: #ffffff;
  background: #1a1a1a; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 100px;
  padding: clamp(0.8rem, 1.4vw, 1.1rem); cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.author__btn:hover { background: #2e2e2e; border-color: rgba(255, 255, 255, 0.7); }
.author__btn.is-active { background: #ffffff; border-color: #ffffff; color: #0a0a0b; }

@media (max-width: 860px) {
  .author__grid { grid-template-columns: 1fr; }
  .author__bio { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .author__bio { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .author__marquee { animation: none; }
}

/* ============================================================
   ВАРТІСТЬ НАВЧАННЯ — 2 пакети + зворотний відлік
   ============================================================ */
.pricing { background: #0a0a0b; padding: clamp(4rem, 10vh, 8rem) 0 clamp(5rem, 12vh, 9rem); }
.pricing__grid {
  display: grid; grid-template-columns: clamp(230px, 22vw, 330px) 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.6rem); align-items: stretch;
}

/* ── ліворуч: заголовок + таймер ── */
.pricing__head { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(2.5rem, 6vh, 5rem); }
.pricing__title {
  font-size: clamp(1.8rem, 3.4vw, 3.4rem); line-height: 0.98; font-weight: 800;
  letter-spacing: -0.03em; text-transform: uppercase; color: var(--ink-str); margin: 0;
}
.countdown { width: max-content; }
.countdown__label {
  display: block; width: 100%; text-align: justify; text-align-last: justify;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: clamp(0.78rem, 1vw, 0.95rem); color: var(--muted); margin-bottom: clamp(0.9rem, 2vh, 1.4rem);
}
.countdown__timer {                 /* 2×2 «квадрат», двокрапки в рядках */
  display: flex; flex-direction: column; gap: clamp(0.8rem, 1.8vh, 1.3rem); width: max-content;
}
.cd-row { display: flex; align-items: flex-start; gap: clamp(0.5rem, 1.2vw, 0.9rem); }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.cd-tiles { display: flex; gap: 4px; }
.cd-tile {
  display: grid; place-items: center; position: relative; overflow: hidden;
  width: clamp(2.1rem, 3.4vw, 3rem); height: clamp(2.8rem, 4.6vw, 4rem);
  background: #161618; border-radius: 10px;
  font-family: var(--mono); font-weight: 500; color: #e6e6e4;
  font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1;
}
.cd-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.55); transform: translateY(-50%); }
.cd-name { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.cd-colon { display: grid; place-items: center; height: clamp(2.8rem, 4.6vw, 4rem); color: rgba(255, 255, 255, 0.3); font-size: clamp(1.6rem, 2.6vw, 2.4rem); }

/* ── пакети (у стилі сайту: темні картки, лайм-акценти) ── */
.tier {
  display: flex; flex-direction: column; border-radius: 24px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--tier-angle), #57a6ff, #8898e7, #57a6ff, #8898e7, #57a6ff) border-box;
  padding: clamp(1.7rem, 2.4vw, 2.8rem);
  animation: tier-border 2.5s linear infinite;        /* швидко біжить по контуру */
}
@property --tier-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes tier-border { to { --tier-angle: 360deg; } }
/* pause continuous animations while their section is off-screen */
.pricing:not(.anim-on) .tier { animation-play-state: paused; }
.tg-lines:not(.anim-on) .tg-lines__guide { animation-play-state: paused; }
.tier--featured {                 /* трохи виразніший: м'яке сяйво + зсунута фаза градієнта */
  box-shadow: 0 40px 90px -55px rgba(136, 152, 231, 0.4);
  animation-delay: -1.25s;
}
.tier__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.4rem, 2.6vh, 2.2rem); }
.tier__name { font-family: var(--mono); font-size: clamp(1.15rem, 2.3vw, 2.15rem); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tier__badge {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: #0a0a0b; background: #8898e7; border-radius: 100px; padding: 0.35rem 0.75rem; white-space: nowrap;
}
.tier__feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(0.9rem, 1.8vh, 1.35rem); }
.tier__feat { display: flex; align-items: flex-start; gap: 0.8rem; font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.3; color: var(--ink); }
.tier__ic { flex: none; width: 22px; height: 22px; display: grid; place-items: center; color: #8898e7; margin-top: 0.08em; }
.tier__ic svg { width: 18px; height: 18px; }
.tier__feat--off { color: var(--muted); text-decoration: line-through; }
.tier__feat--off .tier__ic { color: rgba(255, 255, 255, 0.28); }
.tier__price { margin-top: auto; padding: clamp(1.6rem, 3vh, 2.4rem) 0 clamp(1.3rem, 2.4vh, 1.9rem); display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.7rem; }
.tier__old { width: 100%; font-size: clamp(1rem, 1.4vw, 1.35rem); color: var(--muted); text-decoration: line-through; }
.tier__now { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink-str); line-height: 1; }
.tier__now small { font-size: 0.42em; font-weight: 700; color: var(--muted); }
.tier__usd { font-size: clamp(0.85rem, 1.1vw, 1.05rem); color: var(--muted); }

/* c-button на всю ширину картки */
.c-button--block { display: flex; width: 100%; }
.c-button--block .c-button__pill { flex: 1; justify-content: center; }

@media (max-width: 900px) {
  .pricing__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tier { animation: none; }
}

/* ============================================================
   FAQ — masonry-дошка карток (без акордеону, усе видно одразу)
   ============================================================ */
.faq { background: #0a0a0b; padding: clamp(4rem, 10vh, 8rem) 0 clamp(5rem, 12vh, 9rem); }
.faq__head { margin-bottom: clamp(2.5rem, 6vh, 5rem); }
.faq__eyebrow { display: block; font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.faq__title { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 0.95; font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; color: var(--ink-str); margin: 0; }

.faq__board { display: flex; align-items: flex-start; gap: clamp(1rem, 1.6vw, 1.4rem); }
.faq__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: clamp(0.8rem, 1.4vw, 1.2rem); will-change: transform; }
.faq__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: border-color 0.35s var(--ease);
}
.faq__item:hover { border-color: rgba(136, 152, 231, 0.4); }
.faq__item.is-open { border-color: rgba(136, 152, 231, 0.55); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; text-align: left;
  padding: clamp(1.2rem, 1.8vw, 1.7rem) clamp(1.3rem, 2vw, 2rem);
  background: none; border: 0; color: var(--ink-str); font-family: inherit; cursor: pointer;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25;
}
.faq__ic { position: relative; flex: none; width: 30px; height: 30px; color: #8898e7; }
.faq__ic svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.faq__ic [fill] { fill: currentColor; }
.faq__ic .frame { transition: opacity 70ms steps(1); }          /* різкий «удар» молотком, без кросфейду */
.faq__ic .frame-b { opacity: 0; }                                /* закрито → рука вгорі (frame-a) */
.faq__item.is-open .faq__ic .frame-a { opacity: 0; }
.faq__item.is-open .faq__ic .frame-b { opacity: 1; }             /* відкрито → рука б'є вниз і застигає */
.faq__panel { height: 0; overflow: hidden; }
.faq__a { margin: 0; padding: 0 clamp(1.3rem, 2vw, 2rem) clamp(1.3rem, 2vw, 1.8rem); font-size: clamp(0.95rem, 1.15vw, 1.08rem); line-height: 1.55; color: var(--muted); }

@media (max-width: 720px) { .faq__board { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .faq__col { transform: none !important; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0a0a0b; padding: 0 0 clamp(2.5rem, 5vh, 4rem); }
.footer__rule { --fr: 200%; width: 100%; height: 2px; overflow: hidden; margin-bottom: clamp(3.5rem, 8vh, 6rem); }
.footer__rule svg {
  display: block; width: 100%; height: 100%; color: #4a4a4a;
  background: linear-gradient(90deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.82), rgba(255,255,255,0)) 0 0 / var(--fr) 100%;
  animation: fr-stroke 1.1s linear infinite, fr-bg 3s linear infinite;
}
@keyframes fr-stroke { 0% { stroke-dashoffset: 0; } to { stroke-dashoffset: 6px; } }
@keyframes fr-bg { to { background-position: var(--fr) 0; } }
.footer:not(.anim-on) .footer__rule svg { animation-play-state: paused; }
.footer__top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.footer__intro { display: flex; flex-direction: column; gap: clamp(1rem, 3vh, 1.8rem); }
.footer__title {
  font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 800; line-height: 1.0;
  letter-spacing: -0.03em; color: var(--ink-str); margin: 0;
}
.footer__title .line { display: block; overflow: visible; }
.footer__title .line__in { display: block; }
.footer__sub { font-size: clamp(0.95rem, 1.3vw, 1.2rem); color: var(--muted); }

.footer__cta { justify-self: center; font-size: clamp(1.1rem, 1.7vw, 1.55rem); }

.footer__links { justify-self: end; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.7rem, 1.1vw, 1rem); width: 100%; max-width: 560px; }
.footer__link {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 3.6rem; white-space: nowrap;
  font-size: clamp(0.85rem, 1.1vw, 1.05rem); color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px; padding: 0.7rem 1.1rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.footer__link:hover { color: var(--ink-str); border-color: rgba(136, 152, 231, 0.6); background: rgba(255, 255, 255, 0.02); }

.footer__bottom {
  display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 2rem;
  margin-top: clamp(3rem, 9vh, 6.5rem);
}
.footer__legal, .footer__tagline { font-size: clamp(0.95rem, 1.3vw, 1.2rem); color: var(--muted); line-height: 1.35; }
.footer__logo { justify-self: end; display: flex; align-items: center; }
.footer__logo img { height: clamp(26px, 3vw, 40px); width: auto; display: block; opacity: 0.5; }   /* колір як у тексту (muted) */

@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cta { justify-self: start; }
  .footer__links { justify-self: stretch; max-width: none; }
  .footer__bottom { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer__logo { justify-self: start; }
}
