:root {
  --bg: #0A0F14;
  --bg-alt: #0F151B;
  --panel: #111820;
  --line: #1C252E;
  --line-strong: #2E3A46;
  --text: #E6EBF0;
  --text-strong: #FFFFFF;
  --muted: #AEB8C2;
  --dim: #7C8894;
  --accent: #3DDC97;
  --accent-hover: #7CF0BE;
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(10, 15, 20, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { padding-block: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-logo { display: flex; align-items: center; gap: 15px; }
.brand-logo img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.brand-mark { transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-sub { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding-top: 4px; }
.nav { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; font-size: 15px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--text-strong); }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 8px; padding: 16px 26px; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-strong); padding: 15px 26px; }
.btn-ghost:hover { color: var(--text-strong); border-color: var(--dim); }
.btn-sm { padding: 12px 20px; }
.btn-lg { padding: 18px 30px; }

/* Type */
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.mono-accent { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.mono-label { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.h2 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 16px 0 0; color: var(--text-strong); }
.h2.wide { font-size: clamp(32px, 5vw, 48px); max-width: 800px; margin-bottom: 56px; }
.h2.spaced { margin-bottom: 48px; }
.h2.big { font-size: clamp(32px, 5vw, 48px); margin: 0 0 14px; }
.body { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; }
.muted { color: var(--muted); }

/* Sections */
.section { padding-block: 104px; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.bordered { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }

/* Hero */
.hero { background-image: radial-gradient(rgba(230, 235, 240, 0.08) 1px, transparent 1px); background-size: 24px 24px; }
.hero-row { padding-block: 96px 88px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 999 1 580px; min-width: 0; }
.hero h1 { font-weight: 700; font-size: clamp(40px, 6vw, 62px); line-height: 1.03; letter-spacing: -0.03em; margin: 20px 0 24px; color: var(--text-strong); }
.lede { font-size: 20px; line-height: 1.55; color: var(--muted); margin: 0 0 36px; max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.stats { flex: 1 1 380px; min-width: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stat { background: var(--panel); padding: 26px 28px; }
.stat-big { font-size: 40px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.02em; }
.stat-sub { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* Logo strip */
.logo-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-row { padding-block: 30px; display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: center; justify-content: space-between; }
.logo-row img { width: auto; filter: brightness(0) invert(1); opacity: 0.8; transition: opacity 0.2s; }
.logo-row img:hover { opacity: 1; }

/* Services */
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel { background: var(--bg-alt); padding: 36px; }
.panel h3 { font-size: 26px; margin: 12px 0 18px; color: var(--text-strong); }
.panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--muted); }

/* Transactions */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 10px 18px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; background: transparent; color: #C9D1D9; border: 1px solid var(--line-strong); }
.filter:hover { border-color: var(--dim); }
.filter.is-active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.deal { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 200px; transition: transform 0.2s, border-color 0.2s; }
.deal:hover { transform: translateY(-4px); border-color: var(--accent); }
.deal-company { font-size: 24px; font-weight: 700; color: var(--text-strong); }
.deal-detail { font-size: 15px; color: var(--muted); line-height: 1.5; min-height: 22px; }
.deal-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.deal-amount { font-size: 22px; font-weight: 700; color: var(--text); }
.deal-year { font-family: var(--mono); font-size: 13px; color: #9AA5B0; }

/* Clients */
.carousel-controls { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 48px; height: 48px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg-alt); cursor: pointer; font-size: 18px; color: var(--text); }
.icon-btn:hover { border-color: var(--dim); }
.client-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 40px; }
.client-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge { font-family: var(--mono); font-size: 11px; color: var(--bg); background: var(--muted); padding: 3px 8px; border-radius: 4px; }
.client-logo { margin: 24px 0 20px; height: 48px; display: flex; align-items: center; }
.client-logo img { max-height: 48px; max-width: 280px; width: auto; filter: brightness(0) invert(1); }
.client-work { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; }
.sectors { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--dim); }

/* AI */
.ai-row { display: flex; flex-wrap: wrap; gap: 56px; }
.ai-intro { flex: 1 1 380px; min-width: 0; }
.ai-intro .h2 { margin-bottom: 20px; }
.ai-grid { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ai-item { border-top: 2px solid var(--accent); padding-top: 20px; }
.ai-item h3 { font-size: 20px; margin: 0 0 8px; color: var(--text-strong); }
.ai-item p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.steps h3 { font-size: 24px; margin: 10px 0; color: var(--text-strong); }
.steps p { margin: 0; line-height: 1.6; color: var(--muted); font-size: 16px; }

/* Contact & footer */
.contact { border-top: 1px solid var(--line); }
.contact-row { padding-block: 96px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.contact-copy { flex: 999 1 520px; min-width: 0; }
.contact-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact-cta p { margin: 0; font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-row { padding-block: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; color: var(--dim); font-size: 14px; font-family: var(--mono); }
.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 720px) {
  .section { padding-block: 72px; }
  .hero-row { padding-block: 64px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav a:not(.btn) { display: none; }
  .client-card, .panel { padding: 28px; }
  .logo-row { justify-content: flex-start; gap: 24px 36px; }
  .logo-row .mono-label { flex-basis: 100%; }
}

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spin-in { from { opacity: 0; transform: rotate(-180deg); } to { opacity: 1; transform: none; } }
@keyframes drift { to { background-position: 24px 24px; } }
@keyframes swap { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.js .brand-mark { animation: spin-in 1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.js .brand-word { animation: rise 0.8s 0.2s ease-out both; }
.js .hero-copy > *, .js .stat { animation: rise 0.8s ease-out both; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.3s; }
.js .stat:nth-child(1) { animation-delay: 0.35s; }
.js .stat:nth-child(2) { animation-delay: 0.5s; }
.js .stat:nth-child(3) { animation-delay: 0.65s; }
.hero { animation: drift 6s linear infinite; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .deal { animation: rise 0.5s ease-out both; }
.js .client-card.is-swapping > * { animation: swap 0.45s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
