:root {
  --navy: #010D24;
  --navy-about: #031630;
  --navy-cta: #031136;
  --card-dark: #041B38;
  --accent: #ED6015;
  --accent-hi: #FD7510;
  --ink: #F4F7FB;
  --ink-soft: #F2F5FA;
  --muted: #93A3BE;
  --muted-2: #A7B7D2;
  --muted-3: #8CA0BE;
  --light: #F2F7FC;
  --light-alt: #E9F2FB;
  --card: #FBFCFE;
  --card-border: #DFE7F3;
  --deep: #081F4D;
  --deep-2: #0B2050;
  --deep-3: #12296B;
  --slate: #5D6E8E;
  --slate-2: #33456B;
  --pad: 84px;
  --ease: cubic-bezier(.22, .61, .21, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --px: 0;
  --py: 0;
  --sc: 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--accent); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--accent-hi); }

h1, h2, h3, p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .24em;
  color: var(--accent);
}

.rule {
  width: 44px;
  height: 3px;
  background: var(--accent);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .14em;
  white-space: nowrap;
}
.arrow-link svg { color: var(--accent); transition: transform .4s var(--ease-out); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease;
}
.nav.is-scrolled {
  background: rgba(2, 13, 36, .78);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom-color: rgba(255, 255, 255, .07);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .08em;
}
.nav__brand:hover { color: var(--ink); }
.nav__brand img { width: 46px; height: 52px; object-fit: contain; display: block; }

.nav__menu { display: flex; align-items: center; gap: 34px; }

.nav__link {
  position: relative;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #D4DCE9;
}
.nav__link:hover { color: #fff; }
/* the rule wipes in from the left and leaves to the right */
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .42s var(--ease-out);
}
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }

/* reading progress — a hairline that fills as the page is consumed */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 61;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  box-shadow: 0 0 12px rgba(253, 117, 16, .55);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

/* Cyrillic labels are longer — tighten the desktop nav so it never crowds the brand */
html[lang="ru"] .nav__menu,
html[lang^="uz"] .nav__menu { gap: 24px; }
html[lang="ru"] .nav__link,
html[lang^="uz"] .nav__link { letter-spacing: .06em; }
html[lang="ru"] .nav__tools,
html[lang^="uz"] .nav__tools { margin-left: 18px; }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--accent);
  white-space: nowrap;
}
.nav__cta::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s ease;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- language switcher ---------- */

.nav__menu { margin-left: auto; }
.nav__tools { display: flex; align-items: center; gap: 14px; margin-left: 26px; }

.langsw { position: relative; }
.langsw__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #D4DCE9;
  cursor: pointer;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.langsw__btn:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.langsw__code { line-height: 1; min-width: 1.5em; text-align: center; }
.langsw__chev { opacity: .7; transition: transform .3s var(--ease); }
.langsw.is-open .langsw__chev { transform: rotate(180deg); }

.langsw__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 172px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: rgba(6, 16, 38, .97);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s var(--ease);
  z-index: 90;
}
.langsw.is-open .langsw__menu { opacity: 1; transform: none; pointer-events: auto; }
.langsw__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: #C6D0E0;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.langsw__menu button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.langsw__menu button.is-active { color: var(--accent-hi); }
.langsw__menu button.is-active::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

/* ---------- hero (ROAR) ---------- */

