/* ==========================================================================
   THE BUILDING LIFE ACADEMY — DARK PREMIUM DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #161616;
  --bg-card: #1a1a1a;
  --border-subtle: #262626;
  --border-accent: #333333;

  --text-primary: #f0ede6;
  --text-secondary: #a8a39a;
  --text-muted: #6b6760;

  --gold: #c9a961;
  --gold-bright: #d4b773;
  --gold-dim: #8a7544;

  --accent-warm: #e8d9b0;

  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --max-width: 1200px;
  --max-width-text: 760px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-bright);
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-primary { color: var(--text-primary); }
.text-muted { color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}

.serif { font-family: var(--font-serif); }
.italic { font-style: italic; }

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-text {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 2rem auto;
}

.divider-left {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-200%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  background: radial-gradient(ellipse at center, rgba(201, 169, 97, 0.06) 0%, transparent 70%), var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(201, 169, 97, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 97, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-content {
  max-width: 960px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

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

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-style: italic;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1.5rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Manifesto Block */
.manifesto-block {
  background: var(--bg-secondary);
  padding: 5rem 3rem;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  position: relative;
}

.manifesto-block p {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.manifesto-block p::before,
.manifesto-block p::after {
  content: '"';
  color: var(--gold);
  font-size: 2rem;
  font-weight: 400;
}

/* ===== LAW CHAIN ===== */
.law-chain {
  background: var(--bg-secondary);
  padding: 6rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.law-list {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.law-list li {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--text-primary);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.law-list li:last-child {
  border-bottom: none;
  color: var(--gold);
  font-style: italic;
}

.law-list li:hover {
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* ===== LAYERS GRID ===== */
.layers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.layer-card {
  background: var(--bg-card);
  padding: 3rem 2rem;
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.layer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.layer-card:hover::before {
  transform: scaleX(1);
}

.layer-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 1rem;
}

.layer-card h4 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.layer-card p {
  font-size: 0.9375rem;
  margin: 0;
}

/* ===== PARTS GRID (Encyclopedia) ===== */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.part-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--text-primary);
}

.part-card:hover {
  border-color: var(--gold);
  background: var(--bg-tertiary);
  transform: translateY(-4px);
}

.part-card .part-number {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.part-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.part-card .part-subtitle {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.part-card .part-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* ===== CHAPTER LIST (within Part) ===== */
.chapter-list {
  list-style: none;
  margin-top: 1rem;
}

.chapter-list-item {
  border-bottom: 1px solid var(--border-subtle);
}

.chapter-list-item:last-child {
  border-bottom: none;
}

.chapter-list-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  color: var(--text-primary);
  transition: all 0.3s ease;
  gap: 2rem;
}

.chapter-list-item a:hover {
  color: var(--gold);
  padding-left: 1rem;
}

.chapter-list-item .ch-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.875rem;
  min-width: 100px;
}

.chapter-list-item .ch-title {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.chapter-list-item .ch-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
}

/* ===== CHAPTER PAGE ===== */
.chapter-page {
  padding: 10rem 0 6rem;
}

.chapter-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 5rem;
}

.chapter-breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.chapter-breadcrumb a {
  color: var(--text-muted);
}

.chapter-breadcrumb a:hover {
  color: var(--gold);
}

.chapter-header h1 {
  margin-bottom: 1.5rem;
}

.chapter-main-idea {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.core-question {
  background: var(--bg-secondary);
  border-left: 3px solid var(--gold);
  padding: 2rem 2.5rem;
  margin: 3rem auto;
  max-width: var(--max-width-text);
}

.core-question .label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

.core-question .question {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Module list */
.modules-section {
  max-width: var(--max-width-text);
  margin: 0 auto;
}

.module {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.module:last-child {
  border-bottom: none;
}

.module-number {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.module h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.module-question {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold-dim);
}

.module-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.module-content p {
  margin-bottom: 1.25rem;
}

.module-content strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Chapter navigation */
.chapter-nav {
  max-width: var(--max-width-text);
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.chapter-nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chapter-nav a:hover {
  color: var(--gold);
}

/* ===== PATH CARDS ===== */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  text-align: left;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  color: var(--text-primary);
}

.path-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.path-icon {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.path-card h4 {
  font-family: var(--font-serif);
  margin-bottom: 0.75rem;
}

.path-card p {
  font-size: 0.9375rem;
  margin: 0;
  color: var(--text-secondary);
}

/* ===== PHILOSOPHY / LONG-FORM PAGES ===== */
.long-form {
  padding: 10rem 0 6rem;
}

.long-form .container-text > * {
  margin-bottom: 1.5rem;
}

.long-form h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.long-form h2 {
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.long-form h3 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.long-form p {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.long-form blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 0 1rem 2rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
}

.long-form ul, .long-form ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.long-form li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.long-form table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
}

.long-form th,
.long-form td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.long-form th {
  color: var(--gold);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8125rem;
}

.long-form td {
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  section { padding: 4rem 0; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .manifesto-block { padding: 3rem 1.5rem; }
  .manifesto-block p { font-size: 1.125rem; }
  .container, .container-text { padding: 0 1.5rem; }
}

/* ===== UTILITIES ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

::selection {
  background: var(--gold);
  color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-accent);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dim);
}

/* ===== ACADEMY LANDING (futuristic) ===== */
.landing-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 97, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 97, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 20%, transparent 75%);
}

.landing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: landing-orb-drift 18s ease-in-out infinite alternate;
}

.landing-orb--gold {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201, 169, 97, 0.35) 0%, transparent 70%);
}

.landing-orb--cool {
  width: min(400px, 55vw);
  height: min(400px, 55vw);
  bottom: 5%;
  right: -5%;
  background: radial-gradient(circle, rgba(120, 140, 180, 0.12) 0%, transparent 70%);
  animation-delay: -6s;
}

@keyframes landing-orb-drift {
  from { transform: translateX(-50%) translateY(0); }
  to { transform: translateX(-48%) translateY(24px); }
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  text-align: center;
}

.landing-hero-logo {
  max-width: min(320px, 60vw);
  width: 100%;
  margin: 0 auto 2.25rem;
  display: block;
  filter: drop-shadow(0 12px 45px rgba(0, 0, 0, 0.85));
}

.landing-hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.75rem;
  letter-spacing: -0.03em;
}

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

