/* ============================================================
   deepdev — Mercury design system
   "Mountain Top Command Center" — dark fintech, ported from the
   Refero Mercury reference (mercury.com) and rebranded.
   ============================================================ */

/* ---------- Inter (Arcadia substitute), self-hosted ---------- */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/inter-cyrillic-300-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/inter-latin-ext-300-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/inter-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/inter-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/inter-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/inter-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens — Mercury palette ---------- */
:root {
  --color-mercury-blue: #5266eb;
  --color-ghost-blue:   #cdddff;
  --color-deep-space:   #171721;
  --color-midnight:     #1e1e2a;
  --color-graphite:     #272735;
  --color-lead:         #70707d;
  --color-starlight:    #ededf3;
  --color-silver:       #c3c3cc;
  --color-white:        #ffffff;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1200px;
  --section-gap: clamp(80px, 11vw, 120px);
  --pad: clamp(20px, 5vw, 56px);

  --text-display:    clamp(40px, 8vw, 72px);
  --text-heading-lg: clamp(34px, 5.5vw, 49px);
  --text-heading:    clamp(27px, 4vw, 32px);
  --text-heading-sm: clamp(19px, 2.4vw, 21px);
  --text-subheading: 18px;
  --text-body:       clamp(15px, 1.4vw, 16px);
  --text-caption:    12px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--color-deep-space); }
body {
  margin: 0;
  background: var(--color-midnight);
  color: var(--color-starlight);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--color-mercury-blue); color: var(--color-white); }

/* ---------- Layout helpers ---------- */
.section { padding: var(--section-gap) var(--pad); position: relative; }
.wrap { max-width: var(--maxw); margin-inline: auto; width: 100%; }

/* ---------- Buttons (Mercury pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: var(--text-body); font-weight: 400;
  letter-spacing: .01em; line-height: 1; white-space: nowrap;
  border: none; cursor: pointer;
  transition: background-color .22s ease, color .22s ease, transform .18s ease, box-shadow .22s ease;
}
.btn--primary {
  background: var(--color-mercury-blue); color: var(--color-white);
  border-radius: 999px; padding: 16px 26px;
}
.btn--primary:hover { background: #6276ff; transform: translateY(-1px); box-shadow: 0 8px 30px -8px rgba(82,102,235,.7); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: rgba(205, 221, 255, .14); color: var(--color-starlight);
  border-radius: 999px; padding: 12px 22px;
}
.btn--ghost:hover { background: rgba(205, 221, 255, .24); }
.btn--lg { padding: 17px 30px; font-size: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad);
  background: transparent;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(23, 23, 33, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(112, 112, 125, .25);
}
.nav__brand { font-size: 19px; font-weight: 400; letter-spacing: .01em; color: var(--color-starlight); }
.nav__brand b { font-weight: 400; color: var(--color-ghost-blue); }
.nav__menu { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.nav__link { font-size: 14px; font-weight: 400; letter-spacing: .01em; color: var(--color-silver); transition: color .2s ease; }
.nav__link:hover { color: var(--color-starlight); }
.lang { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; letter-spacing: .02em; color: var(--color-starlight); }
.lang button { background: none; border: none; color: var(--color-silver); padding: 4px; font-size: 13px; letter-spacing: .02em; transition: color .2s ease; }
.lang button.is-active { color: var(--color-starlight); }
.lang button:hover { color: var(--color-starlight); }
.lang .sep { opacity: .4; color: var(--color-lead); }
.nav__burger { display: none; }
.nav__close { display: none; }

/* ============================================================
   SCENE — scroll-zoom hero (fly into the laptop screen)
   Base layout below is the static fallback (no GSAP / mobile /
   reduced-motion). `.is-zoom` is added by JS to enable the dive.
   ============================================================ */
.scene { position: relative; }
.scene__pin {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-deep-space);
}
/* the photo, sized as a rigid frame that always covers the viewport.
   Scaled about the laptop-screen centre (50% 64%) so the dive flies
   straight INTO the screen with no perspective mismatch. */
