/* Alla Klymenko — site styles. One grid and one spacing scale for every page (reference/design-tokens.md «Grid»):
   desktop >= 1024: 12 columns, tablet 768-1023: 8, phone < 768: 4. `?grid` in the address shows the columns. */

@font-face { font-family: "PP Neue Montreal"; src: url("/fonts/ppneuemontreal-book.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("/fonts/ppneuemontreal-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cygre"; src: url("/fonts/cygre-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --lime: #dcff99;
  --white: #fff;
  --ink: #070707;
  --black: #000;
  --navy: #061727;
  --paper: #eff1f0;
  --text-dark: #333;
  --text-light: #dcdcdc;
  --text-muted: #8d8d8d;
  --purple: #7767c0;
  --purple-hover: #6656b3;
  --purple-stroke: #5947aa;
  --link: #a39ddf;
  --bubble-ink: #1c1c17;

  /* grid */
  --grid-max: 1176px;
  --cols: 12;
  --margin: 48px;
  --gutter: 24px;
  /* container width; `100%` resolves where it is used: in .container and in full-width sections it is the page width */
  --C: min(var(--grid-max), 100% - 2 * var(--margin));
  --col: calc((var(--C) - (var(--cols) - 1) * var(--gutter)) / var(--cols));
  --edge: calc((100% - var(--C)) / 2);             /* page edge -> container edge */

  /* spacing: 8-px scale; semantic gaps are built from it */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;
  --sec-y: clamp(72px, 48px + 4.5vw, 128px);       /* section top = bottom */
  --gap-text: clamp(16px, 14px + .5vw, 24px);      /* heading -> text, paragraph -> paragraph */
  --gap-block: clamp(32px, 28px + 1vw, 48px);      /* heading -> content, text -> button */
  --header-h: 96px;                                /* header band the pages keep free */

  /* type */
  --font: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --fs-body: clamp(17px, 15px + 0.25vw, 19px);
  --lh-body: 1.45;
  --fs-small: 16px;
  --fs-ui: 16px;
  --fs-btn: 17px;
  --fs-h3: clamp(24px, 16px + 0.85vw, 32px);       /* card titles, TRUSTED BY, CTA */
  --fs-h2: clamp(30px, 18px + 1.8vw, 52px);        /* talk titles */
  --fs-num: clamp(32px, 8px + 2.5vw, 44px);       /* three numbers fit 6 columns with 48 px gaps from 1024 */
  --track: -0.01em;

  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (max-width: 1023px) { :root { --cols: 8; --margin: 32px; --gutter: 20px; } }
@media (max-width: 767px) { :root { --cols: 4; --margin: 20px; --gutter: 16px; --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--white);
  font-family: var(--font); font-weight: 400; font-size: var(--fs-body); line-height: var(--lh-body);
  letter-spacing: var(--track); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
picture img { width: 100%; height: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 8px; }

/* ---------- grid ---------- */
.container { width: var(--C); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); }
.grid > * { grid-column: 1 / -1; }
.section { padding-block: var(--sec-y); }
/* `?grid`: the columns over the whole page (QA and design review) */
.show-grid body { position: relative; }
.show-grid body::after {
  content: ""; position: absolute; inset: 0 auto 0 var(--edge); width: var(--C); z-index: 999; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 46, 99, .14) 0 var(--col), transparent var(--col) calc(var(--col) + var(--gutter)));
}

/* split sections (about, trusted, cta, speaking hero): a photo from the page edge to the end of column 6 (tablet: 4),
   text on columns 7-12 (tablet: 5-8); on phones the photo goes on top, full width */
.split { position: relative; display: flex; align-items: center; }
.split__photo { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--edge) + 6 * var(--col) + 5 * var(--gutter)); }
.split__photo img { object-fit: cover; }
.split__inner { position: relative; padding-block: var(--sec-y); }
.split__body { grid-column: 7 / -1; }

