@import url('./fonts.css');

:root {
  --color-primary: #000000d6;
  --color-secondary: #54595f;
  --color-text: #7a7a7a;
  --color-accent: #7297c8;
  --color-bg: #a4afbd;
  --color-magenta: #d029c8;
  --color-neon-pink: #e22bff;
  --color-off-white: #cde4f1;
  --color-light: #f8f8f8;
  --color-white: #ffffff;
  --font-heading: 'Rubik Mono One', sans-serif;
  --font-secondary: 'Allerta Stencil', sans-serif;
  --font-russo: 'Russo One', sans-serif;
  --font-body: 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1140px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  color: #e2e8f0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--color-bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ===== SHAPE DIVIDERS ===== */
.shape-divider {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 3;
}

.shape-divider--top {
  top: -1px;
}

.shape-divider--bottom {
  bottom: -1px;
  transform: rotate(180deg);
}

.shape-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.shape-divider--flip svg {
  transform: translateX(-50%) rotateY(180deg);
}

.shape-divider .shape-fill {
  fill: var(--color-bg);
}

.shape-divider .shape-fill--dark {
  fill: #191a1d;
}

/* ===== PIXI MATRIX GLITCH LAYER (Fluent Snippets) ===== */
.pixi-matrix {
  position: relative;
  overflow: hidden;
}

.pixi-matrix .pixi-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none !important;
  z-index: 3 !important;
}

.pixi-matrix > .hero-slides {
  z-index: 0 !important;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 52px;
  background: linear-gradient(180deg, #000000 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  padding: 6px 24px;
}

.header-inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-title a {
  color: var(--color-white);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--color-white);
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.main-nav a {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 4px;
  position: relative;
}

.main-nav li.has-sub {
  position: relative;
}

.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-accent);
  padding: 10px 14px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  z-index: 120;
}

.main-nav li.has-sub:hover .sub-menu,
.main-nav li.has-sub:focus-within .sub-menu {
  display: flex;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-bg);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

/* ===== HERO SLIDESHOW ===== */
.hero {
  position: relative;
  min-height: 100vh;
  margin-top: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0b0d12;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top right;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/textures/noise_transparent_02.webp');
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.btn-hero {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-white);
  background: linear-gradient(76deg, #6082af40 0%, #7297c86b 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--color-white);
  border-radius: 6px;
  padding: 21px 28px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn-hero:hover {
  color: var(--color-white);
  background: linear-gradient(76deg, #6082af80 0%, #7297c8b0 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* ===== OUT NOW SECTION (Solid color bar clipped directly into Hero & Video) ===== */
.out-now {
  position: relative;
  background-color: #5c45d6;
  padding: 110px 20px 115px;
  margin-top: -76px;
  margin-bottom: -76px;
  z-index: 6;
  clip-path: polygon(0 62px, 72% 0, 100% 72px, 100% calc(100% - 72px), 28% 100%, 0 calc(100% - 56px));
}

.out-now-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 6;
}

.out-now h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  text-transform: uppercase;
  color: #f3f3f3;
  margin: 0;
  text-align: center;
}

.itch-embed-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 552px;
  border-radius: 6px;
  overflow: hidden;
  background: #000000;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease;
}

.itch-embed-wrap:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 32px rgba(114, 151, 200, 0.35);
}

/* ===== VINTAGE CRT TV (OUT NOW -> POLYCRONIA ON ITCH.IO) ===== */
.vintage-tv-wrap {
  display: flex;
  justify-content: center;
}

.vintage-tv-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  max-width: 440px;
  width: 100%;
}

/* Rabbit-ears antenna */
.tv-antenna {
  position: relative;
  width: 140px;
  height: 52px;
  margin-bottom: -4px;
}

.tv-antenna__rod {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 3px;
  height: 56px;
  background: linear-gradient(180deg, #e2e8f0 0%, #64748b 100%);
  border-radius: 2px;
  transform-origin: bottom center;
}

.tv-antenna__rod::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff, #94a3b8);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.tv-antenna__rod--left {
  transform: translateX(-50%) rotate(-36deg);
}

.tv-antenna__rod--right {
  transform: translateX(-50%) rotate(34deg);
}

