/* ==========================================================================
   BuildMoat landing hub — final ("Editorial Split")
   Builds on assets/css/tokens.css (loaded first). Hub-specific tokens below.
   Sections: tokens · base · type · buttons · nav · hero · sections · course
   cards · compare (tiles, table) · instructors · testimonials · FAQ ·
   community · footer · float/mobile bar · lightbox · responsive · motion
   ========================================================================== */

:root {
  --gold: var(--accent-gold);
  --gold-soft: rgba(255, 215, 0, 0.32);
  --gold-dim: rgba(255, 215, 0, 0.1);
  --gold-gradient: linear-gradient(135deg, #d4af37, #f4d03f);
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.02);
  --glass-strong: rgba(255, 255, 255, 0.04);
  --text-body: #d2d2d2;
  --text-muted: #9a9a9a; /* 7:1 on #000 — never #666 for text */
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-sans: "Inter", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
  --font-display: "Bebas Neue", "Inter", "PingFang TC", sans-serif;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --control: 40px; /* minimum interactive height */
}

@media (max-width: 900px) {
  :root { --nav-height: 68px; }
}
@media (pointer: coarse) {
  :root { --control: 44px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-primary);
  overflow-x: hidden;
}

/* Fixed 60px grid + slow gold radial glow (family motif) */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
body::after {
  background:
    radial-gradient(55% 45% at 18% 12%, rgba(255, 215, 0, 0.07), transparent 65%),
    radial-gradient(40% 40% at 85% 85%, rgba(255, 215, 0, 0.05), transparent 65%);
  animation: glow-drift 28s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}

main, .site-footer, .float-tab, .mobile-bar { position: relative; z-index: 1; }
.sticky-nav { height: 0; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, blockquote, fieldset, legend { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
s { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.45); }
h1, h2, h3, .faq-btn span, .result-title, .pull-quote p { text-wrap: balance; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important; /* must beat every display/position rule */
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(var(--container-max), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.2;
}
.numeral {
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: 0.02em;
}
.gold { color: var(--gold); }

/* Scroll reveal (+ staggered siblings). Only IntersectionObserver-driven reveals
   animate (.will-animate); an externally toggled .is-visible snaps instantly. */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.will-animate { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .stagger > .reveal.will-animate:nth-child(2) { transition-delay: 0.1s; }
.js .stagger > .reveal.will-animate:nth-child(3) { transition-delay: 0.2s; }
.js .stagger > .reveal.will-animate:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { display: inline-block; transition: transform var(--transition-fast); }
.btn:hover .arrow { transform: translateX(4px); }
/* Primary = gold gradient (mirrors the course pages' .cta-early-bird) */
.btn-gold {
  background: var(--gold-gradient);
  color: #000;
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 10px 28px -12px rgba(255, 215, 0, 0.55);
}
.btn-gold:hover { box-shadow: 0 14px 34px -12px rgba(255, 215, 0, 0.7); }
/* Secondary = gold outline */
.btn-ghost { border-color: var(--gold-soft); color: var(--gold); background: rgba(0, 0, 0, 0.25); }
.btn-ghost:hover { background: var(--gold-dim); border-color: var(--gold); }
.btn-sm { min-height: var(--control); padding: 8px 18px; font-size: 0.88rem; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1rem; }
.btn-lg i { font-size: 1.15em; }
.btn-idx {
  font-family: var(--font-display);
  font-size: 1.05em;
  letter-spacing: 0.08em;
  padding-right: 8px;
  margin-right: 2px;
  border-right: 1px solid currentColor;
  opacity: 0.75;
  line-height: 1;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--transition-normal), border-color var(--transition-normal);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--nav-bg-blur);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--hairline);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-height: var(--control);
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  white-space: nowrap;
  line-height: 1;
  padding-top: 2px;
}
.nav-drawer {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--control);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 0;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--glass);
}
.lang-btn {
  min-width: 40px;
  min-height: var(--control);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.lang-btn:hover { color: #fff; }
.lang-btn[aria-pressed="true"] { background: var(--gold); color: #000; }
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control); height: var(--control);
  min-width: 40px; min-height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: #fff;
  font-size: 1.05rem;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.nav-icon:hover { color: var(--gold); border-color: var(--gold-soft); background: var(--gold-dim); }
/* The EN labels are ~30% wider than the zh ones: tighten the mid range and show the CTA only where it fits */
@media (min-width: 1001px) and (max-width: 1279px) {
  .nav-links { gap: 18px; }
  .nav-drawer { gap: 20px; }
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
}
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-height);
}