/* ---------- type ---------- */
.h-ui, .card__title, .talk__title, .sp-hero__subtitle, .hero__subtitle, .stub__title, .contact__title, .contact__lead, .form-done__title {
  font-weight: 500; text-transform: uppercase; letter-spacing: var(--track); line-height: 1.05;
}
.h-ui { font-size: var(--fs-h3); }
.display { width: 100%; height: auto; }
.link { color: var(--link); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color .15s ease; }
@media (hover: hover) { .link:hover { color: var(--white); } }

/* ---------- buttons: pill, caps; line-height 1 puts the caps optically centred
   (PP Neue Montreal: ascent .958, descent .242, cap .715 → cap centre at .50 of the line box) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; min-width: 280px; padding: 0 36px; border-radius: 999px;
  font: 500 var(--fs-btn)/1 var(--font); letter-spacing: 0; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--purple); color: var(--white); }
.btn--outline { min-height: 56px; min-width: 0; padding: 0 28px; border: 1px solid currentColor; font-size: var(--fs-ui); }
@media (hover: hover) {
  .btn--primary:hover { background: var(--purple-hover); }
  .site-nav__cta:hover { background: var(--purple); border-color: var(--purple); color: var(--white); }
}

/* ---------- header. Desktop: Home ... Get in touch spread evenly over the whole container (Home on its left edge, the
   button on its right edge, equal gaps), no name. Below 1024: name (not on Home) + burger. ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 30; padding-top: var(--s-3); color: var(--text-light); }
.theme-light .site-header { color: var(--text-dark); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.site-header__name { font-weight: 500; font-size: var(--fs-ui); line-height: 1; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.site-nav { flex: 1; }
.site-nav__list { display: flex; align-items: center; justify-content: space-between; }
.site-nav__list a, .mobile-menu__list a {
  font-weight: 500; font-size: var(--fs-ui); line-height: 1; text-transform: uppercase; text-decoration: none;
  display: inline-block; padding: 14px 0; text-decoration-thickness: 1px; text-underline-offset: 8px;
}
.site-nav__list a[aria-current="page"] { text-decoration: underline; }
@media (hover: hover) { .site-nav__list a:hover, .site-header__name:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; } }
.theme-light .site-nav__cta { border-color: var(--purple-stroke); }
/* Home: the hero already says HI, I'M ALLA KLYMENKO, and the header scrolls away with it — no name there */
.page-home .site-header__name { visibility: hidden; }
@media (min-width: 1024px) { .site-header__name { display: none; } }
.site-nav__list a.site-nav__cta { display: inline-flex; padding: 0 28px; text-decoration: none; }
.site-nav__cta[aria-current="page"], .mobile-menu .btn[aria-current="page"] { background: none; border: 1px solid var(--lime); color: var(--lime); }

.burger { display: none; }
.mobile-menu[hidden] { display: none; }

/* ---------- home: hero ---------- */
/* Exactly one screen (100svh), the background fills the window, the composition (1176x1080 mockup px: display type +
   Alla + subtitle + button) hangs from the menu: the top of Alla's head (37.9 u into the composition) is 8 px under the
   header band, and her feet may go below the edge. --u = one mockup px.
   The button's bottom: 88 px - 37.9 u + 754 u (KLYMENKO's glyphs) + 26 px + 60 px; --ufit keeps >= max(64 px, 8 % of
   the height) under it, so on short windows the composition shrinks.
   Scale: the mockup at the window width (KLYMENKO = 43 % of it). Place: centred like the mockup, then moved (by less
   than half a column step) so the subtitle and the button start on the nearest column line. */
