/* =====================================================================
   Ahmad Hassan — GTM Engineer / Outbound Systems
   Single light theme. Tokens first, components after.
   ===================================================================== */

:root {
  color-scheme: light;

  /* surfaces + text */
  --bg: #f6f7fb;
  --bg-2: #ffffff;
  --bg-3: #f8f9fd;
  --bg-4: #eef0f7;
  --line: rgba(16, 24, 48, 0.09);
  --line-strong: rgba(16, 24, 48, 0.17);
  --text: #0d1327;
  --text-2: #353d58;
  --muted: #66708c;
  --ink: #0b1020;

  /* accent: electric indigo. Swap these lines to rebrand. */
  --accent-rgb: 91, 75, 255;
  --accent: #5b4bff;
  --accent-2: #3f33d9;
  --accent-bright: #7a6cff;
  --accent-dim: rgba(91, 75, 255, 0.10);
  --accent-glow: rgba(91, 75, 255, 0.38);
  --on-accent: #ffffff;

  --signal: #b8700a;              /* trigger / signal amber (text) */
  --signal-bright: #f5b94a;       /* amber fills and dots */
  --signal-dim: rgba(245, 185, 74, 0.22);
  --good: #12a86a;                /* positive-reply status only */
  --good-dim: rgba(18, 168, 106, 0.12);

  /* type — three families, few weights */
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 140px);
  --radius: 22px;
  --radius-sm: 12px;
  --btn-h: 52px;
  --btn-h-sm: 44px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-optical-sizing: auto; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
strong, b { font-weight: 600; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }

/* section heads */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: currentColor; opacity: .8; }
.h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-top: 18px;
}
.lede { color: var(--text-2); font-size: clamp(1.1rem, 1.5vw, 1.25rem); max-width: 62ch; margin-top: 22px; }
.section-head { max-width: 780px; }

/* ------------------------------------------------ buttons (one system) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { height: var(--btn-h-sm); padding: 0 20px; font-size: 15px; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary, .btn-wa { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -10px var(--accent-glow); }
.btn-primary:hover, .btn-wa:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--accent-glow), 0 0 0 4px var(--accent-dim); }
.btn-ghost { background: var(--bg-2); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(var(--accent-rgb), .5); }
.btn-white { background: #fff; color: var(--accent-2); box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(0,0,0,.45); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }

/* ------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(246, 247, 251, 0.8);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(246, 247, 251, 0.92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; font-size: 17px; }
.brand-mark {
  position: relative;
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-2));
  color: var(--on-accent);
  display: grid; place-items: center;
  font-size: 14px; letter-spacing: -0.03em;
  box-shadow: 0 8px 20px -10px var(--accent-glow);
}
/* signal dot: the one personal-brand mark that repeats across the page */
.brand-mark::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--signal-bright); border: 2px solid var(--bg); }
.brand-name { white-space: nowrap; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: inline-block;
  padding: 10px 16px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-dim); }
