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

:root {
  --bg: #08090c;
  --bg-2: #0e1015;
  --ink: #eef0f4;
  --muted: #9aa2b1;
  --faint: #6b7383;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #7c9cff;
  --accent-2: #a78bfa;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }

.nowrap { white-space: nowrap; }
a { color: inherit; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.mark {
  width: 18px; height: 18px; border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(124, 156, 255, 0.45);
}
.nav nav { display: none; gap: 28px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .15s; }
.nav nav a:hover { color: var(--ink); }
@media (min-width: 640px) { .nav nav { display: flex; } }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
  opacity: 0.6;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute;
  width: 900px; height: 600px; left: 50%; top: -360px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 156, 255, 0.28), rgba(167, 139, 250, 0.12) 55%, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
@media (min-width: 900px) { .hero { padding: 140px 0 104px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px; padding: 6px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px; color: var(--muted); letter-spacing: 0.02em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }

h1 {
  margin: 0 0 28px;
  font-size: clamp(30px, 6.4vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 30%, #b8c0d0);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { margin: 0; max-width: 620px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }

.stats {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 56px 0 0;
  border-top: 1px solid var(--line);
}
.stats > div { padding: 20px 16px 4px 0; }
.stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); }
.stats dd { margin: 6px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats dd { font-size: 22px; }
}

/* Sections */
.section { padding: 80px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 120px 0; } }

.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.num { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--accent); letter-spacing: 0.04em; }
h2 { margin: 0; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.02em; }

.split { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: 320px 1fr; gap: 48px; }
  .split .section-head { margin-bottom: 0; }
}

/* Portfolio cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 300px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: linear-gradient(180deg, rgba(124, 156, 255, 0.08), rgba(255, 255, 255, 0.01)); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; padding-bottom: 48px; }
.mono {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(135deg, rgba(124, 156, 255, 0.22), rgba(167, 139, 250, 0.14));
  border: 1px solid var(--line-strong);
}
.tag { font-size: 12px; color: var(--muted); padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; }
.card p { margin: 0 0 24px; color: var(--muted); max-width: 420px; }
.visit { font-size: 15px; font-weight: 600; color: var(--ink); }
.arrow { display: inline-block; margin-left: 4px; color: var(--accent); transition: transform .2s; }
.card:hover .arrow { transform: translate(3px, -3px); }

/* Imprint */
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts > div:first-child { border-top: 1px solid var(--line); }
@media (min-width: 700px) { .facts > div { grid-template-columns: 210px 1fr; gap: 24px; } }
.facts dt { font-size: 14px; color: var(--faint); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.note { margin: 24px 0 0; font-size: 14px; color: var(--faint); }

/* Contact */
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.big-link {
  font-size: clamp(20px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .25s, color .2s;
  width: fit-content; max-width: 100%;
}
.big-link:hover { color: var(--accent); background-size: 100% 1px; }

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

/* Footer */
.footer { font-size: 13px; color: var(--faint); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 32px; padding-bottom: 32px; }
.footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .arrow, .big-link { transition: none; }
}
