/* AlphaStream — corporate site styles */
:root {
  --navy-950: #050b1a;
  --navy-900: #0a1630;
  --navy-800: #12224a;
  --ink: #0b1220;
  --body: #39445a;
  --muted: #667085;
  --line: #e4e8f0;
  --line-dark: #22305a;
  --soft: #f4f6fb;
  --white: #ffffff;
  --blue: #2f5bea;
  --blue-700: #1f43c4;
  --cyan: #22d3ee;
  --green: #10b981;
  --grad: linear-gradient(90deg, #4f7cff 0%, #22d3ee 100%);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10,22,48,.05), 0 12px 32px rgba(10,22,48,.08);
  --header-h: 76px;
  --display: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { background: var(--white); color: var(--body); font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--display); letter-spacing: -.025em; line-height: 1.12; font-weight: 700; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
section[id], article[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: stretch; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; color: var(--ink); }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo small { display: block; font: 600 10px/1 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: stretch; gap: 4px; }
.nav-item { display: flex; align-items: center; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 8px; font: 500 15px/1 Inter, sans-serif; color: var(--ink); background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-item.open > .nav-link { background: var(--soft); }
.nav-link[aria-current="page"] { color: var(--blue); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-item.open .chev { transform: rotate(180deg); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav > .nav-cta { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 Inter, sans-serif; cursor: pointer; border: 1.5px solid transparent; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy-800); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e6ecff; }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }
.menu-toggle { display: none; align-self: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(10,22,48,.10); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
@media (hover: hover) and (min-width: 1081px) {
  .nav-item:hover .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease .05s, transform .18s ease .05s; }
  .nav-item:hover > .nav-link { background: var(--soft); }
  .nav-item:hover .chev { transform: rotate(180deg); }
}
.mega-inner { display: grid; grid-template-columns: 1fr 2.2fr 1.1fr; gap: 48px; padding: 40px 32px 44px; max-width: 1240px; margin: 0 auto; }
.mega-intro h3 { font-size: 24px; margin-bottom: 10px; }
.mega-intro p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; align-content: start; }
.mega-links a { display: block; padding: 12px 14px; border-radius: 10px; }
.mega-links a:hover { background: var(--soft); }
.mega-links strong { display: block; font: 600 15px/1.3 Inter, sans-serif; color: var(--ink); }
.mega-links span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.mega-feature { border-radius: var(--radius); padding: 24px; background: var(--navy-900); color: #c9d3ea; position: relative; overflow: hidden; }
.mega-feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 100% 0%, rgba(79,124,255,.45), transparent 70%); }
.mega-feature > * { position: relative; }
.mega-feature .kicker { color: var(--cyan); }
.mega-feature h4 { color: #fff; font-size: 19px; margin: 8px 0 10px; }
.mega-feature p { font-size: 14px; margin-bottom: 16px; }

/* ---------- Typography helpers ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 12.5px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.h-display { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; }
.h-section { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -.035em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--body); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy-900); color: #b9c4dd; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .kicker { color: var(--cyan); }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.section-head .kicker { margin-bottom: 20px; }
.section-head.stack { grid-template-columns: 1fr; gap: 20px; max-width: 820px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-950); color: #b9c4dd; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 70% at 85% 20%, rgba(47,91,234,.45), transparent 65%), radial-gradient(40% 50% at 0% 100%, rgba(34,211,238,.16), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; padding: 120px 0 128px; }
.hero h1 { color: #fff; margin: 26px 0 28px; }
.hero .kicker { color: var(--cyan); }
.hero .lead { color: #b9c4dd; max-width: 36em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 42px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: end; width: 100%; }
.hero-art svg { width: 100%; height: 100%; }
.flow path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 6 10; animation: flow 18s linear infinite; }
.flow path:nth-child(2n) { animation-duration: 24s; }
.flow path:nth-child(3n) { animation-duration: 30s; animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -480; } }
.pulse { animation: pulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.hero-strip { border-top: 1px solid rgba(255,255,255,.08); }
.hero-strip .wrap { display: flex; align-items: center; gap: 40px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.hero-strip p { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: #7f8bab; font-weight: 600; flex: none; }
.wordmarks { display: flex; gap: 36px; flex-wrap: wrap; align-items: center; }
.wordmarks span { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: #dfe6f7; opacity: .72; display: inline-flex; align-items: center; gap: 8px; }
.wordmarks i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--navy-950); color: #b9c4dd; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 90% at 90% 0%, rgba(47,91,234,.42), transparent 65%), radial-gradient(35% 60% at 0% 100%, rgba(34,211,238,.12), transparent 70%); }
.page-hero .wrap { padding-top: 96px; padding-bottom: 104px; }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; color: #8c97b5; margin-bottom: 28px; }
.crumbs a:hover { color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.04em; max-width: 15em; }
.page-hero .lead { color: #b9c4dd; max-width: 40em; margin-top: 24px; }
.page-hero .kicker { color: var(--cyan); margin-bottom: 22px; }

/* ---------- Capability tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile { position: relative; padding: 40px 36px 44px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; transition: background .25s ease; min-height: 300px; }
.tile:hover { background: var(--soft); }
.tile .num { font: 600 13px/1 Inter, sans-serif; color: var(--muted); letter-spacing: .08em; }
.tile .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #eaf0ff; color: var(--blue); }
.tile .ico svg { width: 26px; height: 26px; }
.tile h3 { font-size: 23px; margin-top: 8px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile .link-arrow { margin-top: auto; padding-top: 10px; }
.tile::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--grad); transition: width .35s ease; }
.tile:hover::after { width: 100%; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 8px 32px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--display); font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; color: #fff; margin-bottom: 14px; }
.stat span { font-size: 15px; color: #9fabc8; }
.statement { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.18; letter-spacing: -.03em; color: #fff; max-width: 22em; margin-bottom: 80px; font-weight: 600; }
.statement em { font-style: normal; color: #7f8bab; }

/* ---------- Work / case cards ---------- */
.work-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.work-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: box-shadow .25s ease, transform .25s ease; }
.work-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.work-visual { position: relative; aspect-ratio: 16 / 11; background: var(--v, var(--navy-900)); overflow: hidden; display: grid; place-items: center; }
.work-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 80% at 80% 10%, rgba(255,255,255,.22), transparent 60%); }
.work-visual::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 32px 32px; }
.work-visual .wm { position: relative; z-index: 1; font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; }
.work-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag { font: 600 12px/1 Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.work-body h3 { font-size: 22px; }
.work-body p { font-size: 15px; color: var(--muted); }
.work-body .link-arrow { margin-top: auto; padding-top: 8px; }

/* ---------- Industry cards ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ind-card { position: relative; border-radius: 18px; overflow: hidden; min-height: 300px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--g, linear-gradient(160deg, #13213f, #2f5bea)); isolation: isolate; }
.ind-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(5,11,26,.55)); }
.ind-card .big { position: absolute; right: -10px; top: -10px; width: 170px; height: 170px; opacity: .18; z-index: -1; transition: transform .5s ease; }
.ind-card:hover .big { transform: scale(1.08) rotate(-4deg); }
.ind-card h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.ind-card p { font-size: 14.5px; color: rgba(255,255,255,.82); max-width: 26em; }
.ind-card .go { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.ind-card .go svg { width: 16px; height: 16px; transition: transform .2s ease; }
.ind-card:hover .go svg { transform: translateX(4px); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: s; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.steps li::before { counter-increment: s; content: "0" counter(s); position: absolute; top: -2px; left: 0; padding-top: 0; font: 700 13px/1 Inter, sans-serif; color: var(--blue); transform: translateY(-160%); letter-spacing: .08em; }
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--blue); }
.steps h3 { font-size: 20px; margin-bottom: 10px; }
.steps p { font-size: 14.5px; color: var(--muted); }
.steps .out { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.section-dark .steps li { border-color: var(--line-dark); }
.section-dark .steps p { color: #9fabc8; }
.section-dark .steps .out { color: #fff; }

/* ---------- Insight cards ---------- */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight { display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--ink); padding-top: 22px; }
.insight .meta { display: flex; gap: 12px; font-size: 13px; color: var(--muted); }
.insight .meta b { color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.insight h3 { font-size: 23px; line-height: 1.22; }
.insight:hover h3 { color: var(--blue); }
.insight p { font-size: 15px; color: var(--muted); }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.panel { border-radius: 20px; background: var(--navy-900); padding: 40px; color: #b9c4dd; position: relative; overflow: hidden; isolation: isolate; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 100% 0%, rgba(47,91,234,.5), transparent 65%); }
.checks { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 3px; }

/* ---------- Service detail ---------- */
.svc { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding: 96px 0; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; }
.svc .num { font: 600 13px/1 Inter, sans-serif; color: var(--blue); letter-spacing: .1em; margin-bottom: 18px; display: block; }
.svc h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 18px; }
.svc .lead { font-size: 17px; }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.svc-cols h4 { font: 700 12.5px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; }
.list { list-style: none; display: grid; gap: 0; }
.list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink); display: flex; gap: 12px; align-items: baseline; }
.list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; transform: translateY(-2px); }
.svc .chips { margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 500; padding: 7px 13px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--body); }
.section-dark .chip { background: rgba(255,255,255,.05); border-color: var(--line-dark); color: #c9d3ea; }

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); font-size: 15px; }
.card .list { margin-top: 8px; }
.card .list li { font-size: 14.5px; padding: 11px 0; }
.card .foot { margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--muted); }
.card .foot b { color: var(--ink); }
.card.feature { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow); }
.badge { align-self: flex-start; font: 700 11.5px/1 Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: #eaf0ff; padding: 7px 11px; border-radius: 999px; }
.section-soft .card { border-color: transparent; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 56px; }
.principle { padding-top: 22px; border-top: 2px solid var(--ink); }
.principle h3 { font-size: 21px; margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 15.5px; }
.section-dark .principle { border-color: #fff; }
.section-dark .principle p { color: #9fabc8; }

/* Products page */
.prod-feature { display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #fff; margin-bottom: 32px; }
.prod-feature .work-visual { aspect-ratio: auto; min-height: 380px; }
.prod-feature .body { padding: 48px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.prod-feature h2 { font-size: clamp(30px, 3.4vw, 42px); }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod { border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 12px; background: #fff; transition: box-shadow .25s ease, transform .25s ease; }
.prod:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.prod-top { display: flex; align-items: center; gap: 14px; }
.mono { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font: 800 20px/1 var(--display); color: #fff; flex: none; }
.prod h3 { font-size: 20px; }
.prod .cat { font-size: 13px; color: var(--muted); }
.prod p { font-size: 15px; color: var(--muted); }
.prod .chips { margin-top: auto; padding-top: 8px; }

/* Industry detail */
.ind-detail { display: grid; grid-template-columns: 380px 1fr; gap: 64px; padding: 88px 0; border-top: 1px solid var(--line); }
.ind-detail:first-of-type { border-top: 0; }
.ind-detail .ind-card { min-height: 340px; }
.ind-detail h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 16px; }
.ind-detail .svc-cols { margin-top: 32px; }

/* Insights article */
.article { max-width: 760px; margin: 0 auto; padding: 96px 0; border-top: 1px solid var(--line); }
.article:first-of-type { border-top: 0; }
.article .meta { display: flex; gap: 14px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.article .meta b { color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; }
.article h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 24px; }
.article p { font-size: 17.5px; line-height: 1.75; margin-bottom: 20px; color: #2f394d; }
.article h3 { font-size: 22px; margin: 36px 0 12px; }
.article ul { margin: 0 0 20px 22px; }
.article li { font-size: 17px; line-height: 1.7; margin-bottom: 8px; color: #2f394d; }
.article .pull { font-family: var(--display); font-size: 26px; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); border-left: 3px solid var(--blue); padding-left: 24px; margin: 36px 0; font-weight: 600; }

/* About facts */
.facts { border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: #fff; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 26px; font-size: 15.5px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink); font-weight: 600; text-align: right; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { font: 400 16px/1.4 Inter, sans-serif; color: var(--ink); background: var(--soft); border: 1.5px solid transparent; border-radius: 10px; padding: 13px 14px; width: 100%; transition: border-color .15s ease, background .15s ease; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.consent a { color: var(--blue); text-decoration: underline; }
.form .actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: 14.5px; }
.form-status.ok { color: var(--green); font-weight: 600; }
.form-status.err { color: #dc2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.side h3 { font-size: 20px; margin-bottom: 8px; }
.side .block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.side .block:first-child { padding-top: 0; }
.side p { font-size: 15px; color: var(--muted); }
.side a.mail { color: var(--blue); font-weight: 600; }
.next { list-style: none; counter-reset: n; display: grid; gap: 16px; margin-top: 14px; }
.next li { display: flex; gap: 14px; font-size: 15px; }
.next li::before { counter-increment: n; content: counter(n); width: 28px; height: 28px; border-radius: 50%; background: #eaf0ff; color: var(--blue); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; font: 600 19px/1.35 var(--display); color: var(--ink); position: relative; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 400 28px/1 Inter, sans-serif; color: var(--blue); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; font-size: 16px; color: var(--muted); }

/* Legal */
.legal-body { max-width: 780px; padding: 88px 0 120px; }
.legal-body h2 { font-size: 26px; margin: 44px 0 14px; }
.legal-body p, .legal-body li { font-size: 16.5px; line-height: 1.75; color: #2f394d; margin-bottom: 14px; }
.legal-body ul { margin-left: 22px; }
.legal-body a { color: var(--blue); text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--navy-950); overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 15% 100%, rgba(47,91,234,.55), transparent 65%), radial-gradient(40% 90% at 100% 0%, rgba(34,211,238,.25), transparent 70%); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 104px; padding-bottom: 104px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.04em; max-width: 12em; }
.cta-band p { color: #b9c4dd; font-size: 18px; margin-top: 18px; max-width: 32em; }
.cta-band .btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #8c97b5; font-size: 14.5px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding: 88px 0 64px; }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: #7f8bab; }
.footer-about p { margin-top: 20px; max-width: 24em; line-height: 1.65; }
.footer-col h4 { color: #fff; font: 600 14px/1 Inter, sans-serif; margin-bottom: 20px; letter-spacing: 0; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 36px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .wrap { padding: 0 24px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 32px; overflow-y: auto; border-top: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-item { flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); }
  .nav-link { height: 60px; padding: 0; justify-content: space-between; font-size: 18px; font-weight: 600; border-radius: 0; }
  .nav-link:hover, .nav-item.open > .nav-link { background: none; }
  .mega { position: static; box-shadow: none; border: 0; display: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav-item.open .mega { display: block; }
  .mega-inner { grid-template-columns: 1fr; gap: 0; padding: 0 0 16px; }
  .mega-intro, .mega-feature { display: none; }
  .mega-links { grid-template-columns: 1fr; }
  .mega-links a { padding: 10px 0; }
  .nav > .nav-cta { display: flex; margin-top: 24px; }
  .nav > .nav-cta .btn { width: 100%; height: 52px; }
  .header-actions .btn { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 88px 0 96px; }
  .hero-art { display: none; }
  .section { padding: 96px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .tiles, .ind-grid, .insight-grid, .cards-3, .prod-grid, .principles { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid .work-card:first-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 48px 28px; }
  .split, .svc, .contact-grid, .prod-feature { grid-template-columns: 1fr; gap: 40px; }
  .ind-detail { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .header-inner { gap: 12px; }
  .logo { font-size: 19px; }
  .logo small { display: none; }
  .nav { padding: 8px 16px 32px; }
  .hero-inner { padding: 64px 0 72px; }
  .hero-ctas .btn { width: 100%; }
  .hero-strip .wrap { gap: 20px; }
  .wordmarks { gap: 20px; }
  .wordmarks span { font-size: 16px; }
  .section { padding: 72px 0; }
  .tiles, .ind-grid, .insight-grid, .cards-3, .cards-2, .prod-grid, .principles, .work-grid, .steps, .svc-cols { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 32px 24px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .stat { padding: 0 0 0 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .statement { margin-bottom: 48px; }
  .svc { padding: 64px 0; }
  .prod-feature .body, .panel, .card { padding: 28px 22px; }
  .prod-feature .work-visual { min-height: 220px; }
  .form { grid-template-columns: 1fr; padding: 26px 20px; }
  .page-hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .cta-band .wrap { padding-top: 72px; padding-bottom: 72px; }
  .cta-band .btns, .cta-band .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 64px 0 48px; }
  .ind-detail, .article { padding: 64px 0; }
  .faq summary { font-size: 17px; }
}

/* Tech grid */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 1080px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .tech-grid { grid-template-columns: 1fr; } }

/* ---------- Long-form report ---------- */
.report-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; font-size: 14px; color: #8c97b5; }
.report-meta b { color: #fff; font-weight: 600; }
.report { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; padding: 80px 0 112px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); font-size: 14px; }
.toc p { font: 700 12px/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--body); line-height: 1.4; }
.toc a:hover { color: var(--blue); border-left-color: var(--blue); }
.prose { max-width: 800px; }
.prose > section { padding-top: 8px; margin-bottom: 72px; }
.prose h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 20px; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p { font-size: 17px; line-height: 1.75; color: #2f394d; margin-bottom: 18px; }
.prose ul, .prose ol.plain { margin: 0 0 20px 22px; }
.prose li { font-size: 16.5px; line-height: 1.7; color: #2f394d; margin-bottom: 8px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose code { font: 500 .88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--ink); }
.callout { border-radius: 16px; padding: 24px 26px; margin: 28px 0; border: 1px solid; }
.callout h3, .callout h4 { margin: 0 0 10px; font-size: 18px; }
.callout p, .callout li { font-size: 15.5px; margin-bottom: 8px; }
.callout ul { margin-bottom: 0; }
.callout.alert { background: #fff5f5; border-color: #fecaca; }
.callout.alert h3, .callout.alert h4 { color: #b91c1c; }
.callout.info { background: #f0f5ff; border-color: #c7d7fe; }
.callout.ok { background: #effcf6; border-color: #a7f3d0; }
.callout.ok h3, .callout.ok h4 { color: #047857; }
.table-wrap { overflow-x: auto; margin: 24px 0 28px; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.table-wrap th { text-align: left; background: var(--soft); color: var(--ink); font-weight: 600; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: #2f394d; line-height: 1.5; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
.sev { display: inline-block; font: 700 11px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.sev.crit { background: #fee2e2; color: #b91c1c; }
.sev.high { background: #ffedd5; color: #c2410c; }
.sev.med { background: #fef9c3; color: #a16207; }
.attack { border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; margin: 18px 0; background: #fff; }
.attack-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.attack-head h3 { margin: 0; font-size: 20px; }
.attack dl { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; margin-top: 14px; }
.attack dt { font: 700 12px/1.6 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.attack dd { font-size: 15.5px; line-height: 1.6; color: #2f394d; }
.code-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 16px 0 4px; }
.report > *, .code-pair > * { min-width: 0; }
.code { background: #0b1220; color: #d6deeb; border-radius: 12px; padding: 14px 16px 16px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; white-space: pre; }
.code b { display: block; font: 700 11px/1 Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.code.bad b { color: #fca5a5; }
.code.good b { color: #6ee7b7; }
.takeaways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.takeaways li { margin: 0; background: var(--soft); border-radius: 12px; padding: 16px 18px; font-size: 15px; line-height: 1.55; }
.takeaways li b { display: block; color: var(--ink); margin-bottom: 4px; }
.checklist { list-style: none; margin: 18px 0 0 !important; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; margin: 0; }
.checklist li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 4px; border-radius: 6px; border: 2px solid var(--blue); }
.sources li { font-size: 15px; }
.featured-insight { display: grid; grid-template-columns: 1.2fr .8fr; border-radius: 22px; overflow: hidden; background: var(--navy-900); color: #b9c4dd; margin-bottom: 48px; }
.featured-insight .fi-body { padding: 44px; display: flex; flex-direction: column; gap: 14px; }
.featured-insight h3 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.featured-insight .tag { color: var(--cyan); }
.featured-insight .fi-art { background: linear-gradient(135deg, #7f1d1d, #b91c1c 55%, #f97316); position: relative; display: grid; place-items: center; min-height: 240px; }
.featured-insight .fi-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 28px 28px; }
.featured-insight .fi-art span { position: relative; z-index: 1; font: 800 clamp(40px, 5vw, 64px)/1 var(--display); color: #fff; letter-spacing: -.04em; }
@media (max-width: 1080px) {
  .report { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 56px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
  .featured-insight { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .takeaways, .code-pair { grid-template-columns: minmax(0, 1fr); }
  .attack { padding: 22px 18px; }
  .attack dl { grid-template-columns: 1fr; gap: 4px; }
  .attack dd { margin-bottom: 8px; }
  .featured-insight .fi-body { padding: 28px 22px; }
  .prose p { font-size: 16.5px; }
}
