/* ============================================================
   LOCAL FONTS — @font-face
============================================================ */
@font-face {
  font-family: 'PPModelSans-Medium';
  src: url('font/PPModelSans-Medium.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PxGroteskVN-Bold';
  src: url('font/PxGroteskVN-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PxGroteskVN-Bold';
  src: url('font/PxGroteskVN-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PxGroteskVN-Regular';
  src: url('font/PxGroteskVN-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PxGroteskVN-Regular';
  src: url('font/PxGroteskVN-Regular.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ChivoMono';
  src: url('font/ChivoMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ChivoMono';
  src: url('font/ChivoMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --bg: #0D0D0D;
  --surface: #161616;
  --surface-2: #1E1E1E;
  --accent: #AFE54B;
  --accent-glow: rgba(175, 229, 75, 0.15);
  --accent-pink: var(--accent);
  --accent-pink-glow: var(--accent-glow);
  --text: #EFF4FF;
  --text-muted: #D3D3D3;
  --text-dim: rgba(211, 211, 211, 0.28);
  --border: rgba(211, 211, 211, 0.08);
  --border-accent: rgba(175, 229, 75, 0.3);

  --font-bigtext: 'PPModelSans-Medium', sans-serif;
  --font-display: 'PxGroteskVN-Bold', sans-serif;
  --font-body: 'PxGroteskVN-Regular', sans-serif;
  --font-mono: 'ChivoMono', monospace;

  --type-display: clamp(3.2rem, 9vw, 8rem);
  --type-hero: clamp(2rem, 4.5vw, 4rem);
  --type-h2: clamp(1.5rem, 2.8vw, 2.4rem);
  --type-h3: clamp(1.1rem, 1.8vw, 1.5rem);
  --type-body: 1.0625rem;
  --type-small: 0.875rem;
  --type-caption: 0.75rem;

  --leading-body: 1.8;
  --max-prose: 72ch;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   RESET & BASE
============================================================ */
*,
*::before,
*::after,
cite,
em,
i,
blockquote,
q,
dfn {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-style: normal !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

body.scroll-locked {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
}

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

::selection {
  background: var(--accent);
  color: #000;
}

/* ============================================================
   READING PROGRESS BAR
============================================================ */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  z-index: 1000;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ============================================================
   LOADING SCREEN OVERLAY
============================================================ */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loading-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.loading-logo-svg {
  width: clamp(120px, 15vw, 180px);
  height: clamp(120px, 15vw, 180px);
  display: block;
}

.loading-logo-svg .logo-bg path {
  fill: #1a1a1a; /* Darker gray for empty state background */
  transition: fill 0.3s ease;
}

.loading-logo-svg .logo-fg path {
  fill: var(--accent); /* Lime brand green */
}

#loading-percentage {
  font-family: var(--font-mono);
  font-size: var(--type-caption);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-top: 0.5rem;
}

.loading-text-ravolution,
.loading-text-ten-years {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-bigtext);
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  filter: blur(0px);
  will-change: transform, opacity, filter;
}

.loading-text-ravolution {
  color: #FFFFFF;
}

.loading-text-ten-years {
  color: var(--accent);
}

/* ============================================================
   CHAPTER NAV
============================================================ */
#floating-menu-container {
  position: fixed;
  bottom: 2rem;
  right: 6rem;
  left: auto;
  transform: translateY(30px);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 400px;
  max-width: calc(100vw - 12rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-expo), transform 0.5s var(--ease-expo);
}

#floating-menu-container.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hide the floating menu navigator when a popup is active (scroll-locked body) */
body.scroll-locked #floating-menu-container,
body.modal-open #floating-menu-container {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(30px) !important;
}

#floating-menu-pill {
  width: 100%;
  background: #000000;
  border: 1px solid #666666;
  padding: 8px 16px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: none;
  /* Removed drop shadow per user request */
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#floating-menu-pill:hover {
  border-color: var(--accent);
}

#floating-menu-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.pill-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.pill-logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pill-title-container {
  overflow: hidden;
  white-space: nowrap;
  width: 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.pill-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-block;
  animation: pill-marquee 25s linear infinite;
  width: max-content;
}

.pill-prefix {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 6px;
  font-weight: 700;
  flex-shrink: 0;
}

.pill-body-text {
  color: #ffffff;
}

.pill-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  display: block;
}

/* Ticker marquee animation for active chapter text */
.pill-title-container.marquee-active .pill-marquee-wrapper #pill-title-text {
  display: inline-block;
  animation: pill-marquee 12s linear infinite;
  width: max-content;
}

@keyframes pill-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.pill-right {
  display: flex;
  align-items: center;
  color: #ffffff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

#floating-menu-container.open .pill-right {
  transform: rotate(180deg);
  color: var(--accent);
}

.hamburger-icon {
  width: 18px;
  height: 18px;
  position: relative;
}

.hamburger-icon .line {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  transform-origin: center;
}

.hamburger-icon .line-top {
  top: 3px;
}

.hamburger-icon .line-middle {
  top: 8px;
}

.hamburger-icon .line-bottom {
  top: 13px;
}

#floating-menu-container.open .hamburger-icon .line-top {
  transform: translateY(5px) rotate(45deg);
}

#floating-menu-container.open .hamburger-icon .line-middle {
  opacity: 0;
}

#floating-menu-container.open .hamburger-icon .line-bottom {
  transform: translateY(-5px) rotate(-45deg);
}

/* Floating Menu Panel */
#floating-menu-panel {
  width: 100%;
  background: #0D0D0D;
  border: 1px solid #5F5F5F;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: none;
  box-sizing: border-box;
  margin-bottom: 12px;

  /* Start hidden/collapsed */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.4s var(--ease-expo), transform 0.4s var(--ease-expo), visibility 0.4s;
}

#floating-menu-container.open #floating-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.panel-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.panel-header-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.05em;
  margin: 0;
}

.panel-header-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.panel-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.panel-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  color: #ffffff;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.3s ease;
}

.panel-item:hover {
  color: var(--accent);
}

.panel-item.active {
  color: var(--accent);
}

.pi-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-top: 2px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pi-label {
  flex-grow: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pi-arrow {
  display: flex;
  align-items: center;
  margin-top: 4px;
  color: #ffffff;
  opacity: 0.5;
  transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.panel-item:hover .pi-arrow {
  transform: translateX(4px);
  color: var(--accent);
  opacity: 1;
}

.panel-item.active .pi-arrow {
  color: var(--accent);
  opacity: 1;
}

/* ============================================================
   COVER / LANDING
============================================================ */
#cover {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 2.5vh 2rem 2.5vh 2rem;
  background: var(--bg);
  z-index: 0;
}

.pin-spacer {
  z-index: 5 !important;
}

#cover .cover-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  will-change: transform, opacity, filter;
}

#cover .cover-bg-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

#cover .cover-bg {
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  object-fit: cover;
  filter: blur(0px);
}

#hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  /* Allow scroll through canvas */
  will-change: transform, opacity, filter;
}

#cover .cover-header {
  position: relative;
  z-index: 4;
  text-align: center;
  margin: 1.5vh auto 0;
  width: fit-content;
  max-width: calc(100% - 8rem);
  padding: 0;
  box-sizing: border-box;
}

.cover-title,
.cover-bottom-title {
  font-family: var(--font-bigtext);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-align: center;
  margin: 0;
  white-space: nowrap;
  opacity: 1;
}

.cover-title {
  font-size: clamp(4.5rem, 15vw, 16rem);
  color: var(--text);
  will-change: transform, opacity, filter;
}

.cover-subtitles-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  width: 100%;
  margin-top: 1.5rem;
  box-sizing: border-box;
  opacity: 1;
  will-change: transform, opacity;
  text-align: left;
}

.cover-subtitle,
.cover-subtitle-left,
.cover-subtitle-right {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  line-height: 1.35;
  color: #ffffff;
  font-weight: 400;
  margin: 0;
  max-width: 28ch;
  letter-spacing: -0.01em;
}

.cover-subtitle-left {
  text-align: left;
}

.cover-subtitle-right {
  text-align: right;
  margin-left: auto;
}



/* Side Labels */
.cover-side-left,
.cover-side-right {
  position: absolute;
  bottom: 4vh;
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  line-height: 1.35;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45); /* 1 single color for the whole text block */
  margin: 0;
  will-change: transform, opacity;
}

.cover-side-left {
  left: 4rem;
  text-align: left;
}

.cover-side-right {
  right: 4rem;
  text-align: right;
}

#cover .cover-footer {
  position: relative;
  z-index: 4;
  text-align: center;
  margin-bottom: 2vh;
  width: 100%;
  padding: 0 4rem;
  box-sizing: border-box;
}

.cover-bottom-title {
  font-size: clamp(2.5rem, 10vw, 11rem);
  color: var(--accent);
  will-change: transform, opacity, text-shadow, filter;
}