.landing-hero-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
}

.landing-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 3rem;
}

.landing-chip {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-subtle);
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.landing-chip:hover {
  border-color: rgba(201, 169, 97, 0.45);
  color: var(--text-primary);
}

.landing-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.landing-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.landing-mission {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.landing-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.landing-mission-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.45;
  border-left: 3px solid var(--gold);
  padding-left: 2rem;
  margin: 0;
}

.landing-mission-body p:last-child {
  margin-bottom: 0;
}

.landing-mission-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  margin-top: 3rem;
}

.landing-metric {
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.landing-metric:last-child {
  border-right: none;
}

.landing-metric-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
}

.landing-metric-label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.landing-pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}

.landing-pillar {
  background: var(--bg-card);
  padding: 2.5rem 1.75rem;
  position: relative;
  transition: background 0.35s ease, transform 0.35s ease;
}

.landing-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.landing-pillar:hover {
  background: var(--bg-tertiary);
  transform: translateY(-3px);
}

.landing-pillar:hover::before {
  opacity: 1;
}

.landing-pillar-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(201, 169, 97, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.landing-pillar-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 169, 97, 0.5);
}

.landing-pillar h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.landing-pillar p {
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.65;
}

.landing-pillar-tag {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}

.landing-podcast {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.landing-podcast-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.landing-podcast-feature {
  border: 1px solid var(--border-subtle);
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.landing-podcast-feature::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(201, 169, 97, 0.12), transparent 70%);
  pointer-events: none;
}

.landing-waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
  margin-bottom: 2rem;
}

.landing-waveform span {
  flex: 1;
  max-width: 6px;
  background: var(--gold);
  opacity: 0.5;
  animation: landing-wave 1.2s ease-in-out infinite alternate;
}

.landing-waveform span:nth-child(odd) { animation-duration: 0.9s; }
.landing-waveform span:nth-child(3n) { animation-duration: 1.4s; }
.landing-waveform span:nth-child(1) { height: 35%; animation-delay: 0s; }
.landing-waveform span:nth-child(2) { height: 55%; animation-delay: 0.1s; }
.landing-waveform span:nth-child(3) { height: 80%; animation-delay: 0.2s; }
.landing-waveform span:nth-child(4) { height: 45%; animation-delay: 0.15s; }
.landing-waveform span:nth-child(5) { height: 70%; animation-delay: 0.25s; }
.landing-waveform span:nth-child(6) { height: 40%; animation-delay: 0.05s; }
.landing-waveform span:nth-child(7) { height: 90%; animation-delay: 0.3s; }
.landing-waveform span:nth-child(8) { height: 50%; animation-delay: 0.12s; }
.landing-waveform span:nth-child(9) { height: 65%; animation-delay: 0.22s; }
.landing-waveform span:nth-child(10) { height: 38%; animation-delay: 0.08s; }
.landing-waveform span:nth-child(11) { height: 75%; animation-delay: 0.18s; }
.landing-waveform span:nth-child(12) { height: 42%; animation-delay: 0.28s; }

@keyframes landing-wave {
  from { opacity: 0.35; transform: scaleY(0.85); }
  to { opacity: 0.85; transform: scaleY(1); }
}

