:root {
  --bg: #0b0d10;
  --bg-alt: #111418;
  --surface: #161a20;
  --line: #262c35;
  --text: #eceef1;
  --muted: #9aa4b1;
  --red: #df2224;
  --red-hi: #ff3b3d;
  --radius: 14px;
  --wrap: 1200px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p a, .muted a { color: var(--red-hi); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.accent { color: var(--red-hi); }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--red); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; }

.eyebrow { font: 600 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .16em; color: var(--red-hi); margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d3d8de; max-width: 640px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.4em; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; text-decoration: none; border: 1px solid var(--red); transition: background .2s, transform .2s, border-color .2s; }
.btn:hover { background: var(--red-hi); border-color: var(--red-hi); transform: translateY(-1px); }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled, .site-header.open { background: rgba(11,13,16,.92); backdrop-filter: blur(10px); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--head); font-size: 1.3rem; letter-spacing: .02em; }
.brand img { border-radius: 8px; }
.brand b { font-weight: 700; }
.menu { display: flex; align-items: center; gap: 1.8rem; }
.menu a:not(.btn) { text-decoration: none; color: #cfd5dc; font-size: .95rem; font-weight: 500; }
.menu a:not(.btn):hover { color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

/* Hero */
.hero, .p-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.hero { min-height: min(92vh, 860px); padding: 140px 0 90px; }
.hero-bg, .cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after, .p-hero::after, .cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,16,.55) 0%, rgba(11,13,16,.35) 40%, var(--bg) 100%), linear-gradient(90deg, rgba(11,13,16,.85) 0%, rgba(11,13,16,0) 70%); }
.hero-inner, .p-hero-inner, .cta-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 820px; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Stats */
.stats { border-block: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 28px 20px; border-left: 1px solid var(--line); }
.stats-grid div:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font: 700 clamp(2.2rem, 4vw, 3rem)/1 var(--head); color: #fff; }
.stats span { color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.grid { display: grid; gap: 22px; }

/* Filters + cards */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { background: var(--surface); color: #cfd5dc; border: 1px solid var(--line); padding: .5em 1.05em; border-radius: 999px; font: 500 .9rem var(--body); cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: #4a525e; color: #fff; }
.filters button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: #3a424e; box-shadow: 0 18px 40px -20px rgba(0,0,0,.8); }
.card-media { aspect-ratio: 16/9; overflow: hidden; background: #0e1114; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .95rem; }
.tag { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--red-hi); font-weight: 600; margin-bottom: .55rem; display: block; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .92rem; color: #fff; text-decoration: none; }
.card:hover .more svg { transform: translateX(3px); }
.more svg { transition: transform .2s; }
.card-soon { border-style: dashed; background: linear-gradient(135deg, rgba(223,34,36,.12), transparent 60%), var(--surface); justify-content: flex-end; min-height: 300px; }
.card.hide { display: none; }

/* Capabilities */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-rev { grid-template-columns: .95fr 1.05fr; }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 2rem; }
.cap { display: flex; gap: 14px; }
.cap > svg { width: 42px; height: 42px; padding: 10px; border-radius: 10px; background: rgba(223,34,36,.12); color: var(--red-hi); }
.cap h3 { font-size: 1.15rem; margin-bottom: .25em; }
.cap p { color: var(--muted); font-size: .92rem; margin: 0; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.mosaic img:first-child { grid-column: span 2; object-position: center 40%; }

/* Feature */
.feature-img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center 20%; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .65rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks svg { color: var(--red-hi); margin-top: .25em; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.steps li::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: var(--red); }
.step-no { font: 700 2.4rem/1 var(--head); color: #3a424e; display: block; margin-bottom: 1rem; }
.steps p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Clients */
.clients { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.clients li { background: var(--bg); padding: 30px 20px; text-align: center; font: 600 1.2rem var(--head); letter-spacing: .03em; color: #cfd5dc; }

/* CTA */
.cta { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 150px) 0; text-align: center; }
.cta::after { background: rgba(11,13,16,.72); }
.cta-inner p { color: #d3d8de; max-width: 560px; margin: 0 auto 1.8rem; font-size: 1.1rem; }

/* Offices */
.offices { grid-template-columns: 1fr 1fr; }
.office { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.office h3 { font-size: 1.8rem; }
.office p { display: flex; gap: .8rem; color: #cfd5dc; }
.office p > svg { color: var(--red-hi); margin-top: .3em; }
.office a { color: #fff; }

/* Footer */
.site-footer { background: #080a0c; border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font: 600 .8rem var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer ul a { color: #cfd5dc; text-decoration: none; }
.site-footer ul a:hover { color: #fff; }
.site-footer .brand { margin-bottom: 1rem; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 22px; color: var(--muted); }
.footer-base a { color: var(--muted); text-decoration: none; }

/* Product page */
.p-hero { min-height: 62vh; padding: 140px 0 56px; }
.crumb { display: inline-flex; align-items: center; gap: .4em; color: #cfd5dc; text-decoration: none; font-size: .92rem; margin-bottom: 1.6rem; }
.crumb:hover { color: #fff; }
.p-body { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); padding: 56px 0 40px; align-items: start; }
.intro { font-size: 1.15rem; color: #d3d8de; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 2rem 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.gallery[data-n="1"] img, .gallery[data-n="3"] img:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.spec { border-top: 1px solid var(--line); padding: 28px 0 8px; }
.spec h2 { font-size: 1.7rem; }
.spec .ticks { grid-template-columns: 1fr 1fr; gap: .6rem 1.6rem; }
.p-aside { position: sticky; top: 96px; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; }
.aside-card h2 { font-size: 1.6rem; margin: 0; }
.aside-card p { margin: 0 0 6px; }
.aside-card .btn { justify-content: center; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 80px; }
.pager a { display: grid; gap: .3rem; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font: 600 1.3rem var(--head); transition: border-color .2s; }
.pager a:hover { border-color: #4a525e; }
.pager .muted { font: 500 .85rem var(--body); display: inline-flex; align-items: center; gap: .4em; }
.pager .right { text-align: right; justify-items: end; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .split, .split-rev { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .p-body { grid-template-columns: 1fr; }
  .p-aside { position: static; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .menu { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: rgba(11,13,16,.97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s; }
  .menu.open { transform: none; opacity: 1; visibility: visible; }
  .menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu .btn { margin-top: 16px; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid div { border-left: 0; padding-left: 0; }
  .stats-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .cards, .steps, .offices, .caps, .footer-grid, .pager { grid-template-columns: 1fr; }
  .clients { grid-template-columns: 1fr 1fr; }
  .clients li { padding: 22px 12px; font-size: 1.05rem; }
  .spec .ticks { grid-template-columns: 1fr; }
  .mosaic { grid-template-rows: 180px 140px; }
  .hero { min-height: 88vh; padding-bottom: 64px; }
  .pager .right { text-align: left; justify-items: start; }
  .brand span { font-size: 1.15rem; }
}
