:root {
  --bg-color: var(--color-bg-grad-1, #0d0d0d);
  --fg-color: var(--color-fg, #f0f0f0);
  --accent: var(--color-accent, #CCFF00); /* Neon Yellow/Green */
  --font-en: var(--typo-body-font, 'Inter', sans-serif);
  --font-tc: var(--typo-heading-font, 'Noto Sans TC', sans-serif);
  --site-content-max: 1200px;
  --site-gutter: 2rem;
}

/* Main sections share one content width and responsive outer gutter. */
@media (max-width: 768px) {
  :root { --site-gutter: 1.25rem; }
}

html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

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

body {
  background-color: var(--bg-color);
  color: var(--fg-color);
  font-family: var(--font-en);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 全域標題字型統一規範 */
h1, h2, h3, h4, h5, h6, .section-title {
  font-family: var(--font-tc), var(--font-en), sans-serif;
}


/* Navbar */
nav {
  /* Align navigation with the shared content width; keep its background full width. */
  --nav-inline-space: max(var(--site-gutter), calc((100% - var(--site-content-max)) / 2));
  position: fixed; top: 0; left: 0; width: 100%;
  padding: 1.8rem var(--nav-inline-space);
  display: flex; justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}
nav.nav-scrolled {
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem var(--nav-inline-space);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
nav.nav-hidden {
  transform: translateY(-100%);
}
.brand { font-weight: 900; font-size: 1.5rem; letter-spacing: 2px; display: flex; align-items: center; }
.brand-logo {
  height: 2.2rem;
  width: auto;
  display: block;
  filter: invert(1);
  transition: transform 0.3s ease;
}
.brand-logo:hover {
  transform: scale(1.05);
}
.nav-links {
  display: flex;
  gap: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  align-items: center;
  position: relative;
}
.nav-links a {
  white-space: nowrap;
  color: var(--fg-color, rgba(255, 255, 255, 0.7));
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.4rem 0;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent, #CCFF00) !important;
}
.nav-underline-bar {
  position: absolute;
  bottom: 0px;
  left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent-neon, #CCFF00), var(--color-accent, #fbbf24));
  border-radius: 1px;
  box-shadow: 0 0 3px var(--color-accent-neon, rgba(204, 255, 0, 0.4));
  pointer-events: none;
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.nav-menu-toggle { display: none; }
nav :is(a, button):focus-visible {
  outline: 2px solid var(--color-accent, #fbbf24);
  outline-offset: 4px;
}
nav:focus-within, nav.nav-menu-open { transform: translateY(0); }

@media (max-width: 1100px) {
  nav, nav.nav-scrolled {
    padding: 0.75rem var(--site-gutter);
    gap: 1rem;
  }
  nav .brand { flex-shrink: 0; }
  .nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-glass-border, rgba(255,255,255,0.28));
    border-radius: 999px;
    background: var(--color-bg-base, #08080a);
    color: var(--fg-color);
    font-family: var(--font-tc);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
  }
  .nav-menu-toggle:hover { border-color: var(--color-accent, #fbbf24); }
  .nav-menu-icon { position: relative; width: 18px; height: 14px; }
  .nav-menu-icon::before, .nav-menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
  }
  .nav-menu-icon::before { top: 3px; }
  .nav-menu-icon::after { bottom: 3px; }
  .nav-menu-open .nav-menu-icon::before { top: 6px; transform: rotate(45deg); }
  .nav-menu-open .nav-menu-icon::after { bottom: 6px; transform: rotate(-45deg); }
  nav.nav-menu-open { background: var(--color-bg-base, #08080a); }
  nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--site-gutter);
    right: var(--site-gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    max-height: calc(100vh - 5.5rem);
    max-height: calc(100dvh - 5.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem;
    border: 1px solid var(--color-glass-border, rgba(255,255,255,0.28));
    border-radius: 20px;
    background: var(--color-bg-base, #08080a);
    box-shadow: var(--effect-shadow-glass, 0 12px 32px rgba(0,0,0,0.35));
  }
  nav.nav-menu-open .nav-links { display: flex; }
  nav .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    flex-shrink: 0;
    padding: 0.625rem 0.75rem;
    border-radius: 10px;
    white-space: nowrap;
  }
  nav .nav-links a:is(:hover, :focus-visible, .active) {
    background: var(--color-glass-bg, rgba(255,255,255,0.12));
  }
  nav .nav-underline-bar { display: none; }
}

/* Common Layouts */
.section-header {
  margin-bottom: 5rem;
  max-width: 800px;
}
.section-title {
  font-size: 3.5rem;
  font-family: var(--font-tc);
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.2rem;
  color: #888;
  line-height: 1.6;
}






/* Course Modal Styles */
/* Closed dialogs must not leave invisible controls in the keyboard order. */
dialog.modal-overlay, dialog.lightbox-overlay, dialog.milestone-modal-backdrop {
  margin: 0;
  border: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  color: inherit;
}
dialog.modal-overlay:not([open]),
dialog.lightbox-overlay:not([open]),
dialog.milestone-modal-backdrop:not([open]) { display: none; }
dialog.milestone-modal-backdrop[open] { display: flex; }
dialog::backdrop { background: transparent; }
.dialog-focus-boundary {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

:is(button, a, input, select, textarea, video[controls]):focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 4px;
}

.v9-course-card { position: relative; }
.v9-course-card[hidden] { display: none !important; }
.v9-card-open {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.v9-card-open:focus-visible { outline-offset: -4px; }
.v9-course-card:focus-within .v9-btn-detail {
  opacity: 1;
  transform: translateY(0);
}
button.media-stack-card, button.milestone-story-media {
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: inherit;
}
button.media-stack-card { width: 100%; flex-shrink: 0; }
.media-stack-card:focus-visible .media-card-hover-overlay { opacity: 1; }

.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  z-index: 11000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 1200px;
  height: 85vh;
  border-radius: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0,0,0,0.8);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.modal-overlay.open .modal-content {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.modal-close:hover {
  background: var(--accent, #fbbf24);
  color: #000;
  border-color: var(--accent, #fbbf24);
  transform: scale(1.08);
}
.modal-body {
  padding: 3rem 3.5rem;
  overflow-y: auto;
  flex: 1;
}
.modal-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  padding-right: 3.5rem;
}
.modal-category {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.4rem;
}
.modal-title {
  font-size: 2.4rem;
  font-family: var(--font-tc);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

/* Detail Page Header (Full Width Top Row) */
.detail-page-header {
  text-align: center;
  margin-bottom: 2.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Detail Page 2-Column Split Layout (Left Column: Images Stack, Right Column: Text Flow) */
.detail-page-split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Column 1: Images Column (Left) */
.detail-col-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.col-media-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.col-media-header .media-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-tc);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 0;
  line-height: 1.2;
}
.media-hint {
  font-size: 0.85rem;
  color: #8899a6;
  font-weight: 400;
  padding-left: 1.2rem;
}

.media-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.media-stack-card {
  position: relative;
  background: #080a12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.media-stack-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent, #fbbf24);
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.25);
}
.media-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #04050a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-card-img-wrap img,
.media-card-img-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.media-stack-card:hover .media-card-img-wrap img,
.media-stack-card:hover .media-card-img-wrap video {
  transform: scale(1.04);
}
.media-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.media-stack-card:hover .media-card-hover-overlay {
  opacity: 1;
}
.media-card-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(0, 0, 0, 0.8);
  color: var(--accent, #fbbf24);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  z-index: 5;
}

/* Column 2: Text Content Column (Right) */
.detail-col-text {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}
.modal-header-inline {
  margin-bottom: 0.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}



.cta-section-block {
  margin-top: 1rem;
}
.cta-inner-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  background: radial-gradient(circle at 100% 100%, rgba(251, 191, 36, 0.08), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.cta-inner-box p {
  flex: 1 1 16rem;
  min-width: 0;
  font-size: 0.95rem;
  color: #a0aec0;
  margin: 0;
  line-height: 1.6;
}
.cta-inner-box .modal-cta-btn {
  flex: 0 1 auto;
  align-self: center;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin-top: 0;
}

/* Lightbox Fullscreen Overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.94);
  backdrop-filter: blur(25px);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-container {
  position: relative;
  width: 92%;
  max-width: 1280px;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrapper {
  max-width: 100%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img,
.lightbox-video {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.9);
  transition: opacity 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.lightbox-close:hover {
  background: var(--accent, #fbbf24);
  color: #000;
  border-color: var(--accent, #fbbf24);
  transform: scale(1.1);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}
.lightbox-nav:hover {
  background: var(--accent, #fbbf24);
  color: #000;
  border-color: var(--accent, #fbbf24);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.lightbox-counter .lb-current {
  color: var(--accent, #fbbf24);
}

.modal-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}
.modal-main-info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.modal-section h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.2rem;
  font-family: var(--font-tc);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.modal-section-content {
  color: #aaa;
  font-size: 1.05rem;
  line-height: 1.8;
}
.modal-section-content ul, .modal-section-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}
.modal-section-content li {
  margin-bottom: 0.8rem;
}
/* Syllabus Outline Card Hierarchy (3-Column Grid) */
.syllabus-outline-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: start;
}
.outline-chapter-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  transition: all 0.25s ease;
}
.outline-chapter-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}
.outline-chapter-header {
  margin-bottom: 0.6rem;
}
.outline-chapter-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent, #fbbf24);
  font-family: var(--font-tc);
  line-height: 1.4;
}
.outline-chapter-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.outline-chapter-items li {
  font-size: 0.92rem;
  color: #a0aec0;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.outline-dot {
  color: #718096;
  font-size: 0.85rem;
  line-height: 1.4;
  flex-shrink: 0;
}
.modal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.sidebar-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
}
.sidebar-block h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.2rem;
  font-family: var(--font-tc);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.8rem;
}
.sidebar-block div {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.7;
}
.sidebar-block.cta-block {
  border-color: rgba(204, 255, 0, 0.2);
  background: radial-gradient(circle at 100% 100%, rgba(204, 255, 0, 0.03), transparent 80%);
}
.sidebar-block.cta-block p {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.modal-cta-btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 1024px) {
  .detail-page-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .media-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 1rem;
  }
  .modal-content {
    height: 92vh;
    border-radius: 20px;
  }
  .modal-body {
    padding: 2rem 1.5rem;
  }
  .modal-header-inline {
    padding-right: 2.5rem;
    margin-bottom: 1rem;
  }
  .detail-page-header {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 1.2rem;
  }
  .modal-title {
    font-size: 1.8rem;
  }
  .media-stack {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .syllabus-outline-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* 品牌底蘊 (Origin Section) — 高對比度、呼吸微動與滾輪發光動線歷史時間軸 */
.origin-section-wrapper {
  position: relative;
  overflow: clip;
  background-color: #0b0d14; /* 純暗黑深燧石灰 */
}

/* 浮動呼吸微動光暈珠 (Full Vivid Glowing Light Orbs) */
.origin-glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}
.origin-glow-orb.orb-1 {
  top: 5%; left: 8%;
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.38) 0%, rgba(249, 115, 22, 0.15) 50%, transparent 75%);
  filter: blur(60px);
}
.origin-glow-orb.orb-2 {
  top: 35%; right: 5%;
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.42) 0%, rgba(79, 70, 229, 0.2) 50%, transparent 75%);
  filter: blur(70px);
}
.origin-glow-orb.orb-3 {
  bottom: 8%; left: 30%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(219, 39, 119, 0.38) 0%, rgba(126, 34, 206, 0.15) 50%, transparent 75%);
  filter: blur(60px);
}
.origin-glow-orb.orb-4 {
  top: 60%; left: 12%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(29, 78, 216, 0.12) 50%, transparent 75%);
  filter: blur(75px);
}

