:root {
  --bg: #101312;
  --panel: #151918;
  --panel2: #181d1b;
  --panel3: #1c211f;
  --line: rgba(230, 235, 228, 0.09);
  --line2: rgba(230, 235, 228, 0.14);
  --text: #e8ebe6;
  --muted: #a3aaa2;
  --soft: #737b73;
  --accent: #aeb9a8;
  --shadow: rgba(0, 0, 0, 0.36);
  --radius: 16px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(210, 218, 204, 0.08), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(165, 178, 160, 0.06), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  min-height: 86px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 19, 18, 0.82);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: #0c0e0d;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: invert(1) contrast(1.18);
  mix-blend-mode: screen;
  opacity: 0.86;
}

.brand-word {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  position: relative;
}

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

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 2px;
  border-radius: 10px;
  background: var(--accent);
}

.tools {
  color: var(--soft);
  font-size: 13px;
}

.shell {
  width: min(1500px, calc(100vw - 64px));
  margin: 28px auto 40px;
}

.page-hero {
  min-height: 280px;
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 42px;
  background:
    linear-gradient(90deg, rgba(16, 19, 18, 0.96), rgba(16, 19, 18, 0.58)),
    url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1800&q=85") center / cover;
  box-shadow: 0 20px 80px var(--shadow);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: #c7ccc4;
  font-size: 17px;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.012));
  padding: 24px;
}

.card small {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h2 {
  margin: 22px 0 10px;
  font-size: 22px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.placeholder {
  margin-top: 18px;
  border: 1px dashed var(--line2);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
}

@media (max-width: 960px) {
  .header {
    grid-template-columns: 1fr;
    padding: 18px 20px;
  }

  .nav {
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .shell {
    width: calc(100vw - 24px);
    margin-top: 12px;
  }

  .page-hero {
    padding: 28px 22px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
