/* ==========================================================================
   Tokens
   ========================================================================== */
:root{
  --black: #0a0a0a;
  --cream: #f3efe6;
  /* --accent: reserved for interactive/functional states only (links, hover,
     focus). --accent-decor: same hue family, for static/decorative emphasis
     (numerals, marquee) — kept visually distinct so decoration never reads
     as clickable. */
  --accent: #ff4b34;
  --accent-decor: #c73a26;
  --grey-on-dark: #8f8c85;
  --grey-on-light: #5c584f;
  --line-on-dark: rgba(243,239,230,0.14);
  --line-on-light: rgba(10,10,10,0.12);

  --font-display: 'Onest', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* was a fixed cap reached around 1280px, so anything wider (1920 and
     up) just floated in dead space with no further growth — made fluid
     so content keeps scaling at any width. The former --shell token
     (a second, tighter max-width layered on top of this padding) has
     been removed from every grid that used it: it fought against this
     symmetric padding instead of matching it, producing a big empty
     gap on the right that had nothing to do with the force-line (which
     is about where content starts, not how much is left over). */
  --container: clamp(1.25rem, 4vw, 7rem);
  --radius-sharp: 2px;
  --radius-control: 4px;

  /* motion: local = micro-interaction (hover/color/opacity),
     spatial = structural movement (reveal, slide, sweep),
     reveal = scroll-triggered entrance (mask/curtain) — one shared
     easing family reused site-wide so entrances read as one system,
     not per-section decoration; campaign-site budget, still short
     enough not to be waited on. */
  --dur-local: .25s;
  --dur-spatial: .4s;
  --dur-reveal: .7s;
  --ease-reveal: cubic-bezier(.16,1,.3,1);
}

/* ==========================================================================
   Breakpoint registry — CSS custom properties can't be read inside a
   @media condition, so this comment is the token source of truth.
   Each value is where a specific component's CONTENT breaks, not a
   device-width default; don't add a new value without checking this list.

   720px — header: nav links no longer fit next to logo + CTA
   820px — media-grid/speaking split: two-column layouts get too cramped
   640px — index-list: role column no longer fits inline
   560px — media-grid/footer/values/stat-grid: collapse to single-column —
           below this, 3 tracks force long words (e.g. «международного»)
           to spill past their own column into the next one
   900px — about__grid: 12-col split no longer has room for both halves
   ========================================================================== */

*{ box-sizing: border-box; }
html{ scroll-behavior: auto; }
body{
  margin:0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ margin:0; font-family: var(--font-display); font-weight:700; letter-spacing:-0.015em; }
p{ margin:0; }
ul{ list-style:none; margin:0; padding:0; }

::selection{ background: var(--accent); color: var(--black); }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ==========================================================================
   Texture / cursor
   ========================================================================== */
