.footer-contact .button {
  color: var(--color-text);
  border-color: var(--color-border-strong);
  background: var(--footer-button-bg, rgba(23, 24, 25, 0.6));
  transition:
    background var(--transition-medium),
    color var(--transition-medium),
    box-shadow var(--transition-medium),
    transform var(--transition-medium);
  position: relative;
}

.footer-contact .button::before {
  display: none;
}

.footer-contact .button:hover {
  color: var(--footer-button-hover-text, var(--color-text-inverse));
  background: var(--footer-button-hover, var(--color-accent));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}
.footer-contact .button::before {
  background: var(--color-accent);
}

.footer-contact .button:hover {
  color: var(--color-text-inverse);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  border-color: var(--color-accent);
}
.team-wrapper {
  display: grid;
  justify-items: center;
  gap: clamp(24px, 4vw, 48px);
}
.grid-field {
  position: relative;
  overflow: hidden;
}
.grid-field::before,
.grid-field::after,
.grid-layer::before,
.grid-layer::after {
  display: none;
}
.section-aside__value a {
  color: inherit;
  text-decoration: none;
}
.section-aside__value a:hover {
  color: var(--color-accent);
}
.grid-layer {
  position: relative;
}
.hero-reel {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
}
.hero-reel::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(157, 240, 192, 0.4) 50%, transparent 100%);
}
.hero-texture {
  position: absolute;
  inset: 0;
  background: url("./assets/textures/noise.webp") center/200px repeat;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: noiseShift 30s linear infinite;
}
.hero::before,
.hero::after,
.hero-texture,
#terminal-title::before,
#terminal-title::after {
  pointer-events: none;
}
@font-face {
  font-family: "FK Grotesk";
  src:
    url("./assets/fonts/FKGrotesk-Light.woff2") format("woff2"),
    url("./assets/fonts/FKGrotesk-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk";
  src:
    url("./assets/fonts/FKGrotesk-Regular.woff2") format("woff2"),
    url("./assets/fonts/FKGrotesk-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk";
  src:
    url("./assets/fonts/FKGrotesk-Medium.woff2") format("woff2"),
    url("./assets/fonts/FKGrotesk-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk";
  src:
    url("./assets/fonts/FKGrotesk-Bold.woff2") format("woff2"),
    url("./assets/fonts/FKGrotesk-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk";
  src:
    url("./assets/fonts/FKGrotesk-Black.woff2") format("woff2"),
    url("./assets/fonts/FKGrotesk-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FT System Mono";
  src:
    url("./assets/fonts/FTSystemMono-Regular.woff2") format("woff2"),
    url("./assets/fonts/FTSystemMono-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FT System Mono";
  src:
    url("./assets/fonts/FTSystemMono-Medium.woff2") format("woff2"),
    url("./assets/fonts/FTSystemMono-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FT System Mono";
  src:
    url("./assets/fonts/FTSystemMono-Bold.woff2") format("woff2"),
    url("./assets/fonts/FTSystemMono-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}
:root {
  --color-bg: #171819;
  --color-bg-elevated: #1f2021;
  --color-surface: #7f7f7f;
  --color-surface-inverse: #e1ffed;
  --color-surface-muted: #8c8c8c;
  --color-text: #e1ffed;
  --color-text-muted: rgba(225, 255, 237, 0.65);
  --color-text-inverse: #171819;
  --color-accent: #e1ffed;
  --color-accent-strong: #cdeedb;
  --color-border: rgba(225, 255, 237, 0.2);
  --color-border-strong: rgba(225, 255, 237, 0.35);
  --glow: rgba(225, 255, 237, 0.3);
  --header-bg: rgba(23, 24, 25, 0.18);
  --header-border: rgba(225, 255, 237, 0.2);
  --header-text: #e1ffed;
  --header-chip-bg: rgba(225, 255, 237, 0.12);
  --header-height: 72px;
  --hero-background: none;
  --shader-dark: 0.09 0.09 0.10;
  --shader-light: 0.88 1 0.93;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --transition-fast: 0.15s ease;
  --transition-medium: 0.25s ease;
  --transition-slow: 0.4s ease;
  --font-heading: "FT System Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --font-body: "FT System Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --font-mono: "FT System Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --max-width: 1120px;
  --bg: var(--color-bg);
  --bg-light: var(--color-surface-inverse);
  --bg-dark: var(--color-bg-elevated);
  --highlight: var(--color-accent);
  --brand-filter: none;
  --brand-image: url("./assets/logo-symbol-green.png");
  --brand-src: "./assets/logo-symbol-green.png";
  --hero-ascii-color: var(--color-surface);
  --wave-bg: #6c6c6c;
  --wave-fg: #171819;
  --section-spacing: clamp(60px, 10vh, 100px);
}

html[data-theme="legacy"] {
  --color-bg: #171819;
  --color-bg-elevated: #1f2021;
  --color-surface: #7f7f7f;
  --color-surface-inverse: #e1ffed;
  --color-surface-muted: #8c8c8c;
  --color-text: #e1ffed;
  --color-text-muted: rgba(225, 255, 237, 0.65);
  --color-text-inverse: #171819;
  --color-accent: #e1ffed;
  --color-accent-strong: #cdeedb;
  --color-border: rgba(225, 255, 237, 0.2);
  --color-border-strong: rgba(225, 255, 237, 0.35);
  --glow: rgba(225, 255, 237, 0.3);
  --header-bg: rgba(23, 24, 25, 0.45);
  --header-border: var(--header-border);
  --hero-background: none;
  --hero-ascii-color: #7f7f7f;
  --shader-dark: 0.09 0.09 0.10;
  --shader-light: 0.88 1 0.93;
  --bg: var(--color-bg);
  --bg-light: var(--color-surface-inverse);
  --bg-dark: var(--color-bg-elevated);
  --highlight: var(--color-accent);
  --brand-image: url("./assets/logo-symbol-green.png");
  --brand-src: "./assets/logo-symbol-green.png";
}

.footer-contact .button {
  color: var(--color-text);
  border-color: var(--color-border-strong);
  background: var(--footer-button-bg, rgba(23, 24, 25, 0.6));
}

.footer-contact .button:hover {
  color: var(--footer-button-hover-text, var(--color-text-inverse));
  background: var(--footer-button-hover, var(--color-accent));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}
html {
  background: var(--color-bg);
  touch-action: manipulation; /* Improve touch response speed */
}
/* Lenis smooth scroll support */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  width: 100%;
}

/* Global background for desktop and non-iOS */
#ascii-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none; /* Don't block scrolling */
  mix-blend-mode: normal; /* Changed from overlay to normal for better visibility on dark bg */
  opacity: 0.6; /* Increased base opacity */
}

/* Ensure content sits above the background */
.section, 
.site-footer, 
main > *:not(#ascii-bg) {
  position: relative;
  z-index: 1;
}

/* Remove opaque backgrounds from alternate sections to reveal ASCII */
.section.alt {
  background: transparent; /* Was var(--color-surface) */
}
/* Re-add contrast for alt section text if needed, or rely on dark bg */
/* For now, keeping it transparent as requested "background of site" */

body::before {
  /* Disable old background setup */
  display: none;
}

/* Remove the in-hero overlay (no longer used on desktop) */
.background-overlay {
  display: none;
}

/* iOS: disable fixed background and use in-hero overlay instead */
@supports (-webkit-overflow-scrolling: touch) {
  body::before {
    display: none;
  }

  .background-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: var(--hero-background) center/cover no-repeat;
    z-index: 0; /* stays under canvas (z:1) */
    pointer-events: none;
    transform: translateZ(0);
  }

  body {
    background: var(--color-bg);
    /* Removed transform to prevent breaking position: fixed of ascii-bg */
  }
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top);
  background: var(--status-bar-bg, transparent);
  z-index: 2;
  pointer-events: none;
}


/* Base animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseAura {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.8;
  }
}

@keyframes noiseShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-3%, 1.5%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes maskDrift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(3%, -3%, 0) rotate(1.5deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes asciiSweep {
  0% {
    background-position: center top;
    opacity: 0.06;
  }
  40% {
    opacity: 0.12;
  }
  50% {
    background-position: center center;
  }
  100% {
    background-position: center bottom;
    opacity: 0.06;
  }
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes horizontalGlitch {
  0% {
    opacity: 0.35;
    transform: translateX(0);
  }
  20% {
    opacity: 0.55;
    transform: translateX(8px);
  }
  24% {
    opacity: 0.1;
    transform: translateX(-6px);
  }
  35% {
    opacity: 0.4;
    transform: translateX(0);
  }
  50% {
    opacity: 0.6;
    transform: translateX(12px);
  }
  55% {
    opacity: 0.15;
    transform: translateX(-10px);
  }
  70% {
    opacity: 0.45;
    transform: translateX(0);
  }
  85% {
    opacity: 0.55;
    transform: translateX(6px);
  }
  100% {
    opacity: 0.35;
    transform: translateX(0);
  }
}

@keyframes asciiGlitch {
  0% {
    transform: translateY(0) scaleX(1);
    opacity: 0.08;
  }
  18% {
    transform: translateY(-4%) scaleX(1.02);
    opacity: 0.16;
  }
  20% {
    transform: translateY(3%) scaleX(0.98);
    opacity: 0.04;
  }
  34% {
    transform: translateY(-8%) scaleX(1.04);
    opacity: 0.18;
  }
  52% {
    transform: translateY(6%) scaleX(0.96);
    opacity: 0.06;
  }
  68% {
    transform: translateY(-2%) scaleX(1.01);
    opacity: 0.14;
  }
  82% {
    transform: translateY(4%) scaleX(0.99);
    opacity: 0.05;
  }
  100% {
    transform: translateY(0) scaleX(1);
    opacity: 0.08;
  }
}

@keyframes verticalSweep {
  0% {
    transform: translateY(-10%) scaleX(1);
    opacity: 0.12;
  }
  15% {
    transform: translateY(5%) scaleX(1.02);
    opacity: 0.2;
  }
  40% {
    transform: translateY(35%) scaleX(0.96);
    opacity: 0.08;
  }
  60% {
    transform: translateY(60%) scaleX(1.05);
    opacity: 0.18;
  }
  75% {
    transform: translateY(85%) scaleX(0.98);
    opacity: 0.06;
  }
  100% {
    transform: translateY(110%) scaleX(1);
    opacity: 0.12;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Scroll-triggered animations */
.animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.animate-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Special animation for photos */
.photo.animate-item {
  transform: translateY(50px) scale(0.95);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.photo.animate-item.animate-in {
  transform: translateY(0) scale(1);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-medium);
}

/* Loading states for images */
img[src] {
  animation: fadeInUp var(--transition-slow) ease-out;
}

img:not([src]) {
  background: #1a1a1a;
  animation: pulse 1.5s infinite;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 12;
  background: rgba(23, 24, 25, 0.45);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(12px);
  transition: var(--transition-medium);
  color: var(--header-text);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transform: translateZ(0);
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 32px);
  min-height: 68px;
  padding: 16px clamp(24px, 6vw, 72px);
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-block;
  filter: var(--brand-filter, none);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition-fast);
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-left: clamp(4px, 2vw, 32px);
}
.brand-text {
  display: none;
}
.brand:hover {
  transform: scale(1.05);
}
.brand-text {
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 6px 0;
  display: inline-block;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 5vw, 48px);
  align-items: center;
}
.site-nav a {
  color: #e1ffed;
  text-decoration: none;
  transition: var(--transition-fast);
  font-weight: 500;
  letter-spacing: 0.14em;
  position: relative;
  padding: 8px 0;
  text-transform: uppercase;
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: var(--transition-medium);
}
.site-nav a:hover,
.site-nav a:focus {
  color: var(--color-accent);
  transform: translateY(0);
}
.site-nav a:hover::after,
.site-nav a:focus::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 5vw, 40px);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border-strong);
  background: rgba(23, 24, 25, 0.85);
  color: var(--color-text);
  transition: var(--transition-fast);
  cursor: pointer;
  border-radius: var(--radius-xs);
}
.nav-toggle:hover {
  border-color: #fff;
  transform: scale(1.05);
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition-medium);
}
.nav-toggle span:first-child {
  top: 14px;
}
.nav-toggle span:last-child {
  bottom: 14px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
    position: absolute;
    right: clamp(16px, 6vw, 24px);
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
  }
  .header-inner { position: relative; }
  .site-nav {
    position: absolute;
    top: 64px;
    right: 16px;
    left: auto; /* align panel to the right */
    display: none;
    flex-direction: column;
    align-items: center; /* center items horizontally */
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--color-border);
    background: rgba(13, 17, 16, 0.94) !important;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-medium);
    backdrop-filter: blur(10px);
    text-align: center;
    width: max-content;
    max-width: min(92vw, 420px);
  }
  .site-nav.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  .site-nav a::after {
    display: none;
  }

}