.hero {
  --px: 0;
  --py: 0;
  --sc: 0;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 95% at 84% 12%, rgba(253, 117, 16, .30), transparent 52%),
    radial-gradient(85% 80% at 74% 66%, rgba(237, 96, 21, .16), transparent 60%),
    radial-gradient(100% 120% at 10% 20%, rgba(4, 27, 56, .85), transparent 65%),
    var(--navy);
}
.hero__glow {
  position: absolute;
  z-index: 1;
  width: 62vmax;
  height: 62vmax;
  right: -14vmax;
  top: 50%;
  transform: translate3d(calc(var(--px) * -14px), calc(-50% + var(--py) * -14px + var(--sc) * -90px), 0);
  background: radial-gradient(circle at 50% 50%, rgba(253, 117, 16, .5), rgba(237, 96, 21, .16) 44%, transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

.blade { position: absolute; z-index: 2; pointer-events: none; will-change: transform; }
.blade--wedge {
  right: 0;
  top: 0;
  width: min(60vw, 780px);
  height: 100%;
  background: linear-gradient(150deg, #061426 0%, #030e23 55%, #010b20 100%);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 6% 100%);
  opacity: 1;
  transform: translate3d(calc(var(--px) * 10px), 0, 0);
}
/* glowing orange edge along the wedge's leading diagonal — keeps the 45° slice */
.blade--edge {
  right: 0;
  top: 0;
  width: min(60vw, 780px);
  height: 100%;
  background: linear-gradient(150deg, var(--accent-hi), var(--accent) 55%, #d1520e);
  clip-path: polygon(42% 0, 43.4% 0, 7.4% 100%, 6% 100%);
  filter: drop-shadow(0 0 14px rgba(253, 117, 16, .55));
  transform: translate3d(calc(var(--px) * 10px), 0, 0);
}
.blade--slashA {
  left: 8%;
  top: -20vh;
  width: 2px;
  height: 150vh;
  background: linear-gradient(180deg, transparent, var(--accent-hi) 30%, var(--accent-hi) 70%, transparent);
  transform: rotate(45deg) translate3d(calc(var(--px) * 18px), 0, 0);
  box-shadow: 0 0 24px 1px rgba(253, 117, 16, .7);
  opacity: .9;
}
.blade--slashB {
  left: 2%;
  top: -20vh;
  width: 1px;
  height: 150vh;
  background: linear-gradient(180deg, transparent, rgba(253, 117, 16, .6) 40%, transparent);
  transform: rotate(45deg) translate3d(calc(var(--px) * 26px), 0, 0);
  opacity: .7;
}

.hero__lion {
  position: absolute;
  z-index: 3;
  right: 2.5vw;
  bottom: 7vh;
  width: min(46vw, 620px);
  aspect-ratio: 748 / 592;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(calc(var(--px) * 20px), calc(var(--py) * 16px + var(--sc) * -60px), 0);
}
.hero__lion img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* #roarDuo cuts the backdrop out, so the glow follows the silhouette */
  filter: url(#roarDuo) drop-shadow(0 0 34px rgba(253, 117, 16, .34)) drop-shadow(0 22px 46px rgba(1, 9, 27, .55));
  /* the source art is cropped mid-chest — dissolve the cut edge into the dark */
  -webkit-mask-image: linear-gradient(to top, transparent 1%, #000 15%);
  mask-image: linear-gradient(to top, transparent 1%, #000 15%);
}
.hero__lion-bloom {
  position: absolute;
  inset: 0;
  filter: url(#roarDuo) blur(16px);
  opacity: .5;
  mix-blend-mode: screen;
}

/* code woven into the mane — visible only where the mane glows,
   dies out over the navy backdrop (overlay blend + radial mask) */
.hero__code {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: .95;
  -webkit-mask-image: radial-gradient(56% 50% at 52% 50%, #000 40%, transparent 76%);
  mask-image: radial-gradient(56% 50% at 52% 50%, #000 40%, transparent 76%);
}
.hero__code pre {
  margin: 0;
  font: 600 11px/1.65 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: .04em;
  white-space: pre;
  color: #FFE3C9;
  text-shadow: 0 0 8px rgba(253, 117, 16, .55);
  animation: xsCodeDrift 34s linear infinite;
}

@keyframes xsCodeDrift {
  to { transform: translateY(-50%); }
}

.rail {
  position: absolute;
  left: max(14px, 2vw);
  top: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  pointer-events: none;
}
.rail__line { width: 1px; height: 80px; background: linear-gradient(var(--accent-hi), transparent); }
.rail__line--down { background: linear-gradient(transparent, var(--accent-hi)); }
.rail__txt {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .42em;
  color: var(--muted);
  text-transform: uppercase;
}
.rail__txt b { color: var(--accent-hi); }

.hero__body {
  position: relative;
  z-index: 5;
  padding: 132px var(--pad) 80px;
  width: 100%;
  max-width: 900px;
  transform: translate3d(calc(var(--px) * -6px), calc(var(--sc) * 40px), 0);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 26px;
}
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-hi);
}

.title {
  font-family: 'Anton', 'Manrope', sans-serif;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: .005em;
  color: var(--ink);
}
.line { display: block; overflow: hidden; }
.line__i { display: block; will-change: transform; }
.title .t1, .title .t2 { font-size: clamp(3rem, 8.6vw, 7rem); color: #EAF0FA; }
.title .t2 {
  color: var(--accent-hi);
  text-shadow: .01em .014em 0 #B8480D, .022em .028em 0 rgba(9, 20, 38, .8);
}
/* Cyrillic & CJK render in Manrope (Anton is Latin-only) — wider/taller, so scale down */
html[lang="uz-Cyrl"] .title .t1, html[lang="uz-Cyrl"] .title .t2,
html[lang="ru"] .title .t1, html[lang="ru"] .title .t2,
html[lang="zh"] .title .t1, html[lang="zh"] .title .t2 {
  font-size: clamp(2.2rem, 5.8vw, 4.7rem);
}
html[lang="uz-Cyrl"] .title, html[lang="ru"] .title, html[lang="zh"] .title { line-height: 1; }

.hero__lead {
  margin-top: 40px;
  max-width: 440px;
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.72;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.hero .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  gap: 12px;
  padding: 16px 26px;
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), color .35s ease, border-color .35s ease;
}
.hero .btn svg { transition: transform .4s var(--ease); }
.hero .btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent); color: #0A1020; padding: 16px 26px; }
.btn--solid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s cubic-bezier(.7, 0, .2, 1);
}
.btn--solid:hover { color: #0A1020; box-shadow: 0 16px 38px rgba(237, 96, 21, .32); }
.btn--solid:hover::before, .btn--solid:focus-visible::before { transform: translateX(120%); }
.btn--solid:hover svg { transform: translateX(4px); }
.hero .btn--ghost { color: var(--ink); border-color: rgba(255, 255, 255, .28); padding: 16px 26px; }
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(253, 117, 16, .12);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s cubic-bezier(.7, 0, .2, 1);
}
.btn--ghost:hover { color: #fff; border-color: var(--accent-hi); background: transparent; transform: translateY(-2px); }
.btn--ghost:hover::before, .btn--ghost:focus-visible::before { transform: scaleY(1); }

.scroll-cue {
  position: absolute;
  z-index: 5;
  left: var(--pad);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .34em;
  color: var(--muted);
  text-transform: uppercase;
}
.scroll-cue__track { position: relative; width: 1px; height: 40px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.scroll-cue__track::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--accent-hi); }

.hero__vig {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(1, 9, 24, .55) 100%);
  mix-blend-mode: multiply;
}
.hero__grain {
  position: absolute;
  inset: -50%;
  z-index: 8;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- section shell ---------- */

.section { scroll-margin-top: 70px; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-top: 14px;
}
.section__head h2 {
  font-size: clamp(34px, 4.1vw, 58px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--deep);
}
.section__head p {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 500px;
}

/* ---------- services ---------- */

.services {
  background: var(--light);
  padding: 108px var(--pad) 118px;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 16px;
  margin-top: 52px;
  align-items: stretch;
}

.svc {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--accent);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.svc:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(8, 31, 77, .1);
}
.svc__num { font-size: 15px; font-weight: 700; color: var(--accent); }

.svc--lead { grid-row: span 2; min-height: 516px; }
.svc--lead > img {
  position: absolute;
  top: 2px;
  right: 2px;
  height: calc(100% - 4px);
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: right center;
}
.svc__body { position: relative; z-index: 2; padding: 44px 48px 42px; max-width: 56%; }
.svc__body h3 {
  margin-top: 26px;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--deep-2);
}
.svc__body .rule { margin-top: 24px; }
.svc__body > p {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 340px;
}

.svc__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 36px;
}
.svc__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--slate-2);
}
.svc__list svg { color: var(--deep-3); flex: 0 0 auto; }