@media (min-width: 1921px) {
  #cover .cover-header,
  #cover .cover-footer {
    max-width: 1792px;
  }

  .cover-side-left {
    left: max(4rem, calc((100vw - 1792px) / 2));
  }

  .cover-side-right {
    right: max(4rem, calc((100vw - 1792px) / 2));
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   CHAPTER STRUCTURE - STICKY STACKING CARDS EFFECT
============================================================ */
/* Chapter body with vertical borders */
.chapter-body {
  background: var(--bg);
  position: relative;
  width: calc(100% - 8rem);
  margin-left: 4rem;
  margin-right: 4rem;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 6rem 0;
  box-sizing: border-box;
}

/* Width restrictions for text content to ensure high readability */
.chapter-body .prose-section,
.chapter-body .pull-quote,
.chapter-body .highlight-box,
.chapter-body .chapter-next {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

/* Pull quote specifically aligned with the text column width (680px - 4rem padding) */
.chapter-body .pull-quote {
  max-width: calc(680px - 4rem);
}

.chapter-body .callout-strip {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

/* Width settings for wide containers (media & grids) inside the borders */
.chapter-body .stats-row {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.chapter-body .brand-grid {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.chapter-body .timeline,
.chapter-body .tech-grid,
.chapter-body .visual-pillars {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 3rem;
  padding-right: 3rem;
  box-sizing: border-box;
}

.chapter-body .closing-section {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 3rem;
  padding-right: 3rem;
  box-sizing: border-box;
}

.chapter-body .horizontal-scroll-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.chapter-body .plur-grid {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.chapter-body .image-break {
  width: calc(100% - 10rem);
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
}

/* Keep original padding defaults for simple sections */
.prose-section {
  padding: 0;
}

.prose-section+.prose-section {
  padding-top: 2.5rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--type-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.25rem;
}


p {
  margin-bottom: 1.4rem;
  color: var(--text-muted);
}

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

strong {
  color: var(--text);
  font-weight: 600;
}

/* Pull Quote */
.pull-quote {
  position: relative;
  margin: 4rem auto;
  padding: 36px !important;
  border-left: 0 !important;
  border-bottom: 0 !important;
  border-top: 3px solid #afe54b !important;
  background: #151515 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
}

.pull-quote blockquote,
.pull-quote p {
  font-family: "PxGroteskVN-Bold", var(--font-display), sans-serif;
  font-size: 24px;
  font-weight: 700;
  font-style: normal;
  color: #dfdfdf;
  line-height: 1.22;
  letter-spacing: -1px;
  margin: 0;
}

.pull-quote cite {
  display: block;
  font-family: 'Chivo Mono', var(--font-mono), monospace;
  font-size: 10px;
  font-weight: 400;
  color: #636363;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

/* Horizontal Section divider crossing the grid lines */
.chapter-divider {
  position: relative;
  width: 100%;
  height: 1px;
  background: var(--border);
  z-index: 12;
}

.chapter-divider .divider-dot {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--text);
  border: 2px solid var(--bg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.chapter-divider .divider-dot.dot-left {
  left: 4rem;
}

.chapter-divider .divider-dot.dot-right {
  right: 4rem;
}

/* Column-aligned image break */
.image-break {
  margin: 4rem auto;
  box-sizing: border-box;
  padding: 0;
}

.image-break img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  filter: brightness(0.95);
}

.image-dual {
  display: flex;
  gap: 1.5rem;
  margin: 4rem auto;
  box-sizing: border-box;
  width: 100%;
}

.image-dual .image-item {
  flex: 1;
}

.image-dual .image-item img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  filter: brightness(0.95);
}

figcaption,
.image-break .image-caption,
.image-caption {
  display: none !important;
}

/* Chapter end / next teaser */
.chapter-next {
  display: none !important;
}

.next-label {
  font-family: var(--font-mono);
  font-size: var(--type-caption);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.next-title {
  font-family: var(--font-display);
  font-size: var(--type-h3);
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ============================================================
   TIMELINE (KỲ 3)
============================================================ */
.timeline {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* Progress Lines replacing .timeline::before */
.timeline-line-bg {
  position: absolute;
  left: calc(clamp(1.5rem, 5vw, 4rem) + 1.5rem);
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: rgba(255, 255, 255, 0.08); /* subtle dark line */
  z-index: 1;
}

.timeline-line-active {
  position: absolute;
  left: calc(clamp(1.5rem, 5vw, 4rem) + 1.5rem);
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: var(--accent); /* Neon Green (#AFE54B) */
  box-shadow: 0 0 10px rgba(175, 229, 75, 0.4);
  z-index: 2;
  transform-origin: top center;
  transform: scaleY(0);
}

.timeline-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.timeline-dot {
  display: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 0.4rem;
  transition: all 0.3s var(--ease-expo);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-year {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  writing-mode: vertical-rl;
}

.timeline-content {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child .timeline-content {
  border-bottom: none;
}

.timeline-chapter-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: var(--type-h3);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: var(--type-small);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.timeline-image {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.timeline-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.timeline-item:hover .timeline-image img {
  transform: scale(1.02);
}

/* ============================================================
   PILLARS GRID (KỲ 2, KỲ 5)
============================================================ */
.horizontal-scroll-container {
  position: relative;
  width: 100%;
}

.horizontal-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.horizontal-scroll-wrap {
  width: 100%;
  height: 550px; /* fixed elegant height for the horizontal row */
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

/* Dots at the 4 outer corners of the horizontal scroll wrapper */
.horizontal-scroll-wrap::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--bg);
  z-index: 10;
}
.horizontal-scroll-wrap::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--bg);
  z-index: 10;
}

/* Helper element to draw top-right and bottom-right dots on wrap */
.horizontal-scroll-wrap-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}
.horizontal-scroll-wrap-dots::before {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--bg);
}
.horizontal-scroll-wrap-dots::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--bg);
}

.pillars-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: fit-content;
  height: 100%;
  margin: 0;
  gap: 0;
  background: transparent;
}

.pillar-item {
  flex-shrink: 0;
  width: calc((100vw - 8rem) / 4.5); /* exactly 4.5 columns visible on desktop */
  height: 100%;
  box-sizing: border-box;
  padding: 3rem 2.5rem;
  background: var(--bg);
  border-right: 1px solid var(--border);
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* push icon to top, img to middle, text to bottom */
  align-items: stretch;
  position: relative;
}

.pillar-item:last-child {
  border-right: none;
}

.pillar-item:hover {
  background: var(--surface);
}

.pillar-item:hover .pillar-img img {
  transform: scale(1.06);
}

/* Dots at inner column dividers top and bottom intersections */
.pillar-item::before {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--bg);
  z-index: 5;
  transition: transform 0.3s;
}
.pillar-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--bg);
  z-index: 5;
  transition: transform 0.3s;
}

.pillar-item:last-child::before,
.pillar-item:last-child::after {
  display: none;
}

.pillar-icon {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  text-align: left;
}

.pillar-img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pillar-img img {
  width: 180px; /* elegant size matching Figma layout proportion */
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: brightness(0.95);
  transition: transform 0.5s var(--ease-expo);
}

.pillar-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.pillar-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ============================================================
   BRAND MATRIX (KỲ 2)
============================================================ */
.brand-grid {
  max-width: 100%;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.brand-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.brand-card:hover {
  background: var(--surface);
}

.brand-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.brand-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-expo);
}

.brand-card:hover .brand-img img {
  transform: scale(1.05);
}

