/* ============================================================
   VIPASSANA — Premium Design System
   ============================================================ */

/* --- Google Fonts import (inline fallback if offline) --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Inter:wght@300;400;500&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Backgrounds */
  --ivory:        #FDFAF5;
  --ivory-2:      #F2E5CE;
  --ivory-3:      #E6EDE3;
  --paper:        #FEFCF8;
  --paper-warm:   #FBF8F2;
  --footer-bg:    #EDE4D4;

  /* Gold */
  --gold:         #9A7020;
  --gold-hover:   #AE7E24;
  --gold-dim:     #7A5810;
  --cream:        #FDF6E8;

  /* Sage */
  --sage-light:   #C8D4C5;

  /* Text */
  --text-primary: #1C1812;
  --text-muted:   #56504A;

  /* Charcoal */
  --charcoal:     #1C1C1C;

  /* Radii */
  --radius-lg:    24px;

  /* Shadows */
  --shadow-sm:    0 2px 16px rgba(0,0,0,0.08);
  --shadow-md:    0 6px 32px rgba(0,0,0,0.13);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.18);

  /* Layout */
  --nav-h:        148px;
  --section-pad:  112px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Text selection — brand gold */
::selection {
  background: rgba(154,112,32,0.22);
  color: var(--text-primary);
}
.section-dark ::selection {
  background: rgba(198,165,92,0.35);
  color: var(--ivory);
}

/* Keyboard focus — visible ring for keyboard users only */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible,
.nav-logo:focus-visible,
.footer-logo:focus-visible {
  outline-offset: 4px;
}

/* Inline text links within prose (not buttons / nav) */
.prose a:not(.btn),
.blockquote a:not(.btn),
p a:not(.btn):not(.nav-links a) {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}
.prose a:not(.btn):hover,
.blockquote a:not(.btn):hover,
p a:not(.btn):not(.nav-links a):hover {
  color: var(--gold-hover);
}
.section-dark .prose a:not(.btn),
.section-dark p a:not(.btn) {
  color: var(--gold-hover);
}
.section-dark .prose a:not(.btn):hover,
.section-dark p a:not(.btn):hover {
  color: var(--ivory);
}

/* --- Base --- */
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.011em;
  color: var(--text-primary);
  background: var(--paper);
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.font-serif { font-family: 'Playfair Display', Georgia, serif; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(44px, 6.5vw, 96px); font-weight: 400; letter-spacing: -0.03em; }
h2 { font-size: clamp(34px, 4.2vw, 62px); letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.015em; }
h4 { font-size: clamp(18px, 2vw, 22px); line-height: 1.18; letter-spacing: -0.01em; }

.display { font-size: clamp(52px, 8vw, 110px); font-weight: 400; line-height: 1.03; letter-spacing: -0.035em; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.italic { font-style: italic; }
p { max-width: 65ch; }
.prose { font-size: 18px; line-height: 1.68; color: var(--text-muted); }

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: rgba(254,252,248,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 3px solid var(--gold);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: box-shadow 0.5s ease, background 0.5s ease;
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px 16px;
  position: relative;
  overflow: hidden;
  max-height: 200px;
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1),
              padding   0.5s cubic-bezier(0.4,0,0.2,1),
              opacity   0.35s ease;
}

.nav-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 48px;
  border-top: 1px solid rgba(154,112,32,0.15);
  transition: border-color 0.4s ease, padding 0.4s ease;
}

/* ── Compact on scroll ── */
.nav.scrolled {
  background: rgba(254,252,248,0.94);
  box-shadow: 0 4px 28px rgba(0,0,0,0.08);
}
.nav.scrolled .nav-top {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}
.nav.scrolled .nav-bottom {
  border-top: none;
  padding: 14px 48px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}

.nav-logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 0.92;
  color: var(--text-primary);
}

.nav-logo-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(154,112,32,0.35), transparent);
}

.nav-logo-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

.nav-logo-subtitle--secondary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--gold-dim);
  opacity: 1;
}

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

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 10px;
  background: rgba(154,112,32,0.3);
  margin: 0 22px;
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav.scrolled .nav-links a { color: var(--text-primary); }
.nav.scrolled .nav-links a:hover { color: var(--gold); }

/* Active nav link */
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; background: var(--gold); }