.hero-split {
  flex: 1;
  display: flex;
  min-height: 480px;
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
  background: #000;
}
.panel {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.panel + .panel { border-left: 1px solid var(--gold-soft); }
.panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.55) saturate(0.85);
  transform: scale(1.02);
  transition: filter 0.75s var(--ease), transform 0.75s var(--ease);
}
/* Scrim: keeps title, price and CTA legible over the photo */
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.45) 28%, rgba(0, 0, 0, 0.9) 62%, #000 100%);
}
.panel-watermark {
  position: absolute;
  top: auto; bottom: calc(100% - 16px); left: 50%;
  transform: translateX(-50%);
  z-index: -1; /* behind the panel copy, clipped by the panel when the copy fills it */
  font-family: var(--font-display);
  font-size: clamp(120px, 12vw, 180px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 215, 0, 0.4);
  pointer-events: none;
  user-select: none;
}
.panel-body {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 720px;
  padding: clamp(24px, 3vw, 44px);
}
.panel-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.panel-index {
  color: var(--gold);
  font-size: 1.1rem;
  padding-right: 14px;
  border-right: 1px solid var(--gold-soft);
}
.panel-title {
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.panel-tagline {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #e2e2e2;
  max-width: 46ch;
  margin-bottom: 10px;
}
.panel-meta {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 26px;
}
.panel-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  padding: 0 4px 0 0;
  border-radius: 999px;
}
.play-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 0.9rem;
  padding-left: 3px;
  box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.1), 0 10px 30px -10px rgba(255, 215, 0, 0.55);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.play-btn:hover .play-ring {
  background: var(--gold);
  color: #000;
  transform: scale(1.06);
  box-shadow: 0 0 0 10px rgba(255, 215, 0, 0.12), var(--glow-md) rgba(255, 215, 0, 0.45);
}
.panel-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
}
.panel-price s { color: var(--text-muted); font-size: 0.9rem; flex-basis: 100%; }
.panel-price strong {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.currency { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); }

/* Expand on hover / focus, desaturate sibling */
@media (min-width: 901px) {
  .panel:focus-within .panel-bg { filter: brightness(0.68) saturate(1); transform: scale(1.06); }
  .hero-split:has(.panel:focus-within) .panel:not(:focus-within) .panel-bg { filter: grayscale(1) brightness(0.32); }
}
@media (min-width: 901px) and (hover: hover) {
  .panel:hover .panel-bg { filter: brightness(0.68) saturate(1); transform: scale(1.06); }
  .hero-split:has(.panel:hover) .panel:not(:hover) .panel-bg { filter: grayscale(1) brightness(0.32); }
}