.brand-info {
  padding: 1.75rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.brand-desc {
  font-size: var(--type-small);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================================
   STAT BLOCKS
============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 3rem auto;
  background: transparent;
  padding: 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.stat-block {
  background: var(--bg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
}

.stat-block:last-child {
  border-right: none;
}

.stats-row.visible .stat-block {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stats-row.visible .stat-block:nth-child(1) { transition-delay: 0.1s; }
.stats-row.visible .stat-block:nth-child(2) { transition-delay: 0.2s; }
.stats-row.visible .stat-block:nth-child(3) { transition-delay: 0.3s; }
.stats-row.visible .stat-block:nth-child(4) { transition-delay: 0.4s; }

.stat-number {
  font-family: var(--font-bigtext);
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   TECHNIQUE BREAKDOWN (KỲ 4)
============================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
}

.tech-card {
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.3s, background 0.3s;
}

.tech-card:hover {
  border-color: var(--border-accent);
  background: var(--surface);
}

.tech-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.tech-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.tech-desc {
  font-size: var(--type-small);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   HORIZONTAL VISUAL PILLARS (KỲ 5)
============================================================ */
.visual-pillars {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.visual-pillar-card {
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s;
}

.visual-pillar-card:hover {
  border-color: var(--border-accent);
}

.visual-pillar-card .img-wrap {
  height: 180px;
  overflow: hidden;
}

.visual-pillar-card .img-wrap img {
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 0.6s var(--ease-expo);
}

.visual-pillar-card:hover .img-wrap img {
  transform: scale(1.04);
  filter: none;
}

.visual-pillar-card .card-content {
  padding: 1.25rem;
}

.vp-number {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.vp-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.vp-desc {
  font-size: var(--type-small);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================================
   PLUR VALUES (KỲ 6)
============================================================ */
.plur-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 2rem auto;
  background: transparent;
  padding: 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.plur-item {
  background: var(--bg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}

.plur-item:last-child {
  border-right: none;
}

.plur-item:hover {
  background: var(--surface);
}

.plur-letter {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.plur-word {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.plur-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ============================================================
   HIGHLIGHT BOX
============================================================ */
.highlight-box {
  margin: 2.5rem 0;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.highlight-box-inner {
  background: var(--surface);
  border: 1px solid var(--border-accent);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.highlight-box-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  pointer-events: none;
}

.highlight-box-inner .hb-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.highlight-box-inner .hb-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

/* ============================================================
   VENUE CALLOUT (KỲ 4, 9)
============================================================ */
.callout-strip {
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
}

.callout-strip-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--surface);
  border-left: 3px solid var(--accent-pink);
}

.callout-strip-inner.accent {
  border-left-color: var(--accent);
}

.callout-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent-pink);
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
}

.callout-strip-inner.accent .callout-number {
  color: var(--accent);
}

.callout-text {
  font-size: var(--type-small);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   CHAPTER CLOSING (KỲ 10)
============================================================ */
.closing-section {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 6rem 2rem 8rem;
  text-align: center;
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  max-width: 660px;
  margin: 0 auto 2.5rem;
  letter-spacing: -0.03em;
  text-align: left; /* Left-aligned text within centered container */
}

.closing-body {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.65;
  color: #dfdfdf;
  max-width: 660px;
  margin: 0 auto 5rem;
  text-align: left; /* Left-aligned text within centered container */
}

.closing-body p {
  margin-bottom: 1.5rem;
}
.closing-body p:last-child {
  margin-bottom: 0;
}

.closing-grand-statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  width: 80vw; /* Spans 80% of screen width */
  max-width: 100%;
  margin: 0 auto 6rem; /* Center the quote block on page */
  letter-spacing: -0.03em;
  text-align: center; /* Center-align the text lines */
  box-sizing: border-box;
}

/* Word-by-word closing reveal */
.closing-word {
  display: inline-block;
  margin-right: 0.28em;
  white-space: nowrap;
  will-change: transform, opacity;
}

.closing-credit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.75;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================================
   FOOTER
============================================================ */
#footer {
  position: relative;
  z-index: 21;
  /* Stack above the sticky Chapter 10 */
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-brand span {
  color: var(--accent);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: var(--type-caption);
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-align: right;
}

/* ============================================================
   SCROLL REVEAL (JS-driven classes)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Custom reveal animations for Intro Split Layout (Pure Fade-In, No Movement) */
.intro-left-col .reveal {
  opacity: 0;
  transform: translateY(0);
  /* Override global reveal shift */
  transition: opacity 0.8s var(--ease-expo);
}

/* Card animation override block removed since cards were redesigned into an interactive 3-column panel system */

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 992px) {

  .cover-side-left,
  .cover-side-right {
    display: none;
  }

  .chapter-divider .divider-dot {
    display: none;
  }

  .chapter-body {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-left: none;
    border-right: none;
    padding: 3rem 1.5rem;
  }

  /* Reset layout constraints for all body elements on mobile */
  .chapter-body .prose-section,
  .chapter-body .pull-quote,
  .chapter-body .highlight-box,
  .chapter-body .chapter-next,
  .chapter-body .callout-strip,
  .chapter-body .image-break,
  .chapter-body .stats-row,
  .chapter-body .brand-grid,
  .chapter-body .timeline,
  .chapter-body .tech-grid,
  .chapter-body .visual-pillars,
  .chapter-body .plur-grid,
  .chapter-body .horizontal-scroll-container,
  .chapter-body .closing-section {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .horizontal-scroll-sticky {
    position: relative;
    top: auto;
    height: auto;
    display: block;
    overflow: visible;
  }

  .horizontal-scroll-wrap {
    height: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  /* Disable intersection dots on mobile */
  .horizontal-scroll-wrap::before,
  .horizontal-scroll-wrap::after,
  .horizontal-scroll-wrap-dots::before,
  .horizontal-scroll-wrap-dots::after,
  .pillar-item::before,
  .pillar-item::after {
    display: none !important;
  }

  .pillars-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    gap: 0;
  }

  .pillar-item {
    width: 290px;
    height: auto;
    scroll-snap-align: start;
    border-right: 1px solid var(--border);
    padding: 3rem 1.5rem;
    justify-content: flex-start;
  }

  .pillar-item .pillar-img img {
    width: 160px;
    height: 160px;
  }

  .pillar-item:last-child {
    border-right: none;
  }

  .pull-quote {
    padding: 1.5rem !important;
    margin: 2.5rem 0;
  }

  .image-break {
    margin: 2.5rem 0;
  }
}

@media (max-width: 768px) {
  .pull-quote::before {
    transition: transform 0.7s var(--ease-expo);
  }

  .pull-quote.reveal {
    --quote-line-scale: 0;
  }

  .pull-quote.reveal blockquote,
  .pull-quote.reveal cite {
    opacity: 0;
    transform: translate3d(-12px, 8px, 0);
    transition:
      opacity 0.65s var(--ease-expo),
      transform 0.65s var(--ease-expo);
  }

  .pull-quote.reveal cite {
    transition-delay: 0.16s;
  }

  .pull-quote.reveal.visible {
    --quote-line-scale: 1;
  }

  .pull-quote.reveal.visible blockquote,
  .pull-quote.reveal.visible cite {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  #cover .cover-header {
    padding: 0 1rem;
  }

  .cover-title {
    white-space: normal;
    font-size: clamp(2rem, 10vw, 3.5rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .cover-subtitles-wrap {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0;
  }

  .cover-subtitle-left,
  .cover-subtitle-right {
    max-width: 100%;
    text-align: center;
    font-size: clamp(0.8rem, 4.2vw, 0.95rem);
    line-height: 1.35;
  }

  .cover-subtitle-left br,
  .cover-subtitle-right br {
    display: none;
  }

  #cover .cover-footer {
    padding: 0 1rem;
  }

  .cover-bottom-title {
    font-size: clamp(2rem, 10vw, 4.5rem);
  }

  #floating-menu-container {
    width: 320px;
    bottom: 1rem;
    left: auto;
    right: 1rem;
  }

  .pill-title-container {
    width: 200px;
  }

  #floating-menu-panel {
    padding: 20px;
    gap: 20px;
  }

  .panel-header-title {
    font-size: 16px;
  }

  .panel-list {
    gap: 8px;
  }

  .pi-label {
    font-size: 13px;
  }

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

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

  .plur-grid .plur-item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .plur-grid .plur-item:nth-child(2n) {
    border-right: none;
  }

  .plur-grid .plur-item:nth-child(3),
  .plur-grid .plur-item:nth-child(4) {
    border-bottom: none;
  }

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

  .timeline-line-bg,
  .timeline-line-active {
    left: calc(clamp(1.5rem, 5vw, 4rem) + 1.5rem);
  }

  .callout-strip-inner {
    flex-direction: column;
    text-align: center;
  }

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

  .stats-row .stat-block {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .stats-row .stat-block:nth-child(2n) {
    border-right: none;
  }

  .stats-row .stat-block:nth-child(3),
  .stats-row .stat-block:nth-child(4) {
    border-bottom: none;
  }
}

@media (min-width: 769px) {
  .reveal,
  .stat-block {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .loading-text-ravolution,
  .loading-text-ten-years,
  .closing-word {
    will-change: auto;
  }
}

@media (max-width: 480px) {
  .plur-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   HIGHLIGHT TEXT
============================================================ */
.text-accent {
  color: var(--accent);
}

.text-pink {
  color: var(--accent-pink);
}

/* ============================================================
   CHAPTER BG ACCENTS
============================================================ */
.chapter::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  background: none;
  pointer-events: none;
  z-index: 0;
}

/* Kỳ chẵn dùng pink glow */
.chapter:nth-child(even)::after {
  background: none;
}

.chapter>* {
  position: relative;
  z-index: 1;
}

/* ============================================================
   FLOATING MENU
============================================================ */
#menu-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-expo);
  width: 20px;
  height: 20px;
}

#menu-toggle:hover {
  color: var(--accent);
  transform: scale(1.15);
}

#menu-toggle::before {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s var(--ease-expo), transform 0.25s var(--ease-expo);
  pointer-events: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

#menu-toggle:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-divider {
  width: 1px;
  height: 12px;
  background: var(--border);
  margin: 0 0.5rem 0 0.25rem;
}

/* Menu Overlay */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-expo);
  display: flex;
  flex-direction: column;
  padding: 2rem clamp(1.5rem, 5vw, 6rem);
}

#menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.menu-logo span {
  color: var(--accent);
}

.menu-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.menu-close-btn:hover {
  color: var(--accent-pink);
}

.menu-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.menu-col-left {
  max-width: 420px;
}

.menu-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent-pink);
  display: block;
  margin-bottom: 1.5rem;
}

.menu-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.menu-desc {
  font-size: var(--type-small);
  color: var(--text-muted);
  line-height: 1.7;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 1rem;
}

/* Custom scrollbar for menu list */
.menu-list::-webkit-scrollbar {
  width: 4px;
}

.menu-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s var(--ease-expo);
  border: 1px solid transparent;
}

