/* ══════════════════════════════════════════════════════
   Tao Te Ching Institute — style.css
   assets/css/style.css
   ══════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ───────────────────────────────────── */
:root {
  /* Core palette */
  --void:        #070710;   /* Deepest background */
  --ink:         #0a0a0f;   /* Near-black surfaces */
  --deep:        #0f0e18;   /* Elevated surfaces */
  --lifted:      #161525;   /* Cards, panels */

  /* Text */
  --silk:        #e8e2d4;   /* Primary text */
  --mist:        #c8c4b8;   /* Secondary text */
  --smoke:       #8a8678;   /* Tertiary / disabled */

  /* Accents */
  --gold:        #c9a84c;   /* Primary accent */
  --gold-dim:    #8a6f30;   /* Subdued gold */
  --gold-glow:   rgba(201,168,76,0.12);

  --jade:        #4a7c6f;   /* Secondary accent */
  --jade-light:  #6aab9a;   /* Lighter jade */
  --jade-glow:   rgba(74,124,111,0.1);

  --crimson:     #8b2635;   /* Rare highlight */

  /* Typography scale */
  --text-xs:     0.65rem;
  --text-sm:     0.85rem;
  --text-base:   1rem;
  --text-md:     1.1rem;
  --text-lg:     1.3rem;
  --text-xl:     1.6rem;
  --text-2xl:    2rem;
  --text-3xl:    2.8rem;
  --text-4xl:    3.8rem;

  /* Spacing scale */
  --space-1:     0.5rem;
  --space-2:     1rem;
  --space-3:     1.5rem;
  --space-4:     2rem;
  --space-6:     3rem;
  --space-8:     4rem;
  --space-12:    6rem;
  --space-16:    8rem;

  /* Layout */
  --max-width:   1100px;
  --reading-width: 720px;

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --duration:    0.3s;
  --duration-slow: 0.6s;

  /* Borders */
  --border-subtle:  1px solid rgba(232,226,212,0.08);
  --border-gold:    1px solid rgba(201,168,76,0.2);
  --border-glow:    1px solid rgba(201,168,76,0.5);
}

/* ── RESET & BASE ────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--void);
  color: var(--silk);
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  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.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
  opacity: 0.3;
  mix-blend-mode: overlay;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── TYPOGRAPHY ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  line-height: 1.2;
  color: var(--silk);
}

/* Chinese character display */
.chinese, .zh {
  font-family: 'Noto Serif SC', 'STSong', 'SimSun', serif;
  letter-spacing: 0.1em;
}

/* Cinzel for labels, UI elements */
.label, .eyebrow, nav, .btn {
  font-family: 'Cinzel', 'Palatino Linotype', serif;
}

p {
  color: var(--mist);
  line-height: 1.85;
  font-size: var(--text-md);
  font-weight: 300;
}

p + p { margin-top: 1.25rem; }

blockquote {
  border-left: 2px solid var(--gold);
  padding: 1.5rem 2rem;
  background: var(--gold-glow);
  margin: 2rem 0;
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--silk);
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: 'Cinzel', serif;
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  font-style: normal;
}

/* ── LAYOUT UTILITIES ────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container--narrow {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-16) var(--space-4);
  position: relative;
}

.section--deep  { background: var(--deep); }
.section--ink   { background: var(--ink); }
.section--void  { background: var(--void); }

.section-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: var(--text-xs);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
  opacity: 0.9;
}

.section-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-style: italic;
  color: var(--silk);
  margin-bottom: var(--space-3);
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--mist);
  max-width: 640px;
  line-height: 1.85;
}

/* Horizontal rule / divider */
.divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: var(--space-4) 0;
}

.divider--center { margin-left: auto; margin-right: auto; }

/* ── NAVIGATION ──────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--space-8);
  background: linear-gradient(to bottom, rgba(7,7,16,0.97) 0%, transparent 100%);
  transition: padding var(--duration) var(--ease),
              background var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  padding: 1rem var(--space-8);
  background: rgba(7,7,16,0.97);
  border-bottom: var(--border-gold);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
  gap: 2px;
}

.nav-logo-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.3em;
}

.nav-logo-english {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--mist);
  text-transform: uppercase;
  opacity: 0.7;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* CTA link in nav */
.nav-links a.nav-cta {
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.5rem 1.25rem;
  transition: all var(--duration) var(--ease);
}

.nav-links a.nav-cta::after { display: none; }

.nav-links a.nav-cta:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--silk);
  transition: all var(--duration) var(--ease);
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile drawer */
.nav-mobile {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--deep);
  border-left: var(--border-gold);
  z-index: 490;
  padding: 6rem var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease);
  overflow: auto;
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.nav-mobile a {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
  transition: color var(--duration);
}