/* Short desktop viewports (13–15" laptops): keep both bootcamp CTAs inside the first screen */
@media (min-width: 901px) and (max-height: 960px) {
  .hero-split { min-height: 0; }
  .panel-body { padding: clamp(20px, 2.4vw, 32px); }
}
/* Very short viewports (e.g. 1366×768 laptops with browser chrome ≈ 650px): tighten once more */
@media (min-width: 901px) and (max-height: 700px) {
  .panel-body { padding: 20px clamp(20px, 2.4vw, 32px); }
  .panel-tagline { margin-bottom: 10px; }
}
/* EN strings are wider: a tighter foot + slightly smaller price keep play + price + CTA on one row in both panels */
html:lang(en) .panel-foot { gap: 14px 16px; }
html:lang(en) .panel-price strong { font-size: 2.1rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px 56px;
  align-items: end;
  padding-top: 28px;
  border-top: 1px solid var(--gold-soft);
  margin-bottom: clamp(40px, 5vw, 64px);
}
/* Title first, English label to its right on the same baseline */
.sec-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; }
.sec-heading .eyebrow { font-size: 0.9rem; color: var(--text-muted); white-space: nowrap; }
.sec-title {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.sec-lede {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 44ch;
  overflow-wrap: anywhere;
}

/* ---------- Course cards ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
    linear-gradient(160deg, rgba(255, 215, 0, 0.35), rgba(255, 255, 255, 0.05) 38%, rgba(255, 255, 255, 0.04) 70%, rgba(255, 215, 0, 0.18)) border-box;
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-height) + 16px);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), var(--glow-lg) rgba(255, 215, 0, 0.08);
}

/* Video facade: thumbnail + glowing gold play → iframe on click */
.facade {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
}
.facade img,
.facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.facade img {
  filter: brightness(0.72);
  transition: filter var(--transition-slow), transform var(--transition-slow);
}
.facade:hover img { filter: brightness(0.85); transform: scale(1.03); }
.facade.is-playing { cursor: default; }
.facade-label {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: #fff;
  padding: 6px 12px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.facade-play {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 2;
  width: 68px; height: 68px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  background: var(--gold-gradient);
  color: #000;
  font-size: 1.2rem;
  padding-left: 4px;
  box-shadow: 0 14px 40px -8px rgba(255, 215, 0, 0.6), 0 0 0 8px rgba(255, 215, 0, 0.16);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.facade:hover .facade-play,
.facade-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow: 0 18px 50px -8px rgba(255, 215, 0, 0.75), 0 0 0 14px rgba(255, 215, 0, 0.12);
}
.facade-play:focus-visible { outline-offset: 6px; }

.video-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px clamp(24px, 3vw, 36px) 0;
}
.video-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--glass);
}
.video-tabs button {
  min-height: var(--control);
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.video-tabs button:hover { color: #fff; }
.video-tabs button[aria-pressed="true"] { background: #fff; color: #000; }
.video-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.video-hint i { color: var(--gold); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  flex: 1;
}
.card-eyebrow { font-size: 0.9rem; }
.card-title {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-top: -8px;
}
/* Gold-outlined key chip: the single deciding fact */
.key-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
.card-tagline { color: var(--text-body); line-height: 1.7; font-size: 0.98rem; }

.stat-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stat-chips li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-strong);
  border: 1px solid var(--hairline);
  min-height: 56px;
  white-space: nowrap;
}
.chip-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.chip-label { font-size: 0.82rem; color: var(--text-muted); line-height: 1.35; white-space: normal; min-width: 0; } /* long EN labels wrap inside the chip instead of overflowing */

.fit-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-top: 4px;
  margin-bottom: -6px;
}
.fit-list { display: flex; flex-direction: column; gap: 10px; }
.fit-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
}
.fit-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.card-instructors { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
.avatar-stack { display: flex; flex-shrink: 0; }
.avatar-stack img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a1a;
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 0 0 1px var(--gold-soft);
}
.avatar-stack img + img { margin-left: -12px; }
.instructor-names { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.instructor-names .names { font-size: 0.92rem; font-weight: 600; color: #fff; line-height: 1.4; }
.instructor-names .roles { font-size: 0.78rem; color: var(--text-muted); line-height: 1.45; }

.card-foot {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.price { display: flex; flex-direction: column; gap: 6px; }
.price-was { font-size: 0.85rem; color: var(--text-muted); }
.price-was s { margin-left: 4px; }
.price-now { display: flex; align-items: baseline; gap: 8px; }
.price-now strong {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.price-now small { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); }
.price-note { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--text-muted); }
.price-note i { color: var(--gold); font-size: 0.8rem; }
.card-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Compare: quick-pick tiles ---------- */
.decide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.decide-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--glass);
  transition: border-color var(--transition-normal), background var(--transition-normal), transform var(--transition-normal);
}
.decide-tile:hover { border-color: var(--gold-soft); background: var(--glass-strong); transform: translateY(-2px); }
.decide-if { font-size: 1.5rem; color: var(--gold); }
.decide-q { font-size: 0.95rem; line-height: 1.65; color: var(--text-body); }
.decide-a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}
.decide-a .arrow { transition: transform var(--transition-fast); }
.decide-tile:hover .decide-a .arrow { transform: translateX(4px); }

