.page-section {
  position: relative;
  padding: var(--space-20) 0;
}

.page-section.is-light {
  background: var(--bg-primary);
}

.page-section.is-soft {
  background: var(--bg-secondary);
}

.page-section.is-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
/* Translucent backgrounds for non-hero sections (particles show through subtly) */
.page-section.is-light:not([id*="hero"]) {
  background: rgba(255, 255, 255, 0.96);
}

.page-section.is-soft:not([id*="hero"]) {
  background: rgba(248, 248, 252, 0.96);
}

.page-section.is-dark:not([id*="hero"]) {
  background: rgba(11, 11, 16, 0.97);
}

.page-section.full-bleed {
  padding-left: 0;
  padding-right: 0;
}

/* --- Split layouts --- */

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-10);
  align-items: center;
}

.split-layout.reversed > :first-child {
  order: 2;
}

.split-layout.reversed > :last-child {
  order: 1;
}

.split-editorial {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-10);
  align-items: center;
}

.split-reversed {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-10);
  align-items: center;
}

/* --- Horizontal flow --- */

.flow-horizontal {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
}

/* --- Editorial --- */

.editorial {
  max-width: 64ch;
}

.editorial p {
  margin: var(--space-4) 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pull-quote {
  display: block;
  margin-top: var(--space-6);
  padding-left: var(--space-4);
  border-left: 3px solid var(--green);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
}

/* --- CTAs --- */

.inline-cta {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.inline-trust {
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Grids --- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.grid-3-asymmetric {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-5);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.stack-center {
  text-align: center;
}

@media (max-width: 1024px) {
  .page-section {
    padding: var(--space-16) 0;
  }

  .split-layout,
  .split-editorial,
  .split-reversed,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .page-section {
    padding: var(--space-12) 0;
  }

  .split-layout,
  .split-editorial,
  .split-reversed,
  .grid-3,
  .grid-3-asymmetric,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .pull-quote {
    font-size: 20px;
  }
}
