@charset "UTF-8";
@font-face {
  font-family: 'Kaspersky Sans Mono';
  src: url('./fonts/KasperskySansMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Kaspersky Sans Display';
  src: url('./fonts/KasperskySansDisplay-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Kaspersky Sans Display';
  src: url('./fonts/KasperskySansDisplay-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Kaspersky Sans Display';
  src: url('./fonts/KasperskySansDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #e9faf5;
  --ink: #131315;
  --brand: #00a88e;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Kaspersky Sans Display', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage { position: relative; height: 100vh; height: 100svh; }
html, body { overflow: hidden; overscroll-behavior: none; }

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;   /* no min-height: below 540px it cropped the CTA and carousel controls (zoom, landscape phones) */
  background: var(--bg);
}

#gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.logo {
  position: absolute;
  z-index: 3;
  left: clamp(16px, 2.1vw, 44px);
  top: clamp(16px, 4vh, 42px);
  width: clamp(110px, 9.9vw, 210px);
  color: var(--brand);
  opacity: 0;
  transition: color 0.7s var(--out);
  transform: translateY(calc(var(--logo-y, 0px) - 8px));
  transition: opacity 1.1s var(--out) 2.6s;
}
.logo svg { display: block; width: 100%; height: auto; }
.logo svg path { fill: currentColor; }
.is-s2 .logo { color: #fff; }
.is-s2 .scroll:not(.scroll--s2) { pointer-events: none; }
.is-ready .logo { opacity: 1; transform: translateY(var(--logo-y, 0px)); }

/* language switch: the story tabs' pill in miniature — the current language sits
   on an ink thumb; real links, so it works with Tab / Enter out of the box */
.lang {
  --pad: 4px;
  position: absolute;
  z-index: 3;
  right: clamp(16px, 2.1vw, 44px);
  top: clamp(12px, calc(4vh - 6px), 36px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: var(--pad);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1.5px rgba(19, 19, 21, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 1.1s var(--out) 2.6s, background-color 0.7s var(--out), box-shadow 0.7s var(--out);
}
.is-ready .lang { opacity: 1; }
.lang__ind {
  position: absolute;
  top: var(--pad); bottom: var(--pad); left: var(--pad);
  width: calc(50% - var(--pad));
  border-radius: 999px;
  background: var(--ink);
  transition: background-color 0.7s var(--out);
}
.lang[data-cur="en"] .lang__ind { translate: 100% 0; }
.lang__opt {
  position: relative;
  min-width: 44px;
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(19, 19, 21, 0.72);
  font: 500 14px/1 'Kaspersky Sans Display', system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: color 0.3s var(--out), background-color 0.3s var(--out);
}
.lang__opt[aria-current="page"] { color: #fff; cursor: default; }
.lang__opt:not([aria-current]):hover { color: var(--ink); background-color: rgba(42, 242, 166, 0.32); }
.lang__opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }   /* concentric with the pill */
/* screen 2 (green): the switch keeps its light track + ink text — a white switch on
   green read at 1.3:1 (WCAG 1.4.3). A solid track keeps the text at 4.5:1 or better. */
.is-s2 .lang { background: rgba(255, 255, 255, 0.82); }
.is-modal .lang { opacity: 0; pointer-events: none; transition: opacity 0.25s var(--out); }
/* English quotes for the pull quote */
:lang(en) .mquote::before { content: '\201C'; }

/* the word lives in the GL scene; this keeps it for assistive tech */
.title {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.no-gl .title {
  position: absolute; width: auto; height: auto; clip: auto; overflow: visible;
  left: 6vw; right: 6vw; top: 22vh;
  font-size: 11vw; font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1;
}

/* ── scroll indicator: label + arrow as in the reference; on hover a
   hexagon assembles around the arrow ─────────────────────────────── */
.scroll {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;            /* placed by JS on the hexagon (--px, --py) */
  display: grid;
  justify-items: center;
  gap: 0.35vw;
  border: 0;
  background: none;
  color: var(--ink);
  font: 400 clamp(16px, 1.55vw, 32px)/1 'Kaspersky Sans Display', system-ui, sans-serif;
  cursor: pointer;
  translate: -50% 0;
  transform: translate(var(--px, 0px), var(--py, 0px));
  visibility: hidden;
  -webkit-tap-highlight-color: transparent;
}
.is-ready .scroll { visibility: visible; animation: fadein 1.1s var(--out) 2.9s both; }
@keyframes fadein { from { translate: -50% 10px; filter: opacity(0); } to { translate: -50% 0; filter: opacity(1); } }

.scroll__label { transition: letter-spacing 0.6s var(--out), transform 0.6s var(--out); }

.hex {
  width: clamp(64px, 5.6vw, 116px);
  height: auto;
  overflow: visible;
}
.hex__arrow path {
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vector-effect: non-scaling-stroke;
}
/* soft hover: a rounded hexagon outline eases in, a rounded core swells behind the arrow */
.hex__spin { transform: rotate(-20deg) scale(0.86); opacity: 0; transition: transform 0.8s var(--out), opacity 0.45s var(--out); }
.hex__ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.hex__core {
  fill: var(--ink);
  transform: scale(0.4);
  transform-origin: 0 0;
  opacity: 0;
  transition: transform 0.7s var(--out), opacity 0.4s var(--out);
}
.hex__arrow { transition: transform 0.6s var(--out); animation: nudge 3.6s var(--out) infinite; }
.hex__arrow path { transition: stroke 0.4s var(--out); }

@keyframes nudge {
  0%, 62%, 100% { translate: 0 0; }
  70% { translate: 0 5px; }
  78% { translate: 0 -1px; }
  86% { translate: 0 1px; }
}

.scroll:hover .hex__spin, .scroll:focus-visible .hex__spin { transform: none; opacity: 1; }
.scroll:hover .hex__core, .scroll:focus-visible .hex__core { transform: scale(0.74); opacity: 1; transition-delay: 0.05s; }
.scroll:hover .hex__arrow, .scroll:focus-visible .hex__arrow { animation: none; transform: translateY(1px) scale(0.85); }
.scroll:hover .hex__arrow path, .scroll:focus-visible .hex__arrow path { stroke: var(--bg); }
.scroll:hover .scroll__label { letter-spacing: 0.06em; transform: translateY(-3px); }
.scroll:active .hex__core { transform: scale(0.66); transition-duration: 0.15s; }


@media (prefers-reduced-motion: reduce) {
  .hex__arrow { animation: none; }
}

/* ── screen 2 · editorial, revealed by the hexagon flood ────────────── */
.s2 {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: var(--ink);
  pointer-events: none;
}
.is-s2-in .s2 { pointer-events: auto; }

/* masked line reveal: each line rises out of its own clip */
.s2 .ln { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.s2 .ln { perspective: 700px; }
/* lines come out of depth: start low, pushed back and tipped away,
   then swing forward into place */
.s2 .ln > span {
  display: inline-block;
  transform: translate3d(0, 115%, -150px) rotateX(-26deg);
  transform-origin: 50% 100%;
  transition: transform 0.45s cubic-bezier(0.55, 0, 0.75, 0.2);
}
.is-s2-in .s2 .ln > span {
  transform: none;
  transition: transform 1.1s var(--out) calc(var(--i) * 85ms);
}

.s2__head, .s2__col p { will-change: transform; transform-origin: 0% 50%; }   /* scale about the left edge: one shared margin */
.s2__head {
  position: absolute;
  left: 5.85vw;
  top: 22.4vh;
  margin: 0;
  font: 500 max(3.6vw, 2rem)/1.25 'Kaspersky Sans Display', system-ui, sans-serif;
  letter-spacing: -0.012em;
}
.s2__head .ln > span { white-space: nowrap; }

.s2__col {
  position: absolute;
  left: 51.15vw;
  top: 24vh;
  width: 40vw;
}
.s2__col p, .s2 .s2__col p.ln {
  margin: 0 0 max(1.05vw, 0.7rem);
  font: 400 max(1.5vw, 1.2rem)/1.57 'Kaspersky Sans Display', system-ui, sans-serif;
}
.s2 .s2__col p.s2__lead.ln {
  margin-top: max(3.3vw, 1.6rem);
  font: 500 max(2.25vw, 1.55rem)/1.33 'Kaspersky Sans Display', system-ui, sans-serif;
  letter-spacing: -0.008em;
}

/* pills wipe in after their line has landed */
.pill {
  position: relative;
  display: inline-block;
  padding: 0 0.2em;
  isolation: isolate;
  transition: color 0.3s var(--out);
}
.pill::before {
  content: '';
  position: absolute;
  inset: 0.04em 0 0.02em;
  z-index: -1;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--out);
}
.pill--ink::before { background: var(--ink); }
.pill--paper::before { background: #fff; }
.is-s2-in .pill::before { transform: scaleX(1); transition: transform 0.75s var(--spring) calc(var(--i) * 85ms + 0.55s); }
.is-s2-in .pill--ink { color: #f2fff9; transition: color 0.4s var(--out) calc(var(--i) * 85ms + 0.6s); }

.s2__go {
  display: inline-block;
  width: 1.05em;
  margin-left: 0.95em;
  vertical-align: 0.04em;
  color: var(--ink);
}
.s2__go svg { display: block; width: 100%; overflow: visible; }
.s2__go path { fill: none; stroke: currentColor; stroke-width: 2.4; vector-effect: non-scaling-stroke; }

@media (max-aspect-ratio: 9/10) {
  .s2__head { left: 6vw; top: 13vh; font-size: max(7.2vw, 1.6rem); }
  .s2__col { left: 6vw; top: 40vh; width: 88vw; }
  .s2 .s2__col p.ln { font-size: max(3.9vw, 0.95rem); margin-bottom: 2.4vw; }
  .s2 .s2__col p.s2__lead.ln { font-size: max(5.4vw, 1.3rem); margin-top: 5vw; }
}
/* compact landscape (small windows, or browser zoom ≥ ~150%): one column that can
   scroll, so zoomed text never runs off the screen (WCAG 1.4.4 / 1.4.10) */
.is-compact .s2 {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: max(84px, 12vh) 6vw 40px;
  /* text scrolling up fades out before it reaches the logo and the language switch */
  -webkit-mask-image: linear-gradient(transparent 0, transparent 52px, #000 84px);
  mask-image: linear-gradient(transparent 0, transparent 52px, #000 84px);
}
.is-compact .s2__head, .is-compact .s2__col { position: relative; left: auto; top: auto; width: auto; max-width: 46rem; }
.is-compact .s2__col { margin-top: 1.6rem; }
.is-compact .scroll.scroll--s2 { position: relative; left: auto; bottom: auto; margin: 2rem auto 0; translate: none; width: max-content; }

@media (prefers-reduced-motion: reduce) {
  .s2 .ln > span, .is-s2-in .s2 .ln > span { transition-duration: 0.01s; transition-delay: 0s; }
}

/* screen 2 CTA: the same button, bottom-centre in the white fog */
.scroll.scroll--s2 {
  left: 50%;
  top: auto;
  bottom: var(--cta-b, 6.5vh);
  visibility: hidden;
  opacity: 0;
  scale: 0.94;
  animation: none;
  transition: opacity 0.3s var(--out), scale 0.3s var(--out), visibility 0s 0.3s;
}
.is-s2-in .scroll.scroll--s2 {
  visibility: visible;
  opacity: 1;
  scale: 1;
  transition: opacity 0.9s var(--out) 1.1s, scale 1.1s var(--spring) 1.1s, visibility 0s 0s;
}

/* ── screen 3 · carousel name tags ─────────────────────────────────── */
.s3 { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.s3__tags { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.tag {
  --v: #9b89f2;
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  color: var(--ink);
  background: var(--v);
  border-radius: 999px;
  padding: 0.16em 0.6em 0.2em;
  font: 700 max(2.25vw, 1.1rem)/1.2 'Kaspersky Sans Display', system-ui, sans-serif;
  letter-spacing: -0.01em;
  transform: translate(var(--tag-x, -50%), -50%) rotate(var(--r)) scale(0);
  transition: transform 0.28s cubic-bezier(0.55, 0, 0.75, 0.2);
}
/* positions relative to the centre hexagon (from the layout) */
.tag:empty { display: none; }   /* e.g. no surname */
.tag--first { left: -10.9vw; top: 6.75vw; }
.tag--last  { --tag-x: -100%; left: -2vw; top: 11.85vw; }
.tag--role {
  left: 8.25vw; top: 8.75vw;
  font: 500 max(1.8vw, 0.9rem)/1.2 'Kaspersky Sans Display', system-ui, sans-serif;
  padding: 0.62em 1em;
  border-radius: 0.55em;
  /* long job titles wrap onto two balanced lines instead of running into the name */
  white-space: normal;
  width: max-content;
  max-width: 10em;
  text-align: center;
  text-wrap: balance;
  /* scalloped edge: rows of overlapping circles on a solid core */
  background:
    radial-gradient(circle closest-side, var(--v) 96%, transparent) 0 0 / 1.15em 1.15em repeat-x,
    radial-gradient(circle closest-side, var(--v) 96%, transparent) 0 100% / 1.15em 1.15em repeat-x,
    linear-gradient(var(--v), var(--v)) 0 50% / 100% calc(100% - 1.1em) no-repeat;
}
.is-s3-in .s3__tags.is-on .tag {
  transform: translate(var(--tag-x, -50%), -50%) rotate(var(--r)) scale(1);
  transition: transform 0.85s var(--spring) var(--d);
}
@media (max-aspect-ratio: 9/10) {
  .tag { font-size: 4.6vw; }
  .tag--role { font-size: 3.8vw; }
  /* portrait: the big hexagon is ~0.35vw tall each way — tags sit on its lower edge */
  .tag--first { left: -21vw; top: 27vw; }
  .tag--last  { left: -4vw; top: 38vw; }
  .tag--role  { left: 19vw; top: 33vw; }
}
/* phones: story text sized for a narrow sheet */
@media (max-width: 520px) {
  .modal__inner { padding: 8px 2px 48px; }
  .modal.is-narrow .modal__top .modal__portrait { margin-bottom: 44px; }   /* room for the role sticker */
  .modal__lead { font-size: 19px; }
  .modal__body p { font-size: 17px; }
  .mquote { padding-left: 36px; }
  .mquote::before { font-size: 54px; }
  .mquote blockquote { font-size: 23px; }
  .minfo__title { font-size: 22px; }
}

/* carousel buttons: the CTA's hexagon language */
.s3__nav {
  position: absolute;
  right: 4.2vw;
  bottom: 6.5vh;
  display: flex;
  align-items: center;
  gap: 0.9vw;
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.3s var(--out), translate 0.3s var(--out);
}
.is-s3-in .s3__nav {
  pointer-events: auto;
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.8s var(--out) 0.5s, translate 0.9s var(--spring) 0.5s;
}
.navbtn {
  width: clamp(48px, 4.2vw, 84px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.navbtn svg { display: block; width: 100%; height: 100%; overflow: visible; transition: transform 0.6s var(--spring); }
.navbtn svg { transition: transform 0.7s var(--out); }
.navbtn__hex {
  fill: rgba(255, 255, 255, 0.82);
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 0.45s var(--out), stroke 0.45s var(--out);
}
.navbtn__arrow {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.45s var(--out), translate 0.6s var(--out);
}
/* hover: the soft hexagon fills and gently scales; the arrow glides forward */
.navbtn:hover svg, .navbtn:focus-visible svg { transform: scale(1.06); }
.navbtn:hover .navbtn__hex, .navbtn:focus-visible .navbtn__hex { fill: var(--ink); stroke: var(--ink); }
.navbtn:hover .navbtn__arrow, .navbtn:focus-visible .navbtn__arrow { stroke: #fff; }
.navbtn[data-next]:hover .navbtn__arrow, .navbtn[data-next]:focus-visible .navbtn__arrow { translate: 2px 0; }
.navbtn[data-prev]:hover .navbtn__arrow, .navbtn[data-prev]:focus-visible .navbtn__arrow { translate: -2px 0; }
.navbtn:active svg { transform: scale(0.94); transition-duration: 0.15s; }

/* 2 → 3: screen 2 elements are swept up and away as the fog band reaches them */
.s2 .ln.is-out > span,
.is-s2-in .s2 .ln.is-out > span {
  transform: translate3d(0, -115%, -150px) rotateX(26deg);
  transform-origin: 50% 0%;
  transition: transform 0.55s cubic-bezier(0.55, 0, 0.75, 0.2);
}
.s2 .pill.is-out::before { transform: scaleX(0); }
.is-s2-in .scroll.scroll--s2.is-out {
  opacity: 0;
  scale: 0.94;
  translate: -50% -14px;
  pointer-events: none;
  transition: opacity 0.35s var(--out), scale 0.35s var(--out), translate 0.45s var(--out);
}

/* ── story modal ─────────────────────────────────────────────────────── */
.modal { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.is-modal-in .modal { pointer-events: auto; }
.is-modal .s3__tags, .is-modal .s3__nav { opacity: 0 !important; pointer-events: none !important; transition: opacity 0.25s var(--out); }

.modal__scroll {
  position: absolute;      /* left/top/width/height: placed inside the panel by JS */
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(transparent, #000 24px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(transparent, #000 24px, #000 calc(100% - 32px), transparent);
  overscroll-behavior: contain;
  scrollbar-width: none;
  outline: none;
}
.modal__scroll::-webkit-scrollbar { display: none; }
.modal__inner { padding: 24px 4px 56px; max-width: 760px; margin: 0 auto; color: var(--ink); }   /* comfortable line length */
.modal__top {
  display: grid;
  grid-template-columns: 200px 1fr;
  column-gap: 32px;
  align-items: start;
}
/* box the GL portrait is anchored to: hexagon width, head room above it */
.modal__portrait { position: relative; width: 200px; height: 266px; }
/* narrow box: portrait stacks above the name */
.modal.is-narrow .modal__top { display: block; }
.modal.is-narrow .modal__portrait { width: 168px; height: 224px; margin-bottom: 18px; }
.modal.is-narrow .modal__head { padding-top: 0; }
.modal.is-narrow .modal__name { font-size: 32px; }
.modal__head { padding-top: 16px; max-width: 560px; }
/* the role tag from the carousel, pinned to the portrait's corner */
.tag.mtag {
  left: 50%;
  top: 96%;
  font-size: 16px;
  transform: translate(-50%, -50%) rotate(-8deg) scale(0);
  transition: transform 0.25s var(--out);
}
.is-modal-in .tag.mtag { transform: translate(-50%, -50%) rotate(-8deg) scale(1); transition: transform 0.9s var(--spring) 0.45s; }
.modal .ln { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; perspective: 700px; }
.modal .ln > span {
  display: inline-block;
  transform: translate3d(0, 115%, -120px) rotateX(-22deg);
  transform-origin: 50% 100%;
  transition: transform 0.35s cubic-bezier(0.55, 0, 0.75, 0.2);
}
.is-modal-in .modal .ln > span { transform: none; transition: transform 1s var(--out) calc(var(--i) * 90ms + 0.05s); }
.modal__name { margin: 0; font: 700 40px/1.12 'Kaspersky Sans Display', system-ui, sans-serif; letter-spacing: -0.015em; }
.modal__role { margin: 0.55vw 0 0; font: 400 0.95vw/1.3 'Kaspersky Sans Display', system-ui, sans-serif; }
.modal__lead {
  /* lead: a larger, medium-weight intro set apart from the body */
  margin: 24px 0 0;
  font: 500 22px/1.42 'Kaspersky Sans Display', system-ui, sans-serif;
  letter-spacing: -0.008em;
}
.modal__body { margin-top: 28px; }

/* story tabs: a mint pill track with an ink thumb that slides between the
   sections; a small hexagon marks the open one (the site's mark, in miniature) */
.mtabs {
  --pad: 5px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 420px);
  margin-top: 46px;   /* clears the role sticker on the portrait */
  padding: var(--pad);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px rgba(19, 19, 21, 0.1);
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.25s var(--out), translate 0.25s var(--out);
}
.mtabs[hidden] { display: none; }
.is-modal-in .mtabs { opacity: 1; translate: 0 0; transition: opacity 0.9s var(--out) 0.5s, translate 1s var(--out) 0.5s; }
.mtabs__ind {
  position: absolute;
  top: var(--pad); bottom: var(--pad); left: var(--pad);
  width: calc(50% - var(--pad));
  border-radius: 999px;
  background: var(--ink);
  transition: translate 0.6s var(--spring);
}
.mtabs[data-active="1"] .mtabs__ind { translate: 100% 0; }
.mtab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(19, 19, 21, 0.72);
  font: 500 17px/1.2 'Kaspersky Sans Display', system-ui, sans-serif;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: color 0.3s var(--out), background-color 0.3s var(--out);
}
.mtab::before {
  content: '';
  flex: none;
  width: 0.74em; height: 0.85em;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: currentColor;
  opacity: 0.3;
  scale: 0.8;
  transition: background-color 0.3s var(--out), opacity 0.3s var(--out), scale 0.5s var(--spring), rotate 0.6s var(--out);
}
.mtab[aria-selected="true"] { color: #fff; cursor: default; }
.mtab[aria-selected="true"]::before { background: #2af2a6; opacity: 1; scale: 1; rotate: 30deg; }
.mtab[aria-selected="false"]:hover { color: var(--ink); background-color: rgba(42, 242, 166, 0.32); }
.mtab[aria-selected="false"]:hover::before { opacity: 0.6; }
.mtab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }   /* pill outline: concentric with the thumb */
.modal.is-narrow .mtabs { width: 100%; margin-top: 30px; }
@media (max-width: 520px) {
  .mtab { padding: 11px 8px; gap: 0.4em; font-size: 15px; }
}

/* «Справочно» */
.minfo__title {
  margin: 0 0 18px;
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.25s var(--out), translate 0.25s var(--out);
  font: 700 26px/1.2 'Kaspersky Sans Display', system-ui, sans-serif;
  letter-spacing: -0.012em;
}
.modal__body.is-tabin { animation: tabin 0.5s var(--out); }
.modal__body p.minfo__source { margin-top: 28px; font-style: italic; font-size: 15px; opacity: 0.72; }
.minfo__support { margin-top: 36px; }
.minfo__support a { color: inherit; text-decoration: underline; text-underline-offset: 0.16em; overflow-wrap: anywhere; }
.minfo__support a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@keyframes tabin { from { opacity: 0; translate: 0 14px; } }
.is-modal-in .minfo__title { opacity: 1; translate: 0 0; transition: opacity 0.9s var(--out) 0.3s, translate 1s var(--out) 0.3s; }
/* safety net: once the story has fully closed, nothing of it stays on screen */
html:not(.is-modal) .modal__scroll { visibility: hidden; }
/* pull quote: its own typographic voice — big medium type with a mint
   marker that sweeps in behind the words */
.mquote {
  margin: 32px 0 40px;
  padding-left: 46px;
  position: relative;
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.25s var(--out), translate 0.25s var(--out);
}
.mquote::before {
  content: '\00AB';   /* « — escaped so the file's encoding can't garble it */
  position: absolute;
  left: -2px;
  top: -16px;
  font: 700 68px/1 'Kaspersky Sans Display', system-ui, sans-serif;
  color: #9b89f2;
}
.mquote blockquote {
  margin: 0;
  font: 500 30px/1.3 'Kaspersky Sans Display', system-ui, sans-serif;
  letter-spacing: -0.012em;
}
.mquote mark {
  color: inherit;
  background: linear-gradient(transparent 58%, rgba(42, 242, 166, 0.55) 58%, rgba(42, 242, 166, 0.55) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.3s var(--out);
}
.mquote figcaption { margin-top: 14px; font: 400 15px/1.3 'Kaspersky Sans Display', system-ui, sans-serif; opacity: 0.7; }
.is-modal-in .mquote {
  opacity: 1; translate: 0 0;
  transition: opacity 0.9s var(--out) calc(var(--i) * 90ms + 0.3s), translate 1s var(--out) calc(var(--i) * 90ms + 0.3s);
}
.is-modal-in .mquote mark { background-size: 100% 100%; transition: background-size 1.3s var(--out) calc(var(--i) * 90ms + 0.9s); }
.modal__body p {
  margin: 0 0 20px;
  font: 400 18px/1.6 'Kaspersky Sans Display', system-ui, sans-serif;
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.25s var(--out), translate 0.25s var(--out);
}
.is-modal-in .modal__body p {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.9s var(--out) calc(var(--i) * 90ms + 0.3s), translate 1s var(--out) calc(var(--i) * 90ms + 0.3s);
}

.modal__close {
  position: absolute;
  width: 36px;               /* left/top placed by JS, inside the panel */
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  color: #0f9d6e;   /* 3.5:1 on the white panel (WCAG 1.4.11) */
  cursor: pointer;
  transform: scale(0) rotate(-90deg);
  transition: transform 0.3s var(--out);
}
.modal__close svg { display: block; width: 100%; height: 100%; }
.modal__close path { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: square; }
.is-modal-in .modal__close { transform: none; transition: transform 0.9s var(--spring) 0.35s; }
.is-modal-in .modal__close:hover, .is-modal-in .modal__close:focus-visible { transform: rotate(90deg) scale(1.08); transition: transform 0.5s var(--spring); }
/* hover / keyboard focus: a green circle closes in around the cross */
.modal__close::before {
  content: '';
  position: absolute;
  inset: -9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s var(--out), transform 0.35s var(--out);
}
.is-modal-in .modal__close:hover::before, .is-modal-in .modal__close:focus-visible::before { opacity: 1; transform: none; transition: opacity 0.2s var(--out), transform 0.5s var(--spring); }

.modal__bar {
  position: absolute;
  width: 5px;                /* left/top/height placed by JS, inside the panel */
  border-radius: 99px;
  background: rgba(34, 217, 154, 0.16);   /* track */
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.25s var(--out);
}
/* only a scrollbar when there is something to scroll */
.is-modal-in .modal__bar.is-scrollable { opacity: 1; pointer-events: auto; transition: opacity 0.8s var(--out) 0.5s; }
.modal__bar::before { content: ''; position: absolute; inset: 0 -0.8vw; }   /* wider hit area */
.modal__bar i {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 27%;
  border-radius: 99px;
  background: #0f9d6e;   /* 3.5:1 on white */
  transform: translateY(var(--y, 0px));
  cursor: grab;
  transition: background 0.2s;
}
.modal__bar i:hover, .modal__bar.is-drag i { background: #0a8f64; }
.modal__bar.is-drag i { cursor: grabbing; }

/* closing: the copy lifts away (quick, accelerating) before the panel collapses */
.is-modal-out .modal .ln > span { transform: translate3d(0, -110%, 0); transition: transform 0.32s cubic-bezier(0.55, 0, 0.75, 0.2); }
.is-modal-out .modal__body p, .is-modal-out .mquote, .is-modal-out .minfo__title, .is-modal-out .mtabs { opacity: 0; translate: 0 -14px; transition: opacity 0.22s var(--out), translate 0.3s cubic-bezier(0.55, 0, 0.75, 0.2); }
.modal.no-tr *, .modal.no-tr *::before { transition: none !important; }

/* ── footer: the legal line rises out of the tide once it has passed ── */
.foot { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.foot__bar {
  position: absolute;
  left: clamp(20px, 3.4vw, 56px); right: clamp(20px, 3.4vw, 56px);
  bottom: clamp(18px, 3.2vh, 36px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  font: 400 clamp(13px, 1.05vw, 16px)/1.35 'Kaspersky Sans Display', system-ui, sans-serif;
  color: var(--ink);
}
.foot__copy { font-weight: 500; }
.foot__legal { text-align: center; opacity: 0.72; }
.foot .ln { overflow: hidden; padding: 4px 0; }
.foot .ln > span {
  display: inline-flex; align-items: center; gap: 12px;
  transform: translate3d(0, 120%, 0);
  transition: transform 0.35s cubic-bezier(0.55, 0, 0.75, 0.2);
}
.is-foot-in .foot .ln > span { transform: none; transition: transform 1.1s var(--out) calc(var(--i) * 110ms + 0.15s); }
.foot__top {
  justify-self: end;
  pointer-events: none;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 500; color: inherit;
}
.is-foot-in .foot__top { pointer-events: auto; }
.foot__top svg { width: 44px; height: 44px; overflow: visible; transition: transform 0.7s var(--out); }
.foot__top:hover svg, .foot__top:focus-visible svg { transform: scale(1.06); }
.foot__top:hover .navbtn__hex, .foot__top:focus-visible .navbtn__hex { fill: var(--ink); }
.foot__top:hover .navbtn__arrow, .foot__top:focus-visible .navbtn__arrow { stroke: #fff; translate: 0 -2px; }
@media (max-width: 760px) {
  .foot__bar { grid-template-columns: 1fr auto; row-gap: 6px; }
  .foot__legal { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .foot__top { grid-row: 1; grid-column: 2; }
}

/* ── keyboard access ─────────────────────────────────────────────────── */
/* no generic boxes: every control shows focus in its own language */
:focus, :focus-visible { outline: none; }
/* hexagon buttons: focus looks exactly like hover (the hex fills, the arrow turns) */
/* logo: an underline slides in */
.logo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--out);
}
.logo:focus-visible::after { transform: scaleX(1); }
/* the story button: invisible; its focus ring is drawn by the GL scene around the
   centred hexagon, behind the figure (see uFRing in shaders.js) */
.s3__open {
  position: absolute;
  z-index: 0;
  padding: 0;
  border: 0;
  background: none;
  pointer-events: none;   /* the canvas hit-test handles pointer clicks */
}
.is-modal .s3__open { visibility: hidden; }
/* the story area shows focus through its scrollbar (the fade mask would clip an outline) */
.modal__scroll:focus-visible ~ .modal__bar i { background: #0a8f64; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0a8f64; }   /* ringed thumb = focused text */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── reduced motion: no movement, scaling or looping; state changes are instant ── */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}


/* ── all heroes: grid screen ───────────────────────────────────────── */
/* «Все герои»: a pill beside the carousel arrows, in the navbtn language */
.s3__all {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: calc(clamp(48px, 4.2vw, 84px) * 0.81 + 1.8px);   /* = the hexagon's outer height: its rounded tips reach 81% of the button box, plus the stroke */
  padding: 0 1.2em 0 0.95em;
  margin-right: 0.4vw;
  border: 0;
  box-shadow: inset 0 0 0 var(--stroke, 1.8px) var(--ink);   /* same 1.8px line as the hexagons' stroke */
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: 500 max(1vw, 15px)/1 'Kaspersky Sans Display', system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 0.45s var(--out), color 0.45s var(--out), transform 0.6s var(--out);
  -webkit-tap-highlight-color: transparent;
}
.s3__all svg { width: 1.35em; height: 1.35em; fill: currentColor; }
.s3__all:hover, .s3__all:focus-visible { background: var(--ink); color: #fff; transform: scale(1.04); }
.s3__all:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.s3__all:active { transform: scale(0.96); transition-duration: 0.15s; }

.grid {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #2af2a6;   /* the screen 2 mint: this layer floods first */
  color: var(--ink);
}
/* the page itself trails the mint flood a beat behind, and scrolls */
.grid__sheet {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
}
/* depth, as on the other screens: the footer's violet → mint haze drifting slowly
   behind the people, and the site's dotted grid over it — a fixed layer, so it stays put while scrolling */
.grid__bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.grid__bg::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(40% 50% at 10% 88%, rgba(144, 122, 241, 0.42), transparent 70%),
    radial-gradient(36% 46% at 92% 18%, rgba(42, 242, 166, 0.38), transparent 70%),
    radial-gradient(30% 40% at 60% 100%, rgba(84, 214, 212, 0.3), transparent 70%);
  animation: gHaze 22s ease-in-out infinite alternate;
}
.grid__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(19, 19, 21, 0.11) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 75%, transparent);
  mask-image: linear-gradient(transparent, #000 35%, #000 75%, transparent);
}
.grid__head, .grid__list { position: relative; z-index: 1; }
.grid__head { position: sticky; z-index: 2; }
@keyframes gHaze { to { transform: translate3d(3%, -4%, 0) scale(1.08); } }
/* picking a person: the grid fades away over the story that opens from the card */
.grid.is-handoff { opacity: 0; transition: opacity 0.45s var(--out) 0.06s; pointer-events: none; }
/* the ink outline that runs just ahead of the hexagon flood (drawn by JS) */
.grid__ring { position: fixed; inset: 0; z-index: 21; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.grid__ring path { fill: none; stroke: var(--ink); stroke-width: 2; }
.grid__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vh, 36px) clamp(16px, 4vw, 64px) clamp(12px, 2vh, 24px);
  background: linear-gradient(var(--bg) 70%, rgba(233, 250, 245, 0));
}
.grid__title { margin: 0; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; font: 700 clamp(26px, 2.6vw, 48px)/1.1 'Kaspersky Sans Display', system-ui, sans-serif; letter-spacing: -0.015em; perspective: 700px; }
/* the title rises out of its own mask, like the screen 2 lines */
.grid__title > span { display: inline-block; transform: translate3d(0, 115%, -120px) rotateX(-22deg); transform-origin: 50% 100%; transition: transform 0.3s cubic-bezier(0.55, 0, 0.75, 0.2); }
.grid.is-open .grid__title > span { transform: none; transition: transform 1s var(--out) 0.34s; }
.grid__close {
  position: relative;
  flex: none;
  width: 40px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  /* spins in on the same spring as the story's close button */
  transform: scale(0) rotate(-90deg);
  transition: transform 0.25s var(--out);
}
.grid.is-open .grid__close { transform: none; transition: transform 0.9s var(--spring) 0.46s; }
.grid__close svg { display: block; width: 100%; height: 100%; transition: transform 0.5s var(--spring); }
.grid__close path { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: square; }
.grid__close::before {   /* circle ring, as on the story's close button */
  content: '';
  position: absolute;
  inset: -9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s var(--out), transform 0.35s var(--out);
}
.grid__close:hover svg, .grid__close:focus-visible svg { transform: rotate(90deg); }
.grid__close:hover::before, .grid__close:focus-visible::before { opacity: 1; transform: none; }

.grid__list {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 13vw, 230px), 1fr));
  gap: clamp(20px, 2.6vw, 44px) clamp(12px, 1.8vw, 32px);
  padding: clamp(8px, 2vh, 24px) clamp(16px, 4vw, 64px) 64px;
}
/* people come up out of depth, staggered; each hexagon pops first and its figure
   follows a beat later (the carousel's "figure trails its hexagon") */
.grid__list { perspective: 1000px; }
.grid__list li { opacity: 0; transform: translate3d(0, 46px, -140px) rotateX(-16deg); transform-origin: 50% 100%; transition: opacity 0.2s var(--out), transform 0.24s cubic-bezier(0.55, 0, 0.75, 0.2); }
.grid.is-open .grid__list li { opacity: 1; transform: none; transition: opacity 0.6s var(--out) calc(0.3s + var(--i, 0) * 28ms), transform 1s var(--out) calc(0.3s + var(--i, 0) * 28ms); }
.grid__list li .gcard__hex { scale: 0.55; }
.grid.is-open .grid__list li .gcard__hex { scale: 1; transition: transform 0.6s var(--spring), scale 0.9s var(--spring) calc(0.36s + var(--i, 0) * 28ms); }
.grid__list li .gcard img { transform: translateY(14%); opacity: 0; }
.grid.is-open .grid__list li .gcard img { transform: none; opacity: 1; transition: translate 0.6s var(--spring), transform 1s var(--spring) calc(0.46s + var(--i, 0) * 28ms), opacity 0.5s var(--out) calc(0.46s + var(--i, 0) * 28ms); }
/* closing: everything leaves fast and together, then the flood drains (JS) */
.grid.is-closing .grid__list li { opacity: 0; transform: translate3d(0, -24px, -80px); transition: opacity 0.16s var(--out), transform 0.22s cubic-bezier(0.55, 0, 0.75, 0.2); }

/* one person: a figure standing in front of a rounded green hexagon */
/* each person floats on their own depth plane and drifts with the pointer (--px/--py set by JS) */
.gcard {
  transform: translate3d(calc(var(--px, 0) * var(--gd, 6) * -1px), calc(var(--py, 0) * var(--gd, 6) * -0.7px), 0);
  transition: transform 0.9s var(--out);
  scroll-margin: 110px 0 24px;   /* arrow navigation keeps the focused person clear of the sticky header */
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.62;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gcard__hex { position: absolute; left: -6%; right: -6%; bottom: 4%; width: 112%; aspect-ratio: 1; transition: transform 0.6s var(--spring); }
.gcard__fill { fill: #6ee8b1; }
.gcard__ring { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transform: scale(1.08); transform-origin: center; transition: opacity 0.25s var(--out), transform 0.4s var(--out); }
.gcard img {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: none;
  translate: -50% 0;
  transition: translate 0.6s var(--spring);
  pointer-events: none;
}
.gcard__name {
  position: absolute;
  left: 50%;
  bottom: 8%;
  z-index: 1;
  max-width: 108%;
  padding: 0.3em 0.75em 0.34em;
  border-radius: 999px;
  background: #9b89f2;   /* the carousel's name-tag violet: ink text 6.4:1 */
  color: var(--ink);
  font: 700 max(15px, 0.95vw)/1.15 'Kaspersky Sans Display', system-ui, sans-serif;
  text-align: center;
  translate: -50% 0;
  transition: opacity 0.25s var(--out), scale 0.4s var(--spring);
}
.gcard:hover .gcard__hex, .gcard:focus-visible .gcard__hex { transform: scale(1.04); }
.gcard:hover img, .gcard:focus-visible img { translate: -50% -3%; }
.gcard:focus-visible .gcard__ring, .gcard:hover .gcard__ring { opacity: 1; transform: none; }
/* desktop (a real hover pointer): names appear on hover / keyboard focus;
   touch screens keep them visible all the time */
@media (hover: hover) and (pointer: fine) {
  .gcard__name { opacity: 0; scale: 0.85; }
  .gcard:hover .gcard__name, .gcard:focus-visible .gcard__name { opacity: 1; scale: 1; }
}
@media (max-width: 520px) {
  .grid__list { grid-template-columns: repeat(2, 1fr); }
  .gcard__name { font-size: 14px; }
}

/* ── Windows High Contrast / forced colours ─────────────────────────────
   The mode drops backgrounds and shadows, so every state that was shown by a
   background (current language, selected tab) or an outline drawn with
   box-shadow (pill buttons) gets a real border / underline in system colours. */
@media (forced-colors: active) {
  .lang, .mtabs { border: 1.5px solid CanvasText; }
  .lang__ind, .mtabs__ind { display: none; }
  .lang__opt[aria-current="page"], .mtab[aria-selected="true"] {
    border: 2px solid CanvasText;
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
  .s3__all { border: 1.8px solid ButtonText; }
  .tag, .gcard__name, .pill { border: 1px solid CanvasText; }
  .modal__bar i { forced-color-adjust: none; background: CanvasText; }   /* the story's scrollbar thumb */
  .lang__opt:focus-visible, .mtab:focus-visible, .s3__all:focus-visible { outline: 2px solid Highlight; }
}
