/* ============================================================
   layout.css — Container, Grid, Header
   ============================================================ */

/* ── Starfield canvas ───────────────────────────────────────── */
#mxr-starfield {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 28px;
  position: relative;
  z-index: var(--z-base);
}

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: var(--z-nav);
  padding-block: 14px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border-bottom: 1px solid var(--border-faint);
  transition: background var(--t-normal);
}

.site-header.scrolled {
  background: rgba(0,0,0,0.82);
  border-bottom-color: var(--border-soft);
}

.header-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-frame {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-squid-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 16px rgba(180, 210, 255, 0.4));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  position: relative;
  z-index: 2;
}

.brand-squid-flare {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.5;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.brand:hover .brand-squid-img {
  transform: scale(1.18) rotate(45deg);
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 1)) drop-shadow(0 0 28px rgba(200, 225, 255, 0.85));
}

.brand:hover .brand-squid-flare {
  opacity: 1;
  transform: scale(1.4);
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-wordmark {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.brand-wordmark em {
  font-style: normal;
  color: var(--accent);
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  letter-spacing: -0.01em;
}

.nav-links a:hover { color: var(--text-accent); }

/* Header CTA */
.header-cta {
  flex-shrink: 0;
}

/* ── Page sections spacing ──────────────────────────────────── */
main { padding-top: 72px; }

section { position: relative; }

/* ── Section header ─────────────────────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 14px;
}

.section-head p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.65;
}

.section-head p a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
