.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 20, 0.75);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
}
.brand:hover { color: var(--fg); }
.brand .logo { height: 22px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  color: var(--fg-dim);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.25rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--fg); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 1.1rem;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 15, 20, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1rem;
    gap: 0.15rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0.5rem; }
  .nav a::after { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  background: rgba(10, 15, 20, 0.22);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 75% 30%, rgba(212, 163, 115, 0.18), transparent 60%),
    radial-gradient(600px 400px at 20% 80%, rgba(95, 160, 176, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 600;
  padding-left: 2.5rem;
  position: relative;
}
.hero .eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 2rem; height: 1px;
  background: var(--accent);
}
.hero h1 { margin-bottom: 0.5rem; max-width: 14ch; }
.hero .meta {
  color: var(--fg-dim);
  font-size: 1.1rem;
  margin: 1.5rem 0 2.5rem;
  max-width: 55ch;
}
.hero .ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Sections — translucent panels above the background chatter */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--border);
  position: relative;
  background: rgba(10, 15, 20, 0.28);
}
.section.no-border { border-top: 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  margin: 0;
  display: inline-block;
  position: relative;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1rem;
  width: 2.5rem; height: 2px;
  background: var(--accent);
}
.section-head .subtitle {
  color: var(--fg-faint);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Card grids have no bottom margin, so a heading placed right after one would
   touch it. Add space only in that exact case — not to every h2. */
.grid + h2, .grid-2 + h2 { margin-top: 2rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  color: var(--fg-faint);
  font-size: 0.8rem;
  margin-top: 4rem;
  letter-spacing: 0.05em;
  position: relative;
  background: rgba(10, 15, 20, 0.28);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--fg-dim); }
.site-footer a:hover { color: var(--accent); }
