/* ==========================================================================
   ErTab Solutions — v2 design system
   Warm-dark by default, light theme via [data-theme="light"].
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg: #0b0a09;
  --bg-2: #100e0c;
  --surface: #161412;
  --surface-2: #1e1b18;
  --line: rgba(255, 238, 220, .09);
  --line-2: rgba(255, 238, 220, .17);
  --text: #f5efe8;
  --muted: #d2cbc2;
  --faint: #a39c93;
  --accent: #e58a3a;
  --accent-2: #ffbd7a;
  --accent-text: #f2a562;
  --accent-ink: #1b0f04;
  --accent-soft: rgba(229, 138, 58, .13);
  --cool: #6ee7cf;
  --violet: #a597ff;
  --glass: rgba(24, 21, 18, .62);
  --logo-chip: #f7f3ee;
  --shadow: 0 30px 80px -24px rgba(0, 0, 0, .7);
  --shadow-sm: 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f8f9fb;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --line: rgba(15, 23, 42, .08);
  --line-2: rgba(15, 23, 42, .16);
  --text: #0a0d12;
  --muted: #2e3440;
  --faint: #545c69;
  --accent: #c2621a;
  --accent-2: #e07b2c;
  --accent-text: #a8520f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(224, 123, 44, .1);
  --cool: #0c9b82;
  --violet: #5b4bdb;
  --glass: rgba(255, 255, 255, .82);
  --logo-chip: #ffffff;
  --shadow: 0 30px 70px -28px rgba(15, 23, 42, .18);
  --shadow-sm: 0 12px 30px -14px rgba(15, 23, 42, .16);
  color-scheme: light;
}
[data-theme="light"] body::after { display: none; }
[data-theme="light"] .hero-aurora { opacity: .55; }
[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }

:root {
  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font: 450 16px/1.6 var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 26px; height: 26px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

/* Grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 150; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.display {
  font-size: clamp(2.7rem, 7.4vw, 6.2rem); line-height: .96; letter-spacing: -.045em; font-weight: 600;
}
.display .serif { font-size: 1.08em; letter-spacing: -.02em; }
.h2 { font-size: clamp(2.1rem, 4.8vw, 3.9rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.h2 .serif, .h3 .serif { color: var(--accent-text); font-size: 1.06em; }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); line-height: 1.65; max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.grad-text { background: linear-gradient(100deg, var(--accent-2), var(--accent) 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 780px; }
.section-head.split { max-width: none; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 32px; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --bh: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 22px; border-radius: 999px; font-weight: 550; font-size: 15px; letter-spacing: -.01em;
  white-space: nowrap; transition: transform .35s var(--ease), background-color .25s, border-color .25s, box-shadow .35s var(--ease), color .25s;
  isolation: isolate;
}
.btn .i { transition: transform .35s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-ghost { border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 50%, transparent); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { --bh: 38px; padding: 0 16px; font-size: 14px; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .25s, gap .3s var(--ease); }
.link-arrow:hover { border-color: var(--accent); gap: 12px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Cards / surfaces ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.spot { --mx: 50%; --my: 50%; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--accent-soft), transparent 60%);
}
.spot:hover::before { opacity: 1; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--violet)); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); display: flex; align-items: center; transition: background-color .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; font-size: 17px; }
.brand-mark { width: 34px; height: 26px; color: var(--accent); }
.brand b { font-family: var(--font-serif); font-weight: 400; font-size: 22px; letter-spacing: -.01em; }
.brand span { color: var(--muted); font-weight: 450; }
.brand-logo { height: 40px; width: auto; }
.brand-logo.on-dark, [data-theme="dark"] .brand-logo.on-light { display: none; }
[data-theme="dark"] .brand-logo.on-dark { display: block; }
.footer-logo { width: 170px; height: auto; }
@media (max-width: 560px) { .nav .brand-logo { height: 32px; } }
.nav-links { display: flex; gap: 4px; margin-inline: auto; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.nav-links a { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="true"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s, background-color .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.kbd-btn { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; transition: color .2s, border-color .2s; }
.kbd-btn:hover { color: var(--text); border-color: var(--line-2); }
kbd { font: 500 11px/1 var(--font-mono); padding: 5px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); }
.theme-toggle .i-moon { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-moon { display: block; }
.menu-btn { display: none; }

.mobile-menu { position: fixed; inset: var(--nav-h) 0 0; z-index: 99; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(20px); padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; overflow-y: auto; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a:not(.btn) { font-size: 28px; letter-spacing: -.03em; font-weight: 550; padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .btn { margin-top: 20px; }

@media (max-width: 1280px) { .kbd-btn { display: none; } }
@media (max-width: 1180px) {
  .nav-links, .kbd-btn { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: grid; }
  .nav-actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 90px)); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .85; }
.hero-aurora { position: absolute; inset: -20% -10% auto; height: 110%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 38% at 78% 30%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
    radial-gradient(30% 30% at 12% 70%, color-mix(in srgb, var(--violet) 20%, transparent), transparent 70%),
    radial-gradient(26% 26% at 55% 90%, color-mix(in srgb, var(--cool) 12%, transparent), transparent 70%);
  filter: blur(20px); animation: aurora 18s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate3d(-3%, 4%, 0) scale(1.08) rotate(3deg); } }
.hero-grid-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%); opacity: .55; }

.hero .display { font-size: clamp(2.6rem, 5.4vw, 5rem); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 60%, transparent); backdrop-filter: blur(10px); font-size: 14px; color: var(--muted); transition: border-color .25s, color .25s; }
.pill:hover { border-color: var(--accent); color: var(--text); }
.pill-tag { font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.typeline { font: 500 13px/1.4 var(--font-mono); color: var(--muted); min-height: 1.4em; }
.typeline b { color: var(--text); font-weight: 500; }
.caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -2px; background: var(--accent); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--font-mono); color: var(--accent-ink); border: 2px solid var(--bg); margin-left: -9px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: linear-gradient(135deg, var(--cool), #2aa38c); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, var(--violet), #6d5ce8); color: #fff; }
.avatars span:nth-child(4) { background: var(--surface-2); color: var(--text); }
.hero-word { display: inline-block; }

/* Ops console */
.hero-visual { position: relative; perspective: 1400px; }
.console { position: relative; border-radius: var(--r-xl); padding: 18px; box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.console::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 60%, transparent), transparent 35%, transparent 65%, color-mix(in srgb, var(--violet) 45%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.console-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.dots i:nth-child(1) { background: #ff6159; } .dots i:nth-child(2) { background: #ffbd2e; } .dots i:nth-child(3) { background: #29c840; }
.console-title { font: 500 12px/1 var(--font-mono); color: var(--muted); }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--font-mono); color: var(--cool); padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--cool) 12%, transparent); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 0; }
.kpi { padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--surface-2) 70%, transparent); border: 1px solid var(--line); min-width: 0; }
.kpi small { display: block; font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.kpi b { display: block; margin-top: 8px; font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font: 500 11px/1 var(--font-mono); color: var(--cool); }
.chart-box { position: relative; border-radius: var(--r); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 45%, transparent); padding: 14px 14px 6px; }
.chart-top { display: flex; justify-content: space-between; align-items: center; font: 500 11px/1 var(--font-mono); color: var(--faint); letter-spacing: .04em; }
.chart-top span:last-child { color: var(--muted); }
.spark { width: 100%; height: auto; aspect-ratio: 400 / 120; display: block; margin-top: 8px; overflow: visible; }
.is-hidden { display: none !important; }
.split-line { padding-right: .08em; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark-area { fill: url(#sparkFill); }
.spark-dot { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.console-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 10px; }
.mini { border-radius: var(--r); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 45%, transparent); padding: 12px 14px; min-width: 0; }
.mini-label { font: 500 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; display: flex; justify-content: space-between; }
.heat { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.heat i { --v: .3; aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--accent) calc(var(--v) * 100%), var(--surface-2)); transition: background-color 1.2s var(--ease); }
.feed { display: grid; gap: 7px; font-size: 12.5px; line-height: 1.35; }
.feed li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); animation: feedIn .6s var(--ease) both; }
.feed li b { color: var(--text); font-weight: 550; }
.feed .i { width: 14px; height: 14px; color: var(--cool); margin-top: 2px; }
@keyframes feedIn { from { opacity: 0; transform: translateY(6px); } }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; font-size: 13px; box-shadow: var(--shadow-sm); white-space: nowrap; animation: bob 7s ease-in-out infinite; }
.float-chip .i { color: var(--accent); }
.float-chip.a { top: -18px; left: -26px; }
.float-chip.b { bottom: -20px; right: -14px; animation-delay: -3.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font: 500 10px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--faint), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { to { top: 100%; } }

