/* ═══════════════════════════════════════════════════════════════
   Families — Cinematic Landing Page
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;

  --bg: #0c0a09;
  --bg-warm: #110e0c;
  --text: #fafaf9;
  --text-dim: #d6d3d1;
  --muted: #a8a29e;
  --accent: #d4a574;
  --accent-bright: #e8c49a;
  --glow: rgba(212, 165, 116, 0.12);
  --glow-strong: rgba(212, 165, 116, 0.25);
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(212, 165, 116, 0.15);

  --phone-radius: 32px;
  --phone-shadow:
    0 60px 120px rgba(0, 0, 0, 0.7),
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 80px rgba(212, 165, 116, 0.06);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 165, 116, 0.2) transparent;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

img { display: block; max-width: 100%; }
a { color: inherit; }


/* ═══════════════════════════════════════════════════════════════
   SCROLL-REVEAL ANIMATION
   ═══════════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════
   NAV — fixed, glass-morphism, hamburger, CTA
   ═══════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 28px;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(12, 10, 9, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 16px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Nav CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--bg);
  padding: 9px 24px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  transition: background 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

/* Hamburger button (hidden on desktop) */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s, opacity 0.25s;
}

.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-hamburger span:nth-child(3) { bottom: 0; }

.nav-hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE MENU — full-screen overlay
   ═══════════════════════════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(12, 10, 9, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-menu-inner a {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-dim);
  text-decoration: none;
  padding: 12px 0;
  transition: color 0.3s;
}

.mobile-menu-inner a:hover {
  color: var(--accent);
}

.mobile-menu-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.mobile-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 16px 40px !important;
  border-radius: 100px;
  font-family: var(--sans) !important;
  font-size: 0.9375rem !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}


/* ═══════════════════════════════════════════════════════════════
   SHARED COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* Eyebrow labels */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

/* Section headings */
.section-heading {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.section-subtext {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 560px;
}

/* Primary CTA button */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  padding: 16px 40px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(255, 255, 255, 0.12),
    0 0 60px rgba(212, 165, 116, 0.08);
}

/* Outline CTA */
.cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 14px 36px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.cta-outline:hover {
  background: var(--glow);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Dark background fallback for sections without video */
.dark-bg {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 50%, var(--bg) 100%);
}

/* Shared video background */
.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Overlay gradient on video sections */
.video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Phone frame effect */
.phone-frame {
  position: relative;
  border-radius: var(--phone-radius);
  overflow: hidden;
  box-shadow: var(--phone-shadow);
}

.phone-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--phone-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 1 — HERO
   Full-screen video, massive typography
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero .video-bg {
  opacity: 0.55;
  filter: saturate(0.6) brightness(1);
}

.hero .video-overlay {
  background:
    linear-gradient(180deg,
      rgba(12, 10, 9, 0.2) 0%,
      rgba(12, 10, 9, 0.05) 30%,
      rgba(12, 10, 9, 0.35) 70%,
      var(--bg) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 160px 0 140px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Subtle floating particles */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  animation: drift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.1); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  animation: scroll-fade 2.5s ease-in-out infinite;
}

.scroll-hint span {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

.scroll-hint svg {
  width: 14px;
  height: 20px;
  opacity: 0.6;
}

@keyframes scroll-fade {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(6px); }
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 2 — PHONE SHOWCASE
   Three phones with perspective, glow, depth
   ═══════════════════════════════════════════════════════════════ */
.phone-showcase {
  padding: 60px 0 140px;
  position: relative;
  overflow: hidden;
}

/* Ambient glow behind phones */
.phone-showcase::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(212, 165, 116, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.phones-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  perspective: 1200px;
}

.phone-card {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phone-card.center {
  z-index: 3;
}

.phone-card.center .phone-frame {
  width: 300px;
}

.phone-card.left {
  z-index: 2;
  transform: perspective(1200px) rotateY(8deg) translateZ(-40px) translateX(10px);
}

.phone-card.left .phone-frame {
  width: 250px;
  opacity: 0.85;
}

.phone-card.right {
  z-index: 2;
  transform: perspective(1200px) rotateY(-8deg) translateZ(-40px) translateX(-10px);
}

.phone-card.right .phone-frame {
  width: 250px;
  opacity: 0.85;
}

.phone-card:hover {
  transform: perspective(1200px) rotateY(0deg) translateZ(0) scale(1.02);
}

/* Phone glow on hover */
.phone-card .phone-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--phone-radius);
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

.phone-card:hover .phone-frame::before {
  opacity: 1;
}

/* Floating animation for center phone */
.phone-card.center {
  animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 3 — THE MOLECULE
   Video background with text overlay and phone screenshot
   ═══════════════════════════════════════════════════════════════ */
.molecule-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #1a1512 15%, #1a1512 85%, var(--bg) 100%);
}

.molecule-section .video-bg {
  opacity: 0.5;
  filter: saturate(0.55) brightness(0.9);
}

.molecule-section .video-overlay {
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(17, 14, 12, 0.6) 15%,
      rgba(17, 14, 12, 0.6) 85%,
      var(--bg) 100%
    );
}

