:root {
  --bg: #f3f1eb;
  --surface: #fffdf8;
  --ink: #15171c;
  --muted: #626872;
  --line: rgba(21, 23, 28, .14);
  --accent: #d99518;
  --accent-bright: #f5b642;
  --dark: #111318;
  --dark-soft: #1a1d24;
  --dark-muted: #aeb4bf;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(30, 25, 12, .12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
::selection { background: var(--accent-bright); color: var(--dark); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; background: white; padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 108px 0; }
.section-dark { background: var(--dark); color: white; }
.eyebrow { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 800; color: var(--accent); }
.section-dark .eyebrow { color: var(--accent-bright); }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.08; letter-spacing: -.035em; margin-top: 0; }
h1 { font-size: clamp(3.3rem, 7vw, 6.8rem); margin-bottom: 28px; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(2.35rem, 4vw, 4.5rem); margin-bottom: 24px; }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); }
p { margin-top: 0; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 18px 0; transition: background .25s, box-shadow .25s, padding .25s; }
.site-header.scrolled { background: rgba(243, 241, 235, .88); backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--line); padding: 11px 0; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--dark); background: var(--accent-bright); font-family: "Space Grotesk"; }
.brand-name { font-size: .95rem; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: .88rem; }
.site-nav a:hover { color: var(--accent); }
.nav-resume { border: 1px solid var(--ink); border-radius: 999px; padding: 9px 16px; }
.menu-button { display: none; background: none; border: 0; padding: 8px; }
.menu-button span:not(.sr-only) { width: 26px; height: 2px; background: var(--ink); display: block; margin: 5px 0; }

.hero { min-height: 100svh; display: grid; align-items: center; padding-top: 130px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.hero-lede { max-width: 760px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 750; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent-bright); color: var(--dark); }
.button-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.35); }
.section-dark .button-secondary, .contact-panel .button-secondary { border-color: rgba(255,255,255,.25); background: transparent; color: white; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9rem; }
.hero-links a { text-decoration-color: rgba(21,23,28,.25); text-underline-offset: 4px; }
.hero-visual { position: relative; min-height: 590px; display: grid; place-items: center; }
.network-card { position: relative; z-index: 2; width: min(100%, 560px); border: 1px solid rgba(255,255,255,.18); border-radius: 34px; padding: 18px; background: linear-gradient(145deg, rgba(28,31,39,.97), rgba(13,15,19,.98)); box-shadow: var(--shadow); }
.network-label { color: var(--dark-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; padding: 12px 14px 0; }
.network-lines line { stroke: url(#lineGradient); stroke-width: 2; stroke-dasharray: 9 10; animation: dash 18s linear infinite; }
.node { fill: #222630; stroke: rgba(245,182,66,.75); stroke-width: 2; }
.node-center { fill: #f5b642; stroke: #f5b642; }
.network-nodes text { font: 700 12px Inter; fill: white; letter-spacing: .08em; }
.network-nodes .node-center + text, .network-nodes text:nth-of-type(2) { fill: var(--dark); }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 300px; height: 300px; background: rgba(245,182,66,.25); right: -60px; top: 10px; }
.orb-two { width: 240px; height: 240px; background: rgba(44,83,122,.18); left: -30px; bottom: 20px; }
@keyframes dash { to { stroke-dashoffset: -300; } }

.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.24); }
.metric strong { font: 700 clamp(2.6rem, 5vw, 5rem) "Space Grotesk"; letter-spacing: -.06em; }
.metric span { color: var(--muted); }
.two-column { display: grid; grid-template-columns: .8fr 1.2fr; gap: 95px; align-items: start; }
.sticky-heading { position: sticky; top: 140px; }
.about-copy { font-size: 1.08rem; color: var(--muted); }
.about-copy .lead { font-size: 1.5rem; color: var(--ink); }
blockquote { margin: 48px 0 0; border-left: 4px solid var(--accent); padding: 10px 0 10px 24px; font: 600 clamp(1.45rem, 2.5vw, 2.35rem) "Space Grotesk"; color: var(--ink); line-height: 1.25; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle-card { min-height: 270px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); padding: 28px; background: var(--dark-soft); }
.principle-card span { color: var(--accent-bright); font-weight: 800; font-size: .8rem; letter-spacing: .12em; }
.principle-card h3 { margin: 54px 0 14px; }
.principle-card p { color: var(--dark-muted); }
.capability-list { border-top: 1px solid var(--line); }
.capability { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.capability > div { display: flex; gap: 24px; align-items: baseline; }
.capability span { color: var(--accent); font-weight: 800; }
.capability h3 { margin-bottom: 0; }
.capability p { color: var(--muted); margin-bottom: 0; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: .32fr .68fr; gap: 48px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.timeline-meta { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: .9rem; }
.role-label { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; }
.timeline-content h3 { max-width: 760px; }
.timeline-content > p:not(.role-label) { color: var(--muted); max-width: 820px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-row span { border: 1px solid var(--line); padding: 7px 11px; border-radius: 999px; font-size: .78rem; font-weight: 650; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card { display: flex; flex-direction: column; min-height: 380px; padding: 30px; border-radius: var(--radius); background: var(--dark-soft); border: 1px solid rgba(255,255,255,.12); }
.case-kicker { color: var(--accent-bright); text-transform: uppercase; letter-spacing: .13em; font-size: .74rem; font-weight: 800; }
.case-card p:not(.case-kicker) { color: var(--dark-muted); }
.case-card a { margin-top: auto; color: white; text-decoration: none; font-weight: 750; }
.case-card a span { color: var(--accent-bright); }
.tech-groups { border-top: 1px solid var(--line); }
.tech-group { padding: 28px 0; border-bottom: 1px solid var(--line); }
.tech-group h3 { font-size: 1.3rem; margin-bottom: 10px; }
.tech-group p { color: var(--muted); margin: 0; }
.contact-panel { background: var(--dark); color: white; border-radius: 36px; padding: clamp(34px, 7vw, 80px); display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 50px; box-shadow: var(--shadow); }
.contact-panel h2 { max-width: 750px; }
.contact-panel p { color: var(--dark-muted); max-width: 720px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.site-footer { padding: 30px 0 42px; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .88rem; }
.footer-grid a { text-decoration: none; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-nav { position: fixed; inset: 72px 20px auto 20px; display: none; flex-direction: column; align-items: stretch; padding: 24px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .menu-button { display: block; }
  .hero-grid, .two-column, .contact-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .hero-visual { min-height: 500px; }
  .sticky-heading { position: static; }
  .cards-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 76px 0; }
  .brand-name { display: none; }
  h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .hero-visual { min-height: 380px; }
  .network-card { border-radius: 22px; }
  .metrics-grid, .cards-grid, .case-grid { grid-template-columns: 1fr; }
  .metric { min-height: 150px; }
  .capability, .timeline-item { grid-template-columns: 1fr; gap: 22px; }
  .capability > div { gap: 16px; }
  .contact-panel { border-radius: 24px; }
  .footer-grid { flex-direction: column; }
}

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