/* ============================================================
   CWE.tools — refined, professional, calm. Fast by design.
   Restrained palette · generous whitespace · subtle motion.
   Progressive enhancement: everything visible by default,
   animations layered only under .anim-on.
   ============================================================ */

:root {
  /* refined core palette */
  --indigo: #4f46e5;
  --indigo-2: #6366f1;
  --blue: #2563eb;
  --sky: #0ea5e9;
  --teal: #0d9488;
  --violet: #7c3aed;
  --emerald: #059669;
  --amber: #d97706;

  /* one primary, used consistently */
  --brand: var(--indigo);
  --brand-2: var(--indigo-2);
  --font-scale: 1;
  --motion: 1;

  --ui: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 20px;
  --r-sm: 13px;
  --maxw: 1540px;

  /* chart sequence — consistent, professional */
  --c1: #4f46e5;
  --c2: #2563eb;
  --c3: #0ea5e9;
  --c4: #0d9488;

  /* gradient tokens (used by markup + charts) */
  --g-brand2: linear-gradient(135deg, var(--brand), var(--brand-2));
  --g-brand: linear-gradient(135deg, var(--brand), var(--violet));
  --g-cool: linear-gradient(135deg, #22a7d8, #2563eb);
  --g-mint: linear-gradient(135deg, #10b981, #0d9488);
  --g-sun: linear-gradient(135deg, #f59e0b, #ea580c);
  --g-pink: linear-gradient(135deg, #d946ef, #7c3aed);
}

:root, [data-theme="light"] {
  --bg: #fbfbfe;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --ink: #11142b;
  --ink-2: #3a3f5c;
  --muted: #757a96;
  --line: #ececf4;
  --line-2: #f1f2f8;
  --shadow-sm: 0 1px 2px rgba(17, 20, 43, 0.04), 0 2px 8px rgba(17, 20, 43, 0.04);
  --shadow: 0 6px 22px rgba(17, 20, 43, 0.06);
  --shadow-lg: 0 18px 44px -24px rgba(28, 27, 80, 0.24);
  --brand-soft: #eef0fe;
}

[data-theme="dark"] {
  --bg: #0a0b14;
  --surface: #111425;
  --surface-2: #161a2e;
  --ink: #eef0fb;
  --ink-2: #c6cae3;
  --muted: #888da9;
  --line: #20243c;
  --line-2: #1a1e33;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 8px 26px rgba(0,0,0,0.4);
  --shadow-lg: 0 28px 64px -26px rgba(0,0,0,0.75);
  --brand: #6d68f0;
  --brand-2: #8b88f7;
  --brand-soft: #1b1d3a;
  --c1: #6d68f0; --c2: #3b82f6; --c3: #22d3ee; --c4: #2dd4bf;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ui);
  font-size: calc(16px * var(--font-scale));
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.06; letter-spacing: 0; text-wrap: balance; }
p { overflow-wrap: break-word; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(20px, 4vw, 44px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%;
  font-weight: 700; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.eyebrow-copy { min-width: 0; overflow-wrap: anywhere; }

/* ============================================================ TOPBAR */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 0.8rem;
}
.brand-logo {
  width: 86px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  box-shadow: none;
  overflow: visible;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand strong { display: block; font-weight: 700; font-size: 1rem; font-family: var(--display); letter-spacing: -0.01em; }
.brand small { display: block; color: var(--muted); font-size: 0.72rem; }
[data-theme="dark"] .topbar {
  background: color-mix(in srgb, var(--bg) 96%, #111425);
  border-bottom-color: color-mix(in srgb, var(--line) 82%, #ffffff 8%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03);
}
[data-theme="dark"] .brand-logo {
  width: 112px;
  height: 48px;
  padding: 6px 9px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 28px -20px rgba(0,0,0,0.85);
}
[data-theme="dark"] .brand-logo img {
  object-fit: contain;
}
[data-theme="dark"] .brand strong { color: #ffffff; }
[data-theme="dark"] .brand small { color: #aeb5d6; }
.nav { display: flex; gap: 4px; flex: 0 1 auto; justify-content: center; }
.nav a { padding: 9px 14px; border-radius: 9px; font-weight: 600; font-size: 0.9rem; color: var(--ink-2); transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a.active { color: var(--brand); background: var(--brand-soft); }
.topbar-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.icon-btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .i-sun { display: none; }
[data-theme="dark"] .icon-btn .i-sun { display: block; }
[data-theme="dark"] .icon-btn .i-moon { display: none; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  font-family: var(--ui); font-weight: 700; font-size: 0.92rem; white-space: nowrap;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), background 0.2s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-2); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.btn .arr { transition: transform 0.26s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-light { background: #fff; color: var(--brand); }

/* ============================================================ CARD */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; backface-visibility: hidden; }
.card.hov:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); }

/* ============================================================ HERO */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, calc(100svh - 72px), 760px);
  display: grid;
  align-items: center;
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 84px);
}
.hero::before {
  content: ""; position: absolute; top: -10%; right: -6%; width: 520px; height: 520px; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 18%, transparent), transparent 62%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: center; justify-items: center; }
.hero-copy { width: 100%; max-width: min(1120px, 100%); margin-inline: auto; text-align: center; }
.hero h1 { max-width: 100%; font-size: clamp(3rem, 5.6vw, 5.5rem); margin: 20px 0; line-height: 1; overflow-wrap: break-word; }
.hero h1 .hero-break,
.hero h1 .hero-mobile-break,
.hero h1 .grad span { display: inline; }
.hero h1 .grad { color: var(--brand); }
.hero-lede { max-width: 820px; margin-inline: auto; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--muted); line-height: 1.64; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 34px; }
.hero-trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.hero-trust .av { display: flex; }
.hero-trust .av span:first-child { margin-left: 0; }
.hero-trust .av span { width: 30px; height: 30px; border-radius: 50%; margin-left: -9px; border: 2px solid var(--bg); display: grid; place-items: center; font-size: 0.62rem; font-weight: 700; color: #fff; font-family: var(--display); }
.hero-trust .trust-copy { overflow-wrap: break-word; }
.hero-trust .lc-image {
  width: 118px;
  height: 44px;
  display: block;
  overflow: hidden;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.hero-trust .lc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================================ DASHBOARD */
.dash { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.dash-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.94rem; }
.dash-title .badge { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--brand); }
.dash-title .badge svg { width: 16px; height: 16px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--emerald) 13%, transparent); color: var(--emerald); font-size: 0.72rem; font-weight: 700; }
.live-pill .led { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: blink calc(2s / max(var(--motion),0.3)) infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); }
.seg button { border: none; background: transparent; padding: 5px 12px; border-radius: 8px; font-family: var(--ui); font-weight: 600; font-size: 0.76rem; color: var(--muted); cursor: pointer; transition: color 0.2s, background 0.2s; }
.seg button.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.dash-body { padding: 22px; }
.live-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; margin-bottom: 16px; }
.live-primary { min-width: 0; }
.lk-v.big { color: var(--brand); font-size: 1.98rem; }
.live-spark { justify-self: end; min-width: 156px; }
.src-line { display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid var(--line-2); margin-top: 10px; padding-top: 10px; color: var(--muted); font-size: 0.72rem; font-weight: 600; line-height: 1.35; }
.src-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; margin-top: 0.36em; background: var(--brand); }

