/* ==========================================================================
   ACTIVE THEORY-INSPIRED INTERACTIVE 3D WEBGL PORTFOLIO DESIGN SYSTEM
   Volumetric Teal-Slate-Violet Prism Atmosphere + 3D Helical Video Spine +
   Chamfered Content-Matched Cinema Rooms (7 Bespoke Light & Dark Worlds)
   ========================================================================== */

:root {
  --bg-void: #080f16;
  --cyan: #3de6d8;
  --cyan-soft: rgba(61, 230, 216, 0.42);
  --violet: #9d8cff;
  --violet-soft: rgba(139, 114, 255, 0.35);
  --ink-1: #f2f8fa;
  --ink-2: rgba(226, 240, 246, 0.72);
  --ink-3: rgba(188, 210, 222, 0.46);
  --line: rgba(145, 225, 232, 0.16);
  --line-strong: rgba(61, 230, 216, 0.48);

  --font-tech: "Share Tech Mono", "JetBrains Mono", "Noto Sans SC", monospace;
  --font-sans: "Plus Jakarta Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Noto Serif SC", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-void);
  color: var(--ink-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.overlay-open {
  overflow: hidden;
}

/* Active Theory Minimal 8px White Rounded-Pill Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.92);
  background-clip: padding-box;
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; color: inherit; }
.hidden { display: none !important; }

/* Chamfered / Beveled Corner Box (Exact Active Theory Case-Study Geometry) */
.chamfer-box {
  clip-path: polygon(
    18px 0%,
    calc(100% - 18px) 0%,
    100% 18px,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    18px 100%,
    0% calc(100% - 18px),
    0% 18px
  );
}

/* ==========================================================================
   FULLSCREEN WEBGL CANVAS & VIRTUAL SCROLL TRACK
   ========================================================================== */
.at-webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

/* Virtual scroll height driving the 4-chapter 3D fly-through */
.fx-scroll-spacer {
  position: relative;
  width: 1px;
  height: 560vh;
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   TOP FLOATING HUD: BRAND MARK + ACTIVE THEORY STADIUM PILL + DIGITAL RAIN
   ========================================================================== */
.at-top-hud {
  position: fixed;
  top: 22px;
  left: 28px;
  right: 28px;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.at-brand-mark {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(145, 225, 232, 0.22);
  background: rgba(8, 16, 24, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.at-brand-mark:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.brand-ai-spark {
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(61, 230, 216, 0.75));
  flex-shrink: 0;
  animation: sparkSpin 9s ease-in-out infinite;
}

@keyframes sparkSpin {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.12) rotate(12deg); }
}

.at-brand-mark strong {
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #ffffff;
}

.at-brand-mark small {
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  opacity: 0.78;
}

/* Signature Top-Right Stadium Pill */
.at-pill-wrap {
  pointer-events: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.at-stadium-pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(10, 18, 26, 0.88), rgba(6, 12, 18, 0.92));
  border: 1px solid rgba(61, 230, 216, 0.42);
  box-shadow:
    0 0 24px rgba(61, 230, 216, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.at-pill-underglow {
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 36px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(61, 230, 216, 0.42), transparent 68%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.34) 0px,
      rgba(255, 255, 255, 0.34) 1px,
      transparent 1px,
      transparent 11px
    );
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
  opacity: 0.72;
  animation: digitalRain 2.8s linear infinite;
}

@keyframes digitalRain {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 0, 0 22px; }
}