.nav-links a.is-active { color: var(--accent); }
.nav-links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .link-plain { padding: 10px 14px; font-size: 15.5px; font-weight: 600; color: var(--text-2); border-radius: 999px; transition: color .2s, background .2s; }
.nav-cta .link-plain:hover { color: var(--accent); background: var(--accent-dim); }
.nav-menu { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--bg-2); cursor: pointer; place-items: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle span + span { margin-top: 4px; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------ hero */
.hero { position: relative; padding-block: clamp(56px, 8vw, 112px) clamp(56px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at var(--mx, 70%) var(--my, 40%), rgba(var(--accent-rgb), .14), transparent 32%),
    radial-gradient(circle, rgba(16,24,48,.10) 1px, transparent 1.4px);
  background-size: 100% 100%, 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}
.hero-wave { position: absolute; left: -2%; top: 34%; width: 58%; height: auto; z-index: -1; pointer-events: none; }
.hero-wave path { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .2; }
.hero-wave .amp { stroke: var(--signal-bright); opacity: .45; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .98fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.9rem, 5.9vw, 5.1rem); line-height: .98; letter-spacing: -0.04em; margin-top: 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .word { display: inline-block; }
.hero-title .hl { position: relative; color: var(--accent); white-space: nowrap; }
.hero-title .hl svg { position: absolute; left: 0; right: 0; bottom: -0.02em; height: .28em; width: 100%; overflow: visible; }
.hero-title .hl path { fill: none; stroke: var(--accent-bright); stroke-width: 6; stroke-linecap: round; opacity: .9; }
.hero-sub { margin-top: 30px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-2); max-width: 54ch; }
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-trust { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.hero-trust .lbl { text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; }
.hero-trust span:not(.lbl) { color: var(--text-2); }

.hero-figure { position: relative; min-height: 440px; display: grid; place-items: end center; }
.figure-stage { position: relative; width: min(100%, 560px); aspect-ratio: 560 / 620; }
.figure-glow {
  position: absolute; inset: -10% -20% 0 -20%;
  background:
    radial-gradient(45% 44% at 50% 60%, rgba(var(--accent-rgb), .34), transparent 70%),
    radial-gradient(60% 50% at 50% 86%, rgba(16,24,48,.10), transparent 70%);
  filter: blur(10px);
}
.figure-photo {
  position: absolute; inset: auto 0 0 0; width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%), linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%), linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  mask-composite: intersect;
  filter: drop-shadow(0 20px 30px rgba(16,24,48,.16));
}
.figure-base { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); width: 86%; height: 1px; background: linear-gradient(to right, transparent, var(--line-strong), transparent); }

.reply-card {
  position: absolute; z-index: 3; width: 232px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 24px 50px -18px rgba(16,24,48,.28);
  font-size: 13.5px; line-height: 1.4;
}
.reply-card .rc-top { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.reply-card .rc-top .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-dim); }
.reply-card .rc-subj { margin-top: 6px; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-card .rc-body { margin-top: 4px; color: var(--text); font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--good-dim); color: var(--good);
}
.pill.meet { background: var(--signal-dim); color: var(--signal); }
.pill.grey { background: rgba(16,24,48,.07); color: var(--muted); }
.reply-card .pill { margin-top: 10px; }
.rc-1 { left: -8%; top: 44%; }
.rc-2 { right: -12%; top: 62%; }

.stat-badge {
  position: absolute; z-index: 3; right: -6%; top: 9%;
  background: var(--accent); color: var(--on-accent);
  border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 18px 40px -14px var(--accent-glow);
}
.stat-badge b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat-badge small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; margin-top: 5px; opacity: .85; }

/* ------------------------------------------------ ticker */
.ticker { border-block: 1px solid var(--line); padding-block: 26px 28px; overflow: hidden; }
.ticker-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ticker-head .eyebrow { color: var(--muted); }
.ticker-head .eyebrow::before { display: none; }
.ticker-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.ticker-track { display: flex; width: max-content; will-change: transform; }
.ticker-group { display: flex; align-items: center; }
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
.tool-chip {
  display: inline-flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 30px;
  border-left: 1px solid var(--line);
  color: var(--text-2); font-weight: 600; font-size: 15.5px; letter-spacing: -0.005em; white-space: nowrap;
  transition: color .25s, transform .25s var(--ease-out);
}
.tool-chip:hover { color: var(--text); transform: translateY(-2px); }
.tool-chip img { height: 26px; width: 26px; object-fit: contain; }
.tool-chip img.wide { width: auto; max-width: 120px; }

