:root {
  --black: #0a0a0f;
  --deep: #0d0d1a;
  --ink: #111122;
  --dim: #1a1a2e;
  --muted: #4a4a6a;
  --mid: #7a7a9a;
  --pale: #c8c8e0;
  --light: #e8e8f4;
  --white: #f4f4fc;
  --cosmic: #b8a0ff;
  --pulse: #ff9060;
  --signal: #60d4ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--pale);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  overflow-x: hidden;
}

/* STAR FIELD */
#starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* COSMIC RAY FLASH */
.ray-flash {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

/* LAYOUT */
main {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER */
header {
  position: relative;
  z-index: 2;
  padding: 6rem 2rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.signal-line {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--signal);
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.3s;
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 0.5s;
}

h1 span {
  display: block;
  font-style: italic;
  color: var(--cosmic);
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--cosmic);
  border-radius: 50%;
  color: var(--cosmic);
  font-size: 0.6rem;
  text-decoration: none;
  vertical-align: middle;
  margin-left: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.play-btn:hover {
  background: var(--cosmic);
  color: var(--black);
}

.epigraph {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.6;
  color: var(--mid);
  max-width: 560px;
  margin: 3rem 0 0;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 0.9s;
}

/* DIVIDER */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--muted), transparent);
  margin: 5rem 0;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.2s;
}

/* SECTIONS */
section {
  margin-bottom: 6rem;
}

.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pulse);
  margin-bottom: 2rem;
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--light);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

p {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--pale);
  max-width: 620px;
}

p + p {
  margin-top: 1.2rem;
}

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid var(--dim);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 0.35rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cosmic);
  box-shadow: 0 0 8px var(--cosmic);
}

.timeline-date {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--signal);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline-text {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--pale);
  max-width: 580px;
}

/* TEAM */
.team-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.team-list li {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--light);
  letter-spacing: 0.02em;
}

.team-list li a {
  color: var(--cosmic);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.team-list li a:hover {
  color: var(--white);
  border-bottom-color: var(--cosmic);
}

/* CAROUSEL */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: contain;
  max-height: 560px;
  background: var(--deep);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 15, 0.7);
  color: var(--pale);
  border: 1px solid var(--dim);
  font-size: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  color: var(--cosmic);
  border-color: var(--cosmic);
}

.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dots button {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: none;
  background: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.carousel-dots button.active {
  background: var(--cosmic);
  box-shadow: 0 0 6px var(--cosmic);
}

/* FOOTER */
footer {
  position: relative;
  z-index: 2;
  padding: 2rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--dim);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-sig {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.cosmic-counter {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-align: right;
}

.cosmic-counter span {
  color: var(--cosmic);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.2rem;
}

/* ANIMATIONS */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rayFlash {
  0%   { opacity: 0; }
  5%   { opacity: 0.06; }
  10%  { opacity: 0; }
  12%  { opacity: 0.03; }
  15%  { opacity: 0; }
}

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

/* SCROLL ANIMATIONS */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
