/* ═══════════════════════════════════════════════════════════
   GoGoREAD — English Speaking Camp
   Official Product Website
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   GoGoREAD — English Speaking Camp
   Official Product Website · v2 (with real assets)
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  /* Colour */
  --navy:        #0d1b2a;
  --navy-deep:   #080f18;
  --navy-mid:    #162336;
  --cream:       #faf7f2;
  --cream-dark:  #f0ebe0;
  --cream-mid:   #e8e0d0;
  --gold:        #c4a35a;
  --gold-light:  #d4b870;
  --gold-faint:  rgba(196, 163, 90, 0.18);
  --gold-line:   rgba(196, 163, 90, 0.35);
  --text-dark:   #1a1a1a;
  --text-mid:    #4a4a4a;
  --text-soft:   #7a7a7a;
  --white:       #ffffff;

  /* Typography */
  --serif:   'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --chinese: 'Noto Serif SC', 'STSong', 'SimSun', serif;

  /* Layout */
  --container: 1100px;
  --radius:    0px;

  /* Motion */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; }

/* ─── Typography scale ───────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ─── Layout helpers ─────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 7rem 0; }
.section-navy { background: var(--navy); }

/* ─── Section labels & titles ────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.section-title.light { color: var(--cream); }

.section-title-zh {
  font-family: var(--chinese);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  margin-bottom: 3.5rem;
}
.section-title-zh.light { color: rgba(250,247,242,0.42); }

.section-header { margin-bottom: 4rem; }
.section-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 520px;
  line-height: 1.75;
  margin-top: -2.5rem;
  margin-bottom: 3.5rem;
}

/* ─── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* Stagger siblings */
.section-header .reveal:nth-child(2) { transition-delay: 0.08s; }
.section-header .reveal:nth-child(3) { transition-delay: 0.16s; }
.section-header .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 900;
  transition: background 0.45s var(--ease), border-color 0.45s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(13, 27, 42, 0.96);
  border-bottom-color: rgba(196, 163, 90, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  line-height: 1;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  /* Convert original pink/blue to Gold #c4a35a */
  filter: brightness(0) saturate(100%) invert(68%) sepia(48%) saturate(580%) hue-rotate(354deg) brightness(96%) contrast(92%);
}
.nav-logo-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--cream);
  display: none; /* show logo image only */
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.65);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--cream); }

.nav-cta {
  padding: 0.48rem 1.3rem !important;
  border: 1px solid var(--gold-line) !important;
  color: var(--gold) !important;
  transition: background 0.3s, color 0.3s !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  width: 32px;
  height: 32px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  transform-origin: center;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0;
  overflow: hidden;
  padding: 8rem 4rem 6rem;
}

.hero-bg {
  position: absolute;
  inset: -8%;
  background-image: url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?w=1800&q=80');
  background-size: cover;
  background-position: center 40%;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(13,27,42,0.78) 0%,
    rgba(13,27,42,0.92) 55%,
    rgba(8,15,24,0.98) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 640px;
}

/* Floating poster card on the right */
.hero-poster-card {
  position: relative;
  z-index: 1;
  width: 320px;
  flex-shrink: 0;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(196,163,90,0.2);
  transform: rotate(1.5deg);
  transition: transform 0.5s var(--ease);
}
.hero-poster-card:hover { transform: rotate(0deg) scale(1.02); }
.hero-poster-card img {
  width: 100%;
  display: block;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero-series {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 2.2vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(250,247,242,0.5);
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
}

.hero-rule {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.hero-rule span {
  display: block;
  width: 55px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.35;
  margin-bottom: 0.8rem;
}

.hero-tagline-zh {
  font-family: var(--chinese);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(250,247,242,0.42);
  letter-spacing: 0.18em;
  margin-bottom: 2rem;
}

.hero-sub {
  font-family: var(--chinese);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(250,247,242,0.5);
  letter-spacing: 0.1em;
  line-height: 2.2;
  margin-bottom: 3rem;
}

.hero-texts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.8rem 2rem;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  margin-bottom: 3.5rem;
}
.hero-text-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.text-label {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.text-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--cream);
}
.text-author {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: rgba(250,247,242,0.38);
  letter-spacing: 0.04em;
}
.hero-text-sep {
  color: var(--gold);
  font-size: 1.5rem;
  opacity: 0.35;
  align-self: center;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.42);
  text-decoration: none;
  transition: color 0.3s;
  animation: bob 2.8s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--gold); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ═══════════════════════════════════════════════════════════
   WHY CLASSIC TEXTS
   ═══════════════════════════════════════════════════════════ */
