:root {
  --eg-pink: #ebbcba;
  --eg-pink-deep: #e6a8a6;
  --eg-yellow: #ffe882;
  --eg-ink: #1d1e20;
  --eg-white: #fff;
  --serif: "Libre Caslon Display", serif;
  --sans: Nunito, sans-serif;
  --caps: Montserrat, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--eg-ink);
  font-family: var(--sans);
  background: var(--eg-white);
}

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

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

.eg-header {
  position: relative;
  z-index: 20;
}

.home .eg-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

body:not(.home) .eg-header {
  background-image: var(--eg-hero-bg, url("../images/pink-texture.png"));
  background-size: cover;
  background-position: center top;
}

.eg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 40px 18px;
}

.eg-logo {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--eg-white);
  letter-spacing: 0.02em;
}

.eg-nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--eg-white);
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
}

.eg-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eg-menu a {
  color: var(--eg-white);
  font-size: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.eg-menu .current-menu-item > a,
.eg-menu a:hover {
  border-bottom-color: var(--eg-white);
}

.eg-hero {
  min-height: 732px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background-image: var(--eg-hero-bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: 80px 6vw 40px;
}

.eg-hero__content {
  max-width: 640px;
  padding-left: 4vw;
  color: var(--eg-white);
}

.eg-hero h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 400;
  line-height: 0.95;
  margin: 0 0 18px;
}

.eg-hero__tagline {
  font-size: 32px;
  margin: 0 0 28px;
}

.eg-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--eg-white);
  color: var(--eg-white);
  font-family: var(--caps);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.eg-hero__portrait {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.eg-hero__portrait img {
  width: min(560px, 46vw);
  max-height: 680px;
  object-fit: cover;
  object-position: center top;
}

.eg-work {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 36px;
  min-height: 416px;
  padding: 56px 24px 72px;
  background: rgba(255, 232, 130, 0.84);
}

.eg-blob {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 360px;
}

.eg-blob__image {
  display: block;
  overflow: hidden;
}

.eg-blob__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eg-blob--performance .eg-blob__image {
  width: 351px;
  height: 234px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M121.089 0C174.339 0 200 65.9669 200 126.582C200 171.887 160.89 200 121.089 200C67.5113 200 0 187.57 0 126.582C0 53.4983 56.886 0 121.089 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M121.089 0C174.339 0 200 65.9669 200 126.582C200 171.887 160.89 200 121.089 200C67.5113 200 0 187.57 0 126.582C0 53.4983 56.886 0 121.089 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.eg-blob--directing .eg-blob__image,
.eg-blob--producing .eg-blob__image {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M168.562 42.5672C184.281 55.141 200 76.1523 200 99.8108C200 123.635 184.127 150.271 157.312 171.283C130.497 192.294 92.8952 207.68 62.9983 195.934C33.1014 184.187 11.064 145.473 3.2045 104.278C-4.655 63.2477 1.81753 19.9014 24.009 5.83869C46.2005 -8.38948 84.111 6.66591 110.772 16.2617C137.432 25.8574 152.997 29.9935 168.562 42.5672Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M168.562 42.5672C184.281 55.141 200 76.1523 200 99.8108C200 123.635 184.127 150.271 157.312 171.283C130.497 192.294 92.8952 207.68 62.9983 195.934C33.1014 184.187 11.064 145.473 3.2045 104.278C-4.655 63.2477 1.81753 19.9014 24.009 5.83869C46.2005 -8.38948 84.111 6.66591 110.772 16.2617C137.432 25.8574 152.997 29.9935 168.562 42.5672Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.eg-blob--directing .eg-blob__image {
  width: 374px;
  height: 250px;
}

.eg-blob--producing .eg-blob__image {
  width: 223px;
  height: 281px;
}

.eg-blob__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 166px;
  height: 45px;
  padding: 0 18px;
  background: var(--eg-pink);
  color: var(--eg-white);
  font-family: var(--caps);
  font-size: 17px;
}

.eg-about {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 40px 80px;
  align-items: start;
}

.eg-about h2,
.eg-contact h2,
.eg-gallery-wrap h2,
.eg-show__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  margin: 0 0 18px;
}

.eg-about p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 34em;
}