.nav-mobile a:hover { color: var(--gold); }

.nav-mobile-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.5rem;
  color: var(--gold-dim);
  opacity: 0.2;
  letter-spacing: 0.3em;
  margin-top: auto;
  padding-top: var(--space-8);
}

/* Overlay for mobile menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,7,16,0.7);
  z-index: 480;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.5rem;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

/* Primary — gold fill */
.btn--primary {
  background: var(--gold);
  color: var(--ink);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--silk);
  transform: translateX(-100%);
  transition: transform var(--duration) var(--ease);
  z-index: 0;
}

.btn--primary:hover::before { transform: translateX(0); }
.btn--primary:hover { color: var(--ink); }

.btn--primary span,
.btn--primary:not(:has(span)) {
  position: relative;
  z-index: 1;
}

/* Ghost — outlined */
.btn--ghost {
  background: transparent;
  color: var(--silk);
  border: 1px solid rgba(232,226,212,0.3);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Jade ghost */
.btn--jade {
  background: transparent;
  color: var(--jade-light);
  border: 1px solid rgba(106,171,154,0.3);
}

.btn--jade:hover {
  border-color: var(--jade-light);
  background: var(--jade-glow);
}

/* Small variant */
.btn--sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.6rem;
}

/* ── HERO (homepage) ─────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem var(--space-4) var(--space-8);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(74,124,111,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(139,38,53,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(201,168,76,0.04) 0%, transparent 50%),
    var(--void);
  pointer-events: none;
}

.hero-brush {
  position: absolute;
  top: 15%; right: 8%;
  width: 320px; height: 480px;
  opacity: 0.05;
  background: radial-gradient(ellipse 40% 100% at 50% 50%, var(--silk) 0%, transparent 70%);
  transform: rotate(-12deg);
  filter: blur(2px);
  pointer-events: none;
}

.hero-brush-2 {
  position: absolute;
  bottom: 20%; left: 5%;
  width: 200px; height: 340px;
  opacity: 0.04;
  background: radial-gradient(ellipse 30% 100% at 50% 50%, var(--gold) 0%, transparent 70%);
  transform: rotate(8deg);
  filter: blur(3px);
  pointer-events: none;
}

.hero-vertical-text {
  position: absolute;
  right: 5%; top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--gold-dim);
  opacity: 0.35;
  line-height: 2;
  pointer-events: none;
  user-select: none;
}

.hero-vertical-text-left {
  position: absolute;
  left: 4%; top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--jade);
  opacity: 0.2;
  line-height: 2;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: var(--text-xs);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
  opacity: 0.85;
}

.hero-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--gold);
  letter-spacing: 0.2em;
  line-height: 1;
  margin-bottom: 0.4rem;
  opacity: 0.88;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--silk);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--jade-light);
  margin-bottom: var(--space-6);
  opacity: 0.85;
}

.hero-mission {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--mist);
  max-width: 580px;
  margin: 0 auto var(--space-6);
  line-height: 1.85;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll-label {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0.4;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.95); }
  50%       { opacity: 0.7;  transform: scaleY(1.05); }
}

/* ── YIN YANG SVG ────────────────────────────────────── */
.yin-yang {
  width: 160px;
  height: 160px;
  animation: slowSpin 32s linear infinite;
  opacity: 0.65;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── VERSE GRID (81 numbers) ─────────────────────────── */
.verse-number-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  max-width: 300px;
}

.verse-number-grid a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  color: var(--mist);
  border: 1px solid rgba(232,226,212,0.1);
  transition: all var(--duration);
  text-decoration: none;
}

.verse-number-grid a:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
}

.verse-number-grid a.has-video {
  background: rgba(74,124,111,0.1);
  border-color: rgba(74,124,111,0.3);
  color: var(--jade-light);
}

.verse-number-grid a.featured {
  background: var(--gold-glow);
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* ── VERSE CARDS ─────────────────────────────────────── */
.verse-card {
  display: block;
  background: var(--deep);
  padding: var(--space-6) 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background var(--duration-slow) var(--ease);
  text-decoration: none;
  border: var(--border-subtle);
}

.verse-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform var(--duration-slow) var(--ease);
}

.verse-card:hover { background: rgba(201,168,76,0.04); }
.verse-card:hover::before { transform: scaleX(1); }

.verse-card-number {
  font-family: 'Cinzel', serif;
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  margin-bottom: 0.4rem;
  display: block;
}

