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

:root {
  --nav-blue: #4f93d8;
  --nav-blue-hover: #2f6fb8;
  --social: #5a86b0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Arial Black", "Arial", system-ui, sans-serif;
  position: relative;
}

/* ===== Night sky background ===== */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(120, 140, 210, 0.35) 0%, transparent 45%),
    linear-gradient(180deg, #070b22 0%, #101740 38%, #1b2456 68%, #2a356e 100%);
}

/* (moon & clouds removed — 3D stars are rendered in the canvas) */

/* ===== 3D canvas ===== */
#scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;                       /* let drag-rotate own the gesture on touch */
  -webkit-tap-highlight-color: transparent; /* no gray flash on iOS taps */
}

/* ===== Logo ===== */
.logo {
  position: fixed;
  top: 30px;
  left: 48px;
  z-index: 3;
  display: block;
}

.wordmark {
  width: 240px;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(233, 230, 220, 0.35))
          drop-shadow(0 0 12px rgba(190, 205, 255, 0.16));
}

.wordmark text {
  font-family: "Arial Rounded MT Bold", "VAG Rounded", "Trebuchet MS", system-ui, sans-serif;
  font-size: 96px;
  font-weight: 800;
  fill: #e9e6dc;
  letter-spacing: -2px;
}

/* ===== Vertical nav ===== */
.nav {
  position: fixed;
  top: 50%;
  left: 48px;
  transform: translateY(-50%);
  z-index: 3;
}

.nav ul {
  list-style: none;
}

.nav li {
  margin: 4px 0;
}

.nav a {
  text-decoration: none;
  color: var(--nav-blue);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0.5px;
  display: inline-block;
  transition: transform 0.15s ease, color 0.15s ease;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.nav a:hover {
  color: var(--nav-blue-hover);
  transform: translateX(8px) scale(1.04);
}

/* ===== Socials ===== */
.socials {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 26px;
}

.socials a {
  color: var(--social);
  transition: transform 0.15s ease, color 0.15s ease;
}

.socials a:hover {
  color: #2f6fb8;
  transform: translateY(-3px) scale(1.12);
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .logo { top: 20px; left: 22px; }
  .wordmark { width: 170px; }
}

/* ===== Camcorder screen video + side list ===== */
.screen-ui {
  position: fixed;
  z-index: 2;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.4);
}
.screen-ui[hidden] { display: none; }

#video-player,
#video-player iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* transparent layer over the video: captures clicks -> play/pause only */
.video-click {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

/* snappy taps, no double-tap zoom on the interactive bits */
.video-click,
.list-close,
.list-item,
.socials a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* videos list that pops up on the right */
.video-list {
  position: fixed;
  top: 12%;
  right: 24px;
  z-index: 4;
  width: 212px;
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  background: rgba(10, 14, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  font-family: "Baloo 2", "Arial Rounded MT Bold", Arial, sans-serif;
}
.video-list[hidden] { display: none; }

.list-close {
  flex: none;
  align-self: flex-end;
  margin: 8px 10px 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.list-close:hover { background: rgba(255, 255, 255, 0.32); }

.list-items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 10px 12px;
}
.list-item {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.list-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.list-item:hover { border-color: #4f93d8; transform: translateY(-1px); }

/* phones: dock the video list along the bottom as a swipeable strip */
@media (max-width: 640px) {
  .video-list {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: none;
    flex-direction: row;
    align-items: center;
  }
  .list-items {
    order: 1;
    flex: 1;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
  }
  .list-item { flex: 0 0 132px; }
  .list-close {
    order: 2;
    align-self: center;
    margin: 0 10px 0 2px;
    width: 34px;
    height: 34px;
  }
  /* the bottom strip sits where the socials are — hide them while videos are open */
  .videos-open .socials { opacity: 0; pointer-events: none; }
}
