/* ════════════════════════════════════════════════════════════════
   VIPRA SOFTWARE — DESIGN TOKENS
   A page built like the thing the company builds: a pipeline.
   Color encodes meaning — red acts, teal flows, slate structures.
   ──────────────────────────────────────────────────────────────
   INK    #131F2A  harbor slate — structure, dark bands
   PAPER  #F2F4F5  cool porcelain — reading surfaces
   SIGNAL #E0382C  Vipra red — actions only (VipraGo lineage)
   FLOW   #149A8C  conduit teal — data in motion, live metrics
   STEEL  #54646E  secondary text
   LINE   #D8DEE1  hairlines on paper
   Type: Archivo (display) · IBM Plex Sans (body) · IBM Plex Mono (data)
   ════════════════════════════════════════════════════════════════ */
:root {
  --ink: #131F2A;
  --ink-2: #0D161F;        /* deeper band */
  --ink-3: #1B2936;        /* raised card on ink */
  --paper: #F2F4F5;
  --card: #FFFFFF;
  --signal: #E0382C;
  --signal-deep: #B8281E;
  --flow: #11897D;
  --flow-bright: #2FC9B6;  /* flow on dark */
  --steel: #54646E;
  --line: #D9DFE2;
  --ink-text: #E9EEF1;     /* text on dark */
  --ink-sub: #93A4AF;      /* secondary on dark */
  --ink-line: rgba(233,238,241,.12);

  --d: 'Archivo', 'Helvetica Neue', sans-serif;
  --b: 'IBM Plex Sans', system-ui, sans-serif;
  --m: 'IBM Plex Mono', ui-monospace, monospace;

  --t-hero: clamp(2.1rem, 1rem + 4.6vw, 4.35rem);
  --t-h2: clamp(1.65rem, 1.1rem + 2.2vw, 2.7rem);
  --t-h3: clamp(1.05rem, .95rem + .5vw, 1.3rem);
  --t-body: 1rem;
  --t-small: .875rem;
  --t-mono: .6875rem;

  --wrap: 1180px;
  --gut: clamp(20px, 4.5vw, 48px);
  --sp: clamp(72px, 6vw + 40px, 128px); /* section rhythm */
}

*, *::before, *::after { 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; } }
body {
  font-family: var(--b);
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
::selection { background: var(--flow); color: #fff; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-ink :focus-visible, .ink-band :focus-visible { outline-color: var(--flow-bright); }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--signal); color: #fff; font-family: var(--m);
  font-size: 13px; padding: 10px 18px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ── mono utility labels ─────────────────────────────── */
.stage-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--m); font-size: var(--t-mono); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--flow);
}
.stage-tag::before { content: ""; width: 26px; height: 1px; background: var(--flow); }
.ink-band .stage-tag { color: var(--flow-bright); }
.ink-band .stage-tag::before { background: var(--flow-bright); }

.sec-title {
  font-family: var(--d); font-weight: 800; font-size: var(--t-h2);
  line-height: 1.06; letter-spacing: -.025em; margin-top: 18px;
  text-wrap: balance;
}
.sec-lead { max-width: 56ch; margin-top: 18px; color: var(--steel); }
.ink-band .sec-lead { color: var(--ink-sub); }

.chip {
  display: inline-block; font-family: var(--m); font-size: 11px;
  letter-spacing: .04em; padding: 3px 9px; border: 1px solid var(--line);
  color: var(--steel); border-radius: 2px; white-space: nowrap;
}
.chip--flow { color: var(--flow); border-color: color-mix(in srgb, var(--flow) 35%, transparent); }
.ink-band .chip { border-color: var(--ink-line); color: var(--ink-sub); }
.ink-band .chip--flow { color: var(--flow-bright); }

/* ── buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--d); font-weight: 700; font-size: 15px;
  letter-spacing: .01em; text-decoration: none; line-height: 1;
  padding: 16px 26px; border-radius: 3px;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn .ar { font-family: var(--m); font-weight: 400; transition: transform .18s; }
.btn:hover .ar { transform: translateX(4px); }
.btn--signal { background: var(--signal); color: #fff; }
.btn--signal:hover { background: var(--signal-deep); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.ink-band .btn--ghost { border-color: var(--ink-line); color: var(--ink-text); }
.ink-band .btn--ghost:hover { border-color: var(--ink-text); }
.btn--sm { padding: 11px 18px; font-size: 13px; }

/* ── reveal motion (one quiet move; hero owns the show) ─ */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ════ NAV ════ */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  background: color-mix(in srgb, var(--ink-2) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
#nav.stuck { border-bottom-color: var(--ink-line); background: color-mix(in srgb, var(--ink-2) 94%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: baseline; gap: 9px; text-decoration: none; }
.logo-word { font-family: var(--d); font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: #fff; }
.logo-word i { font-style: normal; color: var(--signal); }
.logo-sub { font-family: var(--m); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-sub); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--b); font-weight: 500; font-size: 13.5px;
  color: var(--ink-sub); text-decoration: none; padding: 8px 11px;
  border-radius: 3px; transition: color .15s;
}
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta {
  margin-left: 10px; background: var(--signal); color: #fff;
  font-family: var(--d); font-weight: 700; padding: 10px 18px;
  transition: background .15s;
}
.nav-links .nav-cta:hover { background: var(--signal-deep); color: #fff; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.burger span { width: 22px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 64px 0 0 0; z-index: 190;
  background: var(--ink-2); padding: 28px var(--gut) 48px;
  display: none; flex-direction: column; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--d); font-weight: 700; font-size: 26px;
  letter-spacing: -.01em; color: var(--ink-text); text-decoration: none;
  padding: 13px 0; border-bottom: 1px solid var(--ink-line);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a::after { content: "→"; font-family: var(--m); font-size: 15px; color: var(--flow-bright); }
.mobile-menu a:hover { color: #fff; }
.mobile-menu .mm-contact { color: var(--signal); }

/* ════ SIGNATURE: THE DAG RAIL ════
   The site reads as a pipeline run — each section is a stage.
   The rail tracks the run down the left edge of wide screens. */
#rail {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%);
  z-index: 150; display: none;
}
@media (min-width: 1320px) { #rail { display: block; } }
.rail-track { position: relative; display: flex; flex-direction: column; gap: 22px; padding-left: 16px; }
.rail-track::before {
  content: ""; position: absolute; left: 3.5px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line);
}
#rail.on-dark .rail-track::before { background: var(--ink-line); }
.rail-track::after {
  content: ""; position: absolute; left: 3.5px; top: 6px;
  width: 1px; height: var(--run, 0%); max-height: calc(100% - 12px);
  background: var(--flow); transition: height .2s linear;
}
.rail-node { position: relative; display: flex; align-items: center; text-decoration: none; }
.rail-node::before {
  content: ""; position: absolute; left: -16px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--paper); border: 1.5px solid var(--steel);
  transition: background .2s, border-color .2s, transform .2s;
}
#rail.on-dark .rail-node::before { background: var(--ink-2); border-color: var(--ink-sub); }
.rail-node span {
  font-family: var(--m); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: transparent; padding-left: 10px;
  transition: color .2s;
}
.rail-node:hover span, .rail-node:focus-visible span { color: var(--steel); }
#rail.on-dark .rail-node:hover span { color: var(--ink-sub); }
.rail-node.live::before { background: var(--flow); border-color: var(--flow); transform: scale(1.25); }
.rail-node.live span { color: var(--flow); }
#rail.on-dark .rail-node.live span { color: var(--flow-bright); }

