:root {
  --bg: #040406;
  --fg: #f5f4f6;
  --muted: #a1a4b0;
  --accent: #f8b133;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: inherit;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 3vw;
  border-bottom: 1px solid var(--border);
  background: rgba(4, 4, 6, 0.95);
  z-index: 10;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand__name {
  font-size: 1rem;
  font-weight: 600;
}

.brand__tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.nav-link {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: var(--accent);
}

.btn {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, #f8b133, #f46c3c);
  color: #040406;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}

main {
  padding: 4rem 3vw 5rem;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  padding-top: 1rem;
}

.hero__text h1 {
  margin: 0.3rem 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero__text .lede--secondary {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 520px;
}

.hero__support {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.hero__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: flex-end;
}

.editorial-band {
  position: relative;
  width: calc(100% - 2.5rem);
  max-width: 1120px;
  min-height: 150px;
  margin: 2.5rem auto;
  background: linear-gradient(180deg, rgba(4, 4, 6, 0.55), rgba(4, 4, 6, 0.85)), url('assets/editorial/Video_Editing_Timeline_original_779596.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
}

.editorial-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 4, 6, 1) 0%, rgba(4, 4, 6, 0) 15%, rgba(4, 4, 6, 0) 85%, rgba(4, 4, 6, 1) 100%);
  pointer-events: none;
}

.section-heading {
  max-width: 520px;
}

.section-heading h2 {
  margin: 0.3rem 0;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}

.lanes__grid,
.featured-grid {
  display: grid;
  gap: 1.25rem;
}

.lanes__grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lanes__card {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.lanes__label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.lanes__mini {
  font-size: 0.85rem;
  color: var(--fg);
}

.featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
  align-content: stretch;
}

.featured-card {
  padding: 1.35rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(4, 4, 6, 0.92);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 250px;
}

.project-preview {
  width: 100%;
  margin: 0.4rem 0;
  border-radius: 0.85rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  min-height: 165px;
  background-image: linear-gradient(180deg, rgba(4, 4, 6, 0) 0%, rgba(4, 4, 6, 0.85) 100%), var(--preview-bg, linear-gradient(180deg, rgba(4, 4, 6, 0), rgba(4, 4, 6, 0.9)));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 4, 6, 0) 25%, rgba(4, 4, 6, 0.85) 100%);
  pointer-events: none;
}

.project-preview video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  display: block;
  position: relative;
}

.category-page .project-preview video {
  display: none;
}

.rates-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rates-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rates-card__price {
  font-weight: 600;
  color: var(--accent);
}

.rates-visual {
  margin: 2rem 0 2.5rem;
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  position: relative;
  align-items: stretch;
  border-radius: 1rem;
  overflow: hidden;
}

.rates-visual::before,
.rates-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rates-visual::before {
  background: linear-gradient(90deg, rgba(4, 4, 6, 0.8) 0%, rgba(4, 4, 6, 0) 20%, rgba(4, 4, 6, 0) 80%, rgba(4, 4, 6, 0.8) 100%);
  z-index: 1;
}

.rates-visual::after {
  background: url('assets/editorial/super-8-film-burn.png');
  opacity: 0.06;
  mix-blend-mode: soft-light;
  z-index: 3;
}

.rates-visual__primary,
.rates-visual__secondary {
  border-radius: 0;
  position: relative;
  min-height: 190px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.rates-visual__primary {
  flex: 2;
  background-image: linear-gradient(180deg, rgba(4, 4, 6, 0.15), rgba(4, 4, 6, 0.65)), url('assets/editorial/studio-production-set.jpg');
}

.rates-visual__secondary {
  flex: 1;
  min-height: 170px;
  background-image: linear-gradient(180deg, rgba(4, 4, 6, 0.15), rgba(4, 4, 6, 0.65)), url('assets/editorial/camera-lens.jpg');
  background-position: 70% center;
  background-size: 180%;
}

.rates-visual__secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 4, 6, 1) 0%, rgba(4, 4, 6, 1) 40%, rgba(4, 4, 6, 0) 60%);
  pointer-events: none;
  z-index: 2;
}

.rates-visual span {
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  main {
    padding: 3rem 5vw 4rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .featured-grid,
  .lanes__grid {
    grid-template-columns: 1fr;
  }

  .project-preview {
    min-height: 140px;
  }

  .editorial-band {
    width: 100%;
    margin: 2rem 0;
    min-height: 130px;
  }

  .rates-visual {
    flex-direction: column;
  }

  .rates-visual__primary,
  .rates-visual__secondary {
    width: 100%;
    min-height: 150px;
    padding: 0.75rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__text h1 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .featured-card,
  .rates-card {
    padding: 1.25rem;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }

  .rates-visual {
    flex-direction: row;
    gap: 1rem;
  }
}

.project-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-role {
  font-size: 0.85rem;
  color: var(--fg);
  margin: 0;
}

.narrative-page .card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 6.5rem;
}

.narrative-page .card-copy h3 {
  margin: 0;
  line-height: 1.2;
  min-height: 3.2rem;
}

.narrative-page .card-copy .project-label {
  margin: 0;
}

.education-page .card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 5.8rem;
}

.education-page .card-copy h3 {
  margin: 0;
  line-height: 1.2;
  min-height: 3.2rem;
}

.education-page .card-copy .project-label {
  margin: 0;
}

.featured-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.project-preview {
  width: 100%;
  margin: 0.4rem 0;
}

.link {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  text-decoration: none;
}

button.link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.about,
.contact {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.contact__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.contact__grid ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  color: var(--muted);
}

footer {
  padding: 2rem 3vw;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

body.video-modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 6, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 100;
}

.video-modal--active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal__dialog {
  width: min(1100px, 90vw);
  max-height: 90vh;
  position: relative;
}

.video-modal__player {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 1.35rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-nav {
    width: 100%;
    order: 3;
    justify-content: flex-start;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero__cta {
    flex-direction: row;
    justify-content: flex-start;
  }
}