#why-classic { background: var(--cream); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.editorial-lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.58;
  color: var(--navy);
  margin-bottom: 2rem;
}

.editorial-body {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.88;
  margin-bottom: 1.5rem;
}

.editorial-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
  margin-top: 2rem;
  line-height: 1.6;
}

.why-visual {
  position: relative;
}
.why-visual img {
  width: 100%;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.why-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(13,27,42,0.1);
}

.pillar { padding-top: 0.5rem; }
.pillar-line {
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1rem;
}
.pillar-num {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.pillar-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.65rem;
}
.pillar-body {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.72;
}

/* ═══════════════════════════════════════════════════════════
   LEARNING JOURNEY
   ═══════════════════════════════════════════════════════════ */
#learning-journey { background: var(--navy); }

.section-desc-light {
  font-family: var(--chinese);
  font-size: 0.95rem;
  color: rgba(250,247,242,0.42);
  letter-spacing: 0.06em;
  margin-top: -2.5rem;
  margin-bottom: 3.5rem;
}

.journey-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 4rem;
}

.journey-image {
  position: sticky;
  top: 6rem;
}
.journey-image img {
  width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.journey-timeline {
  min-width: 0; /* fix grid text-wrap crush */
}

.journey-step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 2rem;
  position: relative;
  padding-bottom: 3.5rem;
  min-width: 0;
}
.journey-step--final { padding-bottom: 0; }

.step-track {
  position: relative;
  display: flex;
  justify-content: center;
}
.step-line {
  position: absolute;
  top: 50px;
  bottom: -3.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-line) 0%, transparent 100%);
}
.journey-step--final .step-line { display: none; }

.step-node {
  width: 50px;
  height: 50px;
  border: 1px solid var(--gold-line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}
.step-node--final {
  background: var(--gold);
  border-color: var(--gold);
}
.step-node--final .step-num { color: var(--navy); }

.step-num {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.step-content {
  grid-column: 2 / 3; /* force into 2nd column, not wrapped to new row */
  padding-top: 0.9rem;
  min-width: 0;
  overflow-wrap: break-word;
}
.step-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.step-body {
  font-size: 0.86rem;
  color: rgba(250,247,242,0.48);
  line-height: 1.78;
  word-break: break-word;
}

/* ═══════════════════════════════════════════════════════════
   COURSE PATHWAY
   ═══════════════════════════════════════════════════════════ */
#course-pathway { background: var(--cream-dark); }

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.day-card {
  cursor: pointer;
  outline: none;
}
.day-card:focus-visible .card-poster { outline: 2px solid var(--gold); }

/* Poster face — uses real PNG poster images */
.card-poster {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center top;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), border-color 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
}
.day-card:hover .card-poster,
.day-card:focus-visible .card-poster {
  transform: translateY(-8px);
  border-color: var(--gold-line);
}

/* Subtle dark gradient at bottom so cue text is legible */
.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.7) 0%, transparent 50%);
  pointer-events: none;
}

