/* Chapter 04 — Stage-Morphing Theater + 6 Distinct 5-Axis GPU-Only Showcase Worlds */
.chapter--showcases { background: var(--carbon); color: var(--light); }
.stage-aura-stack { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.stage-aura {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.45s ease;
}
.stage-aura.is-active { opacity: 1; }
.stage-aura[data-aura="celadon-kiln-luster"] { background: radial-gradient(65% 58% at 24% 36%, rgba(124, 184, 155, 0.2), transparent 72%), radial-gradient(45% 45% at 78% 72%, rgba(217, 167, 82, 0.14), transparent 70%); }
.stage-aura[data-aura="geo-topo-radar"] { background: radial-gradient(62% 56% at 50% 34%, rgba(56, 189, 248, 0.2), transparent 72%), radial-gradient(48% 46% at 82% 76%, rgba(229, 184, 91, 0.14), transparent 70%); }
.stage-aura[data-aura="editorial-ink-folio"] { background: radial-gradient(60% 56% at 76% 36%, rgba(216, 158, 67, 0.2), transparent 72%), radial-gradient(44% 48% at 20% 72%, rgba(237, 230, 214, 0.1), transparent 70%); }
.stage-aura[data-aura="kinetic-xray-pulse"] { background: radial-gradient(58% 54% at 26% 64%, rgba(46, 230, 166, 0.19), transparent 72%), radial-gradient(46% 42% at 76% 34%, rgba(239, 68, 68, 0.14), transparent 70%); }
.stage-aura[data-aura="clinical-scan-lumen"] { background: radial-gradient(60% 56% at 52% 62%, rgba(45, 212, 191, 0.2), transparent 72%), radial-gradient(42% 44% at 22% 30%, rgba(234, 179, 8, 0.12), transparent 70%); }
.stage-aura[data-aura="prism-before-after-veil"] { background: radial-gradient(60% 56% at 74% 62%, rgba(232, 121, 155, 0.22), transparent 72%), radial-gradient(48% 48% at 24% 34%, rgba(243, 207, 130, 0.16), transparent 70%); }
.chapter-watermark--morph { color: rgba(245, 247, 252, 0.052); transition: opacity 0.3s ease; }

.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.showcase-card {
  position: relative; padding: 10px;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.showcase-ambient {
  position: absolute; inset: -6px; z-index: 1; pointer-events: none; opacity: 0.32;
  transition: opacity 0.42s ease, transform 0.42s ease;
}
.showcase-surface {
  position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%;
  background: var(--fx-bg, #0F141F); border: 1px solid var(--fx-border, rgba(255, 255, 255, 0.14));
  color: var(--fx-ink, #F5F7FC);
}
.showcase-head-strip {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
}
.showcase-index { color: var(--fx-accent, var(--gold)); }
.showcase-count { color: rgba(245, 247, 252, 0.68); }

/* GUARDRAIL-AV1: Uncut 9:16 portrait frame + play button clear at top:45%, 0 text overlay */
.showcase-media-btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: #06090F; aspect-ratio: 9 / 16; overflow: hidden; cursor: pointer;
}
.showcase-media-btn img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.play-ring-btn--card { width: 48px; height: 48px; background: rgba(7, 12, 24, 0.56); border-color: var(--fx-accent, var(--gold)); color: var(--fx-accent, var(--gold)); }
[data-showcase-fx="editorial-ink-folio"] .play-ring-btn--card { top: 22%; }
.showcase-body { padding: 12px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.showcase-body h3 { font-family: var(--font-serif); font-size: 1.22rem; color: var(--fx-ink, #F5F7FC); }
.showcase-body h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.showcase-body p { margin: 0; font-size: 0.87rem; color: rgba(245, 247, 252, 0.78); flex: 1; }
.showcase-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.btn--showcase-play { background: var(--fx-accent, var(--gold)); color: #080C14; border-color: var(--fx-accent, var(--gold)); padding: 0 10px; font-size: 0.84rem; }
.btn--showcase-link { background: rgba(255, 255, 255, 0.05); color: var(--fx-ink, #F5F7FC); border-color: var(--fx-border, rgba(255, 255, 255, 0.22)); padding: 0 10px; font-size: 0.84rem; }

/* 1. celadon-kiln-luster — Artisan L-Brackets + Celadon Sheen */
[data-showcase-fx="celadon-kiln-luster"] { --fx-bg: #111D18; --fx-accent: #D9A752; --fx-accent-2: #7CB89B; --fx-border: rgba(217, 167, 82, 0.44); --fx-ink: #F4F1E8; }
[data-showcase-fx="celadon-kiln-luster"] .showcase-surface { outline: 1px solid rgba(124, 184, 155, 0.24); outline-offset: 4px; }
[data-showcase-fx="celadon-kiln-luster"] .showcase-ambient { background: radial-gradient(75% 65% at 50% 42%, rgba(124, 184, 155, 0.42), transparent 72%); }
.fx-corner { position: absolute; width: 22px; height: 22px; z-index: 3; pointer-events: none; border-color: #D9A752; border-style: solid; transition: transform 0.32s ease, opacity 0.32s ease; }
.fx-c-tl { top: 0; left: 0; border-width: 2.5px 0 0 2.5px; }
.fx-c-tr { top: 0; right: 0; border-width: 2.5px 2.5px 0 0; }
.fx-c-bl { bottom: 0; left: 0; border-width: 0 0 2.5px 2.5px; }
.fx-c-br { bottom: 0; right: 0; border-width: 0 2.5px 2.5px 0; }
.fx-sheen { position: absolute; top: 8px; left: 10px; right: 10px; height: 2px; z-index: 3; pointer-events: none; background: linear-gradient(90deg, transparent, #D9A752, #7CB89B, transparent); opacity: 0.6; transform: scaleX(0.42); transition: transform 0.45s ease, opacity 0.45s ease; }

/* 2. geo-topo-radar — Cadastral Radar Ring + Horizon Scan */
[data-showcase-fx="geo-topo-radar"] { --fx-bg: #071624; --fx-accent: #38BDF8; --fx-accent-2: #E5B85B; --fx-border: rgba(56, 189, 248, 0.42); --fx-ink: #EFF6FF; }
[data-showcase-fx="geo-topo-radar"] .showcase-ambient { background: radial-gradient(70% 62% at 50% 48%, rgba(56, 189, 248, 0.38), transparent 72%); }
.fx-radar-ring { position: absolute; inset: 3px; z-index: 1; pointer-events: none; border: 1.5px dashed rgba(56, 189, 248, 0.5); animation: avRadarPulse 6s ease-in-out infinite; }
.fx-topo-reticle { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-top: 2px solid rgba(56, 189, 248, 0.68); border-bottom: 2px solid rgba(229, 184, 91, 0.68); opacity: 0.75; transition: opacity 0.3s ease, transform 0.3s ease; }
.fx-topo-sweep { position: absolute; top: 0; left: 10px; right: 10px; height: 2px; z-index: 3; pointer-events: none; background: linear-gradient(90deg, transparent, #38BDF8, #E5B85B, transparent); opacity: 0.45; transform: translate3d(0, 0, 0) scaleX(0.4); transition: opacity 0.35s ease, transform 0.45s ease; }

/* 3. editorial-ink-folio — Amber Book Spine + Folio Rule */
[data-showcase-fx="editorial-ink-folio"] { --fx-bg: #1A1611; --fx-accent: #D89E43; --fx-accent-2: #EDE6D6; --fx-border: rgba(216, 158, 67, 0.38); --fx-ink: #F8F4EC; }
[data-showcase-fx="editorial-ink-folio"] .showcase-ambient { background: radial-gradient(70% 65% at 30% 45%, rgba(216, 158, 67, 0.38), transparent 72%); }
.fx-book-spine { position: absolute; top: 10px; bottom: 10px; left: 3px; width: 5px; z-index: 3; pointer-events: none; background: #D89E43; transform-origin: top center; transform: scaleY(0.68); opacity: 0.88; transition: transform 0.38s ease, opacity 0.38s ease; }
.fx-folio-rule { position: absolute; bottom: 3px; left: 14px; right: 14px; height: 1.5px; z-index: 3; pointer-events: none; background: #EDE6D6; transform-origin: left center; transform: scaleX(0.38); opacity: 0.68; transition: transform 0.42s ease, opacity 0.42s ease; }

/* 4. kinetic-xray-pulse — Biometric Heartbeat Aura + Kinetic Force Rail */
[data-showcase-fx="kinetic-xray-pulse"] { --fx-bg: #081214; --fx-accent: #2EE6A6; --fx-accent-2: #EF4444; --fx-border: rgba(46, 230, 166, 0.42); --fx-ink: #F1F5F9; }
[data-showcase-fx="kinetic-xray-pulse"] .showcase-surface { border-top: 3px solid #2EE6A6; }
[data-showcase-fx="kinetic-xray-pulse"] .showcase-ambient { background: radial-gradient(66% 58% at 50% 48%, rgba(46, 230, 166, 0.36), rgba(239, 68, 68, 0.16) 55%, transparent 76%); }
.fx-pulse-aura { position: absolute; inset: 3px; z-index: 1; pointer-events: none; border: 1.5px solid rgba(46, 230, 166, 0.48); animation: avBioBeat 4.2s ease-in-out infinite; }
.fx-pulse-rail { position: absolute; bottom: 2px; left: 10px; right: 10px; height: 3.5px; z-index: 3; pointer-events: none; background: linear-gradient(90deg, #2EE6A6, #EF4444); transform-origin: left center; transform: scaleX(0.45); transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1); }

/* 5. clinical-scan-lumen — Lateral Millimeter Ticks + Edge Scan Line */
[data-showcase-fx="clinical-scan-lumen"] { --fx-bg: #07161F; --fx-accent: #2DD4BF; --fx-accent-2: #EAB308; --fx-border: rgba(45, 212, 191, 0.42); --fx-ink: #F0FDFA; }
[data-showcase-fx="clinical-scan-lumen"] .showcase-ambient { background: radial-gradient(70% 60% at 50% 44%, rgba(45, 212, 191, 0.38), transparent 72%); }
.fx-clinical-ticks { position: absolute; top: 16px; bottom: 16px; width: 6px; z-index: 3; pointer-events: none; opacity: 0.72; transition: opacity 0.32s ease; background: repeating-linear-gradient(to bottom, #2DD4BF 0 2px, transparent 2px 10px); }
.fx-clinical-ticks--l { left: 1px; }
.fx-clinical-ticks--r { right: 1px; }
.fx-scan-line { position: absolute; top: 12px; left: 0; width: 2.5px; height: 54px; z-index: 3; pointer-events: none; background: #EAB308; opacity: 0.85; animation: avClinicalGlide 5.5s ease-in-out infinite; }

/* 6. prism-before-after-veil — Split Rose/Champagne Dual Rim */
[data-showcase-fx="prism-before-after-veil"] { --fx-bg: #1A0C14; --fx-accent: #F3CF82; --fx-accent-2: #E8799B; --fx-border: rgba(243, 207, 130, 0.44); --fx-ink: #FDF4F7; }
[data-showcase-fx="prism-before-after-veil"] .showcase-ambient { background: linear-gradient(125deg, rgba(232, 121, 155, 0.4), rgba(243, 207, 130, 0.34)); }
[data-showcase-fx="prism-before-after-veil"] .showcase-surface { border-left: 3px solid #E8799B; border-right: 3px solid #F3CF82; }
.fx-prism-glow { position: absolute; inset: 3px; z-index: 1; pointer-events: none; opacity: 0.62; border-top: 1.5px solid rgba(232, 121, 155, 0.65); border-bottom: 1.5px solid rgba(243, 207, 130, 0.68); transition: opacity 0.35s ease, transform 0.35s ease; }
.fx-prism-edge { position: absolute; top: 2px; left: 10px; right: 10px; height: 2.5px; z-index: 3; pointer-events: none; background: linear-gradient(90deg, #E8799B, #F3CF82); transform: scaleX(0.48); transition: transform 0.42s ease; }

/* Active / Hover States (Pure GPU transform + opacity) */
.showcase-card.is-touch-active .showcase-ambient { opacity: 0.88; }
.showcase-card.is-touch-active .fx-sheen, .showcase-card.is-touch-active .fx-pulse-rail, .showcase-card.is-touch-active .fx-prism-edge, .showcase-card.is-touch-active .fx-folio-rule { transform: scaleX(1); opacity: 1; }
.showcase-card.is-touch-active .fx-book-spine { transform: scaleY(1); opacity: 1; }
.showcase-card.is-touch-active .fx-clinical-ticks { opacity: 0.95; }

@media (hover: hover) and (pointer: fine) {
  .showcase-card:hover .showcase-ambient, .showcase-card:focus-within .showcase-ambient { opacity: 0.92; }
  .showcase-card[data-showcase-fx="celadon-kiln-luster"]:hover { transform: translate3d(0, -6px, 0); }
  .showcase-card:hover .fx-c-tl { transform: translate3d(-3px, -3px, 0); }
  .showcase-card:hover .fx-c-tr { transform: translate3d(3px, -3px, 0); }
  .showcase-card:hover .fx-c-bl { transform: translate3d(-3px, 3px, 0); }
  .showcase-card:hover .fx-c-br { transform: translate3d(3px, 3px, 0); }
  .showcase-card:hover .fx-sheen, .showcase-card:hover .fx-pulse-rail, .showcase-card:hover .fx-prism-edge, .showcase-card:hover .fx-folio-rule { transform: scaleX(1); opacity: 1; }
  .showcase-card[data-showcase-fx="geo-topo-radar"]:hover .fx-topo-sweep { opacity: 1; transform: translate3d(0, 2px, 0) scaleX(1); }
  .showcase-card[data-showcase-fx="editorial-ink-folio"]:hover { transform: translate3d(4px, -4px, 0); }
  .showcase-card:hover .fx-book-spine { transform: scaleY(1); opacity: 1; }
  .showcase-card[data-showcase-fx="clinical-scan-lumen"]:hover { transform: translate3d(0, -5px, 0); }
  .showcase-card:hover .fx-clinical-ticks { opacity: 0.95; }
  .showcase-card[data-showcase-fx="prism-before-after-veil"]:hover { transform: translate3d(0, -5px, 0); }
  .showcase-card:hover .showcase-media-btn img { transform: scale3d(1.03, 1.03, 1); }
}

/* Detail Pages (/mau-nganh/<slug>/) + 6 Distinct Rhythms */
.detail-hero { position: relative; padding: 48px 0 42px; background: var(--fx-bg, #0A0D14); color: var(--fx-ink, #F5F7FC); overflow-x: clip; border-bottom: 1px solid var(--fx-border, rgba(255, 255, 255, 0.14)); }
.detail-hero-ambient { position: absolute; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(64% 64% at 78% 26%, var(--fx-accent-2, rgba(240, 195, 90, 0.2)), transparent 72%); opacity: 0.22; }
.detail-hero-inner { max-width: 820px; }
.detail-crumb { margin: 0 0 8px; font-size: 0.82rem; color: rgba(245, 247, 252, 0.72); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.detail-crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.detail-crumb--dark { color: var(--ink-muted); }
.detail-hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-bottom: 12px; color: var(--fx-ink); }
.detail-lead { margin: 0 0 22px; font-size: 1.02rem; color: rgba(245, 247, 252, 0.82); }
.detail-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.detail-exhibition { padding: 48px 0 64px; background: var(--carbon); color: var(--fx-ink, #F5F7FC); }
.detail-stage-grid { display: grid; gap: 24px; align-items: start; }
.detail-rhythm--showroom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-rhythm--showroom .detail-card--slot-3 { grid-column: 1 / -1; }
.detail-rhythm--atlas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-rhythm--atlas .detail-notes-panel { grid-column: 1 / -1; }
.detail-rhythm--folio { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.detail-rhythm--folio .detail-card--slot-2 { grid-column: 1 / -1; }
.detail-rhythm--biometric { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-rhythm--clinical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-rhythm--clinical .detail-notes-panel { grid-column: 1 / -1; }
.detail-rhythm--prism { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.detail-rhythm--prism .detail-notes-panel { grid-column: 1 / -1; }

.detail-video-card { background: var(--fx-bg, #111622); border: 1px solid var(--fx-border, rgba(255, 255, 255, 0.16)); display: flex; flex-direction: column; }
.detail-media { position: relative; background: #050810; overflow: hidden; cursor: pointer; }
.detail-media--port { aspect-ratio: 9 / 16; max-width: 390px; margin: 18px auto 0; width: 100%; border: 1px solid rgba(255, 255, 255, 0.1); }
.detail-media--wide { aspect-ratio: 16 / 9; width: 100%; }
.detail-media img, .detail-inline-video { width: 100%; height: 100%; object-fit: cover; background: #050810; }
.detail-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.detail-meta-pill { font-size: 0.74rem; font-weight: 700; color: var(--fx-accent, var(--gold)); text-transform: uppercase; letter-spacing: 0.08em; }
.detail-card-body h3 { font-family: var(--font-serif); font-size: 1.24rem; }
.detail-card-body p { margin: 0; font-size: 0.9rem; color: rgba(245, 247, 252, 0.78); }
.detail-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.detail-notes-panel { background: var(--fx-bg, #111622); border: 1px solid var(--fx-border); padding: 26px 24px; }
.detail-notes-panel h2 { font-size: 1.5rem; margin-bottom: 16px; }
.detail-highlights { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.detail-highlights li { display: flex; gap: 10px; font-size: 0.94rem; color: rgba(245, 247, 252, 0.84); }
.detail-notes-cta { display: grid; gap: 10px; }

.industry-switcher { background: #070A12; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 28px 0 36px; }
.switcher-label { margin: 0 0 12px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.industry-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.industry-pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18); color: var(--light-muted); font-size: 0.86rem; font-weight: 600;
}
.industry-pill.is-active { background: var(--gold); color: var(--obsidian); border-color: var(--gold); }

@keyframes avRadarPulse { 0%, 100% { opacity: 0.2; transform: scale3d(0.985, 0.985, 1); } 50% { opacity: 0.52; transform: scale3d(1.01, 1.01, 1); } }
@keyframes avBioBeat { 0%, 100% { opacity: 0.22; transform: scale3d(0.99, 0.99, 1); } 45% { opacity: 0.56; transform: scale3d(1.01, 1.01, 1); } }
@keyframes avClinicalGlide { 0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.35; } 50% { transform: translate3d(0, 120px, 0); opacity: 0.88; } }

@media (max-width: 1060px) {
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-rhythm--biometric { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-rhythm--biometric .detail-notes-panel { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .showcase-grid {
    display: flex; flex-wrap: nowrap; overflow-x: auto;
    scroll-snap-type: x mandatory; gap: 14px; padding: 6px 4px 14px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .showcase-grid::-webkit-scrollbar { display: none; }
  .showcase-card {
    flex: 0 0 82vw; max-width: 300px; scroll-snap-align: center; scroll-snap-stop: always;
    padding: 8px;
  }
  .showcase-body { padding: 10px 12px 12px; gap: 4px; }
  .showcase-body h3 { font-size: 1.1rem; }
  .showcase-body p { font-size: 0.82rem; }
  .detail-stage-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-media--port { max-width: 100%; margin-top: 0; border: 0; }
  .detail-hero { padding: 20px 0 24px; }
  .detail-hero h1 { font-size: 1.75rem; }
  .detail-lead { font-size: 0.9rem; margin-bottom: 14px; }
  .detail-hero-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .detail-hero-actions .btn { padding: 0 8px; font-size: 0.8rem; }
}