.tv-antenna__base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 11px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Retro TV Cabinet */
.tv-cabinet {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 68px;
  gap: 12px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, #3a342e 0%, #24201c 55%, #161311 100%);
  border: 2px solid #574e46;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.14),
    inset 0 -4px 10px rgba(0, 0, 0, 0.7),
    0 18px 38px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.vintage-tv-link:hover .tv-cabinet {
  border-color: #fa845b;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.18),
    inset 0 -4px 10px rgba(0, 0, 0, 0.7),
    0 20px 44px rgba(250, 132, 91, 0.38);
}

/* Curved CRT Bezel & Glass Screen */
.tv-bezel {
  background: #0d0e11;
  padding: 8px;
  border-radius: 16px;
  box-shadow:
    inset 0 4px 12px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.1);
}

.tv-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px / 18px;
  overflow: hidden;
  background: #050608;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.85);
}

@keyframes crtDrift {
  0%, 100% {
    transform: scale(1.08) translate(0px, 0px);
    filter: contrast(1.12) saturate(1.15) brightness(0.98);
  }
  25% {
    transform: scale(1.1) translate(-3px, 1.5px);
    filter: contrast(1.16) saturate(1.22) brightness(1.03);
  }
  50% {
    transform: scale(1.07) translate(2.5px, -1.5px);
    filter: contrast(1.1) saturate(1.1) brightness(0.95);
  }
  75% {
    transform: scale(1.095) translate(-2px, -1px);
    filter: contrast(1.18) saturate(1.25) brightness(1.04);
  }
}

.tv-screen__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: crtDrift 6.5s ease-in-out infinite;
  will-change: transform, filter;
}

/* Moving CRT Scanlines */
@keyframes scanlineMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 12px;
  }
}

.tv-screen__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.34) 2px,
    rgba(0, 0, 0, 0.34) 4px
  );
  background-size: 100% 4px;
  animation: scanlineMove 0.45s linear infinite;
  pointer-events: none;
  z-index: 2;
}

/* Rolling CRT Tracking Bar */
@keyframes crtRoll {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(350%);
  }
}

.tv-screen__roll {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: crtRoll 3.6s linear infinite;
  pointer-events: none;
  z-index: 3;
}

/* Subtle CRT Phosphor Flicker */
@keyframes crtFlicker {
  0%, 100% { opacity: 0.04; }
  12% { opacity: 0.11; }
  14% { opacity: 0.02; }
  48% { opacity: 0.08; }
  50% { opacity: 0.16; }
  52% { opacity: 0.03; }
  83% { opacity: 0.09; }
  85% { opacity: 0.02; }
}

.tv-screen__flicker {
  position: absolute;
  inset: 0;
  background: rgba(180, 215, 255, 0.25);
  animation: crtFlicker 0.32s steps(2, end) infinite;
  pointer-events: none;
  z-index: 4;
}

/* Curved Glass Glare & Vignette */
.tv-screen__glare {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
  z-index: 5;
}

/* Right Retro Control Panel */
.tv-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1d1b19 0%, #121110 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-dial {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #64748b, #1e293b 70%);
  border: 2px solid #94a3b8;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
  position: relative;
}

.tv-dial::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  width: 3px;
  height: 11px;
  background: #e2e8f0;
  transform: translateX(-50%) rotate(25deg);
  border-radius: 2px;
}

.tv-dial--sm {
  width: 26px;
  height: 26px;
}

.tv-speaker {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 6px;
}

.tv-speaker span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #07080a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tv-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5a36;
  box-shadow: 0 0 8px #ff5a36, 0 0 14px rgba(255, 90, 54, 0.7);
}

.tv-feet {
  width: 78%;
  display: flex;
  justify-content: space-between;
  margin-top: -2px;
}

.tv-feet span {
  width: 32px;
  height: 8px;
  background: #141210;
  border-radius: 0 0 6px 6px;
}

/* "Play on itch.io" Label underneath */
.tv-cta-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #fa5c5c;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.tv-cta-label svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.vintage-tv-link:hover .tv-cta-label {
  background: #ff7456;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(250, 92, 92, 0.5);
}

