/* ═══════════════════════════════════════════════════════════
   3D SPIRAL / HELIX SHOWCASE — STYLESHEET
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-color: #070709;
  --bg-grid-color: rgba(255, 255, 255, 0.04);
  --accent-color: #5227ff;
  --accent-glow: rgba(82, 39, 255, 0.4);
  --accent-cyan: #00f0ff;
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.6);
  --card-bg: #121217;
  --card-border: rgba(255, 255, 255, 0.1);
  --card-hover-border: rgba(82, 39, 255, 0.8);
  --font-display: 'Syne', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  position: fixed;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-mono);
  user-select: none;
  -webkit-user-select: none;
}

/* ─── FULLSCREEN 3D CARD PRELOADER ─── */
.preloader-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #070709;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  perspective: 1200px;
}

.preloader-overlay.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.card-preloader-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1000px;
}

.card-preloader-wrapper {
  position: relative;
  width: clamp(170px, 20vw, 240px);
  aspect-ratio: 674 / 1024;
  transform-style: preserve-3d;
  animation: card-float 3.6s ease-in-out infinite;
}

.card-preloader-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Card Faces */
.card-preloader-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 35px rgba(39, 100, 255, 0.35);
  background: #0a0a10;
}

.card-preloader-front {
  transform: rotateY(0deg) translateZ(1px);
}

.card-preloader-back {
  transform: rotateY(180deg) translateZ(1px);
}

.card-preloader-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Metallic Edge / Border Glow */
.card-preloader-border {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 15px rgba(39, 100, 255, 0.25);
  pointer-events: none;
}

/* Dynamic Hologram / Specular Shine */
.card-preloader-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(39, 100, 255, 0.3) 60%,
    transparent 80%
  );
  background-size: 200% 200%;
  animation: card-shine 3.2s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Floating 3D Ground Shadow */
.card-preloader-shadow {
  width: clamp(140px, 16vw, 190px);
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(39, 100, 255, 0.45) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 70%);
  border-radius: 50%;
  margin-top: 2rem;
  filter: blur(4px);
  animation: card-shadow-pulse 3.6s ease-in-out infinite;
}

/* Brand Text & Progress Bar */
.card-preloader-brand {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.card-preloader-brand__name {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.9;
  text-shadow: 0 0 16px rgba(39, 100, 255, 0.6);
}

.card-preloader-brand__bar {
  width: 90px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.card-preloader-brand__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 45%;
  background: #2764ff;
  box-shadow: 0 0 10px #2764ff;
  border-radius: 2px;
  animation: card-bar-scan 1.6s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes card-spin-horizontal {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes card-float {
  0%, 100% {
    transform: translateY(0px) rotateX(0deg);
  }
  50% {
    transform: translateY(-12px) rotateX(2deg);
  }
}

@keyframes card-shine {
  0% {
    background-position: 200% 0%;
  }
  100% {
    background-position: -200% 0%;
  }
}

@keyframes card-shadow-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(0.82);
    opacity: 0.35;
  }
}

@keyframes card-bar-scan {
  0% {
    left: -45%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: -45%;
  }
}

/* ─── INTERACTIVE SHAPE WAVE CANVAS BACKGROUND ─── */
.shape-wave-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* ─── TOP UI BAR (Matching Reference Screenshot) ─── */
.ui-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5.5rem;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 250;
  pointer-events: none;
}

.ui-header > * {
  pointer-events: auto;
}

/* Top-Left: Interactive Character Avatar Badge */
.character-badge-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 50;
}

.character-badge {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 50;
  user-select: none;
}

.character-badge:hover {
  transform: scale(1.08) rotate(3deg);
}

.character-badge:active {
  transform: scale(0.92);
}

.character-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: filter 0.25s ease, transform 0.2s ease;
}

.character-badge:hover .character-avatar {
  filter: drop-shadow(0 8px 24px rgba(255, 255, 255, 0.35));
}