.kpis { display: grid; gap: 14px; }
.kpi { border-radius: var(--r-sm); padding: 15px 16px; background: var(--surface-2); border: 1px solid var(--line-2); }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .k-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.kpi .k-ico svg { width: 17px; height: 17px; }
.kpi .k-val { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1; margin-top: 14px; font-variant-numeric: tabular-nums; }
.kpi .k-lbl { color: var(--muted); font-size: 0.78rem; font-weight: 600; margin-top: 6px; }
.k-delta { font-size: 0.74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.k-delta.up { color: var(--emerald); background: color-mix(in srgb, var(--emerald) 13%, transparent); }
.k-delta.flat { color: var(--muted); background: var(--surface-2); }

.chart-card { border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); padding: 16px 18px; }
.chart-card .c-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.chart-card .c-h .t { font-weight: 700; font-size: 0.92rem; }
.chart-card .c-h .s { font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.live-peer-chart .live-line,
.live-peer-chart .live-line-segment { animation: peerLineBreath 2.4s ease-in-out infinite; }
.live-peer-chart .live-line-segment:nth-of-type(2n) { animation-delay: 0.12s; }
.live-peer-chart .live-line-segment:nth-of-type(3n) { animation-delay: 0.24s; }
.live-peer-chart .peer-dot { animation: peerDotPulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

.path-line { stroke-dasharray: var(--len); stroke-dashoffset: 0; }
.area-fill, .dot-pt { opacity: 1; }
.anim-on .path-line { stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease); }
.anim-on .in .path-line { stroke-dashoffset: 0; }
.anim-on .area-fill { opacity: 0; transition: opacity 0.9s ease 0.5s; }
.anim-on .in .area-fill { opacity: 1; }
.anim-on .dot-pt { opacity: 0; transition: opacity 0.4s ease; }
.anim-on .in .dot-pt { opacity: 1; transition-delay: 1.4s; }

.rank { display: flex; flex-direction: column; gap: 13px; }
.rank-row { display: grid; grid-template-columns: 74px 1fr 40px; align-items: center; gap: 12px; }
.rank-row .nm { font-size: 0.84rem; font-weight: 600; }
.rank-row .track { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rank-row .fill { display: block; height: 100%; border-radius: 999px; width: var(--w); }
.anim-on .rank-row .fill { width: 0; transition: width 1.1s var(--ease); }
.anim-on .in .rank-row .fill { width: var(--w); }
.rank-row .vv { text-align: right; font-weight: 700; font-size: 0.82rem; font-variant-numeric: tabular-nums; }

.cols { display: flex; align-items: flex-end; gap: 12px; height: 130px; }
.cols .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.cols .col .bar { width: 100%; max-width: 26px; border-radius: 7px 7px 3px 3px; height: var(--h); }
.cols.live-bars .bar { transform-origin: center bottom; animation: columnBreathe 2.8s ease-in-out infinite; animation-delay: var(--dly, 0s); box-shadow: 0 8px 14px -13px currentColor; }
.anim-on .cols .col .bar { height: 0; transition: height 1s var(--ease); }
.anim-on .in .cols .col .bar { height: var(--h); }
.cols .col .lb { font-size: 0.68rem; color: var(--muted); font-weight: 600; }

@keyframes peerLineBreath {
  0%, 100% { opacity: 0.92; stroke-width: 2.55; }
  50% { opacity: 1; stroke-width: 3.15; }
}
@keyframes peerDotPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.78; }
  50% { transform: scale(1.12); opacity: 1; }
}
@keyframes columnBreathe {
  0%, 100% { transform: scaleY(0.94); }
  50% { transform: scaleY(var(--pulse, 1.04)); }
}

