:root {
  --bg: #f6f6fb;
  --surface: #ffffff;
  --sunk: #eeeef6;
  --line: #e1e1ee;
  --ink: #0f172a;
  --muted: #4b4d6b;
  --faint: #7e809b;
  --brand: #4f46e5;
  --brand-ink: #3730a3;
  --brand-soft: #e8e7fd;
  --amber: #fbbf24;
  --amber-ink: #7a4f00;
  --hero-bg: #0f172a;
  --hero-ink: #ffffff;
  --hero-muted: #c7cbe6;
  --shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.35);
  --display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d1a;
    --surface: #141728;
    --sunk: #1b1f35;
    --line: #262a44;
    --ink: #e8e9f5;
    --muted: #a8abc8;
    --faint: #7a7e9c;
    --brand: #a5b4fc;
    --brand-ink: #c7d0ff;
    --brand-soft: #23264a;
    --amber-ink: #fcd774;
    --hero-bg: #070914;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.eyebrow {
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.section { padding-block: 96px; }
.section-head { display: grid; gap: 14px; max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.1; }
.section-head p { color: var(--muted); font-size: 19px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--hero-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.site-header .logo img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--hero-muted);
  text-decoration: none;
  font: 600 15px var(--display);
  padding: 8px 12px;
  border-radius: 8px;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav .cta { background: var(--amber); color: #1a1300; margin-left: 6px; }
.site-nav .cta:hover { background: #fcd34d; color: #1a1300; }
@media (max-width: 760px) { .site-nav a:not(.cta) { display: none; } }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-ink); overflow: hidden; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(79, 70, 229, 0.45), transparent 70%),
    radial-gradient(500px 260px at 0% 100%, rgba(79, 70, 229, 0.25), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-block: 88px 104px;
}
.hero h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 800; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { margin-top: 22px; font-size: 20px; color: var(--hero-muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font: 700 16px var(--display);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: #1a1300; }
.btn-primary:hover { background: #fcd34d; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.3); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.hero-shot {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.hero-shot .bar { display: flex; gap: 6px; padding: 10px 12px; background: #1e2238; }
.hero-shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f63; }
.facts {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--hero-muted);
  font-size: 15px;
}
.facts b { color: #fff; font-family: var(--display); font-size: 17px; margin-right: 6px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 64px 72px; }
  .hero-shot { transform: none; }
}

/* Hero automation card */
.pipeline { background: #141831; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; padding: 22px 22px 16px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
.pl-title { font: 600 13px var(--mono); color: var(--hero-muted); letter-spacing: 0.04em; margin-bottom: 10px; }
.pipeline ol { list-style: none; margin: 0; padding: 0; }
.pipeline li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; position: relative; }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 36px; bottom: -12px; width: 2px; background: rgba(255, 255, 255, 0.12); }
.pl-dot { width: 12px; height: 12px; margin-left: 5px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
.pipeline li.ai .pl-dot { background: #a5b4fc; box-shadow: 0 0 0 4px rgba(165, 180, 252, 0.2); }
.pipeline li.review .pl-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2); }
.pipeline b { display: block; font: 700 16px var(--display); color: #fff; }
.pipeline small { display: block; font-size: 14px; color: var(--hero-muted); }
.pl-time { font: 500 13px var(--mono); color: var(--hero-muted); }
.pl-badge { font: 700 12px var(--mono); color: #1a1300; background: var(--amber); padding: 4px 8px; border-radius: 999px; }
.pl-check { color: #10b981; font: 800 18px var(--display); }
.pl-foot { margin-top: 8px; text-align: right; font: 500 12px var(--mono); color: #6f7398; }

/* The "ledge" from the logo, used as a section marker */
.ledge { display: inline-block; width: 28px; height: 20px; position: relative; margin-bottom: 4px; }
.ledge::before { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 12px; background: var(--brand); border-radius: 2px; }
.ledge::after { content: ""; position: absolute; left: 0; bottom: 12px; width: 14px; height: 8px; background: var(--brand); border-radius: 2px 2px 0 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.service .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.service h3 { font-size: 22px; font-weight: 800; }
.service p { color: var(--muted); }
.service ul { margin: 4px 0 0; padding-left: 20px; color: var(--muted); font-size: 16px; }
.service li + li { margin-top: 4px; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Examples */
.examples-section { padding-top: 0; }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.example { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.example .tag { font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-ink); background: color-mix(in srgb, var(--amber) 22%, transparent); justify-self: start; padding: 6px 9px; border-radius: 999px; }
.example h3 { font-size: 20px; font-weight: 800; line-height: 1.25; }
.example > p:last-child { color: var(--muted); font-size: 16px; }
.flow { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 0; }
.flow li { position: relative; padding: 8px 0 8px 26px; font-size: 15px; color: var(--ink); }
.flow li::before { content: ""; position: absolute; left: 6px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 26px; bottom: -6px; width: 1.5px; background: var(--line); }
.flow li:nth-child(2) { color: var(--brand-ink); font-weight: 600; }
@media (max-width: 900px) { .examples { grid-template-columns: 1fr; } }

/* Work */
.work { background: var(--surface); border-block: 1px solid var(--line); }
.case { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.case h3 { font-size: 30px; font-weight: 800; line-height: 1.15; }
.case .summary { color: var(--muted); margin-top: 14px; }
.case dl { margin: 28px 0 0; display: grid; gap: 18px; }
.case dt { font: 700 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.case dd { margin: 4px 0 0; }
.case dd ul { margin: 0; padding-left: 20px; }
.case dd li + li { margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 13px var(--mono); padding: 5px 10px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.chip.good { background: color-mix(in srgb, #10b981 16%, transparent); color: #047857; }
@media (prefers-color-scheme: dark) { .chip.good { color: #5eddaa; } }
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.gallery figure { margin: 0; }
.gallery .main { grid-column: 1 / -1; }
.gallery img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery figcaption { font-size: 14px; color: var(--faint); margin-top: 8px; }
.gallery .phone img { max-width: 210px; margin-inline: auto; border-radius: 22px; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 3px solid var(--brand); }
.steps li::before { content: "0" counter(step); font: 700 14px var(--mono); color: var(--brand); }
.steps h3 { font-size: 20px; font-weight: 800; margin: 8px 0 6px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; text-align: center; }
.monogram {
  width: 120px; height: 120px; margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--hero-bg); color: var(--amber);
  font: 800 40px var(--display);
}
.person h3 { font-size: 20px; }
.person p { color: var(--muted); font-size: 15px; }
.person a { display: inline-block; margin-top: 12px; font: 600 15px var(--display); }
.about-text { display: grid; gap: 16px; color: var(--muted); }
.about-text strong { color: var(--ink); }
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.cert { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--ink); }
.cert span { display: block; color: var(--faint); font-size: 13px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .certs { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--hero-bg); color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.contact h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; line-height: 1.1; }
.contact p { color: var(--hero-muted); margin-top: 12px; }
.contact .email { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-self: end; }
.contact code { font: 600 18px var(--mono); background: rgba(255, 255, 255, 0.08); padding: 12px 16px; border-radius: 10px; color: #fff; user-select: all; }
.copy { height: 48px; padding: 0 16px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, 0.3); background: none; color: #fff; font: 700 15px var(--display); cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, 0.08); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; padding: 36px 24px; } .contact .email { justify-self: start; } }

/* Footer */
.site-footer { padding-block: 40px; color: var(--faint); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}