.hero {
  container-type: inline-size;
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start;
  height: 100vh; height: 100svh; padding-top: var(--header-h);
  background: var(--paper); color: var(--text-dark);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg-img { height: 100%; }
.hero__bg-img img { object-fit: cover; object-position: 50% 100%; }
.hero__stage {
  --hC: min(var(--grid-max), 100cqw - 2 * var(--margin));
  --hcol: calc((var(--hC) - (var(--cols) - 1) * var(--gutter)) / var(--cols));
  --u: min(1px, var(--hC) / 1176);   /* tablet; desktop variants below */
  position: relative; flex: none; width: calc(1176 * var(--u)); height: calc(1080 * var(--u));
  margin-left: calc((100cqw - var(--hC)) / 2);
  margin-left: calc((100cqw - var(--hC)) / 2 + round(down, (var(--hC) - 1176 * var(--u)) / 2, var(--hcol) + var(--gutter)));
}
@media (min-width: 1024px) {
  .hero { padding-top: 0; }
  .hero__stage {
    --ufit: calc((100vh - max(64px, 8vh) - 174px) / 716.1);
    --ufit: calc((100svh - max(64px, 8svh) - 174px) / 716.1);
    margin-top: calc(var(--header-h) - 8px - 37.9 * var(--u));
  }
  .hero__stage {
    --u: min(100cqw / 1920, var(--ufit));
    margin-left: calc((100cqw - 1176 * var(--u)) / 2);
    margin-left: calc((100cqw - var(--hC)) / 2 + round(nearest, (var(--hC) - 1176 * var(--u)) / 2, var(--hcol) + var(--gutter)));
  }
}
.hero__stage > *, .hero__title > span:not(.visually-hidden) { position: absolute; }
.hero__title { position: static; }
/* positions: reference/layout.json minus the container origin (x 372); SVGs at their native viewBox size;
   HI starts at viewBox x 13.37, so -13.37 puts the glyph on the column line */
.hero__hi       { left: calc(-13.37 * var(--u)); top: calc(361 * var(--u)); width: calc(626.33 * var(--u)); color: var(--white); z-index: 1; }
.hero__alla-word{ left: calc(671 * var(--u)); top: calc(360.5 * var(--u)); width: calc(425.56 * var(--u)); color: var(--lime); z-index: 1; }
.hero__alla     { left: calc(296.9 * var(--u)); top: calc(-34.2 * var(--u)); width: calc(517.6 * var(--u)); height: calc(1114.7 * var(--u)); z-index: 2; }
.hero__klymenko { left: calc(325 * var(--u)); top: calc(553.8 * var(--u)); width: calc(877.51 * var(--u)); color: var(--lime); z-index: 3; }
.hero__alla img { object-fit: contain; object-position: 50% 100%; }
.bubble {
  left: calc(604 * var(--u)); top: calc(316 * var(--u)); z-index: 4;
  /* Cygre's line box puts the ink ~0.2em low: padding moves it to the optical centre (tools/measure_bubble.py) */
  display: inline-flex; align-items: baseline; padding: 0.22em 0.6em 0.58em 0.55em; border-radius: 0.55em;
  background: var(--white); color: var(--bubble-ink); text-decoration: none;
  font: 400 max(17px, calc(31 * var(--u)))/1 "Cygre", var(--font); letter-spacing: 0;
}
.bubble::before { /* the tail, top-left like the mockup */
  content: ""; position: absolute; left: 0.9em; top: -0.32em; width: 0.7em; height: 0.7em;
  background: inherit; border-radius: 0.12em; transform: rotate(45deg);
}
/* >= 28 px under the comma of HI, (glyph bottom 584 u) */
.hero__text { left: 0; top: calc(584 * var(--u) + max(36 * var(--u), 28px)); z-index: 3; }
/* subtitle: the mockup size, but never closer than 24 px to the K of KLYMENKO (glyph left 350 u; the text is 312 u
   wide at 31 u); the button (fixed size) goes >= 26 px under KLYMENKO's glyphs (bottom 754 u) at every scale */
.hero__subtitle { width: fit-content; font-size: min(31 * var(--u), 34.78 * var(--u) - 2.4px); line-height: 1; letter-spacing: -0.03em;
  white-space: nowrap; margin-bottom: calc(754 * var(--u) + 26px - 584 * var(--u) - max(36 * var(--u), 28px) - 3em); color: var(--ink); }

/* ---------- home: about ---------- */
.about { background: var(--black); min-height: clamp(560px, 37.5vw, 720px); }
.about__photo { -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
/* three numbers: tracks as wide as the numbers, 48 px apart (equal 2-column tracks squeezed 300,000+ / 144,400) */
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: var(--s-5); margin-top: var(--gap-block); color: var(--lime); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font-weight: 500; font-size: var(--fs-num); line-height: 1.1; white-space: nowrap; }
.stats dt { font-size: var(--fs-small); line-height: 1.3; }

/* ---------- home: signature talks ---------- */
.talks { background: var(--ink); }
.section-display { width: min(834px, 100%); margin: 0 auto var(--gap-block); color: var(--lime); }
/* 3 cards x 4 columns; subgrid keeps title / text / link rows level across cards */
.cards { grid-template-rows: repeat(3, auto); }
.card {
  grid-column: span 4; grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 0;
  padding: var(--s-4); border: 1px solid var(--lime); border-radius: var(--radius);
}
.cards > .card { grid-column: span 4; }
.card__title { font-size: var(--fs-h3); color: var(--lime); margin-bottom: var(--s-5); }
.card .link { justify-self: start; margin-top: var(--s-3); }

/* ---------- home: gallery (edge to edge) ---------- */
.gallery { background: var(--ink); }
.gallery__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.gallery__img { aspect-ratio: 480 / 413; }
.gallery__img img { object-fit: cover; }

/* ---------- home: trusted by ---------- */
.trusted { background: var(--paper); color: var(--ink); min-height: clamp(600px, 45.3vw, 870px); }
.trusted__photo { -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent); mask-image: linear-gradient(90deg, #000 72%, transparent); }
.trusted__photo img { object-position: 40% 100%; }
.trusted .h-ui { margin-bottom: var(--gap-block); }
/* 3 logos per row = 2 columns each on 6 */
.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--gutter); align-items: center; }
.logos img { max-width: 100%; height: auto; }