.menu-item:hover {
  background: var(--surface);
  border-color: var(--border);
  transform: translateX(10px);
}

.mi-num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  font-size: var(--type-small);
}

.menu-item:hover .mi-num {
  color: var(--accent-pink);
}

.mi-label {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

.menu-item:hover .mi-label {
  color: var(--text);
}

@media (max-width: 768px) {
  .menu-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: flex-start;
  }

  .menu-col-left {
    display: none;
  }

  .menu-list {
    max-height: 60vh;
  }

  .menu-item:hover {
    transform: translateX(5px);
  }
}

/* ============================================================
   MOBILE POLISH
============================================================ */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  body {
    overflow-x: clip;
  }

  #cover {
    min-height: 100svh;
    min-height: 100dvh;
    padding:
      max(1rem, env(safe-area-inset-top))
      max(1rem, env(safe-area-inset-right))
      max(1rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
  }

  #cover .cover-header,
  #cover .cover-footer {
    padding-left: 0;
    padding-right: 0;
  }

  .cover-title {
    max-width: none;
    margin-inline: auto;
    font-size: clamp(2.15rem, 12vw, 4.5rem);
    line-height: 0.95;
  }

  .cover-subtitle-left,
  .cover-subtitle-right {
    max-width: 100%;
    font-size: clamp(0.85rem, 4.6vw, 1rem);
  }

  .chapter-body {
    padding:
      3.5rem max(1.25rem, env(safe-area-inset-right))
      4.5rem max(1.25rem, env(safe-area-inset-left));
  }

  .prose-section + .prose-section {
    padding-top: 2rem;
  }

  .section-heading {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .image-break {
    width: 100%;
    margin: 2.75rem 0;
  }

  .image-break img {
    min-height: 220px;
    max-height: 68dvh;
    object-fit: cover;
  }

  .image-dual {
    flex-direction: column;
    gap: 1rem;
    margin: 2.75rem 0;
  }

  .image-caption {
    padding-top: 0.75rem;
    font-size: 0.62rem;
    line-height: 1.5;
  }

  .pull-quote {
    padding: 1.5rem 1.25rem !important;
  }

  .pull-quote blockquote {
    font-size: clamp(1.2rem, 6vw, 1.55rem);
  }

  .stats-row {
    gap: 0;
  }

  .stat-block {
    min-width: 0;
    padding: 1.4rem 0.75rem;
  }

  .stat-number {
    font-size: clamp(2.1rem, 12vw, 3.25rem);
  }

  .brand-grid,
  .visual-pillars {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 0 !important;
    gap: 1rem !important;
  }

  .tech-card {
    padding: 1.25rem !important;
  }

  .timeline {
    padding-left: 0;
    padding-right: 0;
  }

  .timeline-item {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 1rem;
  }

  .timeline-line-bg,
  .timeline-line-active {
    left: 26px;
  }

  .timeline-content {
    min-width: 0;
  }

  .horizontal-scroll-wrap {
    margin-inline: -1.25rem;
    padding-left: 1.25rem;
    scroll-padding-left: 1.25rem;
  }

  .pillar-item {
    width: min(82vw, 320px);
    padding: 2rem 1.25rem;
  }

  .closing-section {
    padding-inline: 0;
  }

  .closing-title {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .closing-body {
    font-size: 1rem;
  }

  .closing-grand-statement {
    width: 100%;
    margin-bottom: 4rem;
    font-size: clamp(1.55rem, 7.6vw, 2.35rem);
    text-align: left;
  }

  #floating-menu-container {
    width: 320px;
    max-width: calc(100vw - 2rem);
    left: auto;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    transform: translateY(24px);
  }

  #floating-menu-container.visible {
    transform: translateY(0);
  }

  .pill-title-container {
    width: min(58vw, 230px);
  }

  #floating-menu-panel {
    width: 100%;
    max-height: min(68dvh, 560px);
    overflow-y: auto;
  }

  #menu-overlay {
    padding:
      max(1rem, env(safe-area-inset-top))
      max(1rem, env(safe-area-inset-right))
      max(1rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
  }

  .menu-container {
    min-height: 0;
    padding: 1rem 0 0;
  }

  .menu-list {
    max-height: none;
    height: calc(100dvh - 6rem);
    padding-right: 0.35rem;
  }

  .menu-item {
    min-height: 52px;
    gap: 1rem;
    padding: 0.8rem 0.75rem;
  }

  .mi-label {
    font-size: 0.95rem;
    line-height: 1.35;
  }
}

@media (max-width: 390px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .stats-row .stat-block {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stats-row .stat-block:last-child {
    border-bottom: 0;
  }

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

  .plur-grid .plur-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .plur-grid .plur-item:last-child {
    border-bottom: 0;
  }
}

/* ============================================================
   CONTENT AREA
============================================================ */
#content-area {
  position: relative;
  z-index: 20;
  background: var(--bg);
}

/* ============================================================
   CHAPTER SERIES
============================================================ */
#chapter-series {
  position: relative;
}

/* Series Header */
.series-header {
  padding: clamp(4rem, 8vh, 7rem) 2rem clamp(2rem, 4vh, 3rem);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.series-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.series-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tag-accent {
  color: var(--accent);
  font-weight: 600;
}

.tag-divider {
  color: var(--text-dim);
}

.tag-label {
  color: var(--text-muted);
  opacity: 0.6;
}

.series-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.series-desc {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: var(--text-muted);
  opacity: 0.7;
  line-height: 1.5;
}

/* Sticky Chapter Nav Bar */
.chapter-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.chapter-nav.is-stuck {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.chapter-nav-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 0 1rem;
}

.chapter-nav-inner::-webkit-scrollbar {
  display: none;
}

.chapter-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  scroll-snap-align: start;
  position: relative;
}

.chapter-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-expo);
}

.chapter-tab:hover {
  color: var(--text);
}

.chapter-tab.active {
  color: var(--accent);
}

.chapter-tab.active::after {
  transform: scaleX(1);
}

.tab-num {
  font-weight: 600;
  color: var(--accent);
  opacity: 0.5;
  font-size: 0.65rem;
  transition: opacity 0.3s ease;
}

.chapter-tab.active .tab-num {
  opacity: 1;
}

.tab-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: -0.02em;
}

/* Tab separator between main and chapters */
.tab-separator {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 0.3rem;
  align-self: center;
}

/* Main tab special styling */
.chapter-tab.tab-main {
  background: rgba(175, 229, 75, 0.06);
  border-left: none;
}

.chapter-tab.tab-main .tab-label {
  font-weight: 700;
  letter-spacing: 0;
}

/* Chapter Content Panels */
.chapter-panels {
  position: relative;
  min-height: 60vh;
}

.chapter-panel {
  display: none;
  animation: chapterFadeIn 0.5s ease forwards;
}

.chapter-panel.active {
  display: block;
}

@keyframes chapterFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chapter-content {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vh, 4rem) 2rem clamp(3rem, 6vh, 5rem);
}

.chapter-meta {
  margin-bottom: 1.5rem;
}

.chapter-kicker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.chapter-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}

.chapter-body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
  line-height: 1.85;
  color: var(--text-muted);
}

.chapter-body p {
  margin-bottom: 1.4rem;
}

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

.chapter-body .feature-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.chapter-body h4 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding-left: 0.8rem;
  border-left: 3px solid var(--accent);
}

/* Chapter Bottom Navigation */
.chapter-nav-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.chapter-prev-btn,
.chapter-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chapter-prev-btn:hover,
.chapter-next-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(175, 229, 75, 0.05);
}

/* ============================================================
   SECTION DIVIDER
============================================================ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  max-width: 780px;
  margin: 0 auto;
  padding-top: clamp(3rem, 6vh, 5rem);
  padding-bottom: clamp(1rem, 2vh, 2rem);
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  opacity: 0.4;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================
   MAIN FEATURE ARTICLE (BÀI TO)
============================================================ */
#main-feature {
  padding-bottom: clamp(3rem, 6vh, 5rem);
}

.feature-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

.feature-header {
  margin-bottom: 2.5rem;
}

.feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border-accent);
  background: rgba(175, 229, 75, 0.05);
}

.feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.feature-body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
  line-height: 1.85;
  color: var(--text-muted);
}

.feature-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.feature-body p {
  margin-bottom: 1.4rem;
}

.feature-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 700;
  color: var(--accent);
  margin: 2.8rem 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(2rem, 4vh, 3rem) 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.footer-credit {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.4;
}

