/* ------- Ranch House inspired palette ------- */
:root {
  --cream:        #F5EFE4;
  --cream-soft:   #FAF6EE;
  --cream-deep:   #ECE3D3;
  --tan:          #C9A87C;
  --tan-deep:     #A8845A;
  --brown:        #3E2C1F;
  --brown-soft:   #5B4632;
  --ink:          #2B1F15;
  --rust:         #9C3B2A;
  --blue:         #5B7B8C;
  --line:         rgba(62, 44, 31, 0.15);
  --shadow:       0 18px 50px -22px rgba(43, 31, 21, 0.35);

  --font-serif:   "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ------- Loader ------- */
.loader {
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-mark {
  font-family: var(--font-serif);
  font-size: 64px;
  color: var(--brown);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.loader-mark span { color: var(--tan-deep); font-style: italic; }
.loader-bar {
  width: 200px; height: 1px;
  background: var(--line);
  position: relative; overflow: hidden;
  margin: 0 auto;
}
.loader-bar span {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  background: var(--brown);
  transform: translateX(-100%);
  animation: loaderFill 1.6s ease forwards;
}
@keyframes loaderFill {
  to { transform: translateX(0); }
}

/* ------- Top bar ------- */
.topbar {
  background: var(--brown);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}
.topbar-dot { opacity: 0.4; }
.topbar a { transition: color 0.3s; }
.topbar a:hover { color: var(--tan); }

/* ------- Navigation ------- */
.nav {
  position: sticky; top: 0;
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  transition: box-shadow 0.4s, padding 0.4s;
}
.nav.scrolled { box-shadow: 0 6px 30px -10px rgba(43, 31, 21, 0.2); }
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
/* ------- Brand mark (J&M wordmark) ------- */
.brand {
  font-family: var(--font-serif);
  color: var(--brown);
  text-decoration: none;
  line-height: 1;
}
.brand-mark {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: currentColor;
  display: inline-block;
}
.brand-mark em {
  font-style: italic;
  font-weight: 400;
  color: var(--tan-deep);
  padding: 0 0.1em;
  font-size: 0.86em;
  position: relative;
  top: -0.04em;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 500;
  color: currentColor;
  letter-spacing: 0.01em;
}
.brand-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan-deep);
  font-weight: 600;
}

/* Nav variant — horizontal, compact */
.brand--nav { display: flex; align-items: center; gap: 16px; }
.brand--nav .brand-mark {
  font-size: 44px;
  border-right: 1px solid var(--line);
  padding-right: 18px;
  line-height: 0.95;
}
.brand--nav .brand-stack { display: flex; flex-direction: column; gap: 5px; }
.brand--nav .brand-name { font-size: 19px; }

/* Footer variant — stacked, ornamented */
.brand--footer {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--cream);
  gap: 10px;
}
.brand--footer .brand-mark {
  font-size: 64px;
  color: var(--cream);
}
.brand--footer .brand-mark em { color: var(--tan); }
.brand--footer .brand-name {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream);
}
.brand--footer .brand-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--tan);
  font-weight: 400;
}
.brand-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 140px;
  margin: 4px 0 6px;
}
.brand-rule-line {
  flex: 1;
  height: 1px;
  background: rgba(245, 239, 228, 0.35);
}
.brand-rule-star {
  color: var(--tan);
  font-size: 11px;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  color: var(--brown);
  transition: color 0.3s;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--tan-deep);
  transition: width 0.4s ease, left 0.4s ease;
}
.nav-links a:hover { color: var(--tan-deep); }
.nav-links a:hover::after { width: 100%; left: 0; }

.nav-cta {
  background: var(--brown);
  color: var(--cream) !important;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s;
}
.nav-cta:hover { background: var(--rust); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--brown);
  transition: all 0.3s;
}