/* Hero */
main {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  transform: translateZ(0);
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  z-index: 3;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 4;
}
.hero-texture {
  position: absolute;
  inset: 0;
  background: url("./assets/textures/noise.webp") center/280px repeat;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  z-index: 2;
}
.hero-canvas {
  display: none;
}
.hero-ascii {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: transparent; /* Changed to transparent for ASCII bg visibility */
  color: var(--wave-fg, #000000);
  /* Font styles removed/ignored for canvas, kept for fallback if needed */
  font-size: 12px;
  line-height: 1;
  white-space: pre;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  font-family: 'Courier New', 'Courier', monospace;
  opacity: 1;
  mix-blend-mode: normal;
  filter: none;
  box-sizing: border-box;
  text-align: left;
  letter-spacing: -0.04em;
  word-spacing: 0;
  text-shadow: 0 0 0.8px rgba(0, 0, 0, 0.45);
}

canvas.hero-ascii {
  display: block;
  object-fit: cover;
}
.hero-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 5;
  width: min(560px, 100%);
  padding: 0 24px;
  display: grid;
  gap: clamp(18px, 4vh, 28px);
  justify-items: center;
  background: transparent;
}
.hero-label {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.34em;
  font-size: 11px;
  color: rgba(157, 240, 192, 0.75);
}
.hero-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 6vw, 64px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text);
}
.hero-subheading {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(12px, 2vw, 16px);
  letter-spacing: 0.28em;
  color: rgba(157, 240, 192, 0.65);
}
.hero-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--color-text);
}
.hero-lineup {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: rgba(157, 240, 192, 0.82);
}
@media (max-width: 600px) {
  .hero {
    padding: 0;
  }
  .hero-inner {
    gap: 18px;
    width: min(480px, 100%);
  }
  .hero-meta,
  .hero-lineup {
    letter-spacing: 0.2em;
  }
}
@media (max-width: 420px) {
  .hero-meta,
  .hero-lineup {
    letter-spacing: 0.14em;
  }
}

