html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
button, select, input, textarea { font: inherit; }
select { color: hsl(var(--foreground)); }
.hero-image { animation: hero-kenburns 18s ease-in-out infinite alternate; transform-origin: center; }
.hero-image-wrap:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 45%, transparent 0, transparent 45%, rgba(0,0,0,.22) 100%);
}
.hero-kicker, .hero-title, .hero-copy, .hero-actions { opacity: 0; transform: translateY(22px); animation: hero-in .75s ease forwards; }
.hero-title { animation-delay: .12s; }
.hero-copy { animation-delay: .24s; }
.hero-actions { animation-delay: .36s; }
.chevron-float { animation: chevron-bounce 1.8s ease-in-out infinite; }
.reveal, .card-reveal { opacity: 0; transform: translateY(34px); transition: opacity .72s ease, transform .72s ease; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .75s ease, transform .75s ease; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible, .card-reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0,0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.group:hover { transform: translateY(-3px); }
.metrics-grid div { min-height: 3.5rem; }
.metrics-grid strong { display:block; font-family: var(--font-display); color:hsl(var(--foreground)); font-size:1.75rem; line-height:1; letter-spacing:.04em; }
.metrics-grid span { display:block; margin-top:.35rem; font-size:.72rem; color:hsl(var(--muted-foreground)); }
.mobile-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  background: hsl(var(--background) / .96);
  border-top: 1px solid hsl(var(--border) / .55);
  border-bottom: 1px solid hsl(var(--border) / .55);
  backdrop-filter: blur(22px);
  transition: grid-template-rows .34s ease;
}
.mobile-panel.open { grid-template-rows: 1fr; }
.mobile-panel > * { min-height: 0; }
.mobile-panel button {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  text-align: left;
  color: hsl(var(--muted-foreground));
  font-size: .9rem;
  font-weight: 600;
}
.mobile-panel .quote { color: hsl(var(--primary)); }
@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }
@keyframes hero-kenburns { from { transform: scale(1); } to { transform: scale(1.055); } }
@keyframes chevron-bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .reveal,.card-reveal,.reveal-left,.reveal-right,.hero-kicker,.hero-title,.hero-copy,.hero-actions{opacity:1;transform:none;} }



/* DEFINITIVE FIX: keep the mobile dropdown closed and hidden on desktop */
.mobile-panel {
  display: none !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  .mobile-panel {
    display: block !important;
    max-height: 0 !important;
    overflow: hidden !important;
    background: hsl(var(--background) / .96);
    border-top: 1px solid hsl(var(--border) / .55) !important;
    border-bottom: 1px solid hsl(var(--border) / .55) !important;
    backdrop-filter: blur(22px);
    transition: max-height .34s ease;
  }

  .mobile-panel.open {
    max-height: 360px !important;
  }
}


/* ===== PRO CINEMATIC UPGRADE ===== */

:root{
  --orange-glow: rgba(255,120,20,.16);
}

html{
  scroll-behavior:smooth;
}

body{
  overflow-x:hidden;
}

/* Grain texture */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.045;
  z-index:9999;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.12) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size:4px 4px, 6px 6px;
  mix-blend-mode:overlay;
}

/* Hero cinematic depth */
#hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top left,
    rgba(255,120,0,.12),
    transparent 35%);
  z-index:1;
}

#hero img{
  animation:heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom{
  from{transform:scale(1);}
  to{transform:scale(1.08);}
}

/* Stronger card polish */
.group{
  transition:
    transform .45s ease,
    border-color .45s ease,
    box-shadow .45s ease !important;
}

.group:hover{
  transform:translateY(-8px);
  box-shadow:
    0 15px 60px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,120,0,.08);
}

/* Buttons */
button{
  position:relative;
  overflow:hidden;
}

button::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.12),
    transparent
  );
  transform:translateX(-120%);
  transition:transform .6s ease;
}

button:hover::after{
  transform:translateX(120%);
}