.origin-history-section {
  position: relative;
  max-width: var(--site-content-max);
  margin: 0 auto;
  padding: 0;
  border-top: none;
  background: transparent !important; /* 確保背景繽紛光暈完全透出 */
  z-index: 2;
}

.origin-header {
  max-width: var(--site-content-max);
  margin: 0 auto 2.8rem auto;
  text-align: center;
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 0;
}

.origin-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  max-width: var(--site-content-max);
  margin: 0 auto;
}

.origin-left {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* 高對比沉浸玻璃卡片 */
.glass-card {
  background: rgba(18, 24, 38, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.4) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 25px rgba(251, 191, 36, 0.15) !important;
}

.origin-card-title {
  font-size: 2.2rem;
  font-family: var(--font-tc);
  font-weight: 900;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--color-accent, #fbbf24);
  padding-left: 1.2rem;
  color: #ffffff !important; /* 強調純白高對比 */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.founder-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fbbf24 !important;
  margin-left: 10px;
  display: inline-block;
}

.credentials-list {
  list-style: none;
  padding: 0; margin: 0;
}

.credentials-list li {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-weight: 600;
  position: relative;
  padding-left: 2rem;
  color: #f8fafc !important; /* 清晰高對比白 */
  line-height: 1.6;
}

.credentials-list li::before {
  content: '✦';
  font-size: 0.9rem;
  position: absolute;
  left: 0; top: 0.1rem;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
}

.story-p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #e2e8f0 !important; /* 高清晰 Slate 白，確保徹底看清 */
  margin-bottom: 1.5rem;
}

.story-p:last-child {
  margin-bottom: 0;
}

/* 右側時間軸領域 */
.origin-right {
  position: relative;
}

.timeline-container {
  position: relative;
  padding-left: 3.5rem;
  margin-top: 1rem;
}

/* 明顯的時間軸底軌 Track */
.timeline-track {
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  z-index: 1;
}

/* 隨著滾輪產生的動態發光滾動進度條 */
.timeline-progress-line {
  position: absolute;
  left: 15px;
  top: 10px;
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, #fbbf24 0%, #f97316 50%, #db2777 100%);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.8), 0 0 12px rgba(249, 115, 22, 0.5);
  z-index: 2;
  will-change: height;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  position: relative;
  z-index: 3;
}

.timeline-item {
  position: relative;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* 滾輪到達時自動發光的節點 Dot */
.timeline-node-dot {
  position: absolute;
  left: -3.5rem;
  top: 2rem;
  transform: translate(10px, -50%) scale(1);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0b0d14;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  z-index: 5;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              border-color 0.4s ease, 
              background 0.4s ease, 
              box-shadow 0.4s ease;
}

.timeline-node-dot.active {
  background: #fbbf24;
  border-color: #ffffff;
  box-shadow: 0 0 8px #fbbf24, 0 0 18px rgba(249, 115, 22, 0.6);
  transform: translate(10px, -50%) scale(1.25);
}

.timeline-content-card {
  padding: 1.8rem 2.2rem;
}

.timeline-year {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
}

.timeline-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #e2e8f0 !important; /* 清晰高對比內文 */
  margin: 0;
}

.origin-left,
.origin-right {
  min-width: 0;
}

.credentials-list li,
.credentials-list li a,
.story-p,
.timeline-desc {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 992px) {
  .origin-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .origin-section-wrapper .glass-card {
    padding: 1.6rem 1.35rem;
    border-radius: 18px;
  }
  .origin-card-title {
    font-size: 1.65rem;
    padding-left: 0.9rem;
    margin-bottom: 1.15rem;
  }
  .founder-subtitle {
    display: block;
    margin-left: 0;
    margin-top: 0.3rem;
    font-size: 1rem;
  }
  .credentials-list li {
    font-size: 1rem;
    padding-left: 1.5rem;
  }
  .story-p,
  .timeline-desc {
    font-size: 1rem;
    line-height: 1.75;
  }
  .timeline-container {
    padding-left: 2.25rem;
  }
  .timeline-track,
  .timeline-progress-line {
    left: 8px;
  }
  .timeline-node-dot {
    left: -2.25rem;
    transform: translate(3px, -50%) scale(1);
  }
  .timeline-node-dot.active {
    transform: translate(3px, -50%) scale(1.25);
  }
}



/* Massive Footer / Contact Section — 沉浸式呼吸光暈、高對比玻璃表單與豐富微互動 */
.footer {
  padding: 4.5rem var(--site-gutter) 2.5rem;
  background-color: #090b12; /* 深燧石夜黑 */
  position: relative;
  overflow: clip;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 聯絡我們浮動呼吸光暈珠 (Contact Ambient Glow Orbs) */
.contact-glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.5;
}
.contact-glow-orb.orb-1 {
  top: 15%; left: 5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28) 0%, rgba(249, 115, 22, 0.12) 50%, transparent 75%);
  filter: blur(70px);
}
.contact-glow-orb.orb-2 {
  bottom: 10%; right: 5%;
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(126, 34, 206, 0.32) 0%, rgba(219, 39, 119, 0.15) 50%, transparent 75%);
  filter: blur(80px);
}

.footer-bg-text {
  position: absolute; top: 54%; left: 50%; transform: translate(-50%, -50%);
  font-size: 22vw; font-weight: 900; color: rgba(255, 255, 255, 0.018);
  letter-spacing: 0.06em;
  white-space: nowrap; pointer-events: none;
  user-select: none;
  z-index: 1;
}

