*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--color-dark);
  /* html must NOT have overflow hidden — Lenis needs to scroll the document */
}

body {
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--color-dark);
  /* Constrain body to viewport — deck overflows inside, not the document */
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ── Horizontal deck (desktop) ────────────────────────────────────── */

/* The deck is wider than the viewport but clipped by body overflow:hidden.
   Lenis translates the deck via CSS transform — no native scroll involved,
   so no scrollbar appears and no document overflow is created.           */
.deck-container {
  display: flex;
  width: max-content;
  height: 100vh;
  position: relative;
  z-index: 1;   /* sits above #bg-stage (z:0) */
}

.slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  padding: var(--margin-y) var(--margin-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: transparent;   /* bg handled by #bg-stage */
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.content-wrapper {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  width: 100%;
}

.flex-center {
  align-items: center;
  text-align: center;
}

/* Overlay gradients */
.overlay-gradient-dark,
.overlay-gradient-light {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.overlay-gradient-dark {
  background: linear-gradient(90deg,
    rgba(17, 11, 7, 0.8) 0%,
    rgba(17, 11, 7, 0.2) 100%
  );
}

.overlay-gradient-light {
  background: linear-gradient(90deg,
    rgba(254, 222, 185, 0.9) 0%,
    rgba(254, 222, 185, 0.3) 100%
  );
}

/* ── Responsive: vertical on mobile ──────────────────────────────── */

@media (max-width: 900px) {
  body {
    width: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .deck-container {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .slide {
    /* Reset desktop flex item sizing */
    flex: none;
    width: 100%;
    /* Full viewport height per slide — svh accounts for mobile browser chrome */
    height: 100svh;
    min-height: 100svh;
    border-right: none;
  }

  .grid-2 { grid-template-columns: 1fr; gap: var(--space-md); }
  p, li   { max-width: 100%; }
}
