/* ==========================================================================
   TJ // PERSONAL DESIGN ECOSYSTEM — EDITORIAL STYLESHEET WITH KINETIC MOTION LOOPS
   Aesthetics: Designer Operating System, Swiss Typography, Generous Whitespace
   Palette: Pure White (#FFFFFF), Pitch Black (#0A0A0C), Steel Grey (#475467 / #E4E7EC), Ferrari Red (#FF1801)
   ========================================================================== */

:root,
html[data-theme="mono"] {
  --bg-canvas: #FFFFFF;
  --bg-subtle: #F8F9FA;
  --bg-surface: #ECEEF2;
  --bg-card: #FFFFFF;
  --text-main: #0A0A0C;
  --text-muted: #525866;
  --text-dim: #98A2B3;
  --hairline: #E4E7EC;
  --hairline-dark: #0A0A0C;
  --accent-red: #FF1801;
  --accent-red-hover: #D41200;
  --accent-red-subtle: rgba(255, 24, 1, 0.08);
}

html[data-theme="dark"] {
  --bg-canvas: #090A0C;
  --bg-subtle: #111216;
  --bg-surface: #17181F;
  --bg-card: #13141A;
  --text-main: #F4F5F7;
  --text-muted: #9BA3AF;
  --text-dim: #5E6778;
  --hairline: #22252F;
  --hairline-dark: #FFFFFF;
  --accent-red: #FF2A2A;
  --accent-red-hover: #FF4D4D;
  --accent-red-subtle: rgba(255, 42, 42, 0.15);
}