@media (max-width: 1020px) {
  .hero { min-height: auto; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .kpi { padding: 10px; }
  .kpi small { font-size: 9px; }
  .console-row { grid-template-columns: 1fr; }
  .heat { grid-template-columns: repeat(12, 1fr); gap: 3px; }
  .float-chip.a { left: 8px; top: -22px; }
  .float-chip.b { right: 8px; }
  .console { padding: 12px; }
}

/* ---------- Logos marquee ---------- */
.logos { padding-block: 34px 10px; border-block: 1px solid var(--line); background: var(--bg-2); }
.logos-label { text-align: center; font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding-bottom: 24px; }
.marquee-track { display: flex; gap: 14px; padding-right: 14px; flex: none; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.logo-chip { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px 0 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; font-size: 14px; color: var(--muted); transition: border-color .25s, color .25s; }
.logo-chip:hover { border-color: var(--line-2); color: var(--text); }
.logo-chip span { width: 48px; height: 48px; border-radius: 11px; background: var(--logo-chip); border: 1px solid var(--line); display: block; padding: 4px; flex: none; overflow: hidden; }
/* Fill the tile and letterbox, so tall (UNDP, GNCL) and wide (Amba) marks all stay inside it. */
.logo-chip img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: clamp(60px, 8vw, 100px); }
.stat { background: var(--bg); padding: clamp(22px, 3vw, 36px); display: grid; gap: 6px; position: relative; }
.stat-num { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1; font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat-num sup { font-size: .45em; vertical-align: top; position: relative; top: .25em; color: var(--accent-text); margin-left: 2px; }
.stat-label { font-weight: 550; margin-top: 8px; }
.stat-note { font-size: 13.5px; color: var(--faint); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Services explorer ---------- */
.svc { display: grid; grid-template-columns: minmax(260px, .85fr) 1.15fr; gap: 20px; align-items: start; }
.svc-list { display: grid; gap: 4px; position: sticky; top: calc(var(--nav-h) + 24px); }
.svc-tab { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--r); color: var(--muted); border: 1px solid transparent; transition: color .25s, background-color .25s, border-color .25s; }
.svc-tab .n { font: 500 12px/1 var(--font-mono); color: var(--faint); }
.svc-tab .t { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.svc-tab .i { opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .35s var(--ease); color: var(--accent); }
.svc-tab:hover { color: var(--text); background: var(--surface); }
.svc-tab[aria-selected="true"] { color: var(--text); background: var(--surface); border-color: var(--line); }
.svc-tab[aria-selected="true"] .n { color: var(--accent-text); }
.svc-tab[aria-selected="true"] .i { opacity: 1; transform: none; }
.svc-panel { padding: clamp(24px, 4vw, 44px); border-radius: var(--r-xl); overflow: hidden; min-height: 100%; }
.svc-panel.in { animation: panelIn .55s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.svc-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); margin-bottom: 28px; }
.svc-icon .i { width: 30px; height: 30px; stroke-width: 1.5; }
.svc-panel .h3 { margin-bottom: 14px; }
.svc-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.svc-cols h4 { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .i { width: 18px; height: 18px; color: var(--cool); margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-panel .btn { margin-top: 32px; }
.svc-deco { position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events: none; }
@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; }
  .svc-list { position: relative; top: 0; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; }
  .svc-list::-webkit-scrollbar { display: none; }
  .svc-tab { width: auto; flex: none; grid-template-columns: auto auto; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; scroll-snap-align: start; }
  .svc-tab .t { font-size: 14.5px; white-space: nowrap; }
  .svc-tab > .i { display: none; }
  .svc-cols { grid-template-columns: 1fr; }
}

/* ---------- AI lab ---------- */
.ai { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.ai::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 85% 20%, color-mix(in srgb, var(--violet) 12%, transparent), transparent 70%); pointer-events: none; }
.ai-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; position: relative; }
.pillars { display: grid; gap: 12px; margin-top: 36px; }
.pillar { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: transform .35s var(--ease), border-color .25s; }
.pillar:hover { transform: translateX(6px); border-color: var(--line-2); }
.pillar-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pillar h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.pillar p { font-size: 14.5px; color: var(--muted); }

