/* =========================================================
   BAD BAD CHANNEL — Design System
   暗夜學堂 · Channel the forbidden
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600;700&family=Noto+Serif+TC:wght@300;400;500;700&family=Noto+Sans+TC:wght@300;400;500;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ---------- TOKENS ---------- */
:root {
  /* Base void */
  --bg-void:        #06060a;
  --bg-deep:        #0a0913;
  --bg-surface:     #11101a;
  --bg-elevated:    #1a1825;
  --bg-glass:       rgba(17, 16, 26, 0.65);
  --line:           #25223a;
  --line-soft:      #1d1b2c;
  --line-strong:    #3a3550;

  /* Accents */
  --gold:           #c9a96e;
  --gold-bright:    #e3c896;
  --gold-deep:      #8c7547;
  --gold-faint:     rgba(201, 169, 110, 0.12);
  --burgundy:       #6b1e2e;
  --burgundy-deep:  #4a141f;
  --plum:           #4a2a55;
  --ember:          #b85c3c;

  /* Text */
  --ink:            #f0e6d2;
  --ink-soft:       #c9bfa8;
  --ink-mute:       #8a8499;
  --ink-faint:      #5b576a;

  /* Functional */
  --success:        #7d9d6f;
  --warn:           #c9a96e;
  --danger:         #b34a52;

  /* Type */
  --f-display: 'Cinzel', 'Cormorant Garamond', 'Noto Serif TC', serif;
  --f-serif:   'Cormorant Garamond', 'Noto Serif TC', Georgia, serif;
  --f-sans:    'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Scale */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 144px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --d-1: 180ms;
  --d-2: 280ms;
  --d-3: 420ms;
  --d-4: 680ms;
  --d-5: 1200ms;

  /* Layout */
  --container: 1200px;
  --container-wide: 1440px;
  --nav-h: 112px;

  /* Z */
  --z-base: 1;
  --z-elev: 10;
  --z-nav:  50;
  --z-modal: 100;
  --z-cursor: 999;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-void);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: 0; outline: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--bg-void); }

/* ---------- AMBIENT BACKGROUND ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 92%, rgba(184, 92, 60, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 12%, rgba(227, 200, 150, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 50% 105%, rgba(107, 30, 46, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 25% 55%, rgba(74, 42, 85, 0.15), transparent 55%),
    radial-gradient(ellipse 45% 35% at 82% 68%, rgba(184, 92, 60, 0.14), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.85  0 0 0 0 0.75  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.05;
  font-size: clamp(2.8rem, 7.5vw, 6.8rem);
  color: var(--ink);
}
.display em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0;
}

h1 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.1; letter-spacing: -0.005em; }
h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.15; letter-spacing: -0.005em; }
h3 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.25; }
h4 { font-family: var(--f-sans); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.01em; }

.lede {
  font-family: var(--f-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 300;
  font-style: italic;
}

p { color: var(--ink-soft); max-width: 65ch; }
p.tight { max-width: 52ch; }
.muted { color: var(--ink-mute); }
.faint { color: var(--ink-faint); }

.numeric { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
  position: relative;
  z-index: 2;
}
.container-wide { max-width: var(--container-wide); }

section { position: relative; z-index: 2; padding: var(--s-9) 0; }
@media (max-width: 768px) { section { padding: var(--s-7) 0; } }

.row { display: flex; gap: var(--s-5); }
.grid { display: grid; gap: var(--s-5); }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 26px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: all var(--d-2) var(--ease-out);
  position: relative;
  overflow: hidden;
  min-height: 48px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-void);
  box-shadow: 0 0 0 1px var(--gold), 0 0 40px -12px rgba(201, 169, 110, 0.5);
}
.btn-primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 0 0 1px var(--gold-bright), 0 0 60px -10px rgba(227, 200, 150, 0.7);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-faint);
}
.btn-link {
  background: none;
  padding: var(--s-2) 0;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  min-height: auto;
}
.btn-link:hover { color: var(--gold); border-color: var(--gold); }
.btn-arrow {
  width: 18px; height: 10px;
  position: relative;
  display: inline-block;
  transition: transform var(--d-2) var(--ease-out);
}
.btn-arrow::before, .btn-arrow::after {
  content: ''; position: absolute; background: currentColor;
}
.btn-arrow::before { left: 0; top: 50%; height: 1px; width: 100%; transform: translateY(-50%); }
.btn-arrow::after { right: 0; top: 50%; width: 8px; height: 8px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  transition: background var(--d-3) var(--ease-out), border-color var(--d-3) var(--ease-out), backdrop-filter var(--d-3) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
}
.brand-mark {
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.brand-logo {
  height: 92px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 720px) {
  .brand-logo { height: 68px; }
}
.footer .brand-logo { height: 60px; }
.footer-brand .brand-logo { height: 66px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: var(--s-2) 0;
  transition: color var(--d-1) var(--ease-out);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--d-2) var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: var(--s-4); }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: all var(--d-1) var(--ease-out);
}
.lang-toggle:hover { color: var(--gold); border-color: var(--gold); }
.lang-toggle .active { color: var(--ink); }

.nav-burger { display: none; width: 32px; height: 32px; position: relative; }
.nav-burger span { position: absolute; left: 6px; right: 6px; height: 1px; background: var(--ink); transition: all var(--d-2) var(--ease-out); }
.nav-burger span:nth-child(1) { top: 12px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-open .nav-burger span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { top: 16px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--bg-deep);
    padding: var(--s-7) var(--s-5);
    gap: var(--s-5);
    align-items: flex-start;
    z-index: var(--z-nav);
  }
  .nav-open .nav-link { font-size: 1.8rem; font-family: var(--f-serif); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + var(--s-7)) 0 var(--s-9);
  overflow: hidden;
}
/* Spline galaxy — deepest ambient layer, offset right */
.hero-spline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  background: var(--bg-void);
  transform: translateX(22%) scale(1.05);
  transform-origin: center;
}
@media (max-width: 900px) {
  .hero-spline { transform: translateX(8%) scale(1); }
}
.hero-spline-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right,
      rgba(6,6,10,0.95) 0%,
      rgba(6,6,10,0.85) 18%,
      rgba(6,6,10,0.4)  38%,
      rgba(6,6,10,0.08) 60%,
      rgba(6,6,10,0.05) 82%,
      rgba(6,6,10,0.55) 100%),
    linear-gradient(to bottom,
      rgba(6,6,10,0.5) 0%,
      transparent 22%,
      transparent 60%,
      rgba(6,6,10,0.95) 100%);
}

.hero-sigil {
  position: absolute;
  top: 50%; left: 72%;
  transform: translate(-50%, -50%);
  width: min(70vw, 620px);
  height: min(70vw, 620px);
  pointer-events: none;
  opacity: 0.14;
  z-index: 2;
  mix-blend-mode: screen;
  animation: sigil-rotate 90s linear infinite;
}
@media (max-width: 900px) {
  .hero-sigil { left: 60%; width: min(85vw, 460px); height: min(85vw, 460px); }
}
@keyframes sigil-rotate { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-sigil-inner {
  position: absolute;
  top: 50%; left: 72%;
  transform: translate(-50%, -50%);
  width: min(50vw, 380px);
  height: min(50vw, 380px);
  pointer-events: none;
  opacity: 0.08;
  z-index: 2;
  mix-blend-mode: screen;
  animation: sigil-rotate-rev 120s linear infinite;
}
@media (max-width: 900px) {
  .hero-sigil-inner { left: 60%; width: min(65vw, 320px); height: min(65vw, 320px); }
}
@keyframes sigil-rotate-rev { to { transform: translate(-50%, -50%) rotate(-360deg); } }

.hero-grain {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 80%, rgba(201, 169, 110, 0.10), transparent 60%),
    radial-gradient(circle at 15% 25%, rgba(74, 42, 85, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  animation: breathe 14s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}
.hero-content > * + * { margin-top: var(--s-5); }
.hero-content .display { margin-top: var(--s-6); }
.hero-meta {
  display: flex;
  gap: var(--s-7);
  margin-top: var(--s-8) !important;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.hero-meta-item { display: flex; flex-direction: column; gap: var(--s-1); }
.hero-meta-item strong { color: var(--ink); font-weight: 500; font-family: var(--f-serif); font-size: 18px; letter-spacing: 0; }

.hero-scroll {
  position: absolute;
  bottom: var(--s-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.5; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

.hero-actions { display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* ---------- SECTION HEADERS ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-7);
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.section-head-text > * + * { margin-top: var(--s-3); }
.section-head h2 { max-width: 18ch; }
.section-head-aside { color: var(--ink-mute); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 768px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
}

/* ---------- PILLAR CARDS ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 1024px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pillars { grid-template-columns: 1fr; } }

.pillar {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-6) var(--s-5);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--d-3) var(--ease-out);
  overflow: hidden;
  cursor: pointer;
}
.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201,169,110,0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--d-3) var(--ease-out);
  pointer-events: none;
}
.pillar:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(201, 169, 110, 0.2);
}
.pillar:hover::before { opacity: 1; }
.pillar-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}
.pillar-glyph {
  width: 64px; height: 64px;
  margin: var(--s-3) 0 var(--s-5);
  color: var(--gold);
  transition: transform var(--d-3) var(--ease-spring);
}
.pillar:hover .pillar-glyph { transform: rotate(45deg) scale(1.08); }
.pillar h3 { font-family: var(--f-serif); font-weight: 500; margin-bottom: var(--s-3); }
.pillar h3 em { color: var(--gold); font-style: italic; }
.pillar p { font-size: 14px; line-height: 1.55; color: var(--ink-mute); }
.pillar-foot {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.pillar-foot .btn-arrow { color: var(--gold); }

/* ---------- FEATURED COURSE ---------- */
.featured {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-7);
  align-items: center;
  background: linear-gradient(135deg, rgba(107,30,46,0.18), rgba(74,42,85,0.18));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  overflow: hidden;
}
.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201,169,110,0.16), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(184,92,60,0.1), transparent 50%);
  pointer-events: none;
}
.featured > * { position: relative; z-index: 2; }
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; padding: var(--s-5); } }
.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 4px 10px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-deep);
  border-radius: var(--r-full);
  color: var(--gold);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.featured-tag .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.featured h2 { font-style: italic; margin-bottom: var(--s-4); }