.molecule-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 120px 0;
}

.molecule-text .section-heading {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.molecule-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.molecule-phone {
  display: flex;
  justify-content: center;
}

.molecule-phone .phone-frame {
  width: 300px;
  animation: float-gentle 8s ease-in-out infinite;
  animation-delay: -2s;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 4 — FIVE SYSTEMS
   Video background + elegant card grid
   ═══════════════════════════════════════════════════════════════ */
.systems-section {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.systems-section .video-bg {
  opacity: 0.4;
  filter: saturate(0.5) brightness(0.8);
}

.systems-section .video-overlay {
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(12, 10, 9, 0.6) 10%,
      rgba(12, 10, 9, 0.6) 90%,
      var(--bg) 100%
    );
}

.systems-inner {
  position: relative;
  z-index: 2;
}

/* Subtle radial glow at top */
.systems-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  z-index: 3;
}

.systems-header {
  text-align: center;
  margin-bottom: 80px;
}

.systems-header .section-subtext {
  margin: 0 auto;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.sys-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 24px 36px;
  text-align: center;
  transition: background 0.4s, border-color 0.4s, transform 0.4s;
  position: relative;
  overflow: hidden;
}

.sys-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s, width 0.4s;
}

.sys-card:hover {
  background: var(--card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.sys-card:hover::before {
  opacity: 1;
  width: 80%;
}

.sys-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.sys-card:hover .sys-icon {
  opacity: 1;
}

.sys-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}

.sys-card p {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 5 — PORTRAITS
   Video background, large aura portrait
   ═══════════════════════════════════════════════════════════════ */
.portraits-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #18140f 15%, #18140f 85%, var(--bg) 100%);
}

.portraits-section .video-bg {
  opacity: 0.25;
  filter: saturate(0.3) brightness(0.7);
}

.portraits-section .video-overlay {
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(17, 14, 12, 0.82) 20%,
      rgba(17, 14, 12, 0.82) 80%,
      var(--bg) 100%
    );
}

.portraits-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 120px 0;
}

.portraits-text .section-heading {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.portraits-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.portrait-showcase {
  display: flex;
  justify-content: center;
  position: relative;
}

.portrait-image {
  width: 380px;
  border-radius: 24px;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(212, 165, 116, 0.08);
  transition: transform 0.5s;
}

.portrait-image:hover {
  transform: scale(1.02);
}

/* Glow ring behind portrait */
.portrait-showcase::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.06) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 6 — THE READINGS
   Video background + text + phone screenshot (2-column)
   ═══════════════════════════════════════════════════════════════ */
.readings-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #1a1512 15%, #1a1512 85%, var(--bg) 100%);
}

.readings-section .video-bg {
  opacity: 0.45;
  filter: saturate(0.55) brightness(0.9);
}

.readings-section .video-overlay {
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(17, 14, 12, 0.55) 20%,
      rgba(17, 14, 12, 0.55) 80%,
      var(--bg) 100%
    );
}

.readings-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 120px 0;
}

.readings-text .section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
}

.readings-text p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Feature pills */
.reading-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.reading-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.reading-pill span {
  color: var(--accent);
  font-size: 1rem;
}

.readings-phone {
  display: flex;
  justify-content: center;
}

.readings-phone .phone-frame {
  width: 300px;
  animation: float-gentle 7s ease-in-out infinite;
  animation-delay: -1s;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 7 — RELATIONSHIPS
   Centered header + two phones side by side
   ═══════════════════════════════════════════════════════════════ */
.relationships-section {
  padding: 160px 0;
  position: relative;
}

.relationships-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.rel-header {
  text-align: center;
  margin-bottom: 60px;
}

.rel-header .section-subtext {
  margin: 0 auto;
  max-width: 640px;
}

.rel-phones {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.rel-phones .phone-frame {
  width: 280px;
  animation: float-gentle 7s ease-in-out infinite;
}

.rel-phones .phone-frame:nth-child(2) {
  animation-delay: -3s;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 8 — ENGINE TEASER
   Video background, technical essay link
   ═══════════════════════════════════════════════════════════════ */
.engine-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #18140f 15%, #18140f 85%, var(--bg) 100%);
}

.engine-section .video-bg {
  opacity: 0.45;
  filter: saturate(0.5) brightness(0.85);
}

.engine-section .video-overlay {
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(17, 14, 12, 0.55) 20%,
      rgba(17, 14, 12, 0.55) 80%,
      var(--bg) 100%
    );
}

.engine-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 120px 0;
}

.engine-inner .section-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

.engine-inner p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* Decorative engine stats */
.engine-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.engine-stat {
  text-align: left;
}