.contact-main-wrapper {
  width: 100%;
  max-width: var(--site-content-max);
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.contact-header-row {
  margin-bottom: 2.2rem;
  text-align: left;
}

#contact .contact-header-row {
  position: relative !important;
  top: auto !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.contact-header-row .section-title {
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-family: var(--font-tc);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.contact-header-row .contact-subheading {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #e2e8f0;
  margin-top: 0;
  margin-bottom: 0;
}

.contact-container {
  --contact-accent: #d6b66d;
  --contact-label: #cbd2df;
  font-family: var(--font-tc), var(--font-en), sans-serif;
  line-height: 1.6;
  display: grid;
  grid-template-columns: minmax(0, 28fr) minmax(0, 72fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: 100%;
  align-items: start;
  box-sizing: border-box;
  padding: clamp(1.5rem, 2.8vw, 2.2rem);
  background: radial-gradient(ellipse at top left, rgba(194, 139, 63, 0.1), transparent 42%),
    radial-gradient(ellipse at bottom right, rgba(118, 80, 157, 0.12), transparent 55%),
    linear-gradient(110deg, #24211f, #172334 48%, #211e32);
  border: 1px solid rgba(177, 173, 197, 0.24);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.contact-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-column-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.contact-left .contact-column-title { color: #e4c78f; }
.contact-right .contact-column-title { color: #c6c9ef; }

.company-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method-description {
  margin: 0 0 1.6rem;
  color: #aab6c8;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.6;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.info-icon-box {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--contact-accent);
  background: linear-gradient(145deg, rgba(214, 182, 109, 0.17), rgba(170, 119, 52, 0.05));
  border: 1px solid rgba(214, 182, 109, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon-box svg {
  width: 20px;
  height: 20px;
}

.info-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.info-label,
.contact-form-el .form-group label,
.contact-options summary {
  font-size: 0.88rem;
  color: var(--contact-label);
  letter-spacing: 0.025em;
  font-weight: 700;
  line-height: 1.5;
}

.info-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-top: 0.3rem;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.contact-info-row a { text-decoration: none; }
.contact-info-row .info-value { font-size: 0.95rem; }
.contact-info-row a:hover { color: var(--contact-accent); text-decoration: underline; text-underline-offset: 4px; }

.contact-right {
  position: relative;
  min-width: 0;
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid #647084;
}

.contact-divider-label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  padding: 0.5rem 0;
  color: #b9c3d2;
  background: #1d2330;
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-form-el {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

.contact-basic-fields,
.contact-message-fields {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.form-row, .form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

@media (max-width: 600px) {
  .form-row, .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.contact-options {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.contact-options summary {
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.65rem;
}
.contact-options summary::marker { color: var(--contact-accent); }
.contact-options summary:hover { color: var(--contact-accent); }
.contact-options:not([open]) summary { margin-bottom: 0; }
.contact-options-fields {
  display: grid;
  gap: 1rem;
}
.contact-requirement .contact-textarea { min-height: 240px; }

@media (max-width: 600px) {
  .contact-form-el { grid-template-columns: 1fr; }
  .contact-requirement .contact-textarea { min-height: 180px; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.contact-input, .contact-select, .contact-textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(108, 136, 180, 0.13), rgba(116, 105, 167, 0.09));
  border: 1px solid rgba(162, 177, 212, 0.25);
  border-radius: 12px;
  padding: 0.72rem 0.95rem;
  color: #ffffff;
  font-family: var(--font-tc), var(--font-en), sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-input::placeholder,
.contact-textarea::placeholder { color: #939eaf; opacity: 1; }

.contact-form-el :is(.contact-input, .contact-select, .contact-textarea):hover {
  border-color: rgba(170, 185, 210, 0.35);
}

.contact-form-el :is(.contact-input, .contact-select, .contact-textarea):focus {
  outline: none;
  background: rgba(255, 255, 255, 0.075);
  border-color: #c6a45b;
  box-shadow: none;
}

.contact-textarea {
  resize: vertical;
  min-height: 82px;
}

.select-wrapper {
  position: relative;
  width: 100%;
}
.select-wrapper::after {
  content: '▼';
  font-size: 0.75rem;
  color: #fbbf24;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.contact-select {
  appearance: none;
  width: 100%;
  padding-right: 2.3rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}
.contact-select option {
  background: #141824;
  color: #ffffff;
  padding: 10px;
}

/* 微互動：送出按鈕極致質感 */
.btn-submit {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #db2777 100%);
  color: #0b0d14;
  border: none;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-size: 0.95rem;
  align-self: flex-start;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, background 0.35s ease;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.15);
}

.btn-submit:hover {
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.28);
}

.btn-submit .btn-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}
.btn-submit:hover .btn-icon {
  transform: translateX(6px);
}

.btn-submit.submitted {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5) !important;
}

.btn-submit:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.contact-form-status {
  margin: 0;
  line-height: 1.7;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.contact-form-status:empty { display: none; }
.contact-form-status[data-state="success"] { color: #6ee7b7; }
.contact-form-status[data-state="failure"],
.contact-form-status[data-state="unknown"] { color: #fde68a; }
.contact-info-row a:focus-visible,
.contact-options summary:focus-visible,
.contact-form-el .btn-submit:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 4px;
}

/* 頁尾底部與返回頂部按鈕微互動 */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--site-content-max);
  width: 100%;
  margin: 3rem auto 0 auto;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  z-index: 3;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}

.footer-articles-link { max-width: 100%; }

.footer-bottom a:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 4px;
}

.contact-section-wrapper .copyright-text {
  font-family: var(--font-tc), var(--font-en), sans-serif;
  font-size: clamp(0.8rem, 1vw, 0.875rem);
  font-weight: 400;
  line-height: 1.6;
  color: #959ba8;
}

.scroll-up-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  min-height: 44px;
  text-decoration: none;
  cursor: pointer;
  color: #e2e8f0;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.scroll-up-btn:hover {
  color: #fbbf24;
  border-color: #fbbf24;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.2);
}

.scroll-up-btn .up-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.scroll-up-btn:hover .up-arrow {
  transform: translateY(-4px);
}

/* Theme Switcher Widget */
.theme-switcher-container {
  position: fixed;
  top: 1.8rem;
  right: 4rem;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: var(--color-glass-bg, rgba(255, 255, 255, 0.12));
  backdrop-filter: blur(var(--effect-blur-glass, 18px));
  -webkit-backdrop-filter: blur(var(--effect-blur-glass, 18px));
  border: 1px solid var(--color-glass-border, rgba(255, 255, 255, 0.28));
  box-shadow: var(--effect-shadow-glass);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-switcher-container:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.theme-switcher-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--fg-color);
  opacity: 0.7;
}

.theme-switcher-select {
  background: transparent;
  border: none;
  color: var(--fg-color);
  font-family: var(--font-tc);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: color 0.3s;
}

.theme-switcher-select:focus {
  color: var(--accent);
}

.theme-switcher-select option {
  background: #121212;
  color: #fff;
  font-family: var(--font-tc);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .theme-switcher-container {
    top: auto;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-glass-bg-strong, rgba(0, 0, 0, 0.7));
  }
}

/* ==========================================================================
   Sticky Stacking Cards Template Styling
   ========================================================================== */
.stack-cards-section {
  padding: 6rem 3rem;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.stack-header-row {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 35px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto 2.5rem auto;
  width: 100%;
  position: relative;
  top: auto;
  z-index: 10;
  background: transparent;
  padding: 1.2rem 0 1rem 0;
}

.stack-header-row .stack-heading {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-family: var(--font-tc);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0;
  white-space: nowrap;
  text-align: center;
}

.stack-header-row .stack-subheading {
  max-width: 820px;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
  margin-bottom: 0;
}



@media (max-width: 900px) {
  .stack-header-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    top: 0;
  }
}

.stack-cards-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.stack-cards-grid-single {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.stack-cards-sidebar {
  align-self: start;
  position: sticky;
  top: 230px;
}

.stack-sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stack-heading {
  font-size: 3.5rem;
  font-family: var(--font-tc);
  font-weight: 900;
  line-height: 1.2;
}

.stack-subheading {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.stack-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0;
}

.stack-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.9rem 1.4rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-tc);
  font-weight: 700;
  font-size: 1.02rem;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateX(6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.stack-nav-btn.active {
  background: rgba(0, 255, 102, 0.16);
  border: 1.5px solid #00ff66;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stack-nav-btn.active .stack-nav-tag {
  color: #00ff66;
  background: rgba(0, 255, 102, 0.18);
  border-color: rgba(0, 255, 102, 0.4);
}

.stack-nav-num {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, opacity 0.3s ease;
}

.stack-nav-btn.active .stack-nav-num {
  color: #00ff66;
  opacity: 1;
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

/* Reference-based Horizontal Stacking Cards */
.stacking-cards {
  display: flex;
  overflow: hidden;
  position: relative;
  height: 100vh;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  align-items: center;
  justify-content: center;
}

.stacking-cards-wrapper {
  margin-block: auto;
  width: 100%;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.stacking-cards-container {
  height: 100%;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stacking-cards-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.card-stack {
  --gap: 30px;
  display: flex;
  gap: var(--gap);
  height: 85vh;
  position: relative;
  width: 100%;
  margin-top: 3vh;
}

.stacking-cards .card {
  width: calc(100vw - calc(var(--gap) * 2));
  flex-shrink: 0;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease;
  background: var(--color-glass-bg, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(var(--effect-blur-glass, 18px));
  -webkit-backdrop-filter: blur(var(--effect-blur-glass, 18px));
  border: 1px solid var(--color-glass-border, rgba(255, 255, 255, 0.28));
  will-change: transform;
}

.stacking-cards .card:hover {
  border-color: #00ff66;
}

@media (min-width: 768px) {
  .stacking-cards .card {
    width: 90%; /* Each card takes up 90% of track width, enabling beautiful overlap with 50% width increase */
  }
}

.stacking-cards .card-inner {
  padding: 3rem 3.5rem;
  height: 100%;
  display: flex;
  align-items: center;
}

.stacking-cards .stack-card-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
  height: 100%;
  width: 100%;
}

.stacking-cards .stack-card-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stacking-cards .stack-card-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.stacking-cards .stack-card-order {
  font-size: 2rem;
  color: #00ff66;
  font-family: var(--font-en);
  font-weight: 700;
}

.stacking-cards .stack-card-title {
  font-size: 1.8rem;
  font-family: var(--font-tc);
  font-weight: 800;
  color: #ffffff;
}

.stacking-cards .stack-card-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.stacking-cards .stack-card-image-wrap {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stacking-cards .stack-card-image-wrap img,
.stacking-cards .stack-card-image-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stacking-cards .card:hover .stack-card-image-wrap img,
.stacking-cards .card:hover .stack-card-image-wrap video {
  transform: scale(1.06);
}

/* Mobile responsive fallback */
@media (max-width: 900px) {
  .stacking-cards {
    height: auto;
    padding: 6rem 2rem;
    display: block;
  }
  .stacking-cards-wrapper {
    height: auto;
    display: block;
  }
  .stacking-cards-container {
    height: auto;
    gap: 3rem;
  }
  .card-stack {
    height: auto;
    flex-direction: column;
    gap: 3rem;
  }
  .stacking-cards .card {
    width: 100% !important;
    height: auto !important;
    position: static !important;
    transform: none !important;
  }
  .stacking-cards .card-inner {
    padding: 2.5rem;
  }
  .stacking-cards .stack-card-inner,
  .stack-card-inner {
    padding: 1.5rem;
    gap: 1.2rem;
  }
  .stack-card-body {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .stack-card-header-split {
    flex-direction: column;
    gap: 0.8rem;
  }
  .stack-card-title, .stack-card-subtitle, .stack-card-order {
    white-space: normal;
  }
}
.stack-cards-centered-container {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.stack-cards-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.stack-cards-section .stack-card-item,
.stack-card-item {
  position: sticky;
  top: 95px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(12, 5, 30, 0.75), inset 0 1px 0 rgba(233, 213, 255, 0.35);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
  background: linear-gradient(135deg, rgba(24, 16, 56, 0.85) 0%, rgba(42, 14, 88, 0.88) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(192, 132, 252, 0.4);
  will-change: transform;
}

/* Staggered Sticky Top Offsets for Cascading Card Deck Effect */
.stack-cards-section .stack-card-item:nth-child(1),
.stack-card-item:nth-child(1) { top: 95px; }

.stack-cards-section .stack-card-item:nth-child(2),
.stack-card-item:nth-child(2) { top: 125px; }

.stack-cards-section .stack-card-item:nth-child(3),
.stack-card-item:nth-child(3) { top: 155px; }

.stack-cards-section .stack-card-item:nth-child(4),
.stack-card-item:nth-child(4) { top: 185px; }

.stack-cards-section .stack-card-item:nth-child(5),
.stack-card-item:nth-child(5) { top: 215px; }

.stack-card-item:hover {
  border-color: #c084fc;
}

.stack-card-inner {
  position: relative;
  z-index: 1;
  padding: 2.2rem 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stack-card-header-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.2rem;
  border-bottom: 1.5px solid rgba(192, 132, 252, 0.25);
  width: 100%;
}

.stack-card-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.2rem;
  align-items: start;
  width: 100%;
}

.stack-card-body-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.stack-card-header-row1 {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.stack-card-header-row2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
}

.stack-card-combined-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(192, 132, 252, 0.16);
  border: 1.5px solid rgba(192, 132, 252, 0.45);
  padding: 0.38rem 1.25rem;
  border-radius: 24px;
  white-space: nowrap;
  letter-spacing: 0.03em;
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.2);
}

.stack-card-combined-tag .stack-card-year {
  font-family: var(--font-en);
  font-size: 1.55rem;
  font-weight: 900;
  color: #f3e8ff;
  background: none;
  border: none;
  padding: 0;
}

.stack-card-combined-tag .stack-card-tag-divider {
  font-size: 1.3rem;
  color: rgba(192, 132, 252, 0.5);
  margin: 0 0.2rem;
}

.stack-card-combined-tag .stack-card-tag-label {
  font-family: var(--font-tc);
  font-size: 1.55rem;
  font-weight: 900;
  color: #e9d5ff;
}

.stack-card-company-badge {
  font-family: var(--font-tc);
  font-size: 1.85rem;
  font-weight: 900;
  color: #fde047;
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.3);
  line-height: 1.25;
}

.stack-card-title {
  font-size: 1.85rem;
  font-family: var(--font-tc);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.stack-card-description {
  font-size: 1.02rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.7;
}

.stack-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  margin-top: 0.4rem;
  border-top: none;
  padding-top: 0;
}

.stack-card-result-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 0.2rem 0.7rem;
  border-radius: 16px;
}

.stack-card-action {
  margin-top: 1rem;
}

.stack-card-cta-btn {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(245, 158, 11, 0.28) 100%);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde047;
  font-family: var(--font-tc);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-card-cta-btn:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35) 0%, rgba(245, 158, 11, 0.5) 100%);
  border-color: rgba(251, 191, 36, 0.8);
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(251, 191, 36, 0.35);
}

/* Milestone Case Modal Backdrop & Container */
.milestone-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 25, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.milestone-modal-backdrop.active {
  opacity: 1;
}

.milestone-modal-container {
  background: linear-gradient(135deg, rgba(22, 14, 50, 0.96) 0%, rgba(38, 14, 78, 0.96) 100%);
  border: 1.5px solid rgba(192, 132, 252, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(233, 213, 255, 0.3);
  border-radius: 24px;
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2.2rem;
  color: #ffffff;
}

.milestone-modal-backdrop.active .milestone-modal-container {
  transform: scale(1);
}

.milestone-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.milestone-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.milestone-modal-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.milestone-modal-badge {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 800;
  color: #c084fc;
  background: rgba(192, 132, 252, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.35);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
}

.milestone-modal-badge.subtitle {
  font-family: var(--font-tc);
  color: #fde047;
  background: rgba(253, 224, 71, 0.12);
  border-color: rgba(253, 224, 71, 0.35);
}

.milestone-modal-badge.tag {
  font-family: var(--font-tc);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.milestone-modal-title {
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  font-weight: 900;
  font-family: var(--font-tc);
  line-height: 1.6;
  padding-right: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.milestone-modal-section {
  margin-bottom: 1.5rem;
}

.milestone-modal-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-tc);
  color: #fde047;
  margin-bottom: 0.6rem;
}

.milestone-modal-text {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

.milestone-modal-text + .milestone-modal-text {
  margin-top: 1rem;
}

.milestone-modal-gallery {
  display: grid;
  gap: 1.2rem;
  margin-top: 1rem;
}

.milestone-modal-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #080b12;
}

.milestone-modal-figure :is(img, video) {
  display: block;
  width: 100%;
}

.milestone-modal-figure video {
  max-height: 60vh;
}

.milestone-modal-figure figcaption {
  padding: 0.6rem 0.8rem;
  color: #aab6c8;
  font-size: 0.85rem;
  line-height: 1.6;
}

.milestone-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.milestone-modal-list {
  padding-left: 1.2rem;
  margin: 0;
}

.milestone-modal-list li {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.milestone-modal-results-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.milestone-modal-result-pill {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .milestone-modal-grid {
    grid-template-columns: 1fr;
  }
}

.stack-detail-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stack-detail-section:last-child {
  border-left: 1.5px dashed rgba(192, 132, 252, 0.22);
  padding-left: 1.8rem;
}

.stack-detail-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.stack-detail-text {
  font-size: 0.98rem;
  color: #f8fafc;
  line-height: 1.6;
}

.stack-detail-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stack-detail-list li {
  font-size: 0.98rem;
  color: #f8fafc;
  line-height: 1.55;
  position: relative;
  padding-left: 1.2rem;
}

.stack-detail-list li::before {
  content: "•";
  color: rgba(255, 255, 255, 0.4);
  position: absolute;
  left: 0.3rem;
  top: 0;
}

.stack-detail-list.highlight li::before {
  content: "✓";
  color: #00ff66;
  font-weight: 900;
}

.stack-card-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
}

.stack-card-image-wrap img,
.stack-card-image-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-card-item:hover .stack-card-image-wrap img,
.stack-card-item:hover .stack-card-image-wrap video {
  transform: scale(1.06);
}

/* Gallery Styles */
.stack-gallery-wrap {
  position: relative;
}

.stack-gallery-track {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.stack-gallery-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stack-gallery-item.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.stack-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Arrows */
.stack-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stack-gallery-arrow:hover:not(:disabled) {
  background: #00ff66;
  border-color: #00ff66;
  color: #000000;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}

.stack-gallery-arrow:disabled {
  opacity: 0;
  cursor: not-allowed;
  pointer-events: none;
}

.stack-gallery-arrow.prev {
  left: 15px;
}

.stack-gallery-arrow.next {
  right: 15px;
}

.stack-gallery-arrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  display: block;
}

.stack-gallery-arrow.prev::before {
  transform: rotate(-45deg) translate(2px, 2px);
}

.stack-gallery-arrow.next::before {
  transform: rotate(135deg) translate(2px, -2px);
}

/* Gallery Dots */
.stack-gallery-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stack-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.stack-gallery-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.stack-gallery-dot.active {
  background: #00ff66;
  width: 20px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

/* Responsive Gallery for Mobile (Scroll Snap) */
@media (max-width: 900px) {
  .stack-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
  }

  .stack-gallery-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
  }

  .stack-gallery-item {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: auto;
    pointer-events: auto;
    scroll-snap-align: start;
    transition: none; /* Let scroll-snap handle the transition */
  }

  .stack-gallery-arrow {
    display: none; /* Hide arrows on mobile */
  }
}

.stack-cards-spacer {
  height: 35vh;
}

@media (max-width: 900px) {
  .stack-cards-section {
    padding: 6rem 2rem;
  }
  .stack-cards-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stack-cards-sidebar {
    position: static;
  }
  .stack-nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .stack-nav-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  .stack-card-item {
    position: static; /* Disable sticky stacking on mobile */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  .stack-card-inner {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    gap: 2.5rem;
    min-height: auto;
  }
  .stack-cards-list {
    gap: 3rem;
  }
  .stack-cards-spacer {
    display: none;
  }
  .stack-card-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
  }
  .stack-detail-section:nth-child(3) {
    grid-column: span 1;
  }
}

/* Multi-select filter checkbox tags */
.course-filter-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-glass-border, rgba(255, 255, 255, 0.15));
  background: var(--color-glass-bg, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(var(--effect-blur-glass, 12px));
  -webkit-backdrop-filter: blur(var(--effect-blur-glass, 12px));
  transition: all 0.3s ease;
  overflow: hidden;
  user-select: none;
}
.course-filter-tag:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
}
.course-filter-tag input {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}
.course-filter-tag .checked-label {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent, #fbbf24);
  color: #0d0b26;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.35);
}
.course-filter-tag input:checked + .checked-label {
  opacity: 1;
}

/* Courses Empty State */
.courses-empty-state {
  grid-column: 1 / -1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  border-radius: 24px;
  background: var(--color-glass-bg-strong, rgba(255, 255, 255, 0.02));
  border: 1px dashed rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(var(--effect-blur-glass-strong, 18px));
  -webkit-backdrop-filter: blur(var(--effect-blur-glass-strong, 18px));
  max-width: 600px;
  margin: 3rem auto;
  will-change: transform, opacity;
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  color: var(--color-accent, #fbbf24);
  margin-bottom: 1.5rem;
  stroke-width: 1.5;
}
.empty-state-title {
  font-size: 1.5rem;
  font-family: var(--font-tc);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}
.empty-state-desc {
  font-size: 1rem;
  color: #888;
}

/* SplitText Showcase Section Styles */
.splittext-section {
  padding: 8rem 4rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.splittext-container {
  width: 100%;
  max-width: 1200px;
  padding: 4.5rem;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.splittext-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.splittext-heading {
  font-size: 2.8rem;
  font-family: var(--font-tc);
  font-weight: 900;
  line-height: 1.3;
}

.splittext-subheading {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.6rem;
  line-height: 1.6;
}

.splittext-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.splittext-btn {
  padding: 1.1rem 2.2rem;
  font-size: 1rem;
  font-family: var(--font-en);
  font-weight: 700;
  color: #fff;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.splittext-btn:hover {
  transform: translateY(-3px);
  border-color: #00ff66;
  box-shadow: 0 15px 30px rgba(0, 255, 102, 0.15);
}

.splittext-btn.active {
  background: #00ff66;
  color: #0c0a21;
  border-color: #00ff66;
  box-shadow: 0 15px 30px rgba(0, 255, 102, 0.35);
}

.splittext-showcase {
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.splittext-text {
  color: #dfdcff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-family: var(--font-tc);
  font-weight: 700;
  line-height: 1.4;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  perspective: 600px;
  transform-style: preserve-3d;
}

@media (max-width: 900px) {
  .splittext-section {
    padding: 6rem 2rem;
  }
  .splittext-container {
    padding: 3rem 2rem;
    gap: 2.5rem;
  }
  .splittext-heading {
    font-size: 2.2rem;
  }
  .splittext-btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
  }
}

/* Responsive styles for contact section columns */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-right {
    padding: 1.5rem 0 0;
    border-left: 0;
    border-top: 1px solid #647084;
  }
  .contact-divider-label {
    top: 0;
    left: 50%;
    padding: 0 0.75rem;
  }
  .contact-heading {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  .contact-section-wrapper { padding: 3rem var(--site-gutter) 2rem; }
  .contact-container { padding: 1.25rem; border-radius: 18px; }
  .contact-info-row .info-value { font-size: 0.95rem; }
  .contact-section-wrapper .footer-bottom {
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
  }
  .contact-section-wrapper .scroll-up-btn { white-space: nowrap; }
}

/* =============================================
   Infinite Card Slider Smooth (icss-)
   ============================================= */
.icss-section {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.icss-header {
  text-align: center;
  padding: 4rem 2rem 0;
  position: relative;
  z-index: 2;
}

.icss-gallery {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.icss-cards {
  position: absolute;
  width: 36rem;
  height: 30rem;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  list-style: none;
  padding: 0;
  margin: 0;
}

.icss-card {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 36rem;
  height: 30rem;
  position: absolute;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  top: 0;
  left: 0;
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.icss-card-content {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.65) 70%, rgba(0, 0, 0, 0) 100%);
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: left;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.icss-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent, #88ce02);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-family: var(--font-tc);
}

.icss-card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.icss-actions {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 10;
}

.icss-prev,
.icss-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--color-glass-border, rgba(255,255,255,0.28));
  background: var(--color-glass-bg, rgba(255,255,255,0.12));
  backdrop-filter: blur(var(--effect-blur-glass, 18px));
  -webkit-backdrop-filter: blur(var(--effect-blur-glass, 18px));
  color: var(--color-text, #fff);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.icss-prev:hover,
.icss-next:hover {
  background: var(--color-accent, #88ce02);
  color: var(--color-just-black, #000);
  border-color: var(--color-accent, #88ce02);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 20px rgba(136, 206, 2, 0.4);
}

.icss-drag-proxy {
  visibility: hidden;
  position: absolute;
  width: 1px;
  height: 1px;
}

@media (max-width: 900px) {
  .icss-cards {
    width: 16rem;
    height: 22rem;
    top: 42%;
  }
  .icss-card {
    width: 16rem;
    height: 22rem;
  }
  .icss-card-content {
    padding: 1.8rem 1rem 1rem;
  }
  .icss-card-title {
    font-size: 1.1rem;
  }
  .icss-card-desc {
    -webkit-line-clamp: 3;
  }
  .icss-actions {
    bottom: 35px;
  }
}

/* ============================================================
   TEMPLATE CSS — Consolidated from css/templates/
   以下 CSS 原先透過 loadCSS() 動態載入，現已整合至此
   ============================================================ */

/* === splittext_hero_intro.css === */
/* 前綴：shi（splittext_hero_intro 縮寫） */

.shi-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, #081226 0%, #040813 60%, #010307 100%) !important;
  position: relative;
  overflow: hidden;
}

.shi-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65vw 45vw at 50% 50%,
      rgba(37, 99, 235, 0.21) 0%,
      rgba(30, 58, 138, 0.09) 50%,
      transparent 75%
    );
  pointer-events: none;
  z-index: 1;
}

.shi-container {
  max-width: var(--site-content-max);
  width: calc(100% - 2 * var(--site-gutter));
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  perspective: 800px;
}

.shi-eyebrow {
  display: inline-block;
  font-family: var(--font-en), sans-serif;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 0.45em 1.3em;
  border-radius: 999px;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.12);
}

.shi-heading {
  font-family: var(--font-tc), var(--font-en), sans-serif;
  font-size: clamp(2.5rem, 8vw, 5.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff !important;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin: 0 0 1.5rem;
  white-space: pre-wrap;
  word-break: keep-all;
}

.shi-heading .char {
  display: inline-block;
}

.shi-subheading {
  font-family: var(--font-tc), var(--font-en), sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.8;
  color: rgba(241, 245, 249, 0.88);
  margin: 0 auto;
  max-width: 720px;
  perspective: 500px;
  overflow: visible;
}

.shi-subheading .line {
  display: block;
  overflow: hidden;
}

.shi-heading-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  min-height: 14rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
}

.shi-heading-group {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .shi-container {
    padding: 4rem 0;
  }
  .shi-heading {
    white-space: normal;
  }
  .shi-heading-wrapper {
    min-height: 10rem;
  }
}

.shi-cta-wrap {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.shi-cta-label {
  margin: 0;
  color: #fbbf24;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.shi-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  max-width: 100%;
}

.shi-cta-btn:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 5px;
}

@media (pointer: coarse) {
  .shi-cta-btn { min-height: 44px; }
}

.shi-cta-btn {
  --shine-start: -50%;
  --shine-end: 50%;
  --shine-tilt: -18deg;
  --shine-delay: 1.2s;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tc), var(--font-en), sans-serif;
  font-size: clamp(0.8rem, 1.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid #c89b3c;
  padding: 0.45em 1.4em;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.35s, border-color 0.35s,
    box-shadow 0.35s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.shi-cta-text {
  position: relative;
  z-index: 1;
}

/* Cycle: top 0.9s, bottom 0.9s, then a shared 0.8s pause. */
.shi-cta-btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 2;
  /* A translucent 4px champagne core keeps the sweep visible without a white flash. */
  /* Keep the highlight crisp without blur or blend modes. */
  background: linear-gradient(
    90deg,
    rgba(255, 220, 145, 0) calc(50% - 16px),
    rgba(255, 220, 145, 0.18) calc(50% - 10px),
    rgba(255, 234, 190, 0.42) calc(50% - 5px),
    rgba(255, 241, 213, 0.72) calc(50% - 2px),
    rgba(255, 241, 213, 0.72) calc(50% + 2px),
    rgba(255, 234, 190, 0.42) calc(50% + 5px),
    rgba(255, 220, 145, 0.18) calc(50% + 10px),
    rgba(255, 220, 145, 0) calc(50% + 16px)
  );
  pointer-events: none;
  opacity: 0;
  transform: translateX(var(--shine-start)) skewX(var(--shine-tilt));
  animation: shi-satin-sweep 2.6s linear var(--shine-delay) infinite;
}

.shi-cta-btn:nth-child(even) {
  /* Hand off at the same instant: top-right edge to bottom-left edge. */
  --shine-delay: 2.1s;
}

@keyframes shi-satin-sweep {
  0% {
    transform: translateX(var(--shine-start)) skewX(var(--shine-tilt));
    opacity: 1;
  }
  /* 0.9 / 2.6 = 34.6154%: keep each pass at its approved speed. */
  34.6153% {
    transform: translateX(var(--shine-end)) skewX(var(--shine-tilt));
    opacity: 1;
  }
  34.6154%, 100% {
    transform: translateX(var(--shine-end)) skewX(var(--shine-tilt));
    opacity: 0;
  }
}

.shi-cta-btn:hover {
  background: rgba(251, 191, 36, 0.18);
  border-color: var(--color-accent, #fbbf24);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  /* Keep the buttons visible without sweeping highlights or movement. */
  .shi-cta-btn { transition: none; }
  .shi-cta-btn:hover { transform: none; }
}

/* Respect the visitor's preference for both CSS effects and native scrolling. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .shi-section { padding-block: 7rem 4rem; }
  .shi-heading-wrapper { min-height: 0; display: block; }
  .shi-heading-group {
    position: static !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .shi-heading-group + .shi-heading-group { margin-top: 1.5rem; }
  .shi-heading { font-size: clamp(1.65rem, 5vw, 3.6rem); margin-bottom: 0.5rem; }
  .shi-cta-btn:hover, .v9-course-card:hover, .milestone-story-cta:hover,
  .milestone-story-cta:hover span, .milestone-story-panel:hover .milestone-story-media img,
  .cgr-client-card:hover, .cgr-category-header:hover, .adv-diamond-card:hover {
    transform: none !important;
  }
}

/* === customer_grow_reveal.css === */

.cgr-section {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: clip;
  background: #08080a;
}

.cgr-pin-wrap {
  position: relative;
  width: min(100%, calc(var(--site-content-max) + 2 * var(--site-gutter)));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(5rem, 10vh, 8rem) var(--site-gutter) 3rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vh, 3.5rem);
  z-index: 2;
}

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

.cgr-bg-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.cgr-bg-0 {
  opacity: 1;
  background:
    radial-gradient(circle 45vw at 50% 50%, rgba(13, 43, 34, 0.75) 0%, rgba(12, 26, 31, 0.35) 45%, transparent 75%),
    #08080a;
}

.cgr-bg-2 {
  opacity: 1;
  background:
    radial-gradient(circle 40vw at 25% 35%, rgba(251, 191, 36, 0.22) 0%, transparent 60%),
    radial-gradient(circle 45vw at 75% 65%, rgba(126, 34, 206, 0.28) 0%, transparent 65%),
    radial-gradient(circle 50vw at 50% 50%, rgba(20, 30, 50, 0.85) 0%, rgba(8, 10, 16, 0.95) 85%),
    #080a12;
}

.cgr-header-wrap {
  position: relative;
  z-index: 10;
  pointer-events: none;
  text-align: center;
  transform-origin: center center;
}

.cgr-heading {
  font-size: clamp(1.75rem, 5vw, 4rem);
  font-family: var(--font-tc), var(--font-en), sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  perspective: 800px;
}

.cgr-heading-char {
  display: inline-block;
}

.cgr-category-heading-motion {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.cgr-client-motion {
  width: 100%;
  min-width: 0;
}

/* The static layout must win over any inline animation styles restored on refresh. */
.cgr-static .cgr-client-motion,
.cgr-static .cgr-category-heading-motion,
.cgr-static .cgr-heading-char {
  transform: none !important;
  translate: none !important;
  rotate: none !important;
  scale: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.cgr-grid-container {
  position: relative;
  width: 100%;
  max-width: var(--site-content-max);
  margin: 0 auto;
  box-sizing: border-box;
  z-index: 5;
  transform-origin: center center;
}

.cgr-grid-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  width: 100%;
  box-sizing: border-box;
}

.cgr-category-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.cgr-category-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.28) 0%, rgba(180, 120, 10, 0.2) 50%, rgba(60, 40, 5, 0.35) 100%);
  border: 1px solid rgba(251, 191, 36, 0.65);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(0, 0, 0, 0.7);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(251, 191, 36, 0.25),
    inset 0 2px 3px rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5);
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  width: auto;
  max-width: 100%;
  margin-bottom: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-sizing: border-box;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.cgr-category-header:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(251, 191, 36, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.cgr-category-num {
  font-family: var(--font-en), monospace;
  font-size: 0.75rem;
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 60%, #d97706 100%);
  color: #0b0f19;
  font-weight: 900;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
  line-height: 1;
}

.cgr-category-title {
  font-size: 0.84rem;
  font-family: var(--font-tc);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  white-space: normal;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.cgr-client-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: visible;
  box-sizing: border-box;
}

.cgr-client-card {
  background: linear-gradient(135deg, rgba(30, 24, 68, 0.55) 0%, rgba(45, 16, 95, 0.6) 100%);
  border: 1.5px solid rgba(192, 132, 252, 0.35);
  border-radius: 16px;
  min-height: clamp(48px, 7vh, 72px);
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.15vw, 1.25rem);
  font-weight: 800;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 30px rgba(12, 5, 30, 0.5), inset 0 1px 0 rgba(233, 213, 255, 0.3), 0 0 20px rgba(168, 85, 247, 0.2);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              color 0.35s ease;
  user-select: none;
  text-align: center;
  padding: 0.5rem;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
  box-sizing: border-box;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.cgr-client-card:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: #c084fc;
  background: linear-gradient(135deg, rgba(55, 30, 110, 0.8) 0%, rgba(147, 51, 234, 0.35) 100%);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(168, 85, 247, 0.35), 0 0 25px rgba(192, 132, 252, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@media (max-width: 1024px) {
  .cgr-grid-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .cgr-client-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cgr-client-motion:last-child {
    grid-column: 1 / -1;
  }
  .cgr-client-card {
    min-height: 52px;
    font-size: 1rem;
    border-radius: 10px;
  }
}

@media (max-width: 768px) {
  .cgr-pin-wrap {
    padding: 5rem var(--site-gutter) 3rem;
  }
  .cgr-grid-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .cgr-category-header {
    margin-bottom: 0;
  }
  .cgr-client-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    max-height: none;
  }
  .cgr-client-card {
    min-height: 52px;
    font-size: 1rem;
    border-radius: 8px;
    padding: 0 0.5rem;
  }
  .cgr-client-motion:last-child {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .cgr-client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cgr-client-motion:last-child {
    grid-column: 1 / -1;
  }
}

/* === course_library_v9.css === */

.courses-v9-section {
  position: relative;
  width: 100%;
  padding: 6.5rem 0 8.5rem 0;
  background: var(--bg-color, #080a12);
  overflow: clip;
}

.v9-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
}
.v9-glow-orb.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent, #fbbf24);
  top: 10%;
  right: -10%;
}
.v9-glow-orb.orb-2 {
  width: 650px;
  height: 650px;
  background: #3b82f6;
  bottom: 10%;
  left: -10%;
}

.courses-v9-container {
  max-width: calc(var(--site-content-max) + 2 * var(--site-gutter));
  margin: 0 auto;
  padding: 0 var(--site-gutter);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.v9-header-row,
.courses-v9-header.v9-header-row,
.sol-header.v9-header-row,
.strengths-header.v9-header-row,
.adv-header.v9-header-row,
.contact-header-row.v9-header-row,
.stack-header-row.v9-header-row {
  margin: 0 auto 3rem auto !important;
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: 3.5rem !important;
  align-items: center !important;
  width: 100% !important;
  max-width: var(--site-content-max) !important;
  box-sizing: border-box !important;
  text-align: left !important;
  position: relative !important;
  top: auto !important;
  z-index: 10 !important;
  isolation: isolate !important;
  transform: translateZ(0) !important;
  background: transparent !important;
  padding: 1rem 0 0.8rem 0 !important;
}

.v9-header-row h2,
.v9-header-row .section-title,
.courses-v9-header.v9-header-row h2,
.sol-header.v9-header-row h2,
.strengths-header.v9-header-row h2,
.adv-header.v9-header-row h2,
.contact-header-row.v9-header-row h2,
.stack-header-row.v9-header-row h2 {
  font-size: clamp(2.4rem, 3.8vw, 3.2rem) !important;
  white-space: nowrap !important;
  margin: 0 !important;
  text-align: left !important;
  display: inline-block !important;
  width: auto !important;
  color: #fbbf24;
  transform: translateZ(0);
}

.v9-header-row .v9-subheading,
.v9-header-row .sol-subheading,
.v9-header-row .strengths-subheading,
.v9-header-row .adv-subheading,
.v9-header-row .contact-subheading,
.v9-header-row .stack-subheading {
  font-size: clamp(0.92rem, 1.15vw, 1.02rem) !important;
  color: rgba(255, 255, 255, 0.78) !important;
  line-height: 1.75 !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .v9-header-row,
  .courses-v9-header.v9-header-row,
  .sol-header.v9-header-row,
  .strengths-header.v9-header-row,
  .adv-header.v9-header-row,
  .contact-header-row.v9-header-row,
  .stack-header-row.v9-header-row {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
    text-align: center !important;
  }
  .v9-header-row h2,
  .sol-header.v9-header-row h2,
  .strengths-header.v9-header-row h2,
  .adv-header.v9-header-row h2,
  .contact-header-row.v9-header-row h2,
  .stack-header-row.v9-header-row h2 {
    white-space: normal !important;
    text-align: center !important;
  }
  .v9-header-row .v9-subheading,
  .v9-header-row .sol-subheading,
  .v9-header-row .strengths-subheading,
  .v9-header-row .adv-subheading,
  .v9-header-row .contact-subheading,
  .v9-header-row .stack-subheading {
    text-align: center !important;
  }
}

.centered-header,
.origin-header.centered-header,
.contact-header-row.centered-header {
  margin: 0 auto 1.8rem auto !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  top: auto !important;
  z-index: 2 !important;
  background: transparent !important;
  padding: 0.6rem 0 !important;
}

.centered-header h2,
.origin-header.centered-header h2,
.contact-header-row.centered-header h2 {
  font-size: clamp(2.4rem, 3.8vw, 3.2rem) !important;
  text-align: center !important;
  margin: 0 auto !important;
  display: block !important;
  width: 100% !important;
}

.v9-filter-bar-wrapper {
  margin-bottom: 2.2rem;
  position: relative;
  top: auto;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 14, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.v9-filter-group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.v9-group-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent, #fbbf24);
  white-space: nowrap;
  letter-spacing: 0.5px;
  min-width: 135px;
}

.v9-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.v9-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.35rem 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-tc);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.v9-filter-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(251, 191, 36, 0.5);
  color: #ffffff;
}

.v9-filter-pill.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.28) 0%, rgba(217, 119, 6, 0.22) 100%);
  border-color: var(--accent, #fbbf24);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.35);
}

.v9-filter-pill.pill-type.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.22) 100%);
  border-color: #60a5fa;
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.4);
}

.pill-count {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  transition: all 0.3s ease;
}

.v9-filter-pill.active .pill-count {
  background: rgba(251, 191, 36, 0.25);
  color: #fbbf24;
}

.v9-filter-pill.pill-type.active .pill-count {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.v9-tag-pill {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.v9-tag-pill.tag-cat {
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 70%, #d97706 100%);
  color: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-shadow: none;
}
.v9-tag-pill.tag-type {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .v9-filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .v9-group-label {
    min-width: auto;
  }
}

.v9-courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 1.35rem;
  align-items: start;
}

.v9-course-card.glass-card {
  padding: 0 !important;
  background: linear-gradient(135deg, rgba(20, 26, 42, 0.92) 0%, rgba(10, 14, 26, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.v9-course-card.glass-card[style*="display: none"] {
  display: none !important;
}

.v9-course-card.glass-card:hover {
  border-color: var(--accent, #fbbf24) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(251, 191, 36, 0.22) !important;
}

.v9-card-media {
  position: relative;
  width: 100% !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #090d16;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  flex-shrink: 0;
}

.v9-card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transform: scale(1.06); /* 微幅放大 6% 以完美裁切掉原始簡報圖片邊緣的白框與字幕列 */
  transition: transform 0.5s ease;
}

.v9-course-card:hover .v9-card-media img {
  transform: scale(1.14);
}

.v9-media-overlay {
  display: none !important;
}

.v9-media-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  z-index: 2;
}

.v9-badge-hot {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 60%, #d97706 100%);
  color: #0b0f19;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.v9-duration-tag {
  position: absolute;
  bottom: 0.55rem;
  right: 0.55rem;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.v9-card-content {
  padding: 0.9rem 1rem 1rem 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem;
  width: 100% !important;
  box-sizing: border-box;
}

.v9-tag-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 60%, #d97706 100%);
  color: #0b0f19;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.25;
  white-space: nowrap;
}

.v9-card-title {
  font-size: 1.12rem;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-tc);
  line-height: 1.35;
  margin: 0.15rem 0 0.1rem 0;
}

.v9-card-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.2rem;
}

.v9-card-footer {
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: flex-end;
  min-height: 28px;
  transition: border-color 0.35s ease;
}

.v9-btn-detail {
  font-size: 0.82rem;
  color: rgba(251, 191, 36, 0.88);
  font-weight: 700;
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.24);
  padding: 0.22rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.v9-course-card:hover .v9-card-footer {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.v9-course-card:hover .v9-btn-detail,
.v9-course-card:focus-within .v9-btn-detail {
  color: var(--accent, #fbbf24);
  opacity: 1;
  transform: translateY(0);
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

@media (hover: none) {
  .v9-btn-detail {
    opacity: 1;
    transform: translateY(0);
  }
  .v9-card-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 1100px) {
  .v9-courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .v9-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .v9-courses-grid {
    grid-template-columns: 1fr;
  }
}

/* === solutions_waterfall_reveal.css === */

.sol-waterfall-section {
  position: relative;
  width: 100%;
  padding: 7rem 0 9rem 0;
  background: var(--bg-color, #080a12);
  overflow: clip;
}

.sol-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
}
.sol-glow-orb.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent, #fbbf24);
  top: 15%;
  left: -10%;
}
.sol-glow-orb.orb-2 {
  width: 600px;
  height: 600px;
  background: #ccff00;
  bottom: 10%;
  right: -15%;
}

.sol-waterfall-container {
  max-width: calc(var(--site-content-max) + 2 * var(--site-gutter));
  margin: 0 auto;
  padding: 0 var(--site-gutter);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.sol-header {
  margin-bottom: 3.5rem;
  text-align: left;
}

.sol-subheading {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  max-width: 800px;
  margin-top: 1.2rem;
}

.sol-waterfall-flow {
  position: relative;
  margin-top: 3.5rem;
}

.sol-center-axis {
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  z-index: 1;
}

.sol-axis-track {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
}

.sol-axis-progress {
  position: absolute;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent, #fbbf24) 0%, #ccff00 100%);
  box-shadow: 0 0 12px var(--accent, #fbbf24), 0 0 25px #ccff00;
}

.sol-cards-list {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.sol-card-wrapper {
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.sol-card-left {
  align-self: flex-start;
  padding-right: 3.5rem;
}

.sol-card-right {
  align-self: flex-end;
  padding-left: 3.5rem;
}

.sol-card-wrapper:nth-child(n+2) {
  margin-top: -5.5rem;
}

.sol-node-dot {
  position: absolute;
  top: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #090d16;
  border: 2px solid var(--accent, #fbbf24);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.sol-card-left .sol-node-dot {
  right: -22px;
}

.sol-card-right .sol-node-dot {
  left: -22px;
}

.sol-node-num {
  font-family: var(--font-en), monospace;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--accent, #fbbf24);
}

.sol-card {
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2.2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sol-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent, #fbbf24);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(251, 191, 36, 0.2);
}

.sol-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sol-header-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sol-badge {
  align-self: center;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.sol-card-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-tc);
  line-height: 1.35;
  margin: 0;
}

.sol-tagline {
  font-size: 0.95rem;
  color: var(--accent, #fbbf24);
  font-weight: 700;
  line-height: 1.55;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
}

.sol-card-desc {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

@media (max-width: 992px) {
  .sol-center-axis {
    left: 20px;
  }
  .sol-card-wrapper {
    width: 100%;
    align-self: flex-start !important;
    padding-left: 4.5rem !important;
    padding-right: 0 !important;
  }
  .sol-card-wrapper:nth-child(n+2) {
    margin-top: 2rem;
  }
  .sol-node-dot {
    left: -2px !important;
    right: auto !important;
  }
}

/* === advantages_diamond_matrix.css === */

.adv-diamond-section {
  position: relative;
  width: 100%;
  padding: 7.5rem 0 9.5rem 0;
  background:
    radial-gradient(ellipse 65% 50% at 18% 22%, rgba(16, 185, 129, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 55% at 82% 75%, rgba(124, 58, 237, 0.20), transparent 70%),
    linear-gradient(180deg, #0b0d14 0%, #101728 50%, #0b0d14 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: clip;
}

.adv-glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.adv-glow-orb.orb-dia-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.36) 0%, rgba(59, 130, 246, 0.16) 50%, transparent 75%);
  filter: blur(65px);
  top: 6%;
  left: 4%;
}
.adv-glow-orb.orb-dia-2 {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.40) 0%, rgba(37, 99, 235, 0.20) 50%, transparent 75%);
  filter: blur(70px);
  bottom: 5%;
  right: 4%;
}
.adv-glow-orb.orb-dia-3 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.32) 0%, rgba(249, 115, 22, 0.15) 50%, transparent 75%);
  filter: blur(65px);
  top: 32%;
  left: 30%;
}

.adv-diamond-container {
  max-width: calc(var(--site-content-max) + 2 * var(--site-gutter));
  margin: 0 auto;
  padding: 0 var(--site-gutter);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.adv-diamond-matrix {
  position: relative;
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
}

.adv-diamond-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.adv-center-hub-row {
  position: relative;
  width: 100%;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.adv-core-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -45px;
  margin-left: -45px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35) 0%, rgba(9, 13, 22, 0.95) 70%);
  border: 1px solid rgba(251, 191, 36, 0.65);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.45), inset 0 0 15px rgba(251, 191, 36, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  box-sizing: border-box;
}

.core-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px dashed rgba(251, 191, 36, 0.85);
  animation: spinRing 12s linear infinite;
}

.core-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -9px;
  margin-left: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 15px #fbbf24, 0 0 25px rgba(251, 191, 36, 0.8);
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.adv-diamond-card {
  background: linear-gradient(135deg, rgba(20, 26, 42, 0.88) 0%, rgba(10, 14, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 2.2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.adv-diamond-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent, #fbbf24);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(251, 191, 36, 0.25);
}

.adv-diamond-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.adv-header-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.diamond-num {
  align-self: center;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.adv-diamond-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-tc);
  margin: 0;
  line-height: 1.3;
}

.diamond-tagline {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent, #fbbf24);
  line-height: 1.5;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
}

.adv-diamond-desc {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.75;
}

.adv-diamond-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  /* Anchor equal-size images to the card bottom, regardless of copy length. */
  margin-top: auto;
}

.adv-diamond-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.adv-diamond-card:hover .adv-diamond-media img {
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .adv-diamond-row {
    grid-template-columns: 1fr;
  }
  .adv-center-hub-row {
    display: none;
  }
}

/* === dynamic_timeline.css === */

.dtl-section, .stl-section, .origin-section-wrapper {
  min-height: 100vh;
  padding: 3.5rem var(--site-gutter) 4rem;
  position: relative;
  overflow: clip;
  box-sizing: border-box;
}

.dtl-container, .stl-container {
  max-width: 1200px;
  margin: 0 auto;
}

.dtl-header-wrap, .stl-header-wrap {
  text-align: center;
  margin-bottom: 4rem;
}

.dtl-heading, .stl-heading {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.dtl-subheading, .stl-subheading {
  font-size: 1.125rem;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.7));
  max-width: 700px;
  margin: 0 auto;
}

.dtl-grid, .stl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 992px) {
  .dtl-grid, .stl-grid {
    grid-template-columns: 1fr;
  }
}