.featured-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.featured-meta div { display: flex; flex-direction: column; gap: var(--s-1); }
.featured-meta span { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.featured-meta strong { font-family: var(--f-serif); font-size: 18px; font-weight: 500; color: var(--ink); }

.featured-visual {
  aspect-ratio: 4/5;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(201,169,110,0.18), rgba(6,6,10,0) 70%),
    linear-gradient(135deg, var(--bg-deep), var(--bg-elevated));
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-visual svg { width: 70%; height: 70%; color: var(--gold); opacity: 0.65; }

/* ---------- MENTOR ---------- */
.mentor-strip {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: var(--s-7);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .mentor-strip { grid-template-columns: 1fr; gap: var(--s-5); } }
.mentor-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--burgundy-deep), var(--bg-elevated) 60%, var(--plum));
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  max-width: 280px;
}
.mentor-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(201,169,110,0.25), transparent 60%);
}
.mentor-portrait-mark {
  position: absolute;
  bottom: var(--s-4);
  left: var(--s-4);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.mentor-quote { font-family: var(--f-serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-style: italic; line-height: 1.35; color: var(--ink); max-width: 26ch; }
.mentor-quote::before { content: '«'; color: var(--gold); margin-right: var(--s-2); font-size: 1.2em; }
.mentor-quote::after { content: '»'; color: var(--gold); margin-left: var(--s-2); font-size: 1.2em; }
.mentor-cite { display: block; margin-top: var(--s-4); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- TESTIMONIAL MARQUEE ---------- */
.marquee {
  overflow: hidden;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--s-7);
  animation: marquee 50s linear infinite;
  width: max-content;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: var(--s-7);
  white-space: nowrap;
}
.marquee-item::after { content: '✦'; color: var(--gold); }

/* ---------- CTA STRIP ---------- */
.cta-strip {
  text-align: center;
  padding: var(--s-9) var(--s-5);
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.08), transparent 60%);
}
.cta-strip h2 { margin-bottom: var(--s-4); }
.cta-form {
  display: flex;
  gap: var(--s-2);
  max-width: 480px;
  margin: var(--s-6) auto 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 4px;
  transition: border-color var(--d-2) var(--ease-out);
}
.cta-form:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-faint); }
.cta-form input {
  flex: 1;
  padding: 0 var(--s-4);
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}
.cta-form input::placeholder { color: var(--ink-faint); }
.cta-form button {
  padding: 12px 20px;
  background: var(--gold);
  color: var(--bg-void);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: background var(--d-1) var(--ease-out);
}
.cta-form button:hover { background: var(--gold-bright); }

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  z-index: 2;
  padding: var(--s-8) 0 var(--s-5);
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-4);
}
.footer ul li { margin-bottom: var(--s-2); }
.footer ul a { color: var(--ink-soft); font-size: 14px; transition: color var(--d-1); }
.footer ul a:hover { color: var(--gold); }
.footer-brand p { font-family: var(--f-serif); font-style: italic; font-size: 14px; max-width: 30ch; color: var(--ink-mute); margin-top: var(--s-3); }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ---------- CURSOR (desktop) ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width var(--d-2) var(--ease-out), height var(--d-2) var(--ease-out), background var(--d-2) var(--ease-out);
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor.is-active { opacity: 0.7; }
.cursor.is-hover { width: 56px; height: 56px; background: rgba(201,169,110,0.1); }
@media (hover: none), (max-width: 900px) { .cursor { display: none; } }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--d-4) var(--ease-out), transform var(--d-4) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-slow { transition-duration: var(--d-5); }

/* ---------- COURSE CATALOG ---------- */
.catalog-tabs {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.catalog-tab {
  padding: 10px 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  transition: all var(--d-2) var(--ease-out);
}
.catalog-tab:hover { color: var(--ink); }
.catalog-tab.active {
  background: var(--gold-faint);
  border-color: var(--gold);
  color: var(--gold);
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .catalog-grid { grid-template-columns: 1fr; } }

.course-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--d-3) var(--ease-out);
}
.course-card:hover { border-color: var(--gold-deep); transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6); }
.course-cover {
  aspect-ratio: 16/10;
  position: relative;
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-elevated));
  overflow: hidden;
}
.course-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cover-glow, radial-gradient(circle at 50% 50%, rgba(201,169,110,0.2), transparent 60%));
  transition: opacity var(--d-3);
}
.course-cover svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50%; height: 50%; color: var(--gold); opacity: 0.55; }
.course-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform var(--d-4) var(--ease-out), filter var(--d-4) var(--ease-out);
  filter: saturate(0.95) contrast(1.02);
}
.course-card:hover .course-cover img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}
.course-cover.has-img::after { display: none; }
.course-cover.has-img::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 22%, transparent 60%, rgba(0,0,0,0.55) 100%);
}
.course-cover.has-img .course-cover-tag,
.course-cover.has-img .course-cover-type { z-index: 3; }
.course-cover-tag {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(6,6,10,0.6);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  z-index: 2;
}
.course-cover-type {
  position: absolute;
  bottom: var(--s-3); right: var(--s-3);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  z-index: 2;
}
.course-body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; }
.course-body h3 { font-family: var(--f-serif); font-weight: 500; margin-bottom: var(--s-3); font-size: 1.4rem; line-height: 1.2; }
.course-body p { font-size: 14px; color: var(--ink-mute); margin-bottom: var(--s-4); flex: 1; }
.course-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.course-meta-row strong { font-family: var(--f-serif); font-size: 18px; color: var(--gold); font-weight: 500; letter-spacing: 0; text-transform: none; }

/* ---------- COURSE DETAIL ---------- */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  padding-top: calc(var(--nav-h) + var(--s-7));
  padding-bottom: var(--s-8);
}
@media (max-width: 900px) { .detail-hero { grid-template-columns: 1fr; gap: var(--s-5); } }
.detail-hero h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: 0.01em; }
.detail-hero .lede { margin-top: var(--s-4); }
.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-meta-grid > div { display: flex; flex-direction: column; gap: var(--s-1); }
.detail-meta-grid span { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.detail-meta-grid strong { font-family: var(--f-serif); font-size: 18px; font-weight: 500; }

.detail-visual {
  aspect-ratio: 1/1;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,169,110,0.3), transparent 60%), linear-gradient(135deg, var(--burgundy-deep), var(--plum));
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-visual svg { width: 60%; height: 60%; color: var(--gold); opacity: 0.7; }
.detail-visual .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-visual .play button {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(6,6,10,0.7);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--d-2) var(--ease-out);
  backdrop-filter: blur(8px);
}
.detail-visual .play button:hover { transform: scale(1.1); background: var(--gold); color: var(--bg-void); }
.detail-visual .play svg { width: 24px; height: 24px; opacity: 1; }

.detail-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-8);
}
@media (max-width: 900px) { .detail-body { grid-template-columns: 1fr; } }
.curriculum li {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
  transition: all var(--d-2) var(--ease-out);
}
.curriculum li:hover { padding-left: var(--s-3); border-bottom-color: var(--gold-deep); }
.curriculum li .num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-mute); }
.curriculum li .title { font-family: var(--f-serif); font-size: 17px; }
.curriculum li .dur { font-family: var(--f-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.1em; }

.booking-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: sticky;
  top: calc(var(--nav-h) + var(--s-4));
}
.booking-card .price { font-family: var(--f-display); font-size: 2.6rem; color: var(--gold); margin: var(--s-3) 0; }
.booking-card .price small { font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.1em; margin-left: var(--s-2); }
.booking-list { margin: var(--s-5) 0; }
.booking-list li { padding: var(--s-3) 0; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft); }
.booking-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.booking-card .btn { width: 100%; justify-content: center; }

/* ---------- BOOKING CALENDAR ---------- */
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-h { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-mute); text-align: center; padding-bottom: var(--s-3); }
.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-mute);
  cursor: pointer;
  transition: all var(--d-1) var(--ease-out);
  position: relative;
}
.cal-day.has-slot { color: var(--ink); border-color: var(--line); }
.cal-day.has-slot::after { content: ''; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.cal-day:hover.has-slot { background: var(--gold-faint); border-color: var(--gold); color: var(--gold); }
.cal-day.selected { background: var(--gold); color: var(--bg-void); border-color: var(--gold); }
.cal-day.selected::after { background: var(--bg-void); }
.cal-day.disabled { opacity: 0.25; pointer-events: none; }

.slot-list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.slot {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--d-1) var(--ease-out);
}
.slot:hover { border-color: var(--gold); color: var(--gold); }
.slot.selected { background: var(--gold); color: var(--bg-void); border-color: var(--gold); }

/* ---------- MENTOR DETAIL ---------- */
.mentor-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--s-8);
  align-items: start;
  padding-top: calc(var(--nav-h) + var(--s-7));
  padding-bottom: var(--s-8);
}
@media (max-width: 900px) { .mentor-hero { grid-template-columns: 1fr; gap: var(--s-5); } }
.mentor-hero-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--burgundy-deep), var(--plum));
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.mentor-hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(201,169,110,0.25), transparent 60%);
}
.mentor-tag {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); padding: 6px 12px; border: 1px solid var(--gold-deep); border-radius: var(--r-full);
  background: var(--gold-faint);
}
.mentor-creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 560px) { .mentor-creds { grid-template-columns: 1fr 1fr; } }
.mentor-creds div { display: flex; flex-direction: column; gap: var(--s-1); }
.mentor-creds span { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.mentor-creds strong { font-family: var(--f-serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); }

/* ---------- MANIFESTO ---------- */
.manifesto {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s-9) var(--s-5);
}
.manifesto .display { font-style: italic; }
.manifesto p { margin: var(--s-6) auto 0; font-family: var(--f-serif); font-size: 1.3rem; color: var(--ink-soft); line-height: 1.5; max-width: 60ch; }