.scene__frame {
  position: absolute; top: 50%; left: 50%;
  width: max(100vw, calc(100svh * (3000 / 1674)));
  aspect-ratio: 3000 / 1674;
  transform: translate(-50%, -50%);
  transform-origin: 51% 42%;
  z-index: 0; will-change: transform, opacity, filter; backface-visibility: hidden;
}
.scene__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* light blooming out of the screen at the peak of the dive */
.scene__bloom {
  position: absolute; z-index: 3; left: 51%; top: 42%;
  width: 65vmax; height: 65vmax; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.18);
  opacity: 0; pointer-events: none; will-change: transform, opacity; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(205,221,255,.95) 0%, rgba(130,150,250,.7) 22%, rgba(82,102,235,.28) 46%, rgba(23,23,33,0) 72%);
}

.scene__veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 82% at 50% 46%, rgba(82,102,235,.10) 0%, rgba(23,23,33,.26) 46%, rgba(23,23,33,.72) 100%),
    linear-gradient(180deg, rgba(23,23,33,.50) 0%, rgba(23,23,33,.05) 30%, rgba(30,30,42,.55) 78%, var(--color-midnight) 100%);
}

/* intro teaser */
.scene__intro {
  position: absolute; inset: 0; z-index: 3; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  will-change: transform, opacity;
}
.scene__brand { margin: 0; font-size: clamp(40px, 9vw, 104px); font-weight: 300; letter-spacing: .01em; color: var(--color-starlight); }
.scene__brand b { font-weight: 400; color: var(--color-ghost-blue); }
.scene__hint { margin: 0; font-size: var(--text-caption); letter-spacing: .2em; text-transform: uppercase; color: var(--color-silver); }
.scene__chev { font-size: 20px; color: var(--color-ghost-blue); animation: chev 1.8s ease-in-out infinite; }
@keyframes chev { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(7px); opacity: 1; } }

/* hero content */
.scene__hero { position: relative; z-index: 4; width: 100%; padding: 140px var(--pad) clamp(56px, 9vw, 96px); text-align: center; }

/* zoom mode toggled by JS */
.scene.is-zoom { height: 360vh; }
.scene.is-zoom .scene__pin { height: 100svh; min-height: 0; }
.scene.is-zoom .scene__intro { display: flex; }
.scene.is-zoom .scene__hero {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--pad);
}

/* ---------- hero content blocks (shared) ---------- */
.hero__inner { position: relative; z-index: 2; max-width: 980px; margin-inline: auto; }
.hero__eyebrow { font-size: var(--text-body); letter-spacing: .02em; color: var(--color-silver); margin: 0 0 clamp(20px, 3vw, 30px); }
.hero__title { margin: 0; font-weight: 300; font-size: var(--text-display); line-height: 1.08; letter-spacing: .01em; max-width: 18ch; margin-inline: auto; }
.hero__title .accent { color: var(--color-ghost-blue); }
.hero__support { margin: clamp(24px, 4vw, 34px) auto 0; max-width: 56ch; font-size: var(--text-subheading); line-height: 1.5; color: var(--color-silver); }
.hero__cta { margin: clamp(30px, 4vw, 40px) auto 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.join {
  display: flex; align-items: stretch; width: min(440px, 92vw);
  border: 1px solid var(--color-lead); border-radius: 999px;
  background: rgba(39, 39, 53, .5); overflow: hidden; transition: border-color .2s ease;
}
.join:focus-within { border-color: var(--color-ghost-blue); }
.join input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--color-starlight); font-family: inherit; font-size: var(--text-body); padding: 0 8px 0 22px; }
.join input::placeholder { color: var(--color-silver); opacity: .8; }
.join .btn--primary { border-radius: 999px; margin: 4px; padding: 13px 24px; }
.hero__alt { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--color-silver); }
.hero__alt a { color: var(--color-starlight); border-bottom: 1px solid var(--color-lead); padding-bottom: 1px; transition: border-color .2s ease; }
.hero__alt a:hover { border-color: var(--color-ghost-blue); }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto__lead { font-size: var(--text-caption); letter-spacing: .16em; text-transform: uppercase; color: var(--color-lead); margin: 0 0 clamp(26px, 4vw, 40px); }
.manifesto__text { margin: 0; max-width: 22ch; font-size: var(--text-heading-lg); line-height: 1.16; letter-spacing: .005em; font-weight: 300; }
.manifesto__text .accent { color: var(--color-ghost-blue); }

