/* ==========================================================================
   Chapter Speakers — Premium Editorial Experience
   Animation Language: Editorial → Elegant → Slow → Intentional → Premium
   ========================================================================== */

:root {
  /* Palette */
  --navy: #0B1D3A;
  --navy-light: #132a4a;
  --navy-dark: #061224;
  --gold: #B8956A;
  --gold-light: #d4b48a;
  --gold-dark: #9a7a52;
  --gold-10: rgba(184, 149, 106, 0.1);
  --pine: #0b3230;
  --cream: #F5F0E8;
  --cream-dark: #EAE5DD;
  --paper: #FBF9F4;
  --white: #FFFFFF;
  --text-primary: #16182A;
  --text-secondary: #4A5568;
  --text-muted: #7A8496;
  --border: rgba(11, 29, 58, 0.1);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(11, 29, 58, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(11, 29, 58, 0.1), 0 2px 4px -1px rgba(11, 29, 58, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(11, 29, 58, 0.1), 0 4px 6px -2px rgba(11, 29, 58, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(11, 29, 58, 0.1), 0 10px 10px -5px rgba(11, 29, 58, 0.04);
  --shadow-gold: 0 12px 28px rgba(184, 149, 106, 0.35);

  /* Radii */
  --radius: 6px;
  --radius-lg: 12px;

  /* Animation Timing */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-dramatic: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Durations */
  --dur-fast: 0.35s;
  --dur-normal: 0.6s;
  --dur-slow: 1s;
  --dur-dramatic: 1.4s;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

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

a { color: inherit; text-decoration: none; transition: var(--dur-normal) var(--ease-premium); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.section { padding: 140px 0; position: relative; overflow: hidden; }

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

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 10000;
  pointer-events: none; mix-blend-mode: difference;
  display: flex; align-items: center; justify-content: center;
}
.cursor-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-premium), height 0.3s var(--ease-premium), background 0.3s;
}
.cursor-ring {
  position: absolute; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(184, 149, 106, 0.5); transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-premium), height 0.4s var(--ease-premium), border-color 0.3s, opacity 0.3s;
}
.cursor-label {
  position: absolute; transform: translate(-50%, -50%);
  font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
  opacity: 0; transition: opacity 0.3s; white-space: nowrap;
}

/* Cursor states */
.cursor.hover .cursor-dot { width: 0; height: 0; }
.cursor.hover .cursor-ring { width: 56px; height: 56px; border-color: var(--gold); background: rgba(184, 149, 106, 0.08); }
.cursor.external .cursor-ring { width: 48px; height: 48px; border-color: var(--gold); }
.cursor.join .cursor-ring { width: 64px; height: 64px; border-color: var(--gold); background: rgba(184, 149, 106, 0.1); }
.cursor.join .cursor-label { opacity: 1; }

@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor { display: none; }
  button, a { cursor: pointer; }
}

/* ==========================================================================
   Page Loader
   ========================================================================== */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.loader-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 24px;
}
.loader-brand {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.loader-logo-wrap {
  position: relative; width: 100px; height: 100px;
  margin-bottom: 16px;
}
.loader-logo {
  position: absolute; inset: 10px;
  width: 80px; height: 80px;
  object-fit: cover; border-radius: 50%;
  opacity: 0; transform: scale(0.8);
  animation: loaderLogoIn 0.8s var(--ease-premium) 0.2s forwards;
}
@keyframes loaderLogoIn {
  to { opacity: 1; transform: scale(1); }
}
.loader-progress {
  position: absolute; inset: 0;
  width: 100px; height: 100px;
  transform: rotate(-90deg);
}
.loader-progress-track {
  fill: none; stroke: rgba(184, 149, 106, 0.15);
  stroke-width: 2;
}
.loader-progress-fill {
  fill: none; stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  animation: loaderProgress 2.5s var(--ease-smooth) 0.3s forwards;
}
@keyframes loaderProgress {
  to { stroke-dashoffset: 0; }
}
.loader-word {
  display: flex; gap: 2px; overflow: hidden;
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: 0.15em;
  color: var(--white); text-transform: uppercase;
}
.loader-word span {
  display: inline-block; transform: translateY(110%);
  will-change: transform;
}
.loader-word--speakers { color: var(--gold); font-weight: 400; }
.loader-line-wrap {
  width: 0; height: 1px; overflow: visible;
}
.loader-line {
  width: 120px; height: 1px; background: var(--gold); transform-origin: left;
  transform: scaleX(0);
}
.loader-tagline {
  display: flex; gap: 1px;
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.2rem); color: rgba(255,255,255,0.6);
  margin-top: 8px;
}
.loader-tagline span { display: inline-block; opacity: 0; transform: translateY(10px); }
.loader-tagline .space { width: 0.4em; }
.loader-wipe {
  position: absolute; inset: 0; background: var(--paper);
  transform: translateY(100%);
}
.loader-shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.03) 45%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 55%, transparent 60%);
  transform: translateX(-100%);
  animation: loaderShine 2s var(--ease-smooth) 0.5s;
}
@keyframes loaderShine {
  to { transform: translateX(100%); }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: var(--dur-normal) var(--ease-premium);
  transform: translateY(-100%);
}
.nav.visible { transform: translateY(0); }
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(251, 249, 244, 0.95);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; transition: height var(--dur-normal) var(--ease-premium); }
.nav.scrolled .nav-inner { height: 72px; }