/* ════ HERO ════ */
#hero {
  position: relative; background: var(--ink-2); color: var(--ink-text);
  padding-top: 64px; overflow: hidden;
}
.hero-blueprint {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    linear-gradient(var(--ink-line) 1px, transparent 1px) 0 0 / 100% 96px,
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px) 0 0 / 96px 100%;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 10%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 10%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; right: -10%; top: -20%; width: 55vw; height: 80%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(47,201,182,.10) 0%, transparent 65%);
}
.hero-grid {
  position: relative; display: grid; gap: clamp(36px, 5vw, 72px);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end; padding: clamp(64px, 9vh, 120px) 0 clamp(48px, 7vh, 88px);
}
.hero-eyebrow {
  font-family: var(--m); font-size: var(--t-mono); letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-sub);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--flow-bright);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero-h1 {
  font-family: var(--d); font-weight: 800; font-size: var(--t-hero);
  line-height: 1.03; letter-spacing: -.035em; color: #fff;
  margin-top: 26px; max-width: 14ch; text-wrap: balance;
}
.hero-h1 .num { color: var(--flow-bright); font-variant-numeric: tabular-nums; }
.hero-sub { margin-top: 26px; max-width: 52ch; color: var(--ink-sub); font-size: clamp(1rem, .95rem + .35vw, 1.125rem); }
.hero-sub strong { color: var(--ink-text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }

/* hero entrance — the one orchestrated moment */
.js .rise { opacity: 0; transform: translateY(22px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.js .rise-1 { animation-delay: .05s; } .js .rise-2 { animation-delay: .18s; }
.js .rise-3 { animation-delay: .34s; } .js .rise-4 { animation-delay: .5s; }
.js .rise-5 { animation-delay: .64s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise, .js .rise { opacity: 1; transform: none; animation: none; }
  .hero-eyebrow .dot { animation: none; }
}

/* the run console */
.term {
  background: var(--ink-3); border: 1px solid var(--ink-line);
  border-radius: 5px; overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.6);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--ink-line);
}
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-line); }
.term-bar i:first-child { background: var(--signal); }
.term-bar span { margin-left: auto; font-family: var(--m); font-size: 10px; letter-spacing: .12em; color: var(--ink-sub); }
.term-body {
  font-family: var(--m); font-size: 12.5px; line-height: 1.9;
  padding: 16px 18px 18px; min-height: 248px; color: var(--ink-sub);
}
.term-body .t-cmd { color: var(--ink-text); }
.term-body .t-cmd::before { content: "$ "; color: var(--flow-bright); }
.term-body .t-ok { color: var(--ink-sub); }
.term-body .t-ok b { color: var(--flow-bright); font-weight: 500; }
.term-body .t-ok::before { content: "  ✓ "; color: var(--flow-bright); }
.term-body .t-note { color: var(--steel); }
.term-caret {
  display: inline-block; width: 7px; height: 14px; vertical-align: -2px;
  background: var(--flow-bright); animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term-caret { animation: none; } }

/* hero stats — the row the page stands on */
.hero-stats {
  position: relative; border-top: 1px solid var(--ink-line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 26px 18px 30px; border-left: 1px solid var(--ink-line); }
.stat:first-child { border-left: 0; }
.stat-num {
  font-family: var(--d); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  letter-spacing: -.02em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-num .plus { color: var(--flow-bright); }
.stat-label { font-family: var(--m); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-sub); margin-top: 9px; }

/* ════ TICKER ════ */
.ticker {
  background: var(--ink-2); border-top: 1px solid var(--ink-line);
  overflow: hidden; padding: 13px 0; position: relative;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ink-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--ink-2), transparent); }