.verse-card-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
  opacity: 0.65;
}

.verse-card-title {
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 300;
  color: var(--silk);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.verse-card-excerpt {
  font-size: var(--text-base);
  color: var(--mist);
  line-height: 1.8;
  opacity: 0.8;
}

.verse-card-cta {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--jade-light);
  margin-top: var(--space-3);
  display: block;
  transition: color var(--duration);
}

.verse-card:hover .verse-card-cta { color: var(--gold); }

/* Grid of verse cards */
.verses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,168,76,0.08);
}

/* ── SINGLE VERSE PAGE ───────────────────────────────── */
.verse-hero {
  padding: 10rem var(--space-4) var(--space-12);
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(201,168,76,0.05) 0%, transparent 70%),
    var(--void);
  border-bottom: var(--border-gold);
}

.verse-number-display {
  font-family: 'Cinzel', serif;
  font-size: var(--text-sm);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: var(--space-2);
}

.verse-chinese-large {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--gold);
  letter-spacing: 0.2em;
  line-height: 1;
  margin-bottom: var(--space-2);
  opacity: 0.7;
}

.verse-title-large {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  font-style: italic;
  color: var(--silk);
}

.verse-nav-arrows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: var(--space-6) auto 0;
}

.verse-nav-arrows a {
  font-family: 'Cinzel', serif;
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  color: var(--mist);
  opacity: 0.6;
  transition: all var(--duration);
}

.verse-nav-arrows a:hover { opacity: 1; color: var(--gold); }

.verse-body {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-4);
}

.verse-text-block {
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--silk);
  line-height: 2;
  text-align: center;
  margin-bottom: var(--space-12);
  border-top: var(--border-gold);
  border-bottom: var(--border-gold);
  padding: var(--space-8) var(--space-4);
}

.verse-text-block p + p {
  margin-top: var(--space-2);
}

.verse-commentary {
  margin-bottom: var(--space-8);
}

.verse-commentary h3 {
  font-family: 'Cinzel', serif;
  font-size: var(--text-xs);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
  opacity: 0.8;
}

.verse-commentary p {
  font-size: var(--text-md);
  line-height: 1.9;
}

.verse-contemplation {
  background: var(--deep);
  border: var(--border-gold);
  padding: var(--space-6);
  text-align: center;
  margin: var(--space-8) 0;
}

.verse-contemplation-label {
  font-family: 'Cinzel', serif;
  font-size: var(--text-xs);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
  opacity: 0.7;
}

.verse-contemplation p {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--silk);
}

/* ── VIDEO ───────────────────────────────────────────── */
.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7,7,16,0.45);
  transition: background var(--duration);
  cursor: pointer;
}

.video-overlay:hover { background: rgba(7,7,16,0.2); }
.video-overlay.hidden { display: none; }

.play-btn {
  width: 72px;
  height: 72px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
  background: rgba(201,168,76,0.08);
}

.play-btn svg {
  fill: var(--gold);
  width: 22px;
  margin-left: 4px;
}

.video-overlay:hover .play-btn {
  background: rgba(201,168,76,0.2);
  transform: scale(1.06);
}

/* Corner accents */
.video-frame {
  position: relative;
}

.video-frame::before,
.video-frame::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  pointer-events: none;
  z-index: 2;
}

.video-frame::before {
  top: -8px; left: -8px;
  border-top: 1px solid var(--gold-dim);
  border-left: 1px solid var(--gold-dim);
  opacity: 0.5;
}

.video-frame::after {
  bottom: -8px; right: -8px;
  border-bottom: 1px solid var(--gold-dim);
  border-right: 1px solid var(--gold-dim);
  opacity: 0.5;
}

/* ── PILLARS ─────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.pillar {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  transition: background var(--duration);
}

.pillar:hover {
  background: var(--gold-glow);
}

.pillar-glyph {
  font-family: 'Noto Serif SC', serif;
  font-size: 3.5rem;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: var(--space-3);
  display: block;
  transition: opacity var(--duration);
}

.pillar:hover .pillar-glyph { opacity: 0.9; }

.pillar-title {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silk);
  margin-bottom: var(--space-2);
}

.pillar-text {
  font-size: var(--text-base);
  color: var(--mist);
  line-height: 1.85;
  opacity: 0.8;
}

/* ── QUOTE / MISSION BAND ────────────────────────────── */
.mission-band {
  background: linear-gradient(
    135deg,
    rgba(74,124,111,0.1) 0%,
    rgba(201,168,76,0.05) 50%,
    rgba(139,38,53,0.07) 100%
  );
  border-top: var(--border-gold);
  border-bottom: var(--border-gold);
  text-align: center;
}