/* ============================================================
   CONTENT RESPONSIVE (Mobile)
============================================================ */
@media (max-width: 768px) {
  .chapter-tab {
    padding: 0.85rem 1rem;
  }

  .tab-label {
    font-size: 0.72rem;
  }

  .chapter-content {
    padding: 2rem 1.25rem 3rem;
  }

  .chapter-heading {
    font-size: 1.3rem;
  }

  .feature-article {
    padding: 0 1.25rem;
  }

  .series-header {
    padding: 3rem 1.25rem 2rem;
  }

  .section-divider {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

}

/* ============================================================
   MAGAZINE LAYOUT — 2-COLUMN EDITORIAL GRID
   Row 1: Title (left) | Nav-list (right)  — độc lập nhau
   Row 2: Article text (left) | Images (right)
============================================================ */

/* ── Outer wrapper ── */
.magazine-layout {
  background: transparent;
  color: #f5f5f5;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  margin: 0 4rem;
  box-sizing: border-box;
  position: relative;
  --mag-stroke-color: #5F5F5F;
  --mag-stroke-opacity: 1;
  --mag-stroke-progress: 1;
  will-change: transform, opacity;
}

.magazine-layout::before,
.magazine-layout::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--mag-stroke-color);
  opacity: var(--mag-stroke-opacity);
  transform: scaleY(var(--mag-stroke-progress));
  transform-origin: top center;
  pointer-events: none;
  z-index: 4;
}

.magazine-layout::before {
  left: -1px;
}

.magazine-layout::after {
  right: -1px;
}

/* ── Row container ── */
.mag-row {
  display: grid;
  grid-template-columns: 60% 40%;
}

/* ── Header row: title left, nav right ── */
.mag-header-row {
  grid-template-columns: 55% 45%;
  border-bottom: 1px solid transparent;
  align-items: stretch;
  min-height: 680px;
  position: relative;
  --mag-stroke-color: #5F5F5F;
  --mag-stroke-opacity: 1;
  --mag-stroke-progress: 1;
}

.mag-header-row::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--mag-stroke-color);
  opacity: var(--mag-stroke-opacity);
  transform: scaleX(var(--mag-stroke-progress));
  transform-origin: left center;
  pointer-events: none;
  z-index: 4;
}

.mag-title-cell {
  padding: 3rem 7rem 2.5rem 4rem;
  border-right: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  --mag-stroke-color: #5F5F5F;
  --mag-stroke-opacity: 1;
  --mag-stroke-progress: 1;
}

.mag-title-cell::after,
.mag-text-cell::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 1px;
  background: var(--mag-stroke-color);
  opacity: var(--mag-stroke-opacity);
  transform: scaleY(var(--mag-stroke-progress));
  transform-origin: top center;
  pointer-events: none;
  z-index: 4;
}

.article-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 2rem;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.04em;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-sep { color: rgba(255,255,255,0.18); }

/* Nav cell on the right of header row */
.mag-nav-cell {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  box-sizing: border-box;
}

/* ── Content row: article text left, images right ── */
.mag-content-row {
  grid-template-columns: 40% 60%;
  align-items: start;
}

.mag-text-cell {
  padding: 5rem 4rem;
  border-right: 1px solid transparent;
  position: relative;
  --mag-stroke-color: #5F5F5F;
  --mag-stroke-opacity: 1;
  --mag-stroke-progress: 1;
  --mag-stroke-thickness: 1px;
}

.mag-image-cell {
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

/* Image stack on the right column */
.article-image-stack {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.article-stack-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.04);
}

.article-stack-img.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.article-stack-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-inline-image-mobile {
  display: none;
}

/* ── Article body text ── */
.article-body {
  color: #DFDFDF;
  font-family: "PxGroteskVN-Regular", var(--font-body), sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 145%; /* 26.1px */
  letter-spacing: -0.54px;
}

.article-body p {
  color: #DFDFDF;
  font-family: "PxGroteskVN-Regular", var(--font-body), sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 145%; /* 26.1px */
  letter-spacing: -0.54px;
  margin: 0 0 1.6em;
}



.article-section-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 4rem 0 4rem;
  letter-spacing: -0.035em;
  border-left: none;
  padding-left: 0;
}

/* Article closing block */
.article-closing {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── Magazine nav list (inside nav-cell) ── */
.magazine-nav-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}

.mag-nav-cell .nav-grid-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.7rem 2.5rem;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, padding-left 0.18s ease;
  flex: 1;
  min-height: 0;
  position: relative;
  --mag-stroke-color: #5F5F5F;
  --mag-stroke-opacity: 1;
  --mag-stroke-progress: 1;
  will-change: transform, opacity, background;
}

.mag-nav-cell .nav-grid-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--mag-stroke-color);
  opacity: var(--mag-stroke-opacity);
  transform: scaleX(var(--mag-stroke-progress));
  transform-origin: left center;
  pointer-events: none;
}

.mag-nav-cell .nav-grid-item:last-child {
  border-bottom: none;
}

.mag-nav-cell .nav-grid-item:last-child::after {
  display: none;
}

.mag-nav-cell .nav-grid-item:hover {
  background: rgba(255,255,255,0.04);
}

.mag-nav-cell .nav-grid-item:hover .nav-grid-text {
  color: var(--accent);
}

.mag-nav-cell .nav-grid-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: 0.04em;
  min-width: 4rem;
}

.mag-nav-cell .nav-grid-text {
  color: #FFF;
  font-family: "PxGroteskVN-Bold", var(--font-display), sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  line-height: 110%; /* 18.7px */
  letter-spacing: -0.51px;
  flex: 1;
  transition: color 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mag-nav-cell .nav-grid-arrow {
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: color 0.18s ease, transform 0.18s ease;
}

.mag-nav-cell .nav-grid-item:hover .nav-grid-arrow {
  color: var(--accent);
  transform: translateX(5px);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .magazine-layout {
    margin: 0;
    border-left: none;
    border-right: none;
  }
  .mag-row {
    grid-template-columns: 1fr;
  }
  .mag-title-cell {
    border-right: none;
    border-bottom: 1px solid #5F5F5F;
    padding: 3rem 2rem 2.5rem;
  }
  .mag-nav-cell {
    border-bottom: 1px solid #5F5F5F;
  }
  .mag-text-cell {
    border-right: none;
    padding: 3rem 2rem;
  }
  .mag-image-cell {
    position: static;
    padding: 0;
  }
  .article-stack-img img {
    height: 240px;
  }
}

/* ── Helper Classes for Magazine Content ── */
.article-body strong {
  color: var(--accent);
  font-weight: 600;
}

.pull-quote,
.pullquote {
  position: relative;
  background: #151515;
  border-left: 0;
  border-bottom: 0;
  border-top: 3px solid #afe54b;
  padding: 36px;
  margin: 4rem 0;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
  font-family: "PxGroteskVN-Bold", var(--font-display), sans-serif;
  font-size: 24px;
  font-weight: 700;
  font-style: normal;
  color: #dfdfdf;
  line-height: 1.22;
  letter-spacing: -1px;
}

.pull-quote p,
.pullquote p {
  color: #dfdfdf;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin: 0;
}

.pull-quote cite,
.pullquote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  color: #636363;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

/* ============================================================
   MODAL POPUP SYSTEM
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
  box-sizing: border-box;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 1280px;
  background: #0D0D0D;
  border: 1px solid #5F5F5F;
  box-sizing: border-box;
  transform: translateY(30px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  height: 85vh;
  max-height: 900px;
  display: flex;
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-grid {
  display: grid;
  grid-template-columns: 35% 65%;
  width: 100%;
  height: 100%;
}

.modal-cell {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Left Column: Internal Chapter Navigator ── */
.modal-left-nav {
  background: #0D0D0D;
  border-right: 1px solid #5F5F5F;
  padding: 3rem 2.5rem;
}

.modal-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.modal-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.05em;
}

.modal-nav-logo {
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.modal-nav-logo-img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.modal-left-nav .modal-nav-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.modal-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(95, 95, 95, 0.3);
  cursor: pointer;
  transition: background 0.18s ease, padding-left 0.18s ease;
  min-height: 0;
}

.modal-nav-item:last-child {
  border-bottom: none;
}

.modal-nav-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.modal-nav-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: 0.04em;
  min-width: 4rem;
  padding-top: 0.15rem;
}

