/* ==================================================================
   DENIZ ERTEN PRODUCTIONS — Immersive site
   Cinematic · futuristic · minimal. Black base + cyan/blue/indigo.
   Zero-build: plain CSS. Pairs with GSAP + Lenis + Three.js (CDN).
   ================================================================== */

:root {
  --bg:        #04040a;
  --bg-2:      #080812;
  --panel:     rgba(255, 255, 255, 0.035);
  --panel-2:   rgba(255, 255, 255, 0.06);
  --panel-bd:  rgba(255, 255, 255, 0.09);
  --line:      rgba(255, 255, 255, 0.08);
  --text:      #ececf4;
  --muted:     #9090a8;
  --faint:     #5a5a72;

  --cyan:    #34f5ff;
  --blue:    #4d7cff;
  --violet:  #7b5cff;
  --indigo:  #6d5dfc;
  --gold:    #e7c98b;

  --grad:      linear-gradient(110deg, var(--cyan) 0%, var(--blue) 52%, var(--indigo) 100%);
  --grad-soft: linear-gradient(135deg, rgba(52,245,255,.15), rgba(77,124,255,.15), rgba(109,93,252,.14));

  --maxw: 1240px;
  --gutter: clamp(1.2rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* Kill horizontal pan/drift while finger-scrolling on touch devices.
     clip (modern) avoids creating a scroll container that would fight Lenis;
     hidden is the fallback for older Safari. */
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
/* Lenis controls smooth scroll; native smooth would fight it. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { font-family: "Syne", "Space Grotesk", sans-serif; font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img, picture { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--violet); color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.u-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Background layers ---------- */
#webgl, #bg-canvas {
  position: fixed; inset: 0; z-index: -4;
  width: 100%; height: 100%; pointer-events: none;
}
#bg-canvas { z-index: -3; opacity: .5; }

.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; filter: blur(90px); }
.aurora__blob { position: absolute; border-radius: 50%; opacity: .5; mix-blend-mode: screen; will-change: transform; }
.aurora__blob--1 { width: 46vw; height: 46vw; left: -8vw; top: -6vw; background: radial-gradient(circle, var(--violet), transparent 65%); animation: drift1 30s var(--ease) infinite alternate; }
.aurora__blob--2 { width: 40vw; height: 40vw; right: -6vw; top: 16vh; background: radial-gradient(circle, var(--cyan), transparent 65%); opacity: .38; animation: drift2 36s var(--ease) infinite alternate; }
.aurora__blob--3 { width: 38vw; height: 38vw; left: 22vw; bottom: -14vw; background: radial-gradient(circle, var(--blue), transparent 65%); opacity: .36; animation: drift3 33s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 12vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, 10vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(8vw, -12vh) scale(1.2); } }

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(2,2,6,.7) 100%); }

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 9990; width: 420px; height: 420px;
  border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); opacity: 0;
  background: radial-gradient(circle, rgba(123,92,255,.13), rgba(52,245,255,.05) 42%, transparent 70%);
  transition: opacity .5s ease;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow { opacity: 1; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 1.6rem;
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__logo { height: clamp(64px, 12vw, 110px); width: auto; filter: drop-shadow(0 0 40px rgba(123,92,255,.55)); animation: preloaderPulse 2.4s ease-in-out infinite; }
@keyframes preloaderPulse { 0%,100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
.preloader__bar { width: 200px; height: 2px; background: rgba(255,255,255,.1); overflow: hidden; border-radius: 2px; position: relative; }
.preloader__bar i { position: absolute; inset: 0; width: 0%; background: var(--grad); }

/* ---------- Gradient text ---------- */
.gradient-text {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem var(--gutter);
  transition: padding .4s var(--ease), background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: .75rem; padding-bottom: .75rem;
  background: rgba(4,4,10,.62); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
/* backdrop-filter turns the nav into the containing block for its fixed
   descendants (the mobile drawer + scrim), pinning them inside the bar.
   Drop it while the drawer is open; the drawer/scrim cover the bar anyway. */
.nav.is-open.is-scrolled { background: transparent; backdrop-filter: none; border-bottom-color: transparent; transition: none; }
.nav__brand { display: flex; align-items: center; gap: .7rem; z-index: 210; }
.nav__logo { height: clamp(46px, 6vw, 64px); width: auto; filter: drop-shadow(0 0 18px rgba(123,92,255,.55)); transition: transform .5s var(--ease); }
.nav.is-scrolled .nav__logo { height: clamp(40px, 5vw, 52px); }
.nav__brand:hover .nav__logo { transform: rotate(-6deg) scale(1.05); }
.nav__logo.is-missing { display: none; }
.nav__brand-text { font-family: "Syne", sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: .02em; line-height: 1; display: flex; flex-direction: column; }
.nav__brand-text small { font-weight: 600; font-size: .4rem; letter-spacing: .42em; color: var(--muted); margin-top: 4px; }

.nav__right { display: flex; align-items: center; gap: 1.8rem; }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { font-size: .86rem; color: var(--muted); position: relative; transition: color .3s; letter-spacing: .02em; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--grad); transition: width .35s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }

/* Language toggle */
.lang { display: inline-flex; align-items: center; border: 1px solid var(--panel-bd); border-radius: 100px; padding: 3px; background: var(--panel); }
.lang[hidden] { display: none; }
.lang button { background: none; border: 0; cursor: pointer; color: var(--faint); font-size: .72rem; font-weight: 600; letter-spacing: .1em; padding: .32rem .6rem; border-radius: 100px; transition: color .3s, background .3s; }
.lang button.is-active { color: #06060c; background: var(--grad); }

.nav__toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 210; }
.nav__toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), opacity .3s; }