/* 3. FERRARI RED THEME (VIBRANT RED CANVAS + HIGH-CONTRAST PITCH BLACK CARDS & WHITE TEXT) */
html[data-theme="red"] {
  --bg-canvas: #FF1801;
  --bg-subtle: #E01400;
  --bg-surface: #C41000;
  --bg-card: #0A0A0C;
  --text-main: #FFFFFF;
  --text-muted: #F2F4F7;
  --text-dim: #D0D5DD;
  --hairline: rgba(0, 0, 0, 0.22);
  --hairline-dark: #0A0A0C;
  --accent-red: #0A0A0C;
  --accent-red-hover: #1D2939;
  --accent-red-subtle: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   GLOBAL HIGH-CONTRAST TEXT SELECTION & HIGHLIGHT ENGINE
   ========================================================================== */
::selection {
  background-color: var(--accent-red, #FF1801) !important;
  color: #FFFFFF !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

::-moz-selection {
  background-color: var(--accent-red, #FF1801) !important;
  color: #FFFFFF !important;
  text-shadow: none !important;
}

/* Theme-specific selection highlights */
html[data-theme="mono"] ::selection,
html[data-theme="mono"] ::-moz-selection {
  background-color: #FF1801 !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

html[data-theme="dark"] ::selection,
html[data-theme="dark"] ::-moz-selection {
  background-color: #FF2A2A !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

html[data-theme="red"] ::selection,
html[data-theme="red"] ::-moz-selection {
  background-color: #0A0A0C !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* Universal Interactive Hover Visibility */
a {
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

a:hover {
  color: var(--accent-red, #FF1801);
}

.nav-link {
  color: var(--text-muted);
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-main) !important;
  font-weight: 700;
}

/* Theme Switching Smooth Transitions */
body, header, section, div, article, nav, button, input, textarea, a {
  transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic Theme Element Overrides */
html:not([data-theme="mono"]) header {
  background-color: rgba(13, 15, 18, 0.88) !important;
}

html[data-theme="red"] header {
  background-color: rgba(255, 24, 1, 0.95) !important;
  border-bottom-color: rgba(0, 0, 0, 0.2) !important;
}

/* Cards & Surfaces */
html:not([data-theme="mono"]) .bg-white {
  background-color: var(--bg-card) !important;
}

html[data-theme="red"] .bg-white {
  background-color: #0A0A0C !important;
  color: #FFFFFF !important;
}

html:not([data-theme="mono"]) .bg-steel-50 {
  background-color: var(--bg-subtle) !important;
}

html[data-theme="red"] .bg-steel-50 {
  background-color: #E01400 !important;
}

html:not([data-theme="mono"]) .bg-steel-100 {
  background-color: var(--bg-surface) !important;
}

html[data-theme="red"] .bg-steel-100 {
  background-color: #C41000 !important;
}

html:not([data-theme="mono"]) .bg-\[\#ECEEF2\] {
  background-color: var(--bg-surface) !important;
}

html[data-theme="dark"] .bg-pitch {
  background-color: #040506 !important;
}

html[data-theme="red"] .bg-pitch {
  background-color: #0A0A0C !important;
}

/* Typography Overrides */
html:not([data-theme="mono"]) .text-pitch {
  color: var(--text-main) !important;
}

html:not([data-theme="mono"]) .text-steel-600,
html:not([data-theme="mono"]) .text-steel-500 {
  color: var(--text-muted) !important;
}

html[data-theme="red"] .text-steel-600,
html[data-theme="red"] .text-steel-700,
html[data-theme="red"] .text-steel-500 {
  color: #F2F4F7 !important;
}

/* Badges */
html[data-theme="red"] .section-badge {
  background-color: #0A0A0C !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Hairline Borders */
html:not([data-theme="mono"]) .border-steel-200,
html:not([data-theme="mono"]) .border-steel-300,
html:not([data-theme="mono"]) .border-line-b,
html:not([data-theme="mono"]) .border-line-t,
html:not([data-theme="mono"]) .border-line-r,
html:not([data-theme="mono"]) .border-line-l {
  border-color: var(--hairline) !important;
}

/* Forms & Inputs */
html[data-theme="red"] input,
html[data-theme="red"] select,
html[data-theme="red"] textarea {
  background-color: #0A0A0C !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Buttons */
html:not([data-theme="mono"]) .btn-primary {
  background-color: var(--text-main) !important;
  color: var(--bg-canvas) !important;
  border-color: var(--text-main) !important;
}

html:not([data-theme="mono"]) .btn-primary:hover {
  background-color: var(--accent-red) !important;
  color: #0A0A0C !important;
  border-color: var(--accent-red) !important;
}

html[data-theme="red"] .btn-primary {
  background-color: #0A0A0C !important;
  color: #FFFFFF !important;
  border-color: #0A0A0C !important;
}

html[data-theme="red"] .btn-primary:hover {
  background-color: #FFFFFF !important;
  color: #0A0A0C !important;
  border-color: #FFFFFF !important;
}

html:not([data-theme="mono"]) .btn-outline {
  border-color: var(--hairline) !important;
  color: var(--text-main) !important;
}

html:not([data-theme="mono"]) .btn-outline:hover {
  border-color: var(--text-main) !important;
  background-color: var(--text-main) !important;
  color: var(--bg-canvas) !important;
}

/* Theme Switcher Button UI */
.theme-btn {
  font-family: 'Space Mono', 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.theme-btn:hover {
  color: var(--text-main);
}

.theme-btn.active {
  background-color: var(--text-main);
  color: var(--bg-canvas);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, sans-serif;
  letter-spacing: -0.015em;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.5;
  font-family: 'Inter', -apple-system, sans-serif;
}

/* Hide default cursor on desktop for custom Framer follower */
@media (min-width: 1024px) {
  body {
    cursor: default;
  }
}

/* ==========================================================================
   FRAMER-STYLE SPRING CUSTOM CURSOR
   ========================================================================== */
#custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.1s ease;
  opacity: 0;
}

#custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.2px solid rgba(10, 10, 12, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  opacity: 0;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
}

#custom-cursor-follower.hover-link {
  width: 48px;
  height: 48px;
  border-color: var(--accent-red);
  background-color: rgba(255, 24, 1, 0.08);
}

#custom-cursor-follower.hover-project {
  width: 76px;
  height: 76px;
  background-color: var(--text-main);
  border-color: var(--text-main);
  box-shadow: 0 12px 30px rgba(10, 10, 12, 0.25);
}

#custom-cursor-follower.hover-project::after {
  content: 'VIEW ↗';
  letter-spacing: 0.05em;
}

/* ==========================================================================
   INFINITE LOOP KINETIC MARQUEE REEL (JITTER RECAP STYLE)
   ========================================================================== */
.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: 0;
  width: 100%;
  position: relative;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
  gap: 3rem;
  animation: marqueeScroll 24s linear infinite;
}

.marquee-reverse .marquee-content {
  animation: marqueeScrollReverse 28s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes marqueeScrollReverse {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Kinetic Recap Project Card Hover Unfolds */
.kinetic-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.kinetic-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(10, 10, 12, 0.08);
}

.kinetic-card .card-sheen {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.kinetic-card:hover .card-sheen {
  left: 200%;
}

/* ==========================================================================
   HIGH-FASHION SQUIRCLE BENTO CLUSTER (PINTEREST PIN INSPIRATION)
   ========================================================================== */
.squircle {
  border-radius: 2.75rem;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.squircle:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 50px rgba(10, 10, 12, 0.12);
}

.squircle-dot-matrix {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  grid-gap: 8px;
  justify-content: center;
  align-items: center;
}

.squircle-dot-matrix span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-main);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.squircle:hover .squircle-dot-matrix span {
  transform: scale(1.25);
  background-color: var(--accent-red);
}

/* ==========================================================================
   ARCHITECTURAL SWISS MAGAZINE BENTO & FILMSTRIP (INSPIRED BY USER INSPO)
   ========================================================================== */

/* Subtle Architectural Matrix Blueprint Grid */
.architectural-blueprint-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(150, 160, 175, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 160, 175, 0.08) 1px, transparent 1px);
}

html[data-theme="dark"] .architectural-blueprint-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

html[data-theme="acid"] .architectural-blueprint-grid {
  background-image: 
    linear-gradient(to right, rgba(204, 255, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(204, 255, 0, 0.05) 1px, transparent 1px);
}

html[data-theme="clay"] .architectural-blueprint-grid {
  background-image: 
    linear-gradient(to right, rgba(35, 30, 27, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35, 30, 27, 0.06) 1px, transparent 1px);
}

/* Horizontal Filmstrip Component (From Inspo Image 1: How Long Gone Live) */
.filmstrip-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--hairline);
  overflow: hidden;
  background-color: var(--bg-card);
}

@media (min-width: 768px) {
  .filmstrip-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.filmstrip-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-right: 1px solid var(--hairline);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

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

.filmstrip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: grayscale(20%);
}

.filmstrip-item:hover img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

/* Magazine Floating Specimen Tile (From Inspo Images 2, 3 & 4) */
.specimen-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--hairline);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.specimen-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--text-main);
}

/* ==========================================================================
   DREX-STYLE MODULAR COORDINATE MATRIX GRID (SMALL THUMBNAILS & DISPERSED TYPOGRAPHY)
   ========================================================================== */
.drex-modular-matrix {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--hairline);
  padding: 24px;
  position: relative;
}