.svc__more {
  margin-top: 46px;
  font-size: 13px;
  color: var(--deep-2);
}
.svc__more:hover { color: var(--accent); }

.svc--sm { padding: 40px 44px 38px; min-height: 186px; }
.svc__row { display: flex; gap: 34px; margin-top: 22px; }
.svc__icon {
  flex: 0 0 96px;
  height: 96px;
  border: 1px solid #DCE6F5;
  border-radius: 16px;
  background: #EDF3FB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-2);
}
.svc__col { flex: 1; }
.svc__col h3 {
  font-size: clamp(24px, 2.2vw, 29px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--deep-2);
}
.svc__col .rule { width: 40px; margin-top: 18px; }
.svc__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
}
.svc__foot p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate);
  max-width: 330px;
}
.svc__foot .arrow-link { color: var(--deep-2); gap: 11px; letter-spacing: .12em; }
.svc__foot .arrow-link:hover { color: var(--accent); }

/* ---------- work ---------- */

.work {
  background: var(--light-alt);
  padding: 104px 148px 128px;
}
.work__head {
  display: flex;
  align-items: center;
  gap: 52px;
  margin-top: 12px;
}
.work__head h2 {
  font-size: clamp(34px, 4.1vw, 58px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--deep);
}
.work__head p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--slate);
  max-width: 460px;
  border-left: 1px solid #B9C9DE;
  padding-left: 44px;
}

.work__rows { display: flex; flex-direction: column; gap: 3px; margin-top: 56px; }
.work__row { display: grid; gap: 3px; }
.work__row--a { grid-template-columns: 59.3fr 40.7fr; }
.work__row--b { grid-template-columns: 46.9fr 53.1fr; }

.proj {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-dark);
  overflow: hidden;
  min-height: 312px;
}
.work__row--b .proj { min-height: 287px; }