.modal-nav-text {
  font-family: "PxGroteskVN-Bold", var(--font-display), sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  flex: 1;
  line-height: 1.25;
  transition: color 0.18s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-nav-item:hover .modal-nav-text {
  color: var(--accent);
}

.modal-nav-arrow {
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 0.2rem;
  transition: color 0.18s ease, transform 0.18s ease;
}

.modal-nav-item:hover .modal-nav-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Active State in Modal Nav */
.modal-nav-item.active {
  background: rgba(175, 229, 75, 0.04);
}

.modal-nav-item.active .modal-nav-text {
  color: var(--accent);
}

.modal-nav-item.active .modal-nav-arrow {
  color: var(--accent);
}

/* ── Right Column: Detail View (Top Image + Bottom Text) ── */
.modal-detail-view {
  background: #0D0D0D;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #5F5F5F;
  color: #ffffff;
  cursor: pointer;
  z-index: 1000;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.modal-close-btn:hover {
  color: var(--accent);
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

.modal-media-top {
  width: 100%;
  height: 480px;
  flex-shrink: 0;
  overflow: hidden;
  border-bottom: 1px solid #5F5F5F;
}

.modal-media-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-content-bottom {
  padding: 3rem;
  box-sizing: border-box;
}

.modal-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}

.modal-chapter-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 1.8rem 0;
  letter-spacing: -0.02em;
}

.modal-chapter-body {
  font-family: "PxGroteskVN-Regular", var(--font-body), sans-serif;
  font-size: 17px;
  line-height: 145%;
  letter-spacing: -0.3px;
  color: #DFDFDF;
}

.modal-chapter-body p {
  font-family: "PxGroteskVN-Regular", var(--font-body), sans-serif;
  font-size: 17px;
  line-height: 145%;
  letter-spacing: -0.3px;
  color: #DFDFDF;
  margin-bottom: 1.4em;
}

.modal-chapter-body p:last-child {
  margin-bottom: 0;
}

.modal-chapter-body p strong {
  color: var(--accent);
  font-weight: 600;
}

/* Custom Scrollbars */
.modal-left-nav .modal-nav-list::-webkit-scrollbar,
.modal-detail-view::-webkit-scrollbar {
  width: 4px;
}

.modal-left-nav .modal-nav-list::-webkit-scrollbar-track,
.modal-detail-view::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}

.modal-left-nav .modal-nav-list::-webkit-scrollbar-thumb,
.modal-detail-view::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.modal-left-nav .modal-nav-list::-webkit-scrollbar-thumb:hover,
.modal-detail-view::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ── Mobile Responsive for Modal ── */
@media (max-width: 992px) {
  .modal-overlay {
    padding: 1rem;
  }
  
  .modal-container {
    height: 90vh;
    max-height: none;
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-left-nav {
    display: none; /* Hide internal navigator on small devices to prioritize content */
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-media-top {
    height: 35%;
  }
}

/* Override horizontal scroll inside the modal to make it scroll horizontally naturally */
.modal-chapter-body .horizontal-scroll-container {
  overflow: visible;
  width: 100%;
  margin: 3rem 0;
  box-sizing: border-box;
}

.modal-chapter-body .horizontal-scroll-container::before,
.modal-chapter-body .horizontal-scroll-container::after,
.modal-chapter-body .horizontal-scroll-sticky::before,
.modal-chapter-body .horizontal-scroll-sticky::after,
.modal-chapter-body .horizontal-scroll-wrap::before,
.modal-chapter-body .horizontal-scroll-wrap::after,
.modal-chapter-body .horizontal-scroll-wrap-dots::before,
.modal-chapter-body .horizontal-scroll-wrap-dots::after {
  display: none !important;
  content: none !important;
}

.modal-chapter-body .horizontal-scroll-container,
.modal-chapter-body .horizontal-scroll-sticky,
.modal-chapter-body .horizontal-scroll-wrap {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
  border: none !important;
  margin: 3.5rem 0 !important;
  padding: 0 !important;
}

.modal-chapter-body .pillars-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  .modal-chapter-body .pillars-grid {
    grid-template-columns: 1fr !important;
  }
}

.modal-chapter-body .pillar-item {
  width: 100% !important;
  height: auto !important;
  min-height: 360px !important;
  background: #151515 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 2rem 1.8rem !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.modal-chapter-body .pillar-item:hover {
  border-color: var(--accent) !important;
  transform: translateY(-4px);
}

.modal-chapter-body .pillar-icon {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.modal-chapter-body .pillar-img {
  width: 100%;
  height: 150px;
  overflow: hidden;
  margin: 1.2rem 0;
}

.modal-chapter-body .pillar-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: none !important;
  margin: 0 !important;
}

.modal-chapter-body .pillar-title {
  font-family: "PxGroteskVN-Bold", var(--font-display), sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.modal-chapter-body .pillar-desc {
  font-family: "PxGroteskVN-Regular", var(--font-body), sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #DFDFDF;
  margin: 0;
}

/* ── Modal Sub-article Layout & Margin Reset ── */
.modal-chapter-body {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}

.modal-chapter-body .prose-section,
.modal-chapter-body .highlight-box,
.modal-chapter-body .chapter-next,
.modal-chapter-body .callout-strip,
.modal-chapter-body .stats-row,
.modal-chapter-body .brand-grid,
.modal-chapter-body .timeline,
.modal-chapter-body .tech-grid,
.modal-chapter-body .visual-pillars,
.modal-chapter-body .plur-grid,
.modal-chapter-body .image-break,
.modal-chapter-body .closing-section {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.modal-chapter-body .image-break {
  margin-top: 3.8rem !important;
  margin-bottom: 3.8rem !important;
  clear: both !important;
}

.modal-chapter-body .image-break + p,
.modal-chapter-body .image-break + .prose-section p:first-child {
  margin-top: 1.5rem !important;
}

.modal-chapter-body .image-break > p,
.modal-chapter-body .image-break > .prose-section,
.modal-chapter-body .image-break > .pull-quote {
  margin-top: 1.5rem !important;
}

.modal-chapter-body img,
.modal-chapter-body .image-break img,
.modal-chapter-body .image-dual img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border: none !important;
}

.modal-chapter-body .image-dual {
  display: flex !important;
  gap: 1.5rem !important;
  margin-top: 3.8rem !important;
  margin-bottom: 3.8rem !important;
  width: 100% !important;
}

.modal-chapter-body .image-dual .image-item {
  flex: 1 !important;
}

@media (max-width: 768px) {
  .modal-chapter-body .image-dual {
    flex-direction: column !important;
    gap: 1rem !important;
  }
}

.modal-chapter-body .pull-quote {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 3.5rem !important;
  margin-bottom: 3.5rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 36px !important;
  box-sizing: border-box !important;
}

/* ── Modal Stats Row Override ── */
.modal-chapter-body .stats-row {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: repeat(2, 1fr) !important;
  width: 100% !important;
  margin: 3.5rem 0 !important;
  background: transparent !important;
  border: none !important;
  gap: 1px !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  outline: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-chapter-body .stat-block {
  opacity: 1 !important;
  transform: none !important;
  background: #111 !important;
  border: none !important;
  border-right: none !important;
  padding: 2.4rem 2rem !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

.modal-chapter-body .stat-block::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 32px !important;
  height: 2px !important;
  background: var(--accent, #afe54b) !important;
}

.modal-chapter-body .stat-block:last-child {
  border-right: none !important;
}

.modal-chapter-body .stat-block .stat-number {
  font-size: clamp(2.8rem, 7vw, 4.2rem) !important;
  line-height: 1 !important;
  margin-bottom: 0.5rem !important;
  color: #fff !important;
  letter-spacing: -0.04em !important;
}

.modal-chapter-body .stat-block .stat-label {
  font-size: 0.68rem !important;
  letter-spacing: 0.14em !important;
  color: rgba(255, 255, 255, 0.45) !important;
  text-transform: uppercase !important;
}

@media (max-width: 768px) {
  .modal-chapter-body .stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto !important;
  }

  .modal-chapter-body .stat-block {
    padding: 1.8rem 1.4rem !important;
  }
}

/* ── Modal Brand Grid Override ── */
.modal-chapter-body .brand-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
  width: 100% !important;
  margin: 3.5rem 0 !important;
  background: transparent !important;
  border: none !important;
}

@media (max-width: 768px) {
  .modal-chapter-body .brand-grid {
    grid-template-columns: 1fr !important;
  }
}

.modal-chapter-body .brand-card {
  background: #151515 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-sizing: border-box !important;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.modal-chapter-body .brand-card:hover {
  border-color: var(--accent) !important;
  transform: none !important;
}

.modal-chapter-body .brand-img {
  aspect-ratio: 16 / 10 !important;
}

.modal-chapter-body .brand-info {
  padding: 1.5rem !important;
}

.modal-chapter-body .brand-desc {
  font-family: "PxGroteskVN-Regular", var(--font-body), sans-serif;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #DFDFDF !important;
}

/* ── Modal Additional Grids Override ── */
.modal-chapter-body .tech-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
  width: 100% !important;
  margin: 3.5rem 0 !important;
  background: transparent !important;
  border: none !important;
}

.modal-chapter-body .visual-pillars {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
  width: 100% !important;
  margin: 3.5rem 0 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
}

.modal-chapter-body .visual-pillar-card {
  background: #141414 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: background 0.3s ease, border-color 0.3s ease !important;
}

.modal-chapter-body .visual-pillar-card:hover {
  background: #1a1a1a !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.modal-chapter-body .visual-pillar-card .img-wrap {
  height: 180px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.modal-chapter-body .visual-pillar-card .img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: none !important;
  transition: none !important;
}

.modal-chapter-body .visual-pillar-card:hover .img-wrap img {
  filter: none !important;
}

.modal-chapter-body .visual-pillar-card .card-content {
  padding: 1.4rem 1.6rem 1.8rem !important;
  flex: 1 !important;
}

.modal-chapter-body .vp-number {
  font-size: 10px !important;
  letter-spacing: 0.2em !important;
  color: var(--accent, #afe54b) !important;
  margin-bottom: 0.5rem !important;
  text-transform: uppercase !important;
}

.modal-chapter-body .vp-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.3 !important;
  margin-bottom: 0.6rem !important;
}

.modal-chapter-body .vp-desc {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  line-height: 1.6 !important;
}

@media (max-width: 768px) {
  .modal-chapter-body .visual-pillars {
    grid-template-columns: 1fr !important;
  }
}

.modal-chapter-body .plur-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.2rem !important;
  width: 100% !important;
  margin: 3.5rem 0 !important;
  background: transparent !important;
}

