@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
  --bg: #000000;
  --fg: #f5f5f5;
  --accent: #f0dcd8;
  --muted: #888;
  --header-h: 90px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9999;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2.5rem;
  z-index: 100;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  justify-self: start;
}

.logo {
  grid-column: 2;
  justify-self: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

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

.logo .logo-suffix {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--fg);
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.site-nav a.active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
  justify-self: end;
  color: var(--fg);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.menu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 2rem 2rem;
}

.video-player {
  position: relative;
  cursor: pointer;
}

.video-player--hero {
  width: min(76vw, 1400px);
  max-height: 78vh;
  aspect-ratio: 16 / 9;
}

.video-player--vertical {
  width: min(280px, 82vw);
  max-height: 70vh;
  aspect-ratio: 9 / 16;
}

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

.player-toggle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.player-toggle svg {
  width: 26px;
  height: 26px;
}

.video-player:hover .player-toggle {
  opacity: 1;
}

.player-toggle:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* Player controls */
.player-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.5rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.video-player:hover .player-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 0.55rem;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ctrl-btn svg {
  width: 18px;
  height: 18px;
}

.time-display {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  margin-right: auto;
}

.seek-bar {
  position: relative;
  width: 100%;
  padding: 7px 0;
  cursor: pointer;
}

.seek-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
}

.seek-bar-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--fg);
}

.video-player:fullscreen {
  width: 100%;
  height: 100%;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.video-player:fullscreen .player-video {
  width: 100%;
  height: 100%;
}

/* Work page */
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 3rem;
}

.work-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: calc(var(--header-h) + 2rem) 2rem 3rem;
}

.work-section--quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: min(94vw, 1700px);
  margin: 0 auto;
  min-height: auto;
  padding: 4rem 0;
}

.work-section--quad .video-player--vertical {
  width: 100%;
  max-height: none;
}

/* Contact page */
.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

.contact-content {
  margin-top: 1rem;
}

.social-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.3s ease;
}

.social-icon svg {
  width: 32px;
  height: 32px;
}

.social-icon:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile */
@media (max-width: 768px) {
  .logo {
    font-size: clamp(1rem, 4.5vw, 1.3rem);
  }

  .menu-toggle {
    display: flex;
    margin-top: 6px;
  }

  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 70%;
    max-width: 320px;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    justify-self: unset;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .video-player--hero {
    width: 100%;
    max-height: none;
  }

  .video-player--vertical {
    width: min(300px, 88vw);
  }

  .work-section--quad {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