.card-cue {
  position: relative;
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.day-card:hover .card-cue,
.day-card:focus-visible .card-cue { opacity: 1; transform: none; }

/* Showcase card gets a gold accent ring */
.day-card--showcase .card-poster { border-color: rgba(196,163,90,0.3); }

/* Modal detail */
.card-detail {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8,15,24,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.card-detail[hidden] { display: none; }

.card-detail-box {
  background: var(--cream);
  max-width: 500px;
  width: 100%;
  padding: 3.5rem;
  position: relative;
  animation: rise 0.38s var(--ease-out);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.card-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}
.card-close:hover { color: var(--navy); }

.detail-stage {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.detail-title {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1.4rem;
}
.detail-body {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.82;
  margin-bottom: 2rem;
}
.detail-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.detail-skills span {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--gold-line);
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   TEACHER TEAM
   ═══════════════════════════════════════════════════════════ */
#teacher-team { background: var(--navy); }

/* Landscape grid: 3 columns, auto-fill for any number of teachers */
.video-grid--landscape {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* Portrait section label */
.video-section-label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(196,163,90,0.18);
}
.video-section-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(250,247,242,0.7);
}

/* Student Showcase: 2×2 grid, landscape */
.video-grid--showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Landscape video wrapper */
.video-wrap {
  position: relative;
  background: var(--navy-mid);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Portrait video wrapper */
.video-wrap--portrait {
  aspect-ratio: 9 / 16;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--navy-mid);
}

/* Placeholder appearance when no poster/video yet */
.video-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #162336 0%, #0d1b2a 100%);
  z-index: 0;
}
.video-wrap video,
.video-wrap .video-overlay { position: relative; z-index: 1; }

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,27,42,0.45);
  transition: background 0.35s;
  z-index: 2;
}
.video-wrap:hover .video-overlay { background: rgba(13,27,42,0.25); }
.video-wrap.is-playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-btn {
  width: 64px;
  height: 64px;
  background: none;
  border: none;
  color: var(--cream);
  transition: transform 0.3s, color 0.3s;
}
.play-btn:hover { transform: scale(1.12); color: var(--gold); }
.play-btn svg { width: 100%; height: 100%; }

.video-meta {
  padding: 1rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.video-label {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.video-caption {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: rgba(250,247,242,0.82);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   SPEAKING PRACTICE
   ═══════════════════════════════════════════════════════════ */
#speaking-practice { background: var(--cream); }
#speaking-practice .container { margin-bottom: 3rem; }

.practice-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 2rem 1rem;
  cursor: grab;
}
.practice-scroll::-webkit-scrollbar { display: none; }
.practice-scroll:active { cursor: grabbing; }

.practice-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.practice-item { flex-shrink: 0; width: 300px; }

.practice-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--navy);
  overflow: hidden;
}
.practice-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--navy-mid);
}
.practice-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #162336 0%, #0d1b2a 100%);
  z-index: 0;
}
.practice-frame video { position: relative; z-index: 1; }
.practice-label {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   TRAINING LOOP
   ═══════════════════════════════════════════════════════════ */
#training-loop { background: var(--navy); }

.loop-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.loop-diagram {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

.loop-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.loop-ring-animate {
  transition: stroke-dashoffset 2.2s var(--ease);
}
.loop-diagram.visible .loop-ring-animate {
  stroke-dashoffset: 0;
}

.loop-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.loop-center-en {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cream);
}
.loop-center-zh {
  font-family: var(--chinese);
  font-size: 0.75rem;
  color: rgba(250,247,242,0.38);
  letter-spacing: 0.12em;
}

/* Nodes positioned around the circle using trigonometry via CSS custom properties */
.loop-nodes { position: absolute; inset: 0; }
.loop-node {
  position: absolute;
  top: 50%;
  left: 50%;
  --r: 130px;
  transform:
    rotate(var(--angle))
    translateY(calc(-1 * var(--r)))
    rotate(calc(-1 * var(--angle)));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  translate: -50% -50%;
}
.loop-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.loop-node span {
  font-family: var(--sans);
  font-size: 0.62rem;
  line-height: 1.35;
  text-align: center;
  color: rgba(250,247,242,0.55);
  white-space: nowrap;
}

.loop-principles { display: flex; flex-direction: column; }
.loop-principle {
  padding: 1.8rem 0;
  border-top: 1px solid rgba(196,163,90,0.18);
}
.loop-principle:last-child { border-bottom: 1px solid rgba(196,163,90,0.18); }
.loop-principle h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--cream);
  margin-bottom: 0.65rem;
}
.loop-principle p {
  font-size: 0.85rem;
  color: rgba(250,247,242,0.48);
  line-height: 1.78;
}

/* ═══════════════════════════════════════════════════════════
   LEARNING OUTCOMES
   ═══════════════════════════════════════════════════════════ */
#learning-outcomes { background: var(--cream); }

.outcomes-lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  font-weight: 400;
  color: var(--navy);
  max-width: 720px;
  line-height: 1.65;
  margin-bottom: 4rem;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(13,27,42,0.12);
  border-left: 1px solid rgba(13,27,42,0.12);
}

.outcome {
  padding: 2rem 1.6rem;
  border-right: 1px solid rgba(13,27,42,0.12);
  border-bottom: 1px solid rgba(13,27,42,0.12);
  transition: background 0.3s;
}
.outcome:hover { background: var(--cream-dark); }

