/* ========== Tokens ========== */
:root {
  --bg: #e9e8e4;          /* hero / stage backdrop */
  --light: #f4f4f2;
  --sand: #ebe9e5;
  --white: #ffffff;
  --ink: #0b0b0c;
  --text: #2b2b2e;
  --muted: #6b6b70;
  --line: rgba(11, 11, 12, .1);
  --line-dark: rgba(255, 255, 255, .12);
  --gold: #c9a46a;        /* sand from the Anon roll-up banner */
  --gold-light: #e2c79c;
  --logo-ink: #2b2b2d;    /* charcoal of the logo mark */
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1280px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Unbounded", "Onest", system-ui, sans-serif;   /* wide geometric display face, full Cyrillic */
  --z-stage: 0;
  --z-content: 1;
  --z-laptop: 0;          /* same layer as the backdrop but later in the DOM: above it, below <main> */
  --z-header: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;   /* iOS Safari can still pan sideways with only "hidden" */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.2; }
.stat b, .step__n, .card__num, .footer__copy b { font-family: var(--font-display); }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.eyebrow { margin: 0 0 18px; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.15rem; margin-top: 20px; }
.ico { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 16px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 48px; padding: 6px 6px 6px 24px; border-radius: 999px;
  font: 500 1rem var(--font); letter-spacing: -.01em; cursor: pointer;
  border: 1px solid transparent; touch-action: manipulation;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn__dot {
  display: grid; place-content: center; width: 36px; height: 36px; border-radius: 50%;
  transition: transform .3s var(--ease);
}
.btn:hover .btn__dot { transform: rotate(-45deg); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark .btn__dot { background: #fff; color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light .btn__dot { background: var(--ink); color: #fff; }
.btn--ghost { padding: 6px 24px; background: rgba(255, 255, 255, .45); backdrop-filter: blur(10px); border-color: rgba(11, 11, 12, .12); color: var(--ink); }
.btn--ghost:hover { background: #fff; }
.btn--sm { min-height: 42px; font-size: .92rem; padding-left: 18px; }
.btn--sm .btn__dot { width: 30px; height: 30px; }

/* ========== Header ========== */
.header {
  position: fixed; inset: 18px 24px auto; z-index: var(--z-header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
/* Anon logo (from the roll-up banner): A-chevron with dot | АНОН over spaced ГРУП.
   Everything scales with the font-size set on .alogo. */
.alogo { display: inline-flex; align-items: center; gap: .55em; color: var(--logo-ink); font-size: 16px; }
.alogo__mark { width: 2.6em; height: 2.6em; flex: none; fill: currentColor; overflow: visible; }
.alogo__div { width: 1.5px; height: 2.6em; background: currentColor; opacity: .55; flex: none; }
.alogo__word { display: flex; flex-direction: column; margin: 0; font-family: "Exo 2", var(--font-display); line-height: .9; color: inherit; letter-spacing: 0; text-transform: uppercase; }
.alogo__anon { font-size: 1.75em; font-weight: 800; letter-spacing: .01em; }
.alogo__grup { align-self: flex-end; margin-top: .18em; font-size: .62em; font-weight: 600; letter-spacing: .62em; margin-right: -.62em; }

.logo { justify-self: start; }
.header .logo { padding: 7px 18px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .65); backdrop-filter: blur(14px); border: 1px solid rgba(11, 11, 12, .06); font-size: 13px; }
/* Header logo turns to brand colour on hover / click (sand gold mark + АНОН, charcoal dot) */
.header .logo { transition: color .3s var(--ease), background .3s, transform .2s var(--ease); }
.header .logo circle { transition: fill .3s; }
.header .logo:hover, .header .logo:focus-visible, .header .logo.is-lit { color: var(--gold); background: #fff; }
.header .logo:hover circle, .header .logo:focus-visible circle, .header .logo.is-lit circle { fill: var(--logo-ink); }
.header .logo:active { transform: scale(.96); }

/* Footer logo: larger, in the brand's sand gold on the dark background */
.logo--light { color: var(--gold); font-size: clamp(24px, 2.6vw, 36px); }
.logo--light circle { fill: #fff; }
.logo--light .alogo__div { background: var(--gold); opacity: .7; }
.logo--light .alogo__grup { color: var(--gold-light); }

.pill-nav {
  display: flex; gap: 4px; padding: 5px;
  background: rgba(30, 30, 32, .55); backdrop-filter: blur(16px) saturate(1.4);
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12);
}
.pill-nav a {
  padding: 9px 18px; border-radius: 999px; font-size: .92rem; font-weight: 500;
  color: rgba(255, 255, 255, .82); transition: background .2s, color .2s;
}
.pill-nav a:hover, .pill-nav a.is-active { background: rgba(255, 255, 255, .14); color: #fff; }

.header__right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.lang { display: flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .55); backdrop-filter: blur(12px); border: 1px solid rgba(11, 11, 12, .08); }
.lang__btn {
  min-width: 40px; min-height: 34px; border: 0; background: transparent; cursor: pointer;
  font: 600 .78rem var(--font); letter-spacing: .06em; color: var(--muted);
  border-radius: 999px; transition: background .2s, color .2s;
}
.lang__btn.is-active { background: var(--ink); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; padding: 13px 12px; }
.burger span { display: block; height: 2px; background: #fff; margin: 4px 0; transition: transform .3s var(--ease); }

/* ========== Stage (3D laptop) ========== */
.stage {
  position: fixed; inset: 0; z-index: var(--z-stage);
  background:
    radial-gradient(ellipse 50% 55% at 50% 55%, #fbfbfa 0%, rgba(251, 251, 250, 0) 70%),
    linear-gradient(180deg, #dcdbd7, var(--bg) 40%, #e3e2de);
}
/* faint ledger grid over the backdrop */
.stage::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11, 11, 12, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 11, 12, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 60% 50%, #000 20%, transparent 75%);
}
/* sized to the large viewport so the phone address bar showing/hiding never resizes the 3D canvas */
.laptop-layer {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: var(--z-laptop); pointer-events: none;
  transform: translateZ(0); backface-visibility: hidden;   /* own GPU layer, so iOS doesn't repaint it on scroll */
}
.stage { bottom: auto; height: 100vh; height: 100lvh; }
.laptop-layer canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s var(--ease); }
/* fades in once the 3D is compiled and the first frame is drawn (laptop.js), instead of popping in */
.laptop-layer.is-ready canvas { opacity: 1; }


/* ========== Hero ========== */
main { position: relative; z-index: var(--z-content); }
.hero {
  /* svh = height with the address bar shown; unlike dvh it never changes while scrolling,
     so the page below doesn't shift (and the laptop's landing spot doesn't jump) */
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: 130px 32px 32px;
  cursor: grab; touch-action: pan-y;   /* drag the hero to spin the laptop */
}
.hero.is-dragging { cursor: grabbing; user-select: none; }
.hero a, .hero button, .hero p { cursor: auto; }
.hero a, .hero button { cursor: pointer; }
.hero__copy { max-width: 760px; }
.hero__title { font-size: clamp(2.2rem, 5vw, 4.4rem); letter-spacing: -.04em; line-height: 1.02; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line:first-child { color: var(--logo-ink); }
.hero__title .line:nth-child(2) { color: var(--gold); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

.hero__side { position: absolute; right: 32px; bottom: 36px; max-width: 330px; font-size: .98rem; color: var(--text); }
.hero__hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); white-space: nowrap;
}
.mouse { width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 5px; width: 2px; height: 6px; margin-left: -1px; background: currentColor; border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { transform: none; opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

/* Desktop only: the hero intro sentence in an elegant serif, a size up */
@media (min-width: 860px) {
  .hero .statement__text {
    max-width: 600px;
    font-family: "Lora", Georgia, serif;
    font-size: 1.32rem;
    line-height: 1.6;
    color: var(--text);
  }
}

/* Hero logo leaves as you scroll: drifts down, shrinks a touch and fades. Where supported this
   is a native scroll-driven animation (runs on the compositor, perfectly smooth, no JS per
   frame); main.js eases it with requestAnimationFrame in other browsers. */
.hero__brand { transform-origin: 0 30%; will-change: transform, opacity; }
@keyframes heroBrandOut {
  0%   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  60%  { opacity: .35; }
  100% { opacity: 0; transform: translate3d(0, 30vh, 0) scale(.94); }
}
@supports (animation-timeline: scroll()) {
  .hero__brand {
    animation: heroBrandOut linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 75vh;
  }
}

/* Intro reveal */
.js .hero .brandmark__tag, .js .hero .statement__text { animation: fade 1s .9s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
.js .hero__hint { animation-name: fadeHint; }
@keyframes fadeHint { from { opacity: 0; } }

/* ========== Statement ========== */
.statement {
  min-height: 90vh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px 32px; max-width: 1100px;
}
/* Hero logo assembles on load (--p: 0 → 1): chevron rises, dot drops in, divider grows, wordmark slides in */
.brandmark { --p: 0; margin-top: 6vh; font-size: clamp(26px, 3.3vw, 48px); }
.brandmark__chev { transform: translateY(calc((1 - var(--p)) * 18px)); opacity: var(--p); }
.brandmark__dot { fill: var(--gold); transform: translateY(calc((1 - var(--p)) * -60px)); opacity: calc(var(--p) * 1.5 - .5); }
.brandmark__div { transform: scaleY(var(--p)); }
.brandmark__text { opacity: calc(var(--p) * 1.4 - .4); transform: translateX(calc((1 - var(--p)) * 24px)); }
.brandmark__tag {
  margin-top: 26px; font-family: "Exo 2", var(--font); font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--logo-ink);
}
.brandmark__tag .gold { color: var(--gold); }
.statement__text { max-width: 520px; margin-top: 48px; font-size: 1.05rem; color: var(--muted); }

/* ========== Sections ========== */
.section { position: relative; padding: 130px 0; }
/* Frosted sections: the laptop glides behind them, softly visible through the glass */
.section--light { background: rgba(244, 244, 242, .42); }
.section--sand { background: rgba(235, 233, 229, .48); }
.section--dark { background: rgba(11, 11, 12, .6); color: rgba(255, 255, 255, .75); }
.section--light, .section--sand, .section--dark { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: rgba(255, 255, 255, .5); }
.section:first-of-type { border-radius: 0; }
.section--dark:first-of-type { border-radius: 32px 32px 0 0; }
.section__head { max-width: 760px; margin-bottom: 64px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__head--row > div { max-width: 760px; }

/* Values */
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value {
  padding: 32px 28px 30px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark);
  transition: background .3s, transform .4s var(--ease);
}
.value:hover { background: rgba(255, 255, 255, .1); transform: translateY(-4px); }
.value .ico { color: var(--gold-light); margin-bottom: 70px; }
.value h3 { font-size: 1.25rem; margin-bottom: 10px; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  display: flex; flex-direction: column; min-height: 300px;
  padding: 30px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .3); }
.card__num { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card h3 { margin-top: auto; margin-bottom: 12px; }
.card p { color: var(--muted); }
/* the selected card turns black; clicking another card moves the selection (main.js) */
.cards .card { cursor: pointer; transition: opacity .8s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease), background .35s, border-color .35s; -webkit-tap-highlight-color: transparent; }
.card h3, .card p, .card .card__num { transition: color .35s; }
.card.is-active { background: var(--ink); border-color: var(--ink); }
.card.is-active h3 { color: #fff; }
.card.is-active p, .card.is-active .card__num { color: rgba(255, 255, 255, .65); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .6); border: 1px solid var(--line); min-height: 260px; display: flex; flex-direction: column; }
.step__n { font-size: 2.4rem; font-weight: 500; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.step h3 { margin-top: auto; margin-bottom: 8px; font-size: 1.25rem; }
.step p { color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(2.4rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -.04em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 40px; }
.stat > span { color: var(--muted); }

/* Founder */
.founder { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.founder__photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(.15) contrast(1.03); transition: transform 1.2s var(--ease); }
.founder__photo:hover img { transform: scale(1.04); }
.founder__copy h2 { margin-bottom: 28px; }
.founder__copy p + p { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 40px 0 0; }
.facts div { padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line-dark); }
.facts dt { font-size: .78rem; color: rgba(255, 255, 255, .5); margin-bottom: 4px; }
.facts dd { margin: 0; color: #fff; font-weight: 500; }


/* Footer */
.footer { position: relative; z-index: var(--z-content); background: var(--ink); color: rgba(255, 255, 255, .6); padding: 80px 0 32px; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.footer__cols div { display: grid; gap: 10px; align-content: start; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: 0; margin-bottom: 6px; }
.footer a:hover { color: #fff; }
.footer__big { height: clamp(90px, 16vw, 250px); margin: 70px 0 30px; }
.footer__big canvas { width: 100%; height: 100%; display: block; }
.footer__copy { font-size: .85rem; }

/* ========== Legal pages (terms.html, privacy.html) ========== */
.legal-page { background: var(--light); }
.legal { position: relative; z-index: var(--z-content); padding: 150px 0 110px; }
.legal .container { max-width: 860px; }
.legal__back { display: inline-flex; gap: 8px; font-size: .92rem; color: var(--muted); margin-bottom: 36px; }
.legal__back:hover { color: var(--ink); }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.04em; }
.legal__updated { margin-top: 16px; color: var(--muted); font-size: .92rem; }
.legal__body { margin-top: 56px; }
.legal__body > p, .legal__body li { font-size: 1.02rem; line-height: 1.7; }
.legal__body > p + p, .legal__body ul + p, .legal__card + p { margin-top: 14px; }
.legal__body h2 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin: 52px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal__body ul { margin: 14px 0 0; padding-left: 22px; }
.legal__body li + li { margin-top: 8px; }
.legal__body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal__body b { color: var(--ink); font-weight: 600; }
.legal__card { margin-top: 18px; padding: 22px 26px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); line-height: 1.8; }
.legal-page .footer { padding-top: 64px; }
.legal-page .footer__copy { margin-top: 56px; }
@media (max-width: 560px) {
  .legal { padding: 110px 0 72px; }
  .legal__body { margin-top: 36px; }
  .legal__body h2 { margin-top: 40px; }
  /* ЕМБС and ЕДБ each on their own line */
  .legal__id { display: block; }
  .legal__sep, .legal__id + br { display: none; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.values .reveal:nth-child(2), .cards .reveal:nth-child(3n+2), .steps .reveal:nth-child(2), .stats .reveal:nth-child(2) { transition-delay: .06s; }
.values .reveal:nth-child(3), .cards .reveal:nth-child(3n), .steps .reveal:nth-child(3), .stats .reveal:nth-child(3) { transition-delay: .12s; }
.values .reveal:nth-child(4), .steps .reveal:nth-child(4), .stats .reveal:nth-child(4) { transition-delay: .18s; }

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .values, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .hero__hint { display: none; }
}

@media (max-width: 860px) {
  .container { padding: 0 20px; }
  .header { inset: 12px 16px auto; grid-template-columns: 1fr auto; }
  .header__cta { display: none; }
  .burger { display: block; }
  .pill-nav {
    position: fixed; top: 70px; left: 16px; right: 16px;
    flex-direction: column; padding: 8px; border-radius: 20px;
    background: rgba(20, 20, 22, .92);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .pill-nav a { padding: 14px 16px; font-size: 1rem; }
  .menu-open .pill-nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .burger span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-open .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

  .hero { padding: 100px 20px 24px; display: flex; flex-direction: column; }
  .statement { padding: 80px 20px; min-height: 70vh; }
  .section { padding: 90px 0; }
  .founder { grid-template-columns: 1fr; gap: 48px; }
  .facts { grid-template-columns: 1fr; }
  .footer__cols { gap: 40px; }
}

/* Phones: calmer, shorter page. Secondary details are dropped, grids become compact. */
@media (max-width: 560px) {
  .header .logo { font-size: 11px; padding: 6px 14px 6px 10px; }

  /* hero: logo, tagline, intro copy, laptop */
  .hero { min-height: 100svh; padding-top: 96px; }
  .brandmark { margin-top: 2vh; font-size: min(22px, 5.6vw); }
  .brandmark__tag { margin-top: 16px; font-size: .95rem; }
  .hero .statement__text { margin-top: 18px; font-size: .95rem; }

  /* sections: see-through glass like desktop so the laptop glides behind them, but without the
     blur filter, which is what made scrolling stutter on phones; tighter rhythm */
  .section { padding: 64px 0; }
  .section--light, .section--sand, .section--dark { -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* the fixed header re-blurred the 3D scene on every scroll frame; solid pills look the same */
  .header .logo, .lang, .btn--ghost { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header .logo { background: rgba(255, 255, 255, .92); }
  .lang { background: rgba(255, 255, 255, .88); }
  .section--light { background: rgba(244, 244, 242, .55); }
  .section--sand { background: rgba(235, 233, 229, .6); }
  .section--dark { background: rgba(11, 11, 12, .72); }
  .section__head { margin-bottom: 28px; }
  .section__head--row .btn { display: none; }
  .statement { min-height: 0; padding: 72px 20px; }
  .eyebrow { margin-bottom: 10px; }

  .values, .steps, .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .value { padding: 18px 16px; }
  .value .ico { width: 26px; height: 26px; margin-bottom: 16px; }
  .value h3 { font-size: .9rem; margin: 0; }
  .value p { display: none; }

  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card { min-height: 0; padding: 20px; }
  .card h3 { margin: 8px 0 6px; font-size: 1.02rem; }
  .card p { font-size: .9rem; }

  .step { min-height: 0; padding: 18px 16px; }
  .step__n { font-size: 1.5rem; margin-bottom: 18px; }
  .step h3 { font-size: .9rem; margin: 0; }
  .step p { display: none; }

  .stat { padding: 18px 16px; }
  .stat b { font-size: 1.9rem; margin-bottom: 10px; white-space: nowrap; }
  .stat > span { font-size: .82rem; display: block; line-height: 1.35; }

  .founder { gap: 28px; }
  .founder__photo { aspect-ratio: 1 / 1; }
  .founder__copy h2 { margin-bottom: 16px; }
  .founder__copy p[data-i18n="about.p2"] { display: none; }
  .facts { margin-top: 24px; gap: 0; border-top: 1px solid var(--line-dark); }
  .facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .facts dt { margin: 0; }
  .facts dd { text-align: right; }


  .footer { padding: 56px 0 24px; }
  .footer__top { gap: 28px; }
  .footer__cols { gap: 32px; }
  .footer__big { margin: 40px 0 20px; }
}

/* ========== Phones (< 860px, matches `mobile` in laptop.js) ==========
   The 3D laptop is rendered into a small laptop-sized canvas that never redraws on scroll.
   Its journey down the page is pure CSS: two scroll-driven animations the browser runs on the
   GPU in lockstep with the finger (no JavaScript per frame):
     1. lapDock   on the canvas — hero → docked (first ~0.9 screen of scrolling)
     2. lapTravel on the layer  — gentle weave down behind the sections (rest of the page) */
@media (max-width: 859px) {
  .hero { cursor: auto; touch-action: auto; }
  .laptop-layer { transform: none; transform-origin: 62% 26%; will-change: translate, rotate; }
  .laptop-layer canvas {
    position: absolute; left: 50%; top: 0;
    width: min(94vw, 540px); height: auto; aspect-ratio: 4 / 3;
    translate: -50% max(44svh, 360px);    /* hero: centred under the text (never above it on short phones) */
    will-change: translate, scale;
  }
}
/* Phones: numbers circling the laptop. .lap-orbit is a twin of the canvas box (same position and
   dock animation), so the numbers travel with the laptop. Each .lap-num sweeps left/right
   (numX); its inner span grows/brightens when passing in front and shrinks/fades behind (numZ),
   at half the speed, so the pair traces an orbit. */
.lap-orbit { display: none; }
@media (max-width: 859px) {
  .lap-orbit {
    display: block; position: absolute; left: 50%; top: 0;
    width: min(94vw, 540px); aspect-ratio: 4 / 3;
    translate: -50% max(44svh, 360px);
    opacity: 0; transition: opacity .8s var(--ease);
  }
  .laptop-layer.is-ready .lap-orbit { opacity: 1; }
  .lap-num {
    position: absolute; left: 50%; top: var(--y);
    font-family: var(--font-display); font-weight: 500; line-height: 1; white-space: nowrap; color: #7a7a80;
    animation: numX var(--d) ease-in-out var(--dl) infinite alternate;
  }
  .lap-num--gold { color: var(--gold); }
  .lap-num > span {
    display: block; translate: -50% -50%;
    animation: numZ calc(var(--d) * 2) ease-in-out var(--dl) infinite;
  }
}
@keyframes numX {
  from { transform: translateX(calc(var(--r) * -1)); }
  to   { transform: translateX(var(--r)); }
}
@keyframes numZ {
  0%, 100% { opacity: calc(var(--o) * .55); scale: .85; }
  25%      { opacity: var(--o);             scale: 1.12; }
  50%      { opacity: calc(var(--o) * .55); scale: .85; }
  75%      { opacity: calc(var(--o) * .15); scale: .7; }
}
@keyframes lapDock {
  from { translate: -50% max(44svh, 360px); scale: 1; }
  to   { translate: -37% 9svh;  scale: .6; }
}
@keyframes lapTravel {
  0%   { translate: 0 0;           rotate: 0deg; }
  25%  { translate: -22vw 15svh;   rotate: -2.5deg; }
  50%  { translate: 0 30svh;       rotate: 2deg; }
  75%  { translate: -22vw 44svh;   rotate: -2deg; }
  100% { translate: -8vw 52svh;    rotate: 0deg; }
}
@supports (animation-timeline: scroll()) {
  @media (max-width: 859px) and (prefers-reduced-motion: no-preference) {
    .laptop-layer canvas, .lap-orbit { animation: lapDock linear both; animation-timeline: scroll(root block); animation-range: 0 90svh; }
    .laptop-layer { animation: lapTravel linear both; animation-timeline: scroll(root block); animation-range: 90svh 100%; }
  }
}
/* reduced motion on phones: the laptop just sits in the hero and scrolls away with it */
@media (max-width: 859px) and (prefers-reduced-motion: reduce) {
  .laptop-layer { position: absolute; height: 100svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .brandmark { --p: 1 !important; }
  .lap-orbit { display: none; }
}