/* ---------- UTIL ---------- */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-strong), transparent);
  margin: var(--s-7) 0;
}
.sep { color: var(--ink-faint); margin: 0 var(--s-2); }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- FOCUS STATES ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* =========================================================
   10K UPGRADE LAYER
   ========================================================= */

/* ---------- LOADING CURTAIN ---------- */
.loading-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-6);
  transition: opacity 900ms var(--ease-out), visibility 900ms var(--ease-out);
}
.curtain-mark {
  width: 88px;
  height: 88px;
  color: var(--gold);
  overflow: visible;
}
.curtain-logo {
  width: min(320px, 60vw);
  height: auto;
  opacity: 0;
  animation: curtain-logo-in 900ms 200ms var(--ease-out) forwards;
}
@keyframes curtain-logo-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
.curtain-mark .ring-1,
.curtain-mark .ring-2,
.curtain-mark .axis-v,
.curtain-mark .axis-h {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: curtain-draw 1100ms var(--ease-out) forwards;
}
.curtain-mark .ring-2 { animation-delay: 180ms; }
.curtain-mark .axis-v { animation-delay: 360ms; stroke-dasharray: 200; stroke-dashoffset: 200; }
.curtain-mark .axis-h { animation-delay: 460ms; stroke-dasharray: 200; stroke-dashoffset: 200; }
.curtain-mark .dot { opacity: 0; animation: curtain-dot 600ms 900ms var(--ease-out) forwards; }
@keyframes curtain-draw { to { stroke-dashoffset: 0; } }
@keyframes curtain-dot { to { opacity: 1; } }

.curtain-word {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.62em;
  color: var(--ink-mute);
  text-indent: 0.62em;
  opacity: 0;
  animation: curtain-fade 900ms 850ms var(--ease-out) forwards;
}
.curtain-bar {
  width: 120px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: curtain-fade 600ms 700ms var(--ease-out) forwards;
}
.curtain-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  animation: curtain-bar 1100ms 800ms var(--ease-out) forwards;
}
@keyframes curtain-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes curtain-fade { to { opacity: 1; } }

html.loaded .loading-curtain {
  opacity: 0;
  visibility: hidden;
}

/* Body lock during load */
html:not(.loaded) body { overflow: hidden; height: 100vh; }

/* Hero content waits for curtain, then cascades in */
html:not(.loaded) .hero-content > *,
html:not(.loaded) .hero-scroll {
  opacity: 0;
  transform: translateY(20px);
}
html.loaded .hero-content > * {
  animation: hero-cascade 900ms var(--ease-out) forwards;
}
html.loaded .hero-content > *:nth-child(1) { animation-delay: 1100ms; }
html.loaded .hero-content > *:nth-child(2),
html.loaded .hero-content > *:nth-child(3) { animation-delay: 1200ms; }
html.loaded .hero-content > *:nth-child(4),
html.loaded .hero-content > *:nth-child(5) { animation-delay: 1320ms; }
html.loaded .hero-content > *:nth-child(6),
html.loaded .hero-content > *:nth-child(7) { animation-delay: 1440ms; }
html.loaded .hero-content > *:nth-child(8),
html.loaded .hero-content > *:nth-child(9) { animation-delay: 1560ms; }
html.loaded .hero-scroll { animation: hero-cascade 700ms 1800ms var(--ease-out) forwards; }
@keyframes hero-cascade { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .loading-curtain { display: none; }
  html:not(.loaded) .hero-content > *,
  html:not(.loaded) .hero-scroll { opacity: 1; transform: none; }
}

/* ---------- MAGNETIC + REFINED CTA ---------- */
.btn-magnetic {
  transition: background var(--d-2) var(--ease-out),
              border-color var(--d-2) var(--ease-out),
              color var(--d-2) var(--ease-out),
              box-shadow var(--d-2) var(--ease-out);
  will-change: transform;
}
.btn-magnetic:hover { transform: none; } /* JS handles transform */

.btn-primary.btn-magnetic {
  position: relative;
  overflow: visible;
}
.btn-primary.btn-magnetic::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(227, 200, 150, 0.4), transparent 70%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity var(--d-3) var(--ease-out);
  z-index: -1;
  pointer-events: none;
}
.btn-primary.btn-magnetic:hover::before { opacity: 1; }

/* Refined ghost: gold underline grows from left */
.btn-ghost.btn-magnetic {
  position: relative;
  border: 1px solid var(--line-strong);
}
.btn-ghost.btn-magnetic::after {
  content: '';
  position: absolute;
  left: 50%; right: 50%; bottom: -1px;
  height: 1px;
  background: var(--gold);
  transition: left var(--d-3) var(--ease-out), right var(--d-3) var(--ease-out);
}
.btn-ghost.btn-magnetic:hover::after { left: 24px; right: 24px; }

/* ---------- HERO TYPOGRAPHY RESET (editorial) ---------- */
.hero-kicker {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-kicker .num {
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 500;
}
.hero-kicker .bar {
  flex: 0 0 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.display-xl {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 0.95;
  font-size: clamp(3rem, 9vw, 7.6rem);
  color: var(--ink);
}
.display-xl em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.02em;
  font-size: 1.08em;
  display: inline-block;
  transform: translateY(0.04em);
}

/* Editorial three-tier hero title: kicker → statement → closer */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35em;
  font-size: clamp(3rem, 9vw, 7.6rem); /* base for em-relative tiers */
}
.hero-title .t-kicker {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.30em;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1;
}
.hero-title .t-kicker::after {
  content: '';
  width: 2.2em;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.85;
}
.hero-title .t-statement {
  display: block;
  line-height: 0.95;
}
.hero-title .t-statement em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.01em;
  font-size: 1.06em;
  display: inline-block;
  text-shadow: 0 0 60px rgba(201, 169, 110, 0.35);
}
.hero-title .t-closer {
  display: block;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.42em;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--ink);
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .hero-title .t-kicker { letter-spacing: 0.34em; gap: 14px; }
  .hero-title .t-closer { font-size: 0.46em; letter-spacing: 0.1em; }
}

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: var(--s-7) !important;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  position: relative;
}
.hero-stat-strip > div {
  padding: 0 var(--s-5) 0 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.hero-stat-strip > div:first-child { padding-left: 0; }
.hero-stat-strip > div:last-child { border-right: none; padding-right: 0; }
.hero-stat-strip strong {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1;
}
.hero-stat-strip span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 720px) {
  .hero-stat-strip { grid-template-columns: 1fr 1fr; gap: var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-4); }
  .hero-stat-strip > div { padding: var(--s-3) var(--s-4) var(--s-3) 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .hero-stat-strip > div:nth-child(2n) { border-right: none; padding-right: 0; }
  .hero-stat-strip > div:nth-last-child(-n+2) { border-bottom: none; }
}

/* ---------- SCROLL-DRIVEN HERO ---------- */
.hero-spline,
.hero-content,
.hero-sigil,
.hero-sigil-inner {
  will-change: transform, opacity;
}

/* ---------- REFINED PILLAR CARDS (with bespoke micro-illustration) ---------- */
.pillar {
  background:
    linear-gradient(180deg, var(--bg-surface), var(--bg-deep));
  position: relative;
}
.pillar-glyph-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  margin: var(--s-3) 0 var(--s-6);
}
.pillar-glyph-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: all var(--d-3) var(--ease-out);
  opacity: 0.4;
}
.pillar-glyph-wrap::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  border-style: dashed;
  transition: all var(--d-3) var(--ease-out);
  animation: glyph-orbit 30s linear infinite;
  opacity: 0.5;
}
@keyframes glyph-orbit { to { transform: rotate(360deg); } }
.pillar:hover .pillar-glyph-wrap::before {
  inset: -10px;
  border-color: var(--gold);
  opacity: 1;
}
.pillar:hover .pillar-glyph-wrap::after {
  border-color: var(--gold-deep);
  opacity: 0.8;
}
.pillar-glyph-wrap .pillar-glyph {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
}

/* ---------- SECTION HEAD REFINEMENT ---------- */
.section-head {
  position: relative;
  padding-top: var(--s-3);
}
.section-head::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 1px;
  background: var(--gold);
}

/* ---------- ABOUT PAGE · AMBIENT LIBRARY ---------- */
/* Treasure canyon photo replaces the cave SVG on about page.
   Layers (top→bottom): dark scrim for readability → warm brand tint → photo → void fallback. */
body.about-page {
  position: relative;
  background:
    linear-gradient(180deg,
      rgba(6,6,10,0.55) 0%,
      rgba(6,6,10,0.18) 20%,
      rgba(6,6,10,0.12) 55%,
      rgba(6,6,10,0.68) 100%),
    linear-gradient(180deg,
      rgba(107,30,46,0.15) 0%,
      rgba(184,92,60,0.06) 55%,
      rgba(74,42,85,0.12) 100%),
    url("img/bg-treasure.jpg") center center / cover no-repeat fixed,
    var(--bg-void);
}
body.about-page::before {
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(107, 30, 46, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 75%, rgba(74, 42, 85, 0.24), transparent 55%),
    radial-gradient(ellipse 60% 45% at 8% 70%, rgba(201, 169, 110, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 35% at 50% 110%, rgba(184, 92, 60, 0.18), transparent 55%);
}

/* Bright hero → dim content: non-hero sections cover the fixed treasure photo
   so course cards read clearly against near-void. */
body.about-page > section:not(.hero) {
  background: rgba(6, 6, 10, 0.97);
}
/* First section after hero: a long, pixel-based fade from transparent to
   dark. Feels like walking deeper into the canyon — you still see traces
   of daylight for 500px, halfway into shadow by 900px, full cave at 1400px. */
body.about-page > section.hero + section,
body.about-page > .section-divider + section {
  background: linear-gradient(180deg,
    rgba(6, 6, 10, 0.00) 0px,
    rgba(6, 6, 10, 0.12) 220px,
    rgba(6, 6, 10, 0.32) 500px,
    rgba(6, 6, 10, 0.60) 800px,
    rgba(6, 6, 10, 0.82) 1100px,
    rgba(6, 6, 10, 0.94) 1400px,
    rgba(6, 6, 10, 0.97) 1700px
  );
}
@media (max-width: 720px) {
  /* Shorten on mobile where sections are physically smaller. */
  body.about-page > section.hero + section,
  body.about-page > .section-divider + section {
    background: linear-gradient(180deg,
      rgba(6, 6, 10, 0.00) 0px,
      rgba(6, 6, 10, 0.15) 140px,
      rgba(6, 6, 10, 0.42) 320px,
      rgba(6, 6, 10, 0.70) 520px,
      rgba(6, 6, 10, 0.90) 740px,
      rgba(6, 6, 10, 0.97) 960px
    );
  }
}

/* Drifting lamp-light orbs */
.about-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  mix-blend-mode: screen;
}
.orb-1 {
  top: 8%; left: -8%;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(201,169,110,0.32), transparent 70%);
  animation: orb-drift-a 22s ease-in-out infinite;
}
.orb-2 {
  top: 45%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(107,30,46,0.32), transparent 70%);
  animation: orb-drift-b 28s ease-in-out infinite;
}
.orb-3 {
  top: 70%; left: 30%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(74,42,85,0.38), transparent 70%);
  animation: orb-drift-c 24s ease-in-out infinite;
}
.orb-4 {
  top: 20%; right: 25%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(227,200,150,0.18), transparent 70%);
  animation: orb-drift-d 20s ease-in-out infinite;
}
@keyframes orb-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50%      { transform: translate(60px, 40px) scale(1.15); opacity: 1; }
}
@keyframes orb-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50%      { transform: translate(-80px, -50px) scale(1.1); opacity: 0.95; }
}
@keyframes orb-drift-c {
  0%, 100% { transform: translate(0, 0) scale(0.95); opacity: 0.65; }
  50%      { transform: translate(50px, -70px) scale(1.15); opacity: 0.95; }
}
@keyframes orb-drift-d {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  50%      { transform: translate(-30px, 60px) scale(1.05); opacity: 0.85; }
}