/* Register CTA button in nav */
.nav-links a.btn-gold { color: var(--cream); margin-left: 12px; }
.nav-links a.btn-gold:hover { color: #fff; }
.nav-links a.btn-gold::after { display: none; }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  position: absolute;
  right: 24px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
}
.nav.scrolled .nav-hamburger span { background: var(--text-primary); }

/* Mobile overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 252, 247, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  overflow-y: auto;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
}

.nav-overlay-brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 34px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.nav-overlay-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.nav-overlay-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 6px;
  line-height: 1;
}

.nav-overlay-group a {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-overlay-group a:hover { color: var(--gold); }
.nav-overlay-group a.active { color: var(--gold); }

.nav-overlay-close {
  position: absolute;
  top: 24px; right: 32px;
  color: var(--text-primary);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s;
  z-index: 2;
}
.nav-overlay-close:hover { opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--paper-warm);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  animation: heroZoom 22s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 10, 8, 0.08) 0%,
    rgba(16, 12, 8, 0.15) 28%,
    rgba(20, 14, 10, 0.36) 62%,
    rgba(14, 10, 6, 0.58) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 36px 28px 0;
  max-width: 900px;
}

.hero-content p { margin-left: auto; margin-right: auto; }

.hero-content .eyebrow { color: var(--gold); margin-bottom: 24px; display: block; }

.hero-content h1 {
  color: var(--ivory);
  font-weight: 400;
  margin-bottom: 28px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}

.hero-content .subtext {
  font-size: 18px;
  color: rgba(247,245,242,0.88);
  font-style: italic;
  margin-bottom: 48px;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 1px 12px rgba(0,0,0,0.38);
}

/* Hero vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,244,224,0.08) 0%, transparent 30%),
    radial-gradient(ellipse at center, transparent 46%, rgba(0,0,0,0.16) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Page hero (smaller, used on inner pages) */
.page-hero {
  position: relative;
  padding: 232px 48px 120px;
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--ivory-2) 100%);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 12, 6, 0.10) 0%,
    rgba(18, 12, 6, 0.20) 55%,
    rgba(14, 10, 6, 0.62) 100%
  );
  z-index: 1;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transform-origin: top center;
  animation: pageHeroZoom 20s ease-in-out infinite alternate;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.page-hero-content h1 {
  color: var(--ivory);
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.page-hero-content .subtext {
  margin-top: 24px;
  color: rgba(247,245,242,0.88);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  line-height: 1.45;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}

/* Particle canvas */
#particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease,
              box-shadow 0.3s ease, transform 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}

/* shimmer sweep on hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,0.22) 50%, transparent 75%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.btn:hover::before { transform: translateX(100%); }

/* Primary — filled gold */
.btn-gold {
  background: var(--gold);
  border: 1.5px solid transparent;
  color: var(--cream);
  box-shadow: 0 2px 12px rgba(154,112,32,0.22);
}
.btn-gold:hover {
  background: var(--gold-hover);
  color: #fff;
  box-shadow: 0 6px 24px rgba(154,112,32,0.32);
  transform: translateY(-2px);
}
.btn-gold:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(154,112,32,0.24);
}

/* Secondary — outlined gold, fills on hover */
.btn-gold-solid {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-gold-solid:hover {
  background: var(--gold);
  color: var(--cream);
  box-shadow: 0 8px 28px rgba(154,112,32,0.35);
  transform: translateY(-2px);
}
.btn-gold-solid:active {
  transform: translateY(0);
}

/* Light — white with gold border, gold text on hover */
.btn-ivory {
  background: var(--paper);
  border: 1.5px solid rgba(154,112,32,0.3);
  color: var(--text-primary);
}
.btn-ivory:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.btn-ivory:active {
  transform: translateY(0);
}

/* ============================================================
   GOLD DIVIDER
   ============================================================ */

.gold-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.5;
  margin: 0 auto;
  max-width: 240px;
}

.gold-divider-full {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  opacity: 0.25;
  width: 100%;
}

/* ============================================================
   SECTION WRAPPERS
   ============================================================ */

.section {
  padding: var(--section-pad) 48px;
  background: var(--paper);
}