.at-pill-link {
  border: 0;
  background: transparent;
  padding: 4px 2px;
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: rgba(242, 248, 250, 0.88);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.at-pill-link:hover,
.at-pill-link.active {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(61, 230, 216, 0.65);
}

.at-pill-link span {
  opacity: 0.6;
  font-size: 11px;
}

.at-audio-trigger {
  border: 0;
  background: transparent;
  padding: 4px 2px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.at-audio-bar {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid rgba(145, 225, 232, 0.24);
  background: rgba(8, 16, 24, 0.72);
  backdrop-filter: blur(12px);
  font-family: var(--font-tech);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

.audio-arrows {
  color: var(--cyan);
}

/* ==========================================================================
   FIXED 4-CHAPTER SPATIAL VIEWPORT
   ========================================================================== */
.at-viewport {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.at-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 40px 88px;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.at-stage.is-active {
  pointer-events: auto;
}

.at-mono-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* --- STAGE 0: LANDING --- */
.stage-landing {
  justify-content: space-between;
  padding-top: 96px;
  padding-bottom: 34px;
}

.landing-top-meta {
  text-align: center;
}

.landing-bottom-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cue-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  animation: cuePulse 2.2s ease-in-out infinite;
}

@keyframes cuePulse {
  0%, 100% { transform: scaleY(0.7); opacity: 0.45; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

.cue-text {
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: rgba(242, 248, 250, 0.85);
}

.landing-quick-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.landing-quick-stats strong {
  color: var(--cyan);
  font-weight: 500;
}

/* --- STAGE 1: SHOWREEL 3D PLANE + HORIZONTAL GLITCH MANIFESTO --- */
.stage-showreel {
  justify-content: space-between;
  padding-top: 90px;
  padding-bottom: 100px;
}

.reel-3d-wrap {
  perspective: 1200px;
  width: min(680px, 82vw);
  display: flex;
  justify-content: center;
}

.reel-3d-card {
  position: relative;
  width: min(560px, 76vw);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8, 16, 22, 0.72);
  border: 1px solid rgba(61, 230, 216, 0.34);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(61, 230, 216, 0.14);
  transform: rotateX(6deg) rotateY(-8deg);
  cursor: pointer;
  transition: transform 0.45s var(--ease), border-color 0.3s ease, box-shadow 0.35s ease;
}

.reel-3d-card:hover {
  transform: rotateX(0deg) rotateY(0deg) scale(1.03);
  border-color: var(--cyan);
  box-shadow:
    -3px 0 18px rgba(61, 230, 216, 0.35),
    3px 0 18px rgba(244, 63, 94, 0.25),
    0 36px 96px rgba(0, 0, 0, 0.65);
}

.reel-3d-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  display: block;
}

.reel-3d-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
}

.reel-3d-hud {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 20px 16px;
  background: linear-gradient(to top, rgba(6, 12, 18, 0.92), transparent);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.reel-hud-tag {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.reel-3d-hud strong {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-right: auto;
}

.reel-hud-act {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

/* Giant Horizontal RGB Slice-Glitch Manifesto */
.manifesto-block {
  width: min(980px, 88vw);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.at-glitch-headline {
  position: relative;
  margin: 0 0 14px;
  font-family: var(--font-tech);
  font-size: clamp(28px, 4.4vw, 60px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.08;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow:
    -2px 0 rgba(61, 230, 216, 0.55),
    2px 0 rgba(168, 85, 247, 0.55);
}

.at-glitch-headline::before,
.at-glitch-headline::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.at-glitch-headline::before {
  color: #3de6d8;
  clip-path: inset(18% 0 64% 0);
  animation: sliceGlitchA 3.8s infinite linear alternate-reverse;
}

.at-glitch-headline::after {
  color: #c084fc;
  clip-path: inset(62% 0 16% 0);
  animation: sliceGlitchB 4.4s infinite linear alternate-reverse;
}

@keyframes sliceGlitchA {
  0%, 86%, 100% { transform: translateX(0); opacity: 0; }
  88% { transform: translateX(-5px); opacity: 0.75; }
  92% { transform: translateX(4px); opacity: 0.55; }
  96% { transform: translateX(-2px); opacity: 0.6; }
}

@keyframes sliceGlitchB {
  0%, 82%, 100% { transform: translateX(0); opacity: 0; }
  85% { transform: translateX(5px); opacity: 0.7; }
  90% { transform: translateX(-4px); opacity: 0.5; }
  95% { transform: translateX(2px); opacity: 0.65; }
}

.manifesto-sub-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.manifesto-kicker {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.manifesto-copy {
  margin: 0;
  max-width: 680px;
  font-family: var(--font-tech);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

/* --- STAGE 2: // THE LAB -> CAUSTIC HEX DOME & PIPELINE --- */
.stage-lab {
  gap: 22px;
  padding-top: 86px;
  padding-bottom: 148px;
  padding-left: clamp(32px, 24vw, 350px);
  padding-right: clamp(32px, 5vw, 72px);
}

.lab-center-banner {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: auto 64px 1fr;
  align-items: center;
  gap: 24px;
}

.lab-heading {
  margin: 0;
  font-family: var(--font-tech);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(61, 230, 216, 0.35);
}

.lab-sub-cn {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.lab-emblem-sep {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(61, 230, 216, 0.25);
}

.lab-crosshair {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--cyan);
  transform: rotate(45deg);
}

.lab-desc {
  margin: 0;
  font-family: var(--font-tech);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: rgba(242, 248, 250, 0.88);
  text-transform: uppercase;
}

.lab-pipeline-strip {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lab-stage-card {
  padding: 16px;
  border-radius: 10px;
  background: rgba(8, 16, 24, 0.66);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(145, 225, 232, 0.22);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.lab-stage-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.lab-step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.lab-step-num {
  font-family: var(--font-tech);
  font-size: 20px;
  color: var(--cyan);
}

.lab-tools-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.lab-tool-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(61, 230, 216, 0.3);
  background: rgba(61, 230, 216, 0.08);
  color: #e6fbff;
  white-space: nowrap;
}

.lab-stage-card h4 {
  margin: 2px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.lab-stage-card p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.lab-metrics-strip {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lab-metric {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(12, 22, 34, 0.56);
  border: 1px solid rgba(139, 114, 255, 0.26);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.lab-metric strong {
  font-family: var(--font-tech);
  font-size: 24px;
  color: #ffffff;
}

.lab-metric span {
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--violet);
  text-align: right;
}

/* --- STAGE 3: 3D IRIDESCENT SPINE + HELICAL ORBITING VIDEO CAROUSEL --- */
.stage-work {
  justify-content: space-between;
  padding: 118px 40px 30px;
}

.work-stage-header {
  position: relative;
  z-index: 25;
  width: min(1180px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.work-chapter-kicker {
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.work-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.type-tab-btn {
  border: 0;
  background: transparent;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.type-tab-btn:hover {
  color: #ffffff;
}

.type-tab-btn.active {
  background: var(--cyan);
  color: #061218;
  font-weight: 700;
}

.work-stage-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.work-helix-counter {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  padding: 0 6px;
}

.at-micro-btn {
  border: 1px solid rgba(145, 225, 232, 0.28);
  background: rgba(8, 16, 24, 0.68);
  backdrop-filter: blur(12px);
  color: var(--ink-1);
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
}

.at-micro-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(61, 230, 216, 0.22);
}

.at-micro-btn.is-accent {
  background: rgba(61, 230, 216, 0.16);
  border-color: rgba(61, 230, 216, 0.65);
  color: #e6fffd;
}

.at-micro-btn.is-accent:hover {
  background: var(--cyan);
  color: #061218;
}

/* 3D Helical Video Carousel Stage Orbiting the Central WebGL Spine */
.helix-stage {
  position: relative;
  z-index: 10;
  isolation: isolate;
  width: 100%;
  flex: 1;
  min-height: 0;
  perspective: 1450px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.helix-card {
  position: absolute;
  width: clamp(210px, 18.5vw, 278px);
  aspect-ratio: 9 / 14.2;
  border-radius: 14px;
  overflow: hidden;
  background: #070d14;
  isolation: isolate;
  border: 1px solid rgba(145, 225, 232, 0.34);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  transition: border-color 0.25s ease, box-shadow 0.3s ease;
}

.helix-card.is-landscape {
  width: clamp(320px, 32vw, 460px);
  aspect-ratio: 16 / 10;
}

/* Signature Active Theory RGB Chromatic-Aberration Hover Shimmer */
.helix-card.is-center {
  border-color: rgba(61, 230, 216, 0.78);
  box-shadow:
    -4px 0 26px rgba(61, 230, 216, 0.28),
    4px 0 26px rgba(192, 132, 252, 0.28),
    0 34px 96px rgba(0, 0, 0, 0.72);
}

.helix-card:hover {
  border-color: #ffffff;
  box-shadow:
    -5px 0 22px rgba(61, 230, 216, 0.45),
    5px 0 22px rgba(244, 63, 94, 0.38),
    0 36px 100px rgba(0, 0, 0, 0.78);
}

.helix-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.helix-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 12, 18, 0.92) 0%,
    rgba(6, 12, 18, 0.22) 45%,
    rgba(6, 12, 18, 0.35) 100%
  );
  pointer-events: none;
}

.helix-card-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-tech);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
}

.helix-script-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(61, 230, 216, 0.18);
  border: 1px solid rgba(61, 230, 216, 0.55);
  color: var(--cyan);
  font-size: 9.5px;
}

.helix-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.helix-card-cat {
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.helix-card-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: -1px 0 rgba(61, 230, 216, 0.45), 1px 0 rgba(192, 132, 252, 0.45);
}

.helix-card-concept {
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(226, 240, 246, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.helix-active-bar {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(560px, 64vw);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(8, 16, 24, 0.78);
  border: 1px solid rgba(145, 225, 232, 0.28);
  backdrop-filter: blur(14px);
}

.helix-active-meta {
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

.helix-active-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   BOTTOM-LEFT FLOATING DIRECTORY (EXACT ACTIVE THEORY ChatDOM STYLE)
   ========================================================================== */
.at-chat-menu {
  position: fixed;
  left: 28px;
  bottom: 26px;
  z-index: 38;
  width: min(300px, calc(100vw - 56px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

.chat-menu-heading {
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(157, 140, 255, 0.55);
}

.chat-menu-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.chat-cat-btn {
  border: 0;
  background: transparent;
  padding: 3px 0;
  text-align: left;
  font-family: var(--font-tech);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: #9e93ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

.chat-cat-btn:hover,
.chat-cat-btn.active {
  color: var(--cyan);
  transform: translateX(5px);
  text-shadow: 0 0 12px rgba(61, 230, 216, 0.65);
}

.chat-cat-count {
  font-size: 10.5px;
  opacity: 0.6;
}

.chat-search-pill {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(157, 140, 255, 0.44);
  background: rgba(16, 14, 34, 0.45);
  backdrop-filter: blur(12px);
  padding: 0 14px;
  height: 40px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.chat-search-pill:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(61, 230, 216, 0.24);
}

.chat-search-pill input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.chat-search-pill input::placeholder {
  color: rgba(176, 168, 245, 0.72);
}

.chat-search-pill kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--violet);
  opacity: 0.8;
}

/* ==========================================================================
   BOTTOM-RIGHT COMPACT CASTING, LANG & STAGE TELEMETRY HUD
   ========================================================================== */
.at-corner-hud {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 38;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.stage-dots {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(8, 16, 24, 0.64);
  border: 1px solid rgba(145, 225, 232, 0.2);
  backdrop-filter: blur(12px);
}

.stage-dot {
  border: 0;
  background: transparent;
  width: 28px;
  height: 24px;
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 10.5px;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.22s ease;
}

.stage-dot:hover {
  color: #ffffff;
}

.stage-dot.active {
  background: rgba(61, 230, 216, 0.2);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(61, 230, 216, 0.28);
}

.corner-toggles {
  display: flex;
  align-items: center;
  gap: 7px;
}

.at-seg-pill {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(8, 16, 24, 0.68);
  border: 1px solid rgba(145, 225, 232, 0.26);
  backdrop-filter: blur(12px);
}

.seg-btn,
.view-btn {
  border: 0;
  background: transparent;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.seg-btn.active,
.view-btn.active {
  background: var(--cyan);
  color: #061218;
  font-weight: 700;
}

/* ==========================================================================
   FULL 192-WORK ARCHIVE DRAWER & CONTACT OVERLAY (Chamfered Glass)
   ========================================================================== */
.at-overlay-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 14, 0.78);
  backdrop-filter: blur(18px);
}

.drawer-panel,
.contact-panel {
  position: relative;
  z-index: 2;
  width: min(1380px, 96vw);
  height: min(880px, 92vh);
  background: rgba(10, 18, 28, 0.92);
  border: 1px solid rgba(61, 230, 216, 0.34);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.36s var(--ease) both;
}

.contact-panel {
  width: min(980px, 94vw);
  height: auto;
  max-height: 90vh;
  padding: 32px;
  gap: 24px;
}

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

.drawer-header,
.contact-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.contact-panel-top {
  padding: 0 0 18px;
}

.drawer-title-group h2 {
  margin: 4px 0 0;
  font-family: var(--font-tech);
  font-size: 22px;
  letter-spacing: 0.12em;
  color: #ffffff;
}

.drawer-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.drawer-search input {
  width: 220px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 20, 0.72);
  color: #ffffff;
  font-family: var(--font-tech);
  font-size: 11.5px;
  outline: none;
}

.drawer-search input:focus {
  border-color: var(--cyan);
}

.at-select {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 26, 0.9);
  color: var(--ink-1);
  font-family: var(--font-tech);
  font-size: 11px;
  cursor: pointer;
}

.at-close-btn {
  border: 1px solid rgba(61, 230, 216, 0.42);
  background: rgba(61, 230, 216, 0.1);
  color: var(--cyan);
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.at-close-btn:hover {
  background: var(--cyan);
  color: #061218;
}

.drawer-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 12, 20, 0.45);
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  color: #ffffff;
  border-color: var(--line);
}

.cat-pill.active {
  background: rgba(61, 230, 216, 0.18);
  border-color: var(--cyan);
  color: var(--cyan);
}

.cat-pill .pill-count {
  opacity: 0.65;
  font-size: 10px;
}

.drawer-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 26px 32px;
}

.drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.at-link-btn {
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-decoration: underline;
}

/* Archive Grid Cards inside Full Drawer */
.works-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 16px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  outline: none;
}

.work-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #0d1620;
  border: 1px solid rgba(145, 225, 232, 0.2);
  transition: transform 0.35s var(--ease), border-color 0.25s ease, box-shadow 0.35s ease;
}

.work-card:hover .work-frame {
  transform: translateY(-5px);
  border-color: var(--cyan);
  box-shadow:
    -3px 0 18px rgba(61, 230, 216, 0.28),
    3px 0 18px rgba(192, 132, 252, 0.24),
    0 20px 44px rgba(0, 0, 0, 0.55);
}

.work-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card.is-landscape .work-frame video {
  object-fit: contain;
  background: #050a0f;
}

.frame-top-hud {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.frame-chip {
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  background: rgba(6, 12, 18, 0.78);
  color: #ffffff;
}

.frame-chip.chip-play {
  opacity: 0;
  color: var(--cyan);
}

.work-card.is-playing .frame-chip.chip-play { opacity: 1; }

.card-variant-switch {
  pointer-events: auto;
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(6, 12, 18, 0.82);
  border: 1px solid rgba(61, 230, 216, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.work-card:hover .card-variant-switch { opacity: 1; }

.mini-reg-btn {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 999px;
  cursor: pointer;
}

.mini-reg-btn.active {
  background: var(--cyan);
  color: #061218;
  font-weight: 700;
}

.work-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  opacity: 0;
}
.work-card.is-playing .work-progress { opacity: 1; }
.work-progress-bar { height: 100%; width: 0%; background: var(--cyan); }

.work-caption { display: flex; flex-direction: column; gap: 3px; }
.work-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.work-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-dur { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }
.work-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
}
.work-cat-dot { display: inline-flex; align-items: center; gap: 5px; }
.work-cat-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot-color, var(--cyan));
}
.work-sub-right { display: inline-flex; align-items: center; gap: 6px; }
.script-dot-badge {
  color: var(--cyan);
  font-size: 9px;
  border: 1px solid rgba(61, 230, 216, 0.35);
  padding: 0px 5px;
  border-radius: 999px;
}

/* Timeline inside Archive Drawer */
.timeline-view { display: flex; flex-direction: column; gap: 34px; }
.timeline-group {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.timeline-date-big { font-family: var(--font-tech); font-size: 30px; color: var(--cyan); line-height: 1; }
.timeline-date-sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.timeline-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 14px; }

.empty-state { text-align: center; padding: 60px 20px; font-family: var(--font-tech); color: var(--ink-2); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 32px; }

/* Contact Panel */
.contact-panel-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
}
.contact-narrative h2 { margin: 0 0 14px; font-size: 26px; color: #ffffff; }
.contact-narrative p { margin: 0 0 20px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.capabilities-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cap-chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--cyan);
  border: 1px solid rgba(61, 230, 216, 0.3);
  background: rgba(61, 230, 216, 0.08);
}
.contact-details-box { display: flex; flex-direction: column; gap: 14px; }
.creator-sign { font-size: 22px; color: #ffffff; }
.location-line { font-family: var(--font-tech); font-size: 11.5px; color: var(--cyan); }
.contact-rows { display: flex; flex-direction: column; gap: 10px; }
.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 20, 0.72);
  cursor: pointer;
  text-align: left;
}
.contact-item:hover { border-color: var(--cyan); }
.contact-k { font-family: var(--font-tech); font-size: 10px; color: var(--ink-3); letter-spacing: 0.14em; }
.contact-v { flex: 1; font-size: 13px; font-weight: 600; color: #ffffff; }
.contact-act { font-family: var(--font-tech); font-size: 10px; color: var(--cyan); }
.socials-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-pill {
  display: inline-flex;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-2);
}
.social-pill:hover { border-color: var(--cyan); color: #ffffff; }

/* ==========================================================================
   ACTIVE THEORY FULL-BLEED CHAMFERED CASE-STUDY POSTER STAGE
   Exact activetheory.net/work/<slug> frameless widescreen poster layout:
   - Zero cluttered card boxes, zero crowded topbars, zero dashboard tables
   - Full-bleed live video-mirror blurred atmosphere + macro cinema motion
   - Clean floating Left HUD + Center 9:16 Hero Video + Right Telemetry HUD
   - Adapts colors & typography seamlessly to every video's visual world!
   ========================================================================== */
.cinema-modal {
  --amb-1: 61, 230, 216;
  --amb-2: 139, 114, 255;
  --m-backdrop: rgba(4, 9, 15, 0.86);
  --m-shell-bg: #081019;
  --m-ink-1: #f5faff;
  --m-ink-2: rgba(226, 240, 250, 0.82);
  --m-ink-3: rgba(186, 212, 232, 0.56);
  --m-border: rgba(255, 255, 255, 0.16);
  --m-surface: rgba(8, 16, 26, 0.45);
  --m-accent: #3de6d8;
  --m-accent-ink: #051218;
  --m-amb-alpha: 0.42;
  --m-scrim:
    linear-gradient(90deg, rgba(6, 12, 20, 0.72) 0%, rgba(6, 12, 20, 0.18) 38%, rgba(6, 12, 20, 0.18) 62%, rgba(6, 12, 20, 0.72) 100%),
    linear-gradient(to top, rgba(5, 10, 18, 0.76) 0%, transparent 45%, rgba(5, 10, 18, 0.48) 100%);

  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--m-ink-1);
}

/* Content-Matched Accent & Mood Adjustments (all stay immersive & legible over live video canvas) */
.cinema-modal[data-theme="fashion"] {
  --m-accent: #f2dfc4;
  --m-accent-ink: #1a1510;
  --m-border: rgba(242, 223, 196, 0.28);
  --m-scrim:
    linear-gradient(90deg, rgba(22, 18, 14, 0.72) 0%, rgba(22, 18, 14, 0.16) 38%, rgba(22, 18, 14, 0.16) 62%, rgba(22, 18, 14, 0.72) 100%),
    linear-gradient(to top, rgba(20, 16, 12, 0.78) 0%, transparent 45%, rgba(20, 16, 12, 0.42) 100%);
}

.cinema-modal[data-theme="romance"] {
  --m-accent: #f8b8a8;
  --m-accent-ink: #221412;
  --m-border: rgba(248, 184, 168, 0.28);
  --m-scrim:
    linear-gradient(90deg, rgba(28, 16, 16, 0.72) 0%, rgba(28, 16, 16, 0.16) 38%, rgba(28, 16, 16, 0.16) 62%, rgba(28, 16, 16, 0.72) 100%),
    linear-gradient(to top, rgba(26, 14, 14, 0.78) 0%, transparent 45%, rgba(26, 14, 14, 0.42) 100%);
}

.cinema-modal[data-theme="halloween"] {
  --m-accent: #f87171;
  --m-accent-ink: #1a090b;
  --m-border: rgba(248, 113, 113, 0.3);
}

.cinema-modal[data-theme="action"] {
  --m-accent: #fb7185;
  --m-accent-ink: #140609;
  --m-border: rgba(251, 113, 133, 0.3);
}

.cinema-modal[data-theme="zodiac"] {
  --m-accent: #c4b5fd;
  --m-accent-ink: #101228;
  --m-border: rgba(196, 181, 253, 0.32);
}

.cinema-modal[data-theme="fun"] {
  --m-accent: #fdba74;
  --m-accent-ink: #1c1208;
  --m-border: rgba(253, 186, 116, 0.3);
}

.cinema-backdrop {
  position: absolute;
  inset: 0;
  background: var(--m-backdrop);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: background 0.45s ease;
}

.cinema-ambilight {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  transition: background 0.9s ease;
  pointer-events: none;
}

.amb-primary {
  width: 72vw;
  height: 72vw;
  max-width: 960px;
  max-height: 960px;
  left: 38%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--amb-1), var(--m-amb-alpha)) 0%, transparent 68%);
}

.amb-secondary {
  width: 56vw;
  height: 56vw;
  max-width: 720px;
  max-height: 720px;
  right: -6%;
  bottom: -12%;
  background: radial-gradient(circle, rgba(var(--amb-2), var(--m-amb-alpha)) 0%, transparent 70%);
}

.cinema-scroll-cue {
  position: relative;
  z-index: 3;
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(240, 248, 255, 0.78);
}

/* Single Unified Chamfered Widescreen Poster Frame (Exact Active Theory Geometry) */
.cinema-shell {
  position: relative;
  z-index: 2;
  width: min(1320px, 94vw);
  height: min(760px, 84vh);
  background: var(--m-shell-bg);
  border: 1px solid var(--m-border);
  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.55),
    0 0 110px rgba(var(--amb-1), 0.24);
  overflow: hidden;
  animation: modalIn 0.38s var(--ease) both;
}

/* Layer 1A: Full-bleed blurred color atmosphere from live video */
.modal-atmo-canvas {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(34px) saturate(1.55) brightness(0.88);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

/* Layer 1B: Oversized, softly diffused widescreen motion echo of the live video! */
.modal-macro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.18) contrast(1.06);
  opacity: 0.28;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

.modal-atmo-scrim {
  position: absolute;
  inset: 0;
  background: var(--m-scrim);
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================================
   FRAMELESS 3-ZONE WIDESCREEN POSTER STAGE
   Stays side-by-side cleanly on 640px+ split panes AND 1440px+ desktops!
   ========================================================================== */
.cinema-poster-stage {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: clamp(18px, 2.6vw, 34px);
  display: grid;
  grid-template-columns: minmax(175px, 1fr) auto minmax(175px, 1fr);
  gap: clamp(14px, 2.2vw, 32px);
  align-items: stretch;
}

.cinema-poster-stage.is-comparing {
  grid-template-columns: minmax(160px, 0.82fr) minmax(300px, 1.45fr) minmax(150px, 0.78fr);
}

/* --- LEFT FLOATING HUD (Zero Boxes, Exact Active Theory Case-Study Left Column) --- */
.poster-hud-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  z-index: 4;
}

.poster-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.poster-index-chip {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--m-accent);
}

.poster-type-chip {
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--m-ink-2);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--m-border);
  background: rgba(0, 0, 0, 0.22);
}