.nav-logo { display: flex; align-items: center; gap: 14px; position: relative; }
.nav-logo-mark {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  transition: var(--dur-normal) var(--ease-premium);
}
.nav.scrolled .nav-logo-mark { width: 38px; height: 38px; }
.nav-logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-logo-wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-title { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.nav-logo-sub { font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.24em; color: var(--gold-dark); }

.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-link {
  font-size: 0.88rem; font-weight: 500; color: var(--text-secondary);
  letter-spacing: 0.01em; position: relative; padding: 4px 0;
  display: inline-block;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width var(--dur-normal) var(--ease-premium);
}
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: var(--navy); color: var(--white);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
  border-radius: var(--radius); position: relative; overflow: hidden;
  transition: var(--dur-normal) var(--ease-premium);
}
.nav-cta::before {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  transform: translateX(-101%); transition: transform var(--dur-normal) var(--ease-premium);
}
.nav-cta:hover::before { transform: translateX(0); }
.nav-cta:hover { color: var(--navy); box-shadow: var(--shadow-gold); }
.nav-cta span, .nav-cta .arrow { position: relative; z-index: 1; }
.nav-cta .arrow { transition: transform var(--dur-normal) var(--ease-premium); }
.nav-cta:hover .arrow { transform: translateX(4px); }

.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-mobile-menu { display: none; }
.nav-mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); transition: var(--dur-normal) var(--ease-premium); }

/* ==========================================================================
   Hero — Cinematic Entrance
   ========================================================================== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--navy); position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 30%, rgba(19, 42, 74, 0.8) 0%, transparent 60%);
}
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.4;
  animation: glowPulse 8s ease-in-out infinite;
}
.hero-glow--1 { width: 400px; height: 400px; background: var(--gold); top: 10%; right: 15%; animation-delay: 0s; }
.hero-glow--2 { width: 300px; height: 300px; background: var(--navy-light); bottom: 20%; left: 10%; animation-delay: -4s; }
.hero-glow--3 { width: 250px; height: 250px; background: var(--gold); top: 50%; left: 50%; animation-delay: -2s; opacity: 0.15; animation-duration: 12s; }
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.5; }
}

.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184, 149, 106, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 149, 106, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 70%);
}

.hero-particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 60px; align-items: center;
  min-height: 100vh; padding: 120px 0 80px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 40px; opacity: 0;
}
.hero-eyebrow-mark { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; }
.hero-eyebrow-mark img { width: 100%; height: 100%; object-fit: cover; }
.hero-eyebrow-text { display: flex; flex-direction: column; line-height: 1.15; }
.hero-eyebrow-text span:first-child { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 600; color: var(--white); letter-spacing: 0.04em; }
.hero-eyebrow-text span:last-child { font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.28em; color: var(--gold); }

.hero-title {
  font-size: clamp(3.2rem, 7.5vw, 6.5rem);
  color: var(--white); line-height: 0.95;
  margin-bottom: 32px; text-transform: uppercase;
  font-weight: 300; letter-spacing: -0.03em;
}
.hero-title-line { display: block; overflow: hidden; opacity: 0; }
.hero-title-line span { display: inline-block; }
.hero-title-line--1 { font-weight: 300; }
.hero-title-line--2 { font-weight: 500; }
.hero-title .accent { color: var(--gold); }

.hero-rule-wrap { margin-bottom: 32px; overflow: hidden; }
.hero-rule {
  width: 80px; height: 2px; background: var(--gold);
  transform-origin: left; transform: scaleX(0);
}

.hero-description {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 48px; max-width: 480px;
  line-height: 1.5; font-weight: 400;
  opacity: 0;
}

.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 64px; opacity: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; font-family: 'Inter', sans-serif;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
  border-radius: var(--radius); position: relative; overflow: hidden;
  transition: var(--dur-normal) var(--ease-premium); border: none; gap: 10px;
}
.btn-primary {
  background: var(--gold); color: var(--navy);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0; background: var(--gold-light);
  transform: translateX(-101%); transition: transform var(--dur-normal) var(--ease-premium);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-primary .btn-shine {
  position: absolute; top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s var(--ease-premium);
  z-index: 0;
}
.glow-hover:hover .btn-shine { left: 150%; }

.btn-secondary {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary::before {
  content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.06);
  transform: translateY(101%); transition: transform var(--dur-normal) var(--ease-premium);
}
.btn-secondary:hover::before { transform: translateY(0); }
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.6); transform: translateY(-2px); }
.btn-secondary span { position: relative; z-index: 1; }

.hero-words {
  display: flex; flex-wrap: wrap; gap: 10px 28px; opacity: 0;
}
.hero-word {
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--dur-normal);
}
.hero-word:hover { color: var(--gold); }
.hero-word::after { content: '·'; margin-left: 28px; color: rgba(184, 149, 106, 0.4); }
.hero-word:last-child::after { content: ''; }

/* Hero Visual */
.hero-visual { position: relative; height: 520px; display: flex; align-items: center; justify-content: center; }
.hero-visual-inner { position: relative; width: 100%; height: 100%; }
.hero-visual-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,149,106,0.15) 0%, transparent 70%);
  filter: blur(40px);
  animation: visualGlow 6s ease-in-out infinite alternate;
}
@keyframes visualGlow {
  from { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.hero-book-svg { width: 100%; height: 100%; overflow: visible; opacity: 0; transform: translateY(30px); }
.hero-visual-caption {
  position: absolute; bottom: 0; right: 0;
  text-align: right;
  font-family: 'Inter', sans-serif; font-size: 0.7rem; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.25); text-transform: uppercase;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0;
}
.scroll-line {
  width: 1px; height: 60px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden;
}
.scroll-line-progress {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--gold); transform: translateY(-100%);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
.scroll-text {
  font-family: 'Inter', sans-serif; font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   Editorial Section Headers
   ========================================================================== */
.kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Inter', sans-serif; font-size: 0.8125rem;
  font-weight: 600; letter-spacing: 0.14em;
  color: var(--gold-dark); margin-bottom: 24px;
}
.kicker-line {
  display: block; width: 0; height: 1px; background: var(--gold-dark);
  transition: width 1s var(--ease-premium);
}
.kicker-line.active { width: 32px; }

.section-head { max-width: 760px; margin-bottom: 72px; }
.section-title { font-size: clamp(2.4rem, 4.8vw, 3.8rem); margin-bottom: 24px; line-height: 1.05; }
.section-title--light { color: var(--white); }
.section-lead { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.75; max-width: 640px; }
.section-lead--light { color: rgba(255,255,255,0.65); }

/* ==========================================================================
   Vision & Mission
   ========================================================================== */
.vision {
  background: var(--cream);
  position: relative;
  overflow: hidden;
  /* Overrides the generic 140px section padding — two short paragraphs
     don't need that much surrounding air, and it was leaving a big gap
     above and below the section. */
  padding: 90px 0;
}

/* Subtle ambient background, matching the treatment used elsewhere
   (see .gallery::before) — adds depth without adding clutter. */
.vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(184, 149, 106, 0.06) 0%, transparent 55%),
                     radial-gradient(circle at 80% 80%, rgba(11, 29, 58, 0.04) 0%, transparent 55%);
  pointer-events: none;
}