/* First-Time "Click Me!" Attention Popup Bubble (Clean & Minimal Text Pill) */
.character-badge-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.click-me-popup {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: rgba(255, 255, 255, 0.95);
  color: #070709;
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 130;
  transform-origin: left center;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.click-me-popup.is-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  animation: click-me-float 1.8s ease-in-out infinite alternate;
}

.click-me-arrow {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 5px solid rgba(255, 255, 255, 0.95);
}

.click-me-text {
  color: #070709;
  font-weight: 700;
}

@keyframes click-me-float {
  0% {
    transform: translateY(-50%) translateX(0);
  }
  100% {
    transform: translateY(-50%) translateX(3px);
  }
}

/* Floating Pop Reactions */
.pop-bubble-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 120;
}

.pop-sticker {
  position: absolute;
  top: -15px;
  left: 50%;
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.7));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
}

/* Top-Center: Minimalist 'spiral • list' Toggle (Larger & More Prominent) */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
}

.toggle-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
}

.toggle-btn:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.toggle-btn.is-active {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

.toggle-dot {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  line-height: 1;
}



/* ─── BOTTOM-LEFT: PEEKING CORNER SQUIRCLE SHOWREEL (Corner Facing Up) ─── */
.peeking-showreel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 240px;
  height: 240px;
  z-index: 100;
  cursor: pointer;
  pointer-events: auto;
  overflow: visible;
}

.peeking-showreel__frame {
  position: absolute;
  bottom: -58px;
  left: -58px;
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(38deg); /* Corner points upward into screen */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.peeking-showreel:hover .peeking-showreel__frame {
  transform: translate(18px, -18px) rotate(38deg) scale(1.07);
}

.peeking-showreel__svg {
  position: absolute;
  inset: -25px;
  width: 260px;
  height: 260px;
  pointer-events: none;
  overflow: visible;
}

.peeking-showreel__text {
  fill: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Syne', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  opacity: 1;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.95));
}

.peeking-showreel__card {
  position: relative;
  width: 145px;
  height: 145px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d3824 0%, #5f54ff 60%, #2a1088 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 32px rgba(95, 84, 255, 0.35);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.peeking-showreel:hover .peeking-showreel__card {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.95), 0 0 48px rgba(95, 84, 255, 0.55);
}

.peeking-showreel__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(-38deg) scale(1.35); /* Keeps video upright while frame is rotated */
}

.peeking-showreel__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

/* ─── BOTTOM-RIGHT GRID BUTTON (Box & DotmSquare11) ─── */
.grid-button {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 6px 18px 6px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 75ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
}

.grid-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.6), 0 0 24px rgba(39, 100, 255, 0.35);
}

.grid-button:active {
  transform: translateY(2px) scale(0.98);
}

/* Refreshed Accent Blue Box */
.grid-button-box {
  background-color: #2764ff; /* refreshed accent blue */
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 14px rgba(39, 100, 255, 0.5);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

/* DotMatrix Square 11 Component */
.dmx-root.dmx-square-11 {
  width: 28px;
  height: 28px;
  min-width: 20px;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  --dmx-cycle: 1.2s; /* speed: 1.25 -> 1.5s / 1.25 = 1.2s */
  --dmx-opacity-base: 0.16;
  --dmx-opacity-mid: 0.32;
  --dmx-opacity-peak: 1;
}

.dmx-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  height: 100%;
}

.dmx-dot {
  width: 3.2px;
  height: 3.2px;
  margin: auto;
  border-radius: 50%;
  background-color: #ffffff;
  display: block;
  opacity: 0.16;
  animation: dmx-ripple-echo var(--dmx-cycle) ease-in-out infinite;
  animation-delay: calc((var(--ring, 0) * 0.14 + var(--parity, 0) * 0.03) * var(--dmx-cycle));
  will-change: opacity, filter;
}

@keyframes dmx-ripple-echo {
  0%,
  100% {
    opacity: 0.12;
    filter: none;
  }
  28% {
    opacity: 1;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.95));
  }
  56% {
    opacity: 0.32;
    filter: none;
  }
  78% {
    opacity: 0.72;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6));
  }
}

.grid-button-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  transition: opacity 0.2s ease, color 0.2s ease;
}