.palette-dots { display: flex; gap: 5px; align-items: center; }
.palette-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: background-color 0.6s ease;
}

.poster-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.poster-title {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.cinema-modal[data-theme="fashion"] .poster-title,
.cinema-modal[data-theme="romance"] .poster-title,
.cinema-modal[data-theme="zodiac"] .poster-title,
.cinema-modal[data-theme="halloween"] .poster-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 42px);
}

.poster-meta-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--m-accent);
}

.poster-concept {
  margin: 2px 0 4px;
  font-size: clamp(11.5px, 1vw, 13px);
  line-height: 1.65;
  color: var(--m-ink-2);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Frameless Casting Switcher Pills */
.poster-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.mode-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 12, 20, 0.34);
  backdrop-filter: blur(8px);
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--m-ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  border-color: var(--m-accent);
  color: #ffffff;
}

.mode-btn.active {
  background: var(--m-accent);
  border-color: var(--m-accent);
  color: var(--m-accent-ink);
  font-weight: 700;
}

.poster-links-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
}

.at-underlined-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--m-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.at-underlined-link:hover {
  text-shadow: 0 0 12px var(--m-accent);
}

.poster-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.at-text-action {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: color 0.2s ease;
}

.at-text-action:hover {
  color: var(--m-accent);
}

/* --- CENTER 9:16 HERO VIDEO (Floats Seamlessly in the Center of Its Own World) --- */
.poster-center-stage {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.single-player-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-vessel {
  height: 100%;
  max-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.62),
    0 0 90px rgba(var(--amb-1), 0.38);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-vessel video {
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  display: block;
}

.compare-player-wrap {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 10px;
  align-items: center;
}

.compare-pane {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.5);
}