/* Dim/blur the page behind the mobile menu drawer; tap to dismiss. Hidden
   (and non-interactive) until the drawer is open, and only on small screens. */
.nav__scrim { position: fixed; inset: 0; z-index: 1; background: rgba(2,2,6,.55); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.nav.is-open .nav__scrim { opacity: 1; visibility: visible; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 100px; font-size: .92rem; font-weight: 500;
  position: relative; overflow: hidden; cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--grad); color: #06060c; font-weight: 600; }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px -12px rgba(123,92,255,.7); }
.btn--ghost { border-color: var(--panel-bd); color: var(--text); background: var(--panel); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 16px 44px -18px rgba(52,245,255,.5); }
.btn--sm { padding: .7rem 1.3rem; font-size: .82rem; }

/* ---------- Layout helpers ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(2rem, 4vw, 2.75rem) var(--gutter); position: relative; }
.section--wide { max-width: none; }
.section__head { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section__index { display: inline-flex; align-items: center; gap: .6rem; font-size: .74rem; letter-spacing: .3em; color: var(--cyan); margin-bottom: 1.1rem; }
.section__index::before { content: ""; width: 26px; height: 1px; background: var(--cyan); opacity: .6; }
.section__title { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 1rem; }
.section__sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.12rem); text-align: justify; hyphens: auto; }

/* ---------- HERO (full-bleed cinematic) ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
}

/* Full-bleed monochrome background photo with dark overlay */
.hero__photo { position: absolute; inset: 0; z-index: -5; overflow: hidden; background: #06060c; }
/* The <picture> wrapper must fill the hero so the img's height:100% resolves
   against a definite height (otherwise it collapses to the photo's aspect ratio
   and leaves dead space below it). */
.hero__photo picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: grayscale(1) contrast(1.05) brightness(1.02);
  transform-origin: center;
  transform: scale(1.28) translateX(-12%);
  animation: heroPhotoIn 6.5s var(--ease-out) both;
  will-change: transform, opacity;
}
.hero__photo.is-missing .hero__photo-img { display: none; }
/* Dark veil + soft purple/blue light, blended into the page */
.hero__photo-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 78% 32%, rgba(109,93,252,.20), transparent 60%),
    radial-gradient(60% 50% at 12% 78%, rgba(52,245,255,.12), transparent 60%),
    linear-gradient(90deg, rgba(4,4,10,.30) 0%, rgba(4,4,10,.08) 32%, rgba(4,4,10,.55) 72%, rgba(4,4,10,.92) 100%),
    linear-gradient(0deg, rgba(4,4,10,.78) 0%, rgba(4,4,10,.10) 46%, rgba(4,4,10,.42) 100%);
}
@keyframes heroPhotoIn {
  from { opacity: 0; transform: scale(1.38) translateX(-12%); }
  to   { opacity: 1; transform: scale(1.28) translateX(-12%); }
}