/* Muted / Inactive State */
.grid-button.is-muted .grid-button-box {
  background-color: #3f3f46;
  box-shadow: none;
}

.grid-button.is-muted .dmx-dot {
  animation: none;
  opacity: 0.22;
  filter: none;
}

.grid-button.is-muted .grid-button-label {
  opacity: 0.45;
}



.is-hidden {
  display: none !important;
}

/* ─── 3D SPIRAL WEBGL CANVAS ─── */
.spiral-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.spiral-container:active {
  cursor: grabbing;
}

.spiral-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}

/* ─── CINEMATIC VIGNETTE OVERLAY (Subtle edges so top/bottom spiral threads touch cleanly) ─── */
.spiral-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  background: 
    radial-gradient(ellipse 85% 82% at 50% 50%, transparent 65%, rgba(7, 7, 9, 0.35) 90%, rgba(7, 7, 9, 0.75) 100%),
    linear-gradient(to bottom, rgba(7, 7, 9, 0.25) 0%, transparent 7%, transparent 93%, rgba(7, 7, 9, 0.25) 100%),
    linear-gradient(to right, rgba(7, 7, 9, 0.35) 0%, transparent 10%, transparent 90%, rgba(7, 7, 9, 0.35) 100%);
}

/* ─── DOCKED BOTTOM-CENTER HOVER PILL (Matching Reference Screenshot) ─── */
.hover-card-pill {
  position: fixed;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px) scale(0.92);
  pointer-events: none;
  cursor: pointer;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 6px 24px 6px 6px;
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.hover-card-pill.is-hovering {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.hover-card-pill:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.03);
}

.hover-card-pill__thumb-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  overflow: hidden;
  background: #1e1e24;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hover-card-pill__title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: #0f1015;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ─── 3D HELIX CARD ITEM ─── */
.spiral-card {
  position: absolute;
  top: -110px;
  left: -160px;
  width: 320px;
  height: 200px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.spiral-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 20px 45px rgba(82, 39, 255, 0.35), 0 0 20px var(--accent-glow);
}

.spiral-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 15px;
}

.spiral-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.spiral-card:hover .spiral-card__media {
  transform: scale(1.06);
}

.spiral-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 9, 0.9) 0%, rgba(7, 7, 9, 0.2) 50%, rgba(7, 7, 9, 0.1) 100%);
  pointer-events: none;
}

.spiral-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.spiral-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.spiral-card__index {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

.spiral-card__play-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s;
}

.spiral-card:hover .spiral-card__play-badge {
  opacity: 1;
  transform: scale(1);
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* ─── LIST / 3D FLIPBOOK SKETCHBOOK VIEW ─── */
.list-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(7, 7, 9, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2.5rem 1.5rem 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

.book-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  width: 100%;
  max-width: 1650px;
  margin: auto;
}

.book-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
}