.dtl-left, .stl-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 6rem;
}

.dtl-card, .stl-card {
  padding: 2.5rem;
  border-radius: 20px;
}

.dtl-card-badge, .stl-card-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent-amber, #fbbf24);
  margin-bottom: 1.25rem;
}

.dtl-card-title, .stl-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.dtl-card-subtitle, .stl-card-subtitle {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
  margin-left: 0.5rem;
}

.dtl-credentials-list, .stl-credentials-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dtl-credentials-list li, .stl-credentials-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.dtl-credentials-list li::before, .stl-credentials-list li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  color: var(--color-accent-amber, #fbbf24);
}

.dtl-story-body, .stl-story-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  line-height: 1.75;
  opacity: 0.9;
  font-size: 0.95rem;
}

.dtl-right, .stl-right {
  display: flex;
  flex-direction: column;
}

.dtl-timeline-title, .stl-timeline-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.dtl-timeline-wrapper, .stl-timeline-wrapper {
  position: relative;
  padding-left: 2rem;
}

.dtl-timeline-line-bg, .stl-timeline-line-bg {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.dtl-timeline-line-progress, .stl-timeline-line-progress {
  position: absolute;
  left: 7px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #fbbf24, #f97316, #db2777);
}

.dtl-timeline-list, .stl-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dtl-timeline-item, .stl-timeline-item {
  position: relative;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.dtl-timeline-node, .stl-timeline-node {
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dtl-node-ring, .stl-node-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #f97316;
}

.dtl-node-dot, .stl-node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
}

.dtl-timeline-content, .stl-timeline-content {
  flex: 1;
  padding: 1.75rem;
  border-radius: 16px;
}

.dtl-timeline-year, .stl-timeline-year {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.dtl-timeline-desc, .stl-timeline-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* === Course Detail Modal Syllabus & Module Hierarchy Styles === */

.outline-modules-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 0.8rem;
}

.outline-module-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.outline-module-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 12px;
  padding: 0.6rem 1.1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.module-pill {
  font-family: var(--font-en), monospace;
  font-size: 0.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 60%, #d97706 100%);
  color: #0b0f19;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.module-title-text {
  font-family: var(--font-tc);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.syllabus-outline-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.outline-chapter-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all 0.3s ease;
}

.outline-chapter-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(251, 191, 36, 0.4);
  transform: translateY(-2px);
}