@media (min-width: 768px) {
  .drex-modular-matrix {
    gap: 20px;
    padding: 36px;
  }
}

.drex-tile {
  background-color: var(--bg-card);
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drex-tile.interactive-thumbnail {
  cursor: pointer;
}

.drex-tile.interactive-thumbnail:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--text-main);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.drex-tile.interactive-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.drex-tile.interactive-thumbnail:hover img {
  transform: scale(1.06);
}

.drex-typo-tile {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==========================================================================
   HIGNS COMPACT MICRO-THUMBNAIL PRODUCT GALLERY (DIRECT SITE REDIRECT)
   ========================================================================== */
.higns-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .higns-compact-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .higns-compact-grid {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

.higns-micro-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--hairline);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-radius: 2px;
  text-decoration: none;
  aspect-ratio: 1 / 1.35;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.2s ease, 
              box-shadow 0.25s ease;
}

.higns-micro-card:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: var(--text-main);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.higns-micro-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 4px 0;
  transition: transform 0.35s ease;
}

.higns-micro-card:hover .higns-micro-thumb {
  transform: scale(1.1);
}

.higns-mosaic-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background-color: var(--hairline);
  border: 1px solid var(--hairline);
  padding: 2px;
}

@media (min-width: 640px) {
  .higns-mosaic-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .higns-mosaic-matrix {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.higns-mosaic-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.higns-cell-dark {
  background-color: var(--text-main);
  color: var(--bg-canvas);
}

.higns-cell-light {
  background-color: var(--bg-surface);
  color: var(--text-main);
}

.higns-cell-accent {
  background-color: var(--accent-red);
  color: #FFFFFF;
}

.higns-mosaic-cell.product-cell {
  cursor: pointer;
  text-decoration: none;
}

.higns-mosaic-cell.product-cell:hover {
  transform: scale(0.98);
  box-shadow: inset 0 0 0 2px var(--accent-red);
  z-index: 5;
}

.higns-tiny-thumb {
  width: 58%;
  height: 58%;
  object-fit: contain;
  margin: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.higns-mosaic-cell.product-cell:hover .higns-tiny-thumb {
  transform: scale(1.15);
}

.higns-cell-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
}

/* ==========================================================================
   INTERACTIVE PANNABLE SPECIMEN GALLERY CANVAS (TINY THUMBNAILS & VAST NEGATIVE SPACE)
   ========================================================================== */
.gallery-viewport {
  position: relative;
  width: 100%;
  height: clamp(560px, 75vh, 680px);
  background-color: var(--bg-surface);
  border: 1px solid var(--hairline);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  display: flex;
  align-items: center;
}

.gallery-viewport:active {
  cursor: grabbing;
}

.gallery-canvas-track {
  position: absolute;
  top: 0;
  left: 0;
  min-width: max-content;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 70px;
  padding: 40px 220px 40px 100px;
  will-change: transform;
}

/* Editorial Multi-Tier Vertical Layout Distribution (Stable, Zero-Flicker CSS Variables) */
.editorial-tier-top-far {
  --tier-y: -160px;
}
.editorial-tier-top {
  --tier-y: -110px;
}
.editorial-tier-mid-high {
  --tier-y: -50px;
}
.editorial-tier-center {
  --tier-y: 0px;
}
.editorial-tier-mid-low {
  --tier-y: 60px;
}
.editorial-tier-bottom {
  --tier-y: 120px;
}
.editorial-tier-bottom-far {
  --tier-y: 165px;
}

/* Editorial Floating Technical Annotation Callouts */
.editorial-callout-marker {
  transform: translateY(var(--tier-y, 0px));
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  color: var(--text-muted);
  border-left: 1.5px solid var(--accent-red);
  padding-left: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.75;
  user-select: none;
}

/* Free-Floating Borderless Specimen Assets on Open Blueprint Canvas */
.specimen-node {
  position: relative;
  flex-shrink: 0;
  --group-shift-x: 0px;
  --group-shift-y: 0px;
  --group-scale: 1;
  transform: translate(var(--group-shift-x, 0px), calc(var(--tier-y, 0px) + var(--group-shift-y, 0px))) scale(var(--group-scale, 1));
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

.specimen-node:hover {
  --group-scale: 1.15;
  z-index: 50;
}

.specimen-node.is-grouped-specimen {
  z-index: 45;
  --group-scale: 1.18;
}

.specimen-node.is-grouped-specimen:hover {
  --group-scale: 1.28;
  z-index: 60;
}

.specimen-node.is-dimmed-specimen {
  opacity: 0.04 !important;
  pointer-events: none !important;
  --group-scale: 0.72;
}

.specimen-thumb-wrap {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  pointer-events: auto;
  width: clamp(70px, 9vw, 110px);
  height: clamp(70px, 9vw, 110px);
  max-width: 120px;
  max-height: 120px;
}

.specimen-thumb-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent !important;
  transition: filter 0.3s ease;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.1));
  pointer-events: none;
  user-select: none;
}

