/* =================================
       GLOBAL & TOKENS
    ================================= */
:root {
  --black: #0d0d0d;
  --white: #ffffff;
  --red: #ff0033;
  --blue: #002aff;
  --orange: #ff0033;
  --yellow: #ff0033;
  /* fallbacks map to red */
  --ink: #111111;

  --scroll-vel: 0;
  /* Update constantly by JS */
  --j-rx: 0deg;
  /* Generic random jitter */
  --j-tx: 0px;
}

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

html,
body {
  width: 100vw;
  height: 100%;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
}

html.loading,
body.loading {
  overflow: hidden !important;
  pointer-events: none;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--blue);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  /* Aggiunta di un filtro rumore in CSS per abbinarsi all'estetica */
  filter: contrast(1.2);
}

#loader.hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.loader-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.loader-counter {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(8rem, 25vw, 20rem);
  line-height: 0.8;
  color: var(--white);
  mix-blend-mode: normal;
  margin-bottom: 1rem;
}

.loader-text {
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: 0.5em;
  color: var(--red);
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  font-weight: bold;
}



@keyframes nudge {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }
}

/* =================================
       NAVIGATION BAR
    ================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 8vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5vw;
  z-index: 1000;
  mix-blend-mode: difference;
  /* creates artistic inverted color effect over content */
  pointer-events: none;
  /* root container doesn't block interactions below */
}

.nav-links {
  display: flex;
  gap: 2rem;
  pointer-events: auto;
  transform: skewX(var(--kinetic-skew));
  will-change: transform;
}

.nav-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
  color: var(--yellow);
}

.site-logo-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  text-decoration: none;
  mix-blend-mode: difference;
}

.site-logo {
  width: clamp(79px, 7.2vw, 117px);
  height: auto;
  display: block;
  opacity: 0.95;
}

/* =================================
       MAIN SCROLL TRACK
    ================================= */
#scroll-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100vh;
  width: max-content;
  /* It expands as cards are added */
  overflow-y: hidden;
  /* JS handles the visual sliding through transform instead of native scrollLeft 
         for absolute butter smoothness + kinetic distortion */
  will-change: transform;
}

/* =================================
       COMMON ENTRANCE REVEAL
    ================================= */
.reveal {
  opacity: 0;
  transform: translateX(100px) skewX(2deg);
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateX(0) skewX(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* =================================
       1. HERO PANEL
    ================================= */
.panel {
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#hero {
  width: 100vw;
  padding-left: 5vw;
  background: var(--black);
  overflow: hidden;
  
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.45;
  filter: contrast(1.1) brightness(0.9);
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.35) 0%, rgba(0, 42, 255, 0.35) 100%);
  mix-blend-mode: color;
  z-index: 2;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  z-index: 3;
}

.hero-title {
  padding-block: 1rem;
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(1rem, 8vw, 10rem);
  color: var(--white);
  line-height: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 3;
  /* Jitter effect */
  animation: heroJitter 4s infinite alternate ease-in-out;
}

@keyframes heroJitter {
  0% {
    transform: rotate(-2deg) translate(0, 0);
  }

  50% {
    transform: rotate(-2.5deg) translate(2px, -1px);
  }

  100% {
    transform: rotate(-1.5deg) translate(-1px, 2px);
  }
}

.hero-sub {
  font-style: italic;
  font-size: clamp(0.75rem, 1.2vw, 1.05rem);
  color: var(--white);
  opacity: 0.8;
  margin-top: 2rem;
  position: relative;
  z-index: 3;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.4rem;
  width: fit-content;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.75rem, 0.95vw, 0.95rem);
  font-weight: 600;
  padding: 0.75rem 1.2rem;
  border: 2px solid var(--white);
  box-shadow: 6px 6px 0 var(--blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  z-index: 3;
}

.hero-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--white);
  background: var(--blue);
}

.hero-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--white);
}

.hero-star {
  position: absolute;
  top: 10%;
  right: 10%;
  animation: spin 14s linear infinite;
}

.hero-scribble {
  position: absolute;
  bottom: 15%;
  right: 15%;
  opacity: 0.4;
  pointer-events: none;
  animation: heroJitter 6s alternate-reverse infinite;
}

.hero-scribble path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 0.6s ease-out 0.4s;
}

#hero.in-view .hero-scribble path {
  stroke-dashoffset: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =================================
       2. GALLERY INTRO & WALL
    ================================= */
.live-section-container,
.works-section-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100vh;
  background: var(--white);
}

.live-section-container .works-intro-text,
.works-section-container .works-intro-text {
  color: var(--black);
  -webkit-text-stroke: 2px var(--red);
  opacity: 0.85;
}