.book-arrow {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.book-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.book-arrow:active {
  transform: scale(0.95);
}

/* 3D Book Container */
.book {
  position: relative;
  width: min(1360px, 86vw);
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  perspective: 2600px;
  cursor: pointer;
  user-select: none;
}

.book::before {
  content: "";
  position: absolute;
  inset: 9% 19% 3% 21%;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.book * {
  pointer-events: none;
}

.book-page,
.book .page,
.book .turn {
  display: contents;
}

.book .half,
.book .face {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

.book .half {
  width: 50%;
  z-index: 1;
}

.book .half.right {
  left: 50%;
}

.book .half img,
.book .face img {
  display: block;
  width: 200%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.book img.right,
img.right {
  margin-left: -100%;
}

.book .flap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
  z-index: 5;
}

.book .flap.next {
  left: 50%;
}

.book .face {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  outline: 1px solid transparent;
}

.book .face.back {
  transform: rotateY(180deg);
}

.book.blur-light img {
  filter: url(#motion-blur-light);
}

.book.blur-heavy img {
  filter: url(#motion-blur-heavy);
}

.book-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.book-caption {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.book-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

/* ─── EXPANDED CARD MODAL ─── */
.card-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  background: #000000;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Hide all background main screen UI completely when video viewer is open */
body.has-modal-open .ui-header,
body.has-modal-open .spiral-foot,
body.has-modal-open .brand-badge,
body.has-modal-open .grid-button,
body.has-modal-open .character-badge-wrapper,
body.has-modal-open .hover-card-pill,
body.has-modal-open .sticker-peel-root,
body.has-modal-open .pixel-trail-canvas {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 6, 0.94);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  cursor: pointer;
  z-index: 1;
}

/* Fullscreen Edge-to-Edge Media Viewport */
.modal-media-wrap {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  z-index: 2;
  overflow: hidden;
  cursor: pointer;
}

.modal-media-wrap video,
.modal-media-wrap img {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  background: #000;
  display: block;
  user-select: none;
  -webkit-user-select: none;
}

/* Center Play/Pause Glass Ripple Indicator */
.modal-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.65);
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
}

.modal-play-indicator.is-flashing {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.indicator-glass {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(18, 18, 28, 0.65);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.indicator-glass .play-icon,
.indicator-glass .pause-icon {
  display: none;
}

.modal-play-indicator.state-play .play-icon {
  display: block;
  margin-left: 4px;
}

.modal-play-indicator.state-pause .pause-icon {
  display: block;
}

/* Floating Glass HUD Placement */
.modal-glass-hud {
  position: absolute;
  z-index: 30;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

.modal-hud-top-right {
  top: 2rem;
  right: 2.2rem;
}

.modal-hud-bottom-left {
  bottom: 2.2rem;
  left: 2.2rem;
}

.modal-hud-bottom-right {
  bottom: 2.2rem;
  right: 2.2rem;
}

/* Glassmorphism System */
.glass-pill,
.glass-btn,
.glass-nav-group {
  background: rgba(18, 18, 28, 0.65);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Top-Right Close Button */
.glass-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
}

.glass-close-btn:hover {
  background: rgba(255, 60, 90, 0.35);
  border-color: rgba(255, 80, 110, 0.6);
  box-shadow: 0 14px 34px rgba(255, 60, 90, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: rotate(90deg) scale(1.05);
}

/* Bottom-Left Navigation Pill (Prev / Next) */
.glass-nav-group {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 3px;
}

.glass-nav-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: scale(1.02);
}

.glass-nav-btn:active {
  transform: scale(0.96);
}

.glass-nav-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 2px;
}

/* Bottom-Right Small Sound Toggle Button */
.glass-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 1.15rem;
  border-radius: 9999px;
  cursor: pointer;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.glass-sound-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 34px rgba(82, 39, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.glass-sound-btn:active {
  transform: translateY(0) scale(0.96);
}

.glass-sound-btn .sound-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.glass-sound-btn.is-muted .sound-icon-muted {
  display: block;
  color: rgba(255, 255, 255, 0.6);
}

.glass-sound-btn.is-muted .sound-icon-active {
  display: none;
}

.glass-sound-btn.is-audible .sound-icon-muted {
  display: none;
}

.glass-sound-btn.is-audible .sound-icon-active {
  display: block;
  color: var(--accent-cyan);
  animation: soundPulse 1.8s ease-in-out infinite alternate;
}

@keyframes soundPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--accent-cyan)); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 7px var(--accent-cyan)); }
}

/* Subtle Cinematic Progress Scrubbing Line */
.modal-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  z-index: 35;
  transition: height 0.2s ease;
}

.modal-progress-wrap:hover {
  height: 7px;
}

.modal-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #5227ff 0%, #00f0ff 100%);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
  transition: width 0.1s linear;
}

/* ─── FOOTER ─── */
.spiral-foot {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3.5rem;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  font-size: 0.75rem;
  color: var(--text-secondary);
  pointer-events: auto;
}

.spiral-drag-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.drag-arrow {
  animation: bounceArrow 1.5s infinite ease-in-out;
  color: var(--accent-cyan);
}

@keyframes bounceArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

.back-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
}