/* Background alchemy wheels behind showcase */
.about-page .showcase-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.about-page .showcase-bg svg {
  position: absolute;
  color: var(--gold);
  opacity: 0.06;
  mix-blend-mode: screen;
}
.about-page .showcase-bg .bg-wheel-l {
  top: 6%; left: -180px;
  width: 520px; height: 520px;
  animation: glyph-spin 140s linear infinite;
}
.about-page .showcase-bg .bg-wheel-r {
  bottom: 6%; right: -180px;
  width: 520px; height: 520px;
  animation: glyph-spin 160s linear infinite reverse;
}
@keyframes glyph-spin { to { transform: rotate(360deg); } }

/* Showcase wrapper section relative for absolute children */
.about-page section { position: relative; z-index: 2; }
.about-page .container { position: relative; z-index: 3; }

/* Card halo glow on hover — premium ritual feel */
.about-page .showcase-card {
  position: relative;
  background:
    linear-gradient(180deg, var(--bg-surface), var(--bg-deep));
}
.about-page .showcase-card::before {
  content: '';
  position: absolute;
  inset: -22px;
  background: radial-gradient(circle at 50% 50%, rgba(201,169,110,0.32), transparent 65%);
  filter: blur(40px);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--d-4) var(--ease-out);
  pointer-events: none;
  border-radius: var(--r-md);
}
.about-page .showcase-card:hover::before { opacity: 1; }

/* Section divider — vintage book chapter break */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  padding: var(--s-8) 0 var(--s-5);
  position: relative;
  z-index: 3;
}
.section-divider .line {
  flex: 0 0 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-deep), transparent);
}
.section-divider .glyph {
  width: 28px; height: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Closing manifesto with candle-glow vignette */
.about-page .manifesto {
  position: relative;
  isolation: isolate;
}
.about-page .manifesto::before {
  content: '';
  position: absolute;
  inset: -8%;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,169,110,0.22), transparent 60%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* Ritual counter — scarcity urgency strip */
.ritual-counter {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding: 8px 16px;
  border: 1px solid var(--gold-deep);
  border-radius: var(--r-full);
  background: rgba(201, 169, 110, 0.08);
  backdrop-filter: blur(8px);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.ritual-counter .counter-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 12px var(--gold);
}
.ritual-counter .counter-divider {
  color: var(--gold-deep);
  margin: 0 var(--s-1);
}

/* Enhanced CTA — purchase ritual feel */
.about-page .cta-strip {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.14), transparent 60%),
    radial-gradient(ellipse at 30% 100%, rgba(107,30,46,0.16), transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(74,42,85,0.16), transparent 60%);
  padding: var(--s-10) var(--s-5);
  position: relative;
  border-top: 1px solid var(--line);
}
.about-page .cta-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--gold);
}
.about-page .cta-strip h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: var(--s-4);
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
  .about-page .showcase-bg svg { animation: none !important; }
}

/* ---------- CATEGORY SECTIONS ---------- */
.showcase-category { margin-bottom: var(--s-8); }
.showcase-category:last-child { margin-bottom: 0; }

.category-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  padding: 0 0 var(--s-5);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.category-head::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--gold);
}
.category-num {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 500;
}
.category-title {
  font-family: var(--f-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.category-count {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  margin-left: auto;
}
.category-count::before { content: ""; }
.category-count::after {
  content: " 套";
  margin-left: 2px;
}

/* ---------- ABOUT PAGE · COURSE SHOWCASE (uniform 3-col grid) ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  align-items: stretch;
}
@media (max-width: 900px) { .showcase-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .showcase-grid { grid-template-columns: 1fr; } }

.showcase-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1.5px solid rgba(201, 169, 110, 0.5);
  background: var(--bg-surface);
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, 0.1),
    0 10px 40px -12px rgba(201, 169, 110, 0.25),
    0 4px 20px -8px rgba(0, 0, 0, 0.5);
  transition: transform var(--d-3) var(--ease-out),
              border-color var(--d-3) var(--ease-out),
              box-shadow var(--d-3) var(--ease-out);
}
.showcase-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px var(--gold),
    0 0 60px -8px rgba(227, 200, 150, 0.55),
    0 30px 70px -20px rgba(0, 0, 0, 0.7);
}

/* Uniform cover — fixed 4:3 box, full image shown via contain */
.showcase-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at 50% 50%, var(--bg-elevated), var(--bg-void));
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-cover img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--d-5) var(--ease-out), filter var(--d-4) var(--ease-out);
  filter: saturate(0.98) contrast(1.02);
}
.showcase-card:hover .showcase-cover img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}

.showcase-meta {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  border-top: 1px solid var(--line-soft);
  flex: 1;
}
.showcase-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--s-1);
}

/* Trending / hot-selling badge — top-right of the cover */
.showcase-hot {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: linear-gradient(135deg, #e0764a 0%, #b83c4c 100%);
  border: 1px solid rgba(255, 220, 190, 0.55);
  border-radius: 999px;
  color: #fff;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow:
    0 0 0 1px rgba(184, 60, 76, 0.35),
    0 10px 24px -8px rgba(224, 118, 74, 0.6),
    0 0 32px -4px rgba(255, 145, 100, 0.35);
  animation: hot-glow 3s ease-in-out infinite;
  pointer-events: none;
}
.showcase-hot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #ffd8b0, 0 0 14px #ff9070;
  animation: hot-pulse 1.4s ease-in-out infinite;
}
@keyframes hot-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
@keyframes hot-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(184, 60, 76, 0.35), 0 10px 24px -8px rgba(224, 118, 74, 0.6),  0 0 32px -4px rgba(255, 145, 100, 0.35); }
  50%      { box-shadow: 0 0 0 1px rgba(184, 60, 76, 0.55), 0 14px 34px -6px rgba(224, 118, 74, 0.85), 0 0 46px -2px rgba(255, 145, 100, 0.55); }
}
/* Slight extra lift on hover so the hot card feels alive */
.showcase-card.is-hot:hover .showcase-hot {
  transform: translateY(-1px);
}

/* In-progress / currently-running badge — top-right of the cover, gold palette */
.showcase-live {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: linear-gradient(135deg, rgba(6, 6, 10, 0.72) 0%, rgba(20, 16, 30, 0.72) 100%);
  border: 1px solid rgba(201, 169, 110, 0.55);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, 0.22),
    0 8px 20px -6px rgba(0, 0, 0, 0.55),
    0 0 20px -4px rgba(227, 200, 150, 0.28);
  animation: live-glow 4s ease-in-out infinite;
  pointer-events: none;
}
.showcase-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold), 0 0 12px rgba(227, 200, 150, 0.7);
  animation: live-blink 1.6s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.1);  }
}
@keyframes live-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.22), 0 8px 20px -6px rgba(0, 0, 0, 0.55), 0 0 20px -4px rgba(227, 200, 150, 0.28); }
  50%      { box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.45), 0 12px 28px -6px rgba(0, 0, 0, 0.65), 0 0 32px -2px rgba(227, 200, 150, 0.5);  }
}
.showcase-card.is-live:hover .showcase-live {
  transform: translateY(-1px);
}

.showcase-card h3 {
  font-family: var(--f-serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  font-size: 1.1rem;
  transition: color var(--d-2) var(--ease-out);
  margin: 0;
}
.showcase-card:hover h3 { color: var(--gold); }
.showcase-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: var(--s-2) 0 0;
  max-width: none;
}
@media (max-width: 720px) {
  .showcase-meta { padding: var(--s-4); }
}

/* ---------- VIDEOS PAGE · NETFLIX-STYLE ROWS ---------- */
.video-row-section {
  padding: var(--s-6) 0;
  position: relative;
  z-index: 2;
}
.video-row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-5);
}
.video-row-head h2 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin-top: var(--s-2);
}
.video-row-head h2 em {
  font-style: italic;
  color: var(--gold);
}
.video-row-count {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.video-row-wrap {
  position: relative;
}
.video-row-track {
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--s-3) var(--s-5);
  margin: 0 calc(var(--s-5) * -1);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-padding-left: var(--s-5);
}
.video-row-track::-webkit-scrollbar { display: none; }