.works-intro {
  width: 30vw;
  align-items: center;
  justify-content: center;
}

.works-intro-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 8vw, 10rem);
  color: var(--ink);
  -webkit-text-stroke: 2px var(--white);
  transform: rotate(-90deg);
  white-space: nowrap;
  opacity: 0.3;
}

/* Single Row Card Structure */
.art-card {
  /* Height dictates size, width adapts */
  height: clamp(400px, 60vh, 800px);
  aspect-ratio: 0.75;
  flex-shrink: 0;
  position: relative;

  /* Organic messy margins */
  margin: 0 clamp(40px, 5vw, 100px);

  /* Base values generated via JS */
  transform: translateY(100px) rotate(calc(var(--rot) - 10deg));
  opacity: 0;

  /* Kinetic velocity distortion during scroll */
  --kinetic-skew: calc(var(--scroll-vel) * -0.05deg);
  --kinetic-scale: calc(1 - (max(var(--scroll-vel), var(--scroll-vel) * -1) * 0.0005));
}

/* Alternating vertical alignment for chaotic wall */
.art-card:nth-child(odd) {
  align-self: flex-start;
  margin-top: 15vh;
}

.art-card:nth-child(even) {
  align-self: flex-end;
  margin-bottom: 15vh;
}

/* Intersection entrance */
.art-card.in-view {
  animation: cardEnter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay) forwards;
}

@keyframes cardEnter {
  0% {
    opacity: 0;
    transform: translateY(100px) rotate(calc(var(--rot) - 10deg)) skewX(10deg);
  }

  100% {
    opacity: 1;
    /* we land on the base rot and ty assigned by JS, plus kinetic skew if moving */
    transform: translateY(var(--ty)) rotate(var(--rot)) skewX(var(--kinetic-skew)) scale(var(--kinetic-scale));
  }
}

/* Wrap holding the visual card */
.art-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--ink);
  overflow: hidden;
  transition: transform 0.2s ease-out, filter 0.2s ease-out;
  /* Box shadow gives real-world physical object feel */
  box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.5);
}

@media (hover: hover) {
  .art-wrap:hover {
    transform: scale(1.04) translateY(-10px);
    filter: brightness(1.15) contrast(1.1);
    z-index: 100;
    box-shadow: 25px 25px 0px rgba(0, 0, 0, 0.6);
  }
}

.art-num {
  position: absolute;
  bottom: 0.5rem;
  right: 0.8rem;
  font-size: 0.6rem;
  color: var(--white);
  background: var(--red);
  padding: 0.2rem 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  z-index: 11;
}

/* Captions for artwork and reels */
.art-meta {
  display: none;
}

.art-meta h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px var(--red), -2px -2px 0px var(--blue);
}

.art-meta p {
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  opacity: 0.95;
  line-height: 1.3;
  color: var(--white);
}

/* Responsive captions for mobile touch screens */
@media (max-width: 768px) {
  .art-meta {
    display: none;
  }
}

/* Pulsante esclusivo IG aggiunto direttamente ai Reel */
.ig-overlay-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 999;
  background: var(--yellow);
  color: var(--black);
  padding: 0.4rem;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
  transition: transform 0.1s, box-shadow 0.1s;
}



/* Pulsante esclusivo IG aggiunto direttamente ai Reel */
.ig-overlay-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 999;
  background: var(--blue);
  color: var(--white);
  padding: 0.4rem;
  box-shadow: 4px 4px 0px var(--red);
  transition: transform 0.1s, box-shadow 0.1s;
  border: 1px solid var(--white);
}

.ig-overlay-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--red);
}

.ig-overlay-btn svg {
  transition: transform 0.2s;
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  max-width: none;
}

/* Live Reels Specific Modifiers */
.reel-card {
  aspect-ratio: 9/16;
  height: clamp(400px, 65vh, 800px);
}

.reel-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto;
}

.instagram-media {
  width: 100% !important;
  height: 100% !important;
}

/* =================================
       3. BIO PANEL (HUGE & ARTISTIC)
    ================================= */
#bio {
  width: 130vw;
  /* Massive width */
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  background: var(--blue);
  color: var(--white);
  padding: 0 10vw;
  overflow: hidden;
}

.bio-bg-marquee {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%) rotate(-6deg) scale(1.1);
  z-index: 0;
  opacity: 0.08;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14vw;
  color: var(--white);
  white-space: nowrap;
  pointer-events: none;
  overflow: hidden;
}

.bio-bg-marquee .marquee-inner {
  display: flex;
  width: max-content;
  animation: bioMarqueeRun 25s linear infinite;
}