.engine-stat .stat-number {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.engine-stat .stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 9 — FAMILY ASTRO FREQUENCIES
   Video background + visualizer animation
   ═══════════════════════════════════════════════════════════════ */
.frequencies-section {
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.frequencies-section .video-bg {
  opacity: 0.4;
  filter: saturate(0.5) brightness(0.8);
}

.frequencies-section .video-overlay {
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(12, 10, 9, 0.55) 10%,
      rgba(12, 10, 9, 0.55) 90%,
      var(--bg) 100%
    );
}

.frequencies-inner {
  position: relative;
  z-index: 2;
}

.frequencies-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  z-index: 3;
}

.freq-header {
  margin-bottom: 60px;
}

.freq-header .section-heading {
  margin-bottom: 12px;
}

.freq-header .section-subtext {
  margin: 0 auto;
}

/* Visualizer bars */
.freq-visualizer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  margin-bottom: 48px;
}

.freq-bar {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(212, 165, 116, 0.2));
  animation: bar-pulse var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 0.6;
}

@keyframes bar-pulse {
  0%, 100% { height: var(--min-h); opacity: 0.3; }
  50% { height: var(--max-h); opacity: 0.8; }
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 10 — FINAL CTA
   Video background, emotional closing
   ═══════════════════════════════════════════════════════════════ */
.final-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #1a1512 20%, #1a1512 80%, var(--bg) 100%);
}

.final-section .video-bg {
  opacity: 0.5;
  filter: saturate(0.55) brightness(0.9);
}

.final-section .video-overlay {
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(17, 14, 12, 0.5) 25%,
      rgba(17, 14, 12, 0.5) 75%,
      var(--bg) 100%
    );
}

.final-inner {
  position: relative;
  z-index: 2;
  padding: 120px 28px;
}

.final-inner .section-heading {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.final-inner .section-heading em {
  font-style: italic;
  color: var(--accent);
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  padding: 80px 0 60px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 32px;
  display: block;
  color: var(--text);
  text-decoration: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-legal {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.8;
  opacity: 0.7;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--accent);
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 32px auto;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (max 900px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  .system-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .molecule-inner,
  .portraits-inner,
  .readings-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .molecule-text,
  .portraits-text,
  .readings-text {
    order: 2;
  }

  .molecule-phone,
  .portrait-showcase,
  .readings-phone {
    order: 1;
  }

  .molecule-text .section-subtext,
  .portraits-text .section-subtext,
  .readings-text .section-subtext {
    margin: 0 auto;
  }

  .phones-row {
    gap: 20px;
  }

  .phone-card.center .phone-frame {
    width: 240px;
  }

  .phone-card.left .phone-frame,
  .phone-card.right .phone-frame {
    width: 190px;
  }

  .phone-card.left {
    transform: perspective(1200px) rotateY(6deg) translateZ(-30px);
  }

  .phone-card.right {
    transform: perspective(1200px) rotateY(-6deg) translateZ(-30px);
  }

  .portrait-image {
    width: 300px;
  }

  .portrait-showcase::before {
    width: 340px;
    height: 340px;
  }

  .rel-phones {
    gap: 20px;
  }

  .rel-phones .phone-frame {
    width: 220px;
  }

  .engine-stats {
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .engine-stat {
    text-align: center;
  }

  .reading-features {
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (max 600px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .shell {
    padding: 0 20px;
  }

  .site-nav {
    padding: 0 20px;
  }

  .nav-inner {
    height: 64px;
    padding: 0;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero-content {
    padding: 130px 0 100px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 9vw, 3.4rem);
  }

  .scroll-hint {
    bottom: 24px;
  }

  .phone-card.left,
  .phone-card.right {
    display: none;
  }

  .phone-card.center .phone-frame {
    width: 280px;
  }

  .phone-card.center {
    animation: none;
  }

  .system-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .sys-card {
    padding: 28px 16px;
  }

  .molecule-inner,
  .portraits-inner,
  .readings-inner {
    padding: 80px 0;
  }

  .molecule-phone .phone-frame,
  .readings-phone .phone-frame {
    width: 260px;
  }

  .portrait-image {
    width: 260px;
  }

  .readings-inner,
  .engine-inner {
    padding: 80px 0;
  }

  .rel-phones {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .rel-phones .phone-frame {
    width: 260px;
  }

  .engine-stats {
    gap: 20px;
  }

  .engine-stat .stat-number {
    font-size: 1.5rem;
  }

  .freq-visualizer {
    height: 80px;
  }

  .frequencies-section,
  .systems-section {
    padding: 100px 0;
  }

  .cta {
    padding: 14px 32px;
    font-size: 0.875rem;
  }

  .cta-outline {
    padding: 12px 28px;
    font-size: 0.875rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .mobile-menu-inner a {
    font-size: 1.5rem;
  }
}