.section-narrow {
  padding: var(--section-pad) 48px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Alternating section backgrounds — clearly distinguishable */
.section-ivory-2 {
  background: var(--ivory-2);   /* warm beige #F2E5CE */
}
.section-ivory-3 {
  background: var(--ivory-3);   /* sage tint #E6EDE3 */
}
/* section-dark = genuinely dark section for cinematic scene contrast */
.section-dark {
  background: #1C1812;
  color: var(--ivory);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--ivory);
}
.section-dark .eyebrow { color: var(--gold-hover); }
.section-dark .prose { color: rgba(253,250,245,0.72); }
.section-dark p { color: rgba(253,250,245,0.72); }
.section-dark .section-header p { color: rgba(253,250,245,0.72); }
.section-dark .foundation-title { color: rgba(253,250,245,0.6); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Section header */
.section-header {
  margin-bottom: 64px;
}
.section-header .eyebrow { display: block; margin-bottom: 14px; }
.section-header h2 { max-width: 600px; }
.section-header p { margin-top: 16px; font-size: 17px; color: var(--text-muted); max-width: 560px; }
.section-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-header.centered h2 { max-width: 540px; }
.section-header.centered p { margin: 16px auto 0; }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  border-radius: var(--radius-lg);
  padding: 40px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(154,112,32,0.22);
}

.card-matte {
  border-radius: var(--radius-lg);
  padding: 40px;
  background: var(--paper);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card-matte:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 36px rgba(154,112,32,0.18);
}

.card-dark {
  border-radius: var(--radius-lg);
  padding: 40px;
  background: var(--paper);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card-dark:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.card-dark h3, .card-dark h4 { color: var(--text-primary); }
.card-dark p { color: var(--text-muted); }

.card-glass {
  border-radius: var(--radius-lg);
  padding: 40px;
  background: rgba(254, 252, 248, 0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card-glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.card-glass h3, .card-glass h4 { color: var(--text-primary); }
.card-glass p { color: var(--text-muted); }

/* Card icon */
.card-icon {
  width: 48px; height: 48px;
  margin-bottom: 24px;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 100%; height: 100%; }

/* ============================================================
   GRID LAYOUTS
   ============================================================ */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: center; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.grid-asym { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.grid-asym-r { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }

/* ============================================================
   IMAGE BLOCKS
   ============================================================ */

.img-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.img-block img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.img-block:hover img { transform: scale(1.03); }

.img-tall { aspect-ratio: 3/4; }
.img-wide { aspect-ratio: 16/9; }
.img-square { aspect-ratio: 1; }

/* Image float decoration */
.img-block-float {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.img-block-float::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(154,112,32,0.3), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   BLOCKQUOTE
   ============================================================ */

.blockquote {
  position: relative;
  padding: 56px 72px;
  text-align: center;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(154,112,32,0.18);
  box-shadow: var(--shadow-sm);
}
.blockquote::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 120px;
  color: var(--gold);
  opacity: 0.25;
  position: absolute;
  top: -20px; left: 28px;
  line-height: 1;
}
.blockquote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.5vw, 30px);
  font-style: italic;
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto 24px;
}
.blockquote cite {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-style: normal;
}

.blockquote-dark .blockquote::before { color: var(--gold); opacity: 0.4; }
.blockquote-dark .blockquote p { color: var(--ivory); }

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
  position: relative;
  padding-left: 48px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.timeline-item {
  position: relative;
  padding: 0 0 40px 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(154,112,32,0.15);
}
.timeline-time {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline-item h4 { margin-bottom: 6px; font-size: 17px; }
.timeline-item p { font-size: 15px; color: var(--text-muted); max-width: 50ch; }

/* ============================================================
   STEPPER
   ============================================================ */

.stepper {
  display: flex;
  gap: 0;
  align-items: flex-start;
  position: relative;
}
.stepper-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 24px;
}
.stepper-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  opacity: 0.3;
}
.stepper-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--gold);
}
.stepper-item h4 { margin-bottom: 10px; }
.stepper-item p { font-size: 15px; color: var(--text-muted); }

/* ============================================================
   PRECEPT CARD (Discipline)
   ============================================================ */

.precept {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,0,0,0.09);
}
.precept:first-child { border-top: 1px solid rgba(0,0,0,0.09); }
.precept-num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  min-width: 52px;
}
.precept h4 { margin-bottom: 8px; }
.precept p { font-size: 15px; color: var(--text-muted); max-width: 55ch; }