.hero__halo {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  width: min(86vw, 820px); aspect-ratio: 1.4/1; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,92,255,.22), transparent 62%);
  filter: blur(28px); z-index: -1; pointer-events: none;
}

/* Text block: vertically centered, aligned right; social links pinned bottom-right */
.hero__stage {
  flex: 1; display: flex; flex-direction: column; align-items: flex-end;
  justify-content: center; text-align: right; position: relative;
  padding: 9rem var(--gutter) clamp(5rem, 12vh, 7rem);
}
.hero__content { max-width: 900px; }
.hero__manifesto {
  max-width: 34ch; margin: 0 0 clamp(1.5rem, 3.5vw, 2.4rem) auto;
  color: var(--muted); font-weight: 300;
  font-size: clamp(.95rem, 1.6vw, 1.18rem); line-height: 1.75; letter-spacing: .01em;
}

/* Manifesto as the hero centerpiece — large + animated light sweep */
.hero__manifesto--feature {
  max-width: 22ch; margin-left: auto;
  font-family: "Syne", sans-serif; font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.6rem, 3.9vw, 3.05rem); line-height: 1.14;
  color: transparent;
  background: linear-gradient(110deg, #f1f1f8 0%, #f1f1f8 38%, var(--cyan) 50%, #f1f1f8 62%, #f1f1f8 100%);
  background-size: 230% auto;
  -webkit-background-clip: text; background-clip: text;
  text-shadow: none;
  transform-origin: right center;
  animation: heroSheen 6s linear infinite, heroBreathe 5.5s ease-in-out infinite;
}
@keyframes heroSheen { to { background-position: -230% center; } }
/* Soft inhale / exhale so the line feels like it's breathing */
@keyframes heroBreathe {
  0%, 100% { transform: scale(1);     opacity: .9; }
  50%      { transform: scale(1.022); opacity: 1;  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__manifesto--feature { animation: none; background-position: 0 center; }
}
.hero__title {
  font-family: "Syne", sans-serif; font-weight: 800;
  font-size: clamp(2.8rem, 9.5vw, 7rem); line-height: .98; letter-spacing: -.03em;
  text-shadow: 0 6px 70px rgba(0,0,0,.55);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: block; }

.hero__links { position: absolute; right: var(--gutter); bottom: clamp(2rem, 5vh, 3.2rem); text-align: right; z-index: 2; }
.hero__links-label { display: block; font-size: .7rem; letter-spacing: .28em; color: var(--faint); margin-bottom: .7rem; }
.hero__social-links { display: flex; justify-content: flex-end; gap: 1.6rem; }
.hero__social-links a { font-size: .82rem; letter-spacing: .14em; color: var(--muted); position: relative; transition: color .3s; }
.hero__social-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--grad); transition: width .35s var(--ease); }
.hero__social-links a:hover { color: var(--text); }
.hero__social-links a:hover::after { width: 100%; }

/* Marquee pinned at the bottom of the hero, over the photo */
.hero .marquee--hero { position: relative; z-index: 1; flex-shrink: 0; padding: clamp(.9rem, 2vh, 1.4rem) 0; border-top: 1px solid var(--line); border-bottom: none; background: linear-gradient(rgba(4,4,10,0), rgba(4,4,10,.6)); }
.hero .marquee--hero .marquee__track { gap: 1.8rem; }
.hero .marquee--hero .marquee__track span { font-size: clamp(1rem, 2.6vw, 1.7rem); }
.hero .marquee--hero .marquee__track i { font-size: .95rem; }