/* ---------- Compare: table ---------- */
.table-wrap {
  position: relative; /* contains the absolute .visually-hidden spans */
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--glass);
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}
.compare-table thead th {
  text-align: left;
  vertical-align: bottom;
  padding: 24px 24px 18px;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--gold-soft);
  background: rgba(255, 215, 0, 0.03);
}
.compare-table thead th:first-child { width: 190px; }
.th-index {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  vertical-align: top;
  padding: 18px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  box-shadow: 1px 0 0 var(--hairline);
}
.compare-table tbody td {
  vertical-align: top;
  padding: 18px 24px;
  color: var(--text-body);
  line-height: 1.65;
  width: 41%;
}
.compare-table tbody th,
.compare-table tbody td { border-top: 1px solid var(--hairline); }
.compare-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.compare-table tbody td:nth-child(2) { border-right: 1px solid var(--hairline); }
.compare-table td strong { color: #fff; font-weight: 700; }
.compare-table .group-row th {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 24px;
  background: #0c0b06;
}
.compare-table .group-row td { padding: 12px 24px; background: rgba(255, 215, 0, 0.04); }
.compare-table .check-row th,
.compare-table .check-row td { padding-top: 12px; padding-bottom: 12px; }
.check {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.75rem;
  border: 1px solid var(--gold-soft);
}
.td-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.td-price strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.td-price small { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); }
.td-price s { color: var(--text-muted); font-size: 0.85rem; margin-left: 4px; }
.td-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.cell-label { display: none; }
.pull-quote {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--gold);
}
.pull-quote p {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.inst-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}
.inst-card:hover { border-color: var(--gold-soft); transform: translateY(-2px); box-shadow: var(--glow-lg) rgba(255, 215, 0, 0.06); }
.inst-head { display: flex; gap: 20px; align-items: flex-start; padding-right: 44px; } /* avatars share one top edge across the three cards */
.inst-avatar {
  width: 96px; height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a1a;
  box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--gold-soft);
}
.inst-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.inst-role { font-size: 0.88rem; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.inst-bio { display: flex; flex-direction: column; gap: 10px; }
.inst-bio li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}
.inst-bio li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 8px; height: 1px;
  background: var(--gold);
}
.logo-row { display: flex; align-items: center; gap: 10px; margin-top: -4px; }
.logo-row li:not(.logo-plain) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
}
.logo-row img { width: 22px; height: auto; }
.inst-link {
  position: absolute;
  top: 28px; right: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control); height: var(--control);
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--text-body);
  font-size: 1.05rem;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.inst-link:hover { color: var(--gold); border-color: var(--gold-soft); background: var(--gold-dim); }

/* ---------- FAQ (animated grid rows) ---------- */
/* Two columns: heading + contact on the left, the accordion fills the rest */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 40px 72px;
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid var(--gold-soft);
}
.faq-aside {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.text-link { color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: var(--gold); }
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q { font-size: inherit; }
.faq-btn {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  transition: color var(--transition-fast);
}
.faq-btn:hover { color: var(--gold); }
.faq-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-size: 0.8rem;
  transition: transform var(--transition-normal), background var(--transition-fast), color var(--transition-fast);
}
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--gold); color: #000; }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.35s var(--ease), visibility 0.35s;
}
.faq-a.is-open { grid-template-rows: 1fr; visibility: visible; }
.faq-a > div { overflow: hidden; min-height: 0; }
.faq-a p {
  padding: 0 4px 24px;
  max-width: 72ch;
  color: var(--text-body);
  line-height: 1.8;
  font-size: 0.97rem;
  overflow-wrap: anywhere;
}