/* Terminal-style title */
.hero-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 24px;
}

#terminal-title {
  font-family: var(--font-mono);
  font-size: clamp(48px, 9vw, 104px);
  line-height: 1.05;
  margin: 0 0 22px;
  letter-spacing: 0.1em;
  font-weight: 400;
  display: block;
  position: relative;
  text-align: center;
  min-height: 1.05em;
  max-width: min(720px, 92vw);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  text-transform: uppercase;
}
#terminal-title::before,
#terminal-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--color-accent);
  mix-blend-mode: lighten;
  opacity: 0;
  pointer-events: none;
}
#terminal-title::before {
  animation: glitchLeft 4s infinite;
}
#terminal-title::after {
  animation: glitchRight 4.8s infinite;
}

/* Mobile and tablet explicit font sizes */
@media (max-width: 768px) {
  #terminal-title {
    font-size: 80px !important; /* Force large mobile font */
    padding: 0 20px; /* Add padding to prevent overflow */
  }

  .hero {
    padding: 0 20px; /* Add container padding */
  }
}

@media (max-width: 480px) {
  #terminal-title {
    font-size: 60px !important; /* Still large for small phones */
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .hero {
    padding: 0 15px; /* Add container padding */
  }
}

@media (max-width: 320px) {
  #terminal-title {
    font-size: 50px !important; /* Minimum for very small screens */
    padding: 0 10px; /* Add padding to prevent overflow */
  }

  .hero {
    padding: 0 10px; /* Add container padding */
  }
}

#typed-text {
  color: var(--color-accent);
  font-weight: 500;
  white-space: pre-wrap;
  display: inline;
  text-align: center;
  text-shadow: 0 0 12px rgba(157, 240, 192, 0.3);
}

#cursor {
  color: var(--color-accent);
  animation: blink 1s infinite;
  font-weight: 300;
  display: inline;
}

/* Typing indicator - faster cursor blink while typing */
.typing #cursor {
  animation: fastBlink 0.4s infinite;
}

/* Paused state - slower, more prominent blink */
.paused #cursor {
  animation: slowBlink 1.5s infinite;
  opacity: 1;
}

