:root {
  --bg: #0f0e0a;
  --ink: #fff0df;
  --muted: #c9beb2;
  --line: rgba(255, 240, 223, 0.52);
  --pill: rgba(18, 16, 12, 0.5);
  --top-space: clamp(16px, 1.72vw, 33px);
  --frame: min(1800px, 100%);
  --content: min(1800px, calc(100vw - 58px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding-top: var(--top-space);
  color: var(--ink);
  background: var(--bg);
  font-family: Montserrat, Poppins, "Segoe UI", Arial, sans-serif;
  line-height: 1.25;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  width: min(1718px, calc(100vw - clamp(32px, 10.2vw, 196px)));
  min-height: clamp(92px, 8.125vw, 156px);
  margin: 0 auto clamp(20px, 1.56vw, 30px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.2vw, 42px);
  border-radius: 92px;
  padding: clamp(16px, 1.35vw, 26px) clamp(22px, 2.4vw, 46px);
  background: var(--pill);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.56vw, 30px);
  min-width: 0;
  font-size: clamp(23px, 2.2vw, 42px);
  color: var(--muted);
  white-space: nowrap;
}

.brand img {
  width: clamp(44px, 3.33vw, 64px);
  height: clamp(44px, 3.33vw, 64px);
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(34px, 3vw, 66px);
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 19px);
  font-weight: 700;
}

.menu-toggle {
  display: none;
}

.main-nav a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
}

.nav-contact {
  display: inline-grid;
  min-width: clamp(130px, 13.17vw, 253px);
  min-height: clamp(56px, 5vw, 96px);
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
}

.hero {
  width: 100%;
  height: clamp(360px, 37.97vw, 729px);
  overflow: hidden;
  background: #090806;
  scroll-margin-top: 180px;
}

.hero img,
.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-frame {
  width: var(--content);
  margin: 0 auto;
}

.about {
  padding: 53px 0 128px;
  scroll-margin-top: 180px;
}

.about-title {
  text-align: center;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  font-size: clamp(44px, 5.5vw, 106px);
}

.about-title p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.3vw, 27px);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 126px;
  width: min(1328px, 100%);
  margin: 64px auto 0;
}

.about-content p {
  margin: 0;
  max-width: 810px;
  color: var(--ink);
  font-size: clamp(24px, 2vw, 39px);
  letter-spacing: 0;
  text-align: justify;
}

.about-content strong {
  font-weight: 900;
}

.about-photo {
  width: clamp(286px, 22.11vw, 425px);
  height: clamp(286px, 22.11vw, 425px);
  justify-self: center;
  background: var(--bg);
  mix-blend-mode: lighten;
  object-fit: contain;
}

.works {
  padding: 0 0 58px;
  scroll-margin-top: 180px;
}

.works h2,
.brands h2 {
  text-align: center;
  font-size: clamp(48px, 5.35vw, 104px);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 29px;
  margin-top: 27px;
}

.video-item {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.video-item a {
  display: block;
}

.video-item img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  background: #d9d9d9;
  transition: transform 180ms ease, filter 180ms ease;
}

.video-item:hover img {
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.015);
}

.video-item p {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(18px, 1.45vw, 30px);
  font-weight: 900;
}

.more-button {
  display: grid;
  width: 425px;
  max-width: 88vw;
  min-height: 90px;
  place-items: center;
  margin: 47px auto 0;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: clamp(18px, 1.3vw, 27px);
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease;
}

.more-button:hover,
.more-button:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.videos-page {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(46px, 5vw, 96px) 0 clamp(92px, 8vw, 154px);
}

.videos-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(1520px, 100%);
  margin: 0 auto;
}

.videos-page-card {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: #d9d9d9;
}

.videos-page-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 180ms ease, transform 180ms ease;
}

.videos-page-card:hover img,
.videos-page-card:focus-visible img {
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.025);
}

.video-detail-page {
  width: 100%;
}

.video-player-section {
  width: 100%;
  background: #d9d9d9;
}

.video-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(360px, 56.25vw, 1080px);
  border: 0;
  background: #d9d9d9;
}

.video-info-section {
  padding: clamp(44px, 4vw, 74px) clamp(28px, 2vw, 55px)
    clamp(88px, 9vw, 170px);
}

.video-info-section h1 {
  font-size: clamp(48px, 4.9vw, 98px);
  font-weight: 300;
  line-height: 1.08;
}

.video-info-section p {
  max-width: 1500px;
  margin: clamp(34px, 3vw, 62px) 0 0;
  color: var(--ink);
  font-size: clamp(22px, 1.85vw, 38px);
  line-height: 1.18;
}

.video-info-section strong {
  font-weight: 900;
}

.video-credits {
  margin-top: clamp(48px, 4.7vw, 90px);
}

.video-credits h2 {
  font-family: inherit;
  font-size: clamp(23px, 1.75vw, 36px);
  font-weight: 900;
  line-height: 1.15;
}

.video-credits ul {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  color: var(--ink);
  font-size: clamp(20px, 1.6vw, 32px);
  line-height: 1.2;
  list-style: none;
}

.video-credits li::before {
  content: "- ";
}

.video-detail-footer {
  display: flex;
  width: var(--content);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 clamp(48px, 5vw, 96px);
}

.back-to-videos {
  color: var(--ink);
  font-size: clamp(18px, 1.3vw, 26px);
  font-weight: 300;
}

