/*
Theme Name: Postprodukcja Dźwięku
Theme URI: https://postprodukcjadzwieku.web-zone.pl
Author: Michał Taglewski
Description:
Version: 1.0.0
Text Domain: ppd
*/

@font-face {
  font-family: "Neu Haas Grotesk";
  src: url("assets/fonts/neuehaasgrotdisp-55roman-trial.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Neu Haas Grotesk";
  src: url("assets/fonts/neuehaasgrotdisp-65medium-trial.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Neu Haas Grotesk";
  src: url("assets/fonts/neuehaasgrotdisp-75bold-trial.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #00ff00ff;
  --white: #ffffff;
  --black: #030303;
  --panel: #181919;
  --muted: #aaa;
  --border: #343636;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: #fff;
  font-family: "Neu Haas Grotesk", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.wrap {
  width: min(calc(100% - 48px),var(--max));
  margin-inline: auto;
}

.green {
  color: var(--green);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-size: 17px;
  font-weight: 600;
}

.eyebrow:before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--green);
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 21px;
  color: var(--white);
  background: rgba(0,0,0,.35);
  transition: .2s;
}

.button-border {
  border: 1px solid var(--green);
}

.button:hover, .button:focus-visible {
  background: var(--green);
  color: var(--black) !important;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  padding: 28px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 133px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 13px;
}

.site-nav a:not(.button) {
  color: #cfcfcf;
}

.site-nav a:hover {
  color: var(--green);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--green);
  background: var(--black);
  color: var(--green);
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 735px;
  display: grid;
  place-items: center;
  text-align: center;
  background: url('assets/images/hero.webp') center/cover no-repeat;
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#0002, var(--black) 60%, #030303);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 45px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px,5.4vw,78px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.055em;
}

.hero p {
  max-width: 470px;
  margin: 25px auto 28px;
  color: var(--white);
  font-size: 21px;
  line-height: 1.35;
}

.hero .button {
  font-size: 16px;
  font-weight: 700;
}

.clients {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 75px;
  color: #999;
  font-size: 13px;
  font-weight: 700;
}

.clients img {
  opacity: .7;
  max-height: 45px;
}

.mosaic {
  width: min(calc(100% - 48px),var(--max));
  margin: 0 auto 180px;
  display: grid;
  grid-template-columns: 350fr 476fr 350fr;
  grid-auto-rows: 150px;
  gap: 8px;
}

.tile {
  position: relative;
  overflow: hidden;
}

.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.tile:hover img {
  transform: scale(1.02);
}

.t1 {
  grid-column: 1;
  grid-row: 2/4;
}

.t2 {
  grid-column: 2;
  grid-row: 1/4;
}

.t3 {
  grid-column: 3;
  grid-row: 2/4;
}

.t4 {
  grid-column: 1;
  grid-row: 4/6;
}

.t5 {
  grid-column: 2;
  grid-row: 4/6;
}

.t6 {
  grid-column: 3;
  grid-row: 4/6;
}

.t7 {
  grid-column: 1;
  grid-row: 6/8;
}

.t8 {
  grid-column: 2;
  grid-row: 6/9;
}

.t9 {
  grid-column: 3;
  grid-row: 6/8;
}

.statement {
  min-height: 330px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.statement-track {
  font-size: clamp(32px,4vw,58px);
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
  transform: translateX(-16%);
}

.statement-track span {
  display: inline-block;
  margin: 0 10vw;
}

.content-block {
  padding: 100px 0;
}

.split {
  display: block;
}

.split + .split {
  margin-top: 150px;
}

.split-carousel {
  width: 100%;
}

.split-carousel.owl-carousel.owl-loaded {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 55px;
}

.split-carousel .owl-stage-outer {
  grid-column: 1 / -1;
  grid-row: 1;
}

.split-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 55px;
}

.split--left .copy {
  grid-column: 1;
  grid-row: 1;
}

.split--left .split-media {
  grid-column: 2;
  grid-row: 1;
}

.split--right .split-media {
  grid-column: 1;
  grid-row: 1;
}

.split--right .copy {
  grid-column: 2;
  grid-row: 1;
}

.copy {
  font-size: 15px;
  color: #cfcfcf;
  padding: 5px;
}

.copy .eyebrow {
  font-size: 24px;
  margin-left: 10px;
}

.copy strong {
  color: var(--green);
}

.copy-box {
  padding: 30px;
  background: var(--panel);
}

.copy-box strong {
  color: var(--white);
}

.copy-box-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.copy h3 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 16px;
}

.copy-box .number {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--white);
  border: 1px solid var(--border);
  width: 30px;
  height: 30px;
}

.split-media {
  min-height: 365px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.split-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 365px;
  object-fit: cover;
}

.split-media img[src=""] {
  visibility: hidden;
}

.split .owl-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  margin-top: -43px;
  z-index: 1;
}

.split--left .owl-nav {
  grid-column: 1;
  grid-row: 2;
}

.split--right .owl-nav {
  grid-column: 2;
  grid-row: 2;
}

.split .owl-nav button.owl-prev,
.split .owl-nav button.owl-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border: 1px solid #075b18;
  background: transparent;
  color: var(--green);
  font-size: 20px;
}