.vision-card-wrap {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 64px 56px;
  box-shadow: var(--shadow-lg, 0 12px 32px -8px rgba(11, 29, 58, 0.12));
  transition: var(--dur-normal) var(--ease-premium);
}
.vision-card-wrap:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(184, 149, 106, 0.2);
}
.vision-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 720px;
  margin: 0 auto;
}
.vision-block {
  position: relative;
  padding: 8px 0 8px 22px;
}
.vision-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
  transition: background 0.4s var(--ease-premium);
}
.vision-block:hover::before {
  background: #000;
}
.vision-block .kicker { margin-bottom: 20px; }
.vision-divider { height: 1px; background: var(--border); width: 100%; }
.vision-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  transition: color 0.4s var(--ease-premium);
}
.vision-block:hover .vision-text {
  color: var(--navy);
}

@media (max-width: 900px) {
  .vision-grid { gap: 32px; }
}

/* ==========================================================================
   Media Gallery — Cinematic Editorial Grid
   ========================================================================== */
.gallery {
  background: var(--cream);
  position: relative;
  /* Overrides the generic 140px section padding — a single featured
     video card doesn't need as much surrounding air, and the default
     spacing was leaving a very empty-feeling section. */
  padding: 90px 0 100px;
}

.gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 100%, rgba(184, 149, 106, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  position: relative;
  z-index: 1;
}

/* Featured layout for single item */
.gallery-grid--single {
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-grid--single .gallery-media {
  aspect-ratio: 21 / 9;
}

.gallery-item {
  position: relative;
  background: var(--navy);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  border: 1px solid rgba(184, 149, 106, 0.08);
  box-shadow: 0 4px 24px -4px rgba(11, 29, 58, 0.15);
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow:
    0 32px 64px -12px rgba(11, 29, 58, 0.25),
    0 0 0 1px rgba(184, 149, 106, 0.2);
  border-color: rgba(184, 149, 106, 0.25);
}

.gallery-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--navy-dark);
  overflow: hidden;
}