.back-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ─── COMPREHENSIVE RESPONSIVE DESIGN (PHONE & TABLET) ─── */
@media (max-width: 768px) {
  /* Top UI Bar on Mobile */
  .ui-header {
    height: 4.25rem;
    padding: 0 1rem;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .character-badge {
    width: 46px;
    height: 46px;
  }

  .click-me-popup {
    left: calc(100% + 8px);
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  @media (max-width: 480px) {
    .click-me-popup {
      display: none !important;
    }
  }

  .view-toggle {
    gap: 0.35rem;
  }

  .toggle-btn {
    font-size: 0.95rem;
    padding: 0.2rem 0.35rem;
  }

  .toggle-dot {
    font-size: 0.8rem;
  }

  .sm-toggle {
    font-size: 1.05rem;
    min-height: 48px;
    min-width: 68px;
    padding: 0.65rem 0.95rem;
  }

  .sm-toggle::before {
    inset: -10px -14px;
  }

  /* Peeking Showreel Badge in Bottom-Left Corner */
  .peeking-showreel {
    width: 170px;
    height: 170px;
    transform: scale(0.68);
    transform-origin: bottom left;
    margin-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 90;
  }

  /* Bottom Hover / Active Card Pill (Compact & sleek on mobile format) */
  .hover-card-pill {
    bottom: max(0.85rem, calc(env(safe-area-inset-bottom, 0px) + 0.45rem));
    padding: 3px 12px 3px 3px;
    gap: 8px;
    border-radius: 10px;
    max-width: calc(100vw - 3rem);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .hover-card-pill.is-hovering {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .hover-card-pill:hover {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .hover-card-pill__thumb-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .hover-card-pill__title {
    font-size: 0.72rem;
    font-weight: 600;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }

  /* Fullscreen Theater Modal HUD on Mobile */
  .modal-hud-top-right {
    top: max(1rem, env(safe-area-inset-top, 1rem));
    right: 1rem;
  }

  .modal-hud-bottom-left {
    bottom: max(1.1rem, env(safe-area-inset-bottom, 1.1rem));
    left: 1rem;
  }

  .modal-hud-bottom-right {
    bottom: max(1.1rem, env(safe-area-inset-bottom, 1.1rem));
    right: 1rem;
  }

  .glass-close-btn {
    width: 38px;
    height: 38px;
  }

  .glass-nav-btn {
    padding: 0.42rem 0.78rem;
    font-size: 0.72rem;
    gap: 0.35rem;
  }

  .glass-sound-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.72rem;
    gap: 0.38rem;
  }

  @media (max-width: 420px) {
    .glass-sound-btn .sound-label {
      display: none;
    }
    .glass-sound-btn {
      padding: 0.45rem 0.6rem;
    }
  }

  .indicator-glass {
    width: 64px;
    height: 64px;
  }

  .modal-progress-wrap {
    height: 20px;
    bottom: 0;
  }

  /* Sketchbook 3D Book on Mobile */
  .book-stage {
    gap: 0.65rem;
    padding: 0 0.5rem;
  }

  .book-arrow {
    width: 38px;
    height: 38px;
  }

  .book-arrow svg {
    width: 16px;
    height: 16px;
  }

  .book {
    width: min(1360px, 92vw);
    max-height: 65vh;
  }

  .book-caption {
    font-size: 0.92rem;
  }

  /* Legacy & Grid Button */
  .grid-button {
    bottom: max(1.2rem, env(safe-area-inset-bottom, 1.2rem));
    right: max(1.2rem, env(safe-area-inset-right, 1.2rem));
    padding: 5px 14px 5px 5px;
    font-size: 0.82rem;
  }

  .grid-button-box {
    width: 32px;
    height: 32px;
  }

  .dmx-root.dmx-square-11 {
    width: 24px;
    height: 24px;
  }

  .dmx-dot {
    width: 2.6px;
    height: 2.6px;
  }
}


/* ═══════════════════════════════════════════════════════════
 * FULL STANDALONE ABOUT SECTION VIEW (Takes over whole view)
 * ═══════════════════════════════════════════════════════════ */
.about-view {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #070709;
  z-index: 85;
  padding: 0;
  box-sizing: border-box;
  color: #ffffff;
}

.about-view.is-hidden {
  display: none !important;
}

.about-view::-webkit-scrollbar {
  display: none;
}

.about-view-container {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

/* Nav inside About View */
.about-view-nav {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.about-view-nav > * {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .about-view-nav {
    top: calc(1rem + env(safe-area-inset-top, 0px));
    left: 1.25rem;
    right: 1.25rem;
  }

  .about-social-badge {
    width: 38px;
    height: 38px;
  }
}

.about-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 0.55rem 1.2rem;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-back-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateX(-4px) scale(1.03);
}

.about-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Centered About Hero Statement */
.about-center-statement-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 20;
}

.about-center-statement {
  max-width: 880px;
  margin: 0 auto;
  font-family: var(--font-syne, 'Syne', sans-serif);
  font-size: clamp(1.4rem, 2.6vw, 2.35rem);
  font-weight: 700;
  line-height: 1.44;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-align: center;
  user-select: text;
  pointer-events: auto;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .about-center-statement-wrapper {
    padding: 5.5rem 1.5rem 2rem;
  }
  .about-center-statement {
    font-size: clamp(1.15rem, 4.6vw, 1.55rem);
    line-height: 1.45;
  }
}

/* Inline Swap Typography & Image Morphing */
.inline-swap {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  position: relative;
  margin: 0;
  padding: 0;
  line-height: inherit;
  vertical-align: baseline;
}

.swap-text {
  display: inline-block;
  color: #ffffff;
  position: relative;
  will-change: transform, opacity;
}

.swap-img {
  display: none;
  height: 1.18em;
  width: auto;
  max-width: 2.2em;
  object-fit: contain;
  vertical-align: -0.15em;
  margin: 0 0.06em;
  border-radius: 4px;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6)) saturate(1.35);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.swap-img.stamp-img {
  height: 1.25em;
  max-width: 2.0em;
  border-radius: 2px;
  vertical-align: -0.2em;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.7)) contrast(1.08) saturate(1.2);
}

.inline-swap:hover .swap-img {
  transform: scale(1.18) rotate(3deg);
}

.about-view-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #a78bfa;
  text-transform: uppercase;
}