.outline-chapter-header {
  display: flex;
  align-items: center;
}

.outline-chapter-title {
  font-family: var(--font-tc);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}

.outline-chapter-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.outline-chapter-items li {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.outline-dot {
  color: var(--accent, #fbbf24);
  font-weight: bold;
}

.outline-chapter-items li:not(.outline-sub-item):has(+ li.outline-sub-item) {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.outline-chapter-items li.outline-sub-item {
  padding-left: 1.35rem;
  font-size: 0.82rem;
  color: rgba(203, 213, 225, 0.72);
  margin-top: -0.08rem;
}

.outline-sub-dot {
  color: #60a5fa;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .syllabus-outline-list {
    grid-template-columns: 1fr;
  }
}

.modal-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22) 0%, rgba(217, 119, 6, 0.16) 100%) !important;
  border: 1.5px solid var(--accent, #fbbf24) !important;
  color: #fbbf24 !important;
  font-family: var(--font-tc);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.25);
  transition: all 0.35s ease;
  margin-top: 0.8rem;
  align-self: flex-start;
}

.modal-cta-btn:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.9) 0%, rgba(217, 119, 6, 0.9) 100%) !important;
  color: #0b0f19 !important;
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.5);
  transform: translateY(-2px);
}

/* === Milestone narrative rail === */
.milestone-rail-section {
  --milestone-sticky-space: clamp(0.5rem, 3vh, 2rem);
  /* Reserve navbar space in both scroll directions, including year selection. */
  --milestone-sticky-top: calc(70px + var(--milestone-sticky-space));
  --milestone-stage-top: calc(var(--milestone-sticky-top) + 7.2rem);
  --milestone-card-height: min(420px, calc(100vh - 13.5rem));
  --milestone-label-line: 1.75rem;
  --milestone-capability-line: 1.5rem;
  --milestone-node-gap: 0.3rem;
  position: relative;
  padding: 8rem var(--site-gutter) 5rem;
  background:
    radial-gradient(ellipse 55% 45% at 15% 20%, rgba(251, 191, 36, 0.15), transparent 70%),
    radial-gradient(ellipse 65% 55% at 82% 42%, rgba(124, 58, 237, 0.22), transparent 72%),
    radial-gradient(ellipse 55% 50% at 45% 80%, rgba(37, 99, 235, 0.18), transparent 70%),
    linear-gradient(180deg, #0b0d14 0%, #11182b 50%, #0b0d14 100%);
  border-block: 1px solid rgba(168, 185, 210, 0.12);
  overflow: clip;
}

.milestone-ambient-backdrop {
  position: sticky;
  top: 70px;
  height: 0;
  width: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.milestone-glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.milestone-glow-orb.orb-ms-1 {
  top: 2vh;
  left: -4vw;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.36) 0%, rgba(249, 115, 22, 0.15) 50%, transparent 75%);
  filter: blur(65px);
}
.milestone-glow-orb.orb-ms-2 {
  top: 12vh;
  right: -2vw;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.40) 0%, rgba(59, 130, 246, 0.20) 50%, transparent 75%);
  filter: blur(75px);
}
.milestone-glow-orb.orb-ms-3 {
  top: 42vh;
  left: 24vw;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(219, 39, 119, 0.28) 0%, rgba(126, 34, 206, 0.14) 50%, transparent 75%);
  filter: blur(65px);
}