/* Cinematic gradient overlay */
.gallery-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 29, 58, 0.85) 0%, rgba(11, 29, 58, 0.2) 40%, transparent 70%);
  opacity: 0.7;
  transition: opacity 0.6s;
  z-index: 1;
  /* This overlay sits visually on top of the <video> but must never
     capture clicks — without this, it silently intercepts every click
     meant for the native play/pause/seek controls once the video is
     playing, making the video impossible to stop. */
  pointer-events: none;
}

.gallery-item:hover .gallery-media::after {
  opacity: 0.95;
}

.gallery-item.is-playing .gallery-media::after {
  opacity: 0;
}

.gallery-media video,
.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: saturate(0.9) contrast(1.05);
}

.gallery-item:hover .gallery-media video,
.gallery-item:hover .gallery-media img {
  transform: scale(1.1);
  filter: saturate(1) contrast(1.05);
}

/* Refined play button with double ring */
.gallery-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 29, 58, 0.15);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 4;
}

.gallery-play-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(184, 149, 106, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gallery-play-circle::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(184, 149, 106, 0.35);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-play-circle::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(184, 149, 106, 0.15);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.gallery-item:hover .gallery-play-circle {
  transform: scale(1.15);
  background: var(--gold);
}

.gallery-item:hover .gallery-play-circle::before {
  inset: -14px;
  border-color: rgba(184, 149, 106, 0.6);
}

.gallery-item:hover .gallery-play-circle::after {
  inset: -24px;
  opacity: 1;
  border-color: rgba(184, 149, 106, 0.3);
}

.gallery-play-circle svg {
  width: 24px;
  height: 24px;
  fill: var(--navy);
  margin-left: 3px;
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-play-circle svg {
  transform: scale(1.1);
}

.gallery-item.is-playing .gallery-play {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

/* While playing, hovering the video brings the button back so there is
   always an obvious, guaranteed-clickable way to pause — this doesn't
   rely on the browser's own native control bar, which can be unreliable
   to hit precisely once other overlays sit on top of the video. */
.gallery-item.is-playing:hover .gallery-play {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Caption overlay — slides up from bottom over media */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 32px 28px;
  z-index: 3;
  transform: translateY(8px);
  opacity: 0.85;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  /* Decorative text only — must never block clicks to the native video
     controls that render at the bottom of the video underneath it. */
  pointer-events: none;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item.is-playing .gallery-caption {
  opacity: 0;
}

.gallery-caption-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  padding: 6px 12px;
  background: rgba(184, 149, 106, 0.18);
  border: 1px solid rgba(184, 149, 106, 0.25);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s;
}

.gallery-item:hover .gallery-caption-label {
  background: rgba(184, 149, 106, 0.3);
  border-color: rgba(184, 149, 106, 0.4);
}

.gallery-caption-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.01em;
}

/* Placeholder — more elegant */
.gallery-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px 40px;
  border: 1px dashed rgba(184, 149, 106, 0.25);
  color: var(--text-muted);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.5s;
}

.gallery-placeholder:hover {
  border-color: rgba(184, 149, 106, 0.4);
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery-grid--single .gallery-media {
    aspect-ratio: 16 / 9;
  }
  .gallery-caption {
    padding: 36px 24px 20px;
    transform: translateY(0);
    opacity: 1;
  }
  .gallery-caption-text {
    font-size: 0.95rem;
  }
  .gallery-play-circle {
    width: 56px;
    height: 56px;
  }
  .gallery-play-circle::before,
  .gallery-play-circle::after {
    display: none;
  }
}

/* ==========================================================================
   The Idea (About) + Skills Timeline
   ========================================================================== */
.idea { background: var(--paper); }
.idea-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 100px; align-items: start; }
.idea-text p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.85; }
.idea-highlight {
  background: linear-gradient(to bottom, transparent 60%, rgba(184, 149, 106, 0.25) 60%);
  font-weight: 600; color: var(--navy);
}

/* Skills Timeline */
.skills-timeline { position: relative; }
.skills-timeline-track { display: flex; flex-direction: column; }
.skill-item {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 32px; padding: 36px 0; border-top: 1px solid var(--border);
  position: relative; transition: var(--dur-normal) var(--ease-premium);
  opacity: 0.7;
}
.skill-item:last-child { border-bottom: 1px solid var(--border); }
.skill-item.active { opacity: 1; padding-left: 16px; }
.skill-item.active .skill-num { color: var(--gold); opacity: 1; }
.skill-item.active .skill-title { color: var(--navy); }

.skill-num-wrap { position: relative; }
.skill-num {
  font-family: 'Fraunces', serif; font-size: 3rem; font-weight: 300;
  color: var(--gold); opacity: 0.6; line-height: 1;
  transition: var(--dur-normal) var(--ease-premium);
}
.skill-title { font-size: 1.35rem; margin-bottom: 10px; transition: color var(--dur-normal); }
.skill-desc { font-size: 0.98rem; color: var(--text-secondary); line-height: 1.7; max-width: 440px; }