.itch-embed-wrap iframe {
  width: 100%;
  max-width: 552px;
  height: 167px;
  border: 0;
  display: block;
  background: #000000;
}

/* ===== BIO & GET IN TOUCH (VIDEO BACKGROUND) ===== */
.bio-video-section {
  position: relative;
  background-color: #16171a;
  padding: 130px 0 11%;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  z-index: 0;
  pointer-events: none;
}

.bio-video-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/textures/img-noise.webp');
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.slanted-panel {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.3s ease;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  padding: 48px 56px 56px;
}

.slanted-panel:hover {
  background-color: rgba(0, 0, 0, 0.86);
}

.get-in-touch-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--color-neon-pink);
  text-align: center;
  margin: 0 0 24px;
  transform: rotate(-9deg);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto 28px;
}

.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  background: #ffffff;
  color: #111827;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #e2e8f0;
  cursor: pointer;
}

.btn-submit,
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-accent);
  color: var(--color-white);
  border: 0;
  border-radius: 3px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-submit:hover,
.btn-accent:hover {
  background: #5c82b5;
  color: var(--color-white);
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
  margin: 4px 0 0;
}

.form-status.is-ok {
  color: #4ade80;
}

.form-status.is-err {
  color: #f87171;
}

.intro-portrait {
  max-width: 300px;
  margin: 16px auto 0;
  border-radius: 3px;
}

.bio-heading {
  font-family: var(--font-russo);
  font-size: 1.3em;
  font-weight: 400;
  color: #ffffffd6;
  margin: 0 0 18px;
}

.bio-text p {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 14px;
}

.bio-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.social-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: var(--color-accent);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-btn:hover {
  background: var(--color-bg);
  color: #111;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.paypal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: var(--color-white);
  border: 0;
  border-radius: 3px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}

.paypal-btn:hover {
  background: #5c82b5;
}

.paypal-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.bio-actions .paypal-btn,
.bio-actions .social-btn {
  background: #000000;
  color: var(--color-white);
}

.bio-actions .paypal-btn:hover,
.bio-actions .social-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ===== SECTION HEADINGS ON BG ===== */
.section-band-title {
  text-align: center;
  padding: 3.5% 20px 1%;
}

.section-band-title h2,
.section-band-title h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  color: var(--color-secondary);
  margin: 0;
}

.section-band-title--white h2 {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.section-band-title--dark {
  padding: 2.2% 20px 1.2%;
}

.section-band-title--dark h2 {
  color: #1f242b;
}

/* ===== ACTIVITIES SECTION (Crisp white musical score, no grey veil) ===== */
.activities-section {
  position: relative;
  background-color: #ffffff;
  background-image: url('../assets/img/textures/medusamiamor.webp');
  background-size: cover;
  background-position: center;
  padding: 170px 0 175px;
  overflow: hidden;
}

.activities-glass {
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: saturate(160%) blur(7px);
  -webkit-backdrop-filter: saturate(160%) blur(7px);
  isolation: isolate;
  background-clip: padding-box;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  padding: 36px 32px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 10;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px 30px;
}

.event-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.event-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #111;
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.event-card:hover .event-thumb img {
  transform: scale(1.04);
}

.event-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.event-body h3 a {
  color: #000000b8;
}

.event-body h3 a:hover {
  color: var(--color-accent);
}

.event-excerpt {
  color: var(--color-primary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 14px;
  flex: 1;
}

.event-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
}

.activities-footer {
  text-align: center;
  margin-top: 38px;
}

.btn-outline-light {
  display: inline-block;
  padding: 11px 26px;
  background: var(--color-accent);
  color: #e4eaf2;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
}

.btn-outline-light:hover {
  background: var(--color-bg);
  color: var(--color-white);
}

/* ===== VITA SECTION ===== */
.vita-section {
  position: relative;
  background-color: #191a1d;
  background-image: url('../assets/img/textures/noise_transparent_02.webp');
  padding: 70px 0 180px;
  overflow: hidden;
}

.vita-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: start;
}

.vita-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  color: #7e848c;
  text-align: center;
  margin: 0 0 24px;
}

