/* ═══════════════════════════════════════════════════════════
   DTS037 v2 — STYLESHEET
   Palette: Cyan #00FFFF · Magenta #FF00FF · Violet #7B00FF
   ═══════════════════════════════════════════════════════════ */

:root {
  --cyan:    #00ffff;
  --magenta: #ff00ff;
  --violet:  #7b00ff;
  --black:   #000000;
  --dark:    #060608;
  --mid:     #0d0d12;
  --text:    #e0e0f0;
  --muted:   #4a4a6a;
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --glow-cyan: 0 0 20px rgba(0,255,255,0.4), 0 0 60px rgba(0,255,255,0.1);
  --glow-mag:  0 0 20px rgba(255,0,255,0.4), 0 0 60px rgba(255,0,255,0.1);
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-main);
  cursor: none;
  overflow-x: hidden;
}

/* ── CANVAS BACKGROUND ─────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}

/* ── CUSTOM CURSOR ─────────────────────────────────────────── */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.2s ease;
  box-shadow: var(--glow-cyan);
  mix-blend-mode: screen;
}

#cursor-trail {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.2s ease, height 0.2s ease;
}

body:has(.btn-enter:hover) #cursor,
body:has(.exp-card:hover) #cursor { background: var(--magenta); box-shadow: var(--glow-mag); }
body:has(.btn-enter:hover) #cursor-trail,
body:has(.exp-card:hover) #cursor-trail { width: 60px; height: 60px; border-color: rgba(255,0,255,0.3); }

/* ── SECTIONS BASE ─────────────────────────────────────────── */
section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
}

.hidden-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.hidden-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  justify-content: center;
  text-align: center;
}

.hero-content { position: relative; z-index: 2; max-width: 900px; }

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-bottom: 32px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(5rem, 18vw, 16rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--cyan) 0%, #a0f0ff 30%, var(--magenta) 70%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(0,255,255,0.25));
  animation: title-breathe 4s ease-in-out infinite;
  margin-bottom: 24px;
}

@keyframes title-breathe {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(0,255,255,0.25)); }
  50%       { filter: drop-shadow(0 0 80px rgba(0,255,255,0.5)) drop-shadow(0 0 120px rgba(255,0,255,0.15)); }
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(224,224,240,0.7);
  margin-bottom: 56px;
  letter-spacing: 0.02em;
}

/* ── BUTTON ENTER ──────────────────────────────────────────── */
.btn-enter {
  position: relative;
  background: transparent;
  border: none;
  cursor: none;
  padding: 0;
  overflow: visible;
}

.btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 48px;
  border: 1px solid rgba(0,255,255,0.5);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}

.btn-enter:hover .btn-inner {
  background: rgba(0,255,255,0.06);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: inset 0 0 30px rgba(0,255,255,0.05);
}

.btn-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.3s ease;
  z-index: 0;
}

.btn-enter:hover .btn-glow { opacity: 0.3; }

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn-enter:hover .btn-arrow { transform: translateX(6px); }

/* ── SCROLL HINT ───────────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.3; height: 40px; }
  50%       { opacity: 1; height: 60px; }
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

/* ── SECTION LABELS ────────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.7;
}

.section-title {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--text) 0%, rgba(224,224,240,0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 64px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* ── SOUNDCLOUD SECTION ────────────────────────────────────── */
#soundcloud-section { gap: 0; }

.soundcloud-wrapper {
  width: 100%;
  max-width: 720px;
  margin-bottom: 48px;
}

.sc-visualizer {
  width: 100%;
  height: 80px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,255,255,0.1);
  border-bottom: none;
}

#sc-canvas { width: 100%; height: 100%; }

.sc-embed-container {
  border: 1px solid rgba(0,255,255,0.2);
  overflow: hidden;
  background: rgba(0,255,255,0.02);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 36px;
  border: 1px solid var(--muted);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  cursor: none;
  transition: all 0.3s ease;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,255,255,0.1);
}

/* ── EXPERIENCE GRID ───────────────────────────────────────── */
#lab-section { padding-top: 120px; padding-bottom: 120px; }

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 48px;
}

.exp-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  background: var(--dark);
  cursor: none;
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
  text-decoration: none;
  display: block;
  padding: 40px 32px;
  min-height: 200px;
}

.exp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(0,255,255,0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exp-card:hover {
  border-color: rgba(0,255,255,0.4);
  transform: translateY(-4px);
  z-index: 2;
}

.exp-card:hover::before { opacity: 1; }

.exp-card-glow {
  position: absolute;
  inset: -1px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.exp-card:hover .exp-card-glow {
  opacity: 1;
  box-shadow: inset 0 0 40px rgba(0,255,255,0.05);
}

.exp-index {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  opacity: 0.5;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-index::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.2;
}

.exp-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  padding: 3px 8px;
  border: 1px solid currentColor;
  margin-bottom: 16px;
}

.exp-tag.tag-live    { color: var(--cyan); }
.exp-tag.tag-lab     { color: var(--magenta); }
.exp-tag.tag-glsl    { color: var(--violet); }
.exp-tag.tag-son     { color: #00ff88; }
.exp-tag.tag-hub     { color: #ff8800; }
.exp-tag.tag-obs     { color: #ff4444; }

.exp-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.exp-card:hover .exp-title { color: #fff; }

.exp-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

.exp-arrow {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  opacity: 0;
  transform: translate(-8px, 4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.exp-card:hover .exp-arrow { opacity: 1; transform: translate(0, 0); }

/* ── LAB FOOTER ────────────────────────────────────────────── */
.lab-footer {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.lab-ticker {
  overflow: hidden;
  white-space: nowrap;
  max-width: 500px;
  position: relative;
}

/* ── PORTAL OVERLAY ────────────────────────────────────────── */
#portal-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.8s ease;
}

#portal-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.portal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: portal-expand 1.8s ease-out forwards;
  opacity: 0;
}

.portal-ring:nth-child(1) { width: 80px; height: 80px; animation-delay: 0s; }
.portal-ring:nth-child(2) { width: 80px; height: 80px; animation-delay: 0.3s; }
.portal-ring:nth-child(3) { width: 80px; height: 80px; animation-delay: 0.6s; border-color: var(--magenta); }

@keyframes portal-expand {
  0%   { width: 80px; height: 80px; opacity: 0.8; }
  100% { width: 500px; height: 500px; opacity: 0; }
}

.portal-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--cyan);
  z-index: 1;
  animation: portal-text-fade 1.8s ease forwards;
}

@keyframes portal-text-fade {
  0%, 60% { opacity: 1; }
  100%     { opacity: 0; }
}

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--muted); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 60px 20px; }
  .experience-grid { grid-template-columns: 1fr; }
  #cursor, #cursor-trail { display: none; }
  body { cursor: auto; }
  .btn-enter, .btn-secondary, .exp-card { cursor: pointer; }
}