.ticker-track { display: flex; gap: 44px; width: max-content; animation: tick 46s linear infinite; }
.ticker-track span {
  font-family: var(--m); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-sub); white-space: nowrap;
  display: flex; align-items: center; gap: 44px;
}
.ticker-track span::after { content: "·"; color: var(--flow-bright); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ════ SECTIONS ════ */
.section { padding: var(--sp) 0; }
.section--card { background: var(--card); border-block: 1px solid var(--line); }
.ink-band { background: var(--ink-2); color: var(--ink-text); }

/* ── about ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px;
  border: 1px solid var(--line); background: var(--line); gap: 1px;
}
.a-cell { background: var(--card); padding: clamp(24px, 3vw, 40px); position: relative; }
.a-num { font-family: var(--m); font-size: 11px; color: var(--flow); letter-spacing: .12em; }
.a-cell h3 { font-family: var(--d); font-weight: 700; font-size: var(--t-h3); letter-spacing: -.015em; margin: 14px 0 10px; }
.a-cell p { font-size: var(--t-small); color: var(--steel); line-height: 1.75; }
.a-loc { display: block; margin-top: 14px; font-family: var(--m); font-size: 11px; letter-spacing: .06em; color: var(--flow); }

/* ── services: the ledger ── */
.svc-list { margin-top: 56px; border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 64px minmax(0,1.3fr) minmax(0,1fr) 40px;
  gap: clamp(14px, 2.4vw, 32px); align-items: center;
  padding: 26px 6px; border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative;
  transition: background .18s, padding-left .18s;
}
.svc-row:hover { background: var(--card); padding-left: 14px; }
.svc-num { font-family: var(--m); font-size: 12px; color: var(--steel); transition: color .18s; }
.svc-row:hover .svc-num { color: var(--signal); }
.svc-row h3 { font-family: var(--d); font-weight: 700; font-size: clamp(1.05rem, 1rem + .6vw, 1.4rem); letter-spacing: -.015em; color: var(--ink); }
.svc-row p { font-size: 13px; color: var(--steel); margin-top: 4px; }
.svc-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.svc-arrow { font-family: var(--m); color: var(--steel); transition: transform .18s, color .18s; text-align: right; }
.svc-row:hover .svc-arrow { transform: translateX(5px); color: var(--signal); }

/* ── capabilities ── */
.cap-wrap { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: clamp(24px, 3.5vw, 56px); margin-top: 56px; align-items: start; }
.cap-tabs { display: flex; flex-direction: column; border-left: 1px solid var(--line); position: sticky; top: 96px; }
.cap-tab {
  text-align: left; padding: 15px 18px; font-family: var(--d); font-weight: 600;
  font-size: 15px; color: var(--steel); letter-spacing: -.01em;
  border-left: 2px solid transparent; margin-left: -1px;
  transition: color .15s, border-color .15s;
  display: flex; align-items: baseline; gap: 12px;
}
.cap-tab em { font-style: normal; font-family: var(--m); font-size: 10.5px; font-weight: 400; color: var(--steel); }
.cap-tab:hover { color: var(--ink); }
.cap-tab[aria-selected="true"] { color: var(--ink); border-left-color: var(--signal); }
.cap-tab[aria-selected="true"] em { color: var(--signal); }
.cap-panel-content { display: none; }
.cap-panel-content.active { display: block; animation: panel .35s ease; }
@keyframes panel { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .cap-panel-content.active { animation: none; } }
.cap-panel-content h3 { font-family: var(--d); font-weight: 800; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); letter-spacing: -.02em; }
.cap-panel-content > .cap-lead { color: var(--steel); margin-top: 12px; max-width: 62ch; }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
.cap-col { background: var(--card); padding: 22px 24px; }
.cap-col-h { font-family: var(--m); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--flow); margin-bottom: 12px; }
.cap-col li { font-size: 13.5px; color: var(--steel); padding: 4.5px 0 4.5px 16px; position: relative; line-height: 1.55; }
.cap-col li::before { content: "—"; position: absolute; left: 0; color: var(--line); }
.cap-impact {
  margin-top: 24px; padding: 20px 24px; background: var(--card);
  border: 1px solid var(--line); border-left: 3px solid var(--flow);
  font-size: var(--t-small); color: var(--steel); line-height: 1.7;
}
.cap-impact strong { color: var(--ink); font-family: var(--d); }