.vita-portrait {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 0;
  clip-path: polygon(20% 0%, 80% 0%, 90% 100%, 10% 90%);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='50'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='50'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center center;
  mask-position: center center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.vita-text p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.vita-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.btn-light-pill {
  display: inline-block;
  background: var(--color-bg);
  color: var(--color-primary);
  border: 0;
  border-radius: 3px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-light-pill:hover {
  background: #7297c894;
  color: var(--color-white);
}

/* ===== WORKS SECTION ===== */
.works-section {
  position: relative;
  background-color: #191a1d;
  background-image: url('../assets/img/textures/noise_very-scarce.webp');
  padding: 175px 0 90px;
  overflow: hidden;
}

.works-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  color: #7e848c;
  text-align: center;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 4;
  margin: 0 0 56px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}

.work-item h4 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 10px;
}

.work-item p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  font-size: 0.9rem;
  margin: 0 0 12px;
  line-height: 1.55;
}

/* ===== LIVING ARTIST'S SHOP (Tall banner clipped by dark angled dividers, zero grey gaps) ===== */
.shop-section {
  position: relative;
  padding: 155px 20px 165px;
  background: linear-gradient(135deg, #4b74aa 0%, #7297c8 55%, #5b86be 100%);
  overflow: hidden;
}

.shop-card {
  max-width: var(--container-max);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 42px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.shop-badge svg,
.shop-chip svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.shop-left h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0 0 12px;
}

.shop-left p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 0 20px;
}

.shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 0.86rem;
  color: var(--color-white);
}

.shop-right {
  text-align: center;
  flex-shrink: 0;
}

.btn-shop {
  display: inline-block;
  background: var(--color-white);
  color: #111827;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 15px 30px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.btn-shop:hover {
  background: #f1f5f9;
  color: #000000;
  transform: translateY(-2px);
}

.shop-url {
  margin: 10px 0 0;
  font-size: 0.85rem;
}

.shop-url a {
  color: rgba(255, 255, 255, 0.88);
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  position: relative;
  background-color: #191a1d;
  background-image: url('../assets/img/textures/noise_transparent_02.webp');
  padding: 70px 0 100px;
  overflow: hidden;
}

.projects-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  color: #7e848c;
  text-align: center;
  margin: 0 0 56px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 28px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 26px;
  background: rgba(20, 22, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.bento-4 {
  grid-column: span 4;
}

.bento-6 {
  grid-column: span 6;
}

.bento-8 {
  grid-column: span 8;
}

.bento-12 {
  grid-column: span 12;
}

.bento-row-2 {
  grid-row: span 2;
}

.project-card--blue {
  background: #181ac8d6;
  border-color: rgba(255, 255, 255, 0.2);
}

.project-card--blue p {
  color: #e2e8f0;
}

@keyframes iconGentlePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.07);
    opacity: 1;
  }
}

.project-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  color: #ffffff;
  animation: iconGentlePulse 3.2s ease-in-out infinite;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.25s ease, filter 0.25s ease;
}

.project-icon--sm {
  width: 38px;
  height: 38px;
  margin: 14px auto 8px;
}

.project-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.project-card:hover .project-icon,
.project-icon:hover {
  animation-play-state: paused;
  transform: scale(1.22);
  color: var(--color-bg);
  filter: drop-shadow(0 0 12px rgba(164, 175, 189, 0.65));
}

.quote-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  color: #ffffff;
  opacity: 0.9;
}

.quote-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.project-card h2,
.project-card h3 {
  font-family: var(--font-secondary);
  font-size: 1.35rem;
  font-weight: 400;
  color: #b6bdc6;
  margin: 0 0 10px;
  line-height: 1.25;
}

.project-card h2 a,
.project-card h3 a {
  color: #b6bdc6;
}

.project-card h2 a:hover,
.project-card h3 a:hover {
  color: var(--color-bg);
}

.project-card p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 14px;
}

.project-cover {
  display: block;
  margin-top: 14px;
  border-radius: 4px;
  overflow: hidden;
}

.project-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-cover:hover img {
  transform: scale(1.03);
}