.compare-pane video { max-height: 100%; max-width: 100%; height: 100%; object-fit: contain; }

.compare-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  background: rgba(6, 12, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.compare-toolbar { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; }
.compare-ctrl-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(6, 12, 20, 0.55);
  color: #ffffff;
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.compare-ctrl-btn:hover { border-color: var(--m-accent); color: var(--m-accent); }

/* --- RIGHT FLOATING TELEMETRY HUD (Exact Active Theory Right Edge Style) --- */
.poster-hud-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
  min-width: 0;
  z-index: 4;
}

.poster-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poster-nav-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 12, 20, 0.34);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-tech);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.poster-nav-btn:hover {
  border-color: var(--m-accent);
  color: var(--m-accent);
}

.poster-telemetry-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  width: 100%;
  max-width: 290px;
}

.telemetry-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  width: 100%;
}

.t-label {
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--m-ink-3);
}

.t-val {
  font-family: var(--font-tech);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.poster-beats-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

.shot-beat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.shot-beat-item:hover,
.shot-beat-item.is-current-beat {
  opacity: 1;
  transform: translateX(-3px);
}

.beat-time {
  font-family: var(--font-tech);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--m-accent);
}

.beat-desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--m-ink-1);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.poster-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  max-width: 280px;
}

.poster-craft-line {
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--m-ink-2);
  line-height: 1.5;
}