/* ---------- Marquee ---------- */
.marquee { padding: 1.8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 2.4rem; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: "Syne", sans-serif; font-weight: 700; font-size: clamp(1.4rem, 4.4vw, 2.7rem); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.26); white-space: nowrap; }
.marquee__track i { color: var(--violet); font-style: normal; font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto (full-bleed parallax) ---------- */
.manifesto { position: relative; min-height: 92svh; display: grid; place-items: center; overflow: hidden; padding: 6rem var(--gutter); }
.manifesto__bg { position: absolute; inset: -12% 0; z-index: -1; }
.manifesto__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) contrast(1.05) brightness(.6); will-change: transform; }
.manifesto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 80% at 50% 50%, rgba(4,4,10,.35), rgba(4,4,10,.86)); }
.manifesto__inner { max-width: 880px; text-align: center; }
.manifesto__eyebrow { font-size: .76rem; letter-spacing: .4em; color: var(--cyan); margin-bottom: 1.6rem; }
.manifesto__text { font-family: "Syne", sans-serif; font-weight: 700; font-size: clamp(1.6rem, 4.6vw, 3.1rem); line-height: 1.18; letter-spacing: -.01em; }
.manifesto__text .word { display: inline-block; }

/* ---------- Projects / Works ---------- */
.works { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.work {
  position: relative; grid-column: span 3; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--panel-bd); background: #0b0b14; cursor: pointer;
  aspect-ratio: 16/11; text-align: left; color: inherit; display: block; width: 100%;
  transition: transform .6s var(--ease), border-color .5s, box-shadow .6s;
  will-change: transform;
}
.work--wide { grid-column: span 6; aspect-ratio: 21/9; }
.work--tall { grid-column: span 2; aspect-ratio: 3/4; }
.work__media { position: absolute; inset: 0; overflow: hidden; }
.work__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) brightness(.78); transition: transform 1.3s var(--ease-out), filter .8s var(--ease); will-change: transform; }
.work[data-project="imdat"] .work__media img { object-position: top; transform-origin: 50% 0; }
.work__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,4,10,0) 30%, rgba(4,4,10,.4) 60%, rgba(4,4,10,.92) 100%); transition: opacity .6s; }
.work__shine { position: absolute; inset: 0; opacity: 0; background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(52,245,255,.18), transparent 45%); transition: opacity .5s; mix-blend-mode: screen; }
.work__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.2rem, 2.4vw, 1.9rem); z-index: 2; }
.work__cat { font-size: .68rem; letter-spacing: .24em; color: var(--cyan); }
.work__title { font-family: "Syne", sans-serif; font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: .35rem 0 .2rem; line-height: 1.05; }
.work__meta { font-size: .82rem; color: var(--muted); display: flex; gap: .8rem; align-items: center; }
.work__plus { position: absolute; top: 1.1rem; right: 1.2rem; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--panel-bd); display: grid; place-items: center; background: rgba(8,8,16,.45); backdrop-filter: blur(6px); color: var(--text); z-index: 2; transition: background .4s, transform .5s var(--ease), border-color .4s; }
.work__plus svg { width: 15px; height: 15px; }
.work:hover { transform: translateY(-6px); border-color: rgba(123,92,255,.5); box-shadow: 0 40px 90px -40px rgba(123,92,255,.65); }
.work:hover .work__media img { transform: scale(1.09); filter: grayscale(0) brightness(.92); }
.work:hover .work__shine { opacity: 1; }
.work:hover .work__plus { background: var(--grad); color: #06060c; transform: rotate(90deg); border-color: transparent; }
.work__listen { display: inline-flex; align-items: center; gap: .45rem; margin-top: .8rem; padding: .5rem 1rem; border-radius: 999px; background: var(--grad); color: #06060c; font-size: .72rem; font-weight: 700; letter-spacing: .04em; box-shadow: 0 8px 22px -10px rgba(123,92,255,.7); animation: ctaPulse 2.4s ease-in-out infinite; transition: transform .35s var(--ease); cursor: pointer; }
.work__listen svg { width: 12px; height: 12px; }
.work__listen:hover { transform: scale(1.05); }

/* ---------- Project overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.overlay__scrim { position: absolute; inset: 0; background: rgba(2,2,6,.82); backdrop-filter: blur(14px); }
.overlay__panel { position: relative; z-index: 1; width: min(1040px, 100%); max-height: 90vh; overflow: auto; border-radius: 24px; border: 1px solid var(--panel-bd); background: linear-gradient(180deg, rgba(14,14,22,.96), rgba(7,7,13,.98)); transform: translateY(24px) scale(.98); transition: transform .55s var(--ease); -ms-overflow-style: none; scrollbar-width: thin; }
.overlay.is-open .overlay__panel { transform: none; }
.overlay__media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.overlay__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.overlay__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,7,13,.96)); }
.overlay__close { position: fixed; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--panel-bd); background: rgba(8,8,16,.6); backdrop-filter: blur(8px); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: background .3s, transform .3s; }
.overlay__close:hover { background: var(--grad); color: #06060c; transform: rotate(90deg); }
.overlay__body { padding: clamp(1.6rem, 4vw, 3rem); margin-top: -3rem; position: relative; z-index: 2; }
.overlay__cat { font-size: .72rem; letter-spacing: .24em; color: var(--cyan); }
.overlay__title { font-size: clamp(1.8rem, 5vw, 3rem); margin: .5rem 0 1rem; }
.overlay__meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 1.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.overlay__meta div { display: flex; flex-direction: column; gap: .2rem; }
.overlay__meta dt { font-size: .68rem; letter-spacing: .2em; color: var(--faint); }
.overlay__meta dd { font-size: .95rem; color: var(--text); }
.overlay__syn { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.8rem; text-align: justify; hyphens: auto; }
.overlay__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.overlay__gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); filter: grayscale(.3); transition: filter .5s, transform .5s var(--ease); }
.overlay__gallery img:hover { filter: none; transform: scale(1.02); }
.overlay__listen { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.8rem; padding: .7rem 1.4rem; border-radius: 999px; background: var(--grad); color: #06060c; font-size: .78rem; font-weight: 700; letter-spacing: .04em; box-shadow: 0 8px 22px -10px rgba(123,92,255,.7); animation: ctaPulse 2.4s ease-in-out infinite; transition: transform .35s var(--ease); }
.overlay__listen svg { width: 14px; height: 14px; }
.overlay__listen:hover { transform: scale(1.05); }

/* ---------- Video lightbox ---------- */
.videobox { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.videobox.is-open { opacity: 1; visibility: visible; }
.videobox__scrim { position: absolute; inset: 0; background: rgba(2,2,6,.86); backdrop-filter: blur(16px); }
.videobox__frame { position: relative; z-index: 1; width: min(1100px, 100%); transform: translateY(24px) scale(.98); transition: transform .5s var(--ease); }
.videobox.is-open .videobox__frame { transform: none; }
.videobox__ratio { position: relative; aspect-ratio: 16/9; width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid var(--panel-bd); background: #000; box-shadow: 0 40px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(52,245,255,.08); }
.videobox__ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videobox__close { position: absolute; top: -54px; right: 0; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--panel-bd); background: rgba(8,8,16,.6); backdrop-filter: blur(8px); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: background .3s, transform .3s; }
.videobox__close:hover { background: var(--grad); color: #06060c; transform: rotate(90deg); }
.videobox__close svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .videobox__close { top: -50px; right: 50%; transform: translateX(50%); } .videobox__close:hover { transform: translateX(50%) rotate(90deg); } }


.bts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.4rem; }
.bts figure { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); }
.bts img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) brightness(.85); transition: transform 1s var(--ease), filter .6s; }
.bts figure:hover img { transform: scale(1.07); filter: grayscale(0) brightness(1); }
.bts figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: .8rem; font-size: .68rem; letter-spacing: .16em; color: var(--text); background: linear-gradient(transparent, rgba(4,4,10,.8)); opacity: 0; transition: opacity .4s; }
.bts figure:hover figcaption { opacity: 1; }