.waveshifter-embed {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

/* ===== COMPOSITIONS & LIVE ON STAGE ===== */
.compositions-section {
  position: relative;
  background-color: var(--color-primary);
  background-image: url('../assets/img/textures/noise_light_scarce.webp');
  padding: 190px 0 110px;
  overflow: hidden;
}

.live-section {
  position: relative;
  background-color: var(--color-primary);
  background-image: url('../assets/img/textures/noise_transparent_02.webp');
  padding: 175px 0 110px;
  margin-top: 0;
  overflow: hidden;
}

.live-quote-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.media-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.video-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Lite Video Facade */
.lite-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
}

.lite-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lite-video:hover img {
  transform: scale(1.03);
  opacity: 0.85;
}

.lite-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lite-video:hover .lite-video__play {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.08);
}

.lite-video__play--vimeo:hover,
.lite-video:hover .lite-video__play--vimeo {
  background: #00adef;
}

.lite-video__play svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  margin-left: 3px;
}

.lite-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.quote-block {
  text-align: center;
  padding: 48px 28px 16px;
}

.quote-block blockquote {
  margin: 0 0 10px;
  font-family: var(--font-secondary);
  font-size: 1.55rem;
  color: #f8f8f8d6;
  line-height: 1.35;
}

.quote-block cite {
  font-style: normal;
  color: var(--color-text);
  font-size: 1rem;
}

.downloads-wrap {
  text-align: center;
  margin-top: 24px;
}

/* ===== MODERN FOOTER ===== */
.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  background: linear-gradient(180deg, #1b2029 0%, #11141b 100%);
  color: var(--color-light);
  border-top: 1px solid rgba(114, 151, 200, 0.28);
  padding: 4rem 24px 2rem;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  align-items: start;
}

.footer-col h2 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin: 0 0 14px;
}

.footer-col p {
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.75;
}

.footer-col .footer-sub {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-col a {
  color: var(--color-off-white);
}

.footer-col a:hover {
  color: var(--color-white);
}

.w4me-logo {
  max-width: 170px;
  margin-top: 8px;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.w4me-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-col .paypal-btn {
  border-radius: 999px;
  padding: 11px 24px;
  background: linear-gradient(135deg, #5d84b8 0%, #7297c8 100%);
  box-shadow: 0 6px 18px rgba(114, 151, 200, 0.25);
}

.footer-col .paypal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(114, 151, 200, 0.4);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-socials .social-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(114, 151, 200, 0.14);
  border: 1px solid rgba(114, 151, 200, 0.35);
  color: var(--color-off-white);
}

.footer-socials .social-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(114, 151, 200, 0.35);
}

.footer-bottom {
  max-width: 1180px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* ===== DIALOG POPUPS ===== */
dialog.site-modal {
  border: 1px solid rgba(114, 151, 200, 0.4);
  border-radius: 10px;
  background: #141820;
  color: #e5e7eb;
  max-width: 680px;
  width: calc(100% - 32px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

dialog.site-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: 0;
  color: #cbd5e1;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--color-white);
}

.modal-logo {
  width: 72px;
  margin: 0 auto 14px;
}

dialog.site-modal h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-white);
  text-align: center;
  margin: 0 0 18px;
}

dialog.site-modal p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #cbd5e1;
}

/* ===== STAGGER BLUR-REVEAL ANIMATION (Fluent Snippets v2.0) ===== */
:root {
  --reveal-distance: 30px;
  --reveal-duration: 700ms;
  --reveal-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --stagger: 150ms;
  --reveal-max-delay: 900ms;
}

.reveal-group > *:not(.reveal-show),
.reveal-item:not(.reveal-show) {
  opacity: 0;
  filter: blur(15px);
  transform: translateY(var(--reveal-distance));
  transition-delay: 0ms;
}

.reveal-group > *,
.reveal-item {
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    filter var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
  will-change: opacity, filter, transform;
}

.reveal-group > *.reveal-show,
.reveal-item.reveal-show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: min(calc(var(--i, 0) * var(--stagger)), var(--reveal-max-delay));
}

.works-grid .work-item:not(.reveal-show) {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(38px) scale(0.96);
  transition-delay: 0ms !important;
}

.works-grid .work-item {
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform;
}

.works-grid .work-item.reveal-show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
  transition-delay: var(--work-delay, 0ms);
}