.poster-tags-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.craft-tag-chip {
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--m-accent);
  opacity: 0.9;
}

/* --- CLEAN FLOATING PROMPT GLASS POPOVER (Opens on + DIRECTOR PROMPT) --- */
.poster-prompt-popover {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 12;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(8, 15, 24, 0.92);
  backdrop-filter: blur(22px);
  border: 1px solid var(--m-accent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: modalIn 0.26s var(--ease) both;
}

.popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.popover-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-prompt-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 0;
  background: var(--m-accent);
  color: var(--m-accent-ink);
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.popover-close-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.prompt-excerpt-text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.68;
  color: #e6f2fa;
  max-height: 180px;
  overflow-y: auto;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(8, 16, 26, 0.94);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.12em;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   Keep clean 3-Zone Poster Layout on 640px+ split panes!
   ========================================================================== */
@media (max-width: 1180px) {
  .works-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lab-pipeline-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-lab { padding-left: 36px; padding-right: 36px; }
  .helix-active-bar { margin-bottom: 48px; }
}

@media (max-width: 1024px) {
  .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-panel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .at-top-hud { top: 14px; left: 14px; right: 14px; flex-wrap: wrap; }
  .at-stadium-pill { height: 42px; padding: 0 14px; gap: 10px; }
  .at-pill-link { font-size: 11px; }
  .at-chat-menu { left: 14px; bottom: 14px; width: calc(100vw - 28px); }
  .chat-menu-links { flex-direction: row; flex-wrap: wrap; gap: 6px 12px; }
  .at-corner-hud { display: none; }
  .lab-center-banner { grid-template-columns: 1fr; gap: 10px; }
  .lab-emblem-sep { display: none; }
  .lab-pipeline-strip, .lab-metrics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-grid, .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-group { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .cinema-shell { width: 100vw; height: 95vh; clip-path: none; }
  .cinema-poster-stage {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .poster-center-stage { height: 54vh; order: -1; }
  .poster-hud-right { align-items: flex-start; text-align: left; }
  .poster-telemetry-block, .telemetry-stat, .shot-beat-item { align-items: flex-start; }
}
