﻿:root {
  --bg-base: #05070d;
  --bg-mid: #121a2a;
  --panel-bg: rgba(7, 12, 18, 0.68);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #edf3ff;
  --muted: rgba(237, 243, 255, 0.82);
  --glow: rgba(110, 167, 255, 0.45);
  --card-bg: rgba(11, 18, 26, 0.72);
  --card-border: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top, rgba(27, 42, 67, 0.95), transparent 36%),
    linear-gradient(160deg, var(--bg-mid) 0%, var(--bg-base) 42%, #03060b 100%);
  color: var(--text);
  overflow-x: hidden;
}

body {
  position: relative;
}

#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

#canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.background-media {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
}

.background-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 17, 0.12), rgba(7, 11, 17, 0.28));
}

.bg-media-item {
  position: absolute;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
  opacity: 0.7;
  filter: saturate(1.15) contrast(1.2) brightness(1.08) blur(0.1px);
  will-change: transform, opacity;
}

.bg-media-item.video {
  background: #000;
}

#app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100%;
  padding-bottom: 80px;
  padding-top: 10px;
}

.hero-video-wrap {
  position: relative;
  z-index: 3;
  width: min(74vw, 980px);
  min-width: 300px;
  aspect-ratio: 16 / 9;
  margin: 94px auto 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 64px var(--glow);
  backdrop-filter: blur(2px);
  opacity: 1;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.bio {
  position: fixed;
  top: 24px;
  left: 24px;
  width: min(360px, 32vw);
  padding: 18px 20px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
  z-index: 20;
}

.bio h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 2vw, 3.1rem);
  line-height: 1.05;
}

.bio div {
  margin: 6px 0;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--muted);
}

.social-box {
  position: fixed;
  top: 278px !important;
  left: 24px;
  width: min(360px, 32vw);
  padding: 14px 18px 12px;
  background: rgba(12, 18, 28, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  z-index: 20;
}

.social-box h2 {
  display: none;
}

.social-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.social-box a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  padding: 2px;
}

.social-box li:nth-child(1) .social-icon {
  background: rgba(255, 0, 0, 0.18);
  color: #ff3b30;
}

.social-box li:nth-child(2) .social-icon {
  background: rgba(225, 48, 108, 0.18);
  color: #f58529;
}

.social-box a:hover,
.social-box a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.media-strip {
  position: relative;
  z-index: 4;
  width: min(1180px, 82vw);
  margin: 192px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.media-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 16px 32px var(--shadow);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.media-card:hover,
.media-card:focus-visible,
.media-card.is-active {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(147, 195, 255, 0.5);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.42);
}

.media-card img,
.media-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.bottom-panels {
  position: relative;
  z-index: 4;
  width: min(100%, 1220px);
  margin: 192px auto 0;
  padding-bottom: 240px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 384px;
}

.detail-panel {
  position: relative;
  overflow: hidden;
  background: rgba(10, 17, 25, 0.96);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 26px 28px 22px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.detail-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

.detail-panel > * {
  position: relative;
  z-index: 1;
}

.detail-panel:nth-child(1)::before {
  background-image: url('../assets/images/cactus-classic-old-home.jpg');
}

.detail-panel:nth-child(2)::before {
  background-image: url('../assets/images/lucy-sand-1.jpg');
}

.detail-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.detail-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.5;
}

@keyframes bannerFlyIn {
  from {
    transform: translateX(480px) translateY(-60px);
    opacity: 0;
  }
  to {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}

.class-banner {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 21;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(110, 167, 255, 0.18), rgba(147, 195, 255, 0.12));
  border: 1px solid rgba(147, 195, 255, 0.28);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(110, 167, 255, 0.15);
  color: #a3c8ff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: bannerFlyIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@media (max-width: 900px) {
  .hero-video-wrap {
    width: min(84vw, 760px);
    margin-top: 88px;
  }

  .bio {
    left: 22px;
    top: 22px;
    width: min(320px, 56vw);
  }

  .class-banner {
    right: 18px;
    top: 18px;
    padding: 12px 16px;
    font-size: 0.88rem;
  }

  .media-strip {
    width: min(720px, 88vw);
    margin-top: 64vh;
  }

  .bottom-panels {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-video-wrap {
    width: min(90vw, 540px);
    margin-top: 18px;
  }

  .bio {
    position: sticky;
    left: auto;
    top: 16px;
    width: auto;
    margin: 18px 18px 12px;
  }

  .social-box {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: auto;
    padding: 10px 8px;
    left: auto;
    top: auto;
  }

  .class-banner {
    right: 12px;
    top: 12px;
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .media-strip {
    width: min(90vw, 520px);
    margin-top: 20px;
  }

  .bottom-panels {
    width: 100%;
    grid-template-columns: 1fr;
  }
}