.video-card {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--d-3) var(--ease-out),
              box-shadow var(--d-3) var(--ease-out);
  background: var(--bg-surface);
  border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .video-card { width: 260px; }
}
.video-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.7),
              0 0 0 1px var(--gold-deep);
  z-index: 4;
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-elevated));
  overflow: hidden;
  background-size: cover;
  background-position: center center;
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--d-5) var(--ease-out),
              filter var(--d-3) var(--ease-out);
  filter: saturate(0.95) contrast(1.02);
}
.video-card:hover .video-thumb img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.06) brightness(1.05);
}
.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 70%, rgba(6,6,10,0.35) 100%);
  pointer-events: none;
}
.video-duration {
  position: absolute;
  top: var(--s-3); right: var(--s-3);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: rgba(6,6,10,0.7);
  backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  z-index: 3;
}
.video-tag {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,169,110,0.16);
  border: 1px solid var(--gold-deep);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  z-index: 3;
}
.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(6,6,10,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity var(--d-3) var(--ease-out),
              transform var(--d-3) var(--ease-spring);
}
.video-card:hover .video-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.video-play svg {
  width: 18px; height: 18px;
  fill: currentColor;
  margin-left: 2px;
}
.video-thumb-title {
  padding: var(--s-4) var(--s-4) var(--s-4);
  background: var(--bg-surface);
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-2);
}
.video-thumb-title h3 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-thumb-title p {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* Arrow buttons */
.video-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(6,6,10,0.85);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 22px;
  z-index: 10;
  opacity: 0;
  transition: opacity var(--d-2) var(--ease-out),
              background var(--d-2) var(--ease-out),
              border-color var(--d-2) var(--ease-out);
  cursor: pointer;
}
.video-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-void);
}
.video-arrow.left  { left: -22px; }
.video-arrow.right { right: -22px; }
.video-row-wrap:hover .video-arrow { opacity: 1; }
.video-arrow:disabled { opacity: 0.3 !important; cursor: not-allowed; }
@media (hover: none) {
  .video-arrow { display: none; }
}

/* Mobile adjustments */
@media (max-width: 720px) {
  .video-card { width: 180px; }
  .video-thumb-title { padding: var(--s-3); }
  .video-thumb-title h3 { font-size: 0.9rem; }
  .video-row-track {
    padding: var(--s-3) var(--s-4);
    margin: 0 calc(var(--s-4) * -1);
  }
}

/* =========================================================
   TRIBE PAGE · MEMBERSHIP
   ========================================================= */
:root {
  --mint: #4ecdc4;
  --mint-glow: rgba(78, 205, 196, 0.35);
  --mint-deep: #2f9d94;
}

body.tribe-page::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% -5%, rgba(78, 205, 196, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 40%, rgba(201, 169, 110, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(78, 205, 196, 0.18), transparent 55%);
}

/* ---------- HERO (image-based) ---------- */
.tribe-hero {
  padding: calc(var(--nav-h) + var(--s-6)) 0 var(--s-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tribe-hero .container { position: relative; z-index: 2; }
.tribe-hero-image {
  display: block;
  max-width: 1100px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--r-lg);
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, 0.15),
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 100px -30px rgba(78, 205, 196, 0.25);
  position: relative;
  z-index: 2;
}
.tribe-hero-cta {
  margin-top: var(--s-7);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Topic library heading — big bold caps */
.academy-topics-title {
  font-family: var(--f-sans);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
}

/* Bad Bad Academy headline above the tribe hero image */
.tribe-hero-headline {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto var(--s-6);
  padding: 0 var(--s-4);
}
.tribe-hero-title {
  font-family: var(--f-sans);
  font-weight: 900;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 var(--s-4);
}
.tribe-hero-sub {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 var(--s-4);
}
.tribe-hero-tagline {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0;
}

/* Scrolling ghost text behind the hero image */
.tribe-hero-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: calc(var(--nav-h) + var(--s-4)) 0 var(--s-6);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}
.tribe-ghost-row { display: flex; overflow: hidden; white-space: nowrap; }
.tribe-ghost-track {
  display: inline-flex;
  gap: 60px;
  padding-right: 60px;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.tribe-ghost-row:nth-child(1) .tribe-ghost-track { animation-duration: 32s; }
.tribe-ghost-row:nth-child(2) .tribe-ghost-track { animation-duration: 38s; animation-direction: reverse; }
.tribe-ghost-row:nth-child(3) .tribe-ghost-track { animation-duration: 28s; }
.tribe-ghost-row:nth-child(4) .tribe-ghost-track { animation-duration: 42s; animation-direction: reverse; }

.tribe-ghost-text {
  font-family: 'Impact', 'Arial Black', 'Noto Sans TC', sans-serif;
  font-weight: 900;
  font-size: 160px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.055);
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .tribe-ghost-text { font-size: 110px; }
}
@media (max-width: 600px) {
  .tribe-ghost-text { font-size: 78px; }
}

/* ---------- STORY ---------- */
.tribe-story {
  padding: var(--s-9) 0 var(--s-7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(78, 205, 196, 0.03));
}
.tribe-story-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.tribe-story h2 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: var(--s-4) 0 var(--s-5);
  letter-spacing: -0.005em;
}
.tribe-story p {
  font-family: var(--f-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 auto;
}

/* ---------- ACADEMY · 3 PILLARS ---------- */
.tribe-academy {
  padding: var(--s-9) 0 var(--s-9);
  position: relative;
}
.academy-head {
  max-width: 720px;
  margin: 0 auto var(--s-8);
  text-align: center;
}
.academy-head h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  color: var(--ink);
  margin-top: var(--s-4);
}
.academy-head h2 em {
  color: var(--gold);
  font-style: italic;
}
.academy-head .lede {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.academy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-9);
}
@media (max-width: 900px) { .academy-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

.academy-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--d-3) var(--ease-out),
              border-color var(--d-3) var(--ease-out),
              box-shadow var(--d-3) var(--ease-out);
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, 0.08),
    0 10px 30px -12px rgba(0, 0, 0, 0.55);
}
.academy-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-deep);
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, 0.35),
    0 26px 60px -18px rgba(0, 0, 0, 0.75),
    0 0 60px -18px rgba(227, 200, 150, 0.35);
}
.academy-poster {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-void);
}
.academy-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--d-5) var(--ease-out),
              filter var(--d-3) var(--ease-out);
  filter: saturate(0.95) contrast(1.02);
}
.academy-card:hover .academy-poster img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.06);
}
.academy-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 6, 10, 0.55) 100%);
  pointer-events: none;
}
.academy-body {
  padding: var(--s-5) var(--s-5) var(--s-6);
  position: relative;
}
.academy-num {
  position: absolute;
  top: calc(-1 * var(--s-6));
  right: var(--s-5);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gold);
  background: var(--bg-surface);
  border: 1px solid var(--gold-deep);
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}
.academy-body h3 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 var(--s-3);
}
.academy-body h3 em {
  color: var(--gold);
  font-style: italic;
}
.academy-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.academy-body p strong {
  color: var(--ink);
  font-weight: 500;
}

/* Topic library shelf */
.academy-topics {
  border-top: 1px solid var(--line-soft);
  padding-top: var(--s-7);
  text-align: center;
}
.academy-topics p {
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink-soft);
}
.academy-shelf {
  margin-top: var(--s-6);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: var(--s-4) 0 var(--s-5);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.academy-shelf::-webkit-scrollbar { display: none; }
.academy-shelf-track {
  display: flex;
  gap: var(--s-4);
  padding: 0 var(--s-5);
  min-width: min-content;
}
.academy-shelf-track img {
  flex: 0 0 auto;
  width: 200px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--r-sm);
  scroll-snap-align: start;
  transition: transform var(--d-3) var(--ease-out),
              box-shadow var(--d-3) var(--ease-out);
}
.academy-shelf-track img:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 0 0 1px var(--gold-deep),
    0 30px 60px -20px rgba(0, 0, 0, 0.85),
    0 0 40px -10px rgba(227, 200, 150, 0.4);
}
@media (max-width: 720px) {
  .academy-shelf-track img { width: 160px; }
}

/* ---------- MEMBER VIDEOS · Loom shelf ---------- */
.tribe-videos {
  padding: var(--s-9) 0 var(--s-6);
  position: relative;
}
.videos-head {
  max-width: 720px;
  margin: 0 auto var(--s-8);
  text-align: center;
}
.videos-head h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--ink);
  margin-top: var(--s-4);
}
.videos-head .lede {
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
@media (max-width: 600px) { .videos-grid { grid-template-columns: 1fr; } }

.video-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--d-3) var(--ease-out);
  cursor: pointer;
}
.video-tile:hover { transform: translateY(-4px); }
.video-tile-sub {
  position: absolute;
  left: var(--s-4);
  bottom: 10px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(14, 14, 18, 0.72);
  font-weight: 600;
}

.video-tile-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  border: none;
  background-color: #1a0a12;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 14px 32px -14px rgba(0,0,0,0.6);
  transition: box-shadow var(--d-3) var(--ease-out),
              transform var(--d-3) var(--ease-out);
}
.video-tile:hover .video-tile-thumb {
  box-shadow: 0 26px 55px -14px rgba(0,0,0,0.75);
  transform: translateY(-3px);
}
.video-tile-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1a0a12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  opacity: 0;
  transition: opacity var(--d-3) var(--ease-out), transform var(--d-3) var(--ease-spring);
  z-index: 2;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.4);
}
.video-tile-play svg { width: 20px; height: 20px; }
.video-tile:hover .video-tile-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}
.video-tile-dur {
  position: absolute;
  bottom: 10px; right: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  z-index: 2;
  font-weight: 600;
}
.video-tile h4 {
  margin: var(--s-4) 0 4px;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}
.video-tile p {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* Loom modal — same pattern as YouTube modal on courses page */
.loom-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
}
.loom-modal[aria-hidden="false"] { display: flex; }
.loom-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 10, 0.94);
  backdrop-filter: blur(18px);
  animation: oracle-fade-in 300ms var(--ease-out) forwards;
  cursor: pointer;
}
.loom-modal-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  animation: oracle-rise-in 450ms var(--ease-out) 80ms backwards;
}
.loom-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
}
.loom-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.loom-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--d-2) var(--ease-out), color var(--d-2) var(--ease-out);
}
.loom-modal-close:hover { opacity: 1; color: var(--gold); }