.specimen-node:hover .specimen-thumb-wrap img {
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.25));
}

/* Minimalist floating typography label */
.specimen-meta-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--text-muted);
  margin-top: 8px;
  white-space: nowrap;
  opacity: 0.75;
  transition: opacity 0.3s ease, color 0.3s ease;
  pointer-events: none;
  user-select: none;
}

.specimen-node:hover .specimen-meta-pill {
  opacity: 1;
  color: var(--text-main);
}

.specimen-meta-pill .node-id {
  color: var(--accent-red);
  font-weight: 700;
}

.specimen-meta-pill .node-category {
  font-size: 7.5px;
  color: var(--accent-red);
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.specimen-meta-pill .node-title {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  font-weight: 600;
}

/* Category Filter Buttons */
.gallery-filter-pill {
  font-family: 'Space Mono', 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  background-color: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  letter-spacing: 0.04em;
  user-select: none;
}

.gallery-filter-pill:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.gallery-filter-pill.active {
  background-color: var(--text-main) !important;
  border-color: var(--text-main) !important;
  color: var(--bg-canvas) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* Theme-Specific High-Contrast Active States */
html[data-theme="mono"] .gallery-filter-pill.active {
  background-color: #0A0A0C !important;
  border-color: #0A0A0C !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] .gallery-filter-pill.active {
  background-color: #F4F5F7 !important;
  border-color: #F4F5F7 !important;
  color: #090A0C !important;
}

html[data-theme="red"] .gallery-filter-pill {
  background-color: rgba(0, 0, 0, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
}

html[data-theme="red"] .gallery-filter-pill:hover {
  background-color: rgba(0, 0, 0, 0.4) !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

html[data-theme="red"] .gallery-filter-pill.active {
  background-color: #0A0A0C !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   EDITORIAL ARCHITECTURAL 4-MODULE CURRICULUM GRID (CLO CLASSES)
   (Side-by-Side High-Visibility 3D Simulation Viewport & Giant Red Numbers)
   ========================================================================== */
.clo-column {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.clo-column:hover {
  transform: translateY(-3px);
  z-index: 2;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.clo-right-canvas {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background-color: var(--bg-subtle);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.clo-column:hover .clo-right-canvas {
  border-color: var(--accent-red);
  box-shadow: 0 8px 24px rgba(255, 24, 1, 0.15);
}

.clo-right-canvas img {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.clo-column:hover .clo-right-canvas img {
  transform: scale(1.05);
}

/* ==========================================================================
   SYLLABUS TABLE ROW HOVER & HIGH-CONTRAST VISIBILITY
   ========================================================================== */
table tbody tr {
  transition: background-color 0.2s ease, color 0.2s ease;
}

table tbody tr:hover {
  background-color: var(--bg-subtle) !important;
}

table tbody tr:hover td {
  color: var(--text-main) !important;
}

table tbody tr:hover td:first-child strong {
  color: var(--accent-red) !important;
}
.clo-interactive-artboard {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  user-select: none;
  background-color: var(--bg-card);
  background-image: radial-gradient(var(--steel-300) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
}

/* Technical CAD Drafting Corner Brackets */
.clo-interactive-artboard::before,
.clo-interactive-artboard::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--text-main);
  pointer-events: none;
  z-index: 10;
}

.clo-interactive-artboard::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--text-main);
  border-left: 2px solid var(--text-main);
}

.clo-interactive-artboard::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--text-main);
  border-right: 2px solid var(--text-main);
}

/* Technical Calibration Axis Matrix */
.clo-axis-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clo-axis-h {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--steel-200) 20%, var(--steel-200) 80%, transparent 95%);
}

.clo-axis-v {
  position: absolute;
  height: 100%;
  width: 1px;
  background: linear-gradient(180deg, transparent 5%, var(--steel-200) 20%, var(--steel-200) 80%, transparent 95%);
}

/* Technical Avatar Fit Optical Sensor Housing */
.clo-lens-housing {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2A2A2A 0%, #141414 70%, #0A0A0A 100%);
  border: 2px solid #222222;
  box-shadow: 
    0 24px 50px rgba(0, 0, 0, 0.25),
    inset 0 0 0 6px #111111,
    inset 0 0 0 8px #333333,
    inset 0 10px 20px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  cursor: crosshair;
}

/* Outer HUD Degree Ticks */
.clo-lens-ticks {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.clo-lens-iris {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1C2E4A 0%, #0A1424 75%, #050A12 100%);
  border: 1px solid rgba(0, 82, 255, 0.4);
  box-shadow: 
    0 0 20px rgba(0, 82, 255, 0.25),
    inset 0 0 12px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s cubic-bezier(0.1, 0.9, 0.2, 1);
  will-change: transform;
}

.clo-lens-core {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #0A0A0A 0%, #000000 100%);
  border: 1.5px solid rgba(255, 42, 0, 0.6);
  box-shadow: 0 0 10px rgba(255, 42, 0, 0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optical Specular Reflections */
.clo-lens-core::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #FFFFFF;
  opacity: 0.9;
}

.clo-lens-core::before {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #0052FF;
  opacity: 0.8;
}

/* Floating Technical Fashion CAD Badges */
.clo-floating-item {
  position: absolute;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  cursor: grab;
  z-index: 25;
}

.clo-floating-item:active {
  cursor: grabbing;
  transform: scale(0.95) !important;
}

.clo-tech-tag {
  background-color: var(--bg-card);
  border: 1px solid var(--hairline);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.clo-tech-tag .dot-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--ferrari);
}

.clo-tech-tag .dot-blue {
  background-color: #0052FF;
}

/* Float Animations */
@keyframes tech-float-a {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

@keyframes tech-float-b {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(6px) rotate(-2deg); }
}

.animate-tech-float-a {
  animation: tech-float-a 5s ease-in-out infinite;
}

.animate-tech-float-b {
  animation: tech-float-b 6s ease-in-out infinite;
}

/* Editorial Typography */
.font-display {
  font-family: 'Inter', 'Space Grotesk', -apple-system, sans-serif !important;
  letter-spacing: -0.04em;
  font-weight: 800;
}

/* ==========================================================================
   FOCUS REEL / VERTICAL FOCUS CAROUSEL INSPECTOR (Jitter Reference)
   ========================================================================== */
.focus-reel-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 12, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6px, 1.5vw, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.focus-reel-window {
  width: 98vw;
  max-width: 1720px;
  height: 95vh;
  max-height: 980px;
  background-color: var(--bg-surface);
  border: 1px solid var(--hairline);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 6px;
}

/* Focus Reel Header */
.focus-reel-header {
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
}

/* Focus Reel Main Body Grid: Stage + Vertical Carousel */
.focus-reel-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-surface);
}

@media (max-width: 1100px) {
  .focus-reel-body {
    grid-template-columns: 1fr 320px;
  }
}

@media (max-width: 860px) {
  .focus-reel-body {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
}

/* Central Active Frame Stage */
.focus-reel-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, transparent 75%);
}

