:root {
  --bg: #000;
  --text: #fff;
  --purple: #8C00D1;
  --teal:   #00F7DE;
  --yellow: #F5BD00;
}

/* ─ RESET & BASE ───────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ─ DOT GRID BACKGROUND ───────────────────────────────── */
.dots-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#333 0.5px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.1;
  pointer-events: none;
  animation: dotsFade 6s ease-in-out infinite alternate;
}
@keyframes dotsFade {
  to { opacity: 0.15; transform: scale(1.02); }
}

/* ─ HEADER & LOGO (DESKTOP) ───────────────────────────── */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5rem;
  padding-top: 2rem;
  text-align: right;
  z-index: 10;
}
.main-nav ul {
  display: inline-flex;
  gap: 2rem;
  list-style: none;
}
.main-nav a {
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-bottom 0.3s;
}
.main-nav a:hover {
  color: var(--purple);
  border-bottom: 1px solid var(--purple);
}

.logo {
  position: fixed;
  top: 1rem;
  left: 16.6667%;
  height: 3rem;
  z-index: 10;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}

/* ─ SCREEN 1 ───────────────────────────────────────────── */
.first-screen {
  height: 100vh;
  display: grid;
  grid-template-rows: 5rem 1fr 3rem;
  padding: 0 2rem;
}
.site-title {
  display: none; /* hidden on desktop */
}
.content-wrapper {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Container size & aspect ratio */
#reel-container {
  width: 33%;
  height: 50%;
  position: relative;
  overflow: hidden;
}

/* Ensure preview and embed match exactly */
#reel-embed iframe,
#reel-thumbnail,
#reel-thumbnail video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
}
#reel-thumbnail video {
  object-fit: cover;
}

/* Overlay: PLAY | LOGO | REEL */
#reel-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 5;
}
#reel-overlay .reel-text,
#reel-overlay #reel-logo {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}
#reel-overlay .reel-text:first-of-type {
  left: 25%;
  transition: left 0.3s ease;
  font-weight: 500;
}
#reel-overlay #reel-logo {
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  background: url('images/icon_no_strokes.svg') center/contain no-repeat;
  filter: brightness(0) invert(1);  /* force the SVG white */
  transition: transform 0.3s ease;
  z-index: 6;
}
#reel-container:hover #reel-logo {
  transform: translate(-50%, -50%) scale(1.5);
}
#reel-overlay .reel-text:last-of-type {
  left: 75%;
  transition: left 0.3s ease;
  font-weight: 500;
}
#reel-container:hover .reel-text:first-of-type {
  left: 20%;
}
#reel-container:hover .reel-text:last-of-type {
  left: 80%;
}

/* Note under the video */
.reel-note {
  margin-top: 1rem;
  font-size: 0.5rem;  /* reduced by 50% from 1rem */
  color: #ccc;
  text-align: center;
}

/* Scroll-down hint */
.scroll-indicator {
  grid-row: 3;
  justify-self: center;
  align-self: start;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--yellow);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─ SCREEN 2 ───────────────────────────────────────────── */
.second-screen {
  height: 100vh;
  display: grid;
  grid-template-rows: 1fr 2rem;
  padding: 0 2rem;
}
.traits {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 0; /* unchanged */
}
.trait {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}
.trait-title {
  grid-column: 4 / 6;
  font-family: nexa-rust-sans-black-2, sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: var(--teal);
}
.trait-desc {
  grid-column: 6 / 11;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  color: var(--text);
  line-height: 1.6;
}
.site-footer {
  grid-row: 2;
  height: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 1rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
}

/* ─ MOBILE OVERRIDES (≤768px) ──────────────────────────── */
@media (max-width: 768px) {
  .logo {
    display: none;
  }
  .main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2rem;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }
  .first-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: 2rem;    /* 1rem blank + 1rem nav */
    padding-bottom: 2rem; /* 1rem scroll + 1rem blank */
  }
  .content-wrapper {
    flex: 1;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    justify-items: center;
    align-items: center;
  }
  .site-title {
    display: block;
    white-space: nowrap;
    max-width: 80%;
    text-align: center;
    font-family: nexa-rust-sans-black-2, sans-serif;
    color: var(--teal);
    font-size: min(6vw, 2rem);
  }
  #reel-container {
    grid-row: 2;
    width: 90%;
    aspect-ratio: 16/9;
    height: auto;
    position: relative;
  }
  #reel-overlay #reel-logo {
    width: 2.5rem;
    height: 2.5rem;
  }
  .reel-note {
    font-size: 0.45rem;  /* half of 0.9rem mobile */
    width: 80%;
    margin: 1rem auto;
  }
  .scroll-indicator {
    width: 100%;
    text-align: center;
    margin-top: auto;
    margin-bottom: 1rem;
  }
  .traits {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0 6rem;
    gap: 2rem;
  }
  .trait {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  .trait-title,
  .trait-desc {
    grid-column: auto !important;
  }
  .site-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    height: auto;
    padding: 1rem 0;
  }
  .site-footer p {
    margin: 0;
  }
  .footer-links {
    margin-top: 0.5rem;
  }
  .footer-links a {
    margin: 0 0.5rem;
    text-decoration: none;
    color: var(--text);
  }
}