.heat { display: grid; gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 4px; transition: background 0.6s var(--ease), transform 0.25s var(--ease); }
.heat i:hover { transform: scale(1.16); }
.heat-legend { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.heat-legend .scale { display: flex; gap: 2px; }
.heat-legend .scale i { width: 16px; height: 10px; border-radius: 3px; }

/* ============================================================ SECTION */
.section {
  position: relative;
  padding: clamp(45px, 6vw, 82px) 0;
  content-visibility: auto;
  contain-intrinsic-size: 760px;
}
.section.tight { padding-top: 0; }
.sec-head { max-width: 640px; margin-bottom: clamp(26px, 3.4vw, 42px); }
.sec-head h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin: 16px 0 14px; }
.sec-head p { color: var(--muted); font-size: 1.06rem; line-height: 1.62; }
#what .sec-head { max-width: none; }
#what .sec-head p {
  max-width: none;
  white-space: nowrap;
}
#projects .sec-head { max-width: 900px; margin-bottom: clamp(21px, 2.7vw, 34px); }
#projects .sec-head p { max-width: 760px; }
#method .sec-head { max-width: none; }
#method .sec-head h2 {
  max-width: none;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.05;
  text-wrap: normal;
  white-space: nowrap;
}
#team .sec-head { max-width: none; }
#team .sec-head h2 {
  max-width: none;
  font-size: clamp(2rem, 2.9vw, 3.15rem);
  line-height: 1.06;
  text-wrap: normal;
  white-space: nowrap;
}
#team .sec-head p { max-width: 980px; }

/* focus */
.focus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.focus .card { padding: 30px 28px; }
.focus .fi { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 22px; }
.focus .fi svg { width: 24px; height: 24px; }
.focus h3 { font-size: 1.35rem; margin-bottom: 11px; }
.focus p { color: var(--muted); line-height: 1.6; font-size: 0.96rem; }
.anim-on .focus .card.in .fi,
.anim-on .method .step.in .n,
.anim-on .dz-ico {
  animation: softFloat 5.2s ease-in-out infinite;
}
.anim-on .focus .card:nth-child(2).in .fi,
.anim-on .method .step:nth-child(2).in .n { animation-delay: 0.35s; }
.anim-on .focus .card:nth-child(3).in .fi,
.anim-on .method .step:nth-child(3).in .n { animation-delay: 0.7s; }
@keyframes softFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}