.focus-reel-stage img {
  max-width: 95%;
  max-height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.3));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  will-change: transform, opacity;
}

/* Vertical Focus Carousel Track */
.focus-reel-sidebar {
  border-left: 1px solid var(--hairline);
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.focus-pill-tag {
  font-family: 'Space Mono', 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--hairline);
  text-transform: uppercase;
}

.focus-reel-track-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-behavior: smooth;
}

.focus-reel-track-wrap::-webkit-scrollbar {
  width: 4px;
}
.focus-reel-track-wrap::-webkit-scrollbar-thumb {
  background: var(--hairline);
  border-radius: 2px;
}

/* Individual Reel Card with Focus Zoom & Depth Blur */
.focus-reel-card {
  position: relative;
  border-radius: 3px;
  border: 1px solid var(--hairline);
  background-color: var(--bg-surface);
  padding: 0.6rem;
  cursor: pointer;
  opacity: 0.45;
  transform: scale(0.92);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.focus-reel-card:hover {
  opacity: 0.8;
  transform: scale(0.96);
  border-color: var(--text-muted);
}

.focus-reel-card.active {
  opacity: 1;
  transform: scale(1.04);
  border-color: var(--ferrari);
  box-shadow: 0 10px 30px rgba(255, 42, 0, 0.15), 0 0 0 1px var(--ferrari);
  background-color: var(--bg-card);
}

.focus-reel-card-thumb {
  aspect-ratio: 16/10;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.focus-reel-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.focus-reel-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  color: var(--text-muted);
}

.focus-reel-card.active .focus-reel-card-meta {
  color: var(--text-main);
  font-weight: 700;
}

/* Focus Reel Footer Bar */
.focus-reel-footer {
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--hairline);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.recap-lane {
  position: relative;
  flex: 1;
  border-right: 1px solid var(--hairline);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 40px 16px;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.recap-lane:last-child {
  border-right: none;
}

.recap-lane-label {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  pointer-events: none;
}

/* Floating Specimen Items */
.recap-item {
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  z-index: 10;
}

.recap-item:hover {
  transform: translateY(-8px) scale(1.04);
  z-index: 30;
}

/* Dynamic CAD Blueprint Caliper Nodes */
.cad-word-target {
  position: relative;
  display: inline-block;
  cursor: crosshair;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: rgba(10, 10, 10, 0.2);
  text-underline-offset: 6px;
}

.cad-word-target:hover {
  color: var(--ferrari-red, #FF2A00);
  text-decoration-color: var(--ferrari-red, #FF2A00);
}

.recap-thumb-box {
  background-color: var(--bg-card);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.recap-item:hover .recap-thumb-box {
  border-color: var(--text-main);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.recap-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.recap-item:hover .recap-thumb-box img {
  transform: scale(1.08);
}

/* Centerpiece Floating Typographic Anchor */
.recap-center-hero {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 20;
  width: 90%;
  max-width: 650px;
}

.recap-center-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--text-main);
  text-transform: uppercase;
  white-space: nowrap;
}

.recap-accent-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-red);
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.5rem);
  width: 60px;
  height: 60px;
  margin: 12px auto 0;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(255, 24, 1, 0.25);
}

@media (min-width: 768px) {
  .recap-accent-box {
    width: 75px;
    height: 75px;
  }
}

.recap-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 6px;
}

