:root {
  --bg: #0a0908;
  --ink: #efefec;
  --accent: #f8ef22;
  --surface: #121110;
  --muted: #88847d;
  --border: rgba(239, 239, 236, 0.1);
  --header-height: 80px;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
}

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

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

body.scroll-locked {
  overflow: hidden;
}

/* Typography */
.outfit-display {
  font-family: "Outfit", sans-serif;
  font-weight: 300;
}

.space-grotesk {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

/* Custom Cursor */
.cursor {
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background 0.2s;
}

.cursor-ring {
  width: 24px;
  height: 24px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.hovered {
  background: var(--accent);
}

.cursor-ring.hovered {
  width: 40px;
  height: 40px;
  border-color: var(--accent);
}

/* Header */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
}

.logo img {
  height: 24px;
  vertical-align: middle;
}

.hamburger {
  background: none;
  border: none;
  width: 30px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: none;
  position: relative;
  z-index: 1001;
}

.hamburger .line {
  width: 100%;
  height: 1px;
  background-color: var(--ink);
  transition: transform 0.3s ease;
}

.hamburger.open .line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .line:nth-child(2) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Fullscreen Menu */
#fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  z-index: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#fullscreen-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-links {
  list-style: none;
  text-align: center;
}

.menu-links li {
  margin: 2rem 0;
}

.menu-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 4rem;
  transition: color 0.3s;
}

.menu-links a:hover {
  color: var(--accent);
}

/* Player Container (100vh area that pushes footer down) */
#player-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--bg);
}

#media-area {
  position: relative;
  width: 100vw;
  height: 100vh;
  transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  overflow: hidden;
  flex-shrink: 0;
}

body:not(.intro-mode) #player-container.playlist-open #media-area {
  width: 60vw;
}

#hero-slideshow,
#main-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero-slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#hero-slideshow img.logo-slide {
  object-fit: scale-down;
}

#hero-slideshow img.active {
  opacity: 1;
}

body:not(.intro-mode) #hero-slideshow {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

body:not(.intro-mode) #main-video {
  opacity: 1 !important;
  transition: opacity 0.8s ease;
}

#hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.7);
  transition: opacity 0.8s ease;
  pointer-events: none;
}

body:not(.intro-mode) #hero-overlay {
  opacity: 0;
}

/* Hero Content */
#hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.8s ease;
}

.wordmark {
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.tagline {
  margin-top: 1rem;
}

.services {
  margin-top: 2rem;
  letter-spacing: 0.2em;
}

.scroll-hint {
  position: absolute;
  bottom: 3rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

body:not(.intro-mode) #hero-content {
  transform: translateX(-5vw);
  opacity: 0;
  pointer-events: none;
}

/* Player Controls */
#player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 20;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
}

body:not(.intro-mode) #player-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.play-pause-btn,
.mute-btn,
.skip-btn {
  background: none;
  border: none;
  color: var(--ink);
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: none;
  transition: color 0.3s, transform 0.3s;
}

.play-pause-btn svg,
.mute-btn svg,
.skip-btn svg {
  width: 24px;
  height: 24px;
}

.skip-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.project-info {
  display: flex;
  flex-direction: column;
}

.active-title {
  font-size: 1.5rem;
}

.controls-right {
  display: flex;
  align-items: center;
}

#progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
}

/* Playlist Panel */
#playlist-panel {
  width: 40vw;
  height: 100vh;
  background: var(--surface);
  position: absolute;
  top: 0;
  right: 0;
  transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.8s ease;
  z-index: 30;
  overflow: visible;
}

body.intro-mode #playlist-panel {
  opacity: 0;
  pointer-events: none;
}

.playlist-scroll-area {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-height) + 2rem) 3rem 3rem;
  overflow-y: auto;
}

#panel-toggle-tab {
  position: absolute;
  top: 50%;
  left: -40px;
  transform: translateY(-50%);
  width: 40px;
  height: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--ink);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: none;
  z-index: 50;
  transition: background 0.3s, color 0.3s;
}

#panel-toggle-tab svg {
  width: 24px;
  height: 24px;
}

#panel-toggle-tab:hover {
  background: var(--ink);
  color: var(--bg);
}

body:not(.intro-mode) #player-container.playlist-open #playlist-panel {
  transform: translateX(0);
}

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: inherit;
  cursor: none;
  position: relative;
}

.tab-btn.active {
  color: var(--ink);
}

.tab-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Creators List */
.creator-category {
  margin-bottom: 3rem;
}

.creator-name {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.project-list {
  list-style: none;
}

.project-item {
  padding: 0.5rem 0;
  color: var(--muted);
  cursor: none;
  transition: color 0.3s, padding-left 0.3s;
}

.project-item:hover {
  color: var(--ink);
  padding-left: 10px;
}

.project-item.active {
  color: var(--accent);
}

.project-item.active::before {
  content: '▶ ';
  color: var(--accent);
}

/* Profile Tab */
.profile-title {
  font-size: 3rem;
  margin: 0;
}

.profile-role {
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.accordion-section {
  margin-bottom: 0;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: none;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.accordion-icon {
  font-size: 2rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.3s ease;
  line-height: 1;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease, padding 0.5s ease;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.accordion-section.active .accordion-content {
  max-height: 3000px;
  opacity: 1;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.accordion-section.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-section.active .accordion-header {
  border-bottom-color: transparent;
}

.profile-image {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.filmography-list {
  list-style: none;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.filmography-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.filmography-list li:last-child {
  border-bottom: none;
}

.film-title {
  font-weight: 500;
  color: var(--ink);
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.film-year {
  margin-right: 0.5rem;
}

.film-awards {
  font-size: 0.65rem;
  margin-top: 0.5rem;
}

.profile-bio {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  letter-spacing: normal;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.detail-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Footer */
#site-footer {
  width: 100vw;
  background: var(--bg);
  padding: 6rem 3rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 2rem;
}

.footer-info a,
.footer-column a {
  color: var(--ink);
  text-decoration: none;
  display: block;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.footer-socials a {
  color: var(--ink);
  text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
  #player-container.playlist-open {
    flex-direction: column;
  }

  #player-container.playlist-open #media-area {
    width: 100vw;
    height: 60vh;
  }

  #playlist-panel {
    width: 100vw;
    height: 40vh;
    top: auto;
    bottom: 0;
    transform: translateY(100%);
    padding: 2rem;
  }

  #player-container.playlist-open #playlist-panel {
    transform: translateY(0);
  }

  #player-controls {
    padding: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-socials {
    align-items: flex-start;
  }
}