@keyframes bioMarqueeRun {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.bio-photo-placeholder {
  width: auto;
  height: 80vh;
  aspect-ratio: 3/4;
  max-width: 40vw;
  background: var(--ink);
  border: 2px solid var(--white);
  position: relative;
  overflow: hidden;
  /* kinetic transform via JS CSS variable */
  transform: rotate(-3deg) skewX(var(--kinetic-skew));
  box-shadow: -20px 20px 0 var(--red);
  z-index: 2;
}

.bio-photo-placeholder:hover::after {
  opacity: 0;
}

.bio-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  max-width: none;
}

.bio-photo-placeholder:hover img {
  transform: scale(1.05);
}

/* Studio gallery placeholder: ensure image fills container */
.studio-gallery {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.studio-photo-single {
  width: auto;
  height: 60vh;
  aspect-ratio: 4/3;
  max-width: 40vw;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
}

.studio-photo-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  max-width: none;
}

/* Screen-reader only text (keeps accessibility while hiding visually) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bio-typography {
  position: relative;
  z-index: 2;
  max-width: 40vw;
}

.bio-title-1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(6rem, 11vw, 14rem);
  line-height: 0.8;
  color: var(--white);
  margin-left: -5vw;
  /* overlap the photo intentionally */
  mix-blend-mode: normal;
  text-shadow: 4px 4px 0px var(--red);
}

.bio-title-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 3.5vw, 4.5rem);
  color: var(--white);
  margin-top: 1rem;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0px var(--red);
}

.bio-desc {
  margin-top: 2rem;
  font-size: clamp(0.95rem, 1.3vw, 1.25rem);
  line-height: 1.5;
  border-left: 4px solid var(--red);
  padding-left: 2rem;
  color: var(--white);
}

.bio-tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.bio-tag-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--white);
  padding: 0.3rem 0.6rem;
  transform: skewX(-8deg);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.bio-tag-pill:hover {
  background: var(--white);
  color: var(--blue);
  transform: skewX(-8deg) translateY(-2px);
  box-shadow: 3px 3px 0 var(--red);
}

.bio-brush-bg {
  position: absolute;
  right: 10%;
  top: 0;
  height: 120vh;
  width: clamp(200px, 30vw, 400px);
  pointer-events: none;
  opacity: 0.9;
  transform: rotate(10deg) translateX(20%) skewX(var(--kinetic-skew));
}

/* =================================
       COLLABORATION PANEL
    ================================= */
#collab {
  width: 130vw;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  background: var(--black);
  color: var(--white);
  padding: 0 10vw;
  overflow: hidden;
  position: relative;
}

.collab-photo-placeholder {
  width: auto;
  height: 70vh;
  aspect-ratio: 16/9;
  max-width: 50vw;
  background: var(--ink);
  border: 2px solid var(--white);
  position: relative;
  overflow: hidden;
  transform: rotate(2deg) skewX(var(--kinetic-skew));
  box-shadow: 20px 20px 0 var(--blue);
  z-index: 2;
}

.collab-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  max-width: none;
}

.collab-photo-placeholder:hover img {
  transform: scale(1.05);
}

.collab-typography {
  position: relative;
  z-index: 2;
  max-width: 40vw;
}

.collab-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 9vw, 11rem);
  line-height: 0.8;
  color: var(--white);
  margin-left: -2vw;
  mix-blend-mode: normal;
  text-shadow: 4px 4px 0px var(--blue);
}

.collab-title-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 3.5vw, 4.5rem);
  color: var(--white);
  margin-top: 1rem;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0px var(--blue);
}

.collab-desc {
  margin-top: 2rem;
  font-size: clamp(0.95rem, 1.3vw, 1.25rem);
  line-height: 1.5;
  border-left: 4px solid var(--blue);
  padding-left: 2rem;
  color: var(--white);
}

.collab-brush-bg {
  position: absolute;
  left: 10%;
  top: 0;
  height: 120vh;
  width: clamp(200px, 30vw, 400px);
  pointer-events: none;
  opacity: 0.7;
  transform: rotate(-10deg) translateX(-20%) skewX(var(--kinetic-skew));
}

/* =================================
       4. CONTATTI PANEL (BRUTALIST)
    ================================= */

#contatti {
  width: 110vw;
  /* Massive width */
  flex-direction: row;
  justify-content: flex-end;
  padding: 0 10vw;
  background: var(--black);
  position: relative;
}