.skills-timeline-progress {
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--border); border-radius: 2px;
}
.skills-timeline-bar {
  width: 100%; background: var(--gold); border-radius: 2px;
  transition: height 0.4s var(--ease-premium);
}

/* ==========================================================================
   How a Chapter Works — Animated Flow
   ========================================================================== */
.how-works { background: var(--navy); color: var(--white); }
.how-works .kicker { color: var(--gold); }
.how-works .kicker-line { background: var(--gold); }

.flow-animated { position: relative; }
.flow-line {
  position: absolute; top: 24px; left: 0; right: 0; height: 60px;
  opacity: 0; pointer-events: none;
}
.flow-line svg { width: 100%; height: 100%; }
.flow-line-path {
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2.2s var(--ease-premium);
}
.flow-line-path.active { stroke-dashoffset: 0; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.flow-step { position: relative; padding-top: 56px; }
.flow-step-node {
  position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(184, 149, 106, 0.3);
  display: flex; align-items: center; justify-content: center;
  transition: var(--dur-normal) var(--ease-premium);
}
.flow-step-node.active { border-color: var(--gold); }
.flow-step:hover .flow-step-node { border-color: var(--gold); transform: scale(1.1); }
@keyframes flowPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(184, 149, 106, 0.45); }
  100% { box-shadow: 0 0 0 18px rgba(184, 149, 106, 0); }
}
.flow-step-node.pulse { animation: flowPulseRing 1.5s var(--ease-premium) 2; }
.flow-step-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  transform: scale(0); transition: transform 0.5s var(--ease-spring);
}
.flow-step-dot.active { transform: scale(1); }
.flow-step-index {
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  letter-spacing: 0.18em; color: var(--gold); margin-bottom: 20px;
  transition: var(--dur-normal) var(--ease-premium);
}
.flow-step-title {
  font-size: 1.8rem; color: var(--white); margin-bottom: 16px; font-weight: 400;
  transition: var(--dur-normal) var(--ease-premium);
}
.flow-step:hover .flow-step-title { color: var(--gold); }
.flow-step-desc { color: rgba(255,255,255,0.55); font-size: 0.98rem; line-height: 1.7; max-width: 260px; }

/* ==========================================================================
   Experience — Editorial Magazine Cards
   ========================================================================== */
.experience { background: var(--paper); }

.activities-list { display: flex; flex-direction: column; }
.activity-card {
  position: relative; border-top: 1px solid var(--border);
  perspective: 1000px;
}
.activity-card:last-child { border-bottom: 1px solid var(--border); }
.activity-card-inner {
  display: grid; grid-template-columns: 120px 1.1fr 0.9fr;
  gap: 48px; padding: 64px 40px;
  position: relative; background: transparent;
  transition: var(--dur-normal) var(--ease-premium);
  transform-style: preserve-3d;
}
.activity-card:hover .activity-card-inner {
  background: var(--white); transform: translateZ(20px);
  box-shadow: var(--shadow-xl);
}

.activity-number {
  font-family: 'Fraunces', serif; font-size: 5rem; font-weight: 300;
  color: var(--gold); opacity: 0.25; line-height: 1;
  transition: var(--dur-normal) var(--ease-premium);
  align-self: start;
}
.activity-card:hover .activity-number {
  opacity: 0.9; transform: translateX(-8px);
}

.activity-main { display: flex; flex-direction: column; justify-content: center; }
.activity-title { font-size: 2rem; margin-bottom: 12px; transition: var(--dur-normal); }
.activity-card:hover .activity-title { transform: translateX(4px); }
.activity-line {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 1.1rem; color: var(--gold-dark); margin-bottom: 18px;
}
.activity-desc { color: var(--text-secondary); line-height: 1.8; max-width: 460px; }

.activity-side {
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  opacity: 0.7; transition: opacity var(--dur-normal);
}
.activity-card:hover .activity-side { opacity: 1; }
.activity-subpoints { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.activity-subpoints li {
  font-size: 0.85rem; padding-left: 16px; border-left: 2px solid var(--border);
  transition: border-color var(--dur-normal);
}
.activity-card:hover .activity-subpoints li { border-left-color: var(--gold-10); }
.activity-subpoints strong {
  display: block; font-family: 'Inter', sans-serif; font-weight: 700;
  letter-spacing: 0.08em; font-size: 0.72rem; color: var(--navy); margin-bottom: 4px;
}
.activity-subpoints span { color: var(--text-muted); line-height: 1.55; }
.activity-builds {
  margin-top: 8px; padding-top: 18px; border-top: 1px dashed var(--border);
  font-size: 0.82rem; color: var(--pine); font-weight: 600;
}
.activity-builds em { font-style: normal; color: var(--text-muted); font-weight: 400; }

.activity-accent-line {
  position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gold);
  transition: width 0.8s var(--ease-premium);
}
.activity-card:hover .activity-accent-line { width: 100%; }

/* ==========================================================================
   Meetings — Monumental Typography
   ========================================================================== */