/* the live screenshot sits in a tilted frame — real work, not a stock photo */
.proj__shot {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -13%;
  width: 60%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 28px 62px rgba(0, 0, 0, .55);
  transform: translateY(-50%) perspective(1500px) rotateY(-16deg) rotateX(4deg);
  transform-origin: left center;
  transition: transform 1s var(--ease-out), box-shadow .6s ease;
}
.proj__shot img { display: block; width: 100%; height: auto; filter: saturate(1.06) brightness(1.05); }
.proj__shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(4, 27, 56, .55) 0%, rgba(4, 27, 56, 0) 46%);
}
.proj__corner {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 78px;
  height: 78px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.proj__corner-icon {
  position: absolute;
  z-index: 3;
  top: 15px;
  left: 14px;
  color: #fff;
  display: flex;
}
.proj__tag {
  position: absolute;
  z-index: 3;
  top: 31px;
  left: 100px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--accent);
}
.proj__body { position: relative; z-index: 2; flex: 1 1 auto; padding: 80px 44px 16px; }
.proj__body h3 {
  font-size: clamp(24px, 2.4vw, 33px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.proj__body .rule { width: 36px; margin-top: 15px; }
.proj__body p {
  margin-top: 15px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 280px;
}
.proj__list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.proj__list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted-3);
}
.proj__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.proj__list b { display: block; font-weight: 700; color: var(--ink); }
.proj__nda {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin: 0 44px 28px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--muted-3);
}
.proj__link {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin: 0 44px 28px;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ink);
}
.proj__link:hover { color: var(--accent-hi); }

/* the card answers the cursor: the frame leans in, a hairline lights the edge */
.proj::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(100deg, var(--card-dark) 30%, rgba(4, 27, 56, .78) 47%, rgba(4, 27, 56, 0) 74%);
}
.proj--systems::before { display: none; }
.proj::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(253, 117, 16, 0);
  transition: box-shadow .5s ease;
}
.proj:hover .proj__shot {
  transform: translateY(-50%) perspective(1500px) rotateY(-11deg) rotateX(2deg) translate3d(-14px, -6px, 0);
  box-shadow: 0 34px 74px rgba(0, 0, 0, .6);
}
.proj:hover::after { box-shadow: inset 0 0 0 1px rgba(253, 117, 16, .4); }
.proj:hover .proj__link { color: var(--accent-hi); }
.proj:hover .proj__link svg { transform: translate(3px, -3px); }

.proj--sanoat .proj__shot { width: 58%; right: -20%; }
.proj--hazrat .proj__shot { width: 60%; right: -16%; }
.proj--systems .proj__body p { max-width: 330px; }

@media (min-width: 861px) {
  .work__row--b .proj__body h3 { font-size: clamp(24px, 2.25vw, 31px); }
  .work__row--b .proj__link, .work__row--b .proj__nda { margin-bottom: 26px; }
}

/* ---------- about ---------- */

.about {
  position: relative;
  background: var(--navy-about);
  overflow: hidden;
}
.about__art {
  position: absolute;
  top: 0;
  right: 0;
  width: 57.2%;
  height: auto;
  display: block;
}
.about__body {
  position: relative;
  z-index: 2;
  padding: 70px 0 0 72px;
  max-width: 620px;
  min-height: 604px;
}
.about__kicker { display: flex; align-items: center; gap: 16px; }
.about__kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--accent);
}
.about__body h2 {
  margin-top: 14px;
  font-size: clamp(32px, 3.4vw, 47px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink-soft);
}
.about__lead {
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.65;
  color: #9DAEC9;
  max-width: 470px;
}
.about__body > .rule { width: 38px; margin-top: 22px; }