.milestone-rail-container {
  max-width: var(--site-content-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.milestone-sticky-stage {
  position: sticky;
  top: var(--milestone-sticky-top);
  z-index: 35;
}

.milestone-rail-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  top: auto;
  z-index: 35;
  background: transparent;
  padding: 0.6rem 0;
}

.milestone-rail-header .section-title {
  margin: 0;
  color: #f3b63e;
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  white-space: nowrap;
}

.milestone-rail-subheading {
  color: #aab6c8;
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  line-height: 1.75;
  margin: 0;
}

.milestone-journey {
  display: grid;
  grid-template-columns: clamp(300px, 27vw, 340px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.milestone-rail-nav {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--milestone-rail-height, var(--milestone-card-height));
  min-height: 0;
  gap: 0;
  padding-left: 1.45rem;
  z-index: 3;
}

.milestone-rail-line {
  position: absolute;
  left: 4px;
  top: calc(var(--milestone-label-line) / 2);
  bottom: calc(var(--milestone-label-line) / 2 + var(--milestone-node-gap) + var(--milestone-capability-line));
  width: 1px;
  background: #2b3850;
  overflow: hidden;
}

.milestone-rail-progress {
  display: block;
  width: 100%;
  height: 0;
  background: #f3b63e;
  box-shadow: 0 0 12px rgba(243, 182, 62, 0.4);
  transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone-rail-stop {
  position: relative;
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  column-gap: 0.7rem;
  row-gap: var(--milestone-node-gap);
  align-items: baseline;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #aab6c8;
  font-family: var(--font-tc);
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.milestone-rail-stop:hover {
  color: #f5f7fa;
  transform: translateX(3px);
}

.milestone-rail-stop:focus:not(:focus-visible) {
  outline: none;
}

.milestone-rail-stop:focus-visible {
  outline: 2px solid #f3b63e;
  outline-offset: 4px;
  border-radius: 6px;
}

.milestone-rail-dot {
  position: absolute;
  left: -1.45rem;
  top: calc(var(--milestone-label-line) / 2 - 4.5px);
  width: 9px;
  height: 9px;
  border: 2px solid #53627a;
  border-radius: 50%;
  background: #080b12;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.milestone-rail-year {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: var(--milestone-label-line);
}

.milestone-rail-company {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: var(--milestone-label-line);
  white-space: nowrap;
}

.milestone-rail-capability {
  grid-column: 1 / -1;
  color: #8f9db3;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: var(--milestone-capability-line);
}

.milestone-rail-stop.is-active { color: #f5f7fa; }
.milestone-rail-stop.is-active .milestone-rail-year { color: #f3b63e; }
.milestone-rail-stop.is-active .milestone-rail-capability { color: #e8c57e; }
.milestone-rail-stop.is-active .milestone-rail-dot {
  border-color: #f3b63e;
  background: #f3b63e;
  box-shadow: 0 0 0 5px rgba(243, 182, 62, 0.13), 0 0 16px rgba(243, 182, 62, 0.55);
  transform: scale(1.18);
}

.milestone-story-column { min-width: 0; }

.milestone-story-stage {
  position: relative;
  top: auto;
  min-height: var(--milestone-card-height);
  display: grid;
  align-items: stretch;
}

.milestone-story-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(250px, 0.94fr);
  min-height: var(--milestone-card-height);
  overflow: hidden;
  border: 1px solid #2b3850;
  border-radius: 24px;
  background: rgba(18, 26, 42, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  grid-area: 1 / 1;
}

.milestone-story-panel[hidden] {
  /* Keep every panel in the shared grid track so the longest copy sets one
     responsive height. Inactive panels stay invisible and non-interactive. */
  display: grid !important;
  visibility: hidden !important;
  pointer-events: none;
}

.milestone-story-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.8rem, 3.5vw, 3.2rem);
  padding-inline: clamp(1.5rem, 2.5vw, 2.4rem);
}

.milestone-story-copy .milestone-story-feature {
  margin: 0;
  color: #f3b63e;
  font-family: var(--font-tc);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.milestone-story-meta,
.milestone-story-project {
  margin: 0.75rem 0 0;
  color: #f5f7fa;
  font-family: var(--font-tc);
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 700;
  line-height: 1.6;
}

.milestone-story-meta {
  color: #aab6c8;
}

.milestone-story-project {
  margin-top: 0.2rem;
}

.milestone-story-summary {
  max-width: 37em;
  margin: 1.1rem 0 1.6rem;
  color: #aab6c8;
  font-size: 0.98rem;
  line-height: 1.75;
}

.milestone-button-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.milestone-story-cta {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.72rem 1.15rem;
  border: 1px solid #f3b63e;
  border-radius: 999px;
  outline: none;
  box-shadow: none;
  background: rgba(243, 182, 62, 0.08);
  color: #f3b63e;
  font-family: var(--font-tc);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.milestone-story-cta span { transition: transform 0.25s ease; }
.milestone-story-cta:hover { background: #f3b63e; color: #080b12; transform: translateY(-2px); }
.milestone-story-cta:hover span { transform: translateX(4px); }

button.milestone-story-cta:focus {
  outline: none;
  box-shadow: none;
}

/* Use a filled focus state to keep keyboard focus visible with a single border. */
button.milestone-story-cta:focus-visible {
  border-color: #ffe2a1;
  background: #f3b63e;
  color: #080b12;
}

.milestone-story-cta.secondary {
  background: transparent;
  color: #aab6c8;
  border-color: #aab6c8;
}
.milestone-story-cta.secondary:hover {
  background: rgba(170, 182, 200, 0.1);
  color: #fff;
}

.milestone-story-media {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border: 0;
  border-left: 1px solid #2b3850;
  background: #0a0f1b;
}

.milestone-story-media::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, rgba(18, 26, 42, 0.35), transparent 42%);
  pointer-events: none;
}

.milestone-story-media img {
  /* Image loading and intrinsic dimensions must not change the card height. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--milestone-media-position, 50% 50%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone-story-panel:hover .milestone-story-media img { transform: scale(1.035); }
.milestone-scroll-step { height: 58vh; }
.milestone-scroll-step:first-child { height: 20vh; }

/* The detail view belongs to the milestone system, so it follows the same restrained palette. */
.milestone-modal-backdrop { background: rgba(4, 7, 13, 0.82); }
.milestone-modal-container { background: #121a2a; border-color: #2b3850; }
.milestone-modal-badge { color: #f3b63e; background: rgba(243, 182, 62, 0.1); border-color: rgba(243, 182, 62, 0.35); }
.milestone-modal-badge.subtitle { color: #f5f7fa; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.milestone-modal-section-title { color: #f3b63e; }
.milestone-modal-result-pill { color: #75d6b1; background: rgba(117, 214, 177, 0.1); border-color: rgba(117, 214, 177, 0.3); }

@media (max-width: 900px) {
  .milestone-rail-section { --milestone-sticky-space: 0px; padding: 5rem var(--site-gutter); }
  .milestone-sticky-stage { position: relative; top: auto; }
  .milestone-rail-header { position: relative; top: auto; backdrop-filter: none; -webkit-backdrop-filter: none; display: block; margin-bottom: 2.25rem; }
  .milestone-rail-subheading { margin-top: 1rem; }
  .milestone-journey { display: flex; flex-direction: column; gap: 1.5rem; }
  .milestone-rail-nav { position: relative; top: auto; flex-direction: row; justify-content: flex-start; height: auto; min-height: 0; width: 100%; gap: 1rem; padding: 0 0 0.4rem; overflow-x: auto; scrollbar-width: none; }
  .milestone-rail-nav::-webkit-scrollbar { display: none; }
  .milestone-rail-line { top: auto; right: 0; bottom: 0; left: 0; width: auto; height: 1px; }
  .milestone-rail-progress { width: 0; height: 100%; transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
  .milestone-rail-stop { flex: 0 0 auto; width: auto; grid-template-columns: max-content max-content; column-gap: 0.6rem; padding: 0.45rem 0; }
  .milestone-rail-dot { display: none; }
  .milestone-rail-company { max-width: none; }
  .milestone-story-stage { position: relative; top: auto; min-height: 0; }
  .milestone-story-panel { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .milestone-story-copy { min-height: 330px; padding: 2rem; }
  .milestone-story-media { min-height: 240px; aspect-ratio: 16 / 9; border-left: 0; border-top: 1px solid #2b3850; }
  .milestone-story-media::after { background: linear-gradient(180deg, rgba(18, 26, 42, 0.14), transparent); }
  .milestone-scroll-steps { display: none; }
}

@media (max-width: 480px) {
  .milestone-story-copy { padding: 1.5rem; }
  .milestone-modal-backdrop { padding: 0.75rem; }
  .milestone-modal-container { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .milestone-rail-progress,
  .milestone-rail-stop,
  .milestone-rail-dot,
  .milestone-story-media img,
  .milestone-story-cta,
  .milestone-story-cta span { transition: none; }
}

.share-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  font-family: var(--font-tc);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.share-link-btn:hover {
  background: rgba(251, 191, 36, 0.22);
  border-color: #fbbf24;
  transform: translateY(-1px);
}

.share-link-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #6ee7b7;
}