/* ── technologies ── */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.t-cat { background: var(--card); padding: 24px 26px; }
.t-cat-h { font-family: var(--m); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.t-cat-h::before { content: ""; width: 7px; height: 7px; background: var(--flow); }
.t-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.t-pill {
  font-family: var(--m); font-size: 11.5px; padding: 5px 11px;
  border: 1px solid var(--line); color: var(--steel); border-radius: 2px;
  transition: border-color .15s, color .15s;
}
.t-pill:hover { border-color: var(--flow); color: var(--flow); }
.impact-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-top: 0; background: var(--card); }
.imp-cell { padding: 26px 22px; border-left: 1px solid var(--line); }
.imp-cell:first-child { border-left: 0; }
.imp-num { font-family: var(--d); font-weight: 800; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); letter-spacing: -.02em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.imp-num b { color: var(--flow); font-weight: 800; }
.imp-cell p { font-size: 12.5px; color: var(--steel); margin-top: 10px; line-height: 1.6; }

/* ── why ── */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.w-cell { background: var(--card); padding: 26px 24px 30px; position: relative; transition: background .2s; }
.w-cell:hover { background: var(--paper); }
.w-num { font-family: var(--m); font-size: 11px; color: var(--steel); letter-spacing: .12em; }
.w-cell h3 { font-family: var(--d); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; margin: 30px 0 10px; }
.w-cell p { font-size: 13px; color: var(--steel); line-height: 1.7; }
.w-tag { display: inline-block; margin-top: 16px; font-family: var(--m); font-size: 10.5px; letter-spacing: .08em; color: var(--flow); }

/* ── case studies (dark band) ── */
.cases-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.feat {
  margin-top: 56px; display: grid; grid-template-columns: minmax(0,1fr) 240px;
  border: 1px solid var(--ink-line); background: var(--ink-3); border-radius: 5px; overflow: hidden;
}
.feat-main { padding: clamp(26px, 3.5vw, 44px); }
.feat-flag {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--m);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--signal);
}
.feat-flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: pulse 1.6s infinite; }
.feat-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.feat-title { font-family: var(--d); font-weight: 800; font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2rem); letter-spacing: -.02em; line-height: 1.12; color: #fff; margin-top: 16px; }
.feat-title b { color: var(--flow-bright); font-weight: 800; }
.feat-main > p { font-size: var(--t-small); color: var(--ink-sub); max-width: 62ch; margin-top: 12px; }
.feat-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 24px; }
.feat-stat .n { font-family: var(--d); font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: -.01em; }
.feat-stat .n b { color: var(--flow-bright); font-size: 1rem; font-weight: 700; }
.feat-stat .l { font-family: var(--m); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-sub); margin-top: 3px; }
.feat-side {
  border-left: 1px solid var(--ink-line); padding: 32px 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px; background: var(--ink-2);
}
.feat-views { font-family: var(--d); font-weight: 800; font-size: 2.8rem; line-height: 1; color: #fff; }
.feat-views b { color: var(--signal); }
.feat-views-l { font-family: var(--m); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-sub); margin-bottom: 16px; }
.feat-meta { font-family: var(--m); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-sub); margin-top: 10px; }