/* ============================================================
   SERVICES
   ============================================================ */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.eyebrow { font-size: var(--text-caption); letter-spacing: .16em; text-transform: uppercase; color: var(--color-lead); margin: 0; }
.sec-head h2 { margin: 0; font-size: var(--text-heading); font-weight: 300; letter-spacing: .005em; max-width: 18ch; }

.svc-list { border-top: 1px solid var(--color-lead); }
.svc {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1.2fr) 28px;
  align-items: center; gap: 24px; row-gap: 0;
  padding: clamp(24px, 3.4vw, 38px) clamp(8px, 1.6vw, 20px);
  margin: 0 calc(-1 * clamp(8px, 1.6vw, 20px));
  border-bottom: 1px solid var(--color-lead);
  transition: background-color .3s ease;
}
.svc__idx { font-size: var(--text-caption); letter-spacing: .08em; color: var(--color-silver); transition: color .3s ease; }
.svc__title { font-size: var(--text-heading-sm); font-weight: 400; letter-spacing: .005em; line-height: 1.25; color: var(--color-starlight); }
.svc__desc { font-size: var(--text-body); color: var(--color-silver); line-height: 1.5; }
.svc__mark { justify-self: end; color: var(--color-starlight); opacity: 0; transition: opacity .25s ease, transform .25s ease; transform: translateX(-6px); }
.svc:hover { background: var(--color-graphite); }
.svc:hover .svc__idx { color: var(--color-ghost-blue); }
.svc:hover .svc__mark { opacity: 1; transform: translateX(0); }

/* ============================================================
   APPROACH
   ============================================================ */
.approach__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(36px, 5vw, 60px); }
.step__idx { font-size: var(--text-heading-sm); font-weight: 300; letter-spacing: .02em; color: var(--color-lead); margin-bottom: 18px; }
.step__title { font-size: var(--text-subheading); font-weight: 400; margin: 0 0 10px; line-height: 1.3; color: var(--color-starlight); }
.step__desc { font-size: var(--text-body); color: var(--color-silver); line-height: 1.55; margin: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__lead { position: relative; z-index: 2; }
.contact__title { margin: 14px 0 28px; font-size: var(--text-heading-lg); line-height: 1.16; letter-spacing: .005em; font-weight: 300; max-width: 16ch; }
.contact__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact__or { font-size: var(--text-caption); letter-spacing: .14em; text-transform: uppercase; color: var(--color-lead); }

.form { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-size: var(--text-caption); letter-spacing: .1em; text-transform: uppercase; color: var(--color-silver); }
.field input, .field textarea { background: var(--color-graphite); border: 1px solid transparent; color: var(--color-starlight); font-family: inherit; font-size: var(--text-body); outline: none; transition: border-color .2s ease, background-color .2s ease; }
.field input { padding: 14px 22px; border-radius: 999px; }
.field textarea { padding: 14px 20px; border-radius: 16px; resize: vertical; min-height: 116px; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-silver); opacity: .65; }
.field input:focus, .field textarea:focus { border-color: var(--color-ghost-blue); background: #2c2c3c; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__submit { align-self: flex-start; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--color-lead); margin: 0; }
.form__status { font-size: var(--text-caption); min-height: 1.2em; letter-spacing: .02em; }
.form__status.ok { color: var(--color-ghost-blue); }
.form__status.err { color: #e79a9a; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(56px, 7vw, 88px) var(--pad) clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--color-lead);
}
.footer__brand { font-size: clamp(44px, 9vw, 96px); line-height: .95; letter-spacing: .005em; font-weight: 300; color: var(--color-starlight); }
.footer__brand b { font-weight: 400; color: var(--color-ghost-blue); }
.footer__meta { display: flex; flex-direction: column; gap: 8px; text-align: right; font-size: var(--text-caption); color: var(--color-silver); }
.footer__meta a { color: var(--color-silver); transition: color .2s ease; }
.footer__meta a:hover { color: var(--color-starlight); }

/* ============================================================
   AMBIENT — deep-space aurora + starfield behind everything
   ============================================================ */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--color-midnight); }