/* ---------- Music ---------- */
.music__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.releases { display: flex; flex-direction: column; gap: 1rem; }
.release { display: grid; grid-template-columns: 88px 1fr auto auto; gap: 1.2rem; align-items: center; padding: 1rem; border-radius: 18px; border: 1px solid var(--panel-bd); background: var(--panel); transition: border-color .4s, background .4s, transform .4s var(--ease); }
.release:hover { border-color: rgba(123,92,255,.45); background: var(--panel-2); transform: translateX(4px); }
.release__cover { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; position: relative; flex-shrink: 0; }
.release__cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.05); }
.release__cover::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 30px rgba(0,0,0,.5); }
.release__info h4 { font-family: "Syne", sans-serif; font-size: 1.15rem; font-weight: 700; }
.release__info span { font-size: .82rem; color: var(--muted); }
.release__wave { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.release__wave i { width: 3px; background: var(--grad); border-radius: 2px; opacity: .8; animation: wave 1.4s var(--ease) infinite; }
.release__wave i:nth-child(1){height:40%;animation-delay:-.2s}.release__wave i:nth-child(2){height:75%;animation-delay:-.5s}.release__wave i:nth-child(3){height:55%;animation-delay:-.1s}.release__wave i:nth-child(4){height:90%;animation-delay:-.7s}.release__wave i:nth-child(5){height:48%;animation-delay:-.35s}
.release--single { cursor: pointer; }
.release__cta { justify-self: end; display: inline-flex; align-items: center; white-space: nowrap; padding: .5rem 1rem; border-radius: 999px; background: var(--grad); color: #06060c; font-size: .72rem; font-weight: 700; letter-spacing: .04em; box-shadow: 0 8px 22px -10px rgba(123,92,255,.7); animation: ctaPulse 2.4s ease-in-out infinite; transition: transform .35s var(--ease); }
.release--single:hover .release__cta { transform: scale(1.05); }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 8px 22px -10px rgba(123,92,255,.7); } 50% { box-shadow: 0 8px 26px -6px rgba(52,245,255,.85); } }
.release__play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--panel-bd); color: var(--text); transition: background .35s var(--ease), color .35s, transform .35s var(--ease); }
.release__play svg { width: 16px; height: 16px; margin-left: 2px; }
.release--single:hover .release__play { background: var(--grad); color: #06060c; transform: scale(1.08); border-color: transparent; }
@keyframes wave { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }

/* ---------- Studio ---------- */
.studio__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.studio__text p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1.05rem; text-align: justify; hyphens: auto; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.pillar { padding: 1.3rem; border-radius: 16px; border: 1px solid var(--panel-bd); background: var(--panel); transition: border-color .4s, transform .4s var(--ease); }
.pillar:hover { border-color: rgba(52,245,255,.4); transform: translateY(-3px); }
.pillar__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: .9rem; background: var(--grad-soft); color: var(--cyan); border: 1px solid var(--line); }
.pillar__icon svg { width: 20px; height: 20px; }
.pillar h4 { font-size: 1.1rem; margin-bottom: .35rem; }
.pillar p { font-size: .86rem; color: var(--muted); text-align: justify; hyphens: auto; }
.studio__divider { display: block; height: 1px; margin: 2.4rem 0; background: linear-gradient(90deg, var(--line), transparent); }