.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.case-card {
  border: 1px solid var(--ink-line); background: var(--ink-3); border-radius: 5px;
  padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.case-card:hover { border-color: rgba(47,201,182,.4); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .case-card:hover { transform: none; } }
.case-meta { font-family: var(--m); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-sub); }
.case-title { font-family: var(--d); font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; color: #fff; margin-top: 8px; }
.case-pills { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.case-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.case-cols h5 { font-family: var(--m); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--flow-bright); margin-bottom: 7px; font-weight: 500; }
.case-cols p { font-size: 12.5px; color: var(--ink-sub); line-height: 1.65; }
.case-stack { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ink-line); font-family: var(--m); font-size: 11px; color: var(--ink-sub); line-height: 2; }
.case-stack b { color: var(--flow-bright); font-weight: 500; }
.case-foot { margin-top: 20px; }
.case-link {
  font-family: var(--d); font-weight: 700; font-size: 13.5px; color: #fff;
  text-decoration: none; display: inline-flex; gap: 8px; align-items: center;
}
.case-link .ar { font-family: var(--m); color: var(--signal); transition: transform .18s; }
.case-link:hover .ar { transform: translateX(4px); }
.cases-more { margin-top: 56px; text-align: center; }
.cases-more p { font-family: var(--m); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-sub); margin-bottom: 22px; }
.cases-more .btn { margin: 6px; }