/* ------------------------------------------------ approach / signal engine (dark panel) */
.engine-wrap {
  --text: #eef0f8; --text-2: #cfd4e6; --muted: #98a0bb;
  --bg-2: #0e1426; --bg-3: #171e34; --bg-4: #202a48;
  --line: rgba(165, 176, 214, 0.16); --line-strong: rgba(165, 176, 214, 0.36);
  --accent: #8c7fff; --accent-2: #a89dff;
  margin-top: clamp(44px, 6vw, 76px);
  position: relative;
  border: 1px solid rgba(165,176,214,.2);
  border-radius: 26px;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(var(--accent-rgb), .32), transparent 70%),
    radial-gradient(40% 40% at 100% 100%, rgba(245,185,74,.12), transparent 70%),
    #0e1426;
  color: var(--text);
  padding: clamp(24px, 4vw, 52px);
  overflow: hidden;
  box-shadow: 0 50px 90px -50px rgba(16,24,48,.6);
}
.engine-wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(175,186,225,.16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.engine { position: relative; display: grid; grid-template-columns: 1.1fr .95fr 1.05fr .9fr 1fr; gap: clamp(22px, 3vw, 48px); align-items: center; }
.engine-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.engine-lines .wire { fill: none; stroke: var(--line-strong); stroke-width: 2.25; }
.engine-lines .wire-flow { fill: none; stroke: var(--accent-2); stroke-width: 2.25; stroke-dasharray: 7 12; opacity: .75; }
.engine-lines .arrow { fill: var(--accent-2); }
.engine-lines .packet { fill: #b3a9ff; filter: drop-shadow(0 0 7px #8c7fff); }
.engine-lines .packet.amber { fill: var(--signal-bright); filter: drop-shadow(0 0 7px var(--signal-bright)); }
.engine-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; align-self: stretch; }
.engine-col-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.engine-col-label .no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(var(--accent-rgb), .9); color: #fff; font-size: 11.5px; letter-spacing: 0; box-shadow: 0 6px 16px -6px var(--accent-glow); }
.engine-col-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.sig {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--bg-3); border: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--text-2);
  transition: border-color .3s, color .3s, box-shadow .3s, background .3s;
}
.sig .sdot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal-bright); opacity: .5; flex: none; transition: opacity .3s, box-shadow .3s; }
.sig.is-live, .sig:hover { border-color: rgba(245,185,74,.8); color: #fff; box-shadow: 0 0 0 3px rgba(245,185,74,.18); background: var(--bg-4); }
.sig.is-live .sdot, .sig:hover .sdot { opacity: 1; box-shadow: 0 0 12px var(--signal-bright); }
.node {
  position: relative; padding: 18px 18px 16px; border-radius: 16px;
  background: var(--bg-3); border: 1px solid var(--line-strong);
  box-shadow: 0 24px 44px -24px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.05);
}
.node h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.node .tools { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .03em; line-height: 1.5; }
.node .mini { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.node .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--text-2); padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.05); }
.node .row .ok { width: 18px; height: 18px; border-radius: 50%; background: var(--good-dim); color: #3ddc97; display: grid; place-items: center; font-size: 11px; flex: none; }
.node .msg { margin-top: 14px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 14px; color: var(--text-2); line-height: 1.5; min-height: 172px; }
.node .msg .caret { display: inline-block; width: 8px; height: 15px; background: var(--accent-2); vertical-align: -2px; margin-left: 2px; }
.node.send { padding: 14px 16px; }
.node.send .ch { display: flex; align-items: center; gap: 10px; }
.node.send .ch img { height: 20px; width: 20px; }
.node.send h4 { font-size: 15.5px; }
.node.replies { border-color: rgba(18,168,106,.55); background: linear-gradient(180deg, rgba(18,168,106,.18), var(--bg-3) 60%); }
.node.replies .big { font-family: var(--font-display); font-size: 56px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: #3ddc97; font-variant-numeric: tabular-nums; }
.node.replies .big small { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.node.replies .pulse { position: absolute; top: 16px; right: 16px; width: 11px; height: 11px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61,220,151,.45); }
.node.replies .meta { margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; line-height: 1.5; }

.compare { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); padding: 26px 26px 24px; position: relative; overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s; }
.compare-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(16,24,48,.3); }
.compare-card.good { border-color: rgba(18,168,106,.45); }
.compare-card .tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compare-card.good .tag { color: var(--good); }
.compare-card .tag i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .6; }
.compare-card .mail { margin-top: 16px; padding: 18px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--text-2); }
.compare-card .mail .from { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.compare-card .mail em { font-style: normal; color: var(--signal); background: var(--signal-dim); padding: 0 5px; border-radius: 4px; }
.compare-card .verdict { margin-top: 16px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.compare-card .why { margin-top: 12px; font-size: 15.5px; color: var(--muted); }

/* ------------------------------------------------ services */
.service-grid { margin-top: clamp(40px, 5vw, 60px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.card {
  --c: #6d5dff; --c-2: #5346ea;
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  padding: 40px 36px 36px; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease-out), border-color .4s, background-color .4s, box-shadow .4s, color .4s;
}
.card.c-teal  { --c: #5ac9de; --c-2: #38b3cb; }
.card.c-coral { --c: #ef77ab; --c-2: #dc5a93; }
.card.c-rose  { --c: #63c193; --c-2: #45aa78; }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 104% -6%, rgba(255,255,255,.16) 0 190px, transparent 192px),
    radial-gradient(circle at -8% 106%, rgba(255,255,255,.14) 0 166px, transparent 168px),
    radial-gradient(circle at 84% 84%, rgba(255,255,255,.12) 0 60px, transparent 62px);
  opacity: 0; transform: scale(1.08);
  transition: opacity .45s var(--ease-out), transform .7s var(--ease-out);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-8px) scale(1.012); border-color: transparent; background-color: var(--c); background-image: linear-gradient(165deg, var(--c), var(--c-2)); color: #fff; box-shadow: 0 34px 70px -30px var(--c-2); }
.card:hover::before, .card:hover::after { opacity: 1; transform: none; }
.card:hover h3, .card:hover p, .card:hover .card-list li { color: #fff; }
.card:hover .card-icon { background: rgba(255,255,255,.22); color: #fff; box-shadow: none; }
.card-icon { width: 66px; height: 66px; border-radius: 18px; background: var(--c); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 24px -12px var(--c-2); transition: background .4s, color .4s, box-shadow .4s; }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-top: 26px; font-size: 1.5rem; letter-spacing: -0.02em; transition: color .4s; }
.card p { margin-top: 12px; color: var(--text-2); font-size: 16.5px; max-width: 48ch; transition: color .4s; }
.card-list { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.card:hover .card-list { border-top-color: rgba(255,255,255,.25); }
.card-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--text-2); transition: color .4s; }
.card-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 2px;
  background-color: var(--c);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .9;
  transition: background .4s;
}
.card:hover .card-list li::before { background-color: #fff; }

/* ------------------------------------------------ results */
.proof-grid { margin-top: clamp(40px, 5vw, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stat {
  display: flex; flex-direction: column;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  padding: 34px 30px 28px; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s;
}
.stat::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(360px circle at 100% 0%, rgba(var(--accent-rgb), .12), transparent 55%); opacity: 0; transition: opacity .4s; }
.stat:hover { transform: translateY(-5px); border-color: rgba(var(--accent-rgb), .35); box-shadow: 0 26px 50px -30px rgba(var(--accent-rgb), .4); }
.stat:hover::before { opacity: 1; }
.stat::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(to right, var(--accent), transparent); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(3.2rem, 5.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat b .u { color: var(--accent); font-size: .55em; letter-spacing: -0.02em; margin-left: 2px; }
.stat > span { display: block; margin-top: 14px; font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.4; }
.stat small { display: block; margin-top: auto; padding-top: 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.proof-note { margin-top: 20px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.proof-note .box { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); padding: 30px; }
.proof-note .box h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.proof-note p { margin-top: 12px; color: var(--text-2); font-size: 16.5px; max-width: 58ch; }
.proof-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.proof-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text-2); }
.proof-list li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 3px; background-color: var(--accent-dim); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); background-size: 11px; background-repeat: no-repeat; background-position: center; }

/* ------------------------------------------------ skills */
.skills-grid { margin-top: clamp(40px, 5vw, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.skill-group {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); padding: 26px 24px;
  transition: transform .4s var(--ease-out), border-color .4s, background-color .4s, box-shadow .4s, color .4s;
}
.skill-group::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 104% -10%, rgba(255,255,255,.16) 0 130px, transparent 132px),
    radial-gradient(circle at -8% 110%, rgba(255,255,255,.14) 0 110px, transparent 112px),
    radial-gradient(circle at 86% 88%, rgba(255,255,255,.12) 0 40px, transparent 42px);
  opacity: 0; transform: scale(1.08); transition: opacity .45s var(--ease-out), transform .7s var(--ease-out);
}
.skill-group:hover { transform: translateY(-6px) scale(1.012); border-color: transparent; background-color: #6d5dff; background-image: linear-gradient(165deg, #6d5dff, #5346ea); color: #fff; box-shadow: 0 30px 60px -28px #5346ea; }
.skill-group:hover::after { opacity: 1; transform: none; }
.skill-group h3 { font-size: 1.15rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; transition: color .4s; }
.skill-group h3::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); transition: background .4s; }
.skill-group:hover h3 { color: #fff; }
.skill-group:hover h3::before { background: #fff; }
.skill-group .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 9px; }
.tag-pill { padding: 9px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 600; background: var(--bg-3); border: 1px solid var(--line); color: var(--text-2); transition: background .3s, color .3s, border-color .3s, transform .25s var(--ease-out); }
.tag-pill:hover { transform: translateY(-2px); }
.skill-group:hover .tag-pill { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.28); color: #fff; }
.skill-group:hover .tag-pill:hover { background: rgba(255,255,255,.32); }

/* ------------------------------------------------ about */
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-photo { position: relative; padding: 0 0 22px 22px; }
.about-photo .backdrop { position: absolute; left: 0; bottom: 0; width: 82%; height: 82%; border-radius: 28px; background: linear-gradient(160deg, var(--accent-bright), var(--accent-2)); z-index: 0; }
.about-photo .backdrop::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(circle, rgba(255,255,255,.28) 1px, transparent 1.5px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(200deg, transparent 30%, black 100%); mask-image: linear-gradient(200deg, transparent 30%, black 100%); }
.about-photo .frame {
  position: relative; z-index: 1;
  border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong);
  box-shadow: 0 44px 80px -40px rgba(16,24,48,.45);
  transform: perspective(1100px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform .15s ease-out; background: var(--bg-3);
}
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-photo .chip-float {
  position: absolute; z-index: 2; right: -12px; bottom: 44px;
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--text-2);
  box-shadow: 0 20px 40px -20px rgba(16,24,48,.3);
}
.about-photo .chip-float b { display: block; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; margin-bottom: 3px; }
.about-copy p { color: var(--text-2); font-size: 18px; max-width: 58ch; }
.about-copy p + p { margin-top: 18px; }
.about-copy .sig-line { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.about-copy .sig-line .name { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.about-copy .sig-line .role { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.about-facts { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.about-facts div { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--bg-2); }
.about-facts b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.about-facts span { font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------ cta */
.cta { position: relative; overflow: hidden; }
.cta-box {
  position: relative; border-radius: 30px;
  background:
    radial-gradient(circle at 104% -6%, rgba(255,255,255,.14) 0 260px, transparent 262px),
    radial-gradient(circle at -6% 108%, rgba(255,255,255,.12) 0 220px, transparent 222px),
    radial-gradient(circle at 78% 90%, rgba(255,255,255,.10) 0 70px, transparent 72px),
    linear-gradient(160deg, #6d5dff, #4338d9);
  color: #fff;
  padding: clamp(40px, 7vw, 88px);
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center;
  overflow: hidden;
  box-shadow: 0 50px 100px -50px rgba(var(--accent-rgb), .7);
}
.cta-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1.5px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(to left, black, transparent 55%); mask-image: linear-gradient(to left, black, transparent 55%); }
.cta .eyebrow { color: rgba(255,255,255,.85); }
.cta h2 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -0.035em; line-height: 1.02; margin-top: 18px; color: #fff; }
.cta p { margin-top: 18px; color: rgba(255,255,255,.86); font-size: 18px; max-width: 48ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; position: relative; z-index: 1; }
.cta-actions .btn { height: 58px; font-size: 17px; }
.cta-actions .num { text-align: center; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.75); letter-spacing: .06em; margin-top: 4px; }

/* ------------------------------------------------ footer (dark closing block) */
.footer {
  --bg: #0e1426; --text: #eef0f8; --text-2: #cfd4e6; --muted: #98a0bb;
  --line: rgba(165, 176, 214, 0.16); --line-strong: rgba(165, 176, 214, 0.32);
  --accent: #8c7fff; --accent-dim: rgba(140, 127, 255, .14);
  margin-top: clamp(24px, 4vw, 48px);
  padding-block: 72px 28px;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(var(--accent-rgb), .22), transparent 70%),
    #0e1426;
  color: var(--text);
  overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 14px; color: #fff; }
.footer .brand-name small { color: var(--muted); }
.footer-blurb { color: var(--muted); font-size: 15.5px; max-width: 34ch; }
.footer h4 { font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 15.5px; font-weight: 600; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-links svg { width: 16px; height: 16px; color: var(--muted); }
.footer-links a:hover svg { color: var(--accent); }
.footer-links .soon { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 7px; border: 1px dashed var(--line-strong); border-radius: 6px; }
.footer-wordmark {
  margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line);
  overflow: hidden; line-height: 1;
}
.footer-wordmark .fit {
  display: block; width: 100%;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 13vw, 11.6rem);
  letter-spacing: -0.05em; line-height: .92;
  color: #fff; white-space: nowrap;
  text-wrap: nowrap;
}
.footer-wordmark .dot { display: inline-block; width: .17em; height: .17em; border-radius: 50%; background: var(--signal-bright); margin-left: .05em; vertical-align: 0; }
.footer-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------ contact page */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.6rem, 5.2vw, 4.2rem); letter-spacing: -0.035em; line-height: 1.02; margin-top: 18px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: start; padding-bottom: var(--section); }
.form-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); padding: clamp(24px, 3.5vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.field label .opt { font-weight: 400; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; margin-left: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #ffffff; color: var(--text); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366708c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.field .err { font-size: 13px; color: #c0392b; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #e05252; }
.field.is-invalid .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-foot .btn[disabled] { opacity: .6; cursor: progress; }
.form-foot .hint { font-size: 14px; color: var(--muted); }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 15px; display: none; }
.form-status.ok { display: block; background: var(--good-dim); color: #0b7a4c; border: 1px solid rgba(18,168,106,.35); }
.form-status.fail { display: block; background: rgba(224,82,82,.08); color: #a92a2a; border: 1px solid rgba(224,82,82,.35); }
.side-stack { display: grid; gap: 18px; }
.side-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); padding: 26px; }
.side-card h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.side-card p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }
.side-card .btn { margin-top: 18px; width: 100%; }
.side-card .num { margin-top: 12px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-align: center; letter-spacing: .06em; }
.side-card.wa { border-color: rgba(var(--accent-rgb), .4); background: linear-gradient(180deg, rgba(var(--accent-rgb), .10), var(--bg-2) 70%); }
.side-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15.5px; color: var(--text-2); }
.side-card ul li { display: flex; gap: 10px; }
.side-card ul li::before { content: "→"; color: var(--accent); font-family: var(--font-mono); }