.contatti-typography {
  text-align: right;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.contatti-label {
  font-size: 1rem;
  letter-spacing: 0.5em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.contatti-email {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(6rem, 12vw, 16rem);
  color: var(--yellow);
  text-decoration: none;
  line-height: 0.8;
  transition: color 0.2s, transform 0.2s;
}

.contatti-email-short {
  font-size: clamp(7rem, 14vw, 18rem);
  letter-spacing: 0.02em;
}

.contatti-email:hover {
  color: var(--white);
  transform: skewX(-5deg);
}

.socials-massive {
  margin-top: 4rem;
  display: flex;
  gap: 3rem;
}

.social-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.5rem;
  transition: border-color 0.2s, color 0.2s;
}

.social-link:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.studio-gallery {
  position: absolute;
  left: 5vw;
  top: 0;
  height: 100%;
  width: 50vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.studio-photo-single {
  position: relative;
  width: 44vw;
  aspect-ratio: 16/9;
  background: var(--ink);
  border: 2px solid var(--white);
  /* White border like a photo print */
  transform: rotate(2deg) skewX(var(--kinetic-skew));
  overflow: hidden;
  z-index: 1;
  box-shadow: 15px 15px 0 rgba(0, 0, 0, 0.8);
  transition: transform 0.3s, z-index 0s;
}

.studio-photo-single:hover {
  transform: rotate(0deg) skewX(var(--kinetic-skew)) scale(1.05);
  z-index: 3;
}

.studio-photo-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(10%) contrast(1.1);
}

.footer-stamp {
  position: absolute;
  bottom: 3rem;
  right: 10vw;
  font-size: 0.6rem;
  color: var(--white);
  opacity: 0.3;
  letter-spacing: 0.2em;
}

/* Final end spacer to let scrolling finish comfortably */
.end-spacer {
  width: 20vw;
  height: 100vh;
  flex-shrink: 0;
  background: var(--black);
}

/* =================================
       RESPONSIVE MOBILE
    ================================= */
@media (max-width: 768px) {

  .navbar {
    height: auto;
    padding: 3vh 5vw;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2vh;
    background: transparent;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
    width: auto;
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .site-logo-link {
    top: 0.8rem;
    left: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  }

  body.header-shifted .site-logo-link {
    transform: translateX(calc(-100% - 1.2rem));
    opacity: 0;
    pointer-events: none;
  }

  body.header-shifted .nav-links {
    /* Move left to the center: -45vw (half of 90vw active width) + 50% of its own width */
    transform: translateX(calc(-45vw + 50%));
  }

  .site-logo {
    width: clamp(40px, 20vw, 80px);
  }

  html,
  body {
    overflow-x: hidden;
    width: 100vw;
    overflow-y: auto;
    height: auto;
  }

  #scroll-track {
    flex-direction: column;
    width: 100%;
    height: auto;
    transform: none !important;
  }

  .live-section-container,
  .works-section-container {
    flex-direction: column;
    height: auto;
    width: 100vw;
    min-height: 100vh;
    padding-bottom: 25vh;
  }

  .panel {
    width: 100vw;
    height: auto;
    min-height: 100vh;
    padding: 10vh 5vw;
  }

  #hero {
    padding-left: 5vw;
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(4.5rem, 10.5vw, 6.5rem);
    line-height: 0.8;
    letter-spacing: -0.02em;
  }

  .hero-sub {
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin-top: 1rem;
  }

  .hero-cta {
    margin-top: 1.1rem;
    font-size: 0.85rem;
  }

  .hero-scribble {
    bottom: 25%;
    right: 5%;
    width: 150px;
  }

  .hero-star {
    width: 50px;
    top: 15%;
    right: 5%;
  }

  .works-intro {
    width: 100%;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .works-intro-text {
    transform: none;
    font-size: clamp(7rem, 25vw, 14rem);
    text-align: left;
    margin-top: 5vh;
    line-height: 0.8;
    margin-left: -1vw;
  }

  .art-card {
    height: auto;
    width: 85vw;
    margin: 5vh auto !important;
    align-self: center !important;
    aspect-ratio: 3/4;
  }

  .reel-card {
    aspect-ratio: 9/16;
    width: 80vw;
    max-width: 400px;
    height: auto;
  }

  #bio,
  #collab {
    flex-direction: column;
    width: 100%;
    margin-top: 20vh;
    padding-top: 10vh;
    padding-bottom: 10vh;
  }

  .bio-photo-placeholder {
    width: 100%;
    max-width: 80vw;
    height: 60vh;
    margin-bottom: 5vh;
    transform: none;
    box-shadow: -10px 10px 0 var(--black);
  }

  .bio-typography {
    max-width: 100%;
  }

  .bio-title-1 {
    font-size: clamp(5rem, 18vw, 9rem);
    margin-left: 0;
    line-height: 0.8;
    letter-spacing: -0.02em;
  }

  .bio-title-1 br {
    display: none;
  }

  .bio-title-sub {
    font-size: clamp(1.5rem, 6vw, 3rem);
    line-height: 0.9;
    margin-top: 1rem;
  }

  .bio-desc {
    font-size: clamp(1rem, 3.5vw, 1.5rem);
    line-height: 1.5;
    border-left: 4px solid var(--black);
    padding-left: 1rem;
    margin-top: 2rem;
  }

  .bio-brush-bg {
    width: clamp(100px, 30vw, 200px);
    height: auto;
    right: 0;
    bottom: 0;
    top: 0;
  }

  .collab-photo-placeholder {
    width: 100%;
    max-width: 80vw;
    height: auto;
    aspect-ratio: 16/11;
    margin-bottom: 5vh;
    transform: none;
    box-shadow: 10px 10px 0 var(--blue);
  }

  .collab-typography {
    max-width: 100%;
  }

  .collab-title {
    font-size: clamp(4rem, 15vw, 7.5rem);
    margin-left: 0;
    line-height: 0.8;
    letter-spacing: -0.02em;
  }

  .collab-title-sub {
    font-size: clamp(1.5rem, 6vw, 3rem);
    line-height: 0.9;
    margin-top: 1rem;
  }

  .collab-desc {
    font-size: clamp(1rem, 3.5vw, 1.5rem);
    line-height: 1.5;
    border-left: 4px solid var(--blue);
    padding-left: 1rem;
    margin-top: 2rem;
  }

  .collab-brush-bg {
    width: clamp(100px, 30vw, 200px);
    height: auto;
    left: 0;
    bottom: 0;
    top: 0;
  }

  #contatti {
    flex-direction: column;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 10vh;
  }

  .studio-gallery {
    position: relative;
    width: 90vw;
    height: auto;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .studio-photo-single {
    position: relative;
    left: 0;
    top: 0;
    width: 80vw;
    max-width: none;
    height: auto;
    aspect-ratio: 16/9;
    transform: rotate(2deg);
    z-index: 1;
    box-shadow: 5px 10px 0 rgba(0, 0, 0, 0.8);
  }

  .studio-photo-single:hover {
    transform: rotate(2deg) scale(1.05);
  }

  .contatti-typography {
    text-align: left;
    align-items: flex-start;
    z-index: 5;
    margin-left: -2vw;
  }

  .contatti-label {
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin-bottom: 1rem;
  }

  .contatti-email {
    font-size: clamp(4.5rem, 18vw, 10rem);
    line-height: 0.85;
    letter-spacing: -0.02em;
  }

  .contatti-email-short {
    font-size: clamp(5rem, 20vw, 11.5rem);
    letter-spacing: 0;
  }

  .social-link {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .socials-massive {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }

  .footer-stamp {
    position: relative;
    bottom: auto;
    right: auto;
    padding-block: 7vh;
  }

  .end-spacer {
    display: none;
  }
}

body.modal-open {
  overflow: hidden !important;
}

/* =================================
       MODAL DETAILS (FULLSCREEN OVERLAY)
    ================================= */
.artwork-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 2rem;
}

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

