:root {
  --bg: #fbfbfa;
  --bg-alt: #f1f4f8;
  --ink: #14181d;
  --muted: #5a626c;
  --line: #e2e6eb;
  --card: #ffffff;
  --accent: #1f6fd6;
  --accent-strong: #1558b0;
  --accent-ink: #ffffff;
  --live: #0f7b4d;
  --live-bg: #e3f5ec;
  --dev: #8a5a00;
  --dev-bg: #fdf1d8;
  --hero-a: #0b1b33;
  --hero-b: #123a6e;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1215;
    --bg-alt: #14181d;
    --ink: #eceef0;
    --muted: #9aa3ad;
    --line: #262b31;
    --card: #181c21;
    --accent: #6aa6f5;
    --accent-strong: #8dbcf8;
    --accent-ink: #0b1b33;
    --live: #5fd39c;
    --live-bg: #12311f;
    --dev: #f0c267;
    --dev-bg: #33270d;
    --hero-a: #081322;
    --hero-b: #0f2f59;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 18px/1 var(--display); }
.brand:hover { text-decoration: none; }
.mark { width: 26px; height: 26px; fill: var(--accent); flex: none; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 860px) { nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; background: var(--accent-strong); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
nav a.btn, nav a.btn:hover { color: var(--accent-ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-light { background: #fff; color: #0b1b33; }
.btn-light:hover { background: #e8f0fb; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(106, 166, 245, .35), transparent 60%),
    radial-gradient(600px 300px at 0% 110%, rgba(31, 111, 214, .35), transparent 60%),
    linear-gradient(160deg, var(--hero-a), var(--hero-b));
  padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px);
}
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -220px; width: 560px; height: 560px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 0 70px rgba(255,255,255,.025), 0 0 0 71px rgba(255,255,255,.07),
              0 0 0 150px rgba(255,255,255,.02), 0 0 0 151px rgba(255,255,255,.05);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #a9c8f5; font-weight: 600; }
h1 {
  font: 700 clamp(34px, 5.6vw, 62px)/1.06 var(--display);
  letter-spacing: -0.025em; margin: 0 0 22px; max-width: 17em; text-wrap: balance;
}
h1 em { font-style: normal; color: #8dbcf8; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: #d3e0f2; max-width: 36em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero .btn:not(.btn-ghost) { background: #fff; color: #0b1b33; }
.hero .btn:not(.btn-ghost):hover { background: #e8f0fb; }
.proof {
  list-style: none; margin: 0; padding: 22px 0 0; display: grid; gap: 14px 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .16); color: #d3e0f2; font-size: 15px;
}
.proof strong { display: block; color: #fff; font: 700 24px/1.2 var(--display); }

/* Sections */
.section { padding-block: clamp(48px, 7vw, 84px); }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
h2 { font: 700 clamp(26px, 3.4vw, 36px)/1.15 var(--display); letter-spacing: -0.02em; margin: 0 0 10px; }
h2.sub { font-size: clamp(20px, 2.4vw, 24px); margin: 56px 0 20px; }
.section-lede { color: var(--muted); margin: 0 0 32px; font-size: 18px; }
#services h2, #process h2 { margin-bottom: 28px; }
h3 { font: 700 21px/1.25 var(--display); margin: 0 0 8px; letter-spacing: -0.01em; }
h3 a { color: var(--ink); }
h3 a::after { content: " ↗"; color: var(--accent); font-size: .8em; }

.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.services { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grid.services { grid-template-columns: 1fr; } }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.card, .feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease;
}
.card:hover, .feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card-body, .feature-body { padding: 22px 24px 24px; }
.card p, .feature p { margin: 0 0 10px; }
.card .meta, .feature .meta { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.shot { display: block; background: var(--bg-alt); border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.shot.art { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); }
.shot.art svg { width: 100%; height: 100%; display: block; }
a.shot:hover img { transform: scale(1.03); }

.feature { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 20px; }
.feature .shot { border-bottom: 0; border-right: 1px solid var(--line); aspect-ratio: auto; min-height: 100%; }
.feature-body { padding: 32px; align-self: center; }
.feature h3 { font-size: 28px; }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; }
  .feature .shot { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; }
  .feature-body { padding: 22px 24px 24px; }
}

.tag {
  display: inline-block; margin: 0 0 12px !important; padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .03em;
  background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line);
}
.tag.live { background: var(--live-bg); color: var(--live); border-color: transparent; }
.tag.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 7px; vertical-align: 1px; }
.tag.dev { background: var(--dev-bg); color: var(--dev); border-color: transparent; }

.kicker { margin: 0 0 8px; font-size: 13.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.note { margin: 28px 0 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 12px 12px 0; color: var(--muted); font-size: 15.5px; max-width: 60em; }
.ticks { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.ticks li { position: relative; padding: 4px 0 4px 24px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.feature.own { margin: 28px 0 0; }
h1.page-title { color: var(--ink); font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; }
.story { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.stories { margin-top: 24px; }
.story blockquote { margin: 0 0 18px; font-size: 17.5px; }
.story figcaption strong { display: block; }
.story figcaption span { color: var(--muted); font-size: 14px; }

/* Services */
.service { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.service svg {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.service p { margin: 0; color: var(--muted); }

/* Process */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 18px; }
.steps li::before { content: "0" counter(step); display: block; font: 700 15px/1 var(--display); color: var(--accent); margin-bottom: 12px; letter-spacing: .05em; }
.steps p { margin: 0; color: var(--muted); }

/* Contact */
.contact {
  text-align: center; color: #fff; padding-block: clamp(56px, 8vw, 96px);
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b));
}
.contact h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 14px; }
.contact p { max-width: 32em; margin: 0 auto 30px; color: #d3e0f2; font-size: 19px; }
.contact .btn { font-size: clamp(15px, 2.4vw, 18px); padding: 16px 28px; }

footer { color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 28px; }
footer p { margin: 0; }

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