.landing-episode-list {
  list-style: none;
  border: 1px solid var(--border-subtle);
}

.landing-episode {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.25s ease;
}

.landing-episode:last-child {
  border-bottom: none;
}

.landing-episode:hover {
  background: rgba(201, 169, 97, 0.04);
}

.landing-episode-num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold);
  font-style: italic;
  min-width: 2rem;
}

.landing-episode h4 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.landing-episode p {
  font-size: 0.8125rem;
  margin: 0;
  color: var(--text-muted);
}

.landing-episode-duration {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}

.landing-community {
  position: relative;
  overflow: hidden;
}

.landing-community::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(201, 169, 97, 0.08), transparent 65%);
  pointer-events: none;
}

.landing-community-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 3.5rem 2.5rem;
  border: 1px solid var(--border-subtle);
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(12px);
}

.landing-email-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 2rem auto 0;
}

.landing-email-form input {
  flex: 1;
  padding: 1rem 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-right: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.landing-email-form input:focus {
  border-color: var(--gold-dim);
}

.landing-email-form input::placeholder {
  color: var(--text-muted);
}

.landing-email-form button {
  padding: 1rem 1.75rem;
  background: var(--gold);
  color: var(--bg-primary);
  border: 1px solid var(--gold);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.landing-email-form button:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.landing-form-success {
  display: none;
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
}

.landing-community-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.landing-community-links a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.landing-community-links a:hover {
  color: var(--gold);
}

.landing-cta-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 1100px) {
  .landing-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .landing-mission-grid,
  .landing-podcast-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .landing-mission-metrics {
    grid-template-columns: 1fr;
  }

  .landing-metric {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .landing-metric:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .landing-pillars-grid {
    grid-template-columns: 1fr;
  }

  .landing-email-form {
    flex-direction: column;
  }

  .landing-email-form input {
    border-right: 1px solid var(--border-subtle);
    border-bottom: none;
  }

  .landing-episode {
    grid-template-columns: auto 1fr;
  }

  .landing-episode-duration {
    grid-column: 2;
    justify-self: start;
  }
}

/* ==========================================================================
   ECOSYSTEM EXPANSION — Logo watermarks, platform components, tiers
   ========================================================================== */

/* Logo watermark backgrounds — sacred structural symbol throughout site */
.logo-watermark {
  position: relative;
  overflow: hidden;
}

.logo-watermark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/iam-building-logo.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(520px, 85vw);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.logo-watermark--large::after {
  background-size: min(720px, 110vw);
  opacity: 0.035;
}

.logo-watermark--corner::after {
  background-position: 95% 10%;
  background-size: min(380px, 60vw);
  opacity: 0.05;
}

.logo-watermark > * {
  position: relative;
  z-index: 1;
}

/* Extended navigation */
.nav-inner {
  gap: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-subtle);
  background: rgba(26, 26, 26, 0.6);
}

.lang-selector button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-selector button:hover,
.lang-selector button.active {
  color: var(--gold);
  background: rgba(201, 169, 97, 0.08);
}

.lang-selector button + button {
  border-left: 1px solid var(--border-subtle);
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 900px) {
  .nav-actions {
    margin-left: auto;
  }
  .nav-links {
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* Platform hero (Build Life Academy home) */
.platform-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.platform-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 169, 97, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(201, 169, 97, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.platform-hero-logo {
  max-width: min(200px, 40vw);
  margin: 0 auto 2rem;
  opacity: 0.9;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6));
}

.platform-hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

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

.platform-hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 3rem;
  line-height: 1.55;
}

.platform-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.platform-hero-cta .btn {
  padding: 0.875rem 1.5rem;
  font-size: 0.6875rem;
}

/* Three-layer system indicator */
.layer-system {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  margin-top: 4rem;
}

.layer-system-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border-subtle);
  text-align: center;
  transition: background 0.3s ease;
}

.layer-system-item:last-child {
  border-right: none;
}

.layer-system-item:hover {
  background: rgba(201, 169, 97, 0.04);
}

.layer-system-num {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.layer-system-item h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.layer-system-item p {
  font-size: 0.875rem;
  margin: 0;
}

/* Philosophy cards & expandable blocks */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.philosophy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.philosophy-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.philosophy-card:hover::before {
  opacity: 1;
}

.philosophy-card h3 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.philosophy-card p {
  font-size: 0.9375rem;
  margin: 0;
}

.quote-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
}

.quote-card p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  max-width: 720px;
  margin-inline: auto;
}

.expandable-block {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  margin-bottom: 1rem;
}

.expandable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: background 0.25s ease;
  gap: 1rem;
}

.expandable-header:hover {
  background: rgba(201, 169, 97, 0.04);
}

.expandable-header h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-primary);
}

