/* Super Design System — Paper & Ink */
:root {
  --paper: #f7f5ef;
  --ink: #0a0a0a;
  --muted: #6b665f;
  --white: #ffffff;
  --line: rgba(10,10,10,0.14);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --shadow-soft: 0 22px 70px rgba(0,0,0,0.12);
  --shadow-hard: 0 30px 90px rgba(0,0,0,0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(10,10,10,0.06), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(10,10,10,0.05), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(10,10,10,0.04), transparent 60%),
    var(--paper);
}

.page { overflow-x: hidden; position: relative; }

.ambient-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.paper-noise {
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="120" height="120" filter="url(%23n)" opacity="0.035"/></svg>');
  pointer-events: none;
  z-index: 1;
}

.shell { max-width: 1200px; padding: 0 32px; margin: 0 auto; }

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(247,245,239,0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  z-index: 10;
}

.brand img { width: 36px; height: 36px; }

.nav-links a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.btn-black { background: var(--ink); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hard); }

.hero { padding: 200px 0 140px; position: relative; z-index: 2; }
.hero-inner { text-align: center; }
.hero h1 {
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1.05;
  max-width: 1120px;
  margin: 0 auto 24px;
}
.hero-sub {
  font-size: 20px;
  max-width: 820px;
  margin: 0 auto 36px;
  color: var(--muted);
}
.hero-actions { display: flex; justify-content: center; gap: 18px; margin-bottom: 60px; }

.media-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
}
.media-frame video { width: 100%; height: 100%; object-fit: cover; }

.chapter { padding: 140px 0; position: relative; z-index: 2; }
.chapter h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 48px; text-align: center; }

/* Bento grid with explicit dense flow */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  grid-auto-flow: dense;
}

.bento-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.bento-item.highlight { background: var(--ink); color: var(--white); }

.long-form-guide { padding: 140px 0; }
.long-form-guide h2 { margin-top: 64px; }
.long-form-guide ul { padding-left: 20px; }

.cta-band { padding: 160px 0; text-align: center; }

@media (max-width: 768px) {
  .hero { padding: 160px 0 120px; }
  .nav { grid-template-columns: auto auto; }
  .nav-links { display: none; }
  .hero-actions { flex-direction: column; }
  .chapter { padding: 100px 0; }
}