.badge-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5227ff;
  box-shadow: 0 0 12px #5227ff;
  animation: pulse-dot 2s infinite ease-in-out;
}

/* Hero Section */
.about-view-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 1rem 0;
}

.about-hero-avatar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.about-hero-avatar-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(82, 39, 255, 0.4) 0%, transparent 70%);
  filter: blur(25px);
  pointer-events: none;
}

.about-hero-avatar-img {
  position: relative;
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.18);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-hero-avatar-img:hover {
  transform: scale(1.08) rotate(6deg);
}

.about-hero-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.02em;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.about-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-color, #ff5e3a);
  text-transform: uppercase;
}

.about-hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 40%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-hero-lead {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
}

.about-hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.about-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  color: #08080c;
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-primary-btn:hover {
  background: #c4b5fd;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(196, 181, 253, 0.4);
}

.about-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.about-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Stats Strip */
.about-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(82, 39, 255, 0.5);
  transform: translateY(-4px);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-plus {
  color: #a78bfa;
  font-size: 0.85em;
  margin-left: 2px;
}

.stat-desc {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Story & Capabilities Grid */
.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.about-card-header {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #a78bfa;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.about-text {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skill-cat-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(82, 39, 255, 0.2);
  border-color: #5227ff;
  color: #ffffff;
  transform: translateY(-2px);
}

/* CTA Footer Card */
.about-cta-card {
  background: linear-gradient(135deg, rgba(82, 39, 255, 0.2) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(82, 39, 255, 0.4);
  border-radius: 24px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.cta-left {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cta-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #a78bfa;
}

.cta-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
}

.cta-desc {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.cta-right {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cta-email-link {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.2rem 1.5rem;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cta-email-link:hover {
  background: rgba(82, 39, 255, 0.25);
  border-color: #5227ff;
  transform: translateY(-3px);
}

.cta-email-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cta-email-address {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: #ffffff;
}

.cta-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.social-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-pill:hover {
  background: #5227ff;
  border-color: #5227ff;
  transform: translateY(-2px);
}

/* Responsive Overrides for About View */
@media (max-width: 900px) {
  .about-view-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .about-hero-lead {
    margin: 0 auto;
  }
  .about-hero-ctas {
    justify-content: center;
  }
  .about-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-content-grid {
    grid-template-columns: 1fr;
  }
  .about-cta-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .about-view {
    padding: 5.5rem 1.25rem 4rem;
  }
  .about-stats-strip {
    grid-template-columns: 1fr;
  }
  .about-card {
    padding: 1.75rem 1.25rem;
  }
}

.about-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 280;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.about-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.about-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 7, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  cursor: pointer;
}

.about-modal__dialog {
  position: relative;
  width: min(920px, calc(100vw - 2.5rem));
  max-height: calc(100vh - 3.5rem);
  background: rgba(13, 13, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 40px rgba(82, 39, 255, 0.12);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  transform: scale(0.92) translateY(30px);
  will-change: transform, opacity;
}

/* Modal Header Bar */
.about-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9d85ff;
  text-transform: uppercase;
}

.about-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5227ff;
  box-shadow: 0 0 10px #5227ff;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); }
}

.about-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 30px;
  padding: 0.4rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  color: #ffffff;
}

.about-close-btn svg {
  transition: transform 0.25s ease;
}

.about-close-btn:hover svg {
  transform: rotate(90deg);
}

/* Modal Scrollable Body */
.about-modal__scroll {
  padding: 2.2rem 2.2rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.about-modal__scroll::-webkit-scrollbar {
  width: 6px;
}
.about-modal__scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.about-modal__scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
.about-modal__scroll::-webkit-scrollbar-thumb:hover {
  background: #5227ff;
}

/* Hero Profile */
.about-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.about-avatar-glow {
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(82, 39, 255, 0.45) 0%, rgba(180, 151, 207, 0) 70%);
  filter: blur(12px);
  border-radius: 50%;
  pointer-events: none;
}

.about-avatar-img {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.18);
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.about-status-pill {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #22c55e;
  text-align: center;
  letter-spacing: 0.02em;
}

.about-hero-text {
  flex: 1;
}

.about-subtitle {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-color, #ff5e3a);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.about-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 30%, #b497cf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-tagline {
  margin: 0.6rem 0 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  font-weight: 400;
}

/* Bio & Story Columns */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-section-heading {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #b497cf;
  text-transform: uppercase;
}

.about-paragraph {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

/* Skills Cloud */
.about-skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: #e4e4ed;
  transition: all 0.25s ease;
}

.skill-chip:hover {
  background: rgba(82, 39, 255, 0.18);
  border-color: #5227ff;
  color: #ffffff;
  transform: translateY(-2px);
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5227ff;
}

/* Stats Cards Grid */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.stat-card:hover {
  border-color: rgba(82, 39, 255, 0.4);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
}

/* Footer Action Card */
.about-footer-card {
  background: linear-gradient(135deg, rgba(82, 39, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(82, 39, 255, 0.35);
  border-radius: 18px;
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.about-footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about-footer-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.about-footer-sub {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.about-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #08080c;
  padding: 0.55rem 1.15rem;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-cta-btn:hover {
  background: #b497cf;
  color: #08080c;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(180, 151, 207, 0.4);
}

.about-social-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.about-social-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-social-badge:hover {
  background: #5227ff;
  border-color: #5227ff;
  transform: translateY(-3px) scale(1.12);
  color: #ffffff;
}

/* Responsive Overrides for About Modal */
@media (max-width: 768px) {
  .about-modal__dialog {
    width: 95vw;
    max-height: 92vh;
    border-radius: 18px;
  }
  .about-modal__header {
    padding: 1rem 1.25rem;
  }
  .about-modal__scroll {
    padding: 1.4rem 1.25rem;
    gap: 1.5rem;
  }
  .about-hero {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-footer-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }
}