.projects-grid .project-card {
  translate: 0 0;
  scale: 1;
  will-change: opacity, filter, transform, translate, scale;
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    filter var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    translate 520ms cubic-bezier(0.22, 1, 0.36, 1),
    scale 520ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 360ms ease,
    box-shadow 360ms ease;
}

.projects-grid .project-card.reveal-show {
  transition-delay:
    min(calc(var(--i, 0) * var(--stagger)), var(--reveal-max-delay)),
    min(calc(var(--i, 0) * var(--stagger)), var(--reveal-max-delay)),
    min(calc(var(--i, 0) * var(--stagger)), var(--reveal-max-delay)),
    0ms,
    0ms,
    0ms,
    0ms;
}

.projects-grid .project-card:hover {
  translate: var(--bento-dx, 5px) var(--bento-dy, -5px);
  scale: var(--bento-scale, 1.018);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.project-link-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition:
    color 300ms ease,
    background-color 300ms ease,
    border-color 300ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-link-badge svg {
  width: 15px;
  height: 15px;
  display: block;
}

.project-card--blue .project-link-badge {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.project-card:hover .project-link-badge,
.project-link-badge:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-group:not(.works-grid):not(.projects-grid) > *,
  .reveal-item {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-slide {
    transition: none;
  }
}

/* ===== ESRAJ SUBPAGE ===== */
.esraj-intro {
  position: relative;
  background-color: #191a1d;
  background-image: url('../assets/img/textures/noise_very-scarce.webp');
  padding: 72px 0 175px;
}

.esraj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.esraj-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  color: var(--color-white);
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 28px;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.esraj-media-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.esraj-photo-wrap {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}

.esraj-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.esraj-cta-wrap {
  display: flex;
  justify-content: center;
}

.esraj-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #191a1d;
  background-color: var(--color-accent);
  padding: 15px 34px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(114, 151, 200, 0.35);
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.esraj-cta-btn:hover {
  color: var(--color-white);
  background-color: #5d84b8;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 34px rgba(114, 151, 200, 0.5);
}

.esraj-video-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.esraj-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
}

.esraj-text-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.esraj-prose {
  background: rgba(16, 18, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 32px 34px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.esraj-prose p {
  color: #d8e0ea;
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 18px;
}

.esraj-prose p:last-child {
  margin-bottom: 0;
}

.esraj-citation {
  font-style: italic;
  color: var(--color-off-white) !important;
  font-size: 0.92rem !important;
  opacity: 0.9;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.esraj-accordion {
  background: rgba(16, 18, 23, 0.68);
  border: 1px solid rgba(164, 175, 189, 0.24);
  border-radius: 12px;
  overflow: hidden;
}

.esraj-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--color-bg);
  user-select: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.esraj-accordion summary::-webkit-details-marker {
  display: none;
}

.esraj-accordion summary:hover {
  color: var(--color-white);
  background: rgba(114, 151, 200, 0.1);
}

.esraj-accordion[open] summary {
  color: var(--color-accent);
  border-bottom: 1px solid rgba(164, 175, 189, 0.18);
}

.esraj-accordion-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  transition: transform 0.22s ease;
}

.esraj-accordion-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.esraj-accordion[open] .esraj-accordion-icon {
  transform: rotate(180deg);
}

.esraj-accordion-body {
  padding: 20px 24px 22px;
}

.esraj-accordion-body p {
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.72;
  margin: 0 0 14px;
}

.esraj-accordion-body p:last-child {
  margin-bottom: 0;
}

.esraj-home-wrap {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.esraj-home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.22s ease, color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.esraj-home-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.esraj-home-icon:hover {
  color: var(--color-accent);
  background: rgba(114, 151, 200, 0.14);
  border-color: rgba(114, 151, 200, 0.45);
  transform: scale(1.12);
}

/* 2. THE HANDBOOK */
.esraj-handbook {
  position: relative;
  background-color: #191a1d;
  background-image: url('../assets/img/textures/noise_scarce_dark.webp');
  padding: 175px 0 110px;
}

.handbook-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 52px;
  align-items: center;
}

.handbook-title-col .esraj-heading {
  margin-bottom: 0;
}

.handbook-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  background: rgba(20, 22, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.5);
}

.handbook-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  animation: iconGentlePulse 4.5s ease-in-out infinite;
  transition: transform 0.25s ease, color 0.25s ease, filter 0.25s ease;
}