.meetings { background: var(--navy); color: var(--white); position: relative; }
.meetings::before {
  content: ''; position: absolute; top: -30%; right: -15%;
  width: 600px; height: 600px; border: 1px solid rgba(184,149,106,0.12);
  border-radius: 50%; pointer-events: none;
}
.meetings-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }

.next-chapter-label {
  font-family: 'Inter', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.28em; color: var(--gold); margin-bottom: 28px;
  text-transform: uppercase;
}
.next-chapter-day {
  font-family: 'Fraunces', serif;
  font-size: clamp(4rem, 9vw, 8rem);
  color: var(--white); line-height: 0.92;
  margin-bottom: 16px; font-weight: 300;
}
.next-chapter-word { display: block; }
.next-chapter-word--accent { color: var(--gold); font-weight: 500; }
.next-chapter-sub { font-size: 1.1rem; color: rgba(255,255,255,0.55); margin-bottom: 36px; }
.next-chapter-note { font-size: 0.98rem; color: rgba(255,255,255,0.5); line-height: 1.75; max-width: 440px; }
.next-chapter-note strong { color: var(--white); font-weight: 500; }

.meeting-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.08); border-radius: var(--radius-lg); overflow: hidden; }
.meeting-fact { background: var(--navy-light); padding: 36px 32px; transition: background var(--dur-normal); }
.meeting-fact:hover { background: rgba(255,255,255,0.04); }
.meeting-fact-label {
  font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.meeting-fact-value { font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--white); font-weight: 400; }
.meeting-fact-value .counter { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Register — Attendance / Book Suggestion Forms
   ========================================================================== */
.register { background: var(--cream); }

.register-tabs {
  display: flex; gap: 8px; max-width: 760px; margin: 0 auto 40px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 6px;
}
.register-tab {
  flex: 1; padding: 16px 20px; border: none; background: transparent;
  font-family: 'Inter', sans-serif; font-size: 0.92rem; font-weight: 600;
  color: var(--text-secondary); border-radius: var(--radius);
  cursor: pointer; transition: var(--dur-normal) var(--ease-premium);
}
.register-tab:hover { color: var(--navy); }
.register-tab.active { background: var(--navy); color: var(--white); }

.register-panels { max-width: 760px; margin: 0 auto; position: relative; }
.register-panel { display: none; }
.register-panel.active { display: block; }

.form-container--standalone {
  background: var(--white); box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg); padding: 56px;
}
@media (max-width: 640px) {
  .register-tabs { flex-direction: column; }
  .form-container--standalone { padding: 36px 28px; }
}

/* ==========================================================================
   Community — Moving Composition
   ========================================================================== */
.community { background: var(--paper); }

.community-marquee {
  overflow: hidden; margin-bottom: 64px; opacity: 0.15;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.community-marquee-track {
  display: flex; width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.community-marquee:hover .community-marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.community-marquee-item {
  font-family: 'Fraunces', serif; font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300; color: var(--navy); white-space: nowrap;
  padding: 0 24px; letter-spacing: -0.02em;
}
.community-marquee-sep {
  font-family: 'Fraunces', serif; font-size: clamp(3rem, 6vw, 5rem);
  color: var(--gold); opacity: 0.5; padding: 0 24px;
}

.community-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 64px; }
.community-pillar {
  flex: 1 1 220px; padding: 36px 28px;
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--gold); position: relative; overflow: hidden;
  transition: var(--dur-normal) var(--ease-premium);
  transform-style: preserve-3d;
}
.community-pillar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 0;
  background: var(--gold); transition: height var(--dur-normal) var(--ease-premium);
}
.community-pillar:hover::before { height: 4px; }
.community-pillar:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-xl);
  border-color: rgba(184, 149, 106, 0.2);
}
.community-pillar-num {
  position: absolute; top: 16px; right: 20px;
  font-family: 'Fraunces', serif; font-size: 3.5rem;
  font-weight: 300; color: var(--gold); opacity: 0.22; line-height: 1;
}
.community-pillar-title { font-size: 1.2rem; margin-bottom: 10px; position: relative; z-index: 1; }
.community-pillar-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; position: relative; z-index: 1; }

.community-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.community-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--gold-10); color: var(--navy);
  border: 1px solid rgba(184, 149, 106, 0.35);
  border-radius: 100px; font-size: 0.82rem; font-weight: 600;
  white-space: nowrap; transition: var(--dur-normal) var(--ease-premium);
}
.community-tag:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-2px); }
.community-tag span.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-dark); flex-shrink: 0; }
.community-tag:hover span.dot { background: var(--navy); }

/* ==========================================================================
   Membership — Premium Conversion
   ========================================================================== */
.join { background: var(--cream); }
.join-panel {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  background: var(--white); box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg); overflow: hidden;
}