/* ---------- PRICING CARD ---------- */
.tribe-pricing {
  padding: var(--s-9) 0 var(--s-10);
  position: relative;
}
.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--s-8) var(--s-6);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--mint);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(78, 205, 196, 0.12), transparent 60%),
    var(--bg-surface);
  box-shadow:
    0 0 0 1px rgba(78, 205, 196, 0.15),
    0 20px 60px -20px rgba(78, 205, 196, 0.35),
    0 8px 30px -10px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.pricing-eyebrow {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 600;
  margin-bottom: var(--s-5);
}
.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--s-7);
}
.pricing-currency {
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--ink-soft);
  font-weight: 500;
}
.pricing-amount {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 8vw, 5rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: 0.02em;
}
.pricing-period {
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--ink-mute);
}

.pricing-features {
  text-align: left;
  padding: 0;
  margin: 0 0 var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.pricing-features li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s-3);
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.pricing-features li .check {
  width: 22px;
  height: 22px;
  color: var(--mint);
  margin-top: 2px;
  flex-shrink: 0;
}
.pricing-features li strong {
  color: var(--ink);
  font-weight: 500;
}

.pricing-cta {
  display: block;
  width: 100%;
  padding: 18px 24px;
  background: var(--mint);
  color: var(--bg-void);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: all var(--d-2) var(--ease-out);
  box-shadow: 0 0 40px -8px var(--mint-glow);
  cursor: pointer;
  text-align: center;
}
.pricing-cta:hover {
  background: #6dd8d0;
  transform: translateY(-2px);
  box-shadow: 0 0 60px -6px rgba(78, 205, 196, 0.6);
}

.pricing-fine {
  margin-top: var(--s-4);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-align: center;
}

/* =========================================================
   MYSTERY CARD (secret course teaser in Others row)
   ========================================================= */
.mystery-card {
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.mystery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201, 169, 110, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.mystery-card:hover::before { opacity: 1; }
.mystery-card .showcase-meta { display: none; }
.mystery-cover {
  aspect-ratio: 4 / 3;
  background: #06060a;
  overflow: hidden;
  position: relative;
}
.mystery-galaxy {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) saturate(1.05);
  animation: mystery-drift 40s linear infinite;
}
@keyframes mystery-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1.02); }
  50%  { transform: translate3d(-6px, -4px, 0) scale(1.05); }
  100% { transform: translate3d(0, 0, 0) scale(1.02); }
}
/* Brand skull signature fills the empty band below the galaxy inside the card */
.mystery-signature {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5) var(--s-4);
  background: linear-gradient(180deg, #050308 0%, #08060c 100%);
  min-height: 90px;
  position: relative;
}
.mystery-signature img {
  height: 56px;
  width: auto;
  opacity: 0.55;
  filter: drop-shadow(0 0 18px rgba(107, 30, 46, 0.5));
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.mystery-card:hover .mystery-signature img {
  opacity: 0.85;
  transform: scale(1.06);
}

.mystery-card::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  opacity: 0.35;
  animation: mystery-pulse 3s ease-in-out infinite;
  z-index: 3;
}
@keyframes mystery-pulse {
  0%, 100% { opacity: 0.25; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.7;  transform: translateX(-50%) scale(1.3); }
}

/* =========================================================
   HIDDEN GATE + ORACLE (secret course reveal)
   ========================================================= */

/* Subtle golden dot placed at bottom of about page */
.hidden-gate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: var(--s-8) auto var(--s-3);
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  opacity: 0.14;
  transition: opacity 500ms var(--ease-out),
              transform 500ms var(--ease-out),
              filter 500ms var(--ease-out);
}
.hidden-gate:hover,
.hidden-gate:focus-visible {
  opacity: 0.85;
  transform: scale(1.15) rotate(45deg);
  filter: drop-shadow(0 0 16px var(--gold));
  outline: none;
}
.hidden-gate svg { width: 100%; height: 100%; }

/* Oracle full-screen ritual overlay */
.oracle {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
}
.oracle[aria-hidden="false"] { display: flex; }

/* ---------- IN-PAGE VIDEO MODAL ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
}
.video-modal[aria-hidden="false"] { display: flex; }
.video-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 10, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: oracle-fade-in 300ms var(--ease-out) forwards;
  cursor: pointer;
}
.video-modal-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  animation: oracle-rise-in 450ms var(--ease-out) 80ms backwards;
}
.video-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
}
.video-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--d-2) var(--ease-out), color var(--d-2) var(--ease-out);
}
.video-modal-close:hover { opacity: 1; color: var(--gold); }
body.video-modal-open { overflow: hidden; }

.oracle-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(74, 42, 85, 0.35), rgba(6, 6, 10, 0.98) 65%),
    rgba(6, 6, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: oracle-fade-in 400ms var(--ease-out) forwards;
}
@keyframes oracle-fade-in { from { opacity: 0; } to { opacity: 1; } }

.oracle-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  padding: var(--s-9) var(--s-6);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  animation: oracle-rise-in 550ms var(--ease-out) 100ms backwards;
}
@keyframes oracle-rise-in {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.oracle-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--ink-mute);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--d-1) var(--ease-out);
}
.oracle-close:hover { color: var(--gold); }

.oracle-eyebrow {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-5);
}

.oracle-question {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 var(--s-7);
  animation: oracle-fade-slide 500ms var(--ease-out) backwards;
}
@keyframes oracle-fade-slide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.oracle-question em {
  color: var(--gold);
  font-style: italic;
}

.oracle-options {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 360px;
  margin: 0 auto;
}
.oracle-option {
  padding: 18px 32px;
  background: transparent;
  border: 1px solid var(--gold-deep);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: 18px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--d-2) var(--ease-out);
}
.oracle-option:hover {
  background: var(--gold);
  color: var(--bg-void);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px -10px rgba(227, 200, 150, 0.55);
}
/* Intro variant: no border, just centered text that brightens on hover */
.oracle-option-plain {
  border: none;
  padding: 12px 32px;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.2em;
}
.oracle-option-plain:hover {
  background: transparent;
  color: var(--gold);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: none;
}

.oracle-final {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--gold);
  padding: var(--s-6) 0 var(--s-3);
  line-height: 1.4;
}
.oracle-final-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: var(--s-4);
}

/* Course reveal */
.oracle-reveal {
  animation: oracle-course-in 900ms var(--ease-out) backwards;
}
@keyframes oracle-course-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.oracle-reveal img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--r-md);
  margin: 0 auto var(--s-5);
  display: block;
  border: 1px solid var(--gold-deep);
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, 0.25),
    0 0 80px -20px rgba(201, 169, 110, 0.5),
    0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.oracle-reveal h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--gold);
  letter-spacing: 0.06em;
  margin: 0 0 var(--s-3);
  text-transform: uppercase;
}
.oracle-reveal p {
  color: var(--ink-soft);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 15px;
  max-width: 42ch;
  margin: 0 auto var(--s-5);
  line-height: 1.55;
}
.oracle-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 28px;
  background: var(--gold);
  color: var(--bg-void);
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--d-2) var(--ease-out);
  box-shadow: 0 0 40px -8px rgba(201, 169, 110, 0.6);
}
.oracle-cta:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 60px -6px rgba(227, 200, 150, 0.8);
}

.oracle-hint {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
  margin-top: var(--s-5);
  text-transform: uppercase;
}

/* ---------- LANG SWAP (i18n) — English removed, Cantonese only ---------- */
[data-en] { display: none !important; }
.lang-toggle { display: none !important; }

/* ---------- RESPONSIVE PATCHES ---------- */

/* Generic: collapse 3-col + 2-col inline grids on mobile */
@media (max-width: 900px) {
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .detail-body { grid-template-columns: 1fr; }
  .booking-card { position: static !important; }
}

@media (max-width: 720px) {
  /* Hero text breathing room */
  .hero { padding-top: calc(var(--nav-h) + var(--s-5)); }
  .hero-meta { gap: var(--s-5); font-size: 11px; }
  .hero-meta-item strong { font-size: 16px; }

  /* Section paddings */
  section { padding: var(--s-7) 0; }
  .featured { padding: var(--s-5); gap: var(--s-5); }
  .featured-visual { max-width: 360px; margin: 0 auto; }
  .featured-meta { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }

  /* Nav links bigger spacing in open state */
  .nav-open .nav-link { font-size: 1.6rem; }

  /* Buttons full width when stacked */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  /* CTA form stays usable */
  .cta-form { flex-direction: column; padding: var(--s-2); }
  .cta-form input { padding: 12px; }
  .cta-form button { width: 100%; padding: 14px; }

  /* Manifesto display sizing */
  .manifesto .display { font-size: clamp(1.6rem, 6vw, 2.6rem); }

  /* Tenets / mentor creds */
  [style*="grid-template-columns: 80px 1fr"] {
    grid-template-columns: 50px 1fr !important;
    gap: var(--s-4) !important;
  }

  /* Catalog tabs scroll instead of wrap if needed */
  .catalog-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: var(--s-4); margin: 0 calc(var(--s-5) * -1) var(--s-5); padding-left: var(--s-5); padding-right: var(--s-5); }
  .catalog-tab { white-space: nowrap; }

  /* Mentor creds drop to single line numbers */
  .mentor-creds strong { font-size: 1.2rem; }

  /* Calendar smaller on mobile */
  .cal { gap: 4px; }
  .cal-day { font-size: 11px; }

  /* Marquee slower & smaller font */
  .marquee-item { font-size: 0.95rem; gap: var(--s-5); }
  .marquee-track { gap: var(--s-5); }

  /* Section heads stack cleanly */
  .section-head { gap: var(--s-3); }
}

/* Tiny screens */
@media (max-width: 420px) {
  .container { padding: 0 var(--s-4); }
  .display { font-size: clamp(2.2rem, 11vw, 3.4rem) !important; }
  .hero-scroll { display: none; }
  .pillar { min-height: 280px; padding: var(--s-5) var(--s-4); }
  .pillar-glyph { width: 48px; height: 48px; }
  .featured-meta { grid-template-columns: 1fr 1fr; }
  .booking-card .price { font-size: 2rem; }
}