.expandable-icon {
  color: var(--gold);
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.expandable-block.open .expandable-icon {
  transform: rotate(45deg);
}

.expandable-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.expandable-block.open .expandable-body {
  max-height: 600px;
  opacity: 1;
}

.expandable-body-inner {
  padding: 0 2rem 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.expandable-body-inner p {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* Academy module cards */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}

.module-card.locked {
  opacity: 0.75;
}

.module-card-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.module-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/iam-building-logo.svg') center / 80px no-repeat;
  opacity: 0.06;
}

.module-card-thumb span {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.module-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.module-card-tag {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.module-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.module-card p {
  font-size: 0.9375rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.module-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.module-status {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.module-status.unlocked {
  border-color: rgba(201, 169, 97, 0.4);
  color: var(--gold);
}

.module-status.locked {
  color: var(--text-muted);
}

/* Video cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  overflow: hidden;
}

.video-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}

.video-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-thumb::before {
  content: '▶';
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
}

.video-platform {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--gold);
}

.video-card-body {
  padding: 1.75rem;
}

.video-card-body h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.video-card-body p {
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* Pricing tiers */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-tier {
  padding: 3rem 2rem;
  border-right: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
  transition: background 0.3s ease;
}

.pricing-tier:last-child {
  border-right: none;
}

.pricing-tier.featured {
  background: rgba(201, 169, 97, 0.06);
}

.pricing-tier.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.pricing-tier-name {
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.pricing-tier h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.pricing-tier-price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pricing-tier-price span {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 2rem 0;
  padding: 0;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  padding-left: 1.25rem;
  position: relative;
}

.pricing-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* Offer cards */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
}

.offer-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.offer-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.offer-card .offer-for {
  font-size: 0.8125rem;
  color: var(--gold);
  font-style: italic;
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}

.offer-card ul {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.offer-card li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--border-subtle);
  margin-bottom: 0.5rem;
}

/* Podcast episodes */
.podcast-episode {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  margin-bottom: 1.5rem;
  transition: background 0.25s ease;
}

.podcast-episode:hover {
  background: var(--bg-tertiary);
}

.podcast-episode-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold);
  font-style: italic;
  line-height: 1;
}

.podcast-audio-placeholder {
  height: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.podcast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Living Library forms & categories */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.category-tag {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tag:hover,
.category-tag.active {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.story-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.story-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
}

.story-form-card h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.story-form-card textarea,
.story-form-card input,
.story-form-card select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.story-form-card textarea:focus,
.story-form-card input:focus,
.story-form-card select:focus {
  border-color: var(--gold-dim);
}

.story-form-card textarea {
  min-height: 100px;
  resize: vertical;
}

.ai-placeholder {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-accent);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.ai-placeholder p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9375rem;
}

/* Merch products */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.merch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.3s ease;
}

.merch-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}

.merch-image {
  aspect-ratio: 1;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.merch-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/iam-building-logo.svg') center / 60% no-repeat;
  opacity: 0.08;
}

.merch-slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--gold);
  text-align: center;
  padding: 0.75rem;
}

.merch-card-body {
  padding: 1.5rem;
  text-align: center;
}

.merch-card-body h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Ecosystem social cards */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ecosystem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.ecosystem-card:hover {
  border-color: var(--gold);
  background: var(--bg-tertiary);
}

.ecosystem-platform {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.ecosystem-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.ecosystem-card p {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Page header (inner pages) */
.page-header {
  padding: 10rem 0 4rem;
  text-align: center;
  position: relative;
}

.page-header h1 {
  margin-bottom: 1.25rem;
}

.page-header-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Framework pathway visual */
.pathway-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border-subtle);
  max-width: 900px;
  margin: 0 auto;
}

.pathway-step {
  flex: 1;
  min-width: 140px;
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.pathway-step:last-child {
  border-right: none;
}

.pathway-step:hover {
  background: rgba(201, 169, 97, 0.04);
}

.pathway-step-label {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

.pathway-step h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin: 0;
}

/* Short-form video row */
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.short-card {
  aspect-ratio: 9/16;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem;
  transition: border-color 0.25s ease;
  cursor: pointer;
}

.short-card:hover {
  border-color: var(--gold-dim);
}

.short-card span {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* Integration comment blocks (dev-facing) */
.dev-note {
  display: none; /* Hidden from users; visible in source for developers */
}

@media (max-width: 900px) {
  .layer-system,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .layer-system-item,
  .pricing-tier {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .layer-system-item:last-child,
  .pricing-tier:last-child {
    border-bottom: none;
  }

  .podcast-episode {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pathway-steps {
    flex-direction: column;
  }

  .pathway-step {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .pathway-step:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .platform-hero-cta .btn {
    width: 100%;
    text-align: center;
  }
}