/* ---------- Community ---------- */
.community {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-secondary);
}
.community-watermark {
  position: absolute;
  right: -1%;
  bottom: -8%;
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 320px);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 215, 0, 0.18);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.community-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.community .eyebrow { margin-bottom: 16px; }
.community-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.community-lede { color: var(--text-muted); line-height: 1.75; max-width: 56ch; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 28px; background: #000; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
}
.footer-brand .brand img { width: 36px; height: 36px; }
.footer-brand .brand-text { font-size: 1.25rem; }
.footer-tagline { margin-top: 16px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; max-width: 40ch; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control);
  color: var(--text-body);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  overflow-wrap: anywhere;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-pay { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.footer-pay img { height: 22px; width: auto; opacity: 0.85; }
.footer-copy { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.footer-made::before { content: "·"; margin-right: 10px; color: var(--gold-soft); }

/* ---------- Floating tab (desktop) ---------- */
.float-tab {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 90;
  writing-mode: vertical-rl;
  padding: 18px 12px;
  background: var(--gold-gradient);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  border-radius: var(--floating-btn-radius);
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.4);
  transform: translate(110%, -50%);
  visibility: hidden; /* off-screen state is also unfocusable */
  transition: transform var(--transition-normal), visibility 0s linear var(--transition-normal);
}
.float-tab.is-visible { transform: translate(0, -50%); visibility: visible; transition: transform var(--transition-normal), visibility 0s; }
.float-tab:hover { transform: translate(-4px, -50%); }

/* ---------- Mobile sticky bar (≤900px) ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 6px var(--gutter) calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--gold-soft);
  transform: translateY(110%);
  visibility: hidden; /* off-screen state is also unfocusable */
  transition: transform var(--transition-normal), visibility 0s linear var(--transition-normal);
}
.mobile-bar.is-visible { transform: none; visibility: visible; transition: transform var(--transition-normal), visibility 0s; }
.mobile-bar a {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--control);
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.mobile-bar a:hover { background: var(--gold-dim); border-color: var(--gold); }

/* ---------- Lightbox (<dialog>) ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 92vw);
  max-height: 92vh;
  color: #fff;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox-body { display: flex; align-items: center; justify-content: center; }
.lightbox-body img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  width: auto; height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-video {
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-close {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 2;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--gold-soft);
  color: #fff;
  font-size: 1.1rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.lightbox-close:hover { background: var(--gold); color: #000; }

@media (max-width: 1023px) {
  .course-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-chips li { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Nav collapses to the hamburger up to 1000px: the EN link set does not fit the desktop bar below that */
@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .nav-drawer {
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: #000;
    border-bottom: 1px solid var(--gold-soft);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .site-header.is-open { background: #000; }
  .site-header.is-open .nav-drawer { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: flex; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--hairline); }
  .nav-links a::after { display: none; }
  .nav-tools { justify-content: space-between; padding-top: 20px; }
}

@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .decide { grid-template-columns: 1fr; gap: 12px; }
  .community-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero { min-height: 0; }
  .hero-split { flex-direction: column; min-height: 0; }
  .panel { min-height: 62vh; min-height: 62svh; flex: none; }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--gold-soft); }
  .panel-body { max-width: none; padding: 28px var(--gutter) 32px; }
  .float-tab { display: none; }
  .mobile-bar { display: flex; }
}

