@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --text-muted: #666666;
  --accent-color: #ff3e3e; /* Caution Red */
  --accent-green: #00ff66; /* Active Green */
  --border-color: rgba(255, 255, 255, 0.15);
  --font-neo: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-neo);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Inverted Selection (Virgil Style) */
::selection {
  background-color: var(--text-color);
  color: var(--bg-color);
}

/* --- Smooth Grain Overlay --- */
.grain-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.055;
  pointer-events: none;
  z-index: 9999;
  animation: grain-motion 8s steps(10) infinite;
}

@keyframes grain-motion {
  0%, 100% { transform:translate(0, 0); }
  10% { transform:translate(-5%, -10%); }
  20% { transform:translate(-15%, 5%); }
  30% { transform:translate(-7%, -25%); }
  40% { transform:translate(21%, 25%); }
  50% { transform:translate(-25%, 10%); }
  60% { transform:translate(15%, 0%); }
  70% { transform:translate(0%, 15%); }
  80% { transform:translate(3%, 35%); }
  90% { transform:translate(-10%, 10%); }
}

/* --- True Full-Bleed Structure --- */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  padding: 0; /* Absolute edges */
  margin: 0;
  justify-content: space-between; /* Spans Header, Video, and Footer beautifully */
}

/* --- Full-Bleed Video Hero Section (ON TOP) --- */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Professional widescreen ratio */
  background-color: #000000;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  filter: contrast(1.1) brightness(0.95) saturate(1.05);
  cursor: pointer;
  transition: filter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-bg:hover {
  filter: contrast(1.15) brightness(1) saturate(1.1);
}

/* Camera Hud Overlay - Aligned to 2vw */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.5rem 2vw; /* Consistent horizontal padding boundary */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
  z-index: 10;
}

.overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.rec-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  animation: blink 1.2s infinite;
}

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

.overlay-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.tech-specs-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tech-timecode {
  font-size: 16px;
  letter-spacing: 0.05em;
  font-weight: bold;
}

.overlay-scanlines {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.06),
    rgba(0, 255, 0, 0.02),
    rgba(0, 0, 255, 0.06)
  );
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  z-index: 5;
  opacity: 0.35;
}

/* --- Industrial Centered Audio Interaction Prompt --- */
.audio-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: clamp(9px, 1.2vw, 15px);
  color: var(--accent-color); /* Cautionary Red */
  background-color: rgba(0, 0, 0, 0.88);
  border: 1px solid var(--accent-color);
  padding: 12px 24px;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 20px rgba(255, 62, 62, 0.3);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.audio-prompt-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  animation: blink 1.2s infinite;
}

/* Fade out when sound activates */
.audio-prompt.fade-out {
  opacity: 0;
  transform: translate(-50%, -60%);
  pointer-events: none;
}

/* --- Header Section (BACK ON TOP) --- */
.header-container {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  padding: 3.5rem 0 2.5rem 0; /* 0px horizontal padding to touch absolute edges */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}



.logo-main {
  font-family: var(--font-neo);
  font-weight: 900;
  /* Ultra-massive calibrated size to occupy absolute edge-to-edge 100% width with heavy compression */
  font-size: clamp(2rem, 18vw, 32rem); 
  text-transform: uppercase;
  letter-spacing: -0.06em; /* Highly dense, raw industrial typography */
  line-height: 0.8;
  color: var(--text-color);
  width: 100%;
  text-align: center;
  user-select: none;
  display: block;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.logo-main:hover {
  animation: logo-glitch 0.25s infinite;
}

@keyframes logo-glitch {
  0% { text-shadow: 2px -1px 0 rgba(255, 0, 0, 0.7), -2px 1px 0 rgba(0, 0, 255, 0.7); }
  50% { text-shadow: -2px 2px 0 rgba(255, 0, 0, 0.7), 2px -2px 0 rgba(0, 0, 255, 0.7); transform: skew(0.5deg); }
  100% { text-shadow: 1px -2px 0 rgba(255, 0, 0, 0.7), -1px 2px 0 rgba(0, 0, 255, 0.7); }
}

/* --- Full-Bleed Footer --- */
.footer-bar {
  width: 100%;
  padding: 2rem 2vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-color);
}

/* --- Industrial Sub-Videos Grid Section --- */
.sub-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  background-color: #000000;
}

.backstage-grid {
  grid-template-columns: 1fr 1fr 1fr;
}

.sub-video-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: none;
}

.sub-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  background-color: #000000;
  filter: contrast(1.1) brightness(0.85) saturate(1);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sub-video.fit-contain {
  object-fit: contain;
}

.sub-video-item:hover .sub-video {
  opacity: 1;
  filter: contrast(1.15) brightness(1) saturate(1.1);
}

.sub-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.2rem 1.8vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: clamp(8px, 1.1vw, 12px);
  color: var(--text-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
  z-index: 10;
}

.sub-video-tag {
  background-color: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  width: fit-content;
  letter-spacing: 0.1em;
  font-weight: bold;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.sub-video-item:hover .sub-video-tag {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .sub-video-grid {
    grid-template-columns: 1fr; /* Stack vertically on tablet/mobile */
  }
  .sub-video-item {
    border-right: none;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
  }
  .sub-video-item:last-child {
    border-bottom: none;
  }
  .sub-video {
    object-fit: contain;
  }
  .header-container {
    padding: 2.5rem 2vw 2rem 2vw;
  }
  .header-container::before, .header-container::after {
    display: none; /* Hide micro text on small viewport */
  }
}

/* --- Industrial Simple Categories List --- */
.categories-list-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6rem 2vw 8rem 2vw; /* Generous industrial breathing space */
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: #000000;
}

.categories-list-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-weight: bold;
}

.category-item-simple {
  cursor: default;
  user-select: none;
  display: block;
  position: relative;
}

.category-name-simple {
  font-family: var(--font-neo);
  font-size: clamp(2.5rem, 6.5vw, 6rem); /* Absolutely massive and bold! */
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--text-color);
  line-height: 0.85;
  display: block;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: line-through;
  text-decoration-thickness: 0.05em;
}

.category-item-simple:hover .category-name-simple {
  color: var(--accent-color); /* Highlight caution red on hover */
}

@media (max-width: 768px) {
  .categories-list-container {
    padding: 4rem 4vw 5rem 4vw;
    gap: 1rem;
  }
}

/* --- Category Switcher & Content Toggles --- */
.category-content {
  display: none !important;
}

body.show-home .home-content {
  display: block !important;
}

body.show-fashion .fashion-content {
  display: block !important;
}

body.show-fashion section.sub-video-grid.fashion-content {
  display: grid !important;
}

body.show-audio .audio-content {
  display: block !important;
}

/* --- Filed & Active Category States --- */
.category-item-simple.filed {
  cursor: pointer;
}

.category-item-simple.filed .category-name-simple {
  text-decoration: none;
}

.category-item-simple.filed:hover .category-name-simple {
  color: var(--accent-color);
}

.category-item-simple.active .category-name-simple {
  color: var(--accent-color);
}

.category-item-simple.active .category-name-simple::before {
  content: "// ";
  color: var(--accent-color);
}

/* --- Custom Audio Controls Bar --- */
.custom-audio-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.85);
  border-top: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2vw;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  pointer-events: auto;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  padding: 5px 10px;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.control-btn:hover {
  color: var(--accent-color);
}

.progress-bar-container {
  flex-grow: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  position: relative;
  transition: height 0.2s ease;
}

.progress-bar-container:hover {
  height: 6px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--accent-color);
  transition: width 0.1s linear;
}