@keyframes glitchLeft {
  0%,
  100% {
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  10% {
    clip-path: inset(10% 0 40% 0);
    transform: translate3d(-4px, -1px, 0);
    opacity: 0.2;
  }
  12% {
    clip-path: inset(60% 0 5% 0);
    transform: translate3d(3px, 2px, 0);
    opacity: 0.25;
  }
  14% {
    clip-path: inset(20% 0 30% 0);
    transform: translate3d(-2px, 1px, 0) skewX(-6deg);
    opacity: 0.25;
  }
  16% {
    clip-path: inset(75% 0 8% 0);
    transform: translate3d(4px, -2px, 0);
    opacity: 0.18;
  }
  18% {
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
}

@keyframes glitchRight {
  0%,
  100% {
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  8% {
    clip-path: inset(5% 0 70% 0);
    transform: translate3d(3px, 1px, 0) skewX(7deg);
    opacity: 0.22;
  }
  10% {
    clip-path: inset(55% 0 10% 0);
    transform: translate3d(-2px, -1px, 0);
    opacity: 0.18;
  }
  13% {
    clip-path: inset(25% 0 15% 0);
    transform: translate3d(2px, 1px, 0) skewY(4deg);
    opacity: 0.25;
  }
  15% {
    clip-path: inset(68% 0 5% 0);
    transform: translate3d(-4px, 0, 0);
    opacity: 0.2;
  }
  17% {
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@keyframes fastBlink {
  0%,
  60% {
    opacity: 1;
  }
  61%,
  100% {
    opacity: 0;
  }
}

@keyframes slowBlink {
  0%,
  70% {
    opacity: 1;
  }
  71%,
  100% {
    opacity: 0;
  }
}
.tagline {
  color: var(--color-text-muted);
  font-size: clamp(14px, 2vw, 18px);
  margin: 0 0 26px;
  letter-spacing: 0.18em;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp var(--transition-slow) ease-out 5s forwards;
}

/* Mobile adjustments for terminal */
@media (max-width: 768px) {
  #terminal-title {
    gap: 0.01em;
    letter-spacing: 0.04em;
    font-size: clamp(20px, 5vw, 32px); /* Even smaller for tablets */
    padding: 0 10px; /* Add padding to prevent edge clipping */
  }
}

@media (max-width: 480px) {
  #terminal-title {
    font-size: clamp(16px, 4.5vw, 24px); /* Much smaller for phones */
    letter-spacing: 0.02em;
    gap: 0;
    padding: 0 15px;
    line-height: 1.3;
  }

  .hero {
    padding: 0; /* Reduce hero padding on mobile */
  }
}

@media (max-width: 360px) {
  #terminal-title {
    font-size: clamp(14px, 4vw, 20px); /* Extra small for very small phones */
    padding: 0 20px;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--color-border-strong);
  background: rgba(23, 24, 25, 0.6);
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  letter-spacing: 0.16em;
}
.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transition: var(--transition-medium);
  z-index: -1;
}
.button:hover {
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(200, 226, 210, 0.35);
}
.button:hover::before {
  left: 0;
}

/* CTA Button - animation handled by JS */

/* Sections */
.section {
  padding: var(--section-spacing) 0;
  background: transparent;
}
.section.alt.with-aside {
  padding-top: var(--section-spacing);
}
.section.alt {
  position: relative;
  background: rgba(127, 127, 127, 0.25);
  backdrop-filter: blur(3px);
  color: var(--color-text);
  padding-inline: clamp(32px, 8vw, 160px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Old location styles removed - using new locations-layout */
.section[id="locations"] {
  padding: var(--section-spacing) 0;
}
.section.alt.with-aside {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 120px);
  align-items: start;
}
.section.alt.with-aside > .container.prose {
  max-width: 640px;
  padding-left: 0;
  padding-right: clamp(20px, 6vw, 80px);
  margin-left: auto;
  margin-right: clamp(24px, 6vw, 120px);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  contain: layout style;
  isolation: isolate;
}
.section.alt.with-aside > .container.prose * {
  transform: translate3d(0, 0, 0);
}
.section.alt.with-aside > .container.prose h2,
.section.alt.with-aside > .container.prose p {
  text-align: left;
}
.section.alt:not(.with-aside) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  text-align: center;
}
.section.alt h2 {
  color: var(--color-text);
}
.section.alt p {
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}
.section.alt .button {
  color: var(--color-text);
}
.section.alt .button::before {
  background: var(--color-accent);
}
.section.alt .button:hover {
  color: var(--color-text-inverse);
  box-shadow: 0 4px 12px rgba(13, 17, 16, 0.3);
}
.section.alt > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}
.section.alt.with-aside > .container.prose {
  max-width: 640px;
  padding-right: clamp(20px, 6vw, 80px);
  margin-left: auto;
  margin-right: clamp(24px, 6vw, 120px);
}
.section.alt:not(.with-aside) > .container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}
.section.alt:not(.with-aside) > .container h2,
.section.alt:not(.with-aside) > .container p {
  margin-inline: auto;
}
.team-wrapper {
  display: grid;
  justify-items: center;
  gap: clamp(24px, 4vw, 48px);
  width: min(100%, var(--max-width));
  margin: 0 auto;
}
.team-wrapper h2 {
  justify-self: center;
}
.section.alt > .section-aside {
  position: relative;
  z-index: 1;
}
.prose {
  max-width: 920px;
}
.prose p {
  line-height: 1.6;
}

