@font-face{font-family:Display;src:local('Impact')}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:80px}body{margin:0;background:#0b090a;color:#eee9df;font-family:Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button{color:inherit;cursor:pointer}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:2px solid #ff3b39;outline-offset:6px}.skip{position:fixed;top:-100px;z-index:100;background:#d82629;padding:16px}.skip:focus{top:10px}header{height:82px;position:absolute;top:0;left:4%;right:4%;z-index:20;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff24;font-size:10px;letter-spacing:1.7px;text-transform:uppercase}.wordmark{font-weight:800}.wordmark span{color:#ee3738;margin:0 12px}nav{display:flex;gap:34px}nav a:hover{color:#f44244}.motion{border:1px solid #ffffff40;background:transparent;padding:10px;font-size:9px;text-transform:uppercase;letter-spacing:1px}.hero{min-height:850px;height:100svh;position:relative;overflow:hidden;background:#080708}.city{position:absolute;inset:-4%;background:url('media/miles-city-background.png') center/cover;transform:translate(calc(var(--mx,0px) * -.3),calc(var(--my,0px) * -.3));opacity:.7}.shade{position:absolute;inset:0;background:linear-gradient(0deg,#090809 0%,transparent 32%,#0006 100%),radial-gradient(ellipse at 50% 48%,#000b,transparent 65%)}.scene{position:absolute;inset:100px 4% 80px}.hero-meta{position:absolute;top:5px;width:100%;display:flex;justify-content:space-between;font-size:8px;letter-spacing:2px;color:#c7b5b1}.title-layer{position:absolute;top:25px;width:100%;height:46%;mix-blend-mode:screen;transform:translate(calc(var(--mx,0px) * .45),calc(var(--my,0px) * .35));pointer-events:none}.title-layer img{width:100%;height:100%;object-fit:contain;position:absolute;transition:opacity .65s,transform .8s}.vidhan-title{opacity:0;transform:translateY(20px)}.revealed .vidhan-title{opacity:1;transform:translateY(0)}.revealed .miles-title{opacity:0;transform:translateY(-20px)}.character{position:absolute;left:50%;bottom:-5%;width:48%;height:90%;transform:translate(calc(-50% + var(--mx,0px)),var(--my,0px));border:0;padding:0;background:none;z-index:3;overflow:hidden;clip-path:polygon(50% 0,63% 5%,70% 18%,77% 45%,95% 58%,89% 89%,50% 100%,10% 89%,5% 58%,24% 45%,30% 18%,39% 5%)}.character img{width:260%;height:110%;max-width:none;object-fit:fill;position:absolute;left:-80%;top:-3%;transition:filter .7s,opacity .7s,transform .8s}.character:hover img{filter:brightness(1.2)}.character-hint{position:absolute;bottom:9%;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:8px;letter-spacing:2px;background:#080808ad;padding:12px 16px;border:1px solid #ffffff30}.character-hint b{color:#ff3b39;font-size:18px;margin-left:12px}.revealed .character img{filter:brightness(.32) saturate(.4);transform:scale(1.025)}.revealed .character-hint{opacity:0}.identity{pointer-events:none;position:absolute;z-index:5;left:50%;top:48%;width:37%;text-align:center;transform:translate(-50%,20px);opacity:0;transition:opacity .6s,transform .7s}.identity span{font-size:8px;letter-spacing:2px;color:#ff6868}.identity strong{display:block;font-family:Display,'Arial Narrow',sans-serif;font-size:clamp(55px,7vw,110px);line-height:.88;margin:20px 0;font-weight:normal;letter-spacing:1px}.identity p{font-size:11px}.revealed .identity{opacity:1;transform:translate(-50%,0)}.side-copy{position:absolute;top:49%;width:21%;z-index:6}.left-copy{left:0}.right-copy{right:0}.eyebrow{font-size:9px;letter-spacing:2px;color:#e95957;font-weight:bold}.side-copy h1,.side-copy h2{font:normal clamp(25px,2.8vw,43px)/1 Display,'Arial Narrow',sans-serif;letter-spacing:.2px;margin:18px 0}.side-copy p{font-size:12px;line-height:1.8;color:#bcaeaa;max-width:235px}.line-link{display:flex;justify-content:space-between;border-bottom:1px solid #b5393c;padding:16px 0;font-size:9px;letter-spacing:1.5px;max-width:225px}.line-link span{color:#f04a49}.hero-bottom{position:absolute;bottom:25px;left:4%;right:4%;display:flex;justify-content:space-between;gap:20px;font-size:8px;letter-spacing:1.6px;color:#b3a49f}.hero-bottom a{color:#f3ede4}.ticker{background:#c7232b;color:#10090a;overflow:hidden;padding:17px 0;transform:rotate(-1.2deg);margin:0 -1%;font:28px Display,sans-serif;letter-spacing:1px}.ticker div{width:max-content;animation:marquee 28s linear infinite}.ticker i{font-style:normal;margin:0 40px}.section{padding:115px 6%;max-width:1600px;margin:auto}.section-top{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:2px}.big-heading{font:normal clamp(40px,6.5vw,98px)/.99 Display,'Arial Narrow',sans-serif;letter-spacing:-.5px;margin:40px 0 55px}em{font-style:normal;color:#d82c33}.work-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:45px}.work-card{min-width:0}.work-image,.type-art{height:390px;background:#151112;position:relative;overflow:hidden}.work-image video{width:100%;height:100%;object-fit:cover;transition:transform .7s}.work-card:hover video{transform:scale(1.045)}.project-number{position:absolute;top:20px;left:22px;font:12px monospace;color:#eee}.open-project{position:absolute;right:20px;bottom:20px;font-size:9px;letter-spacing:2px;border:1px solid #ffffff50;padding:12px;background:#0008}.second{margin-top:100px}.type-art{background:#c4232d;padding:55px 35px}.type-art strong{display:block;font:normal 88px/.88 Display,sans-serif;transition:transform .6s}.type-art i{font-style:normal;color:#180b0d}.work-card:hover .type-art strong{transform:translateX(15px) rotate(-4deg)}.work-caption{border-bottom:1px solid #ffffff25;padding:20px 0}.work-caption h3{font-size:15px;letter-spacing:1px}.work-caption p{font-size:11px;color:#a39693}.about{border-top:1px solid #ffffff20}.about-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:70px;margin-top:30px}.about-grid .big-heading{margin-top:0}.about-grid p{font-size:14px;line-height:1.9;color:#ad9f9c;max-width:430px}.about-grid .about-lead{font-size:28px;color:#eee;line-height:1.3;margin-top:0}.skills{display:grid;margin-top:28px;font-size:10px;letter-spacing:1px}.skills span{padding:17px 0;border-top:1px solid #ffffff22}.contact{border-top:1px solid #ffffff20;position:relative;text-align:center;background:radial-gradient(ellipse at bottom,#440e1590,transparent 65%)}.contact h2{font:normal clamp(56px,10vw,145px)/.94 Display,sans-serif;margin:40px 0}.contact p{color:#bcabaa;font-size:14px}.contact-button{border:0;padding:20px 26px;background:#cf2931;font-size:11px;letter-spacing:1px;margin:18px 0;transition:background .2s,transform .2s}.contact-button:hover{background:#ef4149;transform:translateY(-3px)}.contact .contact-note{font-size:10px;color:#8f7f80}footer{padding:30px 6%;display:flex;justify-content:space-between;border-top:1px solid #ffffff20;font-size:9px;letter-spacing:1px;color:#baaaaa}.progress{position:fixed;top:0;left:0;height:2px;background:#e73540;width:100%;transform:scaleX(var(--progress,0));transform-origin:left;z-index:100}.cursor{position:fixed;left:0;top:0;border:1px solid #ed5555;width:24px;height:24px;border-radius:50%;pointer-events:none;z-index:100;opacity:0;transition:width .2s,height .2s;background:#ed555510}.cursor.active{width:48px;height:48px}dialog{background:#141012;color:#eee;border:1px solid #71343b;padding:45px;max-width:520px;width:90%;max-height:90svh}dialog::backdrop{background:#000c;backdrop-filter:blur(8px)}dialog h2{font:48px/1 Display,sans-serif}.close{position:absolute;right:15px;top:10px;font-size:30px;background:none;border:0}label{display:block;font-size:12px;margin:20px 0}input,textarea{display:block;width:100%;margin-top:10px;background:#080708;color:white;border:1px solid #514349;padding:12px}dialog p{font-size:10px;color:#b2a0a2}.paused *{animation-play-state:paused!important}.paused{scroll-behavior:auto}@keyframes marquee{to{transform:translateX(-35%)}}@media(min-width:1600px){.scene{left:8%;right:8%}}@media(max-width:760px){header{height:65px;font-size:8px;left:5%;right:5%}nav{gap:15px}nav a:first-child{display:none}.wordmark{max-width:100px;line-height:1.6}.wordmark span{margin:0 2px}.motion{font-size:8px;padding:7px}.hero{height:950px;min-height:100svh}.scene{inset:82px 5% 60px}.hero-meta{font-size:6px;letter-spacing:1px}.hero-meta span:last-child{display:none}.title-layer{top:32px;height:190px;width:114%;left:-7%}.character{height:540px;width:95%;bottom:180px}.identity{top:29%;width:90%}.identity strong{font-size:75px}.side-copy{top:auto;bottom:7px;width:45%}.side-copy h1,.side-copy h2{font-size:27px}.side-copy p{font-size:10px;line-height:1.6}.eyebrow{font-size:7px;letter-spacing:1px}.line-link{font-size:7px}.hero-bottom{font-size:7px;bottom:20px}.hero-bottom>span:last-child{display:none}.hero-bottom>span:first-child{max-width:130px}.section{padding:75px 6%}.work-grid,.about-grid{grid-template-columns:1fr;gap:30px}.second{margin-top:10px}.work-image,.type-art{height:330px}.section-top>span:last-child{display:none}.about-grid .big-heading{margin-bottom:10px}.big-heading{font-size:49px}.contact h2{font-size:65px}footer{gap:20px;font-size:7px}.cursor{display:none}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.city,.title-layer{transform:none}.character{transform:translateX(-50%)}.cursor{display:none}}

/* --- Global Non-Selectable (Cinematic App Experience) --- */
*, *::before, *::after {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

input, textarea, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

img, video, canvas, svg {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  user-select: none !important;
}

body {
  overflow-x: clip;
}

.scene {
  position: absolute;
  inset: 90px 4% 70px;
}

.title-layer {
  position: absolute;
  top: -45px;
  left: 0;
  width: 100%;
  height: 48%;
  mix-blend-mode: screen;
  transform: translate(calc(var(--mx, 0px) * .45), calc(var(--my, 0px) * .35));
  pointer-events: auto;
  z-index: 2;
  overflow: visible;
  cursor: crosshair;
}

.title-layer .miles-title {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  display: block;
  opacity: 1 !important;
  transform: none !important;
  -webkit-mask-image: radial-gradient(circle var(--lens-r, 0px) at var(--lens-x, -999px) var(--lens-y, -999px), transparent 99%, #000 100%);
  mask-image: radial-gradient(circle var(--lens-r, 0px) at var(--lens-x, -999px) var(--lens-y, -999px), transparent 99%, #000 100%);
}

.lens-reveal {
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: circle(var(--lens-r, 0px) at var(--lens-x, -999px) var(--lens-y, -999px));
  -webkit-clip-path: circle(var(--lens-r, 0px) at var(--lens-x, -999px) var(--lens-y, -999px));
  mix-blend-mode: screen;
  opacity: var(--lens-opacity, 0);
  transition: opacity 0.22s ease;
  will-change: clip-path, opacity;
  overflow: visible;
}

.lens-reveal .vidhan-title {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  display: block;
  opacity: 1 !important;
  transform-origin: var(--lens-x, 50%) var(--lens-y, 50%);
  transform: scale(var(--lens-zoom, 1.02)) !important;
}

.magnifier-lens {
  position: absolute;
  width: calc(var(--lens-r, 145px) * 2);
  height: calc(var(--lens-r, 145px) * 2);
  left: calc(var(--lens-x, -999px) - var(--lens-r, 145px));
  top: calc(var(--lens-y, -999px) - var(--lens-r, 145px));
  border-radius: 50%;
  pointer-events: none;
  opacity: var(--lens-opacity, 0);
  transition: opacity 0.22s ease;
  border: 2px solid rgba(255, 55, 65, 0.92);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 26px rgba(255, 40, 50, 0.5),
    inset 0 0 20px rgba(255, 40, 50, 0.25),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  z-index: 25;
  will-change: left, top, opacity;
  box-sizing: border-box;
}

.lens-crosshair {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.lens-crosshair::before {
  content: \'\';
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255,80,90,0.9) 0%, rgba(255,80,90,0.9) 12px, transparent 12px, transparent calc(100% - 12px), rgba(255,80,90,0.9) calc(100% - 12px));
}

.lens-crosshair::after {
  content: \'\';
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(to right, rgba(255,80,90,0.9) 0%, rgba(255,80,90,0.9) 12px, transparent 12px, transparent calc(100% - 12px), rgba(255,80,90,0.9) calc(100% - 12px));
}

.lens-glare {
  position: absolute;
  top: 12%;
  left: 16%;
  width: 42%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.35), transparent 70%);
  transform: rotate(-30deg);
  pointer-events: none;
}

.lens-hud {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(12, 10, 11, 0.94);
  padding: 4px 10px;
  border: 1px solid rgba(255, 55, 65, 0.65);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75);
}