/* method */
.method {
  --flow-gap: clamp(58px, 5vw, 90px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--flow-gap);
  counter-reset: s;
  perspective: 1200px;
}
.method .step {
  position: relative;
  min-height: 236px;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, white), color-mix(in srgb, var(--surface-2) 88%, white)),
    var(--surface);
  box-shadow: 0 24px 54px -34px rgba(17, 20, 43, 0.28), inset 0 1px 0 rgba(255,255,255,0.88);
  transform: rotateX(1.4deg) translateZ(0);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s;
}
.method .step:hover {
  transform: translateY(-4px) rotateX(0deg);
  box-shadow: 0 30px 64px -34px rgba(17, 20, 43, 0.36), inset 0 1px 0 rgba(255,255,255,0.9);
  border-color: color-mix(in srgb, var(--c, var(--brand)) 28%, var(--line));
}
.method .step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c, var(--brand)) 12%, transparent), transparent 42%);
  pointer-events: none;
}
.method .flow-arrow {
  position: absolute;
  top: 50px;
  right: calc(-1 * var(--flow-gap) + 16px);
  width: calc(var(--flow-gap) - 32px);
  height: 22px;
  z-index: 6;
  color: var(--c, var(--brand));
  pointer-events: none;
  transform: none;
  transform-origin: center;
}
.method .flow-arrow svg { display: none; }
.method .flow-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 12px;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
  background:
    linear-gradient(90deg, transparent 0 24%, rgba(255,255,255,0.92) 45%, transparent 64%) 0 0 / 240% 100% no-repeat,
    linear-gradient(90deg, color-mix(in srgb, var(--c, var(--brand)) 18%, transparent), color-mix(in srgb, currentColor 90%, transparent));
  box-shadow: 0 8px 18px -12px currentColor;
  animation: methodRailSweep 2.7s var(--ease) infinite;
}
.method .flow-arrow::after {
  content: "›";
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: currentColor;
  background: color-mix(in srgb, var(--surface) 88%, white);
  border: 1px solid color-mix(in srgb, var(--c, var(--brand)) 42%, var(--line));
  box-shadow: 0 13px 24px -18px currentColor, inset 0 1px 0 rgba(255,255,255,0.9);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  animation: methodChevronNudge 3s var(--ease) infinite;
}
@keyframes methodRailSweep {
  0% { background-position: -180% 0, 0 0; opacity: 0.55; }
  45%, 70% { opacity: 1; }
  100% { background-position: 180% 0, 0 0; opacity: 0.7; }
}
@keyframes methodChevronNudge {
  0%, 100% { opacity: 0.86; transform: translateY(-50%) translateX(0); }
  45% { opacity: 1; transform: translateY(-50%) translateX(3px); }
}
.method .flow-arrow::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 5px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 30% 50%);
  box-shadow: 0 12px 24px -14px currentColor;
  animation: methodArrowPush 2.7s var(--ease) infinite;
}
@keyframes methodArrowPush {
  0%, 100% { opacity: 0.82; transform: translateY(-50%) translateX(0); }
  45% { opacity: 1; transform: translateY(-50%) translateX(4px); }
}
.method .step:nth-child(1) { --c: var(--blue); }
.method .step:nth-child(2) { --c: var(--teal); }
.method .step:nth-child(3) { --c: var(--amber); }
.method .step:nth-child(4) { --c: var(--violet); }
.method .step .n {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--c, var(--brand)), color-mix(in srgb, var(--c, var(--brand)) 70%, #ffffff));
  box-shadow: 0 14px 24px -14px color-mix(in srgb, var(--c, var(--brand)) 85%, transparent), inset 0 1px 0 rgba(255,255,255,0.35);
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 20px;
}
.method .step h4 { position: relative; font-family: var(--display); font-size: 1.12rem; font-weight: 700; margin-bottom: 9px; }
.method .step p { position: relative; color: var(--muted); font-size: 0.9rem; line-height: 1.52; }