.project-intro {
  font-size: clamp(16px, 2.8vw, 20px);
  line-height: 1.8;
  letter-spacing: 0.06em;
}
.prose h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.section h2 {
  font-size: 22px;
  margin: 0 0 18px;
  letter-spacing: 0.24em;
  font-weight: 600;
}
.section[id="locations"] h2 {
  margin-top: 0;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.section p {
  margin: 0 0 18px;
  color: var(--color-text-muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: inherit;
}

/* Normalize spacing: remove margins from first/last elements to ensure symmetric section padding */
.section .container > :first-child,
.section .prose > :first-child,
.section .info-content > :first-child,
.section .details-container > :first-child,
.section .tickets-container > :first-child {
  margin-top: 0;
}

.section .container > :last-child,
.section .prose > :last-child,
.section .info-content > :last-child,
.section .details-container > :last-child,
.section .tickets-container > :last-child {
  margin-bottom: 0;
}

/* Ensure h2 spacing is consistent - remove bottom margin when in flex containers with gap */
.section .info-content > h2 {
  margin-bottom: 0;
}
.list {
  margin: 0 0 18px;
  padding-left: 18px;
}
.list li {
  margin: 8px 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #d4ede0;
}
.section-aside {
  display: grid;
  gap: 18px;
  align-content: start;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.section-aside__block {
  display: grid;
  gap: 6px;
}
.section-aside__label {
  font-size: 11px;
  opacity: 0.65;
}
.section-aside__value {
  font-size: clamp(12px, 1.4vw, 14px);
  color: var(--color-text);
  letter-spacing: 0.22em;
}
.section-aside__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* LOCATIONS SECTION - Asymmetric Overlapping Layout */
.locations-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.locations-container > h2 {
  margin-top: 0;
  margin-bottom: clamp(40px, 6vw, 64px);
  text-align: left;
  font-size: clamp(48px, 8vw, 96px); /* Significantly bigger font */
  line-height: 0.9;
  letter-spacing: -0.02em;
}

/* Radio Message Travel - Left to Right */
@-webkit-keyframes messageLR {
  0% {
    -webkit-transform: translateX(150px);
    transform: translateX(150px);
    opacity: 0;
  }
  5% {
    -webkit-transform: translateX(190px);
    transform: translateX(190px);
    opacity: 0.9;
  }
  95% {
    -webkit-transform: translateX(calc(100vw - 230px - var(--text-width, 450px)));
    transform: translateX(calc(100vw - 230px - var(--text-width, 450px)));
    opacity: 0.9;
  }
  100% {
    -webkit-transform: translateX(calc(100vw - 190px - var(--text-width, 450px)));
    transform: translateX(calc(100vw - 190px - var(--text-width, 450px)));
    opacity: 0;
  }
}

@keyframes messageLR {
  0% {
    -webkit-transform: translateX(150px);
    transform: translateX(150px);
    opacity: 0;
  }
  5% {
    -webkit-transform: translateX(190px);
    transform: translateX(190px);
    opacity: 0.9;
  }
  95% {
    -webkit-transform: translateX(calc(100vw - 230px - var(--text-width, 450px)));
    transform: translateX(calc(100vw - 230px - var(--text-width, 450px)));
    opacity: 0.9;
  }
  100% {
    -webkit-transform: translateX(calc(100vw - 190px - var(--text-width, 450px)));
    transform: translateX(calc(100vw - 190px - var(--text-width, 450px)));
    opacity: 0;
  }
}

/* Radio Message Travel - Right to Left */
@-webkit-keyframes messageRL {
  0% {
    -webkit-transform: translateX(calc(100vw - 190px - var(--text-width, 450px)));
    transform: translateX(calc(100vw - 190px - var(--text-width, 450px)));
    opacity: 0;
  }
  5% {
    -webkit-transform: translateX(calc(100vw - 230px - var(--text-width, 450px)));
    transform: translateX(calc(100vw - 230px - var(--text-width, 450px)));
    opacity: 0.9;
  }
  95% {
    -webkit-transform: translateX(190px);
    transform: translateX(190px);
    opacity: 0.9;
  }
  100% {
    -webkit-transform: translateX(150px);
    transform: translateX(150px);
    opacity: 0;
  }
}

@keyframes messageRL {
  0% {
    -webkit-transform: translateX(calc(100vw - 190px - var(--text-width, 450px)));
    transform: translateX(calc(100vw - 190px - var(--text-width, 450px)));
    opacity: 0;
  }
  5% {
    -webkit-transform: translateX(calc(100vw - 230px - var(--text-width, 450px)));
    transform: translateX(calc(100vw - 230px - var(--text-width, 450px)));
    opacity: 0.9;
  }
  95% {
    -webkit-transform: translateX(190px);
    transform: translateX(190px);
    opacity: 0.9;
  }
  100% {
    -webkit-transform: translateX(150px);
    transform: translateX(150px);
    opacity: 0;
  }
}

.radio-images {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(48px, 8vw, 80px);
  margin-bottom: clamp(48px, 8vw, 80px);
  padding: 0;
  overflow: visible;
  pointer-events: none;
  height: 0;
}

.radio-images:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.radio-left,
.radio-right {
  position: absolute;
  width: clamp(50px, 6vw, 80px);
  height: auto;
  opacity: 1;
  filter: grayscale(0%) brightness(1.4) contrast(1.2);
  transition: opacity var(--transition-medium), filter var(--transition-medium);
  pointer-events: auto;
  animation: radioGlow 3s ease-in-out infinite;
}

.radio-left {
  left: 120px;
}

.radio-right {
  right: 120px;
  animation-delay: 1.5s;
}

/* ASCII scanline effect overlay */
.radio-left::after,
.radio-right::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    transparent 1px,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 3px
  );
  pointer-events: none;
  opacity: 0.6;
  animation: scanlineMove 4s linear infinite;
}

@-webkit-keyframes scanlineMove {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(3px);
    transform: translateY(3px);
  }
}

@keyframes scanlineMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(3px);
  }
}

.radio-left:hover,
.radio-right:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(1.6) contrast(1.3);
}

/* Radio glow animation */
@-webkit-keyframes radioGlow {
  0%, 100% {
    -webkit-filter: grayscale(0%) brightness(1.4) contrast(1.2) drop-shadow(0 0 3px rgba(157, 240, 192, 0.3));
    filter: grayscale(0%) brightness(1.4) contrast(1.2) drop-shadow(0 0 3px rgba(157, 240, 192, 0.3));
  }
  50% {
    -webkit-filter: grayscale(0%) brightness(1.5) contrast(1.25) drop-shadow(0 0 8px rgba(157, 240, 192, 0.6));
    filter: grayscale(0%) brightness(1.5) contrast(1.25) drop-shadow(0 0 8px rgba(157, 240, 192, 0.6));
  }
}