.split .owl-nav button img {
  display: block;
  width: 24px;
  height: 24px;
}

.split .owl-nav button.owl-prev:hover,
.split .owl-nav button.owl-next:hover,
.split .owl-nav button.owl-prev:focus-visible,
.split .owl-nav button.owl-next:focus-visible {
  border-color: var(--green);
}

.split .owl-nav button.disabled {
  cursor: default;
  opacity: .35;
}

.quote {
  padding: 120px 0 70px;
  text-align: center;
  font-size: clamp(33px,4vw,56px);
  font-weight: 700;
  line-height: 1.05;
}

.portfolio {
  padding: 105px 0 130px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 100px;
}

.projects {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.projects li {
  border: 1px solid #777;
  padding: 10px 16px;
}

.projects li+li {
  border-top: 0;
}

.projects .active {
  background: var(--green);
  border-color: var(--green);
  color: var(--black);
}

.player {
  margin-bottom: 36px;
}

.player-title {
  display: block;
  margin-bottom: 8px;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.play {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--green);
  background: var(--black);
  color: var(--green);
  flex: 0 0 auto;
}

.wave {
  height: 42px;
  flex: 1;
  background: repeating-linear-gradient(90deg,var(--green) 0 3px,transparent 3px 7px);
  clip-path: polygon(0 45%,4% 20%,8% 55%,12% 10%,16% 75%,20% 25%,24% 60%,28% 5%,32% 70%,36% 30%,40% 85%,44% 20%,48% 65%,52% 35%,56% 90%,60% 15%,64% 65%,68% 25%,72% 78%,76% 20%,80% 60%,84% 40%,88% 72%,92% 25%,96% 55%,100% 45%,100% 55%,0 55%);
}

.time {
  color: #aaa;
  font-size: 13px;
}

.contact {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  text-align: center;
  background: url('assets/images/kontakt.webp') center/cover no-repeat;
}

.contact:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#030303,transparent 20%,transparent 80%,#030303);
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact h2 {
  margin: 0 0 38px;
  font-size: clamp(48px,6vw,80px);
  line-height: 1;
}

.contact-box {
  max-width: 720px;
  margin: auto;
  padding: 25px 40px;
  color: var(--white);
}

.gradient-box {
  background: transparent;
  position: relative;
}

.gradient-box::before,
.gradient-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background: linear-gradient(
          45deg,
          var(--green),
          transparent 30%,
          transparent 70%,
          var(--green)
  );

  padding: 1px;
  -webkit-mask:
          linear-gradient(var(--black) 0 0) content-box,
          linear-gradient(var(--black) 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.contact .button {
  margin-top: 28px;
}

.person {
  margin-top: 30px;
}

.person strong {
  display: block;
  color: var(--green);
  font-size: 20px;
}

.person a {
  font-size: 14px;
  padding: 8px;
  font-weight: 700;
}

.person-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin-inline: auto;
}

.person-link-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.contact-separator::before {
  content: '|';
  margin-inline: 8px;
}

.social-link-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 22px;
}

.socials a {
  color: var(--green);
}

.footer {
  padding: 40px 0;
  background: var(--black);
  text-align: center;
}

.copyright {
  width: 100%;
  font-size: 11px;
  color: #777;
}

.screen-reader-text {
  position: absolute!important;
  clip: rect(1px,1px,1px,1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media(max-width:800px) {
  .wrap {
    width: min(calc(100% - 32px),var(--max));
  }

  .site-header {
    padding: 18px 0;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: #050505;
    flex-direction: column;
    justify-content: center;
    font-size: 22px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav .button {
    font-size: 16px;
  }

  .hero {
    min-height: 690px;
  }

  .clients {
    gap: 20px;
    flex-wrap: wrap;
  }

  .mosaic {
    width: calc(100% - 32px);
    grid-auto-rows: 90px;
    margin-bottom: 80px;
  }

  .statement {
    min-height: 210px;
  }

  .statement-track {
    white-space: normal;
    transform: none;
    padding: 0 16px;
  }

  .statement-track span {
    display: none;
  }

  .split {
    display: block;
  }

  .split + .split {
    margin-top: 90px;
  }

  .split-slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .split-carousel.owl-carousel.owl-loaded {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .split--left .owl-nav,
  .split--right .owl-nav {
    grid-column: 1;
    grid-row: 2;
  }

  .split--left .split-media,
  .split--right .split-media {
    grid-column: 1;
    grid-row: 1;
  }

  .split--left .copy,
  .split--right .copy {
    grid-column: 1;
    grid-row: 2;
  }

  .content-block {
    padding: 60px 0;
  }

  .split-media,
  .split-media img {
    min-height: 280px;
  }

  .quote {
    padding: 80px 0 30px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .contact {
    min-height: 680px;
  }

  .contact-box {
    padding: 22px;
  }

  .copyright {
    padding: 0 20px;
  }
}

@media(max-width:480px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 14px;
  }

  .clients {
    margin-top: 50px;
  }

  .mosaic {
    gap: 4px;
    grid-auto-rows: 62px;
  }

  .contact h2 {
    font-size: 45px;
  }

}