.about__cols { display: flex; gap: 30px; margin-top: 36px; }
.about__cols > .divider { width: 1px; background: rgba(255, 255, 255, .1); }
.about__mission { flex: 0 0 268px; }
.about__values { flex: 1; }
.about__label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .2em;
  color: #7E92B4;
}
.about__mission-row { display: flex; gap: 18px; margin-top: 20px; }
.about__mission-row svg { color: var(--accent); flex: 0 0 auto; }
.about__mission-row p { font-size: 15px; line-height: 1.7; color: #C3CFE3; }

.value-list { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; }
.value-list li { display: flex; gap: 16px; align-items: flex-start; }
.value-list svg { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.value-list b { display: block; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.value-list span { font-size: 12.5px; color: var(--muted-3); }

.about__place {
  display: flex;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  padding: 16px 22px 16px 16px;
  margin-top: 30px;
  max-width: 460px;
  background: rgba(255, 255, 255, .015);
}
.about__place img { width: 106px; height: 104px; object-fit: cover; flex: 0 0 auto; }
.about__place b {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink-soft);
  display: block;
}
.about__place b span { color: #C3CFE3; font-weight: 700; }
.about__place p { margin-top: 10px; font-size: 11.5px; line-height: 1.55; color: var(--muted-3); }

.about__facts {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 36px 48px 40px 370px;
}
.about__facts .divider { width: 1px; height: 62px; background: rgba(255, 255, 255, .1); }
.fact { display: flex; gap: 18px; align-items: flex-start; flex: 1; max-width: 250px; }
.fact svg { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.fact b {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.fact p { font-size: 13px; line-height: 1.55; color: var(--muted-3); margin-top: 6px; }

/* ---------- contact ---------- */

.contact {
  position: relative;
  background: var(--navy-cta);
  overflow: hidden;
  padding: 112px 88px 96px;
}
.contact__art {
  position: absolute;
  top: 8px;
  right: 0;
  width: 27.8%;
  height: auto;
  -webkit-mask-image: radial-gradient(120% 120% at 62% 38%, #000 55%, transparent 93%);
  mask-image: radial-gradient(120% 120% at 62% 38%, #000 55%, transparent 93%);
}
.contact__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact__kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--accent);
}
.contact__kicker::before,
.contact__kicker::after {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}
.contact__inner h2 {
  margin-top: 30px;
  font-size: clamp(40px, 5.9vw, 84px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
}
.contact__lead {
  margin-top: 32px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 480px;
}

.btn--glow {
  margin-top: 48px;
  background: linear-gradient(180deg, #FB8B33 0%, #EE5F0E 100%);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 22px 42px;
  border-radius: 14px;
  animation: xsGlow 3.5s ease-in-out infinite;
}
.btn--glow:hover { color: #fff; transform: translateY(-3px) scale(1.02); }

/* three equal tiles on one grid — every icon, label and value lines up,
   at every width and in every language */
.contact__ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 74px;
  text-align: left;
}
.contact__ways .divider { display: none; }
.way {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: rgba(10, 25, 62, .5);
  overflow: hidden;
  transition: transform .45s var(--ease-out), border-color .45s ease, background .45s ease;
}
/* a slow sheen crosses the tile on hover */
.way::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(253, 117, 16, .12) 50%, transparent 68%);
  transform: translateX(-115%);
  transition: transform .85s var(--ease-out);
}
.way:hover {
  transform: translateY(-3px);
  border-color: rgba(253, 117, 16, .34);
  background: rgba(15, 32, 74, .6);
}
.way:hover::after { transform: translateX(115%); }
.way:hover .way__icon {
  color: var(--accent-hi);
  border-color: rgba(253, 117, 16, .42);
  background: rgba(253, 117, 16, .09);
}
.way__icon {
  transition: color .4s ease, border-color .4s ease, background .4s ease;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex: 0 0 auto;
}
.way > div { min-width: 0; }
.way small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.way b, .way a {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-top: 5px;
}
.way a:hover { color: var(--accent-hi); }

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
  /* stretch + space-between keeps the notes on one baseline when a label wraps
     in a longer language */
  align-items: stretch;
  margin-top: 64px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 22px;
  background: rgba(10, 25, 62, .55);
  padding: 44px 30px;
}
.stats .divider { width: 1px; height: 120px; align-self: center; background: rgba(255, 255, 255, .08); }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 0 30px; }
.stat__row { display: flex; align-items: center; gap: 22px; }
.stat__icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex: 0 0 auto;
}
.stat__num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.01em;
}
.stat__label { font-size: 16.5px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.stat__note { font-size: 13px; color: var(--muted-3); }

/* ---------- technologies ---------- */

.tech {
  background: var(--navy-about);
  padding: 108px 0 110px;
  overflow: hidden;
}
.tech__head { padding: 0 var(--pad); max-width: 820px; }
.tech__head h2 {
  margin-top: 14px;
  font-size: clamp(34px, 4.1vw, 58px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink-soft);
}
.tech__head p {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
}

.marquee {
  margin: 58px 0 56px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
  -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;
  align-items: center;
  width: max-content;
  animation: xsMarquee 48s linear infinite;
}
.marquee__track span {
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: #C3CFE3;
  white-space: nowrap;
}
.marquee__track i {
  width: 7px;
  height: 7px;
  margin: 0 34px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.stacks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0 var(--pad);
}
.stacks li {
  padding: 34px 34px 38px;
  border: 1px solid rgba(255, 255, 255, .07);
  margin: -1px 0 0 -1px;
  transition: background .3s ease;
}
.stacks li:hover { background: rgba(255, 255, 255, .025); }
.stacks b {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--accent);
}
.stacks h3 {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink-soft);
}
.stacks p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted-3);
}

/* ---------- careers ---------- */