.modal-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer !important;
  z-index: 100002;
  transition: transform 0.25s ease, color 0.25s ease;
  line-height: 1;
}

.modal-close-btn:hover {
  transform: rotate(90deg);
  color: var(--red);
}

.modal-content {
  display: flex;
  flex-direction: row;
  width: 95%;
  max-width: 1150px;
  height: 80vh;
  background: rgba(17, 17, 17, 0.9);
  box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
}

.modal-left {
  flex: 1.2;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-left img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.modal-right {
  flex: 0.8;
  height: 100%;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
}

.modal-category {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--red);
  font-weight: bold;
  margin-bottom: 1rem;
}

#modal-title {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(2rem, 3.5vw, 4rem);
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 0px var(--red), -2px -2px 0px var(--blue);
}

#modal-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 3rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
}

.modal-ig-link {
  margin-top: auto;
}

.modal-ig-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--white);
  background: transparent;
  box-shadow: 5px 5px 0 var(--blue);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  cursor: pointer !important;
}

.modal-ig-link a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--red);
  background-color: var(--white);
  color: var(--black);
}

.modal-ig-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Responsive Modal Styling */
@media (max-width: 900px) {
  .modal-content {
    flex-direction: column;
    height: 90vh;
    width: 95%;
  }

  .modal-left {
    flex: 1;
    border-right: none;
    border-bottom: none;
  }

  .modal-right {
    flex: 1;
    padding: 2.5rem 1.5rem;
  }

  #modal-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  #modal-desc {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
}