.join-info {
  background: var(--navy); color: var(--white); padding: 72px 56px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.join-info::before {
  content: ''; position: absolute; top: -50%; right: -50%;
  width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,149,106,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.join-info .kicker { color: var(--gold); position: relative; z-index: 1; }
.join-info .kicker-line { background: var(--gold); }
.join-info-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--white);
  margin-bottom: 28px; position: relative; z-index: 1; line-height: 1.1;
}
.join-info p { font-size: 1.05rem; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 40px; position: relative; z-index: 1; }
.join-features { list-style: none; display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.join-features li {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 0.95rem; color: rgba(255,255,255,0.8);
  transition: var(--dur-normal);
}
.join-features li::before { content: ''; width: 20px; height: 1px; background: var(--gold); flex-shrink: 0; transition: width var(--dur-normal); }
.join-features li:hover { color: var(--white); }
.join-features li:hover::before { width: 32px; }

.form-container { padding: 64px 56px; position: relative; }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; letter-spacing: 0.01em; }
.form-label .optional { font-weight: 400; color: var(--text-muted); font-size: 0.78rem; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 14px 18px; font-family: 'Inter', sans-serif; font-size: 0.92rem;
  color: var(--text-primary); background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--dur-normal) var(--ease-premium); outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 149, 106, 0.12); background: var(--white);
}
.form-input.field-error, .form-textarea.field-error, .form-select.field-error { border-color: #c0392b; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
.form-checkbox input { width: 18px; height: 18px; accent-color: var(--gold); margin-top: 2px; cursor: pointer; flex-shrink: 0; }
.form-checkbox label { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; cursor: pointer; }
.form-submit {
  width: 100%; padding: 18px; background: var(--navy); color: var(--white); font-size: 0.95rem;
  font-weight: 600; letter-spacing: 0.02em; border: none; border-radius: var(--radius);
  transition: var(--dur-normal) var(--ease-premium);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  position: relative; overflow: hidden;
}
.form-submit::before {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  transform: translateX(-101%); transition: transform var(--dur-normal) var(--ease-premium);
}
.form-submit:hover:not(:disabled)::before { transform: translateX(0); }
.form-submit:hover:not(:disabled) { color: var(--navy); }
.form-submit span { position: relative; z-index: 1; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-error-banner {
  display: none; background: #fbeceb; border: 1px solid #e3b3ae; color: #8a2f26;
  padding: 16px 18px; border-radius: var(--radius); font-size: 0.85rem; margin-bottom: 24px; line-height: 1.5;
}
.form-error-banner.active { display: block; }
.form-error-banner:focus { outline: 2px solid #8a2f26; outline-offset: 2px; }
.form-error-banner strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }

.form-success { display: none; text-align: center; padding: 80px 48px; }
.form-success.active { display: block; }
.form-success-icon {
  width: 80px; height: 80px; background: rgba(184, 149, 106, 0.12);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px; color: var(--gold-dark);
}
.form-success-icon svg { width: 40px; height: 40px; }
.form-success h3 { font-size: 1.6rem; margin-bottom: 14px; }
.form-success p { color: var(--text-secondary); font-size: 1.05rem; }
.form-success-link {
  display: inline-block; margin-top: 20px; padding: 12px 24px;
  background: var(--gold); color: var(--navy); font-weight: 600;
  font-size: 0.85rem; border-radius: var(--radius);
  transition: var(--dur-normal) var(--ease-premium);
}
.form-success-link:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: stretch; }
.contact-info p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 48px; line-height: 1.8; max-width: 460px; }

.contact-list { display: flex; flex-direction: column; }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 28px 0; border-top: 1px solid var(--border);
  position: relative; transition: var(--dur-normal);
}
.contact-list .contact-row:last-child { border-bottom: 1px solid var(--border); }
.contact-row::before {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold);
  transition: width var(--dur-normal) var(--ease-premium);
}
.contact-row:hover::before { width: 100%; }
.contact-row-label { display: flex; flex-direction: column; }
.contact-row-name { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.contact-row-value { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--navy); transition: color var(--dur-normal); }
.contact-row:hover .contact-row-value { color: var(--gold-dark); }
.contact-row-arrow { color: var(--gold-dark); font-size: 1.2rem; transition: var(--dur-normal) var(--ease-premium); }
.contact-row:hover .contact-row-arrow { transform: translateX(8px); }

