:root {
  --orange: #f46b10;
  --orange-strong: #d95a06;
  --bg: #ffffff;
  --bg-alt: #f6f5f3;
  --surface: #ffffff;
  --text: #2b2a2c;
  --muted: #5f5d62;
  --line: #e6e3df;
  --hero-bg: #1c1b1d;
  --hero-text: #f4f2ef;
  --hero-muted: #b9b5b0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141315;
    --bg-alt: #1b1a1c;
    --surface: #211f22;
    --text: #ece9e5;
    --muted: #a8a4a0;
    --line: #322f33;
    --hero-bg: #0e0d0f;
    --shadow: none;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--orange); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 100; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  background: var(--orange); color: #fff;
  font-weight: 600; text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--orange-strong); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--hero-text); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-light { background: #fff; color: var(--orange-strong); }
.btn-light:hover { background: #fff3ea; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand {
  --node-fill: var(--bg);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font: 600 22px/1 "Space Grotesk", sans-serif; letter-spacing: -.01em;
}
.brand .mark { width: 32px; height: 32px; color: var(--orange); }
.accent { color: var(--orange); }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav nav a:not(.btn):hover { color: var(--text); }

#hex-mark .node { fill: var(--node-fill, #fff); }

/* Hero */
.hero {
  --node-fill: var(--hero-bg);
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 30%, rgba(244, 107, 16, .28), transparent 70%),
    var(--hero-bg);
  color: var(--hero-text);
}
.hero-inner {
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px;
  padding-top: 112px; padding-bottom: 120px;
}
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 600; }
.hero .lede { margin-top: 22px; font-size: 19px; color: var(--hero-muted); max-width: 34em; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-mark {
  width: 100%; max-width: 380px; justify-self: end;
  color: var(--orange);
  filter: drop-shadow(0 0 40px rgba(244, 107, 16, .35));
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  50% { transform: translateY(-14px) rotate(4deg); }
}

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--orange) 50%, var(--line)); }
.card h3 { font-size: 21px; font-weight: 600; margin: 22px 0 10px; }
.card p { color: var(--muted); }
.icon {
  width: 48px; height: 48px; padding: 11px; border-radius: 12px;
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.split .section-head { margin-bottom: 0; position: sticky; top: 120px; }
.pillars { list-style: none; margin: 0; padding: 0; counter-reset: pillar; }
.pillars li {
  counter-increment: pillar;
  display: grid; grid-template-columns: 56px 1fr; column-gap: 8px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillars li::before {
  content: "0" counter(pillar);
  grid-row: span 2;
  font: 600 15px/1.9 "Space Grotesk", sans-serif; color: var(--orange);
}
.pillars h3 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.pillars p { color: var(--muted); }

/* CTA */
.cta { background: linear-gradient(120deg, var(--orange), #f78a3a); color: #fff; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-top: 72px; padding-bottom: 72px;
}
.cta h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; max-width: 18em; }

/* Footer */
.footer { padding: 32px 0; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social:hover { color: var(--orange); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 80px; }
  .hero-mark { position: absolute; right: -60px; top: 24px; width: 240px; opacity: .25; }
  .hero-copy { position: relative; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .section-head { position: static; }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav nav { gap: 16px; }
  .nav nav a[href="#expertise"] { display: none; }
  .brand { font-size: 19px; }
}

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