.ambient::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(38% 38% at 22% 28%, rgba(82,102,235,.20), transparent 70%),
    radial-gradient(42% 42% at 82% 20%, rgba(125,90,220,.16), transparent 72%),
    radial-gradient(46% 46% at 68% 88%, rgba(82,102,235,.12), transparent 74%);
  filter: blur(8px); animation: aurora 26s ease-in-out infinite alternate;
}
.ambient::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(237,237,243,.7), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(237,237,243,.5), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(237,237,243,.6), transparent),
    radial-gradient(1px 1px at 85% 35%, rgba(237,237,243,.45), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(237,237,243,.5), transparent),
    radial-gradient(1px 1px at 12% 65%, rgba(237,237,243,.4), transparent);
  background-size: 600px 600px; animation: drift 120s linear infinite;
}
@keyframes aurora { 0% { transform: translate3d(-3%, -2%, 0) scale(1.05); } 100% { transform: translate3d(4%, 3%, 0) scale(1.15); } }
@keyframes drift { 0% { background-position: 0 0; } 100% { background-position: 600px 300px; } }

/* ============================================================
   SHOWCASE — live product dashboard mockup (Mercury)
   ============================================================ */
.showcase__head { margin-bottom: clamp(28px, 4vw, 48px); }
.showcase__head h2 { margin: 12px 0 0; font-size: var(--text-heading); font-weight: 300; letter-spacing: .005em; max-width: 20ch; }