/* Navbar polish */
nav{
  backdrop-filter:blur(20px) saturate(180%) !important;
  box-shadow:0 8px 40px rgba(0,0,0,.25);
}

/* Section reveals */
.reveal-up{
  opacity:0;
  transform:translateY(40px);
  transition:
    opacity .9s ease,
    transform .9s ease;
}

.reveal-up.active{
  opacity:1;
  transform:translateY(0);
}

/* Footer */
footer{
  background:
    linear-gradient(
      to top,
      rgba(255,120,0,.03),
      transparent
    );
}

/* Better typography rhythm */
p{
  line-height:1.8;
}

h1,h2,h3{
  letter-spacing:.03em;
}

/* Portfolio hover glow */
#portfolio .group:hover{
  border-color:rgba(255,120,0,.4) !important;
  box-shadow:
    0 10px 50px rgba(255,120,0,.08);
}

/* Contact form */
input,
textarea,
select{
  transition:
    border-color .3s ease,
    box-shadow .3s ease,
    transform .3s ease !important;
}

input:focus,
textarea:focus,
select:focus{
  border-color:rgba(255,120,0,.5) !important;
  box-shadow:0 0 0 4px rgba(255,120,0,.08);
  transform:translateY(-1px);
}

/* Scrollbar */
::-webkit-scrollbar{
  width:10px;
}

::-webkit-scrollbar-track{
  background:#0a0a0a;
}

::-webkit-scrollbar-thumb{
  background:rgba(255,120,0,.4);
  border-radius:20px;
}



/* ===== PORTFOLIO AUDIO LIGHTBOX ===== */

.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.portfolio-modal.open {
  display: flex;
}

.portfolio-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 120, 0, .08), transparent 42%),
    rgba(0, 0, 0, .72);
  backdrop-filter: blur(12px);
}

body.portfolio-modal-open {
  overflow: hidden;
}

body.portfolio-modal-open .min-h-screen {
  filter: blur(5px);
  transition: filter .35s ease;
}

body.portfolio-modal-open #portfolioModal {
  filter: none;
}

.portfolio-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 0;
  background:
    linear-gradient(145deg, hsl(var(--card)), hsl(var(--background)));
  border: 1px solid hsl(var(--primary) / .35);
  border-radius: 18px;
  box-shadow:
    0 30px 120px rgba(0,0,0,.75),
    0 0 0 1px rgba(255,120,0,.08),
    0 0 80px rgba(255,120,0,.08);
  animation: portfolioModalIn .34s ease both;
}

@keyframes portfolioModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.portfolio-modal__close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  z-index: 5;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  color: hsl(var(--foreground));
  font-size: 1.55rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.portfolio-modal__close:hover {
  transform: rotate(90deg);
  border-color: hsl(var(--primary) / .6);
  background: hsl(var(--primary) / .16);
}

.portfolio-modal__media {
  position: relative;
  min-height: 420px;
  background:
    radial-gradient(circle at center, #1a1a1a, #050505);
  overflow: hidden;
  border-radius: 18px 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.35), transparent 45%),
    radial-gradient(circle at center, transparent, rgba(0,0,0,.22));
  pointer-events: none;
}

.portfolio-modal__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  padding: 1rem;
  z-index: 1;
}

.portfolio-modal__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--primary) / .42);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  box-shadow:
    0 0 0 10px rgba(255,120,0,.08),
    0 18px 45px rgba(0,0,0,.4);
}

.portfolio-modal__play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.portfolio-modal__play-icon {
  transform: translateX(2px);
}

.portfolio-modal__play.is-playing .portfolio-modal__play-icon {
  transform: translateX(0);
}