.handbook-icon svg {
  width: 58px;
  height: 58px;
  fill: currentColor;
}

.handbook-icon:hover {
  color: var(--color-off-white);
  transform: scale(1.18);
  filter: drop-shadow(0 0 14px rgba(114, 151, 200, 0.65));
}

.handbook-desc {
  color: #e2e8f0;
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.68;
  margin: 0;
  max-width: 48ch;
}

.handbook-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #5d84b8 0%, #7297c8 100%);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(114, 151, 200, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.handbook-shop-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.handbook-shop-btn:hover {
  color: var(--color-white);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 34px rgba(114, 151, 200, 0.55);
}

/* ===== CINEMATIC SUBPAGE ===== */
.page-cinematic {
  background-color: #0b0d12;
}

.cine-section {
  position: relative;
  overflow: hidden;
  background-color: #0d1016;
  padding: 230px 24px 250px;
}

.cine-section--scifi {
  padding: 110px 24px 240px;
  z-index: 1;
}

.cine-section--electro {
  z-index: 2;
  margin-top: -120px;
  clip-path: polygon(0 96px, 68% 0, 100% 72px, 100% 100%, 0 100%);
}

.cine-section--light {
  z-index: 3;
  margin-top: -115px;
  clip-path: url(#cine-arch-up);
  -webkit-clip-path: url(#cine-arch-up);
}

.cine-section--dark {
  z-index: 4;
  margin-top: -115px;
  padding: 235px 24px 160px;
  clip-path: url(#cine-arch-down);
  -webkit-clip-path: url(#cine-arch-down);
}

/* Full-brightness background videos (override global .bg-video opacity: 0.42) */
.cine-section > .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
  filter: brightness(1.06) contrast(1.04);
}

/* Gentle melt at bottom of Dark Fantasy into the dark footer */
.cine-section--dark::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, #1b2029 100%);
}

.cine-container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
}

.cine-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  color: var(--color-white);
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 60px;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.85), 0 1px 6px rgba(0, 0, 0, 0.95);
}

.cine-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 40px;
  align-items: start;
}

.cine-item {
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.cine-item:hover,
.cine-item:focus-within {
  z-index: 30;
}

/* Subtle "i" hover indicator on cards that carry an infobox */
.cine-item:has(.cine-caption)::after {
  content: 'i';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
  background: rgba(12, 15, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 5;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.cine-item:has(.cine-caption):hover::after,
.cine-item:has(.cine-caption):focus-within::after {
  background: var(--color-accent);
  border-color: #ffffff;
  transform: scale(1.1);
}

.cine-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: 100%;
  max-width: calc(50% - 20px);
  justify-self: center;
}

.cine-item .lite-video {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.58);
}

.cine-audio-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(14, 16, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.52);
}

.cine-audio-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Floating Hover Infobox */
.cine-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  z-index: 30;
  background: rgba(10, 13, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(114, 151, 200, 0.42);
  border-left: 3px solid var(--color-accent);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.24s ease;
}

.cine-caption::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: rgba(10, 13, 20, 0.94);
  border-top: 1px solid rgba(114, 151, 200, 0.42);
  border-left: 1px solid rgba(114, 151, 200, 0.42);
  transform: rotate(45deg);
}