.hud-pill {
  color: #ff3b39;
  font-weight: 700;
}

.hud-id {
  color: #eee9df;
  font-weight: 600;
}

/* --- Character Placement --- */
.character {
  position: absolute;
  left: 50%;
  bottom: -60px;
  width: clamp(380px, 35vw, 530px);
  max-height: 80vh;
  aspect-ratio: 1960 / 2450;
  height: auto;
  transform: translate(calc(-50% + var(--mx, 0px) * 0.9), calc(var(--my, 0px) * 0.7));
  border: 0;
  padding: 0;
  background: none;
  z-index: 4;
  cursor: pointer;
  outline: none;
  overflow: visible;
  clip-path: none !important;
  mask-image: none !important;
  transition: transform 0.15s ease-out;
}

.character img {
  position: relative;
  inset: auto;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
  clip-path: none !important;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.95));
  transition: filter 0.4s ease;
}

.character:hover img {
  filter: drop-shadow(0 0 25px rgba(238, 55, 56, 0.35)) brightness(1.08) !important;
  transform: none !important;
}

.character-hint {
  display: none !important;
}

.side-copy {
  position: absolute;
  top: 50%;
  width: 22%;
  z-index: 6;
}

.left-copy {
  left: 0;
}

.right-copy {
  right: 0;
}

/* Hide duplicate full-screen identity popup */
.identity {
  display: none !important;
}

@media (max-width: 900px) and (min-width: 761px) {
  .character {
    width: clamp(330px, 40vw, 420px);
    bottom: -15px;
  }
  .side-copy {
    width: 24%;
  }
}

@media (max-width: 760px) {
  .hero {
    height: 980px;
    min-height: 100svh;
  }
  .scene {
    inset: 80px 5% 60px;
  }
  .title-layer {
    top: 25px;
    height: 190px;
    width: 100%;
    left: 0;
  }
  .character {
    width: min(370px, 94vw);
    bottom: 210px;
  }
  .character-hint {
    bottom: 12px;
    font-size: 7px;
  }
  .side-copy {
    top: auto;
    bottom: 8px;
    width: 46%;
  }
  .magnifier-lens {
    display: none;
  }
}


/* --- 3D Rotating Multiverse Arsenal Section --- */
.arsenal {
  position: relative;
  padding: 65px 6% 75px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
}

.arsenal-header {
  margin-bottom: 20px;
}
.arsenal .big-heading {
  margin: 20px 0 28px;
}

.arsenal-sub {
  font-size: 13px;
  line-height: 1.85;
  color: #ad9e9c;
  max-width: 580px;
  margin: -25px 0 0 0;
}

.hud-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #ff5252;
}

.pulse-red {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3b39;
  box-shadow: 0 0 8px #ff3b39;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

.stage-3d-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0 10px;
  user-select: none;
  touch-action: pan-y;
}

.stage-3d {
  width: 100%;
  height: 420px;
  perspective: 1250px;
  perspective-origin: 50% 48%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.stage-3d:active {
  cursor: grabbing;
}

.ring-3d {
  position: relative;
  width: 270px;
  height: 350px;
  transform-style: preserve-3d;
  transform: translateZ(calc(-1 * var(--ring-r, 470px))) rotateX(-3deg) rotateY(var(--ring-angle, 0deg));
}

.tool-card {
  position: absolute;
  inset: 0;
  width: 270px;
  height: 350px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: pointer;
  border-radius: 18px;
  transition: filter 0.4s ease, border-color 0.3s ease;
}

.tool-card:nth-child(1)  { transform: rotateY(calc(360deg / 11 * 0))  translateZ(var(--ring-r, 470px)); }
.tool-card:nth-child(2)  { transform: rotateY(calc(360deg / 11 * 1))  translateZ(var(--ring-r, 470px)); }
.tool-card:nth-child(3)  { transform: rotateY(calc(360deg / 11 * 2))  translateZ(var(--ring-r, 470px)); }
.tool-card:nth-child(4)  { transform: rotateY(calc(360deg / 11 * 3))  translateZ(var(--ring-r, 470px)); }
.tool-card:nth-child(5)  { transform: rotateY(calc(360deg / 11 * 4))  translateZ(var(--ring-r, 470px)); }
.tool-card:nth-child(6)  { transform: rotateY(calc(360deg / 11 * 5))  translateZ(var(--ring-r, 470px)); }
.tool-card:nth-child(7)  { transform: rotateY(calc(360deg / 11 * 6))  translateZ(var(--ring-r, 470px)); }
.tool-card:nth-child(8)  { transform: rotateY(calc(360deg / 11 * 7))  translateZ(var(--ring-r, 470px)); }
.tool-card:nth-child(9)  { transform: rotateY(calc(360deg / 11 * 8))  translateZ(var(--ring-r, 470px)); }
.tool-card:nth-child(10) { transform: rotateY(calc(360deg / 11 * 9))  translateZ(var(--ring-r, 470px)); }
.tool-card:nth-child(11) { transform: rotateY(calc(360deg / 11 * 10)) translateZ(var(--ring-r, 470px)); }

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(150deg, #181317 0%, #0d090c 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transform: translateZ(0);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-color) 0%, transparent 70%);
  opacity: 0.18;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tool-card:hover .card-inner,
.tool-card.is-front .card-inner {
  border-color: var(--card-color);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 25px var(--card-color);
}

.tool-card:hover .card-glow,
.tool-card.is-front .card-glow {
  opacity: 0.45;
  transform: scale(1.2);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-num {
  font-family: monospace;
  font-size: 11px;
  color: #ff4747;
  letter-spacing: 1px;
}

.card-app-tile {
  width: 52px;
  height: 52px;
  margin: 2px 0 12px 0;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.75), 0 0 16px var(--card-color);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg, #110e1a);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.card-app-tile .app-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 11px;
}

.card-app-tile svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tool-card:hover .card-app-tile,
.tool-card.is-front .card-app-tile {
  transform: scale(1.10) translateY(-3px);
  border-color: var(--card-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), 0 0 24px var(--card-color);
}

.card-badge {
  font-family: Display, sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--card-color);
  border: 1px solid var(--card-color);
  font-weight: bold;
}

.card-body {
  margin: 10px 0;
}

.tool-cat {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--card-color);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tool-title {
  font-family: Display, 'Arial Narrow', sans-serif;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 0 0 10px 0;
}

.tool-desc {
  font-size: 11px;
  line-height: 1.65;
  color: #a89896;
  margin: 0;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.card-tier {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #c7b8b5;
}

.dot-accent {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--card-color);
}

.card-arrow {
  font-size: 14px;
  color: var(--card-color);
  transition: transform 0.2s ease;
}

.tool-card:hover .card-arrow {
  transform: translate(2px, -2px);
}

.stage-controls {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 10;
}

.stage-btn {
  background: rgba(18, 14, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.stage-btn:hover {
  background: #cf2931;
  border-color: #ff3b39;
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(255, 59, 57, 0.6);
}

.stage-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #ad9e9c;
}

.active-tool-index {
  color: #ff3b39;
  font-weight: 800;
  font-size: 14px;
  font-family: monospace;
}

.tool-sep {
  color: rgba(255, 255, 255, 0.3);
}

.total-tools {
  font-family: monospace;
  font-size: 12px;
}

.active-tool-name {
  margin-left: 10px;
  color: #fff;
  font-weight: bold;
  letter-spacing: 1.5px;
}

.scroll-hint-3d {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #796c6b;
}

.scroll-hint-3d i {
  font-style: normal;
  color: #ff3b39;
}

@media (max-width: 900px) and (min-width: 761px) {
  .stage-3d {
    perspective: 1100px;
  }
  .ring-3d {
    width: 250px;
    height: 350px;
    --ring-r: 420px;
  }
  .tool-card {
    width: 250px;
    height: 350px;
  }
}

@media (max-width: 760px) {
  header nav {
    gap: 10px;
    font-size: 7.5px;
  }
  header nav a:first-child,
  header nav a:nth-child(2) {
    display: inline-block;
  }
  .arsenal {
    padding: 60px 5% 70px;
  }
  .stage-3d {
    height: 380px;
    perspective: 900px;
  }
  .ring-3d {
    width: 190px;
    height: 300px;
    --ring-r: 340px;
  }
  .tool-card {
    width: 190px;
    height: 300px;
  }
  .card-inner {
    padding: 18px 16px;
  }
  .tool-title {
    font-size: 19px;
  }
  .tool-desc {
    font-size: 9.5px;
    line-height: 1.5;
  }
  .card-badge {
    font-size: 9.5px;
    padding: 3px 7px;
  }
  .stage-controls {
    gap: 14px;
    margin-top: 15px;
  }
  .active-tool-name {
    display: none;
  }
}

/* ==========================================================================
   CRAZY LEVEL SPIDER-VERSE ADDITIONS: SOUND, THEMES, HOLOGRAM & GLITCH
   ========================================================================== */

/* Header controls wrapper */
.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Multiverse Dimension Reality Picker */
.dimension-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(22, 17, 20, 0.85);
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dim-label {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #a39693;
  margin-right: 2px;
}

.dim-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #bcaeaa;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.dim-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.dim-btn.active {
  background: #cf2931;
  color: #fff;
  border-color: #ff3b39;
  box-shadow: 0 0 10px rgba(255, 59, 57, 0.5);
}

/* Sound Toggle with Animated Equalizer Bars */
.sound-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffffff40;
  background: transparent;
  padding: 8px 12px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s ease;
}