.portfolio-modal__content {
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-modal__genre {
  align-self: flex-start;
  padding: .32rem .68rem;
  border-radius: .35rem;
  background: hsl(var(--primary) / .12);
  color: hsl(var(--primary));
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.portfolio-modal__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  line-height: .92;
  letter-spacing: .035em;
  color: hsl(var(--foreground));
  margin-bottom: .65rem;
}

.portfolio-modal__release {
  color: hsl(var(--foreground) / .86);
  font-weight: 600;
  margin-bottom: .35rem;
}

.portfolio-modal__role {
  color: hsl(var(--primary));
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.portfolio-modal__description {
  color: hsl(var(--muted-foreground));
  font-size: .96rem;
  line-height: 1.75;
  margin-bottom: 1.45rem;
}

.portfolio-modal__progress-wrap {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: .85rem;
  color: hsl(var(--muted-foreground));
  font-size: .75rem;
  margin-bottom: 1.45rem;
}

.portfolio-modal__progress {
  appearance: none;
  width: 100%;
  height: .3rem;
  border-radius: 999px;
  background: hsl(var(--border));
  outline: none;
  padding: 0;
}

.portfolio-modal__progress::-webkit-slider-thumb {
  appearance: none;
  width: .9rem;
  height: .9rem;
  border-radius: 999px;
  background: hsl(var(--primary));
  cursor: pointer;
  box-shadow: 0 0 0 5px hsl(var(--primary) / .12);
}

.portfolio-modal__credits {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.1rem;
}

.portfolio-modal__credits h4 {
  color: hsl(var(--foreground));
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .48rem;
}

.portfolio-modal__credits p {
  color: hsl(var(--muted-foreground));
  font-size: .76rem;
  line-height: 1.65;
}

#portfolio .group {
  cursor: pointer;
}

@media (max-width: 760px) {
  .portfolio-modal {
    padding: .9rem;
    align-items: flex-start;
    overflow-y: auto;
  }

  .portfolio-modal__dialog {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .portfolio-modal__media {
    min-height: 300px;
    border-radius: 18px 18px 0 0;
  }

  .portfolio-modal__media img {
    min-height: 300px;
    object-fit: contain;
    padding: .75rem;
  }

  .portfolio-modal__content {
    padding: 1.55rem;
  }

  .portfolio-modal__title {
    font-size: 3rem;
  }
}


/* ===== TIER 1 IMMERSIVE AUDIO UPGRADE ===== */

.hero-video-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.28;
  filter:contrast(1.1) saturate(.9);
  z-index:0;
}

.hero-video-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at center, rgba(255,120,0,.08), transparent 45%),
    linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.55));
  z-index:1;
  pointer-events:none;
}

#hero .container{
  position:relative;
  z-index:2;
}

.audio-reactive-glow{
  animation:audioPulse 1.2s ease-in-out infinite;
}

@keyframes audioPulse{
  0%{ box-shadow:0 0 0 rgba(255,120,0,0);}
  50%{ box-shadow:0 0 55px rgba(255,120,0,.22);}
  100%{ box-shadow:0 0 0 rgba(255,120,0,0);}
}

.portfolio-waveform{
  position:relative;
  display:flex;
  align-items:flex-end;
  gap:3px;
  height:72px;
  margin-bottom:1rem;
  overflow:hidden;
}

.wave-bar{
  flex:1;
  background:linear-gradient(to top,
    rgba(255,120,0,.35),
    rgba(255,160,80,.95));
  border-radius:999px;
  min-height:8px;
  transform-origin:bottom;
  transition:height .12s linear, opacity .2s ease;
  opacity:.6;
}

.wave-bar.active{
  opacity:1;
  filter:brightness(1.15);
}

.portfolio-modal__dialog{
  backdrop-filter:blur(24px);
}

.portfolio-modal__media img{
  transition:transform 1.2s ease;
}

.portfolio-modal.open .portfolio-modal__media img{
  transform:scale(1.02);
}

.portfolio-modal__play{
  transition:transform .25s ease, box-shadow .25s ease;
}

.portfolio-modal__play:hover{
  box-shadow:
    0 0 0 14px rgba(255,120,0,.12),
    0 18px 60px rgba(255,120,0,.25);
}