@media (max-width: 768px) {
  .modal-chapter-body .tech-grid,
  .modal-chapter-body .visual-pillars,
  .modal-chapter-body .plur-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Modal Timeline Showcase Cards ── */
.modal-chapter-body .timeline {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.6rem !important;
  margin: 3.5rem 0 !important;
  width: 100% !important;
  background: transparent !important;
  outline: none !important;
  padding: 0 !important;
}

.modal-chapter-body .timeline-item {
  display: block !important;
  margin-bottom: 0 !important;
  background: #121212 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  box-shadow: none !important;
  position: relative !important;
  transition: border-color 0.3s ease !important;
}

.modal-chapter-body .timeline-item:hover {
  border-color: var(--accent, #afe54b) !important;
  transform: none !important;
  box-shadow: none !important;
}

.modal-chapter-body .timeline-marker {
  display: none !important;
}

/* Horizontal card layout for desktop */
.modal-chapter-body .timeline-content {
  display: grid !important;
  grid-template-columns: 320px 1fr !important;
  align-items: center !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  width: 100% !important;
}

.modal-chapter-body .timeline-image {
  order: 0 !important;
  grid-column: 1 !important;
  grid-row: 1 / span 3 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 220px !important;
  overflow: hidden !important;
  position: relative !important;
  margin: 0 !important;
}

.modal-chapter-body .timeline-image::after {
  display: none !important;
}

.modal-chapter-body .timeline-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.modal-chapter-body .timeline-item:hover .timeline-image img {
  transform: scale(1.02) !important;
}

.modal-chapter-body .timeline-chapter-tag {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 1.6rem 2rem 0.4rem !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--accent, #afe54b) !important;
  margin: 0 !important;
}

.modal-chapter-body .timeline-title {
  grid-column: 2 !important;
  grid-row: 2 !important;
  font-family: var(--font-title, sans-serif) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #ffffff !important;
  margin: 0 0 0.6rem 0 !important;
  padding: 0 2rem !important;
}

.modal-chapter-body .timeline-desc {
  grid-column: 2 !important;
  grid-row: 3 !important;
  font-family: "PxGroteskVN-Regular", var(--font-body), sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: rgba(255,255,255,0.6) !important;
  padding: 0 2rem 1.6rem !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .modal-chapter-body .timeline-content {
    grid-template-columns: 1fr !important;
  }

  .modal-chapter-body .timeline-image {
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 190px !important;
    min-height: 0 !important;
  }

  .modal-chapter-body .timeline-image::after {
    display: none !important;
  }

  .modal-chapter-body .timeline-chapter-tag {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 1.2rem 1.4rem 0.4rem !important;
  }

  .modal-chapter-body .timeline-title {
    grid-column: 1 !important;
    grid-row: 3 !important;
    padding: 0 1.4rem 0.5rem !important;
  }

  .modal-chapter-body .timeline-desc {
    grid-column: 1 !important;
    grid-row: 4 !important;
    padding: 0 1.4rem 1.4rem !important;
  }
}

@media (max-width: 768px) {
  .modal-chapter-body .timeline {
    grid-template-columns: 1fr !important;
  }

  .modal-chapter-body .timeline-image {
    height: 180px !important;
  }
}

/* ─────────────────────────────────────────
   FLOATING MENU NAVIGATOR STYLING
   (Matches .magazine-nav-list style exactly)
───────────────────────────────────────── */
.floating-nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.3rem;
  border-bottom: 1px solid #5F5F5F;
  cursor: pointer;
  transition: background 0.18s ease, padding-left 0.18s ease;
  min-height: 0;
  text-decoration: none;
}

.floating-nav-item:last-child {
  border-bottom: none;
}

.floating-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.floating-nav-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: 0.04em;
  min-width: 3.5rem;
  white-space: nowrap;
}

.floating-nav-text {
  font-family: "PxGroteskVN-Bold", var(--font-display), sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff; /* Pure white, matches magazine list */
  flex: 1;
  line-height: 110%; /* Matches line-height of magazine list */
  letter-spacing: -0.51px; /* Matches letter-spacing of magazine list */
  transition: color 0.18s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-nav-item:hover .floating-nav-text {
  color: var(--accent);
}

.floating-nav-arrow {
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 0.2rem;
  transition: color 0.18s ease, transform 0.18s ease;
}

.floating-nav-item:hover .floating-nav-arrow {
  color: var(--accent);
  transform: translateX(5px);
}

/* Active State in Floating Nav */
.floating-nav-item.active {
  background: rgba(175, 229, 75, 0.04);
}

.floating-nav-item.active .floating-nav-text {
  color: var(--accent);
}

.floating-nav-item.active .floating-nav-arrow {
  color: var(--accent);
}

@media (max-width: 1360px) {
  .modal-nav-text,
  .floating-nav-text {
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
  }
  .mag-text-cell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .mag-title-cell {
    padding-left: 2rem;
    padding-right: 4rem;
  }
}

/* ============================================================
   RESPONSIVE OVERRIDES
============================================================ */
@media (max-width: 1180px) {
  .magazine-layout {
    margin: 0 2rem;
  }

  .mag-header-row {
    grid-template-columns: 52% 48%;
    min-height: 600px;
  }

  .mag-title-cell {
    padding: 2.5rem 3rem 2.25rem;
  }

  .mag-nav-cell .nav-grid-item {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .mag-content-row {
    grid-template-columns: minmax(360px, 44%) minmax(0, 56%);
  }

  .mag-text-cell {
    padding: 4rem 3rem;
  }
}

@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  #cover {
    min-height: 100svh;
    min-height: 100dvh;
    padding:
      max(1.15rem, env(safe-area-inset-top))
      max(1rem, env(safe-area-inset-right))
      max(1.25rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
  }

  #cover .cover-header {
    position: static;
    margin-top: 0;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .cover-title,
  .cover-bottom-title {
    white-space: nowrap;
    font-size: clamp(3.0rem, 14.2vw, 5.2rem);
    line-height: 0.84;
    letter-spacing: -0.025em;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    text-align: center;
  }

  .cover-subtitles-wrap {
    position: absolute;
    left: max(1.5rem, env(safe-area-inset-left));
    right: max(1.5rem, env(safe-area-inset-right));
    bottom: max(1.8rem, env(safe-area-inset-bottom));
    display: block;
    margin-top: 0;
    text-align: center;
    z-index: 6;
    width: auto;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .cover-subtitle,
  .cover-subtitle-left,
  .cover-subtitle-right {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
    font-size: clamp(0.82rem, 3.8vw, 0.98rem);
    line-height: 1.35;
    text-align: center;
    color: #ffffff;
    word-break: normal;
    overflow-wrap: break-word;
  }

  #hero-canvas-container {
    top: 22%;
    height: 55%;
    transform-origin: 50% 50%;
  }

  #cover .cover-footer {
    position: absolute;
    top: calc(max(1.05rem, env(safe-area-inset-top)) + clamp(3.2rem, 13.5vw, 4.8rem));
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    z-index: 6;
  }

  .cover-side-left,
  .cover-side-right {
    display: block;
    top: 18%;
    bottom: auto;
    font-size: clamp(0.48rem, 1.6vw, 0.6rem);
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.8);
    z-index: 6;
  }

  .cover-side-left {
    left: max(1rem, env(safe-area-inset-left));
  }

  .cover-side-right {
    right: max(1rem, env(safe-area-inset-right));
  }

  .magazine-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    border-left: none;
    border-right: none;
  }

  .mag-row,
  .mag-header-row,
  .mag-content-row {
    display: contents;
    min-height: 0;
  }

  .mag-title-cell {
    order: 1;
    min-height: auto;
    padding: clamp(2rem, 8vw, 3.25rem) max(1.25rem, env(safe-area-inset-left));
    border-right: none;
    border-bottom: 1px solid #5F5F5F;
    gap: 2rem;
  }

  .article-title {
    font-size: clamp(2.25rem, 10.5vw, 4.75rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
  }

  .article-kicker {
    padding-top: 0;
    line-height: 1.45;
  }

  .mag-nav-cell {
    order: 2;
    border-bottom: 1px solid #5F5F5F;
  }

  .magazine-nav-list {
    margin: 0;
  }

  .mag-nav-cell .nav-grid-item {
    min-height: 68px;
    padding: 1rem max(1.25rem, env(safe-area-inset-left));
    gap: 0.85rem;
    flex: none;
  }

  .mag-nav-cell .nav-grid-num {
    min-width: 3.5rem;
  }

  .mag-nav-cell .nav-grid-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: clamp(0.92rem, 3.4vw, 1.05rem);
    line-height: 1.16;
  }

  .mag-image-cell {
    order: 3;
    display: none;
  }

  .article-inline-image-mobile {
    display: block;
    width: 100%;
    margin: 0 0 1.5rem;
    overflow: hidden;
    border-bottom: 1px solid #5F5F5F;
  }

  .article-inline-image-mobile + .article-section-title {
    margin-top: 0;
  }

  .article-inline-image-mobile img {
    width: 100%;
    height: clamp(240px, 58vw, 420px);
    object-fit: cover;
    display: block;
  }

  .mag-text-cell {
    order: 4;
    padding: clamp(2rem, 7vw, 3.5rem) max(1.25rem, env(safe-area-inset-left));
    border-right: none;
  }

  .article-body,
  .article-body p {
    font-size: clamp(1rem, 3.8vw, 1.08rem);
    line-height: 1.55;
    letter-spacing: -0.02em;
  }

  .article-section-title {
    font-size: clamp(1.8rem, 8vw, 2.65rem);
    line-height: 1.08;
    margin: 3rem 0 1.5rem;
  }

  .pull-quote,
  .pullquote {
    padding: clamp(1.35rem, 5vw, 2rem) !important;
    margin: 2.5rem 0;
    font-size: clamp(1.3rem, 5.5vw, 1.75rem);
  }

  .image-break {
    width: 100%;
    margin: 2.75rem 0;
  }

  .image-break img {
    min-height: 220px;
    max-height: 70dvh;
    object-fit: cover;
  }

  #floating-menu-container {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: min(380px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
  }

  #floating-menu-panel {
    max-height: min(70dvh, 620px);
    overflow-y: auto;
    padding: 1.25rem;
  }

  #floating-menu-pill {
    padding: 0.65rem 0.85rem;
  }

  .pill-title-container {
    width: min(64vw, 280px);
  }

  .floating-nav-text {
    font-size: 13px !important;
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
  }
}