/* ------- Buttons ------- */
.btn {
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 16px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--brown);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--rust);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(156, 59, 42, 0.5);
}
.btn-outline {
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
}
.btn-outline:hover {
  background: var(--brown);
  color: var(--cream);
  transform: translateY(-3px);
}
.btn-outline.btn-light {
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline.btn-light:hover {
  background: var(--cream);
  color: var(--brown);
}

/* ------- Hero ------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--cream);
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media video,
.hero-media .hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7) sepia(0.15);
  animation: heroZoom 14s ease-out infinite alternate;
}
@keyframes heroZoom {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(43, 31, 21, 0.5) 100%),
    linear-gradient(180deg, rgba(43, 31, 21, 0.3) 0%, rgba(43, 31, 21, 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 32px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 32px;
  color: var(--cream);
  opacity: 0.85;
}
.hero-eyebrow .line {
  display: inline-block;
  width: 50px; height: 1px;
  background: var(--cream);
  opacity: 0.5;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--tan);
}
.reveal {
  display: block;
  overflow: hidden;
}
.reveal > span {
  display: block;
  transform: translateY(110%);
  animation: reveal 1.1s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}
.reveal:nth-child(2) > span { animation-delay: 0.15s; }
@keyframes reveal {
  to { transform: translateY(0); }
}
.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  animation: revealFade 1s ease forwards;
  animation-delay: 0.6s;
}
.hero-actions.reveal-fade { animation-delay: 0.85s; }
.hero-eyebrow.reveal-fade { animation-delay: 0.2s; }
@keyframes revealFade {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.92;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-actions .btn-outline {
  color: var(--cream);
  border-color: var(--cream);
}
.hero-actions .btn-outline:hover {
  background: var(--cream);
  color: var(--brown);
}
.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
}
.hero-scroll-line {
  width: 1px; height: 60px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -60px; left: 0;
  width: 100%; height: 60px;
  background: linear-gradient(180deg, transparent, var(--tan));
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  to { top: 60px; }
}

/* ------- Marquee ------- */
.marquee {
  background: var(--brown);
  color: var(--cream);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid rgba(245, 239, 228, 0.1);
  border-bottom: 1px solid rgba(245, 239, 228, 0.1);
}
.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
}
.marquee-track .dot {
  color: var(--tan);
  font-size: 14px;
  align-self: center;
  font-family: var(--font-sans);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ------- Section primitives ------- */
.section-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tan-deep);
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-left: 32px;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 20px; height: 1px;
  background: var(--tan-deep);
}
.section-tag.light { color: var(--tan); }
.section-tag.light::before { background: var(--tan); }

.center .section-tag { padding-left: 0; }
.center .section-tag::before {
  position: static;
  display: block;
  width: 40px;
  margin: 0 auto 18px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--brown);
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--tan-deep);
}
.section-title.light { color: var(--cream); }
.section-title.light em { color: var(--tan); }

.section-lead {
  font-size: 18px;
  color: var(--brown-soft);
  max-width: 600px;
  margin: 18px auto 0;
  font-style: italic;
  font-family: var(--font-serif);
}
.section-lead.light { color: rgba(245, 239, 228, 0.75); }

.section-head {
  margin-bottom: 80px;
}
.section-head.center {
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.split-left { position: sticky; top: 120px; }

/* ------- Divider ------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.divider .ornament {
  padding: 0 24px;
  color: var(--tan-deep);
  font-size: 16px;
}

/* ------- Intro ------- */
.intro {
  padding: 140px 0;
  background: var(--cream);
}
.intro p {
  font-size: 19px;
  color: var(--brown-soft);
  margin-bottom: 24px;
  line-height: 1.75;
  max-width: 580px;
}
.intro-image {
  margin-top: 48px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  max-width: 420px;
}
.intro-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(0.1) saturate(0.95);
  transition: transform 1.5s ease;
}
.intro-image:hover img {
  transform: scale(1.06);
}
.stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat .num {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 500;
  color: var(--brown);
  line-height: 1;
}
.stat .label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan-deep);
  margin-top: 10px;
  font-weight: 600;
}