.about__stats { list-style: none; display: flex; gap: 2.6rem; margin-top: 2rem; flex-wrap: wrap; }
.about__stats strong { font-family: "Syne", sans-serif; font-size: 2.2rem; display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__stats span { font-size: .76rem; letter-spacing: .12em; color: var(--faint); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact__lede { color: var(--muted); font-size: 1.08rem; margin-bottom: 2rem; text-align: justify; hyphens: auto; }
.contact__email { display: block; width: fit-content; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; font-family: "Syne", sans-serif; font-size: clamp(1rem, 4vw, 1.5rem); padding-bottom: 5px; border-bottom: 1px solid var(--panel-bd); transition: border-color .3s, color .3s; margin-bottom: .9rem; }
.contact__email:hover { border-color: var(--cyan); color: var(--cyan); }
.contact__phone { display: block; width: fit-content; font-family: "Syne", sans-serif; font-size: clamp(1rem, 4vw, 1.5rem); padding-bottom: 5px; border-bottom: 1px solid var(--panel-bd); transition: border-color .3s, color .3s; margin-bottom: 2rem; }
.contact__phone:hover { border-color: var(--cyan); color: var(--cyan); }
.contact__socials { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.contact__socials a { font-size: .82rem; letter-spacing: .14em; color: var(--muted); position: relative; transition: color .3s; }
.contact__socials a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--grad); transition: width .3s var(--ease); }
.contact__socials a:hover { color: var(--text); }
.contact__socials a:hover::after { width: 100%; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(2.4rem, 5vw, 3.4rem) var(--gutter) 2.4rem; position: relative; overflow: hidden; }
.footer__line { position: absolute; top: 0; left: 0; height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent); background-size: 50% 100%; animation: footerline 6s linear infinite; opacity: .6; }
@keyframes footerline { to { background-position: 200% 0; } }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: .7rem; }
.footer__brand img { height: 30px; }
.footer__brand img.is-missing { display: none; }
.footer__brand span { font-family: "Syne", sans-serif; font-weight: 700; }
.footer__meta { color: var(--faint); font-size: .8rem; }
.footer__socials { display: flex; gap: 1.3rem; }
.footer__socials a { color: var(--muted); transition: color .3s, transform .3s; }
.footer__socials a:hover { color: var(--cyan); transform: translateY(-2px); }
.footer__socials svg { width: 19px; height: 19px; }
.footer__legal { max-width: var(--maxw); margin: 1.8rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; gap: .9rem 1.8rem; flex-wrap: wrap; justify-content: center; }
.footer__legal a { color: var(--faint); font-size: .76rem; letter-spacing: .02em; transition: color .3s; }
.footer__legal a:hover { color: var(--cyan); }

