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

:root {
  --color-bg: #0c0c0c;
  --color-text: #ffffff;
  --color-muted: #4e4e4e;
  --color-accent: #ffa487;
  --font-family: "Gill Sans Light", "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  --max-width: 1140px;

  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --heading-sm: 1.25rem;
  --heading-md: 1.75rem;
  --heading-xl: clamp(2.6rem, 4vw, 4rem);
}

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: #0c0c0c;
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 300;
  line-height: 1.15;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.site-header {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 1.25rem 1.5rem 0;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 5.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav a {
  font-family: var(--font-family);
  font-size: var(--text-lg);
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 0.75;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  min-height: 27em;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  color: var(--color-text);
  background:
    url("../assets/images/hero.jpg") 100% 100% / 63% auto no-repeat,
    var(--color-bg);
}

.hero-content {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: calc(9vw - 5rem) 0 0 10vw;
}

.hero h1 {
  font-size: var(--heading-xl);
  text-transform: uppercase;
  text-align: center;
}

.hero-tagline {
  margin: 0.5rem 0 0;
  font-family: var(--font-family);
  font-size: var(--text-lg);
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  background: #ffffff;
}

.about.section {
  padding-bottom: 7%;
}

.works.section {
  padding-top: 0;
}

.about-heading {
  margin: 2rem 0 6rem;
  font-size: var(--heading-md);
  font-weight: 300;
  color: var(--color-bg);
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5%;
  align-items: center;
  width: min(70vw, var(--max-width));
  margin: 0 auto 4%;
}

.about-photo {
  width: 100%;
  border-radius: 6px;
}

.about-text {
  font-size: var(--text-md);
  line-height: 1.4;
  color: var(--color-muted);
}

.about-text p {
  margin: 0 0 1rem;
}

.about-dark {
  display: grid;
  grid-template-columns: 35% 40%;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  min-height: 75vh;
  margin-top: 4%;
  padding: 3%;
  background: #000;
  color: var(--color-text);
}

.about-dark-text {
  font-size: var(--text-md);
  line-height: 1.4;
  margin-left: 20%;
}

.about-dark-text p {
  margin: 0 0 1rem;
}

.about-portrait {
  width: 66%;
  margin-left: auto;
  margin-right: 20%;
  padding-bottom: 9%;
}

.about-quote {
  max-width: 23rem;
  margin: 7% auto 0;
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

.about-quote footer {
  margin-top: 1rem;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 300;
  color: var(--color-accent);
}

.works-list,
.works-videos {
  width: min(55vw, var(--max-width));
  margin: 0 auto;
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
 
}

.work-card {
  display: grid;
  grid-template-columns: 41% 1fr;
  align-items: start;
  gap: 1rem;
}

.work-card iframe {
  display: block;
  width: 100%;
  height: 166px;
  border: 0;
}

.works-videos {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 4rem;
}

.works-video-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.works-video-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  color: var(--color-bg);
}

.works-video-info h3 {
  font-size: var(--heading-md);
  font-weight: 300;
}

.works-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-bg);
}

.works-videos-local .works-video iframe {
  display: none;
}

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

.work-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.25rem;
  padding: 0;
  color: var(--color-bg);
}

.work-card-info h3 {
  font-size: var(--heading-md);
  font-weight: 300;
}

.work-card-credits {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.4;
}

.work-card-lyrics-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0;
  color: var(--color-bg);
  text-align: left;
  text-decoration: underline;
  letter-spacing: -0.02em;
}

.work-card-lyrics-btn:hover,
.work-card-lyrics-btn:focus-visible {
  opacity: 0.8;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5% 1.5rem 3%;
  background: var(--color-bg);
  color: var(--color-text);
}

.site-footer-contacts,
.site-footer-socials {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
}

.site-footer-contacts {
  min-width: 0;
}

.site-footer-contacts li + li {
  margin-top: 0.25rem;
}

.site-footer-socials {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
  justify-self: end;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.site-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}

.site-footer-socials a:hover,
.site-footer-socials a:focus-visible {
  background: #414141;
  text-decoration: none;
}

.site-footer-icon {
  display: block;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(40rem, 100%);
  max-height: 90vh;
  overflow: hidden;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: #1c1b1b;
  color: var(--color-text);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  color: var(--color-text);
  font-size: 1.75rem;
  line-height: 1;
}

.modal-scroll {
  flex: 1;
  min-height: 0;
  margin-right: -1.75rem;
  padding-right: 1.75rem;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #414141 #1c1b1b;
}

.modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.modal-scroll::-webkit-scrollbar-track {
  background: #1c1b1b;
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: #414141;
  border-radius: 4px;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: #4e4e4e;
}

.modal-title {
  margin: 0 2rem 1.5rem 0;
  font-size: var(--heading-md);
  font-weight: 300;
}

.modal-content {
  font-size: var(--text-base);
  line-height: 1.6;
}

.modal-content p {
  margin: 0 0 1.25rem;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 60vh;
    background-position: 120% 100%;
    background-size: 75% auto;
  }

  .hero-content {
    margin: calc(5vw - 5rem) 0 0 5vw;
  }

  .about-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 7%;
    margin-bottom: 1rem;
  }

  .about-text {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-inline: 3%;
  }

  .about-text p:last-child {
    margin-bottom: 0;
  }

  .about-dark {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-top: 0;
    padding: 3%;
    gap: 1.5rem;
  }

  .about-dark-text {
    margin-left: 0;
  }

  .about-dark-text p:last-child {
    margin-bottom: 0;
  }

  .about-portrait {
    width: 72%;
    margin-left: auto;
    margin-right: auto;
  }

  .about-quote {
    font-size: var(--text-md);
  }

  .works-list,
  .works-videos {
    width: min(600px, 100%);
  }
}

@media (max-width: 767px) {
  .nav {
    gap: 1rem 1.5rem;
  }

  .nav a {
    font-size: var(--text-base);
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding: 1.5rem 1.5rem 0;
    background: var(--color-bg);
  }

  .hero::after {
    content: "";
    width: 100%;
    margin-top: 1.5rem;
    aspect-ratio: 750 / 425;
    background: url("../assets/images/hero.jpg") center / contain no-repeat;
  }

  .hero-content {
    margin: 1.5rem 0 0;
    width: 100%;
  }

  .about-heading {
    margin: 1rem 0 3rem;
  }

  .about-photo {
    width: 72%;
    margin: 0 auto;
  }

  .about-portrait {
    width: 72%;
    padding-bottom: 0;
  }

  .works-list,
  .works-videos {
    width: 100%;
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .work-card-info h3 {
    font-size: var(--heading-sm);
  }

  .works-video-info h3 {
    font-size: var(--heading-sm);
  }

  .site-footer {
    gap: 1rem;
  }
}