@media (max-width: 768px) {
  .modal-overlay {
    align-items: stretch;
    padding: 0;
  }

  .modal-container {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: none;
    transform: translateY(16px);
  }

  .modal-grid {
    display: block;
    height: 100%;
  }

  .modal-left-nav {
    display: none;
  }

  .modal-detail-view {
    height: 100%;
  }

  .modal-media-top {
    height: clamp(260px, 46dvh, 440px);
  }

  .modal-close-btn {
    top: max(0.9rem, env(safe-area-inset-top));
    right: max(0.9rem, env(safe-area-inset-right));
  }

  .modal-content-bottom {
    padding:
      1.5rem max(1.25rem, env(safe-area-inset-right))
      max(2.5rem, env(safe-area-inset-bottom))
      max(1.25rem, env(safe-area-inset-left));
  }

  .modal-chapter-heading {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.12;
    margin-bottom: 1.4rem;
  }

  .modal-chapter-body,
  .modal-chapter-body p {
    font-size: 1rem;
    line-height: 1.58;
  }

  .modal-chapter-body .pull-quote {
    padding: 1.35rem !important;
  }

  .modal-chapter-body .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .modal-chapter-body .stat-block:nth-child(2n) {
    border-right: none !important;
  }

  .modal-chapter-body .brand-grid,
  .modal-chapter-body .visual-pillars,
  .modal-chapter-body .plur-grid,
  .modal-chapter-body .pillars-grid {
    grid-template-columns: 1fr !important;
  }

  .modal-chapter-body .tech-grid {
    grid-template-columns: 1fr !important;
    padding: 1.5rem 0 !important;
    gap: 1rem !important;
    margin: 2rem 0 !important;
  }

  .modal-chapter-body .tech-card {
    padding: 1.25rem !important;
  }
}

@media (max-width: 480px) {
  #cover {
    padding-top: max(1rem, env(safe-area-inset-top));
  }

  .cover-title,
  .cover-bottom-title {
    font-size: clamp(2.8rem, 14.5vw, 4.4rem);
  }

  .cover-subtitle,
  .cover-subtitle-left,
  .cover-subtitle-right {
    font-size: clamp(0.88rem, 4.0vw, 1.05rem);
    line-height: 1.38;
  }

  .cover-side-left,
  .cover-side-right {
    top: 18%;
    font-size: 0.5rem;
  }

  #hero-canvas-container {
    top: 22%;
    height: 55%;
  }

  .article-title {
    font-size: clamp(2rem, 11.5vw, 3.5rem);
  }

  .mag-nav-cell .nav-grid-item {
    min-height: 74px;
  }

  .mag-nav-cell .nav-grid-num {
    min-width: 3rem;
    font-size: 0.6rem;
  }

  .mag-nav-cell .nav-grid-arrow {
    display: none;
  }

  .article-section-title {
    font-size: clamp(1.6rem, 8.5vw, 2.15rem);
  }

  #floating-menu-container {
    width: calc(100vw - 1.5rem);
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .pill-logo {
    width: 28px;
    height: 28px;
  }

  .pill-title-container {
    width: calc(100vw - 7.5rem);
  }

  .modal-media-top {
    height: 42dvh;
    min-height: 240px;
  }
}

/* ============================================================ */
/* COVER CUSTOM CURSOR                                           */
/* ============================================================ */
.cover-custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.3s var(--ease-expo, ease-out);
}

.cover-custom-cursor.active {
  opacity: 1;
}

.cover-custom-cursor svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cover-custom-cursor .cursor-text {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 8.8px;
  font-weight: 600;
  fill: #ffffff;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transform-origin: 60px 60px;
  animation: spinCursorText 18s linear infinite;
}

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

.cover-custom-cursor .cursor-circle {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.8;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cover-custom-cursor .cursor-arrow {
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

@media (hover: hover) and (pointer: fine) {
  #cover,
  #cover * {
    cursor: none !important;
  }
}

@media (hover: none) or (pointer: coarse) {
  .cover-custom-cursor {
    display: none !important;
  }
}

/* ─────────────────────────────────────────
   POSTER ALBUM SHOWCASE (KỲ 05) - PURE VISUAL REEL
───────────────────────────────────────── */
.poster-album-section {
  margin: 3.5rem 0 !important;
  width: 100% !important;
}

.poster-album-grid {
  display: flex !important;
  gap: 1.2rem !important;
  overflow-x: auto !important;
  padding-bottom: 0.8rem !important;
  width: 100% !important;
  -webkit-overflow-scrolling: touch;
  /* hide scrollbar */
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.poster-album-grid::-webkit-scrollbar {
  display: none !important;
}

.poster-card {
  flex: 0 0 240px !important;
  aspect-ratio: 736 / 1024 !important;
  background: #0e0e0e !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  transition: border-color 0.3s ease !important;
  box-shadow: none !important;
}

.poster-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  filter: brightness(0.85) !important;
  transition: filter 0.3s ease !important;
}

.poster-card:hover {
  border-color: var(--accent, #afe54b) !important;
}

.poster-card:hover img {
  filter: brightness(1) !important;
}

@media (max-width: 768px) {
  .poster-card {
    flex: 0 0 180px !important;
  }
}

.modal-chapter-body .poster-album-section {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 3.5rem 0 !important;
}

/* Modal chapter next navigation card */
.modal-chapter-body .chapter-next {
  display: none !important;
}

@media (max-width: 768px) {
  .modal-chapter-body .chapter-next {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin: 4rem 0 !important;
    padding: 2.5rem 0 1.5rem 0 !important;
    border: none !important;
    border-top: 1px solid #333333 !important;
    background: transparent !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    position: relative !important;
  }

  /* Chevron on bottom-left */
  .modal-chapter-body .chapter-next::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 2.1rem !important; /* Aligned vertically with button text */
    width: 14px !important;
    height: 14px !important;
    background-image: url('assets/arrow.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: transform 0.3s ease !important;
  }

  .modal-chapter-body .chapter-next:hover::before {
    transform: translateX(4px) !important;
  }

  .modal-chapter-body .chapter-next .next-label {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #888888 !important;
    margin-bottom: 0.75rem !important;
  }

  .modal-chapter-body .chapter-next .next-title {
    font-family: var(--font-sans), sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    margin-bottom: 2rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: color 0.3s ease !important;
  }

  .modal-chapter-body .chapter-next:hover .next-title {
    color: var(--accent) !important;
  }

  .modal-chapter-body .chapter-next-btn {
    display: inline-flex !important;
    align-self: flex-end !important; /* Align to the bottom right */
    padding: 0.8rem 1.5rem !important;
    background: var(--accent) !important;
    color: #000000 !important;
    font-family: var(--font-sans), sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border-radius: 0 !important;
    transition: background 0.3s ease !important;
  }

  .modal-chapter-body .chapter-next:hover .chapter-next-btn {
    background: #ffffff !important;
    color: #000000 !important;
  }
}