/* Print: clean, readable */
@media print {
  body::before, body::after, .cursor, .nav, .hero-sigil, .hero-sigil-inner, .hero-grain, .marquee, .cta-strip { display: none !important; }
  body { background: white; color: black; }
  * { color: black !important; background: transparent !important; }
}

/* =================================================
   COURSE DETAIL v2 — new hero layout (course.html)
   ================================================= */
/* ==== 新課程頁 hero — sample only ==== */
    .cv2-section {
      padding: calc(var(--nav-h) + var(--s-8)) 0 var(--s-9);
      min-height: 100vh;
      position: relative;
    }
    .cv2-wrap {
      position: relative;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 var(--s-5);
    }
    /* Small video pill — pinned top-right of the hero region */
    .cv2-video-pill {
      position: absolute;
      top: 0;
      right: var(--s-5);
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 18px;
      background: rgba(6, 6, 10, 0.55);
      border: 1px solid rgba(201, 169, 110, 0.35);
      border-radius: 999px;
      color: var(--ink-soft);
      font-family: var(--f-mono);
      font-size: 11px;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      cursor: pointer;
      backdrop-filter: blur(10px);
      transition: color var(--d-2) var(--ease-out),
                  border-color var(--d-2) var(--ease-out),
                  background var(--d-2) var(--ease-out),
                  transform var(--d-2) var(--ease-out);
      z-index: 3;
    }
    .cv2-video-pill:hover {
      color: var(--gold);
      border-color: var(--gold);
      background: rgba(201, 169, 110, 0.12);
      transform: translateY(-1px);
    }
    .cv2-video-pill svg {
      width: 12px; height: 12px;
      fill: currentColor;
    }
    /* Main two-column: portrait cover + info stack */
    .cv2-grid {
      display: grid;
      grid-template-columns: minmax(280px, 420px) 1fr;
      gap: var(--s-8);
      align-items: start;
      margin-top: var(--s-7);
    }
    @media (max-width: 900px) {
      .cv2-grid { grid-template-columns: 1fr; gap: var(--s-6); }
      .cv2-video-pill { right: var(--s-4); }
    }
    /* Portrait cover with actual course photograph */
    .cv2-cover {
      position: relative;
      aspect-ratio: 4 / 3;
      border-radius: var(--r-md);
      overflow: hidden;
      border: 1px solid rgba(201, 169, 110, 0.4);
      background:
        radial-gradient(ellipse at 50% 50%, var(--bg-elevated), var(--bg-void));
      box-shadow:
        0 0 0 1px rgba(201, 169, 110, 0.14),
        0 40px 90px -30px rgba(0, 0, 0, 0.85),
        0 0 140px -40px rgba(201, 169, 110, 0.28);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .cv2-cover img {
      display: block;
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      filter: saturate(0.98) contrast(1.02);
    }
    .cv2-cover::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, transparent 0%, transparent 55%, rgba(6, 6, 10, 0.55) 85%, rgba(6, 6, 10, 0.9) 100%);
      pointer-events: none;
    }
    .cv2-cover-caption {
      position: absolute;
      left: 0; right: 0; bottom: var(--s-5);
      text-align: center;
      font-family: var(--f-mono);
      font-size: 10px;
      letter-spacing: 0.4em;
      color: var(--gold);
      z-index: 2;
    }
    .cv2-cover-tag {
      position: absolute;
      top: var(--s-4);
      left: var(--s-4);
      font-family: var(--f-mono);
      font-size: 10px;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: var(--gold);
      background: rgba(6, 6, 10, 0.65);
      backdrop-filter: blur(6px);
      padding: 5px 10px;
      border-radius: var(--r-sm);
      border: 1px solid rgba(201, 169, 110, 0.35);
      z-index: 2;
    }
    /* Right: title + outline + copy */
    .cv2-info { padding-top: var(--s-2); }
    .cv2-eyebrow-row {
      display: flex;
      gap: var(--s-4);
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: var(--s-5);
    }
    .cv2-course-num {
      font-family: var(--f-mono);
      font-size: 11px;
      color: var(--ink-mute);
      letter-spacing: 0.24em;
    }
    .cv2-title {
      font-family: var(--f-serif);
      font-weight: 400;
      font-size: clamp(2.2rem, 4.5vw, 3.4rem);
      line-height: 1.1;
      color: var(--ink);
      margin: 0 0 var(--s-6);
    }
    .cv2-title em {
      color: var(--gold);
      font-style: italic;
      font-family: var(--f-serif);
    }
    .cv2-outline {
      margin: 0 0 var(--s-6);
      padding: var(--s-5) 0;
      border-top: 1px solid var(--line-soft);
      border-bottom: 1px solid var(--line-soft);
    }
    .cv2-outline-label {
      font-family: var(--f-mono);
      font-size: 10px;
      letter-spacing: 0.32em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: var(--s-4);
    }
    .cv2-outline ol {
      counter-reset: outline;
      display: grid;
      gap: var(--s-4);
      margin: 0;
    }
    .cv2-outline li {
      counter-increment: outline;
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: var(--s-4);
      align-items: baseline;
    }
    .cv2-outline li::before {
      content: counter(outline, decimal-leading-zero);
      font-family: var(--f-mono);
      font-size: 11px;
      color: var(--gold);
      letter-spacing: 0.18em;
      padding-top: 3px;
    }
    .cv2-outline li p {
      font-family: var(--f-serif);
      font-size: 1.05rem;
      line-height: 1.4;
      color: var(--ink);
      margin: 0;
      max-width: 46ch;
    }
    .cv2-outline li p small {
      display: block;
      margin-top: 4px;
      font-family: var(--f-sans);
      font-size: 13px;
      font-style: normal;
      color: var(--ink-mute);
      letter-spacing: 0.02em;
      line-height: 1.55;
    }
    /* 文案 block — dedicated marketing copy area */
    .cv2-pitch {
      margin: 0 0 var(--s-6);
      padding: var(--s-5) 0;
    }
    .cv2-pitch-label {
      font-family: var(--f-mono);
      font-size: 10px;
      letter-spacing: 0.32em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: var(--s-3);
    }
    .cv2-pitch p {
      font-family: var(--f-serif);
      font-style: italic;
      font-size: 1.08rem;
      line-height: 1.75;
      color: var(--ink-soft);
      max-width: 54ch;
      margin: 0 0 var(--s-3);
    }
    .cv2-pitch p:last-child { margin-bottom: 0; }
    .cv2-pitch p strong {
      color: var(--ink);
      font-style: normal;
      font-weight: 500;
    }
    .cv2-meta {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: var(--s-5);
      padding: var(--s-5) 0;
      border-top: 1px solid var(--line-soft);
      margin-bottom: var(--s-6);
    }
    @media (max-width: 640px) {
      .cv2-meta { grid-template-columns: repeat(2, 1fr); }
    }
    .cv2-meta > div { display: flex; flex-direction: column; gap: 4px; }
    .cv2-meta small {
      font-family: var(--f-mono);
      font-size: 10px;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: var(--ink-mute);
    }
    .cv2-meta strong {
      font-family: var(--f-serif);
      font-weight: 500;
      font-size: 15px;
      color: var(--ink);
    }
    .cv2-cta-row {
      display: flex;
      align-items: center;
      gap: var(--s-4);
      flex-wrap: wrap;
    }
    .cv2-cta {
      display: inline-flex;
      align-items: center;
      gap: var(--s-3);
      padding: 16px 32px;
      background: var(--gold);
      color: var(--bg-void);
      font-family: var(--f-sans);
      font-size: 14px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      font-weight: 500;
      border-radius: var(--r-sm);
      border: 1px solid var(--gold);
      cursor: pointer;
      text-decoration: none;
      transition: transform var(--d-2) var(--ease-out),
                  box-shadow var(--d-2) var(--ease-out);
    }
    .cv2-cta:hover {
      transform: translateY(-2px);
      box-shadow: 0 20px 45px -12px rgba(227, 200, 150, 0.55);
    }
    .cv2-cta-ghost {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 16px 28px;
      background: transparent;
      color: var(--ink);
      font-family: var(--f-sans);
      font-size: 14px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      font-weight: 400;
      border-radius: var(--r-sm);
      border: 1px solid rgba(201, 169, 110, 0.5);
      cursor: pointer;
      text-decoration: none;
      transition: color var(--d-2) var(--ease-out),
                  border-color var(--d-2) var(--ease-out),
                  background var(--d-2) var(--ease-out),
                  transform var(--d-2) var(--ease-out);
    }
    .cv2-cta-ghost:hover {
      color: var(--gold);
      border-color: var(--gold);
      background: rgba(201, 169, 110, 0.08);
      transform: translateY(-1px);
    }
    .cv2-cta-ghost svg {
      width: 14px; height: 14px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.6;
    }