/* ------------------------------------------------ reveal + motion */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
  .reveal.is-in { opacity: 1; transform: none; }

  .hero-title .word { transform: translateY(110%); animation: wordUp .9s var(--ease-out) forwards; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
  .hero-sub, .hero-actions, .hero-trust, .hero .eyebrow { opacity: 0; animation: fadeUp .9s var(--ease-out) forwards; }
  .hero .eyebrow { animation-delay: 60ms; }
  .hero-sub { animation-delay: 520ms; }
  .hero-actions { animation-delay: 640ms; }
  .hero-trust { animation-delay: 780ms; }
  .hero-title .hl path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 1s var(--ease-out) 900ms forwards; }
  .hero-wave path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 2.6s var(--ease-out) 300ms forwards; }

  .figure-stage { opacity: 0; transform: translateY(30px) scale(.98); animation: figureIn 1.1s var(--ease-out) 200ms forwards; }
  .figure-glow { animation: glow 5s ease-in-out infinite alternate; }

  .reply-card { opacity: 0; animation: popIn .7s var(--ease-spring) forwards, floatY 6s ease-in-out infinite; }
  .rc-1 { animation-delay: 1.1s, 1.8s; }
  .rc-2 { animation-delay: 1.5s, 2.2s; }
  .stat-badge { opacity: 0; animation: popIn .7s var(--ease-spring) 2s forwards, floatY 7s ease-in-out 3s infinite; }

  .ticker-track { animation: marquee 52s linear infinite; }

  .engine-lines .wire-flow { animation: dash 1.6s linear infinite; }
  .engine-lines .packet { offset-rotate: 0deg; animation: travel var(--dur, 3.2s) cubic-bezier(.4,0,.2,1) var(--delay, 0s) infinite; }
  .node.replies .pulse { animation: pulse 2s ease-out infinite; }
  .node .msg .caret { animation: blink 1s steps(2) infinite; }
  .node .row { opacity: 0; transform: translateX(-6px); animation: rowIn .5s var(--ease-out) forwards; }
  .node .row:nth-child(1) { animation-delay: .2s; }
  .node .row:nth-child(2) { animation-delay: .5s; }
  .node .row:nth-child(3) { animation-delay: .8s; }
}