/* ============================================================
   STATS ROW
   ============================================================ */

.stats-row {
  display: flex;
  gap: 48px;
  align-items: center;
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-divider {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.3;
}

/* ============================================================
   PHONE MOCKUP (Ask Dhamma)
   ============================================================ */

.phone-mockup {
  width: 280px;
  margin: 0 auto;
  border-radius: 36px;
  border: 2px solid rgba(0,0,0,0.08);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  position: relative;
}
.phone-notch {
  width: 80px; height: 6px;
  background: rgba(0,0,0,0.10);
  border-radius: 3px;
  margin: 0 auto 16px;
}
.chat-bubble {
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
  max-width: 85%;
}
.chat-bubble.them {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chat-bubble.me {
  background: rgba(154,112,32,0.25);
  color: var(--charcoal);
  border-bottom-right-radius: 4px;
  margin-left: auto;
}
.chat-time {
  font-size: 11px;
  color: rgba(42,36,32,0.35);
  text-align: right;
  margin-bottom: 12px;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.form-group {
  margin-bottom: 32px;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding: 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  transition: border-bottom-color 0.25s ease, box-shadow 0.25s ease;
  border-radius: 0;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(42,36,32,0.38);
  font-style: italic;
  font-weight: 300;
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-bottom-color: rgba(0,0,0,0.4);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--gold);
  box-shadow: inset 0 -1px 0 var(--gold);
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.form-group select { cursor: pointer; }

/* ============================================================
   FOUNDATION CARDS (Sila/Samadhi/Panna)
   ============================================================ */

.foundation-card {
  text-align: center;
  padding: 48px 32px;
}
.foundation-pali {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 12px;
  font-style: italic;
}
.foundation-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ============================================================
   PARALLAX STRIP
   ============================================================ */

.parallax-strip {
  position: relative;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-strip-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.72) saturate(0.95) contrast(1.02);
}
.parallax-strip-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  color: var(--ivory);
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.parallax-strip-content h1,
.parallax-strip-content h2,
.parallax-strip-content h3,
.parallax-strip-content h4 {
  color: var(--ivory);
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
  margin-bottom: 24px;
}
.parallax-strip-content .eyebrow { color: var(--gold); }

/* ============================================================
   AMBIENT GLOW ORBS
   ============================================================ */

.glow-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154,112,32,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================================
   NOISE TEXTURE OVERLAY
   ============================================================ */

.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   MANDALA BACKGROUND
   ============================================================ */

.mandala-bg {
  position: relative;
}
.mandala-bg::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='95' fill='none' stroke='%239A7020' stroke-width='0.5' stroke-dasharray='4 8'/%3E%3Ccircle cx='100' cy='100' r='75' fill='none' stroke='%239A7020' stroke-width='0.5' stroke-dasharray='3 6'/%3E%3Ccircle cx='100' cy='100' r='55' fill='none' stroke='%239A7020' stroke-width='0.5' stroke-dasharray='2 4'/%3E%3Ccircle cx='100' cy='100' r='35' fill='none' stroke='%239A7020' stroke-width='0.5'/%3E%3Cline x1='100' y1='5' x2='100' y2='195' stroke='%239A7020' stroke-width='0.3' opacity='0.5'/%3E%3Cline x1='5' y1='100' x2='195' y2='100' stroke='%239A7020' stroke-width='0.3' opacity='0.5'/%3E%3Cline x1='32' y1='32' x2='168' y2='168' stroke='%239A7020' stroke-width='0.3' opacity='0.5'/%3E%3Cline x1='168' y1='32' x2='32' y2='168' stroke='%239A7020' stroke-width='0.3' opacity='0.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--footer-bg);
  color: var(--text-primary);
  padding: 80px 48px 40px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  padding-bottom: 56px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.footer-brand { max-width: 320px; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none;
}
.footer-logo img { width: 32px; opacity: 0.85; mix-blend-mode: multiply; }
.footer-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.footer-brand-line {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: none;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 18px;
  line-height: 1;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 12px;
  color: rgba(42,36,32,0.5);
  letter-spacing: 0.04em;
}
.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-style: italic;
  color: rgba(42,36,32,0.45);
}

/* ============================================================
   UTILITY
   ============================================================ */

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

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.pt-nav { padding-top: var(--nav-h); }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ============================================================
   PAGE-SPECIFIC CARD UPGRADES
   Centralised overrides for custom card classes defined in
   individual page <style> blocks — ensures consistent premium
   treatment across every page without touching HTML files.
   ============================================================ */

.benefit-icon-card,
.connect-card,
.course-card,
.faq-item,
.guideline-item {
  background: var(--paper) !important;
  border: 1px solid rgba(0,0,0,0.09) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04) !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.benefit-icon-card:hover,
.connect-card:hover,
.course-card:hover,
.faq-item:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(154,112,32,0.40) !important;
  box-shadow: 0 12px 40px rgba(154,112,32,0.14), 0 4px 14px rgba(0,0,0,0.07) !important;
}