/* ---------- MEMBER VIDEOS · Loom shelf ---------- */
.tribe-videos { padding: var(--s-9) 0; }
.videos-head { max-width: 720px; margin: 0 auto var(--s-8); text-align: center; }
.videos-head h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; color: var(--ink); margin-top: var(--s-4); }
.videos-head .lede { max-width: 56ch; margin-left: auto; margin-right: auto; }
.videos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-5); }
@media (max-width: 1024px) { .videos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .videos-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }
.video-tile {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--d-3) var(--ease-out), border-color var(--d-3) var(--ease-out), box-shadow var(--d-3) var(--ease-out);
}
.video-tile:hover {
  transform: translateY(-4px);
  border-color: var(--gold-deep);
  box-shadow: 0 20px 45px -18px rgba(0,0,0,0.7), 0 0 45px -14px rgba(227,200,150,0.35);
}
.video-tile-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0a10 center / cover no-repeat;
}
.video-tile-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,6,10,0.7) 100%);
  pointer-events: none;
}
.video-tile-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(6,6,10,0.75); backdrop-filter: blur(6px);
  border: 1px solid var(--gold);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 14px; padding-left: 3px; z-index: 2;
  opacity: 0; transition: opacity var(--d-2) var(--ease-out);
}
.video-tile:hover .video-tile-play { opacity: 1; }
.video-tile-dur {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--ink); background: rgba(6,6,10,0.75); backdrop-filter: blur(6px);
  padding: 3px 7px; border-radius: var(--r-sm);
}
.video-tile h4 {
  font-family: var(--f-serif); font-weight: 500;
  font-size: 15px; line-height: 1.3; color: var(--ink);
  margin: 0; padding: var(--s-4) var(--s-4) var(--s-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-tile p {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0; padding: 0 var(--s-4) var(--s-4);
}

/* Loom in-page modal */
.loom-modal { position: fixed; inset: 0; z-index: 9998; display: none; align-items: center; justify-content: center; padding: var(--s-5); }
.loom-modal[aria-hidden="false"] { display: flex; }
.loom-modal-bg { position: absolute; inset: 0; background: rgba(6,6,10,0.94); backdrop-filter: blur(18px); animation: oracle-fade-in 300ms var(--ease-out) forwards; cursor: pointer; }
.loom-modal-frame { position: relative; z-index: 2; width: 100%; max-width: 1200px; animation: oracle-rise-in 450ms var(--ease-out) 80ms backwards; }
.loom-modal-player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.85); }
.loom-modal-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loom-modal-close { position: absolute; top: -44px; right: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; opacity: 0.7; transition: opacity var(--d-2) var(--ease-out), color var(--d-2) var(--ease-out); }
.loom-modal-close:hover { opacity: 1; color: var(--gold); }
body.loom-modal-open { overflow: hidden; }

/* ---------- Homepage · testimonials ---------- */
.testimonials {
  padding: var(--s-9) 0 var(--s-8);
  position: relative;
}
.testimonials-head {
  text-align: center;
  margin-bottom: var(--s-7);
}
.testimonials-head .eyebrow {
  justify-content: center;
}
.testimonials-head h2 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-top: var(--s-3);
  letter-spacing: -0.01em;
}
.testimonials-head h2 em {
  color: var(--gold);
  font-style: italic;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
@media (max-width: 780px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
.testimonial-card {
  position: relative;
  margin: 0;
  padding: var(--s-6) var(--s-6) var(--s-5);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(227, 200, 150, 0.10);
  border-radius: var(--r-lg);
  transition: border-color var(--d-3) var(--ease-out),
              background var(--d-3) var(--ease-out),
              transform var(--d-3) var(--ease-out);
}
.testimonial-card:hover {
  border-color: rgba(227, 200, 150, 0.28);
  background: rgba(255, 255, 255, 0.028);
  transform: translateY(-3px);
}
.testimonial-mark {
  position: absolute;
  top: 10px;
  left: 18px;
  font-family: var(--f-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.32;
  font-style: italic;
  pointer-events: none;
}
.testimonial-card p {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.88;
  margin: var(--s-5) 0 var(--s-5);
  padding-left: var(--s-3);
}
.testimonial-card cite {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
  border-top: 1px solid rgba(227, 200, 150, 0.15);
  padding-top: var(--s-4);
  margin-top: var(--s-4);
}

/* ---------- Tribe · centered tutorials row ---------- */
.video-row-head-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.video-row-head-centered h2 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.15;
  margin: var(--s-3) 0 var(--s-3);
  letter-spacing: -0.01em;
}
.video-row-head-centered h2 em {
  font-style: italic;
  color: var(--gold);
}
/* Contain the row inside the container, with soft fade edges like the topic-library shelf */
.video-row-centered .video-row-wrap {
  max-width: calc(var(--container-max, 1240px));
  margin: 0 auto;
  padding: 0 var(--s-5);
  position: relative;
}
.video-row-centered .video-row-track {
  scroll-snap-type: x proximity;
  overflow-x: auto;
  overflow-y: visible;
  padding: var(--s-3) 0;
  margin: 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.video-row-centered .video-card {
  width: 240px;
  background: transparent;
  border: 0;
}
@media (max-width: 720px) {
  .video-row-centered .video-card { width: 200px; }
}
.video-row-centered .video-card:hover {
  box-shadow: none;
  transform: translateY(-4px) scale(1.03);
}
.video-row-centered .video-thumb {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 14px 32px -14px rgba(0,0,0,0.6);
}
.video-card-title {
  margin: var(--s-3) 0 0;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0.01em;
  text-align: left;
}

/* ============================================================
   READABILITY BOOST — bumps small body/meta text ~2 sizes so
   older readers can see it comfortably. Titles and buttons
   stay untouched. Placed at end so it wins the cascade.
   ============================================================ */

/* Eyebrows / small labels — 11px → 13px */
.eyebrow { font-size: 13px; }

/* Homepage 3-gateway pillar descriptions */
.pillar p { font-size: 16px; line-height: 1.6; }
.pillar-foot { font-size: 13px; }

/* Course cards on channel + course detail page */
.course-body p { font-size: 16px; line-height: 1.65; }
.featured-meta span,
.detail-meta-grid span { font-size: 12px; }

/* Video card titles + episode meta (channel + tribe row) */
.video-thumb-title h3 { font-size: 17px; line-height: 1.35; }
.video-thumb-title p { font-size: 12px; letter-spacing: 0.16em; }
.video-duration { font-size: 12px; }
.video-row-count { font-size: 13px; }
.video-card-title { font-size: 15px; }
@media (max-width: 900px) {
  .video-thumb-title h3 { font-size: 15px; }
}

/* Academy / topic library cards (about + tribe) */
.academy-body p { font-size: 16px; line-height: 1.65; }
.academy-body p strong { font-size: 16px; }
.academy-topics p { font-size: 14px; }

/* Tribe story + pricing */
.tribe-story p { font-size: 17px; line-height: 1.7; }
.pricing-fine { font-size: 13px; }
.pricing-list li { font-size: 15px; }
.pricing-eyebrow { font-size: 13px; }

/* Mentor + curriculum small text */
.mentor-cite,
.mentor-creds span,
.curriculum li .num,
.curriculum li .dur,
.cal-h,
.section-head-aside { font-size: 12px; }
.curriculum li h4 { font-size: 16px; }

/* Footer readable */
.footer ul a { font-size: 16px; }
.footer-brand p { font-size: 15px; }
.footer-legal { font-size: 12px; }

/* Testimonials on homepage */
.testimonial-card p { font-size: 17px; line-height: 1.75; }
.testimonial-card cite { font-size: 12px; }

/* Booking card, marquee etc. common small text */
.booking-card .price small { font-size: 14px; }
.booking-list li { font-size: 14px; }

/* Academy (學堂) showcase cards — eyebrow + body text */
.showcase-tag { font-size: 12px; }
.showcase-card p { font-size: 15px; line-height: 1.6; }
.showcase-live,
.showcase-hot { font-size: 12px; }

/* ============================================================
   Tribe · MUST-READ INFO BLOCK
   Warm cream section that stops the eye between videos and enroll
   ============================================================ */
/* HIGH-CONTRAST MUST-READ BLOCK — white cards, black bold text, big fonts */
.tribe-info {
  padding: var(--s-8) 0;
  background: transparent;
}
.tribe-info-head { display: none; }
.tribe-info-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  align-items: stretch;
}
.tribe-info-card {
  position: relative;
  padding: var(--s-7) var(--s-8);
  background: #FFFFFF;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 32px -12px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  transition: transform var(--d-3) var(--ease-out), box-shadow var(--d-3) var(--ease-out);
}
.tribe-info-card:hover {
  background: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 16px 48px -12px rgba(0,0,0,0.75);
  border: none;
}
@media (max-width: 720px) {
  .tribe-info-card { padding: var(--s-6); }
}
.tribe-info-num { display: none; }
.tribe-info-card h3 {
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.25;
  color: #0e0e12;
  margin: 0 0 var(--s-5);
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tribe-info-card h3::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #0e0e12;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .tribe-info-card h3 { font-size: 26px; }
}
.tribe-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.tribe-info-list li {
  font-family: var(--f-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  color: #0e0e12;
}
.tribe-info-list li strong {
  color: #0e0e12;
  font-weight: 800;
  margin-right: 4px;
}
@media (max-width: 720px) {
  .tribe-info-list li { font-size: 17px; }
}
/* Price card variant — same white style but with big price */
.tribe-info-price {
  text-align: left;
  align-items: flex-start;
  justify-content: flex-start;
  background: #FFFFFF;
  border: none;
}
.tribe-info-price h3 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: var(--s-3);
}
.tribe-info-fee {
  font-family: var(--f-sans);
  color: #0e0e12;
  margin: 0 0 0 22px;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 2px;
  line-height: 1;
  font-weight: 800;
}
.tribe-info-fee-cur { font-size: 34px; font-weight: 800; }
.tribe-info-fee-amt { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; }
.tribe-info-fee-per { font-size: 28px; color: #0e0e12; font-weight: 800; margin-left: 4px; }
.tribe-info-fee-note {
  font-family: var(--f-sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: #6b7280;
  font-weight: 500;
  margin: var(--s-3) 0 0 22px;
}

/* Minimal footer — brand on left, YouTube + phone on right */
.footer-min {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-6) 0 var(--s-5);
  flex-wrap: wrap;
}
.footer-min .brand { display: inline-flex; }
.footer-min .brand-logo { height: 42px; width: auto; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--s-6);
  align-items: center;
  flex-wrap: wrap;
}
.footer-links li { display: inline-flex; }
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--d-2);
}
.footer-links a:hover { color: var(--gold); }

/* Bigger 學堂 (about page) showcase cards — heavier body text */
.showcase-card p { font-size: 18px; font-weight: 600; line-height: 1.6; }
.showcase-tag { font-size: 13px; font-weight: 700; }

/* Bigger book covers on tribe topic shelf — only ~4 fit per row */
.academy-shelf-track img { width: 285px; }
@media (max-width: 1100px) { .academy-shelf-track img { width: 240px; } }
@media (max-width: 720px)  { .academy-shelf-track img { width: 200px; } }

/* Bigger Pick Up video cards — only ~3.5 fit per row */
.video-row-centered .video-card { width: 355px; }
@media (max-width: 1100px) { .video-row-centered .video-card { width: 300px; } }
@media (max-width: 720px)  { .video-row-centered .video-card { width: 240px; } }