.dash {
  position: relative; border: 1px solid rgba(112,112,125,.4); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #20202c, #191923);
  box-shadow: 0 40px 120px -50px rgba(82,102,235,.5), 0 1px 0 rgba(237,237,243,.04) inset;
  will-change: transform;
}
.dash__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid rgba(112,112,125,.28); background: rgba(23,23,33,.5); }
.dash__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-lead); opacity: .7; }
.dash__bar .dot:nth-child(1) { background: #e0726b; } .dash__bar .dot:nth-child(2) { background: #e3b04b; } .dash__bar .dot:nth-child(3) { background: #5fae7f; }
.dash__title { margin-left: 10px; font-size: 12px; letter-spacing: .04em; color: var(--color-silver); }
.dash__title b { color: var(--color-ghost-blue); font-weight: 400; }
.dash__body { display: grid; grid-template-columns: 56px 1fr; min-height: 340px; }
.dash__side { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px 0; border-right: 1px solid rgba(112,112,125,.22); }
.dash__side i { width: 20px; height: 20px; border-radius: 6px; background: rgba(205,221,255,.14); display: block; }
.dash__side i.on { background: var(--color-mercury-blue); box-shadow: 0 0 18px -2px rgba(82,102,235,.8); }
.dash__main { padding: clamp(16px, 2.4vw, 26px); display: flex; flex-direction: column; gap: clamp(16px, 2vw, 22px); }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpi { padding: 16px; border: 1px solid rgba(112,112,125,.26); border-radius: 10px; background: rgba(39,39,53,.5); }
.kpi__label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-silver); margin-bottom: 8px; }
.kpi__num { font-size: clamp(22px, 3vw, 30px); font-weight: 300; color: var(--color-starlight); letter-spacing: .01em; }
.kpi__delta { font-size: 12px; color: #6fd39a; margin-left: 8px; }
.dash__chart { position: relative; border: 1px solid rgba(112,112,125,.22); border-radius: 10px; background: rgba(23,23,33,.4); padding: 14px; }
.dash__chart svg { display: block; width: 100%; height: auto; }
.chart__line { fill: none; stroke: var(--color-mercury-blue); stroke-width: 2.5; filter: drop-shadow(0 4px 10px rgba(82,102,235,.6)); }
.chart__area { fill: url(#dashGrad); opacity: .9; }
.chart__grid { stroke: rgba(112,112,125,.2); stroke-width: 1; }
.dash__bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.dash__bars span { flex: 1; background: linear-gradient(180deg, rgba(82,102,235,.9), rgba(82,102,235,.3)); border-radius: 4px 4px 0 0; transform-origin: bottom; }

/* ============================================================
   STATS band — counters
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.stat { border-top: 1px solid var(--color-lead); padding-top: 18px; }
.stat__num { display: block; font-size: clamp(34px, 5vw, 56px); font-weight: 300; letter-spacing: .005em; line-height: 1; color: var(--color-starlight); }
.stat__num .u { color: var(--color-ghost-blue); }
.stat__label { display: block; margin-top: 10px; font-size: var(--text-body); color: var(--color-silver); }

/* ============================================================
   MARQUEE — stack strip
   ============================================================ */
.marquee { overflow: hidden; border-block: 1px solid var(--color-lead); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-size: clamp(18px, 2.4vw, 26px); font-weight: 300; letter-spacing: .01em; color: var(--color-silver); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: "✦"; color: var(--color-mercury-blue); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* service hover tags */
.svc__tags { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .35s ease, margin-top .35s ease; }
.svc:hover .svc__tags { margin-top: 14px; }
.svc:hover .svc__tags { max-height: 60px; opacity: 1; }
.svc__tags i { font-style: normal; font-size: 12px; letter-spacing: .02em; color: var(--color-silver); border: 1px solid var(--color-lead); border-radius: 999px; padding: 5px 12px; }

@media (prefers-reduced-motion: reduce) {
  .ambient::before, .ambient::after, .marquee__track { animation: none; }
}
@media (max-width: 760px) {
  .dash__kpis { grid-template-columns: 1fr; }
  .dash__body { grid-template-columns: 44px 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .svc__tags { grid-column: 1 / -1; }
}

/* ============================================================
   Reveal-on-scroll (no-JS safe; IntersectionObserver fallback).
   When GSAP drives the page (html.gsap), disable this so GSAP
   controls section entrances instead.
   ============================================================ */
.reveal { opacity: 1; transform: none; }
html.js:not(.gsap) .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
html.js:not(.gsap) .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
  .scene__chev { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .approach__grid { grid-template-columns: 1fr; gap: 28px; }
  .svc { grid-template-columns: auto 1fr; }
  .svc__desc { grid-column: 1 / -1; }
  .svc__mark { display: none; }
}
@media (max-width: 640px) {
  .nav__menu { gap: 14px; }
  .nav__link { display: none; }
  .nav__menu .lang { display: none; }
  .nav__menu > .btn--ghost { display: none; }
  .nav__burger { display: inline-flex; background: none; border: none; color: var(--color-starlight); font-size: 14px; letter-spacing: .04em; padding: 6px 8px; }
  .form__row { grid-template-columns: 1fr; }
  .nav__menu.is-open {
    position: fixed; inset: 0; z-index: 90;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 22px; padding: var(--pad); background: var(--color-deep-space);
  }
  .nav__menu.is-open .nav__link { display: block; font-size: 28px; color: var(--color-starlight); }
  .nav__menu.is-open .lang { display: inline-flex; font-size: 16px; }
  .nav__menu.is-open > .btn--ghost { display: inline-flex; }
  .nav__menu.is-open .nav__close { display: inline-flex; position: absolute; top: 16px; right: var(--pad); background: none; border: none; color: var(--color-starlight); font-size: 22px; }
}