/* showcase */
.showcase { display: grid; gap: clamp(34px, 4.5vw, 63px); }
.show { display: grid; grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr); gap: clamp(28px, 3.8vw, 52px); align-items: center; }
.show.flip .show-copy { order: 2; }
.show-copy { padding-top: clamp(4px, 0.8vw, 12px); }
.show-copy .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.show-copy .chip { padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.show-copy h2 { max-width: 820px; font-size: clamp(1.9rem, 2.35vw, 2.45rem); margin: 12px 0 14px; line-height: 1.08; text-wrap: balance; }
.show-copy p { color: var(--muted); line-height: 1.62; font-size: 1.04rem; margin-bottom: 26px; }
.show-copy .stat-row { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 28px; }
.show-copy .stat .v { font-family: var(--display); font-weight: 700; font-size: 1.85rem; font-variant-numeric: tabular-nums; }
.show-copy .stat .l { color: var(--muted); font-size: 0.8rem; font-weight: 600; margin-top: 2px; }
.insight-panel {
  width: min(100%, 680px);
  margin: -4px 0 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--c, var(--brand)) 14%, transparent), transparent 32%),
    linear-gradient(135deg, var(--surface), var(--surface-2));
  box-shadow: 0 18px 42px -34px rgba(17, 20, 43, 0.45);
}
.insight-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}
.insight-head span { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.insight-head strong { color: var(--ink); font-family: var(--display); font-size: 1.02rem; line-height: 1.15; }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.insight-item {
  min-height: 128px;
  padding: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.insight-item span { display: block; font-family: var(--display); font-size: 1.22rem; line-height: 1.05; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.insight-item p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.48; text-wrap: pretty; }
.insight-flow {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.insight-flow i { width: 100%; height: 2px; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--brand)) 22%, transparent), var(--c, var(--brand))); }
.newark-panel .insight-head {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px;
}
.newark-panel .insight-head strong {
  justify-self: end;
  text-align: right;
  max-width: 18rem;
}
.newark-panel .insight-item {
  min-height: 138px;
  padding: 18px;
}
.newark-panel .insight-item span {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.newark-panel .insight-item p {
  max-width: 15.5rem;
  font-size: 0.84rem;
  line-height: 1.46;
}
.newark-panel .insight-flow {
  grid-template-columns: auto minmax(34px, 1fr) auto minmax(34px, 1fr) auto minmax(34px, 1fr) auto;
}
.use-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(100%, 680px); margin: 0 0 22px; }
.use-cases div { min-height: 112px; padding: 17px 18px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 32px -30px rgba(17, 20, 43, 0.45); }
.use-cases strong { display: block; color: var(--ink); font-family: var(--display); font-size: 0.98rem; line-height: 1.15; margin-bottom: 8px; }
.use-cases span { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.48; max-width: 28rem; text-wrap: pretty; }
.peer-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.peer-mini span {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, transparent), var(--surface-2));
  border: 1px solid var(--line-2);
}
.peer-mini strong {
  display: block;
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.peer-mini em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
}