/* ------- Services ------- */
.services {
  padding: 140px 0;
  background: var(--cream-soft);
  position: relative;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -25px rgba(43, 31, 21, 0.45);
}
.service-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  transition: transform 1s ease;
  filter: sepia(0.1) saturate(0.95);
}
.service-card:hover .service-img {
  transform: scale(1.08);
}
.service-body {
  padding: 36px 32px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-num {
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--tan-deep);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.service-body h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.service-body p {
  font-size: 15px;
  color: var(--brown-soft);
  line-height: 1.7;
}
.service-card--feature {
  background: var(--brown);
  color: var(--cream);
}
.service-card--feature .service-num { color: var(--tan); }
.service-card--feature h3 { color: var(--cream); }
.service-card--feature p { color: rgba(245, 239, 228, 0.85); }
.service-body--feature {
  padding: 56px 36px;
  justify-content: center;
  align-items: flex-start;
}
.service-body--feature .btn { margin-top: 24px; }

/* ------- Program ------- */
.program {
  position: relative;
  padding: 160px 0;
  color: var(--cream);
  overflow: hidden;
}
.program-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.5) sepia(0.3) saturate(0.9);
  z-index: 0;
}
.program-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(43, 31, 21, 0.7) 0%, rgba(43, 31, 21, 0.85) 100%);
  z-index: 1;
}
.program-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.program-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 24px;
}
.program-title em {
  font-style: italic;
  color: var(--tan);
}
.program-lead {
  font-size: 19px;
  max-width: 700px;
  margin: 0 auto 80px;
  opacity: 0.9;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.6;
}
.program-weeks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.program-weeks::before {
  content: '';
  position: absolute;
  top: 40px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tan), transparent);
  opacity: 0.4;
}
.week {
  text-align: center;
  padding: 24px 12px;
  position: relative;
}
.week::before {
  content: '';
  position: absolute;
  top: 33px; left: 50%;
  width: 14px; height: 14px;
  background: var(--tan);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 6px rgba(43, 31, 21, 1);
}
.week-num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tan);
  margin-top: 50px;
  margin-bottom: 16px;
  font-weight: 600;
}
.week h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}
.week p {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.6;
}

/* ------- Gallery ------- */
.gallery {
  padding: 140px 0 100px;
  background: var(--cream);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
  padding: 0 32px;
  max-width: 1600px;
  margin: 0 auto;
}
.g-item {
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s;
  filter: sepia(0.12) saturate(0.95);
  cursor: pointer;
  position: relative;
}
.g-item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(43, 31, 21, 0.15);
  opacity: 0;
  transition: opacity 0.5s;
}
.g-item:hover {
  transform: scale(1.02);
  filter: sepia(0) saturate(1.1);
}
.g-item:hover::after { opacity: 1; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ------- Foundation Lessons ------- */
.lessons {
  padding: 140px 0;
  background: var(--cream);
}
.lessons-split { grid-template-columns: 1fr 1.1fr; gap: 80px; }
.lessons .split-left p {
  font-size: 18px;
  color: var(--brown-soft);
  margin-bottom: 22px;
  line-height: 1.75;
  max-width: 540px;
}
.lessons .split-left p em {
  font-style: italic;
  color: var(--tan-deep);
  font-family: var(--font-serif);
  font-weight: 500;
}
.lessons-card {
  background: var(--cream-soft);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.lessons-card-img {
  height: 280px;
  background-size: cover;
  background-position: center;
  filter: sepia(0.1) saturate(0.95);
  position: relative;
}
.lessons-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(43,31,21,0.35));
}
.lessons-card-body {
  padding: 40px 40px 44px;
}
.lessons-card-body .service-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan-deep);
  margin-bottom: 12px;
  font-weight: 600;
}
.lessons-card-body h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 24px;
  letter-spacing: -0.005em;
}
.lessons-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.lessons-list li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.lessons-list .check {
  color: var(--tan-deep);
  font-size: 14px;
  line-height: 1.4;
  flex-shrink: 0;
  padding-top: 2px;
}
.lessons-list strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.lessons-list p {
  font-size: 14px;
  color: var(--brown-soft);
  line-height: 1.6;
  margin: 0;
}