.sound-toggle:hover {
  border-color: #ff3b39;
  color: #ff3b39;
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.eq-bars span {
  width: 2px;
  height: 100%;
  background: currentColor;
  border-radius: 1px;
  animation: eq-bounce 1s infinite ease-in-out alternate;
}

.eq-bars span:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.eq-bars span:nth-child(3) { animation-delay: 0.4s; height: 80%; }

.sound-toggle.muted .eq-bars span {
  animation: none;
  height: 2px;
  opacity: 0.4;
}

@keyframes eq-bounce {
  0% { height: 20%; }
  50% { height: 100%; }
  100% { height: 40%; }
}

/* --------------------------------------------------------------------------
   MULTIVERSE REALITY THEMES
   -------------------------------------------------------------------------- */

/* Earth-928: Spider-Man 2099 (Cyberpunk Neon Cyan & Hot Magenta) */
body[data-dim="earth-928"] {
  --theme-accent: #00f0ff;
  --theme-glow: rgba(0, 240, 255, 0.5);
  background: #060913;
}

body[data-dim="earth-928"] .wordmark span,
body[data-dim="earth-928"] .eyebrow,
body[data-dim="earth-928"] .hud-pill,
body[data-dim="earth-928"] em,
body[data-dim="earth-928"] .card-num,
body[data-dim="earth-928"] .dim-btn.active {
  color: #00f0ff !important;
}

body[data-dim="earth-928"] .dim-btn.active {
  background: #0088aa !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6) !important;
}

body[data-dim="earth-928"] .city {
  filter: hue-rotate(185deg) contrast(1.15) brightness(0.9);
}

body[data-dim="earth-928"] .ticker {
  background: #00f0ff;
  color: #050b14;
}

body[data-dim="earth-928"] .contact-button,
body[data-dim="earth-928"] .stage-btn:hover {
  background: #0099bb;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

body[data-dim="earth-928"] .cursor {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
}

/* Earth-90214: Spider-Noir (1933 Great Depression Film Noir Monochrome) */
body[data-dim="earth-90214"] {
  background: #0c0c0e;
  filter: grayscale(1) contrast(1.35) brightness(0.95);
}

body[data-dim="earth-90214"] .dim-btn.active {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.6) !important;
}

body[data-dim="earth-90214"] .ticker {
  background: #ffffff;
  color: #000000;
}

/* --------------------------------------------------------------------------
   3D EXPLODED LAYER CARD INSPECTION MODAL
   -------------------------------------------------------------------------- */
.hologram-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hologram-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.hologram-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 10, 13, 0.92) 0%, rgba(5, 4, 5, 0.98) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hologram-stage {
  position: relative;
  width: 90%;
  max-width: 580px;
  height: 520px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hologram-close {
  position: absolute;
  top: -30px;
  right: 10px;
  background: rgba(25, 18, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.hologram-close:hover {
  background: #cf2931;
  border-color: #ff3b39;
  transform: scale(1.1);
}

.holo-card-3d {
  position: relative;
  width: 360px;
  height: 440px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.holo-layer {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Layer 1: Frosted chassis backing */
.holo-chassis {
  transform: translateZ(-60px);
  background: linear-gradient(145deg, #1d161a 0%, #0d090c 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 40, 50, 0.25);
}

/* Layer 2: Glowing energy core */
.holo-core {
  transform: translateZ(-10px);
  background: radial-gradient(circle at 60% 40%, var(--holo-accent, #ff3b39) 0%, transparent 68%);
  opacity: 0.35;
  filter: blur(12px);
  pointer-events: none;
}

/* Layer 3: Typography plate */
.holo-plate {
  transform: translateZ(45px);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  pointer-events: none;
}

.holo-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.holo-badge {
  font-family: Display, sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 45, 55, 0.2);
  color: var(--holo-accent, #ff3b39);
  border: 1px solid var(--holo-accent, #ff3b39);
}

.holo-cat {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--holo-accent, #ff3b39);
  font-weight: 700;
  text-transform: uppercase;
}

.holo-title {
  font-family: Display, 'Arial Narrow', sans-serif;
  font-size: 40px;
  line-height: 1;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: 1px;
}

.holo-desc {
  font-size: 13px;
  line-height: 1.75;
  color: #c7b8b5;
  margin: 0;
}

/* Layer 4: Tech specs stats plate */
.holo-specs {
  transform: translateZ(85px);
  position: absolute;
  top: auto !important;
  bottom: 25px !important;
  left: 28px !important;
  right: 28px !important;
  height: auto !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.holo-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.holo-stat span {
  color: #8c7e7d;
}

.holo-stat strong {
  color: #fff;
  font-family: monospace;
}

.holo-hint {
  margin-top: 24px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #8c7e7d;
  display: flex;
  align-items: center;
  gap: 10px;
}

.holo-hint i {
  font-style: normal;
  color: #ff3b39;
}

/* Dimensional Glitch Burst on reality shifts */
.glitch-flash {
  animation: glitch-anim 0.35s steps(2, start) forwards;
}

@keyframes glitch-anim {
  0% { transform: translate(0, 0); filter: drop-shadow(-4px 0 #00f0ff) drop-shadow(4px 0 #ff0055); }
  25% { transform: translate(-3px, 2px); filter: drop-shadow(3px -2px #00f0ff) drop-shadow(-3px 2px #ff0055); }
  50% { transform: translate(3px, -2px); filter: drop-shadow(-3px 2px #00f0ff) drop-shadow(3px -2px #ff0055); }
  75% { transform: translate(-2px, -1px); filter: drop-shadow(2px 0 #00f0ff) drop-shadow(-2px 0 #ff0055); }
  100% { transform: translate(0, 0); filter: none; }
}

@media (max-width: 760px) {
  .header-controls {
    gap: 8px;
  }
  .dim-label {
    display: none;
  }
  .sound-text {
    display: none;
  }
  .holo-card-3d {
    width: 290px;
    height: 400px;
  }
  .holo-title {
    font-size: 28px;
  }
  .holo-desc {
    font-size: 11px;
  }
}


/* =========================================================
   SPIDER-VERSE NEXT-LEVEL TEXT ANIMATIONS & COMIC EFFECTS
   ========================================================= */

/* --- 1. CMYK Misregistration & Ben-Day Halftone on Hover --- */
.big-heading, .side-copy h1, .side-copy h2, .work-caption h3, .tool-title, .wordmark {
  transition: text-shadow 0.18s ease, transform 0.2s ease;
}

.big-heading:hover, .side-copy h1:hover, .side-copy h2:hover, .work-caption h3:hover, .tool-title:hover {
  text-shadow: -3px 0 0 #00f0ff, 3px 0 0 #ff0055, 0 0 14px rgba(255, 255, 255, 0.5);
  transform: translateX(1px);
}

.scramble-active {
  text-shadow: -2px 0 0 #00f0ff, 2px 0 0 #ff0055, 0 0 10px rgba(255, 255, 255, 0.4);
}

.scramble-glyph {
  color: #00f0ff;
  display: inline-block;
  font-family: monospace, Display, sans-serif;
  text-shadow: 0 0 8px #00f0ff, 0 0 16px #ff0055;
}

/* --- 2. Elastic Web-Impact Recoil Physics --- */
@keyframes webRecoil {
  0% { transform: scale(1); }
  25% { transform: scale(1.08, 0.92) rotate(-1.8deg); text-shadow: -5px 0 #00f0ff, 5px 0 #ff0055; }
  50% { transform: scale(0.95, 1.05) rotate(1.2deg); }
  75% { transform: scale(1.02, 0.98); }
  100% { transform: scale(1); }
}

.web-impact-recoil {
  animation: webRecoil 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* --- 3. Comic Narrative Caption Boxes --- */
.comic-caption {
  position: absolute;
  background: #ffe600;
  color: #0b090a;
  font-family: Display, Impact, 'Arial Narrow', sans-serif;
  font-weight: normal;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0px #ff003c, 7px 7px 0px #000000;
  transform: rotate(-2deg);
  z-index: 15;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, background 0.2s;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  white-space: nowrap;
}

.comic-caption::before {
  content: '★ ';
  color: #ff003c;
  font-size: 12px;
}

.comic-caption:hover {
  transform: rotate(1deg) scale(1.08);
  background: #ffffff;
  box-shadow: 6px 6px 0px #00f0ff, 11px 11px 0px #000000;
  color: #000000;
}

.comic-caption.hero-caption {
  left: 6%;
  top: 38%;
}

.comic-caption.arsenal-caption {
  right: 5%;
  top: 15px;
  transform: rotate(2deg);
}

.comic-caption.arsenal-caption:hover {
  transform: rotate(-1.5deg) scale(1.08);
}

.comic-caption.about-caption {
  left: 0;
  bottom: -25px;
  transform: rotate(-1.5deg);
}

/* --- 4. Spider-Sense Danger Mode & Vignette --- */
body.spider-sense-active {
  box-shadow: inset 0 0 80px rgba(255, 230, 0, 0.45), inset 0 0 180px rgba(255, 0, 85, 0.35) !important;
  animation: senseJitter 0.08s infinite alternate ease-in-out;
}

@keyframes senseJitter {
  0% { transform: translate(0, 0); }
  100% { transform: translate(1px, -1px); }
}

body.spider-sense-active .character img {
  filter: drop-shadow(4px 0 #00f0ff) drop-shadow(-4px 0 #ff0055) brightness(1.3) saturate(1.4) !important;
}

.spider-sense-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 230, 0, 0.12);
  border: 1px solid rgba(255, 230, 0, 0.6);
  color: #ffe600;
  padding: 6px 13px;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.22s ease;
}

.spider-sense-btn:hover {
  background: #ffe600;
  color: #0b090a;
  box-shadow: 0 0 20px rgba(255, 230, 0, 0.7);
  transform: scale(1.05);
}

.sense-icon {
  display: inline-block;
  animation: sensePulse 1s infinite alternate ease-in-out;
}

@keyframes sensePulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px #ffe600); }
  100% { transform: scale(1.25); filter: drop-shadow(0 0 8px #ff0055); }
}

/* --- 5. Venom Charge Visual Feedback --- */
body.venom-charging {
  cursor: grabbing !important;
}



/* =========================================================
   RESTORE & REINFORCE SPIDER-VERSE RED TYPOGRAPHY & ACCENTS
   ========================================================= */
em, .big-heading em, h2 em, h1 em, .section em, em i {
  font-style: normal !important;
  color: #ff3b39 !important;
  text-shadow: 0 0 20px rgba(255, 59, 57, 0.6) !important;
}

.eyebrow {
  color: #ff3b39 !important;
  font-weight: bold !important;
}

.wordmark span {
  color: #ff3b39 !important;
}

.line-link span {
  color: #ff3b39 !important;
}

.hud-indicator .pulse-red {
  background: #ff3b39 !important;
  box-shadow: 0 0 12px #ff3b39 !important;
}

.card-tier .dot-accent {
  background: #ff3b39 !important;
}

.scroll-hint-3d i {
  color: #ff3b39 !important;
}



/* =========================================================
   6 REVOLUTIONARY SPIDER-VERSE EXPANSIONS (GWEN, PUNK, ETC)
   ========================================================= */

/* --- 1. Earth-65: Gwen Stacy (Watercolor Mood Theme) --- */
body[data-dim="earth-65"] {
  --theme-accent: #67e8f9;
  background: #090915;
}

body[data-dim="earth-65"] .city {
  filter: hue-rotate(240deg) saturate(1.4) brightness(0.85);
}

body[data-dim="earth-65"] .wordmark span,
body[data-dim="earth-65"] .eyebrow,
body[data-dim="earth-65"] .hud-pill,
body[data-dim="earth-65"] .card-num {
  color: #67e8f9 !important;
}

body[data-dim="earth-65"] .dim-btn.active {
  background: #c084fc !important;
  border-color: #67e8f9 !important;
  color: #000 !important;
  box-shadow: 0 0 14px rgba(103, 232, 249, 0.6) !important;
}

body[data-dim="earth-65"] .ticker {
  background: linear-gradient(90deg, #67e8f9, #c084fc, #f43f5e);
  color: #090915;
}

body[data-dim="earth-65"] .contact-button {
  background: linear-gradient(135deg, #67e8f9, #c084fc);
  color: #000;
}

/* --- 2. Earth-138: Spider-Punk (8 FPS Xerox Zine Theme) --- */
body[data-dim="earth-138"] {
  --theme-accent: #ffe600;
  background: #0d0a08;
}

body[data-dim="earth-138"] * {
  animation-timing-function: steps(8) !important;
  transition-timing-function: steps(8) !important;
}

body[data-dim="earth-138"] .wordmark span,
body[data-dim="earth-138"] .eyebrow,
body[data-dim="earth-138"] .hud-pill {
  color: #ffe600 !important;
}

body[data-dim="earth-138"] .dim-btn.active {
  background: #ffe600 !important;
  border-color: #ffe600 !important;
  color: #000 !important;
  box-shadow: 0 0 14px rgba(255, 230, 0, 0.7) !important;
}

body[data-dim="earth-138"] .ticker {
  background: #ffe600;
  color: #000;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
}

body[data-dim="earth-138"] .contact-button {
  background: #ffe600;
  color: #000;
  border: 2px dashed #000;
}

/* --- 3. "Leap of Faith" Gravity Inversion --- */
body.leap-of-faith {
  perspective: 1200px;
}

body.leap-of-faith .scene {
  transform: rotate(180deg) scale(0.98);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

body.leap-of-faith .city {
  transform: rotate(180deg) scale(1.15);
  filter: brightness(1.25) contrast(1.2) drop-shadow(0 0 35px rgba(255, 187, 0, 0.35));
  transition: transform 0.85s ease, filter 0.85s ease;
}

.leap-badge {
  position: absolute;
  left: 6%;
  top: 32%;
  background: rgba(255, 187, 0, 0.15);
  border: 1px solid rgba(255, 187, 0, 0.6);
  color: #ffbb00;
  font-family: Display, Impact, sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 15;
  box-shadow: 0 0 15px rgba(255, 187, 0, 0.25);
}

.leap-badge:hover {
  background: #ffbb00;
  color: #000;
  box-shadow: 0 0 25px rgba(255, 187, 0, 0.7);
  transform: scale(1.05);
}

body.leap-of-faith .leap-badge {
  background: #ffbb00;
  color: #000;
}

/* --- 4. Interactive Graffiti Spray-Can Mode --- */
body.graffiti-mode {
  cursor: crosshair !important;
}

.graffiti-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.6);
  color: #00f0ff;
  padding: 6px 12px;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.22s ease;
}

.graffiti-btn:hover, body.graffiti-mode .graffiti-btn {
  background: #00f0ff;
  color: #000;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.7);
}

.graffiti-toolbar {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(18, 12, 16, 0.95);
  border: 2px solid #00f0ff;
  border-radius: 30px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

body.graffiti-mode .graffiti-toolbar {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toolbar-title {
  font-family: Display, Impact, sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #00f0ff;
}

.palette {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ffffff40;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s;
}

.color-swatch:hover, .color-swatch.active {
  transform: scale(1.3);
  border-color: #fff;
  box-shadow: 0 0 10px currentColor;
}

.stencil-btn, .clear-paint-btn, .close-spray-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 9px;
  font-family: Display, sans-serif;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.stencil-btn:hover { background: #ff0077; border-color: #ff0077; color: #fff; }
.clear-paint-btn:hover { background: #cf2931; border-color: #ff3b39; }
.close-spray-btn { padding: 4px 10px; font-size: 16px; border-radius: 50%; }
.close-spray-btn:hover { background: #fff; color: #000; }

/* --- 5. Cameo Easter Egg Badge for Konami Code --- */
.cameo-badge {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) scale(0.6);
  background: #ffe600;
  color: #000;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #00f0ff, 12px 12px 0 #ff0055, 18px 18px 0 #000;
  padding: 18px 28px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cameo-badge.active {
  transform: translateX(-50%) scale(1) rotate(-2deg);
  opacity: 1;
  pointer-events: auto;
}

.cameo-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cameo-emoji {
  font-size: 40px;
  animation: headTilt 0.4s infinite alternate ease-in-out;
}

@keyframes headTilt {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(10deg); }
}

.cameo-text strong {
  display: block;
  font-family: Display, Impact, sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
}

.cameo-text p {
  margin: 4px 0 0;
  font-family: monospace;
  font-size: 12px;
  font-weight: bold;
}

/* --- 6. Audio-Reactive Dynamic Properties --- */
:root {
  --sound-energy: 0;
  --sound-bass: 0;
}

.city {
  will-change: transform;
}

.city-bass-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 calc(var(--sound-bass, 0) * 85px) rgba(255, 59, 57, 0.45);
  mix-blend-mode: screen;
  transition: box-shadow 0.08s ease;
}

.ring-3d .tool-card.is-front .card-glow {
  opacity: calc(0.3 + var(--sound-energy, 0) * 0.7) !important;
}



/* =========================================================
   MULTIVERSE PLAYGROUND HUB STYLES
   ========================================================= */

.playground-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 59, 57, 0.2), rgba(0, 240, 255, 0.2));
  border: 1px solid rgba(255, 59, 57, 0.7);
  color: #ffffff;
  padding: 6px 14px;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(255, 59, 57, 0.3);
  transition: all 0.22s ease;
}

.playground-btn:hover {
  background: #ff3b39;
  color: #000;
  border-color: #ff3b39;
  box-shadow: 0 0 20px rgba(255, 59, 57, 0.8), 0 0 35px rgba(0, 240, 255, 0.5);
  transform: translateY(-1px) scale(1.04);
}

.arcade-icon {
  font-size: 13px;
  animation: pulseIcon 1.5s infinite alternate;
}

@keyframes pulseIcon {
  0% { transform: scale(1); }
  100% { transform: scale(1.25) rotate(5deg); }
}

/* Modal Backdrop */
.playground-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 4, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.playground-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Window Shell */
.playground-window {
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  background: #0d0a14;
  border: 2px solid #ff3b39;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 59, 57, 0.35), 6px 6px 0 #00f0ff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.playground-modal.active .playground-window {
  transform: scale(1) translateY(0);
}

/* Header */
.playground-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #151020;
  border-bottom: 2px solid #ff3b39;
  gap: 16px;
  flex-wrap: wrap;
}

.playground-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.playground-badge {
  font-family: monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: #00f0ff;
  font-weight: bold;
}

.playground-title {
  margin: 0;
  font-family: Display, Impact, sans-serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: #fff;
}

.playground-tabs {
  display: flex;
  gap: 6px;
}

.playground-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a1a1aa;
  font-family: Display, sans-serif;
  font-size: 10px;
  letter-spacing: 1.2px;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.playground-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.playground-tab.active {
  background: #ff3b39;
  border-color: #ff3b39;
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(255, 59, 57, 0.6);
}

.close-playground-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #a1a1aa;
  font-family: monospace;
  font-size: 10px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.close-playground-btn:hover {
  background: #ff3b39;
  border-color: #ff3b39;
  color: #000;
}

/* Content Area */
.playground-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: radial-gradient(circle at top right, #1b0d24 0%, #0d0a14 70%);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* --- TAB 1: ARCADE STYLES --- */
.arcade-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #110c1c;
  border: 1px solid rgba(255, 59, 57, 0.4);
  border-radius: 6px;
  padding: 8px 18px;
  margin-bottom: 12px;
}

.hud-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-box.right-align {
  text-align: right;
}

.hud-sub {
  font-family: monospace;
  font-size: 9px;
  color: #71717a;
  letter-spacing: 1px;
}

.hud-val {
  font-family: Display, Impact, sans-serif;
  font-size: 18px;
  color: #fff;
  letter-spacing: 1px;
}

.hud-val.highlight {
  color: #ffe600;
}

.hud-lives {
  font-size: 13px;
  letter-spacing: 2px;
}

.arcade-arena-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  background: #000;
  border: 2px solid #271a38;
  border-radius: 6px;
  overflow: hidden;
  cursor: crosshair;
}

#arcadeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.arcade-game-over {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 15, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.arcade-game-over.active {
  opacity: 1;
  pointer-events: auto;
}

.game-over-card {
  text-align: center;
  background: #1a0f26;
  border: 2px solid #ff3b39;
  padding: 30px 45px;
  border-radius: 8px;
  box-shadow: 0 0 35px rgba(255, 59, 57, 0.5), 8px 8px 0 #00f0ff;
}

.comic-stamp {
  display: inline-block;
  font-family: monospace;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ffe600;
  border: 1px solid #ffe600;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.game-over-card h3 {
  margin: 0 0 16px;
  font-family: Display, Impact, sans-serif;
  font-size: 38px;
  color: #ff3b39;
  letter-spacing: 2px;
}

.game-over-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: monospace;
  font-size: 13px;
  color: #d4d4d8;
  margin-bottom: 24px;
}

.arcade-restart-btn {
  background: #ffe600;
  border: 2px solid #000;
  color: #000;
  font-family: Display, Impact, sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #ff3b39;
  transition: all 0.15s ease;
}

.arcade-restart-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #00f0ff;
}

.arcade-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 16px;
  flex-wrap: wrap;
}

.venom-meter-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 260px;
}

.meter-label {
  font-family: monospace;
  font-size: 9px;
  color: #ffe600;
  font-weight: bold;
}

.venom-bar {
  flex: 1;
  height: 12px;
  background: #201530;
  border: 1px solid #ffe600;
  border-radius: 6px;
  overflow: hidden;
}

.venom-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffe600, #ff0055);
  box-shadow: 0 0 10px #ffe600;
  transition: width 0.2s ease;
}

.venom-strike-btn {
  background: rgba(255, 230, 0, 0.15);
  border: 1px solid #ffe600;
  color: #ffe600;
  font-family: Display, sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.venom-strike-btn.ready {
  background: #ffe600;
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 16px #ffe600;
  animation: pulseReady 0.8s infinite alternate;
}

@keyframes pulseReady {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.arcade-tips {
  font-family: monospace;
  font-size: 9px;
  color: #71717a;
  display: flex;
  gap: 8px;
}

/* --- TAB 2: SPIDER-BEATS 808 STYLES --- */
.beats-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #110c1c;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.beat-presets {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preset-label, .bpm-label {
  font-family: monospace;
  font-size: 9px;
  color: #00f0ff;
  font-weight: bold;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a1a1aa;
  font-family: Display, sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.18s;
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.preset-btn.active {
  background: #00f0ff;
  border-color: #00f0ff;
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.bpm-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 11px;
  color: #fff;
}

.bpm-control input[type="range"] {
  accent-color: #00f0ff;
  cursor: pointer;
}

.seq-actions {
  display: flex;
  gap: 8px;
}

.seq-play-btn {
  background: #22c55e;
  border: 1px solid #22c55e;
  color: #000;
  font-family: Display, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
  transition: all 0.2s;
}

.seq-play-btn.active {
  background: #eab308;
  border-color: #eab308;
}

.seq-clear-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #a1a1aa;
  font-family: monospace;
  font-size: 9px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.beats-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

@media (max-width: 800px) {
  .beats-layout {
    grid-template-columns: 1fr;
  }
}

.mpc-console {
  background: #140d21;
  border: 2px solid #2a183d;
  border-radius: 6px;
  padding: 16px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.mpc-screen {
  background: #090510;
  border: 1px solid #ff005540;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mpc-mode {
  font-family: monospace;
  font-size: 9px;
  color: #00f0ff;
  font-weight: bold;
  letter-spacing: 1px;
}

.mpc-sub {
  font-family: monospace;
  font-size: 8px;
  color: #71717a;
}

.pad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.beat-pad {
  aspect-ratio: 1;
  background: #1e1330;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.beat-pad span {
  font-family: monospace;
  font-size: 8px;
  color: #71717a;
}

.beat-pad strong {
  font-family: Display, sans-serif;
  font-size: 9px;
  color: #fff;
  letter-spacing: 0.5px;
  text-align: center;
}

.beat-pad.pad-red:hover { border-color: #ff3b39; box-shadow: 0 0 14px rgba(255, 59, 57, 0.5); }
.beat-pad.pad-cyan:hover { border-color: #00f0ff; box-shadow: 0 0 14px rgba(0, 240, 255, 0.5); }
.beat-pad.pad-yellow:hover { border-color: #ffe600; box-shadow: 0 0 14px rgba(255, 230, 0, 0.5); }
.beat-pad.pad-purple:hover { border-color: #c084fc; box-shadow: 0 0 14px rgba(192, 132, 252, 0.5); }

.beat-pad.pad-hit {
  transform: scale(0.92);
  background: #fff !important;
}

.beat-pad.pad-hit strong, .beat-pad.pad-hit span {
  color: #000 !important;
}

/* Sequencer Matrix */
.sequencer-console {
  background: #140d21;
  border: 2px solid #2a183d;
  border-radius: 6px;
  padding: 16px;
}

.sequencer-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.seq-title {
  font-family: Display, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: #00f0ff;
}

.seq-hint {
  font-family: monospace;
  font-size: 8px;
  color: #71717a;
}

.sequencer-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seq-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seq-track-label {
  font-family: monospace;
  font-size: 9px;
  font-weight: bold;
  width: 75px;
  flex-shrink: 0;
}

.seq-steps {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 4px;
  flex: 1;
}

.seq-step {
  height: 32px;
  background: #1b122b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.12s;
}

.seq-step.beat-marker {
  border-left: 2px solid rgba(255, 255, 255, 0.35);
}

.seq-step.active {
  background: var(--step-color, #ff3b39);
  box-shadow: 0 0 10px var(--step-color, #ff3b39);
}

.seq-step.playhead {
  border-color: #ffffff !important;
  box-shadow: 0 0 12px #ffffff !important;
  filter: brightness(1.7);
}

/* --- TAB 3: SUIT STUDIO STYLES --- */
.suit-studio-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

@media (max-width: 800px) {
  .suit-studio-layout {
    grid-template-columns: 1fr;
  }
}

.suit-preview-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.suit-canvas-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  background: radial-gradient(circle, #1a102b 0%, #0a0612 80%);
  border: 2px solid rgba(255, 59, 57, 0.4);
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

#suitCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #00f0ff;
}

.canvas-corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.canvas-corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.canvas-corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.canvas-corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.suit-export-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 380px;
}

.suit-btn {
  flex: 1;
  font-family: Display, sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.suit-btn.download {
  background: #ff3b39;
  border: 1px solid #ff3b39;
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(255, 59, 57, 0.5);
}

.suit-btn.download:hover {
  background: #fff;
  border-color: #fff;
}

.suit-btn.apply {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid #00f0ff;
  color: #00f0ff;
}

.suit-btn.apply:hover {
  background: #00f0ff;
  color: #000;
}

.suit-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-label {
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #a1a1aa;
  font-weight: bold;
}

.suit-presets-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.suit-preset-card {
  background: #170f24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 4px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.18s;
}

.suit-preset-card .suit-name {
  font-family: Display, sans-serif;
  font-size: 10px;
  color: #fff;
}

.suit-preset-card .suit-dim {
  font-family: monospace;
  font-size: 7px;
  color: #71717a;
}

.suit-preset-card.active, .suit-preset-card:hover {
  background: #ff3b39;
  border-color: #ff3b39;
}

.suit-preset-card.active .suit-name, .suit-preset-card.active .suit-dim {
  color: #000;
  font-weight: bold;
}

.color-pickers-row {
  display: flex;
  gap: 12px;
  background: #140d21;
  padding: 10px 14px;
  border-radius: 4px;
}

.color-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 9px;
  color: #d4d4d8;
}

.color-picker-item input[type="color"] {
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
}

.style-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lens-style-btn, .pattern-btn, .emblem-btn {
  background: #170f24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  font-family: Display, sans-serif;
  font-size: 9px;
  letter-spacing: 0.8px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.lens-style-btn:hover, .pattern-btn:hover, .emblem-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lens-style-btn.active, .pattern-btn.active, .emblem-btn.active {
  background: #00f0ff;
  border-color: #00f0ff;
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}


/* =========================================================
   3D SPIDER-MAN MODEL & EXTREME CUSTOMIZATION STUDIO STYLES
   ========================================================= */

/* --- 1. Hero 3D Badge & Live Stage --- */
.hero-3d-badge {
  position: absolute;
  left: 6%;
  top: 38%;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.7);
  color: #00f0ff;
  font-family: Display, Impact, sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 15;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.hero-3d-badge:hover, body.hero-3d-active .hero-3d-badge {
  background: #00f0ff;
  color: #000;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.8);
  transform: scale(1.05);
}

.cube-icon {
  font-size: 13px;
  animation: cubeSpin 3s infinite linear;
  display: inline-block;
}

@keyframes cubeSpin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.hero-3d-stage {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.hero-3d-active .hero-3d-stage {
  opacity: 1;
  pointer-events: auto;
}

body.hero-3d-active #heroCharacter {
  opacity: 0 !important;
  pointer-events: none !important;
}

.hero-3d-model {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.hero-3d-model:active {
  cursor: grabbing;
}

.hero-3d-tooltip {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 6, 16, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: #00f0ff;
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  pointer-events: none;
}

/* --- 2. Suit Studio 3D Frame & Viewport --- */
.suit-3d-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, #1c112e 0%, #07040d 85%);
  border: 2px solid #ff3b39;
  border-radius: 8px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 59, 57, 0.35);
  overflow: hidden;
  cursor: grab;
}

.suit-3d-frame:active {
  cursor: grabbing;
}

.suit-3d-container {
  width: 100%;
  height: 100%;
}

.suit-3d-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.suit-3d-hud-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  pointer-events: none;
}

.orbit-badge {
  font-family: monospace;
  font-size: 8px;
  letter-spacing: 1px;
  color: #00f0ff;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.5);
  padding: 4px 8px;
  border-radius: 3px;
}

/* --- 3. 3D Studio Control Buttons --- */
.shader-style-btn, .accessory-btn, .pose-btn, .aura-btn {
  background: #170f24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  font-family: Display, sans-serif;
  font-size: 9px;
  letter-spacing: 0.8px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.shader-style-btn:hover, .accessory-btn:hover, .pose-btn:hover, .aura-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.shader-style-btn.active {
  background: #a855f7;
  border-color: #a855f7;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

.accessory-btn.active {
  background: #ff3b39;
  border-color: #ff3b39;
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(255, 59, 57, 0.6);
}

.pose-btn.active {
  background: #00f0ff;
  border-color: #00f0ff;
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.aura-btn.active {
  background: #ffe600;
  border-color: #ffe600;
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.6);
}


/* =========================================================
   SPIDER-VERSE FLOATING WEB DOCK STYLES
   ========================================================= */
.web-dock-container {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 92;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.web-dock-container.dock-peek {
  transform: translateX(-50%) translateY(45px);
  opacity: 0.55;
}

.web-dock-container.dock-peek:hover {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.dock-web-cables {
  width: 480px;
  height: 36px;
  overflow: visible;
  pointer-events: none;
  margin-bottom: -12px;
  filter: drop-shadow(0 0 6px rgba(255, 59, 57, 0.6));
}

.dock-silk-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 1.5;
  stroke-dasharray: 4 2;
  transition: d 0.05s ease;
}

.dock-silk-line.suspension-left {
  stroke: var(--theme-accent, #ff3b39);
  filter: drop-shadow(0 0 6px rgba(255, 59, 57, 0.8));
}

.dock-silk-line.suspension-right {
  stroke: #00f0ff;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.8));
}

.dock-web-node {
  fill: #ffffff;
  filter: drop-shadow(0 0 5px #00f0ff);
}

.dock-web-node.n1 {
  filter: drop-shadow(0 0 6px #ff3b39);
}

.dock-web-node.n2 {
  filter: drop-shadow(0 0 6px #00f0ff);
}

.web-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  max-width: 600px;
  background: rgba(12, 10, 20, 0.90);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1.5px solid rgba(255, 59, 57, 0.45);
  border-radius: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85),
              0 0 24px rgba(255, 59, 57, 0.3),
              inset 0 0 20px rgba(0, 240, 255, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  pointer-events: auto;
  position: relative;
  user-select: none;
  overflow: visible;
  transition: max-width 0.65s cubic-bezier(0.35, 0, 0.25, 1),
              padding 0.65s cubic-bezier(0.35, 0, 0.25, 1),
              border-radius 0.65s cubic-bezier(0.35, 0, 0.25, 1),
              border-color 0.4s ease,
              box-shadow 0.45s ease,
              gap 0.65s cubic-bezier(0.35, 0, 0.25, 1);
}

/* Spider-Man Web Theme Embedded DIRECTLY Inside the Dock */
.dock-inner-web-layer {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  transition: border-radius 0.65s cubic-bezier(0.35, 0, 0.25, 1);
}

.dock-inner-web-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.60;
  mix-blend-mode: screen;
  filter: contrast(135%) brightness(120%);
  transition: opacity 0.45s ease, filter 0.3s ease, transform 0.65s cubic-bezier(0.35, 0, 0.25, 1);
  pointer-events: none;
}

.web-dock:hover .dock-inner-web-img {
  opacity: 0.90;
  filter: contrast(150%) brightness(140%) drop-shadow(0 0 8px rgba(255, 59, 57, 0.8));
  transform: translate(-50%, -50%) scale(1.05);
}

.dock-inner-web-vignette {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  pointer-events: none;
  background: 
    radial-gradient(circle at 50% 50%, transparent 35%, rgba(10, 8, 18, 0.65) 90%),
    linear-gradient(90deg, rgba(10, 8, 18, 0.5) 0%, transparent 20%, transparent 80%, rgba(10, 8, 18, 0.5) 100%);
  transition: border-radius 0.65s cubic-bezier(0.35, 0, 0.25, 1);
}

/* Wings: Left & Right Balanced Accordion Panels */
.dock-wing {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 205px;
  max-width: 205px;
  opacity: 1;
  transform: translateX(0) scale(1);
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  transition: width 0.65s cubic-bezier(0.35, 0, 0.25, 1),
              max-width 0.65s cubic-bezier(0.35, 0, 0.25, 1),
              opacity 0.50s ease,
              transform 0.65s cubic-bezier(0.35, 0, 0.25, 1),
              gap 0.65s cubic-bezier(0.35, 0, 0.25, 1);
}

.dock-wing-left {
  justify-content: flex-end;
  transform-origin: right center;
}

.dock-wing-right {
  justify-content: flex-start;
  transform-origin: left center;
}

/* While fully expanded, allow tooltips to peek */
.web-dock-container:not(.dock-collapsed):not(.dock-animating) .dock-wing {
  overflow: visible;
}

/* Central Master Spider Hero Button */
.dock-spider-hero-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 59, 57, 0.35) 0%, rgba(14, 11, 24, 0.95) 75%);
  border: 1.5px solid rgba(255, 59, 57, 0.70);
  color: #f1f5f9;
  cursor: pointer;
  z-index: 2;
  outline: none;
  padding: 0;
  margin: 0 4px;
  box-shadow: 0 0 16px rgba(255, 59, 57, 0.45), inset 0 0 10px rgba(0, 240, 255, 0.25);
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              border-color 0.2s,
              box-shadow 0.2s,
              width 0.65s cubic-bezier(0.35, 0, 0.25, 1),
              height 0.65s cubic-bezier(0.35, 0, 0.25, 1),
              margin 0.65s cubic-bezier(0.35, 0, 0.25, 1);
}

.dock-spider-hero-btn:hover {
  transform: scale(1.16) rotate(6deg);
  border-color: #00f0ff;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.65), 0 0 26px rgba(255, 59, 57, 0.65);
}

.dock-spider-hero-btn .spider-hero-glow {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 230, 0, 0.55);
  animation: heroGlowSpin 7s linear infinite;
  pointer-events: none;
}

@keyframes heroGlowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.dock-spider-hero-btn:hover .dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Spider Shockwave burst when clicking toggle */
.spider-hero-shockwave {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.dock-spider-hero-btn.snapping .spider-hero-shockwave {
  animation: shockwaveBurst 0.60s ease-out forwards;
}

@keyframes shockwaveBurst {
  0% {
    transform: scale(0.6);
    opacity: 1;
    box-shadow: 0 0 0 2px #ffe600, 0 0 25px #ff3b39, inset 0 0 15px #00f0ff;
  }
  40% {
    opacity: 0.95;
    box-shadow: 0 0 0 8px rgba(255, 230, 0, 0.75), 0 0 40px rgba(255, 59, 57, 0.9), inset 0 0 22px #00f0ff;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
    box-shadow: 0 0 0 24px rgba(255, 230, 0, 0), 0 0 60px rgba(255, 59, 57, 0), inset 0 0 30px rgba(0, 240, 255, 0);
  }
}

.dock-spider-hero-btn.snapping .icon-spider-center {
  animation: spideyKickSpin 0.60s cubic-bezier(0.35, 0, 0.25, 1);
}

@keyframes spideyKickSpin {
  0% { transform: scale(0.85) rotate(0deg); }
  50% { transform: scale(1.3) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

/* =========================================================
   CINEMATIC SYMMETRICAL ACCORDION COLLAPSE ENGINE
   Both wings fold smoothly from outside inward into center Spider
   ========================================================= */

.dock-collapsed .dock-wing {
  width: 0;
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  gap: 0;
}

.dock-collapsed .dock-wing-left {
  transform: translateX(40px) scale(0.7);
}

.dock-collapsed .dock-wing-right {
  transform: translateX(-40px) scale(0.7);
}

.dock-collapsed .web-dock {
  gap: 0;
  padding: 4px;
  max-width: 62px;
  border-radius: 50%;
  border-color: rgba(255, 59, 57, 0.75);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.9),
              0 0 28px rgba(255, 59, 57, 0.65),
              inset 0 0 15px rgba(0, 240, 255, 0.35);
  animation: spiderPulseGlow 3.2s ease-in-out infinite alternate 0.65s;
}

.dock-collapsed .dock-inner-web-layer,
.dock-collapsed .dock-inner-web-vignette {
  border-radius: 50%;
}

.dock-collapsed .dock-inner-web-img {
  transform: translate(-50%, -50%) scale(0.42);
  opacity: 0.85;
}

.dock-collapsed .dock-spider-hero-btn {
  margin: 0;
  width: 52px;
  height: 52px;
  min-width: 52px;
}

.dock-collapsed .dock-web-cables {
  width: 140px;
}

@keyframes spiderPulseGlow {
  0% {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.85), 0 0 18px rgba(255, 59, 57, 0.45);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 0 0 32px rgba(255, 59, 57, 0.8), 0 0 16px rgba(0, 240, 255, 0.5);
    transform: scale(1.05);
  }
}

/* Individual Dock Item Styles & Staggered Accordion Wave */
.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(14, 12, 22, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f1f5f9;
  text-decoration: none;
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform 0.60s cubic-bezier(0.35, 0, 0.25, 1),
              opacity 0.35s ease 0.28s,
              background 0.2s,
              border-color 0.2s,
              box-shadow 0.2s;
}

/* Staggered outward expansion wave */
.dock-wing-left .dock-item:nth-child(4) { transition-delay: 0.00s; }
.dock-wing-left .dock-item:nth-child(3) { transition-delay: 0.05s; }
.dock-wing-left .dock-item:nth-child(2) { transition-delay: 0.10s; }
.dock-wing-left .dock-item:nth-child(1) { transition-delay: 0.15s; }

.dock-wing-right .dock-item:nth-child(1) { transition-delay: 0.00s; }
.dock-wing-right .dock-item:nth-child(2) { transition-delay: 0.05s; }
.dock-wing-right .dock-item:nth-child(3) { transition-delay: 0.10s; }
.dock-wing-right .dock-item:nth-child(4) { transition-delay: 0.15s; }

/* Staggered inward collapse wave: outer items compress into center, staying visible during slide */
.dock-collapsed .dock-wing-left .dock-item {
  transform: translateX(35px) scale(0.65);
  opacity: 0;
}
.dock-collapsed .dock-wing-left .dock-item:nth-child(1) { transition-delay: 0.00s, 0.20s; }
.dock-collapsed .dock-wing-left .dock-item:nth-child(2) { transition-delay: 0.05s, 0.25s; }
.dock-collapsed .dock-wing-left .dock-item:nth-child(3) { transition-delay: 0.10s, 0.30s; }
.dock-collapsed .dock-wing-left .dock-item:nth-child(4) { transition-delay: 0.15s, 0.35s; }

.dock-collapsed .dock-wing-right .dock-item {
  transform: translateX(-35px) scale(0.65);
  opacity: 0;
}
.dock-collapsed .dock-wing-right .dock-item:nth-child(4) { transition-delay: 0.00s, 0.20s; }
.dock-collapsed .dock-wing-right .dock-item:nth-child(3) { transition-delay: 0.05s, 0.25s; }
.dock-collapsed .dock-wing-right .dock-item:nth-child(2) { transition-delay: 0.10s, 0.30s; }
.dock-collapsed .dock-wing-right .dock-item:nth-child(1) { transition-delay: 0.15s, 0.35s; }

.dock-item:hover {
  background: rgba(255, 59, 57, 0.20);
  border-color: rgba(255, 59, 57, 0.6);
  box-shadow: 0 0 14px rgba(255, 59, 57, 0.5);
}

.dock-item.active {
  background: rgba(255, 59, 57, 0.28);
  border-color: #ff3b39;
  box-shadow: 0 0 16px rgba(255, 59, 57, 0.6);
}

.dock-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-svg-icon {
  width: 24px;
  height: 24px;
  display: block;
  overflow: visible;
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 1. Work: Dimensional Folio */
.folio-sheet {
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
}
.dock-item:hover .folio-sheet {
  transform: translateY(-4px);
  filter: drop-shadow(0 0 6px #00f0ff);
}

/* 2. Arsenal: Web-Shooter Gauntlet */
.nozzle-spark {
  opacity: 0;
  transform-origin: 16px 4px;
  transition: transform 0.2s, opacity 0.2s;
}
.dock-item:hover .nozzle-spark {
  opacity: 1;
  transform: scale(1.6);
  filter: drop-shadow(0 0 8px #00f0ff);
}

/* 3. Mask: Dynamic Squinting Hero Eyes */
.mask-lens {
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
  transform-origin: 16px 16px;
}
.dock-item:hover .mask-lens.lens-left {
  transform: scaleY(0.48) scaleX(1.12) rotate(4deg);
  filter: drop-shadow(0 0 7px #00f0ff);
}
.dock-item:hover .mask-lens.lens-right {
  transform: scaleY(0.48) scaleX(1.12) rotate(-4deg);
  filter: drop-shadow(0 0 7px #00f0ff);
}

/* 4. Let's Create: Webline Grapple Dart */
.grapple-dart {
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.dock-item:hover .grapple-dart {
  transform: translate(3px, -3px);
  filter: drop-shadow(0 0 7px #00f0ff);
}

/* 5. Center Spider Glyph: Venom Lightning Ring */
.icon-spider-center {
  width: 26px;
  height: 26px;
}
.venom-ring {
  opacity: 0;
  transform-origin: 16px 16px;
  transition: opacity 0.25s ease;
}
.dock-spider-glyph:hover .venom-ring {
  opacity: 1;
  animation: spinVenomRing 2s linear infinite;
  filter: drop-shadow(0 0 6px #ffe600);
}
@keyframes spinVenomRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 6. Playground: Gamepad */
.dock-item:hover .icon-playground {
  transform: rotate(-8deg) scale(1.18);
  filter: drop-shadow(0 0 8px #ff0055);
}
.dock-item:hover .gamepad-dpad {
  stroke: #ffe600;
}

/* 7. Graffiti: Rattling Spray-Can with Neon Mist */
.spray-mist {
  opacity: 0;
  transform-origin: 14px 8px;
  transition: opacity 0.2s, transform 0.25s;
}
.dock-item:hover .icon-graffiti {
  animation: sprayRattle 0.18s ease infinite alternate;
}
.dock-item:hover .spray-mist {
  opacity: 1;
  transform: translate(-3px, -3px) scale(1.35);
  filter: drop-shadow(0 0 6px #00f0ff);
}
@keyframes sprayRattle {
  0% { transform: rotate(-5deg) scale(1.08); }
  100% { transform: rotate(5deg) scale(1.14); }
}

/* 8. Spider-Sense: Vibrating Cranial Squiggles */
.dock-item:hover .sense-squiggles {
  animation: spideyJitter 0.1s linear infinite;
  filter: drop-shadow(0 0 6px #ffe600) drop-shadow(0 0 10px #ff0055);
}
@keyframes spideyJitter {
  0% { transform: translate(-1.5px, 0.5px) skewX(2deg); }
  50% { transform: translate(1.5px, -1px) skewX(-2deg); }
  100% { transform: translate(-0.5px, 1.5px); }
}

/* 9. 3D Hero Mode: Holographic Wireframe Cube */
.holo-cube-group {
  transform-origin: 16px 17px;
  transition: transform 0.3s ease;
}
.dock-item:hover .holo-cube-group {
  animation: holoCubeSpin 2.4s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px #00f0ff);
}
@keyframes holoCubeSpin {
  0% { transform: rotate(0deg) scale(1.05); }
  50% { transform: rotate(18deg) scale(1.2); }
  100% { transform: rotate(-18deg) scale(1.05); }
}

/* 10. Sound FX: Equalizer Bounce */
.sound-bars .sbar {
  transform-origin: bottom;
}
.dock-item:hover .sbar.b1 {
  animation: eqBounce 0.4s ease-in-out infinite alternate;
}
.dock-item:hover .sbar.b2 {
  animation: eqBounce 0.32s ease-in-out infinite alternate 0.08s;
}
.dock-item:hover .sbar.b3 {
  animation: eqBounce 0.44s ease-in-out infinite alternate 0.14s;
}
@keyframes eqBounce {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.4); }
}

.dock-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff3b39;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1;
  border: 1px solid #000;
  box-shadow: 1px 1px 0 #000;
}

.dock-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #ffe600;
  color: #050406;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 12px;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border: 1.5px solid #000;
  box-shadow: 2px 2px 0 #000;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  z-index: 100;
}

.dock-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Header portal pill */
.header-portal-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 19, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 14px;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.portal-tag {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  color: #ff3b39;
  letter-spacing: 1px;
}

/* Suit Model Selector Buttons */
.suit-model-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.suit-model-btn:hover, .suit-model-btn.active {
  background: #00f0ff;
  color: #050406;
  border-color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
  font-weight: bold;
}

/* Portrait and character share one transformed parent so their alignment survives parallax. */
#heroCharacter .portrait-reveal{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden;opacity:0;clip-path:circle(var(--face-radius,0px) at var(--face-x,50%) var(--face-y,43%));transition:opacity .18s ease;}
#heroCharacter .portrait-reveal img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;filter:none!important;transform:none!important;}
#heroCharacter:focus-visible{outline:2px solid #f34b55;outline-offset:6px;}
@media(prefers-reduced-motion:reduce){#heroCharacter .portrait-reveal{transition:none;}}


/* =========================================================
   DIMENSIONAL WEB SCROLL SYSTEM (Spider-Verse Progress Rail)
   ========================================================= */

/* Visually hide desktop default browser scrollbar while maintaining native scrollability */
html {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
html::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.web-scroll-rail {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: min(580px, 72vh);
  z-index: 92;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  user-select: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s ease;
}

.web-scroll-rail.rail-dimmed {
  opacity: 0.35;
}
.web-scroll-rail:hover {
  opacity: 1 !important;
}

.web-rail-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Organic Silk SVG Strand */
.web-rail-svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.web-strand-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.15));
  transition: stroke 0.3s ease;
}

.web-scroll-rail:hover .web-strand-bg {
  stroke: rgba(255, 255, 255, 0.3);
}

.web-strand-active {
  fill: none;
  stroke: #ff3b39;
  stroke-width: 2.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 59, 57, 0.85));
  transition: stroke 0.3s ease;
}

/* Spider Runner Indicator */
.web-rail-runner {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  pointer-events: none;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.runner-core {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ff3b39, 0 0 16px rgba(0, 240, 255, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.runner-glow {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 57, 0.4) 0%, transparent 70%);
  animation: runnerBreathe 2.4s ease-in-out infinite;
}

@keyframes runnerBreathe {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.runner-spider-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
  opacity: 0.85;
}

/* 6 Anchor Nodes */
.web-rail-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.web-rail-node {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.node-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.web-rail-node:hover .node-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-color: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
}

.web-rail-node.is-completed .node-dot {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.8);
}

.web-rail-node.is-active .node-dot {
  width: 10px;
  height: 10px;
  background: #ff3b39;
  border-color: #ffffff;
  box-shadow: 0 0 10px #ff3b39, 0 0 18px rgba(255, 59, 57, 0.8);
}

.node-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #ff3b39;
  opacity: 0;
  pointer-events: none;
}

.web-rail-node.node-enter-pulse .node-pulse {
  animation: nodeEnterPulseAnim 0.4s ease-out forwards;
}

@keyframes nodeEnterPulseAnim {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Hover Flyout Labels */
.node-flyout {
  position: absolute;
  right: 36px;
  white-space: nowrap;
  font-family: Display, 'Arial Narrow', sans-serif;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #c4b5b0;
  background: rgba(12, 10, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 4px 9px;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.node-num {
  color: #ff3b39;
  font-weight: 800;
  font-family: monospace;
}

.node-sep {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 4px;
}

.web-scroll-rail:hover .node-flyout,
.web-rail-node:focus-visible .node-flyout {
  opacity: 0.92;
  transform: translateX(0);
}

.web-rail-node:hover .node-flyout {
  opacity: 1;
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

.web-rail-node.is-active .node-flyout {
  border-color: rgba(255, 59, 57, 0.6);
  color: #fff;
}
.web-rail-node.is-active .node-name {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Contextual Arsenal HUD */
.web-rail-arsenal-mode {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%) translateX(20px);
  opacity: 0;
  pointer-events: none;
  background: rgba(8, 7, 10, 0.94);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25), inset 0 0 15px rgba(0, 240, 255, 0.08);
  border-radius: 6px;
  padding: 10px 14px;
  backdrop-filter: blur(12px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.rail-mode-arsenal .web-rail-arsenal-mode {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.rail-mode-arsenal .web-rail-nodes {
  opacity: 0.25;
  transition: opacity 0.3s ease;
}

.arsenal-mode-title {
  font-family: Display, sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.arsenal-mode-counter {
  font-family: monospace;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.arsenal-mode-sep {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 4px;
}

.arsenal-mode-ticks {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.arsenal-tick {
  width: 3px;
  height: 10px;
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.arsenal-tick.is-active {
  background: #00f0ff;
  height: 14px;
  box-shadow: 0 0 8px #00f0ff;
}

/* Spider-Sense Discovery Pill */
.web-rail-sense-pill {
  position: absolute;
  right: 45px;
  top: -15px;
  background: rgba(255, 59, 57, 0.15);
  border: 1px solid #ff3b39;
  color: #ffe600;
  font-family: monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 18px rgba(255, 59, 57, 0.4);
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.web-rail-sense-pill.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rail-sense-active .web-rail-runner .runner-core {
  background: #ffe600 !important;
  box-shadow: 0 0 14px #ffe600, 0 0 24px #ff3b39 !important;
}

/* Velocity Reaction */
body.fast-scroll-active .web-rail-runner {
  transform: scaleY(1.4) scaleX(0.8);
  filter: drop-shadow(-2px 0 #ff0055) drop-shadow(2px 0 #00f0ff);
}

.web-scroll-rail.rail-velocity-streak .web-strand-active {
  stroke-width: 3.5;
  filter: drop-shadow(0 0 10px #00f0ff) drop-shadow(0 0 18px #ff3b39);
}

/* Cursor Badge Enhancements */
.cursor .cursor-badge {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.88);
  padding: 2px 6px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.cursor.has-cursor-badge {
  border-color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.18) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5) !important;
  width: 30px !important;
  height: 30px !important;
}

.cursor.has-cursor-badge .cursor-badge {
  opacity: 1;
}

/* Mobile Progress Rail */
.web-scroll-mobile {
  display: none;
}

@media (max-width: 768px) {
  .web-scroll-rail {
    display: none !important;
  }

  .web-scroll-mobile {
    display: block;
    position: fixed;
    bottom: 78px;
    left: 50%;
    transform: translateX(-50%);
    width: min(320px, 86vw);
    height: 30px;
    z-index: 90;
    background: rgba(11, 9, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    padding: 0 12px;
    pointer-events: auto;
  }

  .mobile-rail-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-rail-strand {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.18);
    top: 50%;
    transform: translateY(-50%);
  }

  .mobile-rail-active {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff3b39, #00f0ff);
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    filter: drop-shadow(0 0 6px #ff3b39);
  }

  .mobile-rail-nodes {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-node-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #141012;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
    font-family: monospace;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-node-btn.is-active {
    background: #ff3b39;
    color: #ffffff;
    border-color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 0 8px #ff3b39;
  }

  .mobile-node-btn.is-completed {
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .web-scroll-rail,
  .web-rail-runner,
  .web-rail-node,
  .node-flyout,
  .web-rail-arsenal-mode {
    transition: none !important;
    animation: none !important;
  }
  body.fast-scroll-active .web-rail-runner {
    transform: none !important;
    filter: none !important;
  }
}

/* =========================================================
   HERO CITY VIDEO LOOP & CONTACT DETAILS STYLES
   ========================================================= */

.city-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0.96;
  transition: opacity 0.5s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.contact-actions-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 32px auto 20px;
  max-width: 680px;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 16, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0, 240, 255, 0.65);
  color: #ffffff;
  padding: 18px 28px;
  font-family: Display, 'Arial Narrow', sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15), inset 0 0 12px rgba(0, 240, 255, 0.08);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.contact-email-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.contact-email-btn:hover::before {
  transform: translateX(100%);
}

.contact-email-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: #00f0ff;
  color: #00f0ff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.45), inset 0 0 20px rgba(0, 240, 255, 0.2);
}

.contact-email-btn .email-btn-icon {
  font-size: 16px;
  color: #00f0ff;
  transition: transform 0.25s ease;
}

.contact-email-btn:hover .email-btn-icon {
  transform: scale(1.2) rotate(-8deg);
}

.contact-email-btn .email-btn-arrow {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, color 0.25s ease;
}

.contact-email-btn:hover .email-btn-arrow {
  transform: translate(3px, -3px);
  color: #00f0ff;
}

.contact-quick-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8f7f80;
  margin-top: 16px;
  text-transform: uppercase;
}

.contact-quick-meta .meta-sep {
  color: rgba(255, 59, 57, 0.5);
}

.footer-email-link {
  color: #bcabaa;
  letter-spacing: 1.2px;
  font-family: monospace;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  text-decoration: none;
}

.footer-email-link:hover {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

@media (max-width: 760px) {
  .contact-actions-wrap {
    flex-direction: column;
    gap: 12px;
  }
  .contact-email-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 11px;
  }
  .contact-quick-meta {
    flex-direction: column;
    gap: 6px;
    font-size: 9px;
  }
  .contact-quick-meta .meta-sep {
    display: none;
  }
}

/* =========================================================
   NAVBAR DOWN-TO-UP COLLAPSE & EXPAND SYSTEM
   ========================================================= */

header {
  transition: 
    transform 0.52s cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 0.52s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.38s ease;
  clip-path: inset(0 0 0 0);
  will-change: transform, clip-path, opacity;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(20, 15, 24, 0.85);
  border: 1px solid rgba(255, 59, 57, 0.55);
  color: #eee9df;
  padding: 6px 13px;
  border-radius: 4px;
  font-family: Display, 'Arial Narrow', sans-serif;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.nav-collapse-btn:hover {
  background: rgba(255, 59, 57, 0.2);
  border-color: #ff3b39;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 59, 57, 0.45);
  transform: translateY(-1px);
}

.nav-collapse-btn .collapse-icon {
  color: #ff3b39;
  font-size: 8px;
  transition: transform 0.22s ease;
}

.nav-collapse-btn:hover .collapse-icon {
  transform: translateY(-2px);
}

.nav-collapse-btn .collapse-kbd {
  font-family: monospace;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-left: 2px;
}

/* Closing Animation: Roll/Wipe from Down to Up into the top ceiling */
body.nav-closed header {
  transform: translateY(-100%);
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  pointer-events: none;
}

/* Floating Spider-Verse HUD Expand Tab at Top Edge */
.nav-expand-tab {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 11, 18, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-top: none;
  border-radius: 0 0 8px 8px;
  color: #ffffff;
  padding: 7px 18px 8px;
  font-family: Display, 'Arial Narrow', sans-serif;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: 
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  user-select: none;
}

.nav-expand-tab .expand-tab-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  animation: pulseCyan 2s infinite ease-in-out;
}

@keyframes pulseCyan {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; }
}

.nav-expand-tab .expand-tab-icon {
  color: #00f0ff;
  font-size: 8px;
  transition: transform 0.2s ease;
}

.nav-expand-tab .expand-tab-kbd {
  font-family: monospace;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

body.nav-closed .nav-expand-tab {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-expand-tab:hover {
  background: rgba(20, 16, 26, 0.98);
  border-color: #00f0ff;
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5);
  color: #00f0ff;
}

.nav-expand-tab:hover .expand-tab-icon {
  transform: translateY(2px);
}

/* =========================================================
   NAV-CLOSED 1-SCREEN FULL VIEWPORT FRAMING
   Smoothly shift all elements to capture entire home page
   ========================================================= */

.hero {
  transition: height 0.55s cubic-bezier(0.16, 1, 0.3, 1), min-height 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene {
  transition: inset 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-meta {
  transition: top 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.title-layer {
  transition: top 0.55s cubic-bezier(0.16, 1, 0.3, 1), height 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.character {
  transition: 
    bottom 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.15s ease-out;
}

.side-copy {
  transition: top 0.55s cubic-bezier(0.16, 1, 0.3, 1), width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-copy h1,
.side-copy h2 {
  transition: font-size 0.55s cubic-bezier(0.16, 1, 0.3, 1), margin 0.55s ease;
}

.hero-bottom {
  transition: bottom 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease;
}

.leap-badge,
.hero-3d-badge,
.comic-caption.hero-caption {
  transition: top 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s ease;
}

/* Desktop & Laptop 1-Screen Framing when Navbar is Closed */
@media (min-width: 761px) {
  body.nav-closed .hero {
    height: 100vh !important;
    height: 100svh !important;
    min-height: 0 !important;
    max-height: 100vh !important;
    max-height: 100svh !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 10 !important;
    box-shadow: 0 20px 0 #080708 !important;
  }

  body.nav-closed .scene {
    inset: 18px 4.5% 40px !important;
  }

  body.nav-closed .hero-meta {
    top: 6px !important;
    font-size: 8.5px;
    letter-spacing: 2px;
  }

  body.nav-closed .title-layer {
    top: -12px !important;
    height: 44% !important;
  }

  body.nav-closed .leap-badge {
    top: 26% !important;
  }

  body.nav-closed .hero-3d-badge {
    top: 32% !important;
  }

  body.nav-closed .comic-caption.hero-caption {
    top: 20% !important;
  }

  body.nav-closed .character {
    bottom: 14px !important;
    max-height: 73vh !important;
    width: clamp(320px, 31vw, 470px) !important;
  }

  body.nav-closed .character img {
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 20px rgba(255, 59, 57, 0.25)) !important;
  }

  body.nav-closed .side-copy {
    top: 46% !important;
    width: 22% !important;
  }

  body.nav-closed .side-copy h1,
  body.nav-closed .side-copy h2 {
    font-size: clamp(22px, 2.4vw, 36px) !important;
    margin: 12px 0 10px !important;
    line-height: 0.98 !important;
  }

  body.nav-closed .side-copy p {
    font-size: 11px !important;
    line-height: 1.65 !important;
    margin: 0 0 12px !important;
    max-width: 240px !important;
  }

  body.nav-closed .line-link {
    padding: 10px 0 !important;
    font-size: 8.5px !important;
    letter-spacing: 1.5px !important;
  }

  body.nav-closed .hero-bottom {
    bottom: 10px !important;
    opacity: 1 !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  }
}

@media (max-width: 760px) {
  body.nav-closed .scene {
    inset: 18px 5% 50px !important;
  }
  body.nav-closed .character {
    bottom: 160px !important;
  }
}
