:root {
  --bg: #0b0d12;
  --bg-alt: #11141c;
  --panel: #161a24;
  --border: #232838;
  --text: #e6e9f0;
  --muted: #9aa3b8;
  --accent: #e0483d;
  --accent-soft: rgba(224, 72, 61, 0.12);
  --max: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 18, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand:hover { text-decoration: none; }

.brand .mark {
  width: 26px;
  height: 26px;
  flex: none;
}

nav.site ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.site a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

nav.site a:hover,
nav.site a.active {
  color: var(--text);
  text-decoration: none;
}

nav.site a.active { border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(760px 320px at 12% -10%, rgba(224, 72, 61, 0.16), transparent 70%),
    var(--bg);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(224, 72, 61, 0.3);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 34px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c73a30; }

.btn-ghost { border-color: var(--border); color: var(--text); margin-left: 12px; }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Sections ---------- */

section { padding: 76px 0; }
section + section { border-top: 1px solid var(--border); }
section.alt { background: var(--bg-alt); }

h2 {
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-lede {
  color: var(--muted);
  max-width: 600px;
  margin: 0 0 44px;
}

/* ---------- Grid / cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 26px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card .icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  color: var(--accent);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.stat {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}

.stat .num {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat .label {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Prose (about) ---------- */

.prose { max-width: 680px; }
.prose p { color: var(--muted); }
.prose h3 { margin: 38px 0 10px; font-size: 1.15rem; color: var(--text); }

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
  display: flex;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline li:last-child { border-bottom: 0; }

.timeline .year {
  flex: none;
  width: 60px;
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}

input, textarea, select {
  width: 100%;
  padding: 11px 13px;
  margin-bottom: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { min-height: 130px; resize: vertical; }

.detail { margin-bottom: 26px; }
.detail .k {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.detail .v { color: var(--text); }

.note {
  background: var(--accent-soft);
  border: 1px solid rgba(224, 72, 61, 0.3);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 30px;
}

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  header.site .wrap { height: auto; padding-top: 14px; padding-bottom: 14px; flex-direction: column; align-items: flex-start; }
  nav.site ul { gap: 18px; flex-wrap: wrap; }
  .hero { padding: 60px 0 54px; }
  section { padding: 54px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
}

/* ---------- Client area ---------- */

.badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(224, 72, 61, 0.35);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: middle;
}

.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }

code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.88em;
}

.timeline .year { width: 78px; }