/* live hero dashboard */
.lkpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.lk { border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); padding: 13px 14px; }
.lk-l { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.lk-v { font-family: var(--display); font-weight: 700; font-size: 1.45rem; margin: 7px 0 5px; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.lk-v.flash { color: var(--brand); }
.lk-d { font-size: 0.72rem; font-weight: 700; color: var(--emerald); }
.feed-h { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 11px; }
.dotpulse { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: blink 1.8s infinite; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 0.85rem; }
.feed li .fdot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.feed li .ft { flex: 1; color: var(--ink-2); line-height: 1.35; }
.feed li .fm { font-size: 0.7rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.feed li.fnew { animation: feedIn 0.5s var(--ease); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* product window (project showcases) */
.winframe {
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  align-self: center;
}
.winframe:hover { transform: translate3d(0, -3px, 0); box-shadow: 0 22px 46px -28px rgba(28, 27, 80, 0.28); }
.win-bar { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.win-bar .dots { display: flex; gap: 6px; }
.win-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.win-bar .dots i:nth-child(1) { background: #fb7185; }
.win-bar .dots i:nth-child(2) { background: #fbbf24; }
.win-bar .dots i:nth-child(3) { background: #34d399; }
.win-bar .url { font-size: 0.78rem; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-bar .win-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; color: var(--emerald); }
.win-bar .win-live .led { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: blink 1.8s infinite; }
.win-view { position: relative; }
.win-view .win-dash { padding: 16px; }
.win-view image-slot { position: absolute; inset: 0; z-index: 2; }
.win-view image-slot::part(ring) { display: none; }
.win-view image-slot::part(empty) { opacity: 0; background: rgba(10,12,30,0.5); color: #fff; transition: opacity 0.25s; }
.winframe:hover image-slot:not([data-filled])::part(empty) { opacity: 1; }
.win-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.win-stats .ws { padding: 13px 15px; border-left: 1px solid var(--line-2); }
.win-stats .ws:first-child { border-left: none; }
.win-stats .ws-v { display: block; font-family: var(--display); font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.win-stats .ws-l { font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* coming soon */
.soon { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: clamp(36px, 4.5vw, 60px); }
.soon .card { padding: 28px; display: flex; flex-direction: column; min-height: 240px; }
.soon .tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.soon h3 { font-size: 1.4rem; margin: 18px 0 8px; }
.soon p { color: var(--muted); line-height: 1.55; font-size: 0.95rem; }
.soon .teaser { margin-top: auto; padding-top: 20px; display: flex; align-items: flex-end; gap: 6px; height: 56px; opacity: 0.5; }
.soon .teaser i { flex: 1; border-radius: 4px 4px 0 0; background: var(--brand); }
.soon .countdown { margin-top: 16px; font-weight: 700; font-size: 0.84rem; color: var(--brand); }

/* team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tcard { overflow: hidden; }
.tphoto { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.tphoto-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; z-index: 2; display: block; }
.tphoto image-slot { position: absolute; inset: 0; z-index: 2; }
.tphoto image-slot::part(ring) { display: none; }
.tphoto image-slot::part(empty) { opacity: 0; background: rgba(10,12,30,0.5); color: #fff; transition: opacity 0.25s; }
.tcard:hover image-slot:not([data-filled])::part(empty) { opacity: 1; }
.tmono { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 700; font-size: 2.4rem; background: linear-gradient(150deg, var(--brand), var(--brand-2)); transition: opacity 0.3s; }
.tphoto:has(image-slot[data-filled]) .tmono { opacity: 0; }
.tbody { padding: 18px 20px 22px; }
.tbody .role { color: var(--brand); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.tbody h3 { font-size: 1.18rem; margin: 8px 0 8px; }
.tbody p { color: var(--muted); font-size: 0.85rem; line-height: 1.5; margin-bottom: 14px; }
.tbody .li { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 700; color: var(--ink-2); }
.tbody .li svg { width: 16px; height: 16px; }
.tbody .li:hover { color: var(--brand); }

/* cta */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(34px, 4.4vw, 58px);
  background:
    linear-gradient(115deg, rgba(255,255,255,0.11) 0 16%, transparent 16% 45%, rgba(255,255,255,0.08) 45% 58%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.09) 0 1px, transparent 1px 72px),
    linear-gradient(135deg, var(--brand), var(--violet));
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.cta h2 { font-size: clamp(1.9rem, 2.75vw, 2.7rem); color: #fff; position: relative; }
.cta p { position: relative; opacity: 0.92; line-height: 1.6; margin-top: 14px; max-width: 620px; }
.cta-kicker { display: inline-flex; margin-bottom: 14px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.76); }
.cta-links { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 24px; }
.cta .source { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; opacity: 0.9; border-bottom: 1px solid rgba(255,255,255,0.45); padding-bottom: 2px; }
.cta-visual { position: relative; display: grid; gap: 16px; }
.cta-visual-head { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.86); }
.cta-logo { display: grid; place-items: center; width: 92px; height: 36px; border-radius: 12px; background: rgba(255,255,255,0.95); box-shadow: 0 14px 28px -18px rgba(0,0,0,0.45); }
.cta-logo img { width: 78px; height: 28px; object-fit: contain; }
.flow-steps { display: grid; gap: 10px; }
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  background: rgba(255,255,255,0.11);
}
.flow-step::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -11px;
  width: 2px;
  height: 10px;
  background: rgba(255,255,255,0.45);
}
.flow-step:last-child::after { display: none; }
.flow-index { grid-row: span 2; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.95); color: var(--brand); font-family: var(--display); font-size: 0.78rem; font-weight: 800; }
.flow-step strong { font-family: var(--display); font-size: 1.02rem; line-height: 1.1; }
.flow-step small { color: rgba(255,255,255,0.78); line-height: 1.45; }
.cta-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cta-proof span { min-height: 74px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.82); font-size: 0.8rem; font-weight: 700; }
.cta-proof b { display: block; font-family: var(--display); font-size: 1.85rem; line-height: 1; color: #fff; margin-bottom: 5px; }

/* contact / file drop */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-copy h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin: 14px 0 14px; }
.contact-copy p { color: var(--muted); font-size: 1.05rem; line-height: 1.62; }
.contact-meta { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-meta li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-2); font-size: 0.95rem; }
.contact-meta .cm-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); flex: 0 0 auto; }
.contact-meta .cm-ico svg { width: 18px; height: 18px; }

.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea {
  font-family: var(--ui); font-size: 0.95rem; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; outline: none; width: 100%; resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.field.err input, .field.err textarea { border-color: var(--coral, #e5484d); box-shadow: 0 0 0 3px color-mix(in srgb, #e5484d 14%, transparent); }

.dropzone {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 16px; border: 1.6px dashed var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.dropzone:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--brand-soft); }
.dropzone.drag { border-color: var(--brand); background: var(--brand-soft); transform: scale(1.005); }
.dropzone.filled { border-style: solid; border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.dz-ico { width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.dz-ico svg { width: 20px; height: 20px; }
.dz-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dz-text strong { font-size: 0.92rem; }
.dz-text small { font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-note { font-size: 0.85rem; font-weight: 600; margin: 0; min-height: 1px; }
.cf-note.ok { color: var(--emerald); }
.cf-note.bad { color: #e5484d; }
.contact-card.sent { align-items: center; justify-content: center; text-align: center; min-height: 320px; gap: 14px; }
.sent-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--emerald), var(--teal)); }
.sent-ico svg { width: 30px; height: 30px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; color: var(--muted); font-size: 0.86rem; }
.footer-inner > a { justify-self: end; overflow-wrap: anywhere; }
.footer-address { margin: 0; font: inherit; line-height: 1.45; color: var(--ink-2); text-align: center; }
.footer a:hover { color: var(--brand); }

/* ============================================================ REVEAL (progressive) */
.rv { opacity: 1; transform: none; }
.anim-on .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0ms); }
.anim-on .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .anim-on .rv { opacity: 1; transform: none; transition: none; } }
@media (prefers-reduced-motion: reduce) {
  .method .flow-arrow::before,
  .method .flow-arrow::after { animation: none; }
}

/* frozen / embedded context: force final state so nothing is ever blank */
.no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; animation: none !important; }
.no-anim .rv { opacity: 1 !important; transform: none !important; }
.no-anim .path-line { stroke-dashoffset: 0 !important; }
.no-anim .area-fill, .no-anim .dot-pt { opacity: 1 !important; }
.no-anim .rank-row .fill { width: var(--w) !important; }
.no-anim .cols .col .bar { height: var(--h) !important; }
.no-anim .method .flow-arrow::before,
.no-anim .method .flow-arrow::after { animation: none !important; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1200px) {
  .nav a { padding-inline: 10px; }
  .show { grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: clamp(24px, 3.5vw, 40px); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .topbar-inner { min-height: 68px; }
  #method .sec-head h2,
  #team .sec-head h2 {
    text-wrap: balance;
    white-space: normal;
  }
  .hero {
    min-height: auto;
    padding: clamp(48px, 8vw, 76px) 0 clamp(44px, 7vw, 68px);
  }
  .hero h1 { max-width: 960px; font-size: clamp(2.8rem, 8.2vw, 4.7rem); }
  .hero-lede { max-width: 760px; }
  .focus { grid-template-columns: 1fr; }
  .method {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin-inline: auto;
    gap: 46px;
  }
  .method .step {
    min-height: auto;
  }
  .method .flow-arrow {
    top: auto;
    right: auto;
    left: 50%;
    bottom: -43px;
    width: 74px;
    height: 34px;
    transform: translateX(-50%) rotate(90deg);
  }
  .show,
  .show.flip { grid-template-columns: 1fr; }
  .show.flip .show-copy { order: 0; }
  .show-copy { padding-top: 0; }
  .show-copy h2 { max-width: none; }
  .winframe { max-width: 760px; width: 100%; }
  .show.flip .winframe { order: 2; }
  .soon { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta-copy { order: 1; }
  .cta-visual { order: 2; }
  .cta-proof { max-width: 640px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding-inline: clamp(16px, 5vw, 26px); }
  .topbar-tools .btn { display: none; }
  .brand small { display: none; }
  .section { padding: clamp(36px, 9vw, 54px) 0; }
  .sec-head,
  #what .sec-head,
  #what .sec-head p,
  #method .sec-head,
  #team .sec-head,
  #team .sec-head p { max-width: none; }
  #what .sec-head p { white-space: normal; }
  .sec-head h2 { font-size: clamp(1.9rem, 8vw, 2.7rem); }
  #method .sec-head h2 { font-size: clamp(2rem, 8vw, 2.8rem); }
  #team .sec-head h2 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .sec-head p { font-size: 1rem; }
  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 8.8vw, 3.2rem);
    line-height: 1.02;
    text-wrap: pretty;
  }
  .hero .eyebrow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
    letter-spacing: 0.05em;
  }
  .hero-lede { font-size: 1rem; line-height: 1.58; }
  .hero-cta { align-items: stretch; }
  .hero-cta .btn { flex: 1 1 220px; }
  .hero-trust { gap: 10px 12px; }
  .hero-trust .lc-image { width: 106px; height: 40px; }
  .method { grid-template-columns: 1fr; }
  .show-copy h2 { font-size: clamp(1.85rem, 7.5vw, 2.45rem); }
  .show-copy p { font-size: 1rem; }
  .insight-grid { grid-template-columns: 1fr; }
  .insight-item { min-height: auto; }
  .insight-head { align-items: start; flex-direction: column; gap: 5px; }
  .newark-panel .insight-head { grid-template-columns: 1fr; align-items: start; }
  .newark-panel .insight-head strong { justify-self: start; text-align: left; }
  .newark-panel .insight-item { min-height: auto; }
  .newark-panel .insight-item p { max-width: none; }
  .use-cases { grid-template-columns: 1fr; }
  .win-stats .ws { padding: 12px; }
  .team { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .topbar-inner { gap: 10px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 0.72rem; }
  .brand-logo { width: 80px; height: 32px; padding: 0; border-radius: 0; }
  [data-theme="dark"] .brand-logo { width: 92px; height: 38px; padding: 5px 7px; border-radius: 12px; }
  .brand strong { font-size: 0.92rem; }
  .icon-btn { width: 38px; height: 38px; }
  .hero { padding-top: 44px; }
  .hero-copy {
    width: min(100%, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
  }
  .hero h1 { font-size: clamp(1.55rem, 7.15vw, 2.35rem); }
  .hero h1,
  .hero-lede,
  .hero-cta,
  .hero-trust {
    width: 100%;
    max-width: 100%;
  }
  .hero-lede { overflow-wrap: anywhere; }
  .hero .eyebrow {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    font-size: 0.64rem;
  }
  .hero .eyebrow .pip { display: none; }
  .hero h1 .hero-mobile-break,
  .hero h1 .hero-break,
  .hero h1 .grad,
  .hero h1 .grad span { display: block; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; flex: 0 0 auto; }
  .hero-trust { align-items: flex-start; }
  .hero-trust .av { flex: 0 0 auto; }
  .hero-trust .trust-copy { flex-basis: 100%; }
  .focus .card,
  .method .step,
  .soon .card,
  .contact-card { padding: 22px; }
  .chart-card { padding: 14px; }
  .chart-card .c-h { flex-wrap: wrap; }
  .peer-mini { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 62px minmax(72px, 1fr) 34px; gap: 9px; }
  .rank-row .nm { font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .win-view .win-dash { padding: 12px; }
  .win-stats { grid-template-columns: 1fr; }
  .win-stats .ws { border-left: none; border-top: 1px solid var(--line-2); }
  .win-stats .ws:first-child { border-top: none; }
  .cols { gap: 8px; }
  .cols .col .lb { font-size: 0.62rem; }
  .heat { gap: 3px; }
  .cta { padding: 28px 22px; border-radius: 20px; }
  .cta-links { align-items: stretch; }
  .flow-step { padding: 14px; border-radius: 15px; }
  .cta-proof { grid-template-columns: 1fr; }
  .cta-proof span { min-height: auto; }
  .cta .btn,
  .contact-card .btn { width: 100%; white-space: normal; min-height: 48px; height: auto; padding-block: 12px; }
  .contact-meta li { align-items: flex-start; overflow-wrap: anywhere; }
  .dropzone { align-items: flex-start; }
  .dz-text small { white-space: normal; }
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    align-items: start;
    gap: 12px;
  }
  .footer-inner > a { justify-self: start; }
  .footer-address { text-align: left; }
}

@media (max-width: 380px) {
  .wrap { padding-inline: 14px; }
  .brand span:not(.brand-mark) { display: none; }
  .brand-logo { width: 76px; height: 30px; }
  [data-theme="dark"] .brand-logo { width: 86px; height: 36px; padding: 5px 7px; }
  .hero-copy {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  #method .sec-head h2 { font-size: clamp(1.8rem, 7.8vw, 2.25rem); }
  #team .sec-head h2 { font-size: clamp(1.8rem, 7.8vw, 2.25rem); }
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.06em; }
  .hero-trust { font-size: 0.8rem; }
  .show-copy .stat-row { gap: 16px; }
  .show-copy .stat .v { font-size: 1.55rem; }
}