@keyframes radioGlow {
  0%, 100% {
    -webkit-filter: grayscale(0%) brightness(1.4) contrast(1.2) drop-shadow(0 0 3px rgba(157, 240, 192, 0.3));
    filter: grayscale(0%) brightness(1.4) contrast(1.2) drop-shadow(0 0 3px rgba(157, 240, 192, 0.3));
  }
  50% {
    -webkit-filter: grayscale(0%) brightness(1.5) contrast(1.25) drop-shadow(0 0 8px rgba(157, 240, 192, 0.6));
    filter: grayscale(0%) brightness(1.5) contrast(1.25) drop-shadow(0 0 8px rgba(157, 240, 192, 0.6));
  }
}

.radio-waves-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  height: 80px;
  gap: 8px;
  pointer-events: none;
}

.radio-message {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.6vw, 15px);
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.08em;
  position: absolute;
  left: 0;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  line-height: 1;
  text-transform: lowercase;
  font-weight: 500;
  opacity: 0;
}

/* Message slots - animations and positioning handled dynamically by JavaScript */

/* LOCATIONS SECTION - Absolute Positioning Layout */
.locations-layout {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Increased max-width */
  margin: 0 auto;
  min-height: 600px;
}

/* Keyframe animations with vendor prefixes for cross-browser compatibility */
@-webkit-keyframes slideInFromLeft {
  from {
    opacity: 0;
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@-webkit-keyframes slideInFromRight {
  from {
    opacity: 0;
    -webkit-transform: translateX(100px);
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    -webkit-transform: translateX(100px);
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

.location-image-wrapper {
  width: 85%;
  position: relative;
  z-index: 5;
  opacity: 0;
  -webkit-transform: translateX(-100px);
  transform: translateX(-100px);
  will-change: opacity, transform;
}

.location-map-wrapper {
  position: absolute;
  right: 0;
  bottom: 80px;
  width: 40%;
  z-index: 6;
  margin-top: 0;
  opacity: 0;
  -webkit-transform: translateX(100px);
  transform: translateX(100px);
  will-change: opacity, transform;
}

/* Animated state - trigger animations */
.location-image-wrapper.visible {
  -webkit-animation: slideInFromLeft 0.8s ease-out forwards;
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.location-map-wrapper.visible {
  -webkit-animation: slideInFromRight 0.8s ease-out 0.3s forwards;
  animation: slideInFromRight 0.8s ease-out 0.3s forwards;
}

/* Accessibility - respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .location-image-wrapper,
  .location-map-wrapper {
    opacity: 1 !important;
    -webkit-transform: translateX(0) !important;
    transform: translateX(0) !important;
  }
  
  .location-image-wrapper.visible,
  .location-map-wrapper.visible {
    -webkit-animation: none !important;
    animation: none !important;
  }
}


/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .location-image-wrapper,
  .location-map-wrapper {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
  }
}


.location-image-frame {
  aspect-ratio: 4 / 3;
  width: 100%;
  min-height: auto;
  margin: 0;
  position: relative;
  overflow: hidden;
  display: block;
}

.location-map-frame {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  margin: 0;
  position: relative;
  overflow: hidden;
  display: block;
}

.location-image-frame:hover,
.location-map-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.location-image-frame img,
.location-map-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: filter var(--transition-medium);
}

.location-image-frame:hover img,
.location-map-frame:hover img {
  filter: grayscale(0%) contrast(1.1);
}

.map-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.map-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Location info - Positioned absolutely below the image wrapper */
.location-info {
  position: absolute;
  left: 0;
  bottom: -60px;
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}

.location-name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}

.location-address {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.6vw, 14px);
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* Add subtle texture overlay */
.location-image-frame::before,
.location-map-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/textures/noise.webp") center/200px repeat;
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .locations-container > h2 {
    text-align: center;
  }
  
  .radio-images {
    margin-top: clamp(32px, 6vw, 48px);
  }
  
  .radio-left {
    left: 20px;
    width: clamp(40px, 8vw, 60px);
  }
  
  .radio-right {
    right: 20px;
    width: clamp(40px, 8vw, 60px);
  }
  
  .radio-waves-container {
    height: 60px;
  }
  
  .radio-message {
    font-size: clamp(9px, 2vw, 13px);
  }
  
  /* Mobile-specific text animation endpoints */
  /* Radio centers on mobile: left at ~60px, right at ~100vw - 60px */
  @-webkit-keyframes messageLR {
    0% {
      -webkit-transform: translateX(30px);
      transform: translateX(30px);
      opacity: 0;
    }
    5% {
      -webkit-transform: translateX(60px);
      transform: translateX(60px);
      opacity: 0.9;
    }
    95% {
      -webkit-transform: translateX(calc(100vw - 100px - var(--text-width, 300px)));
      transform: translateX(calc(100vw - 100px - var(--text-width, 300px)));
      opacity: 0.9;
    }
    100% {
      -webkit-transform: translateX(calc(100vw - 60px - var(--text-width, 300px)));
      transform: translateX(calc(100vw - 60px - var(--text-width, 300px)));
      opacity: 0;
    }
  }
  
  @keyframes messageLR {
    0% {
      -webkit-transform: translateX(30px);
      transform: translateX(30px);
      opacity: 0;
    }
    5% {
      -webkit-transform: translateX(60px);
      transform: translateX(60px);
      opacity: 0.9;
    }
    95% {
      -webkit-transform: translateX(calc(100vw - 100px - var(--text-width, 300px)));
      transform: translateX(calc(100vw - 100px - var(--text-width, 300px)));
      opacity: 0.9;
    }
    100% {
      -webkit-transform: translateX(calc(100vw - 60px - var(--text-width, 300px)));
      transform: translateX(calc(100vw - 60px - var(--text-width, 300px)));
      opacity: 0;
    }
  }
  
  @-webkit-keyframes messageRL {
    0% {
      -webkit-transform: translateX(calc(100vw - 60px - var(--text-width, 300px)));
      transform: translateX(calc(100vw - 60px - var(--text-width, 300px)));
      opacity: 0;
    }
    5% {
      -webkit-transform: translateX(calc(100vw - 100px - var(--text-width, 300px)));
      transform: translateX(calc(100vw - 100px - var(--text-width, 300px)));
      opacity: 0.9;
    }
    95% {
      -webkit-transform: translateX(60px);
      transform: translateX(60px);
      opacity: 0.9;
    }
    100% {
      -webkit-transform: translateX(30px);
      transform: translateX(30px);
      opacity: 0;
    }
  }
  
  @keyframes messageRL {
    0% {
      -webkit-transform: translateX(calc(100vw - 60px - var(--text-width, 300px)));
      transform: translateX(calc(100vw - 60px - var(--text-width, 300px)));
      opacity: 0;
    }
    5% {
      -webkit-transform: translateX(calc(100vw - 100px - var(--text-width, 300px)));
      transform: translateX(calc(100vw - 100px - var(--text-width, 300px)));
      opacity: 0.9;
    }
    95% {
      -webkit-transform: translateX(60px);
      transform: translateX(60px);
      opacity: 0.9;
    }
    100% {
      -webkit-transform: translateX(30px);
      transform: translateX(30px);
      opacity: 0;
    }
  }
  
  .locations-layout {
    display: flex;
    flex-direction: column;
    min-height: auto;
    gap: 24px;
  }
  
  .location-image-wrapper {
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
    will-change: auto;
  }
  
  .location-map-wrapper {
    position: relative;
    width: 100%;
    right: auto;
    bottom: auto;
    margin-top: 0;
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
    transition: none;
    will-change: auto;
  }
  
  .location-info {
    position: relative;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
    text-align: left;
  }
  
  .location-image-frame,
  .location-map-frame {
    aspect-ratio: 16 / 9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}
.photo {
  display: block;
  transition: var(--transition-medium);
  margin: 0;
  border: none;
}
.photo:hover {
  transform: translateY(-4px);
}
.photo a {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  overflow: hidden;
  background: transparent;
  transition: var(--transition-medium);
  position: relative;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.photo a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(157, 240, 192, 0.18);
  opacity: 0;
  transition: var(--transition-medium);
}
.photo:hover a {
  box-shadow: none;
}
.photo:hover a::after {
  opacity: 1;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.1);
  transition: transform var(--transition-medium), filter var(--transition-medium);
  border-radius: 0;
  border: none;
  transform: scale(1.015);
  transform-origin: center;
}
.photo:hover img {
  filter: grayscale(0%) hue-rotate(110deg) saturate(145%) contrast(1.05);
  transform: scale(1.07);
}
.photo figcaption {
  position: absolute;
  inset: auto 12px 12px 12px;
  margin: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  border: 0;
  transition: var(--transition-fast);
  letter-spacing: 0.18em;
  pointer-events: none;
  text-align: left;
}
.photo:hover figcaption {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.photo.group .pile {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
}
.photo.group .pile img {
  width: 36px;
  height: 36px;
  border: 1px solid #2a2a2a;
  object-fit: cover;
  filter: grayscale(100%);
  background: #000;
}

/* Floating Ticket Button */
.floating-ticket-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  padding: 14px 24px;
  background: var(--color-accent);
  color: var(--color-bg);
  border: 1px solid var(--color-accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-ticket-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-ticket-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(157, 240, 192, 0.3);
}

@media (max-width: 768px) {
  .floating-ticket-btn {
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    font-size: 12px;
  }
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
  overflow: auto;
  backdrop-filter: blur(10px);
  animation: fadeInUp var(--transition-medium) ease-out;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  width: 96vw;
  height: auto;
  max-height: 80vh;
  border: 1px solid #333;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  animation: fadeInUp var(--transition-slow) ease-out;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid #444;
  background: var(--bg);
  color: #fff;
  font-size: 22px;
  transition: var(--transition-fast);
  cursor: pointer;
}
.lightbox-close:hover {
  border-color: #fff;
  background: #fff;
  color: #1a1a1a;
  transform: scale(1.1);
}
.lightbox-caption {
  margin-top: 8px;
  text-align: center;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px;
  animation: fadeInUp var(--transition-slow) ease-out 0.1s both;
}

.team-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  justify-items: center;
}
.team-grid .member {
  width: 100%;
  max-width: 360px;
}
@media (max-width: 860px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
/* Team member animations handled by JS */
.member {
  border: 1px solid var(--color-border);
  padding: 20px 18px;
  display: block;
  background: rgba(40, 45, 44, 0.55);
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.member::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: var(--transition-medium);
}
.member:hover {
  border-color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.member:hover::before {
  opacity: 1;
}
.member h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.22em;
}
.member h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #333;
  transition: var(--transition-fast);
}
.member h3 a:hover {
  border-bottom-color: #fff;
}
.section.alt .member {
  background: rgba(60, 65, 64, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
}
.section.alt .member:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.section.alt .member h3 a {
  border-bottom-color: var(--color-accent);
}
.section.alt .member h3 a:hover {
  border-bottom-color: var(--color-accent);
}
.member h3 a {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.member h3 a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
.member p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.avatar {
  display: none;
}
/* Avatar styles removed - no longer displaying pictures */

/* Footer */
.site-footer {
  padding: var(--section-spacing) 0;
  background: var(--bg);
}

.footer-inner {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  justify-items: center;
  text-align: center;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 3vw, 20px);
}

.footer-contact h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.24em;
  font-weight: 600;
  color: var(--color-text);
}

.footer-email {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition-fast);
}

.footer-email:hover {
  color: var(--color-accent);
}

.footer-contact .button {
  margin-top: 0;
  letter-spacing: -0.02em !important;
  gap: 0 !important;
}

.footer-inner a {
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-inner a:hover {
  color: var(--color-accent);
  transform: translateY(-1px);
}

/* Enhanced focus styles */
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --transition-fast: 0.1s ease;
    --transition-medium: 0.15s ease;
    --transition-slow: 0.2s ease;
  }
}

@media (max-width: 860px) {
  .section.alt.with-aside {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section.alt.with-aside > .container.prose {
    padding-right: 0;
    margin: 0;
    max-width: 100%;
  }
}

html[data-theme="legacy"] {
  --header-text: #e1ffed;
  --header-chip-bg: rgba(225, 255, 237, 0.12);
  --header-bg: rgba(23, 24, 25, 0.28);
}
/* ASCII Identity Section */
.ascii-section {
  background: var(--color-bg);
  padding: clamp(80px, 14vw, 140px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ascii-section h2 {
  color: var(--color-text);
  margin-bottom: clamp(32px, 6vw, 64px);
}

.ascii-frame {
  position: relative;
  width: 100%;
  max-width: min(100%, 1200px);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ascii-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/textures/noise.webp") center/200px repeat;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.ascii-output {
  font-family: var(--font-mono);
  font-size: clamp(6px, 1.2vw, 11px);
  line-height: 1.2;
  color: var(--color-accent);
  text-align: center;
  margin: 0;
  padding: 0;
  white-space: pre;
  overflow-x: auto;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 8px var(--glow);
  letter-spacing: 0.05em;
}

/* Theme-specific ASCII styles */
html[data-theme="legacy"] .ascii-output {
  color: #9df0c0;
  text-shadow: 0 0 12px rgba(157, 240, 192, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ascii-output {
    font-size: 8px;
    letter-spacing: 0.02em;
  }
  
  .ascii-frame {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .ascii-output {
    font-size: 6px;
    line-height: 1.1;
  }
}

/* =========================================
   NEW SECTIONS (Update: Nov 2024)
   ========================================= */

/* BIG DATE SECTION */
#date.section {
  padding: 0;
}

.big-date-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.big-date-container {
  width: 100%;
  min-height: auto;
  padding: clamp(10px, 2vh, 30px) 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Increased specificity */
#date .big-date-text {
  margin: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding-inline: 0;
  font-family: "FK Grotesk", sans-serif;
  font-weight: 900;
  font-size: 24vw;
  line-height: 0.8;
  color: var(--color-text);
  text-align: center;
  letter-spacing: -0.05em;
  text-transform: none;
  white-space: nowrap;
  user-select: none;
  display: block;
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  padding-top: 0.05em;
}

#date .big-date-text:hover {
  transform: scale(1.015);
  color: var(--color-accent);
  cursor: default;
}

@media (max-width: 768px) {
  #date .big-date-text {
    font-size: clamp(72px, 28vw, 200px);
    letter-spacing: -0.03em;
  }
}

/* INFO SECTION */
#info.section {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--section-spacing) 24px;
  box-sizing: border-box;
  overflow: visible;
}

#info .section-aside {
  display: none;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 48px);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.info-content > h2:first-child {
  margin-top: 0;
  margin-bottom: 0;
}

.info-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
  margin-top: 0;
}

