:root {
  --bg: #0c0d0f;
  --surface: #131416;
  --text: #f2f0eb;
  --muted: #9a968f;
  --dim: #8a867f;
  --line: #26272a;
  --accent: #d6c8a4;
  --light: #ebe8e1;
  --ink: #15140f;
  --ink-muted: #55524b;
  --max: 1180px;
  --header: 72px;
  --display: "Manrope", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
svg { max-width: 100%; height: auto; display: block; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--ink);
  padding: 10px 16px; border-radius: 4px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header);
  background: rgba(12, 13, 15, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  width: min(var(--max), calc(100% - 48px)); height: 100%;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: baseline; gap: 12px; }
.brand-mark { font: 800 25px/1 var(--display); letter-spacing: -2px; }
.brand-name { font: 500 10px/1 var(--body); letter-spacing: .42em; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; color: #c6c3bd; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: #fff; }
.nav-cta { padding: 10px 18px; border: 1px solid #3d3e42; border-radius: 100px; color: var(--text); }
.nav-cta:hover { background: var(--text); color: var(--ink) !important; border-color: var(--text); }

.nav-toggle {
  display: none; align-items: center; gap: 12px;
  background: none; border: 0; color: var(--text);
  font: 500 14px var(--body); cursor: pointer; padding: 8px 0;
}
.nav-toggle-bars { display: grid; gap: 5px; }
.nav-toggle-bars i { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .25s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Shared type */
h1, h2, h3 { font-family: var(--display); }
h2 { font-weight: 600; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.05em; }
h3 { font-weight: 600; letter-spacing: -.035em; }
.kicker { font-size: 14px; color: var(--muted); margin-bottom: 28px; max-width: 420px; }
.lede { font-size: 18px; line-height: 1.65; color: #b4b1aa; max-width: 540px; }
.muted { color: var(--muted); }

.actions { margin-top: 38px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 15px 22px; border-radius: 100px;
  font-size: 14px; font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.button span { font-size: 17px; }
.button-light { background: var(--text); color: var(--ink); }
.button-light:hover { background: #fff; transform: translateY(-2px); }
.text-link { font-size: 14px; color: #b4b1aa; transition: color .2s ease; }
.text-link:hover { color: #fff; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  margin-bottom: 56px;
}
.section-head p { max-width: 380px; color: var(--muted); font-size: 15px; }

/* Hero */
.hero { padding: 90px 0 120px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -220px; top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 200, 164, .08), transparent 65%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 {
  font-weight: 700; font-size: clamp(46px, 6.6vw, 94px);
  line-height: .95; letter-spacing: -.07em;
}
.hero h1 span { color: #7d7970; }
.hero .lede { margin-top: 34px; }

.hero-figure { max-width: 440px; justify-self: end; width: 100%; }
.hero-figure figcaption { margin-top: 14px; font-size: 12px; color: var(--dim); }
.fig-line { stroke: #34353a; stroke-width: 1.5; }
.fig-dot { fill: #3d3e42; }
.fig-dot-accent { fill: var(--accent); }
.fig-box { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.fig-box-accent { stroke: rgba(214, 200, 164, .45); }
.fig-label { font: 600 20px var(--display); fill: var(--text); letter-spacing: -.03em; }
.fig-sub { font: 400 13px var(--body); fill: var(--muted); }

/* Hero load sequence (the one orchestrated moment) */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { opacity: 0; animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .18s; }
  .hero-copy > :nth-child(4) { animation-delay: .28s; }
  .fig-box, .fig-label, .fig-sub { opacity: 0; animation: fade .7s ease forwards; }
  .fig-line { stroke-dasharray: 360; stroke-dashoffset: 360; animation: draw 1.1s ease .3s forwards; }
  .hero-figure g:nth-of-type(1) * { animation-delay: .4s; }
  .hero-figure g:nth-of-type(2) * { animation-delay: .7s; }
  .hero-figure g:nth-of-type(3) * { animation-delay: 1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Intro */
.intro { border-top: 1px solid var(--line); padding: 110px 0; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.intro p { font-size: 18px; line-height: 1.7; color: #c9c6bf; max-width: 520px; }
.intro p.muted { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* Services */
.services { border-top: 1px solid var(--line); padding: 110px 0 120px; }
.service-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.service {
  background: var(--surface); border: 1px solid var(--line);
  padding: 36px; border-radius: 4px;
  display: flex; flex-direction: column; gap: 20px;
}
.service h3 { font-size: 30px; line-height: 1.1; }
.service > p:not(.service-tag) { color: var(--muted); font-size: 15px; max-width: 520px; }
.service-tag { font-size: 12px; color: var(--accent); }
.service .text-link { margin-top: auto; padding-top: 8px; }
.service-feature { grid-row: span 2; border-color: rgba(214, 200, 164, .3); padding: 44px; }
.service-feature h3 { font-size: clamp(34px, 3.6vw, 46px); }
.ticks { display: grid; gap: 10px; font-size: 15px; color: #cfccc5; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 10px; height: 1.5px; background: var(--accent);
}
.service-feature .ticks { margin-top: 8px; gap: 12px; }

/* AI & Automation (light surface) */
.ai { background: var(--light); color: var(--ink); padding: 120px 0; }
.ai-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.ai-head p { font-size: 17px; line-height: 1.7; color: #35332d; max-width: 540px; }
.ai-head p + p { margin-top: 18px; color: var(--ink-muted); }
.usecases {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #c9c5ba;
}
.usecases li { padding: 32px 32px 8px 0; }
.usecases li + li { padding-left: 32px; border-left: 1px solid #c9c5ba; }
.usecases h3 { font-size: 24px; line-height: 1.15; margin-bottom: 12px; }
.usecases p { font-size: 15px; color: var(--ink-muted); max-width: 320px; }
.note { margin-top: 56px; font-size: 13px; color: var(--ink-muted); max-width: 640px; }

/* Process */
.approach { padding: 120px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: var(--line);
}
.steps li { position: relative; padding-right: 28px; }
.step-n {
  position: relative; display: grid; place-items: center;
  width: 35px; height: 35px; border-radius: 50%;
  background: var(--bg); border: 1px solid #3d3e42;
  font: 600 13px var(--display); color: var(--accent);
  margin-bottom: 28px;
}
.steps h3 { font-size: 24px; margin-bottom: 10px; }
.steps p { font-size: 15px; color: var(--muted); max-width: 240px; }

/* Integrated */
.integrated { border-top: 1px solid var(--line); padding: 120px 0; }
.integrated-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pairs { margin: 44px 0 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pairs > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pairs dt { font: 600 18px var(--display); letter-spacing: -.03em; }
.pairs dd { color: var(--muted); font-size: 15px; }
.integrated .muted { font-size: 15px; max-width: 480px; }
.venn { max-width: 520px; justify-self: end; width: 100%; }
.venn-c { fill: rgba(242, 240, 235, .035); stroke: #4a4b50; stroke-width: 1.2; }
.venn-c-accent { fill: rgba(214, 200, 164, .06); stroke: rgba(214, 200, 164, .55); }
.venn-t { font: 600 17px var(--display); fill: var(--text); letter-spacing: -.02em; }
.venn-core { font: 600 15px var(--display); fill: var(--accent); }

/* About */
.about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 110px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about p { font-size: 17px; line-height: 1.7; color: #c9c6bf; max-width: 540px; }
.about p + p { margin-top: 18px; color: var(--muted); }

/* Building */
.building { padding: 110px 0; }
.building-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.building-head h2 { font-size: clamp(30px, 3.8vw, 48px); }
.building-head p { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 540px; }
.areas { margin-top: 56px; border-top: 1px solid var(--line); }
.areas li {
  display: flex; align-items: baseline; gap: 28px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font: 500 clamp(18px, 2vw, 24px) var(--display); letter-spacing: -.03em;
}
.areas li span {
  flex: 0 0 90px;
  font: 500 12px var(--body); letter-spacing: 0; color: var(--accent);
}

/* Contact */
.contact { border-top: 1px solid var(--line); padding: 150px 0; text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { font-size: clamp(40px, 6vw, 82px); margin-bottom: 30px; }
.contact .lede { margin-bottom: 40px; }
.contact-direct { margin-top: 22px; font-size: 14px; color: var(--muted); }
.contact-direct a { color: var(--text); border-bottom: 1px solid #555; padding-bottom: 2px; }
.contact-direct a:hover { border-color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-about p { margin-top: 16px; max-width: 300px; }
.footer-nav { display: grid; gap: 8px; align-content: start; }
.footer-nav a, .footer-contact a { transition: color .2s ease; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: grid; gap: 8px; align-content: start; }
.footer-contact a { color: var(--text); }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }

/* Tablet */
@media (max-width: 960px) {
  .hero { padding: 56px 0 90px; }
  .hero-grid, .intro-grid, .ai-head, .integrated-grid, .about-grid, .building-head { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure, .venn { justify-self: start; }
  .service-layout { grid-template-columns: 1fr; }
  .service-feature { grid-row: auto; }
  .usecases { grid-template-columns: 1fr; }
  .usecases li, .usecases li + li { padding: 28px 0; border-left: 0; }
  .usecases li + li { border-top: 1px solid #c9c5ba; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 40px; }
}

/* Mobile navigation */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 20px; width: auto; text-align: center; border: 1px solid #3d3e42; padding: 12px 22px; }
}

@media (max-width: 600px) {
  .wrap, .header-inner { width: calc(100% - 40px); }
  .site-nav { padding-left: 20px; padding-right: 20px; }
  .intro, .services, .ai, .approach, .integrated, .about, .building { padding-top: 80px; padding-bottom: 80px; }
  .contact { padding: 100px 0; }
  .service, .service-feature { padding: 28px 24px; }
  .steps { grid-template-columns: 1fr; }
  .pairs > div { grid-template-columns: 1fr; gap: 4px; }
  .areas li { flex-direction: column; gap: 6px; }
  .areas li span { flex: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