@media (max-width: 768px) {
  /* Stacked comparison table: no horizontal scrolling */
  .table-wrap { overflow: visible; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto; }
  .compare-table tbody tr { padding: 6px 0 10px; border-top: 1px solid var(--hairline); }
  .compare-table tbody tr:first-child { border-top: 0; }
  .compare-table tbody th {
    position: static;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 14px 18px 2px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.78rem;
  }
  .compare-table tbody td { border: 0; padding: 8px 18px 6px; width: auto; }
  .compare-table tbody tr:hover td { background: transparent; }
  .cell-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
  }
  .compare-table .group-row { padding: 0; }
  .compare-table .group-row th { padding: 12px 18px; background: #0c0b06; }
  .compare-table .group-row td { display: none; }
  .compare-table .check-row { display: flex; flex-wrap: wrap; align-items: center; padding: 4px 0; }
  .compare-table .check-row th { flex: 1 1 100%; text-transform: none; letter-spacing: 0; font-size: 0.9rem; color: var(--text-body); padding: 10px 18px 4px; }
  .compare-table .check-row td { flex: 1 1 0; display: flex; align-items: center; gap: 10px; padding: 4px 18px 8px; }
  .compare-table .check-row .cell-label { margin: 0; }
  .compare-table .check-row .check { order: -1; }
  .td-ctas .btn { flex: 1 1 auto; }
}

@media (max-width: 767px) { /* row-layout bases must not become heights */
  .panel-bg { object-position: center 25%; }
  .panel-watermark { font-size: 110px; top: 14px; }
  .panel-foot { gap: 16px 22px; }
  .panel-cta { flex: 1 1 100%; }
  .stat-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inst-link { top: 22px; right: 22px; }
  .card-ctas { width: 100%; }
  .card-ctas .btn { flex: 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-copy { flex-direction: column; gap: 2px; }
  .footer-made::before { display: none; }
}

@media (max-width: 599px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .panel-title { font-size: 1.7rem; }
  .panel-price strong { font-size: 2.1rem; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .faq-btn { font-size: 1rem; padding: 18px 2px; }
  .inst-head { flex-direction: column; align-items: flex-start; gap: 16px; padding-right: 0; }
  .inst-avatar { width: 80px; height: 80px; }
  .video-switch { justify-content: center; }
}

@media (max-width: 479px) { /* drop third eyebrow segment */
  .key-chip { white-space: normal; }
}

@media (max-width: 420px) {
  .brand-text { font-size: 1.15rem; }
  .stat-chips { gap: 8px; }
  .stat-chips li { padding: 10px 12px; }
  .chip-num { font-size: 1.6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; /* motion off for everything, incl. glow drift */
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  body::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .panel:hover .panel-bg, .panel:focus-within .panel-bg { transform: none; }
  .btn:hover, .btn:hover .arrow, .decide-tile:hover .decide-a .arrow, .facade:hover img { transform: none; }
}

/* ---------- Instructors: three equal cards ---------- */
.inst-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1023px) {
  .inst-grid { grid-template-columns: 1fr; }
}

/* ---------- 學員怎麼說: balanced masonry ---------- */
.proof-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch; /* every column is as tall as the tallest one… */
}
.proof-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.proof-col > .proof-item:last-child { flex: 1 0 auto; } /* …and its last card fills the difference, so the bottoms line up */
.proof-wall.is-measuring .proof-col > .proof-item:last-child { flex-grow: 0; } /* JS measures natural heights before balancing */
.proof-pool[hidden] { display: none; }
.proof-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: #fff; /* every screenshot is light, so any fill reads as its own padding */
  overflow: hidden;
  text-align: left;
  cursor: zoom-in;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}
.proof-item[hidden] { display: none; }
.proof-item:hover { border-color: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.proof-item:focus-visible { outline-offset: -3px; }
.proof-item img { display: block; width: 100%; height: auto; }
.proof-caption {
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-top: 1px solid var(--hairline);
}
.proof-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.proof-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.proof-more-icon { font-size: 0.75em; transition: transform var(--transition-fast); }
.proof-more[aria-expanded="true"] .proof-more-icon { transform: rotate(180deg); }
@media (max-width: 1023px) {
  .proof-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .proof-wall { grid-template-columns: 1fr; gap: 14px; }
  .proof-col { gap: 14px; }
}
/* 1024–1279: three cards are narrow, so stack the avatar above the name/role */
@media (min-width: 1024px) and (max-width: 1279px) {
  .inst-head { flex-direction: column; align-items: flex-start; gap: 14px; padding-right: 0; }
  .inst-avatar { width: 80px; height: 80px; }
}

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq-aside { position: static; }
}
