/* ==========================================================================
   ALONE ENGINEERING — main stylesheet
   ========================================================================== */

:root {
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;

  /* dark (default) */
  --bg: #05080d;
  --bg-2: #080d15;
  --surface: #0d141f;
  --surface-2: #121b29;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #eef3fa;
  --muted: #8d9bb0;
  --accent: #2f86ff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(47, 134, 255, .14);
  --spark: #ff7a1a;
  --header-bg: rgba(5, 8, 13, .7);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f2f4f7;
  --bg-2: #e9edf2;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --line: rgba(11, 18, 32, .1);
  --line-strong: rgba(11, 18, 32, .2);
  --text: #0b1220;
  --muted: #56637a;
  --accent: #0e67ea;
  --accent-ink: #ffffff;
  --accent-soft: rgba(14, 103, 234, .1);
  --spark: #e8620a;
  --header-bg: rgba(242, 244, 247, .78);
  --shadow: 0 30px 70px -35px rgba(15, 30, 60, .35);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.lenis-off, html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.h2 { font: 600 clamp(32px, 5vw, 68px)/1.04 var(--font-display); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.h3 { font: 600 clamp(20px, 2vw, 26px)/1.2 var(--font-display); letter-spacing: -.02em; margin: 0 0 12px; }
.h4 { font: 600 20px/1.25 var(--font-display); letter-spacing: -.015em; margin: 0 0 10px; }

.section { padding: clamp(90px, 13vw, 170px) 0; position: relative; }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 980px; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section-lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); margin: 0; max-width: 520px; }
.kicker { display: flex; gap: 14px; align-items: center; font-size: 13px; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.kicker span:first-child { color: var(--accent); }
.kicker span:first-child::after { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 14px; }

/* ---------- buttons ---------- */
.btn {
  --bh: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--bh); padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--font-body); letter-spacing: .01em; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { --bh: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { --bh: 60px; padding: 0 32px; font-size: 16px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -10px var(--accent); }
.btn--accent::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn--accent:hover::before { opacity: 1; }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); backdrop-filter: blur(8px); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--text); }
.btn--light { background: #fff; color: #05080d; }
.btn--light:hover { background: var(--accent); color: #fff; }
.magnetic { will-change: transform; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; background: #05080d; color: #eef3fa;
  display: grid; place-items: center;
  transition: clip-path 1s var(--ease), visibility 0s 1s;
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.preloader__inner { width: min(380px, 78vw); }
.preloader__logo { display: block; width: 100%; height: auto; color: #e8f1ff; overflow: visible; }
.preloader__logo .logo-word { animation: plWord 1s var(--ease) .15s both; }
.preloader__logo .logo-swoosh-low, .preloader__logo .logo-swoosh-top { transform-box: view-box; transform-origin: 50% 50%; animation: plSwoosh 1.2s var(--ease) both; }
.preloader__logo .logo-swoosh-top { animation-delay: .1s; }
.preloader__logo .logo-sub, .preloader__logo .logo-spark-dots { animation: plFade .8s var(--ease) .55s both; }
.preloader__logo .logo-spark { animation: plSpark 1.1s var(--ease) .75s both; }
@keyframes plWord { from { opacity: 0; transform: translateY(30px); } }
@keyframes plSwoosh { from { opacity: 0; transform: rotate(-14deg) scale(.7); } }
@keyframes plFade { from { opacity: 0; } }
@keyframes plSpark { 0% { opacity: 0; transform: scale(0) rotate(-90deg); } 60% { opacity: 1; transform: scale(1.5) rotate(20deg); } 100% { transform: none; } }
.preloader__bar { height: 2px; background: rgba(255,255,255,.1); margin: 28px 0 12px; overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2f86ff, #ff7a1a); transition: width .2s linear; }
.preloader__count { font-size: 13px; color: #8d9bb0; text-align: right; }

/* ---------- progress + cursor ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 200; background: linear-gradient(90deg, var(--accent), var(--spark)); transform-origin: 0 50%; transform: scaleX(0); }
.cursor {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--accent); mix-blend-mode: normal;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .3s, opacity .3s;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: var(--accent-soft); border: 1px solid var(--accent); }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); border: 0; }
.cursor__label { font: 600 12px/1 var(--font-body); color: #fff; opacity: 0; transition: opacity .2s; text-transform: uppercase; letter-spacing: .06em; }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background-color .4s var(--ease), border-color .4s, transform .5s var(--ease), height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: var(--header-bg); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); --header-h: 66px; }
.header.is-hidden { transform: translateY(-100%); }
.header__row { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--text); }
.hero-top .brand, .hero-top .nav a, .hero-top .header__tools { color: #eef3fa; }
.brand__logo { height: 48px; width: auto; flex: none; overflow: visible; transition: height .4s var(--ease); }
.header.is-scrolled .brand__logo { height: 42px; }
.brand__legal { padding-left: 14px; border-left: 1px solid var(--line-strong); font-size: 11px; line-height: 1.3; color: var(--muted); white-space: nowrap; letter-spacing: .04em; }
.hero-top .brand__legal { color: rgba(238,243,250,.65); border-color: rgba(255,255,255,.25); }
/* the logo's spark twinkles on hover */
.logo-spark { transform-box: fill-box; transform-origin: center; }
.brand:hover .logo-spark { animation: twinkle 1s var(--ease); }
@keyframes twinkle { 40% { transform: scale(1.35) rotate(45deg); } 100% { transform: none; } }

.nav { display: flex; gap: 4px; }
.nav a { white-space: nowrap; position: relative; padding: 8px 12px; font-size: 14px; font-weight: 500; border-radius: 999px; transition: background-color .3s, color .3s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--accent); }

.header__tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.hero-top .lang { border-color: rgba(255,255,255,.25); }
.lang button { font: 500 12px/1 var(--font-mono); padding: 7px 10px; border-radius: 999px; opacity: .6; transition: background-color .3s, opacity .3s, color .3s; }
.lang button.is-active { background: var(--accent); color: #fff; opacity: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: border-color .3s, transform .5s var(--ease); }
.hero-top .icon-btn { border-color: rgba(255,255,255,.25); }
.icon-btn:hover { border-color: var(--accent); transform: rotate(25deg); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.i-sun { display: none; }
:root[data-theme="light"] .i-sun { display: block; }
:root[data-theme="light"] .i-moon { display: none; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  padding: calc(var(--header-h) + 30px) var(--gutter) 30px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(100% - 44px) 38px);
  transition: clip-path .8s var(--ease), visibility 0s .8s;
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; transition: clip-path .8s var(--ease); }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(5) { transition-delay: .2s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(6) { transition-delay: .25s; }
.mobile-menu__nav span { color: var(--accent); font-size: 12px; }
.mobile-menu__nav b { font: 600 clamp(26px, 8vw, 40px)/1.1 var(--font-display); letter-spacing: -.03em; }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.mobile-menu__tools { display: none; gap: 10px; align-items: center; margin-bottom: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #eef3fa; overflow: hidden; background: #05080d; }
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 115%; object-fit: cover; object-position: 60% 40%; transform: scale(1.12); transform-origin: 50% 30%; will-change: transform; filter: saturate(.85) contrast(1.05); }
.hero.is-in .hero__img { animation: heroZoom 2.4s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, #05080d 0%, rgba(5,8,13,.72) 38%, rgba(5,8,13,.35) 70%, rgba(5,8,13,.75) 100%),
    linear-gradient(90deg, rgba(5,8,13,.85) 0%, rgba(5,8,13,.25) 65%),
    radial-gradient(60% 50% at 80% 30%, rgba(47,134,255,.18), transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.hero__sparks { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); }
.eyebrow { display: inline-flex; margin-bottom: 22px !important; align-items: center; gap: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: rgba(238,243,250,.75); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 8px 14px; margin: 0 0 28px; backdrop-filter: blur(6px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 0 var(--spark); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,122,26,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,122,26,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,26,0); } }
.hero__title { font: 600 clamp(34px, 5.4vw, 84px)/1 var(--font-display); letter-spacing: -.045em; margin: 0; max-width: 16ch; text-wrap: balance; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero.is-in .hero__title .w > span { transform: none; }
.hero__title .accent-word > span { background: linear-gradient(90deg, #6fb0ff, #2f86ff 40%, #ff9a4a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 640px; font-size: clamp(16px, 1.3vw, 18px); color: rgba(238,243,250,.78); margin: 26px 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn--ghost { color: #eef3fa; border-color: rgba(255,255,255,.28); }
.hero .btn--ghost:hover { border-color: #fff; }
.hero__bottom { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-top: 48px; padding-bottom: 32px; }
.hero__stats { list-style: none; margin: 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 40px; border-top: 1px solid rgba(255,255,255,.14); flex: 1; }
.hero__stats li { display: flex; flex-direction: column; gap: 6px; }
.hero__stats b { font: 600 clamp(26px, 2.6vw, 38px)/1 var(--font-display); letter-spacing: -.03em; }
.hero__stats li > span { font-size: 13px; color: rgba(238,243,250,.6); line-height: 1.35; }
.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .3em; color: rgba(238,243,250,.6); flex: none; }
.scroll-hint i { width: 1px; height: 56px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--spark); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 22px 0; }
.marquee__track { display: flex; width: max-content; gap: 38px; align-items: center; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font: 500 clamp(22px, 3vw, 40px)/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--muted); }
.marquee em { font-style: normal; color: var(--spark); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.statement { font: 500 clamp(24px, 3.4vw, 48px)/1.22 var(--font-display); letter-spacing: -.025em; margin: 0 0 clamp(60px, 9vw, 120px); max-width: 1180px; }
.statement .sw { color: var(--line-strong); transition: color .4s; }
.statement .sw.is-lit { color: var(--text); }
.about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.about__photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: var(--shadow); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__photo:hover img { transform: scale(1.05); }
.about__photo figcaption { position: absolute; left: 16px; bottom: 16px; font-size: 12px; color: #fff; background: rgba(5,8,13,.6); backdrop-filter: blur(8px); padding: 8px 12px; border-radius: 999px; }
.about__who p { color: var(--muted); margin: 0 0 16px; }
.checks { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f86ff' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font: 500 12px/1 var(--font-mono); padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(60px, 8vw, 110px); }
.value { position: relative; padding: 34px 30px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .4s, transform .5s var(--ease); }
.value:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.value p { color: var(--muted); margin: 0; font-size: 16px; }
.value__num { position: absolute; top: 26px; right: 28px; font-size: 12px; color: var(--muted); }
.value__icon { width: 48px; height: 48px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 38px; }
.spotlight::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, -50%), var(--accent-soft), transparent 60%); opacity: 0; transition: opacity .4s; }
.spotlight:hover::before { opacity: 1; }

/* ---------- services ---------- */
.services { background: var(--bg-2); }
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc__item { border-bottom: 1px solid var(--line); position: relative; }
.svc__item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent-soft), transparent 70%); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); pointer-events: none; }
.svc__item:hover::before, .svc__item.is-open::before { transform: scaleY(1); }
.svc__head { position: relative; width: 100%; display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 20px; padding: clamp(24px, 3.4vw, 42px) 8px; text-align: left; }
.svc__num { font-size: 13px; color: var(--accent); }
.svc__title { font: 500 clamp(24px, 4vw, 56px)/1.05 var(--font-display); letter-spacing: -.035em; transition: transform .6s var(--ease), color .3s; }
@media (hover: hover) { .svc__item:hover .svc__title { transform: translateX(14px); } }
.svc__plus { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; transition: transform .5s var(--ease), background-color .3s, border-color .3s; }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.svc__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc__item.is-open .svc__plus { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.svc__item.is-open .svc__plus::after { transform: translate(-50%, -50%) rotate(0); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc__body > div { overflow: hidden; padding-left: calc(90px + 28px); }
.svc__item.is-open .svc__body { grid-template-rows: 1fr; }
.svc__body p { max-width: 640px; color: var(--muted); font-size: 18px; margin: 0 0 34px; }
.svc__mimg { display: none; }
.svc-preview { position: fixed; top: 0; left: 0; z-index: 50; width: 340px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg); transition: opacity .35s var(--ease), transform .5s var(--ease); box-shadow: var(--shadow); }
.svc-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- banner ---------- */
.banner { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; color: #fff; isolation: isolate; }
.banner__media { position: absolute; inset: 0; z-index: -1; }
.banner__media img { width: 100%; height: 130%; object-fit: cover; margin-top: -15%; will-change: transform; }
.banner__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,13,.92) 10%, rgba(5,8,13,.35)), radial-gradient(40% 60% at 70% 60%, rgba(255,122,26,.25), transparent); }
.banner__content { padding-block: 120px; }
.banner__title { max-width: 15ch; }
.banner p { max-width: 540px; color: rgba(255,255,255,.75); font-size: 19px; margin: 26px 0 38px; }

/* ---------- workflow ---------- */
.workflow__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 120px); }
.workflow__sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.workflow__sticky .section-lead { margin-top: 24px; }
.workflow__meter { display: flex; align-items: center; gap: 14px; margin-top: 50px; font-size: 13px; color: var(--muted); }
.workflow__meter i { flex: 1; max-width: 220px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.workflow__meter b { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .3s; }
.workflow__meter span:first-child { color: var(--accent); font-size: 28px; font-family: var(--font-display); }
.steps { list-style: none; margin: 0; padding: 0 0 0 70px; position: relative; display: grid; gap: clamp(60px, 9vw, 130px); }
.steps__line { position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.steps__line i { position: absolute; inset: 0; background: linear-gradient(var(--accent), var(--spark)); transform-origin: top; transform: scaleY(0); }
.step { position: relative; opacity: .35; transition: opacity .5s var(--ease); }
.step.is-active { opacity: 1; }
.step__num { position: absolute; left: -70px; top: -2px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--font-mono); background: var(--bg); border: 1px solid var(--line-strong); z-index: 1; transition: background-color .4s, border-color .4s, color .4s, box-shadow .4s; }
.step.is-active .step__num { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 8px var(--accent-soft); }
.step .h3 { font-size: clamp(22px, 2.6vw, 34px); }
.step p { color: var(--muted); font-size: 18px; margin: 0; max-width: 520px; }

/* ---------- projects ---------- */
.projects { background: var(--bg-2); }
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transform-style: preserve-3d; transition: border-color .4s; }
.case:hover { border-color: var(--line-strong); }
.case--wide { grid-column: 1 / -1; flex-direction: row; min-height: 520px; }
.case__media { position: relative; overflow: hidden; background: #000; }
.case--wide .case__media { flex: 1.35; }
.case--product .case__media { aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, #1a2435, #000 75%); }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.case--product .case__media img { width: auto; height: 82%; object-fit: contain; }
.case:hover .case__media img { transform: scale(1.06); }
.case__body { padding: clamp(26px, 3vw, 44px); display: flex; flex-direction: column; justify-content: flex-end; }
.case--wide .case__body { flex: 1; }
.case--wide .h3 { font-size: clamp(26px, 3vw, 42px); }
.case__body p { color: var(--muted); margin: 0; }
.case__tag { align-self: flex-start; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); border: 1px solid var(--accent); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }

/* ---------- gallery ---------- */
.gallery { position: relative; background: var(--bg); }
.gallery__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--header-h); }
.gallery__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.gallery__viewport { overflow: hidden; }
.gallery__track { display: flex; gap: 18px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.gallery__item { position: relative; flex: none; height: min(52vh, 480px); border-radius: 18px; overflow: hidden; background: var(--surface); }
.gallery__item img { height: 100%; width: auto; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.35); }
.gallery__item:hover img { transform: scale(1.06); filter: none; }
.gallery__item .mono { position: absolute; left: 14px; top: 12px; font-size: 11px; color: #fff; opacity: .85; mix-blend-mode: difference; }
.gallery__foot { display: flex; justify-content: space-between; margin-top: 26px; font-size: 13px; color: var(--muted); }

/* ---------- contacts ---------- */
.contacts__title { max-width: 16ch; }
.contacts__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.contact-card { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: linear-gradient(160deg, var(--accent) 0%, #0a3f94 100%); color: #fff; display: grid; gap: 26px; position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 80px rgba(255,255,255,.03); pointer-events: none; }
.contact-card .label { color: rgba(255,255,255,.65); }
.contact-card p { margin: 0; color: rgba(255,255,255,.88); font-size: 15px; }
.label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 8px; color: var(--muted); }
.big-link { display: block; width: fit-content; font: 600 clamp(19px, 1.8vw, 24px)/1.35 var(--font-display); letter-spacing: -.02em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.big-link:hover { background-size: 100% 1px; }
.big-link--sm { font-size: clamp(15px, 1.3vw, 17px); opacity: .8; margin-top: 4px; }
.text-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.4); }
.contact-card__wechat { display: flex; gap: 16px; align-items: center; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.contact-card__wechat img { width: 96px; height: 96px; border-radius: 12px; background: #fff; padding: 6px; }

.requisites { margin-top: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.requisites summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px clamp(20px, 3vw, 36px); font-weight: 600; }
.requisites summary::-webkit-details-marker { display: none; }
.requisites summary .label { margin: 0; }
.requisites[open] .svc__plus { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.requisites[open] .svc__plus::after { transform: translate(-50%, -50%) rotate(0); }
.req-grid { margin: 0; padding: 0 clamp(20px, 3vw, 36px) 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 30px; }
.req-grid .wide { grid-column: span 3; }
.req-grid dt { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; }
.req-grid dd { margin: 0; font-weight: 500; }
.copy { font-family: var(--font-mono); font-weight: 500; border-bottom: 1px dashed var(--line-strong); padding-bottom: 1px; transition: color .3s, border-color .3s; }
.copy::after { content: " ⧉"; opacity: .5; font-size: 12px; }
.copy:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- contact CTA ---------- */
.reach { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 100%; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); isolation: isolate; }
.reach::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 65%); }
.reach::after { content: "@"; position: absolute; right: -10px; top: -40px; z-index: -1; font: 700 clamp(160px, 20vw, 280px)/1 var(--font-display); color: var(--accent-soft); }
.reach .label { color: var(--accent); }
.reach__title { margin: 0 0 16px; font: 600 clamp(24px, 2.6vw, 36px)/1.15 var(--font-display); letter-spacing: -.03em; max-width: 18ch; text-wrap: balance; }
.reach__text { margin: 0 0 30px; color: var(--muted); max-width: 520px; }
.reach__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.reach__note { margin: 22px 0 0; font-size: 13px; color: var(--muted); max-width: 480px; }

/* ---------- EPC ---------- */
.epc__deck { display: flex; gap: 14px; height: clamp(300px, 42vw, 460px); }
.epc__card { position: relative; flex: 1; min-width: 0; border-radius: var(--radius); overflow: hidden; text-align: left; color: #fff; background: #0a0f17; isolation: isolate; transition: flex-grow .9s var(--ease), box-shadow .5s; outline-offset: 4px; }
.epc__card.is-active { flex-grow: 2.6; box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.epc__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(.8) brightness(.55); transform: scale(1.08); transition: filter .9s var(--ease), transform 1.4s var(--ease); }
.epc__card.is-active img, .epc__card:hover img { filter: grayscale(0) brightness(.62); transform: scale(1); }
.epc__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5,8,13,.92), rgba(5,8,13,.1) 60%); }
.epc__letter { position: absolute; top: 14px; left: 22px; font: 700 clamp(90px, 13vw, 190px)/1 var(--font-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.7); transition: color .6s, -webkit-text-stroke-color .6s, transform .9s var(--ease); }
.epc__card.is-active .epc__letter { color: var(--accent); -webkit-text-stroke-color: transparent; text-shadow: 0 10px 60px rgba(47,134,255,.45); }
.epc__cap { position: absolute; left: 22px; right: 22px; bottom: 24px; display: flex; flex-direction: column; gap: 6px; }
.epc__word { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.epc__cap b { font: 600 clamp(17px, 1.8vw, 26px)/1.15 var(--font-display); letter-spacing: -.02em; transition: opacity .5s; }
.epc__card:not(.is-active) .epc__cap b { opacity: 0; }
.epc__card:not(.is-active) .epc__word { writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; }
.epc__timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--spark); transform: scaleX(0); transform-origin: left; }
.epc__deck.is-auto .epc__card.is-active .epc__timer { animation: epcTimer 6.5s linear forwards; }
@keyframes epcTimer { to { transform: scaleX(1); } }
.epc__panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 70px); margin-top: 34px; padding: clamp(24px, 3.4vw, 44px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.epc__panel.is-swap .epc__info, .epc__panel.is-swap .epc__side { animation: swapIn .7s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(14px); } }
.epc__step { margin: 0 0 14px; font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; }
.epc__text { margin: 0; font: 500 clamp(19px, 1.9vw, 26px)/1.35 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.epc__info .checks { margin-bottom: 0; }
.epc__stat { display: flex; align-items: baseline; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.epc__stat b { font: 600 64px/1 var(--font-display); letter-spacing: -.04em; color: var(--accent); }
.epc__stat b.pop { animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.epc__stat span { color: var(--muted); font-size: 14px; max-width: 180px; }
.epc__examples { list-style: none; margin: 0; padding: 0; }
.epc__examples li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.epc__examples li .mono { font-size: 11px; color: var(--accent); padding-top: 3px; text-transform: uppercase; letter-spacing: .08em; }
.epc__examples b { display: block; font-size: 14px; }
.epc__examples p { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.epc__more { color: var(--accent); border-color: var(--accent); margin-top: 16px; }

/* ---------- experience ---------- */
.experience { overflow: hidden; }
.xp-stats { list-style: none; margin: 0 0 50px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.xp-stats li { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.xp-stats b { font: 600 clamp(38px, 4.6vw, 64px)/1 var(--font-display); letter-spacing: -.04em; }
.xp-stats li:first-child b { color: var(--accent); }
.xp-stats li > span { color: var(--muted); font-size: 14px; }
.clients { border-block: 1px solid var(--line); padding: 20px 0; margin-bottom: 50px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients__track { display: flex; width: max-content; gap: 30px; align-items: center; animation: marquee 60s linear infinite; }
.clients:hover .clients__track { animation-play-state: paused; }
.clients span { font: 500 clamp(16px, 1.6vw, 21px)/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; color: var(--muted); transition: color .3s; }
.clients span:hover { color: var(--text); }
.clients em { font-style: normal; font-size: 10px; color: var(--accent); }

.xp-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; margin-bottom: 20px; }
.xp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; transition: background-color .3s, border-color .3s, color .3s; }
.chip small { opacity: .6; margin-left: 2px; font-family: var(--font-mono); }
.chip:hover { border-color: var(--accent); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip--stage b { font-family: var(--font-display); margin-right: 8px; color: var(--accent); }
.chip--stage.is-on b { color: #fff; }
.xp-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.xp-reset { margin: 0; color: var(--accent); border-color: var(--accent); font-size: 13px; }
.xp-list { list-style: none; margin: 0; padding: 0; }
.xp-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 24px; align-items: start; padding: 24px 8px; border-bottom: 1px solid var(--line); position: relative; animation: xpIn .6s var(--ease) both; animation-delay: calc(var(--k) * 45ms); transition: background-color .3s; }
.xp-item:hover { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
@keyframes xpIn { from { opacity: 0; transform: translateY(16px); } }
.xp-item__num { font-size: 13px; color: var(--accent); padding-top: 4px; }
.xp-item__work { margin: 0 0 6px; font: 500 clamp(16px, 1.45vw, 19px)/1.4 var(--font-body); max-width: 760px; }
.xp-item__client { margin: 0; color: var(--muted); font-size: 14.5px; }
.xp-item__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.xp-item__country { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.xp-item__stages { display: flex; gap: 4px; }
.xp-item__stages i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 600 12px/1 var(--font-display); font-style: normal; border: 1px solid var(--line); color: var(--line-strong); }
.xp-item__stages i.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.xp-empty { padding: 40px 8px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { padding: 80px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__big { font: 700 clamp(34px, 9vw, 150px)/.9 var(--font-display); letter-spacing: -.06em; background: linear-gradient(180deg, var(--text) 20%, transparent 110%); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; margin-bottom: 50px; }
.footer__row { display: flex; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.footer__row p { margin: 0; color: var(--muted); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.footer__links a:hover, .to-top:hover { color: var(--accent); }
.footer__row--small { font-size: 13px; color: var(--muted); }

/* ---------- lightbox, cookie, toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(3,5,9,.94); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 60px 70px; animation: fade .35s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 40px 120px rgba(0,0,0,.6); animation: zoomIn .5s var(--ease); }
.lightbox__close, .lightbox__nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 28px; line-height: 1; display: grid; place-items: center; transition: background-color .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 12px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; color: rgba(255,255,255,.7); font-size: 13px; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }

.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 150; max-width: 460px; display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 13px; color: var(--muted); animation: slideUp .6s var(--ease); }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie b { color: var(--text); }
.cookie a { color: var(--accent); }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 600; translate: -50% 0; padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  .header__cta { display: none; }
  .section-head--split { grid-template-columns: 1fr; gap: 20px; }
  .about__grid, .workflow__grid, .contacts__grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .scroll-hint { display: none; }
  .workflow__sticky { position: static; }
  .workflow__meter { display: none; }
  .cases { grid-template-columns: 1fr; }
  .case--wide { flex-direction: column; min-height: 0; }
  .case--wide .case__media { aspect-ratio: 4 / 3.4; }
  .svc__head { grid-template-columns: 44px 1fr auto; gap: 14px; }
  .svc__body > div { padding-left: 8px; padding-right: 8px; }
  .svc__mimg { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; margin-bottom: 28px; }
  .svc-preview { display: none; }
  .req-grid { grid-template-columns: 1fr 1fr; }
  .req-grid .wide { grid-column: span 2; }
  .epc__deck { flex-direction: column; height: auto; }
  .epc__card { flex: none; height: 96px; transition: height .8s var(--ease); }
  .epc__card.is-active { height: 280px; }
  .epc__letter { font-size: 64px; top: 50%; translate: 0 -50%; transition: top .6s var(--ease), translate .6s var(--ease), font-size .6s; }
  .epc__card.is-active .epc__letter { top: 18px; translate: none; font-size: 110px; }
  .epc__cap { left: auto; right: 22px; bottom: 50%; translate: 0 50%; align-items: flex-end; text-align: right; max-width: 60%; }
  .epc__card.is-active .epc__cap { left: 22px; right: 22px; bottom: 22px; translate: none; align-items: flex-start; text-align: left; max-width: none; }
  .epc__panel { grid-template-columns: 1fr; }
  .epc__card:not(.is-active) .epc__cap b { opacity: 1; }
  .epc__card:not(.is-active) .epc__word { writing-mode: horizontal-tb; transform: none; align-self: auto; }
  .xp-tools { flex-direction: column; }

  /* gallery: native swipe instead of scroll-pinning */
  .gallery { height: auto !important; padding: 90px 0; }
  .gallery__pin { position: static; height: auto; padding-top: 0; }
  .gallery__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gallery__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gallery__viewport::-webkit-scrollbar { display: none; }
  .gallery__track { transform: none !important; }
  .gallery__item { scroll-snap-align: center; height: 62vw; max-height: 420px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand__legal { display: none; }
  .header__tools > .lang, .header__tools > .icon-btn { display: none; }
  .mobile-menu__tools { display: flex; }
  .brand__logo, .header.is-scrolled .brand__logo { height: 40px; }
  .lang button { padding: 7px 8px; }
  .header__tools { gap: 6px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 18px 20px; }
  .steps { padding-left: 58px; }
  .step__num { left: -58px; width: 40px; height: 40px; }
  .steps__line { left: 19px; }
  .req-grid { grid-template-columns: 1fr; }
  .req-grid .wide { grid-column: auto; }
  .xp-item { grid-template-columns: 1fr; gap: 10px; padding: 20px 4px; }
  .xp-item__meta { flex-direction: row; align-items: center; justify-content: space-between; order: 3; }
  .xp-item__num { display: none; }
  .xp-stats { gap: 10px; }
  .xp-stats li { padding: 18px 14px; }
  .reach__actions .btn { width: 100%; }

  .requisites summary { grid-template-columns: 1fr auto; }
  .requisites summary .label { grid-column: 1 / -1; }
  .cookie { right: 16px; flex-direction: column; align-items: stretch; }
  .lightbox { padding: 70px 10px; }
  .lightbox__nav { top: auto; bottom: 14px; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero__title .w > span { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