/* ---------- Reveal + media fade ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal[data-reveal="left"] { transform: translateX(-40px); }
.reveal[data-reveal="right"] { transform: translateX(40px); }
.reveal[data-reveal="scale"] { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }
.float-slow { animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

img.media { opacity: 0; transition: opacity 1.1s var(--ease); }
img.media.is-loaded { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .work--wide { grid-column: span 6; }
  .work, .work--tall { grid-column: span 3; }
  .work--tall { aspect-ratio: 16/11; }
  .studio__grid, .contact__grid, .music__grid { grid-template-columns: 1fr; }
  .bts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  /* Respect notch / rounded corners so nothing sits under the bezel */
  .nav { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  .nav__right { gap: 1rem; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; z-index: 5; width: min(72vw, 280px);
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 2rem;
    /* Glassy panel tinted with the site's cyan→indigo light instead of a flat black slab */
    background:
      radial-gradient(120% 55% at 100% 0%, rgba(52,245,255,.09), transparent 62%),
      radial-gradient(130% 60% at 90% 100%, rgba(109,93,252,.16), transparent 66%),
      rgba(5,5,12,.72);
    backdrop-filter: blur(28px) saturate(1.35);
    border-left: 1px solid transparent;
    border-image: linear-gradient(180deg, rgba(52,245,255,.45), rgba(77,124,255,.12) 45%, rgba(109,93,252,.45)) 1;
    box-shadow: -60px 0 120px rgba(2,2,8,.55);
    transform: translateX(100%); transition: transform .55s var(--ease);
    padding: 2rem; padding-top: max(2rem, env(safe-area-inset-top)); padding-right: max(2rem, env(safe-area-inset-right)); padding-bottom: max(2rem, env(safe-area-inset-bottom));
    overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none;
    counter-reset: navlink;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links.is-open { transform: translateX(0); }
  /* Menu items: gradient index numbers + staggered slide-in */
  .nav__links a {
    font-size: 1.05rem; counter-increment: navlink;
    opacity: 0; transform: translateX(26px);
    transition: opacity .45s var(--ease), transform .6s var(--ease), color .3s;
  }
  .nav__links a::before {
    content: "0" counter(navlink);
    font-size: .62rem; font-weight: 500; letter-spacing: .22em;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-right: .7rem; vertical-align: .25em; opacity: .9;
  }
  .nav__links.is-open a { opacity: 1; transform: translateX(0); }
  .nav__links.is-open a:nth-child(1) { transition-delay: .10s; }
  .nav__links.is-open a:nth-child(2) { transition-delay: .16s; }
  .nav__links.is-open a:nth-child(3) { transition-delay: .22s; }
  .nav__links.is-open a:nth-child(4) { transition-delay: .28s; }
  .nav__links.is-open a:nth-child(5) { transition-delay: .34s; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  /* Hero: keep the legible right-aligned text (the veil is darkest on the
     right) but pull the social links into normal flow so they can never
     overlap the manifesto or the marquee on short viewports. */
  .hero__stage { padding: 7rem var(--gutter) 2.4rem; justify-content: center; gap: 1.5rem; }
  .hero__content { max-width: 100%; }
  .hero__manifesto--feature { max-width: 16ch; font-size: clamp(1.7rem, 6.4vw, 2.6rem); line-height: 1.16; }
  .hero__links { position: static; right: auto; bottom: auto; margin-top: 1.2rem; }
  .hero__photo-img { object-position: 28% center; }
  .works { grid-template-columns: 1fr; }
  .work, .work--wide, .work--tall { grid-column: span 1; aspect-ratio: 16/11; }
  .pillars { grid-template-columns: 1fr; }
  .overlay__gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (max-width: 460px) {
  .nav__brand-text { display: none; }
  /* Keep the play button on its own column so single rows stay one line */
  .release { grid-template-columns: 56px 1fr auto; gap: .9rem; padding: .8rem; }
  .release__cover { width: 56px; height: 56px; }
  .release__wave { display: none; }
  .release__cta { display: none; }
  .bts { grid-template-columns: 1fr; }
  .hero__stage { padding-top: 6.5rem; }
  .hero__photo-img { object-position: 32% 28%; }
  .hero__manifesto--feature { max-width: 14ch; font-size: clamp(1.55rem, 8.6vw, 2.1rem); }
  .about__stats { gap: 1.8rem; }
}
@media (max-width: 380px) {
  /* Smallest phones — keep everything within the viewport, no side scroll */
  .hero__stage { padding-bottom: 2.2rem; }
  .marquee { padding: 1.2rem 0; }
  .marquee__track { gap: 1.6rem; }
  .btn { padding: .85rem 1.3rem; font-size: .86rem; }
  .lang button { padding: .3rem .45rem; }
  .about__stats { gap: 1.4rem; }
  .about__stats strong { font-size: 1.9rem; }
}

/* The mobile menu scrim only exists for the drawer; never let it cover a
   desktop layout where the drawer isn't used. */
@media (min-width: 761px) { .nav__scrim { display: none; } }

/* ---------- Touch devices (no hover) ---------- */
@media (hover: none) {
  /* Hover-reveal captions/overlays are unreachable without a pointer, so
     surface them by default on touch. */
  .bts figcaption { opacity: 1; }
  .work__veil { opacity: 1; }
}

/* ---------- Short / landscape viewports (phones on their side) ---------- */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 620px; }
  .hero__stage { padding-top: 5rem; padding-bottom: 1.6rem; }
}

/* ---------- Notch / safe-area (landscape on notched phones) ---------- */
@supports (padding: max(0px)) {
  .section, .hero__stage, .footer {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
  /* Keep the overlay close button clear of the notch / status bar */
  .overlay__close {
    top: max(clamp(1rem,3vw,2rem), env(safe-area-inset-top));
    right: max(clamp(1rem,3vw,2rem), env(safe-area-inset-right));
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  img.media { opacity: 1 !important; }
}