.recap-item-meta .num {
  font-weight: 700;
  color: var(--text-main);
}

/* Circular Sculpture Shape from Reference */
.recap-shape-circle {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

/* Editorial Typography */
.font-display {
  font-family: 'Inter', 'Space Grotesk', -apple-system, sans-serif !important;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.font-mono-code {
  font-family: 'Space Mono', 'JetBrains Mono', monospace !important;
  letter-spacing: -0.01em;
}

/* Hairlines */
.border-line-b { border-bottom: 1px solid var(--hairline); }
.border-line-t { border-top: 1px solid var(--hairline); }
.border-line-r { border-right: 1px solid var(--hairline); }
.border-line-l { border-left: 1px solid var(--hairline); }
.border-line-all { border: 1px solid var(--hairline); }

.border-pitch-b { border-bottom: 1px solid var(--text-main); }
.border-pitch-t { border-top: 1px solid var(--text-main); }
.border-pitch-all { border: 1px solid var(--text-main); }

/* Navigation Links */
.nav-link {
  font-family: 'Space Mono', 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  letter-spacing: 0.05em;
}

.nav-link:hover {
  color: var(--text-main);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-red);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--text-main);
  color: var(--bg-canvas);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--text-main);
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 24, 1, 0.18);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: transparent;
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--hairline-dark);
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(10, 10, 12, 0.06);
}