.cine-item:hover .cine-caption,
.cine-item:focus-within .cine-caption {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.cine-caption p {
  margin: 0;
  color: #f1f5f9;
  font-size: 0.96rem;
  line-height: 1.6;
}

@media (hover: none) {
  .cine-item:has(.cine-caption)::after {
    display: none;
  }
  .cine-caption {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 12px;
    pointer-events: auto;
  }
  .cine-caption::before {
    display: none;
  }
}

.cine-back-home {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .esraj-grid,
  .handbook-grid {
    gap: 36px;
  }
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-4,
  .bento-6,
  .bento-8,
  .bento-12,
  .bento-row-2 {
    grid-column: span 1;
    grid-row: span 1;
  }
  .bento-12 {
    grid-column: 1 / -1;
  }
  .slanted-panel {
    clip-path: none;
    padding: 32px 24px;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-accent);
    padding: 16px 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  }
  .main-nav.is-open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero {
    min-height: 60vh;
    margin-top: 0;
  }
  .out-now {
    margin-top: -42px;
    margin-bottom: -42px;
    padding: 72px 20px 76px;
    clip-path: polygon(0 36px, 72% 0, 100% 40px, 100% calc(100% - 40px), 28% 100%, 0 calc(100% - 32px));
  }
  .bio-grid,
  .vita-grid,
  .media-two-col,
  .footer-grid,
  .out-now-grid,
  .esraj-grid,
  .handbook-grid {
    grid-template-columns: 1fr;
  }
  .esraj-intro {
    padding: 44px 0 130px;
  }
  .esraj-handbook {
    padding: 130px 0 76px;
  }
  .esraj-prose,
  .handbook-card {
    padding: 24px 20px;
  }
  .cine-section {
    padding: 150px 16px 160px;
  }
  .cine-section--scifi {
    padding: 72px 16px 150px;
  }
  .cine-section--electro {
    margin-top: -70px;
    clip-path: polygon(0 54px, 68% 0, 100% 42px, 100% 100%, 0 100%);
  }
  .cine-section--light {
    margin-top: -70px;
    clip-path: url(#cine-arch-up);
    -webkit-clip-path: url(#cine-arch-up);
  }
  .cine-section--dark {
    margin-top: -70px;
    padding: 155px 16px 100px;
    clip-path: url(#cine-arch-down);
    -webkit-clip-path: url(#cine-arch-down);
  }
  .cine-heading {
    margin-bottom: 38px;
  }
  .cine-stack {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cine-item:last-child:nth-child(odd) {
    max-width: 100%;
  }
  .cine-audio-wrap {
    aspect-ratio: auto;
  }
  .cine-audio-wrap iframe {
    height: 190px;
  }
  .cine-caption {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 12px;
    padding: 14px 16px;
    pointer-events: auto;
  }
  .cine-caption::before,
  .cine-item:has(.cine-caption)::after {
    display: none;
  }
  .activities-glass {
    padding: 20px 16px;
  }
  .main-nav .sub-menu {
    position: static;
    display: flex;
    box-shadow: none;
    padding: 6px 0 4px 14px;
  }
  .activities-grid,
  .works-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .shop-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 22px;
  }
  .shop-chips {
    justify-content: center;
  }
  .get-in-touch-title {
    transform: none;
  }
  .works-heading {
    margin: 0 0 36px;
  }
  :root {
    --stagger: 200ms;
  }
}


/* ==========================================================================
   IMPRESSUM / LEGAL PAGE (.page-impressum)
   ========================================================================== */
body.page-impressum {
  background: #14171d;
  color: #e6ecf5;
}

.legal-section {
  padding: 72px 24px 88px;
  background: radial-gradient(ellipse 70% 45% at 20% 0%, rgba(114, 151, 200, 0.16), transparent 65%), #14171d;
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
}

.legal-title {
  font-family: "Rubik Mono One", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin: 0 0 34px;
}

.legal-card {
  background: rgba(25, 29, 38, 0.88);
  border: 1px solid rgba(164, 175, 189, 0.22);
  border-radius: 12px;
  padding: 28px 30px;
  margin-bottom: 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
}

.legal-card h2 {
  font-family: "Allerta Stencil", sans-serif;
  font-weight: 400;
  font-size: 1.35rem;
  color: #8cb4e8;
  margin: 0 0 14px;
  letter-spacing: 0.03em;
}

.legal-card p {
  margin: 0 0 14px;
  line-height: 1.72;
  color: #d7e0ec;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card .legal-lead {
  color: #ffffff;
  font-weight: 500;
}

.legal-card a {
  color: #8cb4e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card a:hover {
  color: #ffffff;
}

.legal-back {
  margin-top: 32px;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid rgba(140, 180, 232, 0.45);
  background: rgba(114, 151, 200, 0.14);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.legal-back-btn:hover {
  background: rgba(114, 151, 200, 0.28);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .legal-section { padding: 48px 16px 64px; }
  .legal-card { padding: 22px 18px; }
}