/* ── global ── */
.global-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.g-cell { background: var(--card); padding: 24px 22px 26px; position: relative; }
.g-cell.g-hq { background: var(--ink); color: var(--ink-text); }
.g-code { font-family: var(--m); font-size: 10.5px; letter-spacing: .14em; color: var(--flow); }
.g-hq .g-code { color: var(--flow-bright); }
.g-city { font-family: var(--d); font-weight: 800; font-size: 1.35rem; letter-spacing: -.015em; margin-top: 10px; }
.g-country { font-family: var(--m); font-size: 10.5px; letter-spacing: .08em; color: var(--steel); margin-top: 2px; }
.g-hq .g-country { color: var(--ink-sub); }
.g-role { font-size: 12.5px; color: var(--steel); line-height: 1.65; margin-top: 12px; }
.g-hq .g-role { color: var(--ink-sub); }
.g-mail { margin-top: 14px; font-family: var(--m); font-size: 10.5px; word-break: break-all; }
.g-mail a { color: var(--flow); text-decoration: none; }
.g-mail a:hover { text-decoration: underline; }
.g-hq .g-mail a { color: var(--flow-bright); }
.g-badge {
  position: absolute; top: 22px; right: 18px; font-family: var(--m);
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--line); color: var(--steel); border-radius: 2px;
}
.g-hq .g-badge { border-color: var(--signal); color: #fff; background: var(--signal); }

/* ── contact ── */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.c-items { margin-top: 36px; border-top: 1px solid var(--line); }
.c-item { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.c-label { font-family: var(--m); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.c-val { font-size: var(--t-small); font-weight: 500; word-break: break-word; }
.c-val a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .15s, color .15s; }
.c-val a:hover { color: var(--flow); border-color: var(--flow); }

.form-box { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--signal); padding: clamp(24px, 3vw, 40px); }
.form-box h3 { font-family: var(--d); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.form-box .form-note { font-size: 13px; color: var(--steel); margin: 6px 0 26px; }
.form-label { display: block; font-family: var(--m); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin: 18px 0 7px; }
.form-label:first-of-type { margin-top: 0; }
.form-input {
  width: 100%; font-family: var(--b); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  padding: 13px 14px; transition: border-color .15s, background .15s;
}
.form-input:focus { outline: none; border-color: var(--flow); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--flow) 18%, transparent); }
textarea.form-input { min-height: 130px; resize: vertical; }
.form-btn {
  margin-top: 26px; width: 100%; background: var(--signal); color: #fff;
  font-family: var(--d); font-weight: 700; font-size: 15px;
  padding: 16px; border-radius: 3px; transition: background .18s;
}
.form-btn:hover { background: var(--signal-deep); }
.form-btn:disabled { opacity: .6; cursor: wait; }
.form-error { display: none; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--signal); border-left-width: 3px; color: var(--signal-deep); font-size: 13.5px; background: color-mix(in srgb, var(--signal) 6%, #fff); }
.form-success { display: none; text-align: center; padding: 48px 12px; }
.form-success .check { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; border: 2px solid var(--flow); color: var(--flow); font-size: 24px; line-height: 48px; }
.form-success h3 { font-family: var(--d); font-weight: 800; font-size: 1.3rem; }
.form-success p { color: var(--steel); font-size: 14px; margin-top: 8px; }

/* ── sales & careers ── */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-panel { background: var(--card); border: 1px solid var(--line); padding: clamp(26px, 3vw, 44px); display: flex; flex-direction: column; }
.duo-panel--careers { border-top: 3px solid var(--flow); }
.duo-panel--sales { border-top: 3px solid var(--signal); }
.duo-panel .sec-lead { font-size: var(--t-small); }
.duo-feats { margin-top: 28px; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); flex: 1; }
.duo-feat { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.duo-feat i { font-family: var(--m); font-style: normal; font-size: 11px; color: var(--flow); padding-top: 3px; }
.duo-panel--sales .duo-feat i { color: var(--signal); }
.duo-feat strong { font-family: var(--d); font-weight: 700; font-size: 15px; letter-spacing: -.01em; display: block; }
.duo-feat p { font-size: 13px; color: var(--steel); margin-top: 3px; line-height: 1.6; }
.duo-cta { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.duo-email { font-family: var(--m); font-size: 11px; color: var(--steel); }
.duo-email a { color: var(--flow); text-decoration: none; }
.duo-email a:hover { text-decoration: underline; }

/* ── footer ── */
footer { background: var(--ink-2); color: var(--ink-sub); padding: 72px 0 36px; }
.f-grid { display: grid; grid-template-columns: minmax(0,1.6fr) repeat(3, minmax(0,1fr)); gap: clamp(28px, 4vw, 56px); }
.f-brand p { font-size: 13.5px; line-height: 1.7; margin-top: 16px; max-width: 36ch; }
.f-socials { display: flex; gap: 10px; margin-top: 22px; }
.f-socials a {
  font-family: var(--m); font-size: 12px; text-decoration: none; color: var(--ink-sub);
  border: 1px solid var(--ink-line); padding: 8px 13px; border-radius: 2px;
  transition: color .15s, border-color .15s;
}
.f-socials a:hover { color: #fff; border-color: var(--ink-sub); }
.f-col h5 { font-family: var(--m); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-text); margin-bottom: 18px; font-weight: 500; }
.f-col li { margin-bottom: 9px; }
.f-col a { font-size: 13.5px; color: var(--ink-sub); text-decoration: none; transition: color .15s; }
.f-col a:hover { color: var(--flow-bright); }
.f-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--ink-line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px;
}
.f-bottom a { color: var(--ink-text); text-decoration: none; }
.f-mono { font-family: var(--m); font-size: 10.5px; letter-spacing: .08em; }

/* ════ RESPONSIVE ════ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .global-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .term { max-width: 560px; }
}
@media (max-width: 880px) {
  .cap-wrap { grid-template-columns: 1fr; }
  .cap-tabs { position: static; flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 0; gap: 2px; -webkit-overflow-scrolling: touch; }
  .cap-tab { border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px 0; white-space: nowrap; padding: 12px 14px; }
  .cap-tab[aria-selected="true"] { border-bottom-color: var(--signal); }
  .case-grid { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; }
  .feat-side { border-left: 0; border-top: 1px solid var(--ink-line); flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; padding: 22px 26px; }
  .feat-views-l { margin-bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .duo-grid { grid-template-columns: 1fr; }
  .cases-head { grid-template-columns: 1fr; align-items: start; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 40px minmax(0,1fr) 28px; }
  .svc-chips { display: none; }
}
@media (max-width: 640px) {
  .about-grid, .tech-grid, .cap-grid, .why-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--ink-line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .impact-row { grid-template-columns: 1fr 1fr; }
  .imp-cell:nth-child(3) { border-left: 0; }
  .imp-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .case-cols { grid-template-columns: 1fr; }
  .c-item { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 420px) {
  .global-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .f-grid { grid-template-columns: 1fr; }
}
