.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.75rem);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(8, 8, 13, 0.9);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.1;
}

.brand-mark {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}

.brand-tag {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-panel);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--gold-soft);
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 3.5rem) clamp(1.25rem, 4vw, 2.75rem) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(212, 175, 55, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(93, 173, 226, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 35% at 55% 90%, rgba(46, 204, 113, 0.06), transparent 45%),
    linear-gradient(180deg, #101018 0%, var(--bg) 50%, #050508 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(93, 173, 226, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 55% 35%, black, transparent 70%);
  animation: gridDrift 24s linear infinite;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: -30% 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(93, 173, 226, 0.04) 46%,
    rgba(212, 175, 55, 0.05) 50%,
    transparent 54%
  );
  background-size: 100% 240%;
  animation: scan 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: min(42rem, 100%);
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-size: clamp(4rem, 14vw, 7.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}

.hero-brand .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: charIn 0.65s var(--ease) forwards;
}

.hero-rule {
  width: 0;
  height: 3px;
  margin: 0 0 1.25rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue), transparent);
  animation: ruleGrow 0.9s var(--ease) 0.2s forwards;
}

.hero-headline {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.75s var(--ease) 0.3s forwards;
}

.hero-sub {
  margin: 0 0 1.85rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease) 0.45s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease) 0.6s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.6rem 1.3rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: #14110a;
  box-shadow: var(--glow-gold);
}

.btn-primary:hover {
  background: #e0c04a;
  color: #14110a;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.section {
  position: relative;
  padding: clamp(4.5rem, 11vh, 7.5rem) clamp(1.25rem, 4vw, 2.75rem);
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.25rem, 4vw, 2.75rem);
  right: clamp(1.25rem, 4vw, 2.75rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 12%, var(--border) 88%, transparent);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.section-head .kicker { margin-bottom: 0.55rem; }

.section-head h2 {
  margin: 0;
}

.section-head .head-aside {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
  max-width: 36rem;
  justify-self: end;
}

.kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kicker-gold { color: var(--gold); }
.kicker-blue { color: var(--blue); }
.kicker-green { color: var(--green); }
.kicker-red { color: var(--red); }

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section p.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: none;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.25rem, 6vw, 4.5rem);
  align-items: center;
}

.section-split.is-art-left {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.section-muted {
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.03), transparent 30%, transparent 70%, rgba(93, 173, 226, 0.04)),
    linear-gradient(180deg, transparent, rgba(16, 16, 24, 0.92), transparent);
}

.copy h2 {
  max-width: 16ch;
}

.art-float {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(240px, 38vw, 400px);
}

.art-float::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background:
    radial-gradient(circle at 35% 30%, rgba(212, 175, 55, 0.22), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(93, 173, 226, 0.18), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(46, 204, 113, 0.08), transparent 45%);
  filter: blur(2px);
  animation: blobPulse 8s ease-in-out infinite;
}

.art-float::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
  box-shadow: var(--glow-gold), var(--glow-blue);
  animation: blobPulse 6s ease-in-out infinite reverse;
}

.art-float span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.art-float img {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  height: auto;
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
  animation: artFloat 5.5s ease-in-out infinite;
}

.art-float.has-image::before,
.art-float.has-image::after,
.art-float.has-image span {
  display: none;
}

.art-float.is-blue::before {
  background:
    radial-gradient(circle at 40% 35%, rgba(93, 173, 226, 0.28), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(212, 175, 55, 0.12), transparent 50%);
}

/* Goals: three columns with dividers */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.goal-item {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-right: 1px solid var(--border);
}

.goal-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.goal-item:nth-child(1) { padding-left: 0; }
.goal-item:nth-child(2),
.goal-item:nth-child(3) { padding-left: 1.5rem; }

.goal-item h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.goal-item:nth-child(1) h3 { color: var(--gold); }
.goal-item:nth-child(2) h3 { color: var(--blue); }
.goal-item:nth-child(3) h3 { color: var(--green); }

.goal-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.mod-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: stretch;
}

.policy-panel {
  margin: 0;
  display: flex;
  align-items: center;
  padding: 1.5rem 1.4rem;
  border-radius: 6px;
  border: 1px solid rgba(192, 57, 43, 0.5);
  background: rgba(192, 57, 43, 0.09);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  box-shadow: var(--glow-red);
}

.join-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 2rem;
  align-items: center;
}

.join .cta-row {
  opacity: 1;
  animation: none;
  justify-content: flex-end;
}

.site-footer {
  padding: 1.6rem clamp(1.25rem, 4vw, 2.75rem) 2.1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal.is-visible .goal-item {
  opacity: 0;
  animation: fadeUp 0.55s var(--ease) forwards;
}

.reveal.is-visible .goal-item:nth-child(1) { animation-delay: 0.05s; }
.reveal.is-visible .goal-item:nth-child(2) { animation-delay: 0.12s; }
.reveal.is-visible .goal-item:nth-child(3) { animation-delay: 0.19s; }

.reveal.is-visible .art-float {
  animation: fadeUp 0.8s var(--ease) 0.08s both;
}

@keyframes charIn {
  to { opacity: 1; transform: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes ruleGrow {
  to { width: 6.5rem; }
}

@keyframes gridDrift {
  to { transform: translateY(56px); }
}

@keyframes scan {
  0%, 100% { background-position: 0 -30%; opacity: 0; }
  40% { opacity: 1; }
  70% { background-position: 0 130%; opacity: 0.25; }
}

@keyframes blobPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.06) rotate(4deg); }
}

@keyframes artFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }

  .section-head,
  .section-split,
  .section-split.is-art-left,
  .mod-split,
  .join-split,
  .goals-grid {
    grid-template-columns: 1fr;
  }

  .section-head .head-aside {
    justify-self: start;
  }

  .goal-item,
  .goal-item:nth-child(2),
  .goal-item:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 1.35rem 0;
  }

  .goal-item:last-child {
    border-bottom: 0;
  }

  .art-float {
    order: -1;
    min-height: 220px;
  }

  .join .cta-row {
    justify-content: flex-start;
  }
}