.contact-visual { perspective: 1000px; display: flex; align-items: stretch; }
.contact-card {
  background: var(--navy); color: var(--white); padding: 64px 48px; text-align: center;
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  transform-style: preserve-3d; transition: var(--dur-normal) var(--ease-premium);
  display: flex; flex-direction: column; justify-content: center;
  flex: 1;
}
.contact-card-shine {
  position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--dur-normal); pointer-events: none;
}
.contact-card:hover .contact-card-shine { opacity: 1; }
.contact-card img { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; }
.contact-card-tagline { font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 36px; }
.contact-card-divider { width: 50px; height: 1px; background: rgba(255,255,255,0.2); margin: 0 auto 36px; }
.contact-card-text { color: rgba(255, 255, 255, 0.55); font-size: 0.95rem; line-height: 1.7; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-dark); color: var(--white); padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 64px; }
.footer-brand { max-width: 320px; }
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-logo img { width: 44px; height: 44px; border-radius: 50%; }
.footer-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.footer-logo-text span:first-child { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--white); }
.footer-logo-text span:last-child { font-size: 0.62rem; letter-spacing: 0.24em; color: var(--gold); }
.footer-desc { font-size: 0.9rem; color: rgba(255, 255, 255, 0.45); line-height: 1.7; }
.footer-title { font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 22px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 14px; }
.footer-links a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); transition: var(--dur-normal); display: inline-block; }
.footer-links a:hover { color: var(--gold); transform: translateX(4px); }
.footer-socials { display: flex; gap: 14px; }
.footer-social {
  width: 42px; height: 42px; background: var(--navy-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--white);
  transition: var(--dur-normal) var(--ease-premium); position: relative; overflow: hidden;
}
.footer-social::before {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  transform: scale(0); border-radius: 50%; transition: transform var(--dur-normal) var(--ease-premium);
}
.footer-social:hover::before { transform: scale(1); }
.footer-social:hover { color: var(--navy); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-copyright { font-size: 0.82rem; color: rgba(255, 255, 255, 0.3); }

/* ==========================================================================
   Scroll Reveal System
   ========================================================================== */
[data-reveal] { opacity: 0; }
[data-reveal="fade-up"] { transform: translateY(40px); }
[data-reveal="slide-left"] { transform: translateX(60px); }
[data-reveal="scale-x"] { transform: scaleX(0); }
[data-reveal="split-up"] .char { display: inline-block; transform: translateY(110%); opacity: 0; }
[data-reveal="stagger-up"] > * { opacity: 0; transform: translateY(30px); }

.revealed { opacity: 1 !important; transform: none !important; transition: opacity 1s var(--ease-premium), transform 1s var(--ease-premium); }
.revealed [data-reveal-delay] { transition-delay: attr(data-reveal-delay); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; order: -1; margin-bottom: 40px; }
  .idea-grid { grid-template-columns: 1fr; gap: 64px; }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .flow-line { display: none; }
  .activity-card-inner { grid-template-columns: 80px 1fr; }
  .activity-side { grid-column: 1 / -1; padding-left: 0; margin-top: 16px; }
  .meetings-layout { grid-template-columns: 1fr; gap: 56px; }
  .join-panel { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor { display: none; }
  .section { padding: 90px 0; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; cursor: pointer; }
  .nav-mobile-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(251, 249, 244, 0.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 28px 32px;
    flex-direction: column; gap: 20px; box-shadow: var(--shadow-lg);
  }
  .nav-mobile-menu.active { display: flex; }
  .nav-mobile-menu .nav-link { font-size: 1.05rem; padding: 8px 0; }
  .nav-mobile-menu .nav-mobile-cta { display: inline-flex; margin-top: 8px; align-self: flex-start; }

  .hero-title { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .hero-description { font-size: 1.1rem; }
  .hero-words { display: none; }
  .hero-scroll-indicator { display: none; }

  .skill-item { grid-template-columns: 64px 1fr; gap: 20px; }
  .skill-num { font-size: 2.2rem; }
  .flow { grid-template-columns: 1fr; gap: 48px; }
  .flow-step-node { width: 36px; height: 36px; }
  .flow-step { padding-top: 44px; padding-left: 0; }
  .flow-step:not(:last-child)::after {
    content: ''; position: absolute; top: 44px; left: 17px;
    width: 1px; height: calc(100% + 4px); background: rgba(184, 149, 106, 0.25);
  }

  .activity-card-inner { grid-template-columns: 1fr; gap: 24px; padding: 48px 24px; }
  .activity-number { font-size: 3.5rem; }

  .meeting-facts { grid-template-columns: 1fr; }
  .next-chapter-day { font-size: clamp(3rem, 12vw, 5rem); }

  .community-row { flex-direction: column; }
  .community-marquee-item, .community-marquee-sep { font-size: 1.9rem; padding: 0 14px; }
  .community-marquee-track { animation-duration: 18s; }

  .join-info { padding: 56px 32px; }
  .form-container { padding: 48px 32px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; }
  .container { padding: 0 20px; }
  .community-marquee-item, .community-marquee-sep { font-size: 1.4rem; padding: 0 10px; }
}

/* ==========================================================================
   Glow hover effect (hero primary CTA)
   ========================================================================== */
.glow-hover {
  position: relative;
}
.glow-hover::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  background: linear-gradient(45deg, var(--gold), var(--gold-light), var(--gold-dark), var(--gold));
  background-size: 400% 400%;
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity var(--dur-normal);
  animation: glowRotate 3s linear infinite;
}
.glow-hover:hover::after {
  opacity: 0.6;
}
@keyframes glowRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Typewriter cursor (hero description) */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@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;
  }
  .community-marquee-track { animation: none; }
  .hero-glow { animation: none; }
  .scroll-line-progress { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title-line { opacity: 1; }
}