.careers {
  background: var(--light-alt);
  padding: 104px var(--pad) 112px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.careers__intro h2 {
  margin-top: 14px;
  font-size: clamp(34px, 4.1vw, 58px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--deep);
}
.careers__intro p {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 420px;
}
.careers__cta { margin-top: 34px; color: var(--deep-2); }
.careers__cta:hover { color: var(--accent); }

.roles { border-top: 1px solid #B9C9DE; }
.roles li { border-bottom: 1px solid #B9C9DE; }
.roles a {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 8px 28px 0;
  color: var(--deep-2);
  transition: padding-left .35s var(--ease), color .25s ease;
}
.roles a:hover { padding-left: 18px; color: var(--accent); }
.roles__title {
  flex: 1;
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.roles__meta { font-size: 13.5px; color: var(--slate); white-space: nowrap; }
.roles a svg { flex: 0 0 auto; transition: transform .35s var(--ease); }
.roles a:hover svg { transform: translate(3px, -3px); }

/* ---------- footer ---------- */

.footer {
  position: relative;
  background: var(--navy);
  padding: 96px var(--pad) 34px;
  overflow: hidden;
}
.footer__mark {
  position: absolute;
  left: 50%;
  bottom: -2.2vw;
  transform: translateX(-50%);
  font-size: 20vw;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .055);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.footer__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
}
.footer__col h3 {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .2em;
  color: #7E92B4;
  margin-bottom: 22px;
}
.footer__col a, .footer__col span {
  display: block;
  font-size: 15.5px;
  line-height: 2.1;
  color: #C3CFE3;
}
.footer__col a:hover { color: var(--accent-hi); }
.footer__col .footer__brand { display: flex; margin-bottom: 22px; }
.footer__brand img { width: 38px; height: 44px; }
.footer__col .footer__brand span { font-size: 19px; line-height: 1; }
.footer__col > p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted-3);
  max-width: 320px;
}
.footer__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 86px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  color: var(--muted-3);
}
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--ink);
}
.footer__top:hover { color: var(--accent-hi); }
.footer__top svg { transition: transform .35s var(--ease); }
.footer__top:hover svg { transform: translateY(-3px); }

/* ---------- motion ---------- */

@keyframes xsFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes xsMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes xsGlow {
  0%, 100% { box-shadow: 0 6px 26px rgba(244, 101, 17, .38), 0 0 54px rgba(244, 101, 17, .18); }
  50% { box-shadow: 0 6px 38px rgba(253, 117, 16, .55), 0 0 80px rgba(253, 117, 16, .26); }
}

[data-reveal].will-reveal { opacity: 0; transform: translateY(32px); }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--rdelay, 0ms);
}
[data-reveal].is-done { opacity: 1; transform: none; }