.mission-quote {
  font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
  font-style: italic;
  color: var(--silk);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

/* ── NEWSLETTER / JOIN ───────────────────────────────── */
.join-form {
  display: flex;
  max-width: 480px;
  margin: var(--space-6) auto 0;
}

.join-form input[type="email"] {
  flex: 1;
  background: rgba(232,226,212,0.05);
  border: 1px solid rgba(232,226,212,0.15);
  border-right: none;
  color: var(--silk);
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-md);
  padding: 0.85rem 1.25rem;
  outline: none;
  transition: border-color var(--duration);
}

.join-form input[type="email"]::placeholder {
  color: rgba(200,196,184,0.35);
}

.join-form input[type="email"]:focus {
  border-color: rgba(201,168,76,0.45);
}

.join-form button {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  transition: background var(--duration), color var(--duration);
  white-space: nowrap;
}

.join-form button:hover {
  background: var(--silk);
}

.join-note {
  font-size: var(--text-sm);
  color: var(--mist);
  opacity: 0.45;
  margin-top: var(--space-2);
  font-style: italic;
  text-align: center;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: var(--space-12) var(--space-4) var(--space-8);
  border-top: var(--border-gold);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: var(--border-subtle);
}

.footer-brand-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  opacity: 0.75;
  margin-bottom: 0.25rem;
}

.footer-brand-name {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0.55;
  margin-bottom: var(--space-3);
}

.footer-brand-tagline {
  font-size: var(--text-sm);
  color: var(--mist);
  opacity: 0.5;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-2);
}

.footer-brand-url {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  opacity: 0.5;
}

.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
  opacity: 0.75;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--mist);
  opacity: 0.55;
  font-style: italic;
  transition: all var(--duration);
}

.footer-col a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-6) auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-bottom p {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--mist);
  opacity: 0.28;
  text-transform: uppercase;
}

.footer-tao {
  font-family: 'Noto Serif SC', serif !important;
  letter-spacing: 0.2em !important;
  font-size: 0.75rem !important;
}

/* ── SCROLL REVEAL ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out),
              transform 0.75s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Hero entrance animations */
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * { animation: fadeRise 1.5s var(--ease-out) both; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.35s; }
.hero-content > *:nth-child(4) { animation-delay: 0.45s; }
.hero-content > *:nth-child(5) { animation-delay: 0.55s; }
.hero-content > *:nth-child(6) { animation-delay: 0.65s; }
.hero-content > *:nth-child(7) { animation-delay: 0.75s; }
.hero-scroll { animation: fadeRise 1.5s 1.1s var(--ease-out) both; }

/* ── PAGE HEADER (inner pages) ───────────────────────── */
.page-header {
  padding: 9rem var(--space-4) var(--space-12);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201,168,76,0.05) 0%, transparent 60%),
    var(--void);
  border-bottom: var(--border-gold);
}

.page-header-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: var(--text-xs);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
  opacity: 0.85;
}

.page-header-title {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  font-style: italic;
  color: var(--silk);
  margin-bottom: var(--space-3);
}

.page-header-subtitle {
  font-size: var(--text-lg);
  color: var(--mist);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── TWO-COLUMN LAYOUT ───────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.two-col--wide {
  grid-template-columns: 3fr 2fr;
}

/* ── RESPONSIVE ──────────────────────────────────────── */

/* Tablet: 900px and below */
@media (max-width: 900px) {
  /* Nav */
  nav {
    padding: 1.25rem var(--space-4);
  }
  nav.scrolled {
    padding: 0.85rem var(--space-4);
  }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Layouts */
  .two-col,
  .two-col--wide {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .verses-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  /* Hide decorative vertical text */
  .hero-vertical-text,
  .hero-vertical-text-left {
    display: none;
  }
}

/* Mobile: 600px and below */
@media (max-width: 600px) {
  .section {
    padding: var(--space-12) var(--space-3);
  }

  .verses-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .join-form {
    flex-direction: column;
  }

  .join-form input[type="email"] {
    border-right: 1px solid rgba(232,226,212,0.15);
    border-bottom: none;
  }

  .verse-number-grid {
    grid-template-columns: repeat(9, 1fr);
    max-width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
}

/* ── UTILITY CLASSES ─────────────────────────────────── */
.text-center  { text-align: center; }
.text-gold    { color: var(--gold); }
.text-jade    { color: var(--jade-light); }
.text-mist    { color: var(--mist); }
.text-italic  { font-style: italic; }
.text-cinzel  { font-family: 'Cinzel', serif; }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}