.info-item {
  display: grid;
  grid-template-columns: minmax(96px, 140px) 1fr minmax(110px, 160px);
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 20px);
  gap: 24px;
}

.info-item:last-child {
  border-bottom: none;
}

.info-time {
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 0.85em;
  text-transform: uppercase;
  white-space: nowrap;
}

.info-artist {
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  min-width: 0;
}

.info-type {
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 0.85em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}

/* Back-compat (older markup): treat .info-label/.info-value sensibly */
.info-label { color: var(--color-text-muted); text-transform: uppercase; }
.info-value { color: var(--color-text); font-weight: 700; text-transform: uppercase; }

@media (max-width: 640px) {
  .info-item {
    grid-template-columns: minmax(84px, 120px) 1fr;
    grid-template-areas:
      "time type"
      "artist artist";
    gap: 10px 16px;
    align-items: start;
  }
  .info-time { grid-area: time; }
  .info-type { grid-area: type; text-align: right; }
  .info-artist { grid-area: artist; }
}

/* DETAILS SECTION */
#details.section {
  padding: var(--section-spacing) 24px clamp(30px, 5vh, 50px) 24px;
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.details-container {
  width: 100%;
  padding: 0;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--color-border);
  padding-top: clamp(32px, 5vw, 48px);
  margin-top: 0;
}

