:root {
  --bg: #14161b;
  --bg-alt: #1b1e26;
  --surface: #20242d;
  --line: #2e3340;
  --text: #f3f4f8;
  --muted: #a4aab8;
  --accent: #7c5cff;
  --accent-hover: #9378ff;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
  z-index: 100; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

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

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 22, 27, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.brand span { color: var(--accent); }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-weight: 650; font-size: 1rem; line-height: 1;
  padding: 16px 26px; border-radius: 10px;
  text-decoration: none; border: 1px solid transparent;
  transition: background .15s, transform .15s, border-color .15s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-small { padding: 10px 16px; font-size: .9rem; border-radius: 8px; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.btn-large { font-size: clamp(1.05rem, 2.6vw, 1.35rem); padding: 20px 32px; }

/* Typography */
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-hover); margin-bottom: 18px;
}
h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.02; font-weight: 800; letter-spacing: -.035em;
  max-width: 14ch;
}
h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  line-height: 1.12; font-weight: 750; letter-spacing: -.025em;
  max-width: 24ch;
}
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: #d4d7e0; max-width: 54ch; margin-top: 24px; }
.section-lede { color: var(--muted); max-width: 60ch; margin-top: 20px; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,22,27,.96) 0%, rgba(20,22,27,.78) 45%, rgba(20,22,27,.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(20,22,27,0) 30%);
}
.hero-inner { padding: clamp(88px, 14vw, 180px) 0 clamp(96px, 14vw, 190px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(124, 92, 255, .55); transform: translateY(-3px); }
.num { display: block; font-size: .85rem; font-weight: 700; letter-spacing: .12em; color: var(--accent-hover); margin-bottom: 18px; }
.card p { color: var(--muted); margin-top: 12px; }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 26px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps p { color: var(--muted); margin-top: 4px; }
.step-n {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(124, 92, 255, .16); border: 1px solid rgba(124, 92, 255, .55);
  color: var(--accent-hover); font-weight: 750; font-size: .95rem;
}

/* Selected work */
.work { margin-top: 48px; border-top: 1px solid var(--line); }
.work-row {
  display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 12px 48px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.work-row h3 { font-size: 1.35rem; letter-spacing: -.015em; }
.work-row p { color: var(--muted); }
.toolbar { margin-top: 48px; }
.mini { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.tools { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tools li { border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.creds { margin-top: 22px; color: var(--muted); font-size: .9rem; }

/* Contact */
.contact { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.contact-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contact-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(20,22,27,.78) 35%, rgba(20,22,27,.9) 100%); }
.contact-inner { padding: clamp(88px, 12vw, 160px) 0; display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: 20ch; }
.contact .lede { margin: 22px auto 40px; }

/* Footer */
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding: 28px 0; }
.footer a { text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .work-row { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .hero-shade { background: linear-gradient(0deg, rgba(20,22,27,.94) 0%, rgba(20,22,27,.7) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(20,22,27,0) 30%); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav nav a:not(.btn) { display: none; }
  .card { padding: 26px; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