.btn-outline:active {
  transform: translateY(0);
}

/* 3D Perspective Tilt for Cards */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  perspective: 1000px;
}

.tilt-card:hover {
  box-shadow: 0 16px 40px rgba(10, 10, 12, 0.08);
}

/* Project Module Image Zoom */
.project-module {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-module:hover .project-img {
  transform: scale(1.035);
}

.project-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scramble / Decoder Hover Target */
.scramble-text {
  display: inline-block;
  cursor: default;
  transition: color 0.2s ease;
}

.scramble-text:hover {
  color: var(--accent-red);
}

/* Floating Live Coordinate Crosshair HUD */
#hud-pill {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#hud-pill:hover {
  border-color: var(--accent-red);
  box-shadow: 0 8px 24px rgba(255, 24, 1, 0.12);
}

/* Audio Bars Animation */
.audio-pulse span {
  display: inline-block;
  width: 2px;
  background-color: var(--accent-red);
  transition: height 0.15s ease;
}

.audio-pulse.active span:nth-child(1) { animation: audioBounce 0.6s infinite alternate ease-in-out; }
.audio-pulse.active span:nth-child(2) { animation: audioBounce 0.45s infinite alternate ease-in-out 0.15s; }
.audio-pulse.active span:nth-child(3) { animation: audioBounce 0.75s infinite alternate ease-in-out 0.3s; }