.chat { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 560px; max-height: 80vh; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.bot-av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); }
.bot-av svg { width: 22px; height: 18px; }
.chat-head b { display: block; font-size: 15px; font-weight: 600; }
.chat-head small { font: 500 11px/1 var(--font-mono); color: var(--cool); display: inline-flex; align-items: center; gap: 6px; }
.chat-head .chip { margin-left: auto; font: 500 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; animation: feedIn .4s var(--ease) both; white-space: pre-line; }
.msg.bot { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; align-self: flex-end; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-suggest { display: flex; gap: 8px; overflow-x: auto; padding: 0 18px 12px; scrollbar-width: none; }
.chat-suggest::-webkit-scrollbar { display: none; }
.chat-suggest button { flex: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); transition: color .2s, border-color .2s, background-color .2s; }
.chat-suggest button:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); outline: none; transition: border-color .2s; }
.chat-form input:focus { border-color: var(--accent); }
.chat-form button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex: none; }
@media (max-width: 900px) { .ai-layout { grid-template-columns: 1fr; } .chat { height: 520px; } }

/* ---------- Wellora ---------- */
.wellora-card { position: relative; border-radius: var(--r-xl); padding: clamp(24px, 5vw, 64px); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); }
.wellora-card::before { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--cool) 18%, transparent), transparent 65%); pointer-events: none; }
.product-badge { display: inline-flex; align-items: center; gap: 10px; }
.product-badge span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--cool) 16%, transparent); color: var(--cool); }
.wellora-name { font-family: var(--font-serif); font-size: clamp(3.4rem, 8vw, 6rem); line-height: .9; letter-spacing: -.02em; margin: 20px 0 10px; }
.wellora-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 30px 0 34px; }
.wellora-features li { display: flex; gap: 10px; font-size: 15px; }
.wellora-features .i { color: var(--cool); width: 18px; height: 18px; margin-top: 3px; }
.score { position: relative; padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg); display: grid; gap: 22px; }
.score-top { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.ring { position: relative; width: 148px; height: 148px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring .track { stroke: var(--surface-2); }
.ring .bar { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.ring-val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-val b { font-size: 42px; font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-val small { font: 500 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.score-band { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.score-rec { font-size: 14px; color: var(--muted); margin-top: 6px; }
.sliders { display: grid; gap: 14px; }
.slider label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.slider label span:last-child { font-family: var(--font-mono); color: var(--muted); font-size: 13px; }
input[type="range"] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--cool) var(--p), var(--surface-2) var(--p)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--text); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2), 0 4px 10px rgba(0,0,0,.3); cursor: grab; transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 4px solid var(--bg); cursor: grab; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); cursor: grabbing; }
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
@media (max-width: 900px) { .wellora-card { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .wellora-features { grid-template-columns: 1fr; } .score-top { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* Pulse products */
.pulse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.product-card { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-xl); display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.pulse-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pulse-top .chips { justify-content: flex-end; }
.pulse-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.product-card.workplace .pulse-ic { background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--violet); }
.pulse-name { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.pulse-index { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-top: 12px; }
.pulse-tagline { font-size: 18px; font-weight: 550; letter-spacing: -.015em; line-height: 1.4; }
.pulse-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pulse-metrics div { background: var(--surface); padding: 14px 16px; }
.pulse-metrics b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.pulse-metrics small { font-size: 12.5px; color: var(--faint); }
.product-card .checks { font-size: 15px; }
.pulse-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
@media (max-width: 900px) { .pulse-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .pulse-top { flex-direction: column; } .pulse-top .chips { justify-content: flex-start; } .pulse-metrics { grid-template-columns: 1fr; } }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; transition: color .2s, border-color .2s, background-color .2s; }
.filter small { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.filter:hover { color: var(--text); border-color: var(--line-2); }
.filter[aria-pressed="true"] { color: var(--accent-ink); background: var(--text); border-color: var(--text); }
.filter[aria-pressed="true"] small { color: inherit; opacity: .6; }
[data-theme="light"] .filter[aria-pressed="true"] { color: var(--bg); }

.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.work-card { grid-column: span 2; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; text-align: left; width: 100%; transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease), opacity .4s; }
.work-card.feature { grid-column: span 3; }
.work-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.work-card.is-hidden { display: none; }
.work-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease), object-position 4s ease; }
.work-card:hover .work-shot img { transform: scale(1.04); object-position: bottom center; }
.work-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg) 55%, transparent)); }
.work-open { position: absolute; right: 14px; top: 14px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line-2); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .4s var(--ease); }
.work-card:hover .work-open, .work-card:focus-visible .work-open { opacity: 1; transform: none; }
.work-body { padding: 20px 22px 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.work-body h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.work-body p { font-size: 14px; color: var(--muted); }
.work-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.work-meta b { color: var(--text); font-weight: 600; }
@media (max-width: 960px) { .work-grid { grid-template-columns: repeat(2, 1fr); } .work-card, .work-card.feature { grid-column: span 1; } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile apps ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.app-card { display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; }
.app-stage {
  position: relative; height: 320px; overflow: hidden; display: grid; place-items: end center; padding-inline: 24px;
  background: radial-gradient(120% 90% at 50% 100%, var(--accent-soft), transparent 62%), var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.phone {
  position: relative; width: 170px; aspect-ratio: 9 / 19; padding: 7px; border-radius: 28px;
  background: #0b0d12; transform: translateY(46px);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .5), inset 0 0 0 1.5px rgba(255, 255, 255, .14);
  transition: transform .6s var(--ease);
}
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; z-index: 2; width: 46px; height: 12px; border-radius: 99px; transform: translateX(-50%); background: #0b0d12; }
.app-card:hover .phone { transform: translateY(22px); }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 22px; background: #151821; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .7s ease; }
.phone-screen img.on { opacity: 1; }
.shot-dots { position: absolute; top: 14px; right: 14px; z-index: 1; display: flex; gap: 5px; }
.shot-dots button { width: 7px; height: 7px; border-radius: 99px; background: var(--line-2); transition: width .3s var(--ease), background-color .3s; }
.shot-dots button[aria-current="true"] { width: 18px; background: var(--accent); }
.app-body { flex: 1; display: grid; align-content: start; gap: 12px; padding: 22px 22px 24px; }
.app-head { display: flex; align-items: center; gap: 12px; }
.app-icon { width: 52px; height: 52px; flex: none; border-radius: 14px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); background: var(--surface-2); }
.app-head h3 { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.app-head small { display: block; margin-top: 2px; font-size: 13px; color: var(--faint); }
.app-body p { font-size: 14.5px; color: var(--muted); }
.app-body .checks { gap: 7px; font-size: 14px; }
.app-body .checks .i { width: 16px; height: 16px; margin-top: 3px; }
.store-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px 0 12px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; line-height: 1.1;
  transition: transform .3s var(--ease), opacity .2s;
}
.store-btn:hover { transform: translateY(-2px); opacity: .92; }
.store-btn .i { width: 20px; height: 20px; }
.store-btn small { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; opacity: .72; }
@media (max-width: 1100px) { .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .apps-grid { grid-template-columns: 1fr; } .app-stage { height: 300px; } }

/* Case dialog */
dialog { color: var(--text); }
.case-dialog { width: min(1080px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.case-dialog[open] { animation: dlgIn .45s var(--ease); }
.case-dialog::backdrop { background: rgba(5, 4, 3, .6); backdrop-filter: blur(6px); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.case-scroll { max-height: calc(100svh - 26px); overflow-y: auto; }
.case-close { position: absolute; right: 14px; top: 14px; z-index: 2; background: var(--glass); backdrop-filter: blur(10px); }
.case-shot { aspect-ratio: 16 / 8; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.case-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-body { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 4vw, 56px); padding: clamp(22px, 4vw, 44px); }
.case-body .h3 { margin: 12px 0 12px; }
.case-body ul.checks { margin-top: 24px; }
.case-facts { display: grid; gap: 0; align-content: start; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.case-facts div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.case-facts div:last-child { border-bottom: 0; }
.case-facts dt { font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.case-facts dd { margin: 0; font-weight: 500; }
.case-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 760px) { .case-body { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); }
.process-head { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; display: grid; gap: 18px; }
.steps { position: relative; display: grid; gap: 16px; padding-left: 36px; }
.steps-rail { position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-rail i { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--p, 0)); background: linear-gradient(var(--accent), var(--violet)); }
.step { position: relative; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); }
.step::after { content: ""; position: absolute; left: -31px; top: 34px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transition: border-color .4s, background-color .4s, box-shadow .4s; }
.step.active::after { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.step-top .n { font: 500 13px/1 var(--font-mono); color: var(--accent-text); }
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; margin-bottom: 8px; }
.step p { color: var(--muted); }
.step .chips { margin-top: 18px; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr; } .process-head { position: static; } }

/* ---------- Testimonials ---------- */
.tst-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.tst-ctrl { display: flex; gap: 8px; }
.tst-ctrl .icon-btn { width: 48px; height: 48px; }
.tst-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 86%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; overscroll-behavior-x: contain; }
.tst-track::-webkit-scrollbar { display: none; }
.tst { scroll-snap-align: start; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-xl); display: flex; flex-direction: column; gap: 28px; }
.tst .i-quote { width: 34px; height: 34px; color: var(--accent); }
.tst blockquote { margin: 0; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.5; letter-spacing: -.015em; flex: 1; text-wrap: pretty; }
.tst figcaption { display: flex; align-items: center; gap: 14px; }
.tst figcaption span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); font: 600 13px/1 var(--font-mono); color: var(--accent-text); }
.tst figcaption b { display: block; font-weight: 600; }
.tst figcaption small { color: var(--faint); font-size: 13.5px; }
.tst-dots { display: flex; gap: 6px; margin-top: 24px; }
.tst-dots button { width: 22px; height: 4px; border-radius: 4px; background: var(--line-2); transition: width .4s var(--ease), background-color .3s; }
.tst-dots button[aria-current="true"] { width: 44px; background: var(--accent); }