/* section headings wipe in behind a soft diagonal edge — a mask, so the text
   itself is never touched and every language behaves the same */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].will-reveal h2,
  h2[data-reveal].will-reveal,
  [data-reveal].is-in h2,
  h2[data-reveal].is-in,
  [data-reveal].is-done h2,
  h2[data-reveal].is-done {
    -webkit-mask-image: linear-gradient(96deg, #000 55%, transparent 68%);
    mask-image: linear-gradient(96deg, #000 55%, transparent 68%);
    -webkit-mask-size: 300% 100%;
    mask-size: 300% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  [data-reveal].will-reveal h2,
  h2[data-reveal].will-reveal {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  [data-reveal].is-in h2,
  h2[data-reveal].is-in {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    transition: -webkit-mask-position 1.2s var(--ease-out), mask-position 1.2s var(--ease-out);
    transition-delay: calc(var(--rdelay, 0ms) + 100ms);
  }
  [data-reveal].is-done h2,
  h2[data-reveal].is-done {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

/* balanced ragging on display copy */
h2, .section__head p, .work__head p, .about__lead, .contact__lead { text-wrap: balance; }

/* hero entrance — armed by JS only when motion is allowed, so a no-JS
   or reduced-motion visitor always gets the fully composed hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-armed .line__i { transform: translateY(112%); }
  .hero-armed .status,
  .hero-armed .hero__lead,
  .hero-armed .hero__actions,
  .hero-armed .scroll-cue { opacity: 0; }
  .hero-armed .status { transform: translateY(14px); }
  .hero-armed .hero__lead,
  .hero-armed .hero__actions { transform: translateY(20px); }
  .hero-armed .blade--wedge { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  .hero-armed .blade--edge { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  .hero-armed .blade--slashA,
  .hero-armed .blade--slashB { transform: rotate(45deg) scaleY(0); transform-origin: top center; }
  .hero-armed .hero__lion { clip-path: inset(0 0 0 100%); opacity: 0; }
  .hero-armed .hero__glow { opacity: 0; }
  .hero-armed .rail { opacity: 0; }

  .hero-ready .hero__glow { animation: xsFade 1.2s ease .2s forwards; }
  .hero-ready .blade--wedge { animation: xsWedge .8s cubic-bezier(.7, 0, .2, 1) .12s forwards; }
  .hero-ready .blade--edge { animation: xsWedgeEdge .8s cubic-bezier(.7, 0, .2, 1) .2s forwards; }
  .hero-ready .blade--slashA { animation: xsSlash .7s cubic-bezier(.7, 0, .2, 1) .28s forwards; }
  .hero-ready .blade--slashB { animation: xsSlash .7s cubic-bezier(.7, 0, .2, 1) .18s forwards; }
  .hero-ready .status { animation: xsRise .8s var(--ease) .2s forwards; }
  .hero-ready .t1 .line__i { animation: xsLineUp .95s var(--ease) .30s forwards; }
  .hero-ready .t2 .line__i { animation: xsLineUp .95s var(--ease) .44s forwards; }
  .hero-ready .hero__lead { animation: xsRise .9s var(--ease) .82s forwards; }
  .hero-ready .hero__actions { animation: xsRise .9s var(--ease) .92s forwards; }
  .hero-ready .rail { animation: xsFade 1s ease 1s forwards; }
  .hero-ready .scroll-cue { animation: xsRise .9s var(--ease) 1.1s forwards; }
  .hero-ready .hero__lion { animation: xsLionIn 1s var(--ease) .42s forwards, xsLionFloat 9s ease-in-out 1.6s infinite; }
  .hero-ready .status__dot { animation: xsPulse 2.4s ease-out 1.4s infinite; }
  .hero-ready.hero-cue .scroll-cue__track::after { animation: xsCue 1.9s cubic-bezier(.7, 0, .2, 1) infinite; }
}

@keyframes xsFade { to { opacity: 1; } }
@keyframes xsRise { to { opacity: 1; transform: none; } }
@keyframes xsLineUp { from { transform: translateY(112%); } to { transform: translateY(0); } }
@keyframes xsWedge {
  from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  to { clip-path: polygon(42% 0, 100% 0, 100% 100%, 6% 100%); }
}
@keyframes xsWedgeEdge {
  from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  to { clip-path: polygon(42% 0, 43.4% 0, 7.4% 100%, 6% 100%); }
}
@keyframes xsSlash { to { transform: rotate(45deg) scaleY(1); } }
@keyframes xsLionIn {
  0% { clip-path: inset(0 0 0 100%); opacity: 0; transform: translate3d(40px, 0, 0) scale(1.06); }
  100% { clip-path: inset(0 0 0 0%); opacity: 1;
    transform: translate3d(calc(var(--px) * 24px), calc(var(--py) * 18px + var(--sc) * -60px), 0) scale(1); }
}
@keyframes xsLionFloat {
  0%, 100% { transform: translate3d(calc(var(--px) * 24px), calc(var(--py) * 18px + var(--sc) * -60px), 0) scale(1); }
  50% { transform: translate3d(calc(var(--px) * 24px), calc(var(--py) * 18px + var(--sc) * -60px - 12px), 0) scale(1); }
}
@keyframes xsPulse {
  0% { box-shadow: 0 0 0 0 rgba(253, 117, 16, .6); }
  70% { box-shadow: 0 0 0 12px rgba(253, 117, 16, 0); }
  100% { box-shadow: 0 0 0 0 rgba(253, 117, 16, 0); }
}
@keyframes xsCue {
  0% { transform: translateY(-14px); }
  100% { transform: translateY(40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal].will-reveal { opacity: 1; transform: none; }
  .hero__lion, .btn--glow, .marquee__track, .hero__code pre { animation: none; }
}

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

/* ---------- responsive ---------- */

@media (max-width: 1700px) {
  .svc__foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .svc__foot p { max-width: none; }
}

@media (max-width: 1240px) {
  :root { --pad: 48px; }
  .work { padding: 96px 48px 108px; }
  .contact { padding: 96px 48px 88px; }
  .about__body { padding: 64px 48px 0; }
  .about__facts { padding: 32px 48px 40px; flex-wrap: wrap; }
}

@media (max-width: 1080px) {
  /* stacked: one column keeps every tile the same width — nothing ragged */
  .contact__ways { grid-template-columns: 1fr; gap: 12px; margin-top: 56px; }
  .nav__menu {
    position: fixed;
    inset: 78px 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px var(--pad) 34px;
    background: rgba(2, 13, 36, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    max-height: calc(100vh - 78px);
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav.is-open .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity .25s ease, transform .25s var(--ease), visibility 0s;
  }
  .nav__link, .nav__cta { font-size: 14px; padding: 12px 0; }
  .nav__burger { display: block; }

  .hero__body { max-width: 640px; }
  .hero__lion { width: min(54vw, 460px); right: 2vw; bottom: 6vh; opacity: .95; }
  .blade--wedge, .blade--edge { width: min(52vw, 560px); }
  .rail { display: none; }
  .hero__lead { max-width: none; }

  .services__grid { grid-template-columns: 1fr; }
  .svc--lead { grid-row: auto; min-height: 0; }
  .svc--lead > img { display: none; }
  .svc__body { max-width: none; }

  .about__art { width: 100%; opacity: .22; }
  .about__body { max-width: none; min-height: 0; padding-bottom: 40px; }
  .about__facts { justify-content: flex-start; }

  .stats { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .stats .divider { display: none; }

  .stacks { grid-template-columns: repeat(2, 1fr); }
  .careers { grid-template-columns: 1fr; gap: 46px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .footer__mark { font-size: 26vw; }
}

@media (max-width: 860px) {
  .hero__body { max-width: none; }
  .hero__lion {
    right: -12vw;
    bottom: auto;
    top: 8vh;
    width: min(118vw, 620px);
    opacity: .3;
    z-index: 1;
  }
  /* on mobile the lion is a faint backdrop, not an entrance actor — the
     desktop clip/float animation would otherwise force it to full opacity */
  .hero-armed .hero__lion { clip-path: none; opacity: .3; }
  .hero-ready .hero__lion { animation: none; }
  .hero__code { display: none; }
  .hero__lion img {
    filter: url(#roarDuo) drop-shadow(0 0 26px rgba(253, 117, 16, .3));
    -webkit-mask-image: linear-gradient(to top, transparent 2%, #000 18%);
    mask-image: linear-gradient(to top, transparent 2%, #000 18%);
  }
  .blade--wedge { width: min(70vw, 420px); opacity: .5; }
  .blade--edge { display: none; }
  .blade--slashA, .blade--slashB { display: none; }
  .hero__lead { color: var(--muted-2); }

  .section__head, .work__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .work__head p { border-left: 0; padding-left: 0; }

  .work__row--a, .work__row--b { grid-template-columns: 1fr; }
  .proj, .work__row--b .proj { min-height: 300px; }
  .proj__shot,
  .proj--hazrat .proj__shot, .proj--sanoat .proj__shot {
    width: 78%;
    right: -26%;
    top: auto;
    bottom: -12%;
    transform: perspective(1500px) rotateY(-14deg) rotateX(3deg);
    opacity: .58;
  }
  .proj__body { padding: 96px 32px 16px; max-width: 62%; }
  .proj__body p, .proj__list, .proj--systems .proj__body p { max-width: none; }
  .proj__link, .work__row--b .proj__link,
  .proj__nda, .work__row--b .proj__nda { margin: 0 32px 26px; }

  .about__cols { flex-direction: column; gap: 30px; }
  .about__cols > .divider { display: none; }
  .about__mission { flex: 1; }
  .about__facts { flex-direction: column; align-items: flex-start; gap: 26px; }
  .about__facts .divider { display: none; }
  .fact { max-width: none; }

}

@media (max-width: 640px) {
  :root { --pad: 22px; }
  .work { padding: 72px 22px 84px; }
  .contact { padding: 76px 22px 72px; }
  .services { padding: 72px var(--pad) 84px; }
  .about__body { padding: 56px 22px 34px; }
  .about__facts { padding: 0 22px 40px; }

  .hero__body { padding-top: 120px; }
  .hero__actions { gap: 12px; }
  .scroll-cue { display: none; }
  .hero .btn { flex: 1 1 auto; justify-content: center; }

  /* on a phone the screenshot is a backdrop, the copy gets the full width */
  .proj__body { max-width: none; padding: 92px 26px 14px; }
  .proj__link, .work__row--b .proj__link,
  .proj__nda, .work__row--b .proj__nda { margin: 0 26px 24px; }
  .proj__shot,
  .proj--hazrat .proj__shot, .proj--sanoat .proj__shot {
    width: 96%;
    right: -34%;
    bottom: -10%;
    opacity: .38;
  }

  .svc--lead .svc__body, .svc--sm { padding: 32px 26px; }
  .svc__row { flex-direction: column; gap: 22px; }
  .svc__foot { flex-direction: column; align-items: flex-start; gap: 18px; }

  .contact__kicker { font-size: 12px; letter-spacing: .18em; }
  .contact__kicker::before, .contact__kicker::after { display: none; }

  .stacks { grid-template-columns: 1fr; }
  .stacks li { padding: 26px 24px 30px; }
  .tech { padding: 72px 0 78px; }
  .careers { padding: 72px 22px 80px; }
  .roles a { flex-wrap: wrap; gap: 6px 16px; padding: 22px 0; }
  .roles__title { flex: 1 0 100%; }
  .footer { padding: 72px 22px 28px; }
  .footer__grid { grid-template-columns: 1fr; gap: 38px; }
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 54px; }

  .stats { grid-template-columns: 1fr; padding: 32px 8px; }
  .stat { padding: 0 18px; }
  .stat__num { font-size: 38px; }
  .about__place { flex-direction: column; align-items: flex-start; }
}
