/* Ridgeline Technical Group — site styles */
:root {
  --bg: #050814;
  --bg-2: #0a1022;
  --bg-3: #0f1730;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e8eef9;
  --muted: #9aa8bf;
  --dim: #8391a7;
  --blue: #3b82f6;
  --sky: #60a5fa;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --green: #34d399;
  --amber: #fbbf24;
  --grad: linear-gradient(120deg, #60a5fa 0%, #22d3ee 55%, #34d399 100%);
  --grad-btn: linear-gradient(120deg, #2563eb 0%, #0ea5e9 55%, #14b8a6 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Sora", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
.clean { list-style: none; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
p { margin: 0; }
::selection { background: rgba(34, 211, 238, 0.35); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -999px; top: 12px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 16px; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-text); cursor: pointer; white-space: nowrap;
  transition: transform 200ms var(--ease), box-shadow 300ms var(--ease), background 200ms, border-color 200ms;
}
.btn svg { width: 18px; height: 18px; transition: transform 250ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 30px -8px rgba(14, 165, 233, 0.6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(14, 165, 233, 0.75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--ghost { background: rgba(255,255,255,0.04); border-color: var(--border-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(148,163,184,.45); transform: translateY(-2px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 300ms, border-color 300ms, backdrop-filter 300ms;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(5, 8, 20, 0.72); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--border); }
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font: 600 17px/1 var(--font-display); letter-spacing: -0.01em; }
.logo svg { width: 34px; height: 34px; }
.logo small { display: block; font: 500 11px/1 var(--font-text); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; transition: color 200ms, background 200ms; }
.nav a:hover, .nav a.is-active { color: var(--text); background: rgba(255,255,255,0.06); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 128px 0 88px; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: -20%; z-index: -2; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: transform; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 48%; top: 8%; background: radial-gradient(circle, #1d4ed8 0%, transparent 65%); animation: drift1 22s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; left: 66%; top: 38%; background: radial-gradient(circle, #0891b2 0%, transparent 65%); animation: drift2 26s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 34vw; height: 34vw; left: 18%; top: 52%; background: radial-gradient(circle, #0f766e 0%, transparent 65%); opacity: .4; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-12%, 10%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-18%, -14%) scale(0.9); } }
@keyframes drift3 { to { transform: translate(20%, -10%) scale(1.2); } }
.grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__grid > *, .split > *, .tabs > * { min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); color: var(--muted); font-size: 13.5px; font-weight: 500;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } }
.hero h1 { font-size: clamp(40px, 5.4vw, 70px); margin: 22px 0 22px; letter-spacing: -0.035em; }
.hero__lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 560px; }
.hero__lead strong { color: var(--text); font-weight: 500; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 38px; color: var(--muted); font-size: 14px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* code window */
.hero__visual { position: relative; }
.window {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 48, 0.92), rgba(8, 12, 28, 0.92));
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -30px rgba(14, 165, 233, 0.45), 0 0 0 1px rgba(255,255,255,.03) inset;
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  transition: transform 800ms var(--ease);
}
.hero__visual:hover .window { transform: perspective(1400px) rotateY(-3deg) rotateX(2deg); }
.window::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(96,165,250,.6), transparent 40%, transparent 60%, rgba(45,212,191,.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.window__bar { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.window__dots { display: flex; gap: 7px; }
.window__dots i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.window__dots i:nth-child(1) { background: #f87171; } .window__dots i:nth-child(2) { background: #fbbf24; } .window__dots i:nth-child(3) { background: #34d399; }
.window__tab { font: 500 12.5px/1 var(--font-mono); color: var(--muted); padding: 7px 12px; border-radius: 8px; background: rgba(255,255,255,.05); }
.window__tab b { color: var(--cyan); font-weight: 500; margin-right: 6px; }
.code { margin: 0; padding: 22px 0 26px; font: 400 13.5px/1.85 var(--font-mono); color: #cbd5e1; min-height: 318px; counter-reset: ln; white-space: pre; overflow: hidden; }
.code .ln { display: block; padding: 0 22px 0 0; }
.code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 46px; padding-right: 18px; text-align: right; color: #3b4a66; }
.code .ln.is-new { background: linear-gradient(90deg, rgba(52,211,153,.14), transparent 80%); box-shadow: inset 2px 0 0 var(--green); }
.tok-k { color: #c4b5fd; } .tok-f { color: #67e8f9; } .tok-t { color: #93c5fd; } .tok-s { color: #fcd34d; } .tok-c { color: #64748b; font-style: italic; } .tok-a { color: #f9a8d4; }
.caret { display: inline-block; width: 8px; height: 17px; vertical-align: -3px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chip-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 14px;
  background: rgba(10, 16, 34, 0.85); border: 1px solid var(--border-strong); backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.8); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip-float .ok { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(52,211,153,.16); color: var(--green); }
.chip-float .ok svg { width: 15px; height: 15px; }
.chip-float small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.chip-float--1 { top: -22px; right: -14px; animation-delay: -1s; }
.chip-float--2 { bottom: -26px; left: -30px; animation-delay: -3s; }
.chip-float--3 { top: 46%; right: -44px; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(15, 23, 48, 0.55) 18%, rgba(15, 23, 48, 0.55) 82%, transparent); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--grad); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 48px); margin-top: 16px; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--grad); }

/* cards with spotlight */
.card {
  position: relative; border-radius: var(--radius); padding: 30px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  transition: transform 400ms var(--ease), border-color 300ms, box-shadow 400ms var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, 0.13), transparent 45%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(96,165,250,.35); box-shadow: 0 30px 60px -30px rgba(14,165,233,.45); }
.card:hover::before { opacity: 1; }
.icon-box {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; color: #fff;
  background: linear-gradient(140deg, rgba(37,99,235,.9), rgba(14,165,233,.85) 55%, rgba(20,184,166,.85));
  box-shadow: 0 12px 30px -10px rgba(14,165,233,.7), inset 0 1px 0 rgba(255,255,255,.3);
}
.icon-box svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font: 500 12.5px/1 var(--font-text); padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: #c7d2e3; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* integrations hub */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.checklist { display: grid; gap: 14px; margin-top: 28px; }
.checklist li { display: flex; gap: 12px; color: var(--muted); }
.checklist li strong { color: var(--text); font-weight: 600; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--cyan); margin-top: 2px; }
.hub { position: relative; aspect-ratio: 1; max-width: 560px; margin-inline: auto; width: 100%; }
.hub svg.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub__ring { fill: none; stroke: rgba(148,163,184,.12); stroke-width: 1; }
.hub__ring--spin { stroke-dasharray: 2 10; transform-origin: 300px 300px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hub__line { stroke: rgba(96,165,250,.28); stroke-width: 1.5; fill: none; }
.hub__flow { stroke: url(#flowGrad); stroke-width: 2.2; fill: none; stroke-dasharray: 18 120; animation: flow 3.2s linear infinite; stroke-linecap: round; }
@keyframes flow { from { stroke-dashoffset: 138; } to { stroke-dashoffset: 0; } }
.hub__core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 14px;
  background: radial-gradient(circle at 30% 25%, rgba(59,130,246,.35), rgba(8,12,28,.95) 70%);
  border: 1px solid rgba(96,165,250,.45);
  box-shadow: 0 0 60px -6px rgba(34,211,238,.45), inset 0 0 30px rgba(34,211,238,.12);
}
.hub__core::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(34,211,238,.25); animation: pulse-ring 3.2s var(--ease) infinite; }
@keyframes pulse-ring { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.hub__core img { width: 34px; height: 34px; margin: 0 auto 8px; }
.hub__core b { display: block; font: 600 15px/1.25 var(--font-display); }
.hub__core small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.hub__node {
  position: absolute; transform: translate(-50%, -50%); display: flex; width: max-content; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 12px; font-size: 13.5px; font-weight: 500; white-space: nowrap;
  background: rgba(10,16,34,.9); border: 1px solid var(--border-strong); box-shadow: 0 12px 30px -16px rgba(0,0,0,.9);
  transition: border-color 300ms, transform 300ms var(--ease), box-shadow 300ms;
}
.hub__node.is-lit { border-color: rgba(34,211,238,.7); box-shadow: 0 0 24px -4px rgba(34,211,238,.6); }
.hub__node img, .hub__node svg { width: 18px; height: 18px; flex: none; }
.hub__node svg { fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* why / bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento .card { grid-column: span 2; }
.bento .card--wide { grid-column: span 4; }
.bento .card--feature { display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; background: radial-gradient(120% 140% at 100% 0%, rgba(37,99,235,.35), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.card .quote-big { color: var(--text); font: 600 clamp(24px, 2.4vw, 32px)/1.25 var(--font-display); letter-spacing: -0.02em; }
.quote-big + p { margin-top: 16px; }

/* experience */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exp-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font-text); padding: 7px 10px; border-radius: 999px; }
.badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge--place { background: rgba(34,211,238,.1); color: #67e8f9; border: 1px solid rgba(34,211,238,.25); }
.badge--ind { background: rgba(52,211,153,.1); color: #6ee7b7; border: 1px solid rgba(52,211,153,.25); }
.exp-card h3 { font-size: 19px; }
.note { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--muted); font-size: 14.5px; }
.note svg { width: 18px; height: 18px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* capabilities tabs */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.tablist { display: grid; gap: 8px; }
.tab-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 14px; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--muted); font: 600 15.5px/1.3 var(--font-display);
  transition: background 250ms, color 250ms, border-color 250ms;
}
.tab-btn .num { font: 500 12px/1 var(--font-mono); color: var(--dim); transition: color 250ms; }
.tab-btn:hover { color: var(--text); background: rgba(255,255,255,.03); }
.tab-btn[aria-selected="true"] { color: var(--text); background: rgba(255,255,255,.05); border-color: var(--border-strong); }
.tab-btn[aria-selected="true"] .num { color: var(--cyan); }
.tab-panel { padding: 36px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); border: 1px solid var(--border); min-height: 360px; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-in { animation: panel-in 450ms var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tab-panel h3 { font-size: 24px; margin-bottom: 8px; }
.tab-panel > p { color: var(--muted); margin-bottom: 24px; }
.cap-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cap-list li { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); font-size: 15px; color: #cdd6e4; }
.cap-list svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tech-icons { display: flex; gap: 10px; margin-top: 26px; }
.tech-icons span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #f1f5f9; }
.tech-icons img { width: 26px; height: 26px; }

/* process timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--border); }
.timeline__bar { position: absolute; top: 27px; left: 28px; height: 2px; width: 0; background: var(--grad); box-shadow: 0 0 16px rgba(34,211,238,.7); transition: width 1.8s var(--ease); }
.timeline.is-in .timeline__bar { width: calc(100% - 56px); }
.step { position: relative; }
.step__dot { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--border-strong); font: 600 16px/1 var(--font-mono); color: var(--muted); transition: all 500ms var(--ease); }
.timeline.is-in .step__dot { border-color: rgba(34,211,238,.7); color: var(--text); box-shadow: 0 0 0 6px rgba(34,211,238,.08), 0 0 24px -4px rgba(34,211,238,.6); }
.timeline.is-in .step:nth-child(3) .step__dot { transition-delay: .2s; } .timeline.is-in .step:nth-child(4) .step__dot { transition-delay: .5s; }
.timeline.is-in .step:nth-child(5) .step__dot { transition-delay: .8s; } .timeline.is-in .step:nth-child(6) .step__dot { transition-delay: 1.1s; } .timeline.is-in .step:nth-child(7) .step__dot { transition-delay: 1.4s; }
.step__time { display: inline-block; margin: 22px 0 10px; font: 500 12.5px/1 var(--font-mono); color: var(--cyan); padding: 6px 9px; border-radius: 7px; background: rgba(34,211,238,.08); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* contact */
.contact { position: relative; border-radius: 28px; padding: 2px; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; inset: -60%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 55%, #2563eb 65%, #22d3ee 75%, #34d399 82%, transparent 92%); animation: spin 8s linear infinite; }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; padding: 56px; border-radius: 26px; background: radial-gradient(90% 120% at 0% 0%, rgba(37,99,235,.22), transparent 55%), #070b1a; }
.contact h2 { font-size: clamp(30px, 3.2vw, 44px); margin: 16px 0 18px; letter-spacing: -0.03em; }
.contact .lead { color: var(--muted); font-size: 17px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; color: #c7d2e3; }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; font: 400 16px/1.4 var(--font-text); color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); transition: border-color 200ms, box-shadow 200ms, background 200ms;
}
.field select { 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='%239aa8bf' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field select option { background: #0a1022; }
.field textarea { height: 110px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(34,211,238,.15); }
.field__error { color: #fca5a5; font-size: 13px; }
.field [aria-invalid="true"] { border-color: #f87171; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form__status { color: var(--muted); font-size: 14px; }
.contact-points { display: grid; gap: 14px; margin-top: 30px; }
.contact-points li { display: flex; gap: 12px; align-items: center; color: #c7d2e3; }
.contact-points .ib { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--border); }
.contact-points svg { width: 18px; height: 18px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* footer */
.footer { padding: 72px 0 40px; border-top: 1px solid var(--border); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer p { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 340px; }
.footer h2.footer__h { font: 600 13px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer ul a { display: inline-block; color: #c7d2e3; padding: 5px 0; font-size: 15px; transition: color 200ms; }
.footer ul a:hover { color: var(--cyan); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--dim); font-size: 13.5px; }
.footer__legal a:hover { color: var(--text); }

/* reveal on scroll */
.js-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* hero entrance */
.hero [data-enter] { opacity: 0; transform: translateY(18px); animation: enter 900ms var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { max-width: 620px; }
  .services-grid, .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .bento .card, .bento .card--wide { grid-column: span 3; }
  .tabs { grid-template-columns: 1fr; }
  .tablist { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before, .timeline__bar { left: 27px; top: 28px; bottom: 28px; right: auto; width: 2px; height: auto; }
  .timeline__bar { height: 0; transition: height 1.8s var(--ease); }
  .timeline.is-in .timeline__bar { width: 2px; height: calc(100% - 56px); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step__time { margin: 4px 0 8px; justify-self: start; }
  .step > :not(.step__dot) { grid-column: 2; }
  .step__dot { grid-row: 1 / span 3; }
  .contact__inner { grid-template-columns: 1fr; padding: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav, .header .btn--sm { display: none; }
  .menu-btn { display: grid; }
  .header.is-open { background: #050814; backdrop-filter: none; }
  .header.is-open .nav { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; height: calc(100svh - 72px); padding: 12px 24px 28px; background: #050814; animation: panel-in 300ms var(--ease); }
  .header.is-open .menu-btn .bars { d: path('M6 6l12 12M18 6 6 18'); }
  body.menu-open { overflow: hidden; }
  .header.is-open .nav a { padding: 16px 8px; font-size: 18px; border-bottom: 1px solid var(--border); border-radius: 0; }
}
@media (max-width: 680px) {
  .section { padding: 88px 0; }
  .hero { padding: 108px 0 64px; }
  .services-grid, .exp-grid, .cap-list, .form { grid-template-columns: 1fr; }
  .bento .card, .bento .card--wide { grid-column: 1 / -1; }
  .tablist { grid-template-columns: 1fr; }
  .tab-panel { padding: 26px; }
  .window { transform: none; }
  .code { font-size: 11.5px; min-height: 270px; }
  .code .ln::before { width: 34px; padding-right: 12px; }
  .chip-float--2 { left: -6px; bottom: -22px; }
  .chip-float--1 { right: -4px; }
  .chip-float--3 { display: none; }
  .hub__node { font-size: 11.5px; padding: 7px 9px; gap: 6px; }
  .hub__node img, .hub__node svg { width: 14px; height: 14px; }
  .hub__core b { font-size: 12px; }
  .hub__core img { width: 24px; height: 24px; }
  .hub__core small { display: none; }
  .contact__inner { padding: 28px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal], .hero [data-enter] { opacity: 1; transform: none; }
}

/* =========================================================
   Scroll story (v4)
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.has-lenis { scroll-behavior: auto; }

#bg3d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
#bg3d.is-ready { opacity: 1; }
.hero { background: transparent; }
.aurora { opacity: .75; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(34,211,238,.8); }

/* manifesto */
.manifesto { min-height: 100vh; display: flex; align-items: center; padding: 120px 0; }
.manifesto .eyebrow { margin-bottom: 28px; }
.manifesto__text { font: 600 clamp(34px, 5.4vw, 76px)/1.08 var(--font-display); letter-spacing: -0.035em; max-width: 1100px; }
.manifesto__text em { font-style: normal; }
.manifesto__text .w { opacity: .14; transition: opacity .2s linear; }
.manifesto__text .w.is-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.no-motion .manifesto__text .w { opacity: 1; }

/* marquee */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--border); background: rgba(10,16,34,.55); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; will-change: transform; }
.marquee__track span { font: 600 clamp(20px, 2.4vw, 32px)/1 var(--font-display); color: rgba(232,238,249,.28); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); opacity: .6; }

/* horizontal services */
.hs { position: relative; }
.hs__pin { height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hs__track { display: flex; gap: 24px; align-items: stretch; padding-left: max(24px, calc((100vw - var(--wrap)) / 2)); padding-right: 12vw; will-change: transform; }
.hs__intro { flex: 0 0 min(460px, 80vw); display: flex; flex-direction: column; justify-content: center; padding-right: 32px; }
.hs__intro h2 { font-size: clamp(32px, 3.6vw, 50px); margin: 16px 0 18px; letter-spacing: -0.03em; }
.hs__intro p { color: var(--muted); font-size: 17px; }
.hs__hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; color: var(--cyan); font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.hs__hint svg { width: 18px; height: 18px; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.hs__card { flex: 0 0 400px; min-height: 460px; display: flex; flex-direction: column; padding: 36px; }
.hs__card .icon-box { width: 60px; height: 60px; border-radius: 16px; }
.hs__card h3 { font-size: 24px; margin-top: auto; padding-top: 40px; }
.hs__card p { font-size: 16px; }
.hs__num { position: absolute; top: 28px; right: 32px; font: 600 64px/1 var(--font-display); color: rgba(148,163,184,.08); letter-spacing: -0.04em; }

/* stacking experience cards */
.stack { position: relative; display: grid; gap: 28px; padding-bottom: 40px; }
.stack-card {
  --dim: 0;
  position: sticky; top: calc(110px + var(--i) * 16px);
  display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center;
  min-height: 340px; padding: 44px 48px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(37,99,235,.28), transparent 50%), linear-gradient(180deg, #0f1730, #0a1022);
  border: 1px solid var(--border-strong);
  box-shadow: 0 -20px 60px -30px rgba(0,0,0,.9), 0 30px 80px -40px rgba(14,165,233,.35);
  transform-origin: 50% 0;
}
.stack-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(96,165,250,.5), transparent 35%, transparent 70%, rgba(45,212,191,.4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.stack-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #050814; opacity: var(--dim, 0); pointer-events: none; z-index: 2; }
.stack-card__num { display: block; font: 500 14px/1 var(--font-mono); color: var(--cyan); margin-bottom: 18px; }
.stack-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.stack-card h3 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 12px; }
.stack-card p { color: var(--muted); font-size: 17px; max-width: 520px; }
.stack-card__art { justify-self: end; width: 200px; aspect-ratio: 1; border-radius: 32px; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, rgba(59,130,246,.5), rgba(14,165,233,.15) 55%, transparent 75%); border: 1px solid rgba(96,165,250,.3); box-shadow: inset 0 0 40px rgba(34,211,238,.15), 0 0 60px -10px rgba(34,211,238,.35); }
.stack-card__art svg { width: 84px; height: 84px; fill: none; stroke: #bae6fd; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 12px rgba(34,211,238,.6)); }

/* integrations: hidden until the scroll builds them */
.js-motion .hub__node { opacity: 0; }
.js-motion .hub__flow { opacity: 0; }
.hub__line { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* process: steps light in order */
.process .step__dot { transition: all 400ms var(--ease); }
.process .step.is-on .step__dot { border-color: rgba(34,211,238,.7); color: var(--text); box-shadow: 0 0 0 6px rgba(34,211,238,.08), 0 0 24px -4px rgba(34,211,238,.6); }
.process .step { opacity: .45; transition: opacity 400ms var(--ease); }
.process .step.is-on { opacity: 1; }
.js-motion .timeline__bar { transition: none; }
.no-motion .process .step { opacity: 1; }

@media (max-width: 899px) {
  .hs__pin { height: auto; display: block; overflow: visible; padding: 88px 0; }
  .hs__track { flex-direction: column; padding: 0; width: min(100% - 48px, var(--wrap)); margin-inline: auto; transform: none !important; }
  .hs__intro { flex: none; padding: 0 0 12px; }
  .hs__hint { display: none; }
  .hs__card { flex: none; min-height: 0; }
  .hs__card h3 { margin-top: 0; padding-top: 0; }
  .stack-card { grid-template-columns: 1fr; padding: 32px 26px; min-height: 0; top: calc(90px + var(--i) * 10px); }
  .stack-card__art { display: none; }
  .manifesto { min-height: auto; padding: 100px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .manifesto__text .w { opacity: 1; }
  .js-motion .hub__node, .js-motion .hub__flow { opacity: 1; }
  .stack-card { position: relative; top: 0; }
}

/* audit fixes */
.hub__core-icon { width: 34px; height: 34px; margin: 0 auto 8px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(34,211,238,.6)); }
.form__note { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; }
.form__note a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) { .hub__core-icon { width: 24px; height: 24px; } }
