/* ============================================================
   GNEXZ — LAYOUT
   Containers, grids, sections, hero patterns.
   ============================================================ */

/* ── SECTION BASE ── */
.section {
  padding: var(--section-pad) var(--sp-12);
  position: relative;
}

.section-mid  { background: #0C1827; }
.section-blue { background: var(--blue-800); }
.section-green { background: var(--green-900); }
.section-dark { background: var(--neutral-950); }

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: var(--sp-12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.section-header.full {
  grid-template-columns: 1fr;
  max-width: 680px;
}

.section-num {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow-700);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-2);
}

.section-num::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--yellow-700);
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
}

.section-light .section-title { color: var(--neutral-900); }
.section-light .section-num  { color: var(--yellow-700); }

.section-subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--neutral-500);
  line-height: 1.75;
  margin-top: var(--sp-3);
}

.section-light .section-subtitle { color: var(--neutral-800); }

.section-desc {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--neutral-500);
  line-height: 1.8;
}

.section-light .section-desc { color: var(--neutral-800); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: var(--sp-16) var(--sp-12) var(--sp-12);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(46, 74, 99, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(47, 79, 70, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, var(--blue-950) 0%, #0B1829 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46,74,99,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,74,99,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-geo {
  position: absolute;
  top: var(--sp-12);
  right: var(--sp-12);
  width: 280px;
  height: 280px;
  border: 1px solid rgba(46, 74, 99, 0.25);
  border-radius: 2px;
  transform: rotate(12deg);
  opacity: 0.4;
}

.hero-geo::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(46, 74, 99, 0.2);
  border-radius: 2px;
  transform: rotate(-8deg);
}

.hero-geo::after {
  content: '';
  position: absolute;
  inset: 45px;
  border: 1px solid rgba(242, 183, 5, 0.08);
  border-radius: 2px;
  transform: rotate(5deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow-500);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--yellow-500);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 600;
  line-height: 0.92;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-4);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) 0.4s forwards;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(229, 229, 229, 0.55);
  margin-bottom: var(--sp-6);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s var(--ease-out) 0.6s forwards;
}

.hero-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 400;
  color: var(--neutral-500);
  max-width: 520px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.9s var(--ease-out) 0.8s forwards;
}

.hero-meta {
  position: absolute;
  bottom: var(--sp-8);
  right: var(--sp-12);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.2s forwards;
}

.hero-meta-item { text-align: right; }

.hero-meta-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neutral-800);
  display: block;
}

.hero-meta-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--neutral-500);
}

.hero-divider {
  width: 1px;
  height: 32px;
  background: var(--blue-700);
}

/* ── HERO SPLIT VARIANT ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
}

.hero-split .hero-left,
.hero-split .hero-right {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ── GRID UTILITIES ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

/* ── SIDEBAR LAYOUT (for docs/brandbook pages) ── */
.layout-sidebar {
  display: grid;
  grid-template-columns: var(--nav-width) 1fr;
}

.layout-sidebar .main-content {
  margin-left: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .section {
    padding: var(--sp-8) var(--sp-3);
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .hero {
    padding: var(--sp-8) var(--sp-3) var(--sp-6);
    min-height: 80vh;
  }

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

  .hero-meta {
    position: static;
    margin-top: var(--sp-6);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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