/* ------- Video Carousel ------- */
.video-section {
  background: var(--ink);
  padding: 140px 0;
  color: var(--cream);
}
.carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  aspect-ratio: 16 / 9;
  background: #000;
}
.carousel-track {
  position: relative;
  width: 100%; height: 100%;
}
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), transform 1.2s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.9s;
}
.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), transform 1.2s cubic-bezier(0.4,0,0.2,1), visibility 0s;
  z-index: 2;
}
.carousel-slide video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.slide-caption {
  position: absolute;
  left: 40px; bottom: 36px; right: 40px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.0));
  max-width: 520px;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.8s ease 0.3s, transform 0.8s cubic-bezier(0.4,0,0.2,1) 0.3s;
}
.carousel-slide.is-active .slide-caption {
  opacity: 1;
  transform: translateY(0);
}
.slide-caption::before {
  content: '';
  position: absolute;
  inset: -120px -40px -40px -40px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  z-index: -1;
  pointer-events: none;
}
.slide-num {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 12px;
  font-weight: 600;
}
.slide-caption h4 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.slide-caption p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(245, 239, 228, 0.85);
  line-height: 1.5;
}
.slide-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(245, 239, 228, 0.95);
  color: var(--brown);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s, background 0.4s, opacity 0.4s;
  z-index: 4;
  animation: pulse 2.4s infinite;
}
.slide-play svg { width: 38px; height: 38px; margin-left: 4px; }
.slide-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--tan);
}
.slide-play.hidden { opacity: 0; pointer-events: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 239, 228, 0.5); }
  70% { box-shadow: 0 0 0 30px rgba(245, 239, 228, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 239, 228, 0); }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(43, 31, 21, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(245, 239, 228, 0.25);
  color: var(--cream);
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s, transform 0.35s, border-color 0.35s;
}
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-arrow:hover {
  background: var(--tan-deep);
  border-color: var(--tan);
  transform: translateY(-50%) scale(1.08);
}
.carousel-arrow--prev { left: 24px; }
.carousel-arrow--next { right: 24px; }

.carousel-dots {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.carousel-dots button {
  width: 28px; height: 3px;
  border-radius: 2px;
  background: rgba(245, 239, 228, 0.35);
  border: none;
  cursor: pointer;
  transition: background 0.4s, width 0.4s;
  padding: 0;
}
.carousel-dots button.is-active {
  background: var(--tan);
  width: 44px;
}
.carousel-dots button:hover { background: rgba(245, 239, 228, 0.7); }

.carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 24px auto 0;
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s, border-color 0.4s, filter 0.4s;
  filter: sepia(0.1) saturate(0.95) brightness(0.65);
  padding: 0;
}
.thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6));
  pointer-events: none;
}
.thumb span {
  position: absolute;
  left: 10px; bottom: 8px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cream);
  font-weight: 600;
}
.thumb:hover {
  filter: sepia(0) saturate(1) brightness(0.85);
  transform: translateY(-3px);
}
.thumb.is-active {
  border-color: var(--tan);
  filter: sepia(0) saturate(1.1) brightness(1);
}

/* ------- Testimonials ------- */
.testimonials {
  background: var(--cream-deep);
  padding: 120px 0;
}
.testimonials .section-head { margin-bottom: 60px; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial {
  background: var(--cream-soft);
  padding: 44px 36px 36px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 12px 36px -18px rgba(43, 31, 21, 0.25);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
  display: flex;
  flex-direction: column;
}
.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(43, 31, 21, 0.35);
}
.quote-mark {
  position: absolute;
  top: 18px;
  left: 28px;
  font-family: var(--font-serif);
  font-size: 86px;
  line-height: 1;
  color: var(--tan);
  opacity: 0.55;
  font-style: italic;
}
.testimonial blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--brown);
  margin: 28px 0 32px;
  flex: 1;
  font-weight: 400;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.t-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--brown);
  letter-spacing: -0.005em;
}
.t-meta {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tan-deep);
  font-weight: 600;
}
.testimonial--feature {
  background: var(--brown);
  color: var(--cream);
}
.testimonial--feature blockquote { color: var(--cream); font-size: 21px; }
.testimonial--feature .t-name { color: var(--cream); }
.testimonial--feature .t-meta { color: var(--tan); }
.testimonial--feature .quote-mark { color: var(--tan); opacity: 0.7; }
.testimonial--feature figcaption { border-top-color: rgba(245, 239, 228, 0.18); }