.video-footer-signature {
  width: clamp(82px, 6.2vw, 120px);
  height: clamp(82px, 6.2vw, 120px);
  object-fit: contain;
}

.brands {
  padding: 0 0 76px;
  scroll-margin-top: 180px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 94px 104px;
  width: min(1640px, 100%);
  margin: 118px auto 0;
  align-items: center;
  justify-items: center;
}

.logo-grid img {
  width: clamp(96px, 7.4vw, 148px);
  height: clamp(96px, 7.4vw, 148px);
  object-fit: contain;
  outline: 0;
  transition: transform 160ms ease;
}

.logo-grid img:hover,
.logo-grid img:focus-visible {
  transform: translateY(-5px) scale(1.03);
}

.and-more {
  margin: 93px 0 0;
  color: var(--muted);
  font-size: clamp(28px, 2vw, 45px);
  text-align: center;
}

.contact-section {
  width: var(--content);
  margin: 0 auto;
  padding: 48px 0 90px;
  scroll-margin-top: 180px;
}

.contact-card {
  display: grid;
  min-height: 333px;
  place-items: center;
  gap: 28px;
  border: 1.5px solid var(--line);
  border-radius: 25px;
  padding: 46px 24px;
  text-align: center;
}

.contact-card h2 {
  font-size: clamp(35px, 3.65vw, 70px);
}

.contact-button {
  display: inline-grid;
  min-width: 398px;
  min-height: 92px;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: clamp(16px, 1.05vw, 22px);
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}

.footer-signature {
  width: 166px;
  height: 166px;
  margin: 155px auto 0;
  object-fit: contain;
}

.email-dialog {
  width: min(92vw, 640px);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 0;
  color: var(--ink);
  background: rgba(15, 14, 10, 0.97);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
}

.email-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.email-form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 48px);
}

.email-form h2 {
  padding-right: 44px;
  font-size: clamp(34px, 4vw, 52px);
}

.email-form label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.email-form input,
.email-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 240, 223, 0.34);
  border-radius: 12px;
  padding: 15px 16px;
  color: var(--ink);
  background: rgba(255, 240, 223, 0.06);
  resize: vertical;
}

.close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 240, 223, 0.34);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .site-header {
    top: 0;
    width: calc(100vw - 32px);
    min-height: 92px;
    margin: 0 auto 20px;
    padding: 16px 22px;
  }

  .brand {
    gap: 14px;
    font-size: 23px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .main-nav {
    gap: 22px;
    font-size: 14px;
  }

  .nav-contact {
    min-width: 130px;
    min-height: 56px;
  }

  .hero,
  .hero img,
  .hero video {
    height: 420px;
    min-height: 0;
  }

  .about-content {
    grid-template-columns: 1fr 300px;
    gap: 48px;
  }

  .about-photo {
    width: 330px;
    height: 330px;
  }

  .logo-grid {
    gap: 62px 54px;
  }
}

@media (max-width: 760px) {
  :root {
    --content: min(100%, calc(100vw - 32px));
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-radius: 34px;
    gap: 8px 14px;
    margin-bottom: 18px;
  }

  .brand {
    width: auto;
    justify-content: flex-start;
    overflow: hidden;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
  }

  .menu-toggle-icon {
    position: relative;
    width: 15px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }

  .site-header.is-menu-open .menu-toggle-icon {
    height: 15px;
    border: 0;
  }

  .site-header.is-menu-open .menu-toggle-icon::before,
  .site-header.is-menu-open .menu-toggle-icon::after {
    position: absolute;
    top: 6px;
    left: 0;
    width: 15px;
    height: 2px;
    background: currentColor;
    content: "";
  }

  .site-header.is-menu-open .menu-toggle-icon::before {
    transform: rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle-icon::after {
    transform: rotate(-45deg);
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-top: 0 solid transparent;
    opacity: 0;
    pointer-events: none;
    font-size: 12px;
    transition: max-height 220ms ease, opacity 160ms ease, padding 160ms ease,
      border-color 160ms ease;
  }

  .site-header.is-menu-open .main-nav {
    max-height: 270px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 240, 223, 0.2);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
  }

  .nav-contact {
    min-width: auto;
    min-height: auto;
    padding: 8px 16px;
  }

  .hero,
  .hero img,
  .hero video {
    height: 440px;
    min-height: 0;
  }

  .about {
    padding-top: 44px;
  }

  .about-content {
    grid-template-columns: 1fr;
    margin-top: 34px;
    gap: 28px;
  }

  .about-content p {
    text-align: left;
  }

  .about-photo {
    width: min(90vw, 352px);
    height: min(90vw, 352px);
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .videos-page-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .video-info-section {
    padding-inline: 18px;
  }

  .video-detail-footer {
    align-items: flex-end;
    padding-bottom: 52px;
  }

  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 26px;
    margin-top: 54px;
  }

  .and-more {
    margin-top: 52px;
  }

  .contact-card {
    min-height: 250px;
  }

  .contact-button {
    min-width: min(100%, 300px);
    min-height: 62px;
  }

  .footer-signature {
    margin-top: 80px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 39px;
  }

  .works h2,
  .brands h2 {
    font-size: 38px;
  }

  .brand {
    font-size: 21px;
  }

  .main-nav {
    gap: 0;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero img,
  .hero video {
    height: 360px;
    min-height: 0;
  }

  .about-content p {
    font-size: 21px;
  }
}