.eg-about__photo img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.eg-contact {
  background: var(--eg-pink);
  color: var(--eg-white);
  padding: 56px 40px 80px;
}

.eg-contact__follow {
  max-width: 1100px;
  margin: 0 auto 12px;
}

.eg-instagram {
  display: inline-flex;
  color: var(--eg-white);
}

.eg-contact__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.eg-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.eg-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.eg-form input,
.eg-form textarea {
  border: 0;
  border-radius: 2px;
  padding: 10px 12px;
  font: 16px var(--sans);
}

.eg-form button {
  justify-self: start;
  background: transparent;
  color: var(--eg-white);
  border: 1px solid var(--eg-white);
  font-family: var(--caps);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 28px;
  cursor: pointer;
}

.eg-contact__thanks {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.2;
  padding-top: 48px;
}

.eg-form-note {
  font-weight: 700;
}

.eg-form-note--error {
  color: #5b1d1d;
}

.eg-page {
  background: var(--eg-white);
}

.eg-credits {
  background: #000;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 48px 24px 64px;
}

.eg-credits--directing {
  min-height: 560px;
}

.eg-credits__item {
  position: relative;
}

.eg-credits__photo {
  width: min(320px, 34vw);
  border-radius: 6px;
}

.eg-credits__resume {
  width: min(360px, 38vw);
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.eg-sticker {
  position: absolute;
  z-index: 2;
  left: -70px;
  top: -30px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--eg-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eg-white);
  font-family: var(--serif);
  font-size: 36px;
}

.eg-sticker::before {
  content: "";
  position: absolute;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--eg-yellow);
  left: -28px;
  top: -18px;
  z-index: -1;
}

.eg-sticker--resume {
  left: auto;
  right: -80px;
  top: 40px;
}

.eg-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 980px;
  margin: 48px auto 24px;
  padding: 0 24px;
}

.eg-video {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

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

.eg-gallery-wrap,
.eg-show {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  text-align: center;
}

.eg-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.eg-gallery img,
.eg-show__grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.eg-show__title {
  display: inline-block;
  background: var(--eg-pink);
  color: var(--eg-white);
  padding: 8px 28px;
  font-size: 42px;
}

.eg-show__credit {
  font-family: var(--serif);
  font-size: 20px;
  margin: 12px 0 28px;
}

.eg-show__grid {
  display: grid;
  gap: 16px;
}

.eg-show__grid--1 {
  grid-template-columns: repeat(3, 1fr);
}

.eg-show__grid--1 img:nth-child(4),
.eg-show__grid--1 img:nth-child(5) {
  grid-column: span 1;
}

.eg-show__grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.eg-simple {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

@media (max-width: 900px) {
  .eg-nav-toggle {
    display: block;
  }

  .eg-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(90, 60, 60, 0.96);
    padding: 16px 24px 24px;
  }

  .eg-nav.is-open {
    display: block;
  }

  .eg-menu {
    flex-direction: column;
    gap: 14px;
  }

  .eg-hero,
  .eg-about,
  .eg-contact__grid,
  .eg-videos {
    grid-template-columns: 1fr;
  }

  .eg-hero {
    min-height: auto;
    padding-top: 96px;
    text-align: center;
  }

  .eg-hero__content {
    padding: 0;
  }

  .eg-hero__portrait {
    justify-content: center;
  }

  .eg-work {
    flex-direction: column;
    align-items: center;
  }

  .eg-credits {
    flex-direction: column;
  }

  .eg-gallery,
  .eg-show__grid--1,
  .eg-show__grid--2 {
    grid-template-columns: 1fr;
  }

  .eg-sticker,
  .eg-sticker--resume {
    left: 12px;
    right: auto;
    top: -24px;
    width: 120px;
    height: 120px;
    font-size: 24px;
  }
}