/* Guideline items don't lift (they're inline list items) */
.guideline-item:hover {
  transform: none !important;
  border-color: rgba(154,112,32,0.30) !important;
}

/* Subscribe page form wrap */
.form-wrap {
  background: var(--paper) !important;
  border-color: rgba(0,0,0,0.09) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .section { padding: var(--section-pad) 36px; }
  .page-hero { padding: 210px 36px 80px; }
  .nav-top { padding: 18px 36px 14px; }
  .nav-bottom { padding: 10px 36px; }
  .grid-asym,
  .grid-asym-r,
  .grid-2-1,
  .grid-1-2 {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .grid-asym-r .img-block { order: -1; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px; --nav-h: 110px; }

  /* ── Nav ── */
  .nav-top { padding: 16px 60px 14px 20px; justify-content: flex-start; }
  .nav-bottom { display: none; }
  .nav-logo { gap: 14px; }
  .nav-logo img { width: 56px; height: 56px; }
  .nav-logo-name { font-size: 28px; letter-spacing: 0.03em; }
  .nav-logo-subtitle { font-size: 9px; letter-spacing: 0.14em; }
  .nav-logo-subtitle--secondary { font-size: 11px; }
  .nav-logo-text-group { gap: 7px; }
  .nav.scrolled .nav-top { max-height: 0; padding: 0 20px; }
  .nav-hamburger { display: flex; }

  /* ── Sections ── */
  .section { padding: var(--section-pad) 20px; }
  .section-narrow { padding: var(--section-pad) 20px; }
  .page-hero { padding: 140px 20px 60px; }

  /* ── Cards ── */
  .card-matte, .card-glass, .card-dark { padding: 28px 20px; }

  /* ── Typography ── */
  .hero-content .subtext { font-size: clamp(15px, 4vw, 17px); }
  .prose { font-size: 15px; }

  /* ── Grids ── */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* ── Components ── */
  .stepper { flex-direction: column; gap: 32px; }
  .stepper-item:not(:last-child)::after { display: none; }
  .stats-row { flex-wrap: wrap; justify-content: center; gap: 24px; }
  .stat-divider { display: none; }
  .blockquote { padding: 28px 20px; }
  .blockquote::before { font-size: 72px; left: 8px; top: -10px; }
  .grid-2-1 .img-block { order: -1; }
  .phone-mockup { width: 220px; }

  /* ── Footer ── */
  footer { padding: 56px 20px 28px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 40px;
    margin-bottom: 28px;
  }
  .footer-brand { max-width: none; }
  .footer-columns { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  :root { --section-pad: 48px; }

  /* ── Nav ── */
  .nav-logo img { width: 44px; height: 44px; }
  .nav-logo-name { font-size: 22px; }
  .nav-logo-subtitle--secondary { font-size: 10px; }

  /* ── Hero ── */
  .hero-content h1 { font-size: clamp(32px, 9vw, 44px); }
  .hero-content .subtext { font-size: 14px; }

  /* ── Buttons ── */
  .btn { padding: 11px 22px; font-size: 12px; }

  /* ── Cards ── */
  .card-matte, .card-glass, .card-dark { padding: 24px 16px; }

  /* ── Section header ── */
  .section-header { margin-bottom: 40px; }

  /* ── Footer ── */
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .footer-col:nth-child(3) { grid-column: span 2; }
}