/* ---------- Contact + estimator ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel { padding: clamp(22px, 3.5vw, 40px); border-radius: var(--r-xl); }
.est-step { padding-block: 22px; border-top: 1px solid var(--line); }
.est-step:first-of-type { margin-top: 26px; }
.est-step h4 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.est-step h4 span { font: 500 11px/1 var(--font-mono); color: var(--accent-text); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); transition: color .2s, background-color .2s, border-color .2s; }
.opt input:hover + span { color: var(--text); border-color: var(--text); }
.opt input:checked + span { background: var(--accent-soft); color: var(--text); border-color: var(--accent); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.est-out { margin-top: 6px; padding: 20px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 14px; }
.est-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.est-row small { font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.est-weeks { font-size: 30px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w, 10%); border-radius: inherit; background: linear-gradient(90deg, var(--cool), var(--accent), #e0533a); transition: width .6s var(--ease); }
.est-note { font-size: 12.5px; color: var(--faint); }

.contact-links { display: grid; gap: 10px; margin: 26px 0 28px; }
.contact-link { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); transition: border-color .25s, background-color .25s; }
.contact-link:hover { border-color: var(--line-2); background: var(--surface-2); }
.contact-link > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.contact-link small { display: block; font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.contact-link b { font-weight: 550; font-size: 15px; word-break: break-word; }
.contact-link > .i { margin-left: auto; color: var(--faint); }

.form { display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; background: rgba(229, 72, 77, .1); border: 1px solid rgba(229, 72, 77, .3); color: #c62a2f; }
[data-theme="dark"] .form-alert { color: #ff8f93; }
.field { position: relative; }
.field input, .field textarea { width: 100%; padding: 24px 16px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field textarea { min-height: 150px; }
.field label { position: absolute; left: 17px; top: 17px; font-size: 15px; color: var(--faint); pointer-events: none; transform-origin: 0 0; transition: transform .2s var(--ease), color .2s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-9px) scale(.78); color: var(--accent-text); }
.field.invalid input, .field.invalid textarea { border-color: #e5484d; }
.field-error { font-size: 13px; color: #f2555a; margin-top: 6px; display: none; }
[data-theme="light"] .field-error { color: #c62a2f; }
.field.invalid .field-error { display: block; }
.field-count { position: absolute; right: 14px; bottom: 12px; font: 500 11px/1 var(--font-mono); color: var(--faint); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-foot p { font-size: 13px; color: var(--faint); max-width: 34ch; }
.form-foot a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { position: relative; padding-top: clamp(70px, 10vw, 120px); overflow: hidden; border-top: 1px solid var(--line); }
.footer-cta { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(50px, 7vw, 80px); border-bottom: 1px solid var(--line); }
.footer-cta .display { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; padding-block: 56px; }
.footer-grid h4 { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); transition: color .2s; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--muted); margin-top: 16px; max-width: 36ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 36px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--faint); }
.footer-bottom a:hover { color: var(--text); }
.footer-word { font-family: var(--font-serif); font-size: clamp(6rem, 24vw, 22rem); line-height: .75; letter-spacing: -.04em; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--line-2); user-select: none; pointer-events: none; margin-bottom: -.12em; white-space: nowrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Floating WhatsApp ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #06290f; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55); transition: transform .35s var(--ease); }
.fab:hover { transform: scale(1.08) rotate(-6deg); }
.fab .i { width: 26px; height: 26px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 180; transform: translate(-50%, 140%); display: flex; align-items: flex-start; gap: 12px; width: min(460px, calc(100vw - 32px)); padding: 16px 18px; border-radius: 16px; box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.toast.show { transform: translate(-50%, 0); }
.toast > .i { color: var(--cool); margin-top: 2px; }
.toast p { flex: 1; font-size: 14.5px; }
.toast .icon-btn { width: 30px; height: 30px; margin: -4px -6px 0 0; }

/* ---------- Command palette ---------- */
.palette { width: min(600px, calc(100vw - 24px)); margin-top: 12vh; padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.palette::backdrop { background: rgba(5, 4, 3, .55); backdrop-filter: blur(4px); }
.palette[open] { animation: dlgIn .3s var(--ease); }
.palette-search { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.palette-search .i { color: var(--faint); }
.palette-search input { flex: 1; height: 58px; border: 0; outline: 0; background: none; font-size: 16px; }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette-group { font: 500 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 12px 10px 8px; }
.palette-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 10px; border-radius: 10px; text-align: left; font-size: 15px; color: var(--muted); }
.palette-item .i { color: var(--faint); }
.palette-item[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.palette-item[aria-selected="true"] .i { color: var(--accent); }
.palette-item kbd { margin-left: auto; }
.palette-empty { padding: 24px; text-align: center; color: var(--faint); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-top: calc(var(--nav-h) + clamp(50px, 8vw, 110px)); padding-bottom: clamp(40px, 6vw, 70px); overflow: hidden; isolation: isolate; }
.page-hero .hero-aurora { opacity: .7; }
.crumbs { display: flex; gap: 8px; align-items: center; font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 26px; }
.crumbs a:hover { color: var(--text); }
.page-hero .display { font-size: clamp(2.6rem, 7vw, 5.6rem); max-width: 16ch; }
.page-hero .lead { margin-top: 24px; }
.page-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 40px; }
.page-stats div b { display: block; font-size: 34px; font-weight: 600; letter-spacing: -.04em; }
.page-stats div small { color: var(--faint); font-size: 14px; }

/* Portfolio case rows */
.case-list { display: grid; gap: clamp(20px, 3vw, 28px); }
.case-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); padding: clamp(16px, 2.4vw, 28px); border-radius: var(--r-xl); align-items: center; scroll-margin-top: calc(var(--nav-h) + 24px); }
.case-row:nth-child(even) .browser { order: 2; }
.browser { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow-sm); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.browser-url { flex: 1; min-width: 0; font: 500 12px/1 var(--font-mono); color: var(--faint); padding: 7px 12px; border-radius: 999px; background: var(--bg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-view { aspect-ratio: 16 / 10; overflow: hidden; }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 5s ease; }
.case-row:hover .browser-view img { object-position: bottom; }
.case-info { display: grid; gap: 14px; align-content: center; }
.case-info .h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.case-info .facts { display: flex; flex-wrap: wrap; gap: 8px; }
.case-info .checks { margin-top: 6px; font-size: 15px; color: var(--muted); }
.case-metric { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-block: 1px solid var(--line); }
.case-metric b { font-size: 28px; font-weight: 600; letter-spacing: -.04em; }
.case-metric span { color: var(--faint); }
@media (max-width: 900px) { .case-row { grid-template-columns: 1fr; } .case-row:nth-child(even) .browser { order: 0; } }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 44px 0 12px; display: flex; gap: 14px; align-items: baseline; }
.prose h2 span { font: 500 13px/1 var(--font-mono); color: var(--accent-text); }
.prose p, .prose li { color: var(--muted); font-size: 17px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.split-line > span { display: inline-block; transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 120ms); }
.js body:not(.loaded) .split-line > span { transform: translateY(105%); }
.js .hero-copy > .fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 120ms + 300ms); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .split-line > span, .hero-copy > .fade-up { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

@media print {
  .nav, .fab, .progress, .hero-canvas, .toast, body::after { display: none !important; }
}