@keyframes wordUp { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes figureIn { to { opacity: 1; transform: none; } }
@keyframes glow { from { opacity: .75; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dash { to { stroke-dashoffset: -19; } }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.45); } 100% { box-shadow: 0 0 0 14px rgba(61,220,151,0); } }
@keyframes blink { to { opacity: 0; } }
@keyframes rowIn { to { opacity: 1; transform: none; } }

/* ------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .engine { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .engine-col.signals { grid-column: 1 / -1; }
  .engine-col.signals .engine-col-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .engine-col.send-col { grid-column: 1 / -1; }
  .engine-col.send-col .engine-col-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .engine-col.out { grid-column: 1 / -1; }
  .engine-col.out .node.replies { max-width: 440px; }
  .node .msg { min-height: 100px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body { font-size: 17px; }
  .nav-inner { gap: 12px; height: 70px; }
  .nav-links, .nav-cta .link-plain { display: none; }
  .nav-toggle { display: grid; flex: none; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; box-shadow: 0 30px 40px -20px rgba(16,24,48,.2); }
  .nav.is-open .nav-menu { display: block; }
  .nav-menu a { display: block; padding: 14px 6px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); color: var(--text-2); }
  .nav-menu a:last-child { border-bottom: 0; }

  .hero { padding-block: 40px 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-title { margin-top: 22px; }
  .hero-figure { min-height: 0; margin-top: 16px; }
  .figure-stage { width: min(100%, 440px); }
  .rc-1 { left: 0; top: 46%; }
  .rc-2 { right: 0; top: 68%; }
  .stat-badge { left: 0; right: auto; top: 6%; }
  .hero-wave { display: none; }

  .service-grid, .compare, .proof-note, .about-grid, .cta-box, .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .service-grid { grid-auto-rows: auto; }
  .proof-grid, .skills-grid { grid-template-columns: 1fr 1fr; }
  .about-photo { max-width: 460px; }
  .cta-actions .btn { width: 100%; }
}

@media (max-width: 640px) {
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.3rem); }
  .hero-actions .btn { width: 100%; }
  .reply-card { width: 204px; font-size: 12.5px; }
  .proof-grid, .skills-grid, .about-facts, .footer-grid { grid-template-columns: 1fr; }
  .engine { grid-template-columns: 1fr; gap: 36px; }
  .engine-col.signals .engine-col-body { grid-template-columns: 1fr 1fr; }
  .engine-col-label { align-self: center; position: relative; z-index: 2; background: var(--bg-3); border: 1px solid var(--line-strong); padding: 5px 12px 5px 5px; border-radius: 999px; }
  .engine-col.out .node.replies { max-width: none; }
  .card { padding: 30px 24px 26px; }
  .stat { padding: 28px 24px 22px; }
  .about-photo .chip-float { right: 0; bottom: 30px; }
}

@media (max-width: 480px) {
  .brand-name small { display: none; }
  .nav-cta .btn-wa { padding: 0 14px; }
  .nav-cta .btn-wa .btn-label { display: none; }
}

@media (max-width: 420px) {
  .engine-col.signals .engine-col-body { grid-template-columns: 1fr; }
  .engine-col.send-col .engine-col-body { grid-template-columns: 1fr; }
  .reply-card { width: 184px; }
  .rc-2 { top: 70%; }
}