.collaborators-section {
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: clamp(24px, 4vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  text-align: center;
  margin-bottom: 0;
}

.detail-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.detail-title {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 600;
}

.detail-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* TICKETS SECTION */
#tickets.section {
  padding: clamp(30px, 5vh, 50px) 0 var(--section-spacing) 0;
}

.tickets-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* padding removed to avoid double padding with .section */
}

.tickets-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 600px;
}

.tickets-text {
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ticket-button {
  font-size: clamp(16px, 2vw, 20px);
  padding: 18px 40px;
  background: var(--color-accent);
  color: var(--color-bg);
  border: 1px solid var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.05em !important;
  gap: 0 !important;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  box-shadow: 0 0 20px rgba(157, 240, 192, 0.2);
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ticket-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 40px rgba(157, 240, 192, 0.5);
  /* Removed color inversion to fix visibility issue */
}

.ticket-button span {
  color: inherit !important;
}

.ticket-button:hover span {
  color: inherit !important;
}

.tickets-content h2 {
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* REC Icon Style */
.rec-icon {
  color: #ff3333;
  display: inline-block;
  margin-left: 10px;
  margin-right: 0;
  font-size: 0.8em;
  vertical-align: middle;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Generic Hover Effect (Movement only) */
.hover-effect {
  display: block;
  transition: transform var(--transition-medium);
  /* Ensure rounded corners are respected if present */
  overflow: hidden; 
}
.hover-effect:hover {
  transform: translateY(-4px);
}
.hover-effect img {
  transition: transform var(--transition-medium);
}
.hover-effect:hover img {
  transform: scale(1.07);
}