/* ---------- home: cta ---------- */
.cta { background: var(--ink); min-height: clamp(520px, 38vw, 728px); }
.cta__photo { -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
.cta__photo img { object-position: 0 50%; }
.cta__title { max-width: 17em; margin-bottom: var(--gap-block); }

/* ---------- speaking: hero (photo to the end of column 8, title on 7-12) ---------- */
.sp-hero { background: var(--ink); min-height: clamp(640px, 58vw, 1060px); }
.sp-hero .split__inner { padding-top: calc(var(--header-h) + var(--sec-y)); }
.sp-hero__photo {
  width: calc(var(--edge) + 8 * var(--col) + 7 * var(--gutter));
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent), linear-gradient(180deg, #000 60%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(90deg, #000 60%, transparent), linear-gradient(180deg, #000 60%, transparent);
}
.sp-hero__photo img { object-position: 0 0; }
.sp-hero__title { color: var(--lime); }
.sp-hero__subtitle { margin-top: var(--gap-text); font-size: var(--fs-h3); color: var(--white); }

/* ---------- speaking: talks (text 1-6, box 8-12) ---------- */
.talk { background: var(--ink); padding-block: calc(var(--sec-y) / 2); scroll-margin-top: var(--s-3); }
.talk:first-of-type { padding-top: var(--sec-y); }
.talk:last-of-type { padding-bottom: var(--sec-y); }
.talk__grid { row-gap: var(--gap-block); align-items: start; }
.talk__title { font-size: var(--fs-h2); color: var(--lime); }
.talk__num { margin-right: 0.35em; }
.talk__text { grid-column: 1 / 7; }
.talk__text p + p { margin-top: var(--gap-text); }
.talk__box { grid-column: 8 / -1; padding: var(--s-4); border: 1px solid var(--lime); border-radius: var(--radius); }
.talk__box dt { font-weight: 500; text-transform: uppercase; color: var(--lime); }
.talk__box dd + dt { margin-top: var(--gap-text); }

/* ---------- speaking: cta (text 1-5, inset 7-10, photo from column 8 to the page edge) ---------- */
.sp-cta { position: relative; background: var(--navy); min-height: clamp(640px, 56vw, 1080px); display: flex; align-items: center; overflow: hidden; }
.sp-cta__photo {
  position: absolute; top: 0; bottom: 0; right: 0; width: calc(var(--edge) + 5 * var(--col) + 4 * var(--gutter));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.sp-cta__photo img { object-fit: cover; object-position: 0 50%; }
.sp-cta__grid { position: relative; align-items: center; padding-block: var(--sec-y); }
.sp-cta__body { grid-column: 1 / 6; }
.sp-cta__title { font-weight: 500; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: var(--gap-block); }
.sp-cta__accent { display: block; margin-bottom: var(--s-2); color: var(--lime); text-transform: uppercase; letter-spacing: var(--track); }
.sp-cta__inset { grid-column: 7 / 11; aspect-ratio: 390 / 512; }
.sp-cta__inset img { object-fit: cover; }

/* ---------- stubs ---------- */
.stub { min-height: 72svh; display: flex; align-items: center; padding-block: calc(var(--header-h) + var(--sec-y)) var(--sec-y); }
.stub__title { font-size: clamp(56px, 9vw, 160px); line-height: .9; color: var(--lime); }
.stub__text { margin-top: var(--gap-block); color: var(--text-light); }

/* ---------- contact (intro 1-5, form 7-12) ---------- */
.contact { padding-block: calc(var(--header-h) + var(--s-6)) var(--sec-y); }
.contact__grid { align-items: start; row-gap: var(--gap-block); }
.contact__intro { grid-column: 1 / 6; }
.contact__title { color: var(--lime); font-size: clamp(52px, 6.4vw, 104px); line-height: .9; }
.contact__lead { margin-top: var(--gap-block); max-width: 14em; font-size: var(--fs-h3); }
.contact__direct { display: grid; gap: var(--s-1); margin-top: var(--gap-block); font-size: var(--fs-small); color: var(--text-light); }
.contact__direct a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; transition: color .15s ease; }
.contact__direct .icon { flex: none; }
@media (hover: hover) { .contact__direct a:hover { color: var(--lime); } }
.form-card { grid-column: 7 / -1; padding: var(--s-5); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--gutter); }
.field { display: grid; gap: var(--s-1); align-content: start; }
.field--wide, .form__turnstile, .form__alert, .form__foot { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: var(--fs-small); line-height: 1.2; }
.field__opt { font-weight: 400; color: #6b6b6b; }
.field input, .field textarea {
  width: 100%; height: 56px; padding: 0 16px; border: 1px solid #c4c8c6; border-radius: 10px; background: var(--white);
  font: 400 17px/1.4 var(--font); letter-spacing: 0; color: var(--ink); /* >= 16px: no zoom on iOS */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { height: auto; min-height: 168px; padding: 14px 16px; resize: vertical; }
.field ::placeholder { color: #8e918f; opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(119, 103, 192, .25); }
.field__error { display: none; font-size: 15px; line-height: 1.3; color: #b42318; }
.is-invalid input, .is-invalid textarea { border-color: #b42318; }
.is-invalid .field__error { display: block; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__turnstile:empty { display: none; }
.form__alert { padding: var(--s-2); border-radius: 10px; background: #fde8e6; color: #7a1a12; font-size: var(--fs-small); }
.form__alert[hidden], .form[hidden], .form-done[hidden] { display: none; }
.form__foot { margin-top: var(--s-1); }
.form .btn { border: 0; cursor: pointer; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-done { padding-block: var(--s-3); }
.form-done__title { margin-bottom: var(--s-2); font-size: var(--fs-h3); outline: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--text-light); border-top: 1px solid rgba(255, 255, 255, .1); padding-block: var(--s-5) var(--s-4); font-size: 15px; }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5); }
.site-footer__row--meta { margin-top: var(--s-3); color: var(--text-muted); }
.site-footer__name { font-weight: 500; font-size: var(--fs-ui); text-transform: uppercase; text-decoration: none; color: var(--white); }
.site-footer__row nav { margin-left: auto; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }   /* same fixed gap as the header menu */
.site-footer a { text-decoration: none; transition: color .15s ease; }
.site-footer__nav a { font-weight: 500; text-transform: uppercase; }
.site-footer a[aria-current="page"] { color: var(--lime); }
@media (hover: hover) { .site-footer a:hover { color: var(--lime); } }
/* icons: 24 px glyphs in 44 px tap areas; the first icon's glyph box starts on the column line */
.social { display: flex; gap: var(--s-1); margin-left: -10px; }
.social__link { display: grid; place-items: center; width: 44px; height: 44px; color: var(--text-light); }
.icon { width: 24px; height: 24px; }

/* ---------- reveal on scroll (only with JS; off for reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .06s; }
.cards .reveal:nth-child(3) { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
}

/* ---------- tablet + phone: burger menu ---------- */
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .burger {
    display: grid; place-items: center; position: relative; z-index: 2; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: inherit; cursor: pointer;
  }
  .site-header__name { position: relative; z-index: 2; }
  .burger__lines, .burger__lines::before, .burger__lines::after {
    display: block; width: 24px; height: 2px; background: currentColor; transition: transform .2s var(--ease), background-color .15s ease;
  }
  .burger__lines { position: relative; }
  .burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
  .burger__lines::before { top: -7px; }
  .burger__lines::after { top: 7px; }
  .menu-open .burger__lines { background: transparent; }
  .menu-open .burger__lines::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .burger__lines::after { transform: translateY(-7px) rotate(-45deg); }
  .menu-open .site-header { color: var(--white); position: fixed; }
  .menu-open body { overflow: hidden; }
  .mobile-menu { position: fixed; inset: 0; z-index: 1; overflow-y: auto; background: var(--ink); color: var(--white); }
  .mobile-menu__inner { min-height: 100%; display: flex; flex-direction: column; padding-block: calc(var(--header-h) + var(--s-3)) var(--s-4); }
  .mobile-menu__list { display: flex; flex-direction: column; gap: var(--s-1); margin-bottom: var(--s-5); }
  .mobile-menu__list a { font-size: 40px; line-height: 1.05; padding: 6px 0; }
  .mobile-menu__list a[aria-current="page"] { color: var(--lime); }
  .mobile-menu .btn { align-self: stretch; }
  .mobile-menu__meta { display: grid; gap: var(--s-1); margin-top: auto; padding-top: var(--s-5); font-size: var(--fs-small); color: var(--text-light); }
  .mobile-menu__meta a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
  .js .mobile-menu { animation: menu-in .2s var(--ease-out); }
  @keyframes menu-in { from { opacity: 0; } }

  /* tablet: the same split layouts on 8 columns (photo to column 4, text 5-8) */
  .split__photo { width: calc(var(--edge) + 4 * var(--col) + 3 * var(--gutter)); }
  .split__body { grid-column: 5 / -1; }
  .sp-hero__photo { width: calc(var(--edge) + 5 * var(--col) + 4 * var(--gutter)); }
  .cards { grid-template-rows: none; row-gap: var(--s-3); }
  .logos { column-gap: var(--s-4); }
  .cards > .card { grid-column: 1 / -1; grid-row: auto; display: flex; flex-direction: column; }
  .card__title { margin-bottom: var(--s-3); }
  /* numbers: a column of big figures with hairlines (three in a row do not fit 4 or fewer columns) */
  .stats { grid-template-columns: 1fr; }
  .stats div { padding-block: var(--s-3); border-top: 1px solid rgba(220, 255, 153, .2); }
  .stats div:last-child { padding-bottom: 0; }
  .stats dd { font-size: 52px; line-height: 1; }
  .stats dt { margin-top: var(--s-1); font-size: var(--fs-small); }
  .talk__text { grid-column: 1 / -1; }
  .talk__box { grid-column: 1 / 7; }
  .sp-cta__body { grid-column: 1 / 5; }
  .sp-cta__inset { grid-column: 6 / 9; }
  .sp-cta__photo { width: calc(var(--edge) + 3 * var(--col) + 2 * var(--gutter)); }
  .contact__intro, .form-card { grid-column: 1 / -1; }
}

/* ---------- tablet: hero is the composition's own height (no 100svh on a portrait screen) ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero { height: auto; }
  .hero__stage { --u: min(1px, var(--hC) / 1176); }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  .site-header { padding-top: var(--s-2); }
  .btn { min-width: 0; width: 100%; }

  /* hero: exactly one screen (100svh). The composition (390x640 px of a 390 wide phone, --m = one of them) scales with
     the width only — the title stays full width; subtitle + button lie over the bottom of the photo on a light fade,
     Alla's legs may go under it */
  .hero {
    --m: calc(100vw / 390);
    --ox: 0px;
    display: block; height: 100vh; height: 100svh; min-height: 560px; padding-top: 0;
  }
  .hero::after {
    content: ""; position: absolute; inset: auto 0 0; height: 260px; z-index: 4; pointer-events: none;
    background: linear-gradient(to top, var(--paper) 170px, rgba(239, 241, 240, 0));
  }
  .hero__stage { position: static; width: auto; height: auto; margin-left: 0; }
  .hero__hi       { left: calc(var(--ox) + 13.3 * var(--m)); top: calc(96 * var(--m)); width: calc(313.2 * var(--m)); }
  .hero__alla-word{ left: calc(var(--ox) + 5.9 * var(--m)); top: calc(205 * var(--m)); width: calc(212.8 * var(--m)); }
  .hero__alla     { left: calc(var(--ox) + 140 * var(--m)); top: calc(56 * var(--m)); width: calc(270 * var(--m)); height: calc(584 * var(--m)); }
  .hero__klymenko { left: calc(var(--ox) + 9.4 * var(--m)); top: calc(318 * var(--m)); width: calc(371.8 * var(--m)); }
  .bubble { left: auto; right: calc(var(--ox) + 16 * var(--m)); top: calc(250 * var(--m)); font-size: 17px; }
  .hero__text { top: auto; left: var(--margin); right: var(--margin); bottom: var(--s-4); z-index: 5; }
  .hero__subtitle { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; white-space: normal; margin-bottom: var(--s-3); }

  .split { display: block; min-height: 0; }
  .split__photo, .sp-hero__photo { position: relative; width: 100%; }
  .split__inner { padding-block: var(--s-1) var(--sec-y); }
  .split__body { grid-column: 1 / -1; }
  .about__photo { aspect-ratio: 900 / 719; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .card { padding: var(--s-4) var(--s-3); }

  .gallery__list { grid-template-columns: 1fr 1fr; }
  .gallery__img { aspect-ratio: 1; }

  .trusted__photo { aspect-ratio: 2962 / 2720; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
  .logos { gap: var(--s-4); }
  .cta__photo { aspect-ratio: 960 / 730; -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent); mask-image: linear-gradient(180deg, #000 65%, transparent); }

  .sp-hero__photo { aspect-ratio: 1120 / 1194; max-height: 70svh; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
  .sp-hero .split__inner { margin-top: calc(-1 * var(--s-7)); padding-top: 0; padding-bottom: var(--s-1); }
  .talk__box { grid-column: 1 / -1; padding: var(--s-3); }

  .sp-cta { display: flex; flex-direction: column; min-height: 0; align-items: stretch; }
  .sp-cta__grid { padding-block: var(--sec-y) 0; z-index: 2; row-gap: var(--s-5); }
  .sp-cta__body { grid-column: 1 / -1; }
  .sp-cta__inset { display: none; }   /* phones: text, button and the microphone photo only */
  .sp-cta__grid { padding-bottom: var(--s-5); }
  .sp-cta__photo { position: relative; order: 2; width: 100%; aspect-ratio: 920 / 1078; z-index: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }

  .form { grid-template-columns: 1fr; gap: var(--s-3); }
  .form-card { padding: var(--s-3); }
  .form .btn { width: 100%; }
  .site-footer__row:first-child { flex-direction: column; align-items: flex-start; row-gap: var(--s-3); }
  .site-footer__row nav { width: 100%; margin-left: 0; }
  /* menu: two equal columns = 2 + 2 grid columns */
  .site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: var(--s-2) var(--gutter); }
}
