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

:root {
  --bg: #080808;
  --surface: #111111;
  --border: #1c1c1c;
  --text: #ffffff;
  --text-muted: #444444;
  --text-secondary: #777777;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Navigation ─────────────────────────────────── */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background-color: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 44px;
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  width: 28px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ─── Sections ───────────────────────────────────── */

.section {
  padding: 120px 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 72px;
}

/* ─── Home ───────────────────────────────────────── */

.section--home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}

.home-content {
  text-align: center;
}

.home-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--text);
}

.home-divider {
  width: 48px;
  height: 1px;
  background: var(--text-muted);
  margin: 32px auto;
}

.home-title {
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.scroll-hint {
  position: absolute;
  bottom: 44px;
  color: var(--text-muted);
  text-decoration: none;
  animation: float 2.4s ease-in-out infinite;
  transition: color 0.2s;
}

.scroll-hint:hover {
  color: var(--text-secondary);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ─── Work ───────────────────────────────────────── */

.section--work {
  border-top: 1px solid var(--border);
}

.category {
  margin-bottom: 88px;
}

.category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-grid--shorts {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

.video-wrapper--short {
  aspect-ratio: 9 / 16;
  width: 280px;
  flex-shrink: 0;
}

/* ─── Carousel ───────────────────────────────────── */

.carousel {
  position: relative;
}

.carousel-row {
  position: relative;
}

.carousel-track {
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(8, 8, 8, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.carousel-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(8, 8, 8, 0.92);
}

.carousel-btn--prev { left: 16px; }
.carousel-btn--next { right: 16px; }

.carousel-counter {
  text-align: center;
  margin-top: 14px;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

/* Shorts carousel: row lays out as flex so buttons sit beside the video */
.carousel--shorts .carousel-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.carousel--shorts .carousel-track {
  width: clamp(200px, 55vw, 280px);
  flex-shrink: 0;
}

.carousel--shorts .video-wrapper--short {
  width: 100%;
}

.carousel--shorts .carousel-btn {
  position: static;
  transform: none;
  flex-shrink: 0;
}

/* ─── About ──────────────────────────────────────── */

.section--about {
  border-top: 1px solid var(--border);
}

.about-bio {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.85;
  color: #bbbbbb;
}

/* ─── Contact ────────────────────────────────────── */

.section--contact {
  border-top: 1px solid var(--border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.25s;
  resize: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #555555;
}

.btn-submit {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 44px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}

.btn-submit:hover {
  border-color: var(--text);
  color: var(--bg);
  background-color: var(--text);
}

.btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-success,
.form-error {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  display: none;
}

.form-success {
  color: var(--text-secondary);
}

.form-error {
  color: #884444;
}

.form-success.visible,
.form-error.visible {
  display: block;
}

/* ─── Footer ─────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 40px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ─── Responsive ─────────────────────────────────── */

@media (max-width: 768px) {
  .section {
    padding: 88px 0;
  }

  .nav-inner {
    padding: 0 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 0 28px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 15px;
  }

  .container,
  .container--narrow {
    padding: 0 24px;
  }

  .section-label {
    margin-bottom: 44px;
  }

  .category {
    margin-bottom: 60px;
  }

  .carousel--shorts .carousel-row {
    gap: 12px;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
  }

  .footer {
    padding: 28px 24px;
  }
}

@media (max-width: 500px) {
  .carousel--shorts .carousel-track {
    width: clamp(160px, 52vw, 220px);
  }
}