.grain{
  position: fixed; inset:0; z-index: 999; pointer-events:none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Index-list hover preview (Education list): a small photo trails the
   cursor while hovering a row — position is JS-driven (translate on the
   outer element, updated per frame), opacity/scale live on the inner img
   so the two transforms don't fight over the same style property.
   Desktop-only (JS gates creation on hover+fine pointer), no card frame
   or shadow on purpose — a bare photo reads as an editorial aside, not
   a clickable tile. */
.list-preview{
  position: fixed; top:0; left:0; z-index:50; pointer-events:none;
  width: clamp(110px,9vw,150px); aspect-ratio: 3/4;
}
.list-preview__img{
  display:block; width:100%; height:100%; object-fit:cover;
  border-radius: var(--radius-sharp);
  filter: grayscale(1) contrast(1.15);
  opacity:0; transform: scale(.92) translate(28px,-50%);
  transition: opacity var(--dur-local) ease, transform var(--dur-spatial) var(--ease-reveal);
}
.list-preview.is-visible .list-preview__img{ opacity:1; transform: scale(1) translate(28px,-50%); }


/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 200;
  display:flex; align-items:center; justify-content:space-between;
  padding: 1.4rem var(--container);
  mix-blend-mode: difference;
  color: #fff;
}
.site-header__mark{
  font-family: var(--font-display); font-weight:700; font-size: .95rem; letter-spacing:-0.01em;
}
@media (max-width: 400px){
  /* header goes: name — nav (already hidden below 720px) — CTA button;
     below ~400px the full name crowds the CTA, so drop the first name */
  .site-header__mark-first{ display:none; }
}
.site-header__nav{ display:flex; gap: 2rem; font-size: .8rem; letter-spacing:.03em; }
.site-header__nav a{
  position:relative; opacity:.8; font-weight:500; transition: opacity var(--dur-local), font-weight var(--dur-local);
  padding-bottom: .3em;
}
.site-header__nav a::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:1px;
  background: currentColor; transform: scaleX(0); transform-origin:left;
  transition: transform var(--dur-local) ease;
}
.site-header__nav a:hover{ opacity:1; }
.site-header__nav a.is-active{ opacity:1; font-weight:700; }
.site-header__nav a.is-active::after{ transform: scaleX(1); }
.site-header__cta{ border-color:#fff; }
@media (max-width: 720px){
  .site-header__nav{ display:none; }
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.section{
  position: relative;
  padding: clamp(6rem,14vw,11rem) var(--container);
  overflow:hidden;
}
.section--dark{ background: var(--black); color: var(--cream); }
.section--light{ background: var(--cream); color: var(--black); }

.section__head{ margin-bottom: clamp(2.5rem,6vw,5rem); max-width: 900px; }
.section__title{
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: .9rem;
}

.eyebrow{
  display:inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-on-dark);
}
.section--light .eyebrow{ color: var(--grey-on-light); }
.eyebrow::before{ content:'// '; }

.btn{
  display:inline-flex; align-items:center; gap:.4em;
  border-radius: var(--radius-control); padding: .6em 1.2em;
  font-size:.8rem; font-weight:600; letter-spacing:.02em;
  border: 1px solid currentColor;
  transition: background var(--dur-local), color var(--dur-local);
}
.btn--outline:hover{ background: currentColor; color: var(--black); }
.magnetic{ transition: transform var(--dur-local) cubic-bezier(.2,.8,.2,1); }
/* `transition` is a shorthand — two rules that each declare it don't merge,
   the later one wins outright. Any element combining .magnetic with a class
   that also animates background/color needs both listed together here,
   at higher specificity, so neither transition silently gets dropped. */
.btn.magnetic, .media-card.magnetic{
  transition: background var(--dur-local), color var(--dur-local), transform var(--dur-local) cubic-bezier(.2,.8,.2,1);
}
.site-header .btn--outline:hover{ background:#fff; color:#000; }

/* ==========================================================================
   Orbit background motif
   ========================================================================== */
.orbit-field{ position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.5; }
.orbit-field--small{ opacity:.35; }
.orbit-field--footer{ opacity:.4; }
.orbit-field__svg{ width:100%; height:100%; }
.orbit-ring{
  fill:none; stroke: currentColor; stroke-width: .6; stroke-opacity:.5;
  color: var(--grey-on-dark);
  transform-origin: 500px 500px;
}
.section--light .orbit-ring{ color: var(--grey-on-light); }
.orbit-ring--a{ animation: spin 90s linear infinite; }
.orbit-ring--b{ animation: spin 140s linear infinite reverse; }
.orbit-ring--c{ animation: spin 200s linear infinite; }
@keyframes spin{ to{ transform: rotate(360deg); } }

/* ==========================================================================
   Hero
   — Uses the "eyebrow + massive headline" pattern that's in most anti-AI-
     default lists. Deliberate here, not a default: the headline IS the
     content (a person's name, the whole point of a personal-brand page),
     not a generic marketing claim standing in for missing information.
   ========================================================================== */
.hero{
  position: relative;
  min-height: 100svh;
  display:flex; flex-direction:column; justify-content:center;
  /* bottom padding must clear .hero__trust, an absolutely-positioned bar
     (~80px tall) that sits outside this flex flow — the old 4rem/64px
     max wasn't enough on shorter viewports, so the centered content's
     last line could sit under the bar. */
  padding: clamp(6rem,10vw,7rem) var(--container) clamp(6rem,11vw,7.5rem);
  background: var(--black); color: var(--cream);
}
.hero__photo{
  position:absolute; inset:0; z-index:0; overflow:hidden;
}
.hero__photo img{
  /* explicit aspect-ratio:auto cancels the browser's own auto-derived
     ratio from the width/height HTML attributes (added for CLS
     prevention) — author CSS always wins over that UA-stylesheet rule
     regardless of specificity, so this makes sizing depend purely on
     the width/height percentages below, with no ambiguity from the
     attribute-derived ratio interacting with them. The other 3 photos
     already have an explicit CSS aspect-ratio of their own and don't
     need this; this is the only one sized by two percentages instead. */
  aspect-ratio: auto;
  width:100%; height:116%; object-fit:cover; object-position: 50% 12%;
  filter: grayscale(1) contrast(1.28) brightness(1.02);
  will-change: transform;
}
.hero__scrim{
  position:absolute; left:0; right:0; bottom:0; height:46%; z-index:1;
  background: linear-gradient(to top, rgba(4,4,4,.92) 0%, rgba(4,4,4,.6) 42%, rgba(4,4,4,0) 100%);
  pointer-events:none;
}
.hero__scrim::before{
  content:''; position:absolute; left:0; right:0; bottom:0; height:60%;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, transparent 100%);
}
.hero__title{
  position: relative; z-index:2;
  font-size: clamp(3.2rem, 15vw, 13.5rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: clamp(1rem,3vw,2rem) 0;
  color: #fff;
  mix-blend-mode: difference;
}
.line-mask{ display:block; overflow:hidden; }
.line-inner{ display:inline-block; }
/* base hidden state only applies once JS can also reveal it — same
   progressive-enhancement contract as .reveal-up below */
.js .line-inner{ transform: translateY(115%); }
/* scroll-triggered variant of the same mask primitive used in the hero:
   hero itself is GSAP-driven (page-load stagger, scoped to .hero__title
   in main.js); everywhere else reuses this CSS-only IntersectionObserver
   path so the "line lifts into place" motion reads as one system across
   the page, not a hero-only flourish. */
.js .line-mask.reveal-up .line-inner{ transition: transform var(--dur-reveal) var(--ease-reveal); }
.line-mask.reveal-up.is-visible .line-inner{ transform: none; }
/* will-change scoped to the pending/animating window only, not
   permanent — a hero__title line-inner sits under mix-blend-mode:
   difference (see .hero__title above) while .hero__photo img runs its
   own scroll-scrubbed parallax transform (main.js); an always-on
   composited layer on the text there produced visible seams where the
   blend result didn't line up with the letterforms, worse at some
   screen scale factors than others. Hinting only while a transition is
   about to run/is running, then letting the browser drop the hint once
   .is-visible lands, avoids leaving that layer promoted indefinitely. */
.js .line-mask.reveal-up:not(.is-visible) .line-inner{ will-change: transform; }

.hero__bottom{
  position:relative; z-index:3;
  display:flex; justify-content:space-between; align-items:flex-end; gap:2rem;
  flex-wrap: wrap; margin-top: 1.5rem;
}
.hero__lead{ max-width: 34ch; font-size: clamp(1.125rem,1.6vw,1.25rem); color: var(--cream); }

.scroll-cue{
  position:absolute; bottom: 6.2rem; right: var(--container); left:auto;
  width: 1px; height: 46px; background: rgba(255,255,255,.25); overflow:hidden; z-index:3;
}
.scroll-cue span{
  position:absolute; top:-100%; left:0; width:100%; height:100%; background: var(--accent-decor);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue{
  0%{ top:-100%; } 50%{ top:0; } 100%{ top:100%; }
}

/* ==========================================================================
   Trust / marquee
   ========================================================================== */
.trust{
  background: var(--black); border-top:1px solid var(--line-on-dark); border-bottom:1px solid var(--line-on-dark);
  padding: 1.6rem 0; display:flex; align-items:center; gap: 2rem; overflow:hidden;
}
.hero__trust{
  position:absolute; left:0; right:0; bottom:0; z-index:3;
  border-bottom:none; background: rgba(6,6,6,.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.trust--press{ opacity:.9; }
.trust__label{ flex:none; padding-left: var(--container); white-space:nowrap; }
.marquee{ overflow:hidden; flex:1; min-width:0; }
.marquee__track{
  display:inline-flex; align-items:center; gap: 1.1rem; white-space:nowrap;
  font-family: var(--font-display); font-weight:600; font-size: 1rem;
  animation: marquee 32s linear infinite;
  color: var(--grey-on-dark);
}
.marquee__track span:nth-child(2n){ color: var(--accent-decor); opacity:.8; font-size:.7em; }
.marquee--b .marquee__track{ animation-duration: 22s; color: var(--grey-on-dark); }
@keyframes marquee{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ==========================================================================
   Manifesto beat
   ========================================================================== */
.manifesto{
  background: var(--accent); color: var(--black);
  padding: clamp(4rem,11vw,8rem) var(--container);
  display:flex; justify-content:center; text-align:center;
}
.manifesto__text{
  font-family: var(--font-display); font-weight:800;
  font-size: clamp(2.2rem,7vw,5.5rem); line-height:1.1; letter-spacing:-0.01em;
  /* 16ch fit the original single phrase's longest line (26 characters)
     only marginally — some of the rotating phrases run longer (up to
     32), and at mid-range viewport widths 16ch wasn't enough, forcing
     an unwanted mid-line wrap that also grew the block's height.
     22ch gives real headroom for all six phrases' lines at any
     fluid-clamp viewport width, not just the one that happened to be
     screenshotted. */
  max-width: 28ch; cursor:default; width:100%;
  /* Fixed 2-line box, content centered inside it — every phrase is
     authored as exactly two lines (see data-phrases), so this height
     never changes between phrases; centering is a safety net in case
     a future phrase is shorter. */
  display:flex; flex-direction:column; justify-content:center;
  min-height: 2.4em;
}
/* Global :focus-visible outline is var(--accent) — same as this
   section's background, so the default ring would be invisible here. */
.manifesto__text:focus-visible{ outline-color: var(--black); }
/* Hard block on automatic wrapping within a line — JS sizes the font to
   fit each phrase's real text, but the decode animation briefly shows
   random scramble characters (all caps/digits, often wider than the
   real lowercase letters) mid-transition. A stray wide frame could
   nudge a line just past the box edge and trigger a genuine 3rd-line
   wrap, which visibly changed the block's height mid-animation. nowrap
   makes that impossible; <br> still breaks the two authored lines
   normally since it isn't a wrap-driven break. Any residual transient
   overflow just clips silently against .line-mask's overflow:hidden. */
.manifesto__text .line-inner{ white-space: nowrap; }
/* Reveal mask's overflow:hidden (needed for the slide-up animation)
   was clipping descenders on the last line (у, р, д…) — line-height
   alone got the layout box to a razor-thin 0px margin, which measures
   as "not overflowing" but a bold display weight's glyph ink commonly
   paints slightly past its formal line-box, so it still visibly clipped.
   This adds an explicit, generous buffer inside the clip box itself
   rather than fighting it via line-height (which also changes the
   spacing between the two lines — not what this fixes). em-based so it
   scales with the fluid font-size. */
.manifesto__text .line-mask{ padding-bottom: 0.18em; }
/* per-letter hover: the sentence enacts itself — point at a letter and it
   slips away, same idea as "решение не там, где его ищут". Rest positions
   are measured once and cached in JS; this only ever sets a translate
   offset from that cached rest point, never reads position back mid-hover
   (that would drift/jitter). Letters ease toward each new target via this
   transition, not a manual JS tween. */
.letter{ display:inline-block; transition: transform .5s cubic-bezier(.16,1,.3,1); will-change:transform; }
.letter--space{ white-space:pre; }

/* ==========================================================================
   About
   ========================================================================== */
.about__grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: clamp(2rem,4vw,3.5rem);
  align-items:start;
  /* no max-width: the parent .section's symmetric left/right padding
     (var(--container)) already bounds this — an extra cap here just
     re-creates an asymmetric gap on the right that has nothing to do
     with the force-line (which is about where content STARTS, not
     how much space is left over). */
}
.about__pull{
  grid-column: span 7;
  font-family: var(--font-display); font-weight:700;
  font-size: clamp(1.6rem,3.4vw,2.6rem); line-height:1.2;
}
.about__photo{ grid-column: span 5; grid-row: span 2; }
.about__photo img{
  width:100%; height:auto; aspect-ratio: 4/5; object-fit:cover; object-position: 50% 15%;
  filter: grayscale(1) contrast(1.22) brightness(1.02);
  border-radius: var(--radius-sharp);
}
.about__body{ grid-column: span 7; display:flex; flex-direction:column; gap:1rem; max-width: 56ch; color: var(--grey-on-light); font-size:1.125rem; }
.stat-grid{
  grid-column: span 7;
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem;
  border-top: 1px solid var(--line-on-light); padding-top: 2.4rem; margin-top: 1rem;
}
.stat-grid__item{ display:flex; flex-direction:column; gap:.35rem; min-width:0; }
.stat-grid__num{ font-family: var(--font-display); font-weight:700; font-size: clamp(2.2rem,3.6vw,3rem); color: var(--accent-decor); font-variant-numeric: tabular-nums; }
.stat-grid__label{ font-size:.76rem; letter-spacing:.02em; color: var(--grey-on-light); text-transform:uppercase; }

@media (max-width: 900px){
  .about__pull, .about__body, .stat-grid{ grid-column: span 12; }
  .about__photo{ grid-column: span 12; grid-row:auto; }
}
@media (max-width: 560px){
  .stat-grid{ grid-template-columns: minmax(0,1fr); gap: 1.4rem; }
  .stat-grid__item{ flex-direction: row; align-items: center; gap: 1.2rem; }
  /* fixed-width number column (not flex:none) so "11" and "6" don't push
     the label to different X positions row to row — force-line */
  .stat-grid__num{ flex: none; width: 2.2em; }
  .stat-grid__label{ flex: 1; min-width: 0; }
}

/* ==========================================================================
   Index list (used for both Education and Expertise)
   ========================================================================== */
.index-list{ /* fills the section's padding box — see note on .about__grid */ }
.index-list__item{
  position:relative;
  display:grid; grid-template-columns: auto 1fr auto; align-items:center; gap: clamp(1.2rem,3vw,2.5rem);
  padding: clamp(1.8rem,3.4vw,2.8rem) 0; border-top: 1px solid var(--line-on-light);
}
/* No full-row invert on hover: these rows aren't links, and a solid
   background fill + text-color swap reads as a button/nav-item active
   state (flagged in review — visitors read it as clickable). The shift
   alone is enough feedback without implying an affordance that isn't
   there. Transform (not padding) so it's compositor-only and smooth. */
.index-list__item > *{
  position:relative; z-index:1;
  transition: transform var(--dur-spatial) var(--ease-reveal);
}
.index-list__item:hover > *{ transform: translateX(.6rem); }
.index-list__item:last-child{ border-bottom: 1px solid var(--line-on-light); }
.index-list__num{
  font-family: var(--font-display); font-weight:800; line-height:.8;
  font-size: clamp(2.4rem,5vw,3.8rem);
  -webkit-text-stroke: 1.5px var(--accent-decor); color: transparent;
}
.index-list__mid{ display:flex; flex-direction:column; gap:.6rem; min-width:0; }
.index-list__name{ font-family: var(--font-display); font-weight:700; font-size: clamp(1rem,1.6vw,1.25rem); }
/* this component only ever appears in the dark Expertise section (Education's
   index-list items have no .index-list__desc at all) — it was using
   --grey-on-light, a token meant for cream backgrounds, which computes to
   ~2.8:1 against black and fails WCAG AA (needs 4.5:1). --grey-on-dark
   is the token actually meant for this context, ~6.2:1. */
.index-list__desc{ font-family: var(--font-body); font-weight:400; font-size:1.05rem; line-height:1.5; color: var(--grey-on-dark); max-width: 56ch; }
.index-list__role{ font-family: var(--font-mono); font-size:.72rem; letter-spacing:.04em; text-transform:uppercase; color: var(--grey-on-light); text-align:right; }
/* .index-list is shared by the dark Expertise section and the light
   Education section; --grey-on-light above is correct for Education but
   fails contrast on the dark section (same issue as .index-list__desc). */
.section--dark .index-list__role{ color: var(--grey-on-dark); }
@media (max-width: 640px){
  .index-list__item{ grid-template-columns: auto 1fr; }
  .index-list__role{ grid-column: 2; text-align:left; margin-top:.3rem; }
}

/* ==========================================================================
   Speaking
   ========================================================================== */
.speaking{ padding-top: clamp(4rem,10vw,7rem); }
.speaking__grid{ display:grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(2rem,5vw,4rem); align-items:center; position:relative; z-index:1; }
.speaking__photo img{
  width:100%; height:auto; aspect-ratio: 3/4; object-fit:cover; object-position: 50% 12%; border-radius: var(--radius-sharp);
  filter: grayscale(1) contrast(1.22) brightness(.98);
}
.speaking__content .section__title{ margin-bottom: 2rem; }
/* the headline itself is the typewriter — real display weight (700)
   doesn't exist for the mono face (only 400/500 loaded), so use its
   heaviest real weight instead of letting the browser synthetic-bold it */
.speaking__typewriter{ font-weight:500; letter-spacing:-0.005em; }
@media (max-width: 820px){
  .speaking__grid{ grid-template-columns: minmax(0,1fr); }
}

/* ==========================================================================
   Media grid
   ========================================================================== */
.media-grid{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); grid-auto-rows: minmax(160px,auto); gap: 1px; background: var(--line-on-light); border:1px solid var(--line-on-light); }
.media-card{
  background: var(--cream); color: var(--black); padding: 2.4rem; display:flex; flex-direction:column; justify-content:space-between; gap:1.5rem;
  position:relative; transition: background var(--dur-local), color var(--dur-local);
}
.media-card:hover{ background: var(--black); color: var(--cream); }
.media-card--big{ grid-column: span 2; grid-row: span 2; }
.media-card__type{ font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color: var(--grey-on-light); }
.media-card:hover .media-card__type{ color: var(--grey-on-dark); }
.media-card h3{ font-size: clamp(1.2rem,2.4vw,2rem); line-height:1.15; }
.media-card__head-group{ display:flex; flex-direction:column; gap:1rem; }

/* shared typewriter primitive: .typewriter hosts a text span, JS
   (main.js) drives .typewriter__text via data-typewriter (a JSON array
   of phrases) on the host. Sizing/color is set per context — used both
   in the Telegram media card and the Speaking headline. */
.typewriter{ font-family: var(--font-mono); }
/* Cursor is a border, not a separate inline-block sibling — an
   inline-block's own width participates in the line-wrap calculation,
   so as text grew a trailing word would flip between lines depending on
   whether the cursor still fit after it (visible as the line above
   jittering whenever a new line appeared). A border adds no flow-width,
   and for inline elements border-right only paints on the last line
   fragment — so it always trails the last character correctly even
   across wraps, with no side effect on where lines break. */
.typewriter__text{
  display:inline; border-right: .1em solid currentColor;
  animation: typewriter-blink 1s step-end infinite;
}
@keyframes typewriter-blink{ 50%{ border-right-color:transparent; } }
@media (prefers-reduced-motion: reduce){ .typewriter__text{ animation:none; border-right-color:transparent; } }

/* vertical ticker — a distinct reveal language from the typewriter used
   in Speaking (reusing that here too would flatten both into one
   effect). One line at a time slides up and out, the next slides up
   and in from below; same easing family as the rest of the site's
   reveals (--ease-reveal), just looped instead of one-shot. Kept to
   single-line phrases on purpose — a multi-line variant would need the
   same height-reservation care as the typewriter did. */
.media-card__quote{
  position:relative; overflow:hidden;
  /* fixed at 2 lines' worth — the 20-phrase set varies more in length
     than the original 7 did, some wrap to a second line and some
     don't; a shorter quote just leaves a little air below it, which is
     a smaller problem than the surrounding card height jumping. */
  height:2.9em; line-height:1.45em;
  font-size:.9rem; color: var(--grey-on-light);
}
.media-card__quote::before{
  content:'“'; position:absolute; left:-.15em; top:-.5em; z-index:0;
  font-family: var(--font-display); font-size:2.6em; font-weight:700;
  color: var(--grey-on-light); opacity:.14; line-height:1;
}
.media-card:hover .media-card__quote{ color: var(--grey-on-dark); }
.media-card:hover .media-card__quote::before{ color: var(--grey-on-dark); }
.media-card__quote-text{
  position:relative; z-index:1; display:block;
  transition: transform .5s var(--ease-reveal), opacity .5s ease;
}
@media (prefers-reduced-motion: reduce){ .media-card__quote-text{ transition:none; } }
.media-card__arrow{ align-self:flex-end; font-size:1.4rem; transition: transform var(--dur-local); }
.media-card:hover .media-card__arrow{ transform: translate(4px,-4px); color: var(--accent); }
@media (max-width: 820px){
  .media-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .media-card--big{ grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px){
  .media-grid{ grid-template-columns: minmax(0,1fr); }
  .media-card--big{ grid-column: span 1; }
}

/* ==========================================================================
   Values
   ========================================================================== */
.values__inner{ display:grid; grid-template-columns: auto minmax(0,1fr); gap: clamp(1.5rem,4vw,3rem); align-items:center; max-width: 980px; }
.values__photo{ width: 120px; height:120px; border-radius:50%; object-fit:cover; filter: grayscale(1) contrast(1.1); }
.values__quote{ font-family: var(--font-display); font-weight:700; font-size: clamp(1.3rem,2.6vw,1.9rem); line-height:1.25; margin: .6rem 0 .8rem; }
.values__note{ color: var(--grey-on-light); font-size:1.05rem; }
@media (max-width: 560px){
  .values__inner{ grid-template-columns: minmax(0,1fr); text-align:center; }
  .values__photo{ margin: 0 auto; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer{
  position:relative; background: var(--black); color: var(--cream);
  padding: clamp(8rem,17vw,13rem) var(--container) clamp(5rem,9vw,7rem);
}
.footer__title{
  position:relative; z-index:1; margin-top: 2.5rem;
  font-size: clamp(2.6rem,9vw,6.5rem); line-height: .98; letter-spacing:-.01em;
}
.footer__contact-grid{
  position:relative; z-index:1;
  margin-top: clamp(3rem,7vw,5rem);
  border-color: var(--line-on-dark); background: var(--line-on-dark);
}
.footer__contact-grid .media-card{ padding: clamp(1.8rem,3.4vw,2.4rem); }
@media (min-width: 561px){
  .footer__contact-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.footer__row{
  position:relative; z-index:1;
  margin-top: clamp(4rem,9vw,6rem); padding-top: 2.2rem; border-top: 1px solid var(--line-on-dark);
  font-size:.85rem; color: var(--grey-on-dark);
}

/* ==========================================================================
   Reveal animation base state — only hidden once JS confirms it can reveal it
   ========================================================================== */
.js .reveal-up{ opacity:0; transform: translateY(18px); }
.reveal-up.is-visible{
  opacity:1; transform:none;
  /* --stagger-delay is set per-child on repeated-sibling lists (index-list,
     stat-grid, media-grid) below; unset everywhere else, so it never
     touches this element's other (hover) transitions. */
  transition: opacity var(--dur-spatial) ease var(--stagger-delay,0ms), transform var(--dur-spatial) ease var(--stagger-delay,0ms);
}

/* Portrait curtain-reveal: a solid panel wipes off the photo as it enters —
   same "uncover, don't fade" language as the line-mask above, applied to
   imagery instead of type. Paired with .reveal-up so the photo itself still
   settles in underneath the wipe. */
.img-reveal{ position:relative; overflow:hidden; }
.img-reveal::after{
  content:''; position:absolute; inset:0; z-index:2;
  background: var(--black); transform-origin:top; transform: scaleY(1);
  transition: transform var(--dur-reveal) var(--ease-reveal);
}
.img-reveal.is-visible::after{ transform: scaleY(0); }

/* Staggered entrance for repeated-sibling lists/grids — each item already
   has its own .reveal-up/IntersectionObserver entry; this only adds a
   small cascading delay so items entering together read as one
   choreographed beat instead of firing in lockstep. */
.index-list__item:nth-child(1){ --stagger-delay: 0ms; }
.index-list__item:nth-child(2){ --stagger-delay: 60ms; }
.index-list__item:nth-child(3){ --stagger-delay: 120ms; }
.index-list__item:nth-child(4){ --stagger-delay: 180ms; }
.index-list__item:nth-child(5){ --stagger-delay: 240ms; }
.index-list__item:nth-child(6){ --stagger-delay: 300ms; }
.stat-grid__item:nth-child(1){ --stagger-delay: 0ms; }
.stat-grid__item:nth-child(2){ --stagger-delay: 90ms; }
.stat-grid__item:nth-child(3){ --stagger-delay: 180ms; }
.media-card:nth-child(1){ --stagger-delay: 0ms; }
.media-card:nth-child(2){ --stagger-delay: 90ms; }
.media-card:nth-child(3){ --stagger-delay: 180ms; }
.media-card:nth-child(4){ --stagger-delay: 270ms; }

/* Marquees keep moving indefinitely — WCAG 2.2.2 requires a pause
   mechanism for auto-updating content running longer than 5s, and it
   has to be operable by keyboard, not just a mouse. Marquees carry
   tabindex="0" in the markup so :focus actually applies to something. */
.marquee:hover .marquee__track,
.marquee:focus .marquee__track,
.marquee:focus-within .marquee__track{ animation-play-state: paused; }

/* ==========================================================================
   Reduced motion — HARD requirement per the design corpus: honoured
   absolutely, not just where GSAP happens to be gated in JS.
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  .js .reveal-up{ opacity:1; transform:none; }
  .reveal-up.is-visible{ transition:none; }
  .js .line-inner{ transform:none; }
  .line-mask.reveal-up .line-inner{ transition:none; }
  .img-reveal::after{ transition:none; transform: scaleY(0); }
  .orbit-ring{ animation:none; }
  .scroll-cue span{ animation:none; top:0; opacity:.5; }
  .marquee__track{ animation-play-state: paused; }
  .magnetic{ transition:none; }
}

/* ==========================================================================
   Cookie / analytics notice — compact, bottom-left, same sharp-cornered
   black surface as the marquee bars; dismiss remembered in localStorage.
   ========================================================================== */
.consent{
  position:fixed; left:var(--container); bottom:1.25rem; z-index:150;
  display:flex; align-items:center; gap:1.1rem;
  max-width:min(30rem, calc(100vw - 2 * var(--container)));
  padding:.9rem 1rem .9rem 1.1rem;
  background:var(--black); color:var(--cream);
  border:1px solid var(--line-on-dark); border-radius:var(--radius-sharp);
  opacity:0; transform:translateY(12px);
  transition: opacity var(--dur-spatial) ease, transform var(--dur-spatial) var(--ease-reveal);
}
.consent.is-visible{ opacity:1; transform:none; }
.consent__text{ margin:0; font-size:.78rem; line-height:1.45; color:var(--grey-on-dark); }
.consent__btn{ flex:none; background:transparent; color:var(--cream); font-family:inherit; cursor:pointer; }
@media (max-width: 560px){
  .consent{ right:var(--container); max-width:none; bottom:.9rem; }
}
@media (prefers-reduced-motion: reduce){ .consent{ transition:none; transform:none; } }