/* ------- Contact ------- */
.contact {
  padding: 140px 0;
  background: var(--cream-soft);
}
.contact p {
  font-size: 17px;
  color: var(--brown-soft);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 460px;
}
.contact-list {
  list-style: none;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.contact-list li {
  display: flex;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  align-items: center;
  gap: 24px;
}
.contact-list li span {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tan-deep);
  font-weight: 600;
  width: 110px;
  flex-shrink: 0;
}
.contact-list li a {
  color: var(--brown);
  transition: color 0.3s;
  font-family: var(--font-serif);
  font-size: 19px;
}
.contact-list li a:hover { color: var(--rust); }

.contact-form {
  background: var(--cream);
  padding: 48px 44px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 24px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tan-deep);
  font-weight: 600;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--brown);
  transition: border-color 0.3s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--tan-deep);
}
.field textarea { resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-success {
  margin-top: 20px;
  padding: 16px;
  background: rgba(91, 123, 140, 0.15);
  color: var(--blue);
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  display: none;
}
.form-success.show { display: block; }

/* ------- Footer ------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 40px;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  opacity: 0.8;
}
.footer-links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 24px 0;
  border-top: 1px solid rgba(245, 239, 228, 0.12);
  border-bottom: 1px solid rgba(245, 239, 228, 0.12);
  width: 100%;
  max-width: 600px;
  justify-content: center;
  margin-top: 16px;
}
.footer-links a { transition: color 0.3s; }
.footer-links a:hover { color: var(--tan); }
.footer-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 16px;
}

/* ------- Reveal animations ------- */
[data-anim] {
  opacity: 0;
  transition: opacity 1s ease, transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-anim="fade-up"]   { transform: translateY(40px); }
[data-anim="zoom-in"]   { transform: scale(0.94); }
[data-anim].in {
  opacity: 1;
  transform: none;
}

/* ------- Responsive ------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .topbar { font-size: 10px; }
  .topbar-inner { gap: 8px; padding: 8px 16px; flex-wrap: wrap; justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-left { position: static; }
  .service-grid { grid-template-columns: 1fr; }
  .program-weeks { grid-template-columns: 1fr 1fr; }
  .program-weeks::before { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .g-wide { grid-column: span 2; }
  .stats { gap: 24px; }
  .stat .num { font-size: 40px; }
  .container { padding: 0 20px; }
  .intro, .services, .gallery, .video-section, .program, .contact, .lessons, .testimonials { padding: 90px 0; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .footer-meta { flex-direction: column; gap: 8px; text-align: center; }
  .lessons-split { grid-template-columns: 1fr; gap: 40px; }
  .lessons-card-body { padding: 30px 28px 32px; }
  .carousel-arrow { width: 44px; height: 44px; }
  .carousel-arrow--prev { left: 12px; }
  .carousel-arrow--next { right: 12px; }
  .slide-caption { left: 24px; right: 24px; bottom: 28px; }
  .carousel-thumbs { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .hero { min-height: 80vh; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .program-weeks { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-wide, .g-tall { grid-column: auto; grid-row: auto; }
  .slide-caption h4 { font-size: 20px; }
  .slide-caption p { font-size: 13px; }
  .slide-play { width: 72px; height: 72px; }
  .slide-play svg { width: 28px; height: 28px; }
  .carousel-thumbs { grid-template-columns: repeat(2, 1fr); }
}