@keyframes audioBounce {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* Click Ripple Wave */
.click-ripple {
  position: fixed;
  border-radius: 50%;
  border: 1px solid var(--accent-red);
  background: rgba(255, 24, 1, 0.06);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
  animation: rippleExpand 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 9999;
}

@keyframes rippleExpand {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.4);
  }
}

/* Badge Marker */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.section-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-red);
  animation: dotPulse 2s infinite ease-in-out;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* Selection */
::selection {
  background-color: var(--accent-red);
  color: #FFFFFF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--hairline);
}
/* ==========================================================================
   INTERACTIVE HERO MANIFESTO HEADLINE
   ========================================================================== */
.hero-manifesto-title {
  letter-spacing: -0.035em;
}

.manifesto-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.22em;
}

.kinetic-word {
  display: inline-block;
  cursor: default;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.2s ease, 
              letter-spacing 0.25s ease;
  position: relative;
}

.kinetic-word:hover {
  transform: translateY(-4px) scale(1.03);
  color: var(--accent-red);
}

.kinetic-hollow {
  -webkit-text-stroke: 1.5px var(--text-main);
  color: transparent;
  transition: all 0.25s ease;
}

.kinetic-hollow:hover {
  color: var(--text-main);
  -webkit-text-stroke: 0px transparent;
  transform: translateY(-4px) scale(1.03);
}

.kinetic-word-special {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kinetic-word-special:hover {
  transform: translateY(-3px) scale(1.04);
}

.kinetic-word-special:active {
  transform: translateY(1px) scale(0.97);
}

.ordinary-text {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ordinary-badge {
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.kinetic-word-special:hover .ordinary-badge {
  background-color: var(--accent-red);
  color: #FFFFFF;
}

/* =======================================================================/* ==========================================================================
   HERO 100% BORDERLESS FLOATING BLACK & WHITE PORTRAIT (ACTIVE FILM GRAIN)
   ========================================================================== */
.hero-portrait-wrap {
  perspective: 1200px;
  width: 100%;
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-portrait-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(100%) contrast(1.15) brightness(1.02);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  pointer-events: none;
  will-change: transform;
}

.hero-portrait-wrap:hover .hero-portrait-img {
  transform: scale(1.04);
  filter: grayscale(100%) contrast(1.2) brightness(1.04);
}

.hero-portrait-wrap:hover .hero-portrait-viewport {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  border-color: var(--text-main);
}

/* Continuous Active Tactile Moving Film Grain Overlay */
.hero-portrait-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: multiply;
  animation: activeFilmGrain 0.12s steps(4) infinite;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.hero-portrait-wrap:hover .hero-portrait-grain {
  opacity: 0.28;
}

@keyframes activeFilmGrain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, -4%); }
  50% { transform: translate(4%, 3%); }
  75% { transform: translate(-4%, 4%); }
  100% { transform: translate(3%, -3%); }
}

/* ==========================================================================
   VIEWER FEEDBACK & RATING AUDIT MODAL
   ========================================================================== */
#feedback-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#feedback-modal.active {
  display: flex !important;
  opacity: 1;
}

.feedback-window {
  background: var(--bg-card, #FFFFFF);
  color: var(--text-main, #0A0A0C);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#feedback-modal.active .feedback-window {
  transform: translateY(0) scale(1);
}

.star-btn {
  color: #D1D5DB;
  transition: all 0.15s ease;
  line-height: 1;
  user-select: none;
}

.star-btn.active,
.star-btn.hovered {
  color: #F59E0B !important;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.feedback-tag-pill {
  border: 1px solid var(--hairline, #E4E7EC);
  background: var(--bg-card, #FFFFFF);
  color: var(--text-muted, #525866);
}

.feedback-tag-pill.active {
  border-color: var(--text-main, #0A0A0C) !important;
  background: var(--text-main, #0A0A0C) !important;
  color: var(--bg-canvas, #FFFFFF) !important;
}

#feedback-trigger-pill {
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#feedback-trigger-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(255, 24, 1, 0.25);
}

/* ==========================================================================
   CAREER TRAJECTORY REEL HOVER PORTAL
   ========================================================================== */
.trajectory-interactive-node {
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.trajectory-interactive-node:hover {
  border-left-color: var(--accent-red, #FF1801) !important;
}

.trajectory-reel-portal {
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
}