.outcome-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.65rem;
}
.outcome p {
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.outcomes-coda {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(13,27,42,0.12);
}
.outcomes-coda p {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-style: italic;
  color: var(--navy);
  max-width: 700px;
  line-height: 1.62;
}

/* ═══════════════════════════════════════════════════════════
   FINAL CALL
   ═══════════════════════════════════════════════════════════ */
.section-final {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.final-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(196,163,90,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.final-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.final-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}
.final-title {
  font-family: var(--chinese);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
}
.final-tagline {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-style: italic;
  color: rgba(250,247,242,0.5);
  line-height: 2.1;
  margin-bottom: 2.5rem;
}
.final-rule {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.final-rule span {
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
}
.final-sub {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.32);
  line-height: 2.1;
  margin-bottom: 3.5rem;
}
.final-sub em {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.05em;
}
.final-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.btn-secondary {
  display: inline-block;
  padding: 1rem 2.8rem;
  border: 1px solid rgba(250,247,242,0.25);
  color: rgba(250,247,242,0.65);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
#footer {
  background: var(--navy-deep);
  padding: 4rem 0 3rem;
  border-top: 1px solid rgba(196,163,90,0.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.footer-motto {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(250,247,242,0.28);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(250,247,242,0.38);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy { text-align: right; }
.footer-copy p {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: rgba(250,247,242,0.22);
  line-height: 1.9;
}
.footer-series { color: rgba(196,163,90,0.35) !important; }

/* Journey quote bar */
.journey-quotes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(196,163,90,0.2);
  margin-top: 2rem;
  flex-wrap: wrap;
}
.jq-item span {
  font-family: var(--chinese);
  font-size: 0.88rem;
  color: rgba(250,247,242,0.6);
  letter-spacing: 0.08em;
}
.jq-sep {
  color: var(--gold);
  opacity: 0.4;
  font-size: 1.2rem;
}

/* Detail modal additions */
.detail-title-zh {
  display: block;
  font-family: var(--chinese);
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 300;
  color: var(--text-soft);
  letter-spacing: 0.06em;
}
.detail-theme {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.detail-growth {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  font-style: italic;
  padding-top: 1rem;
  border-top: 1px solid rgba(13,27,42,0.1);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet — ≤ 960px */
@media (max-width: 960px) {
  section { padding: 6rem 0; }

  #hero {
    grid-template-columns: 1fr;
    padding: 8rem 2rem 5rem;
  }
  .hero-content { text-align: center; max-width: 100%; }
  .hero-poster-card { display: none; }

  .why-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .why-pillars { grid-template-columns: 1fr 1fr; }

  .journey-layout { grid-template-columns: 1fr; gap: 3rem; }
  .journey-image { position: static; }

  .video-grid--landscape { grid-template-columns: 1fr 1fr; }

  .pathway-grid { grid-template-columns: repeat(2, 1fr); }

  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }

  .loop-layout { grid-template-columns: 1fr; gap: 4rem; }
  .loop-diagram { margin-bottom: 1rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-copy { text-align: left; grid-column: 1 / -1; }
}

/* Mobile — ≤ 640px */
@media (max-width: 640px) {
  section { padding: 5rem 0; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 800;
    background: rgba(8,15,24,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .nav-cta { font-size: 1rem !important; }

  .hero-brand { letter-spacing: 0.02em; }
  .hero-texts { flex-direction: column; gap: 1.5rem; }
  .hero-text-sep { display: none; }

  .why-pillars { grid-template-columns: 1fr 1fr; }

  .pathway-grid { grid-template-columns: 1fr 1fr; }

  .video-grid--landscape { grid-template-columns: 1fr; }
  .video-grid--showcase { grid-template-columns: 1fr; }

  .outcomes-grid { grid-template-columns: 1fr 1fr; }

  .final-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-copy { text-align: left; grid-column: auto; }

  .loop-diagram { width: 280px; height: 280px; }
  .loop-node { --r: 115px; }

  .journey-quotes { gap: 0.8rem; }
  .jq-sep { display: none; }
}

/* Extra small — ≤ 400px */
@media (max-width: 400px) {
  .outcomes-grid { grid-template-columns: 1fr; }
  .pathway-grid { grid-template-columns: 1fr; }
}
