:root {
  --primary: #0f766e;
  --secondary: #171717;
  --anthracite: #171717;
  --ink: #171717;
  --muted: #626a73;
  --paper: #ffffff;
  --soft: #f8f9fa;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

.container {
  width: min(1170px, calc(100% - 36px));
  margin: 0 auto;
}

.layout-padding {
  padding: 75px 0;
}

.hero-area {
  position: relative;
  min-height: 98vh;
  overflow: hidden;
  background: var(--paper);
}

.hero-area::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  height: 102%;
  background: rgba(15, 118, 110, 0.56);
  clip-path: polygon(0 0, 100% 0, 100% 73%, 0 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 102%;
  object-fit: cover;
  opacity: 0.9;
  clip-path: polygon(0 0, 100% 0, 100% 73%, 0 100%);
}

.header-section {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 25px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  width: clamp(82px, 9vw, 126px);
  min-width: 0;
}

.navbar-brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-button {
  width: 42px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 35px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.lang-button.is-active,
.lang-button:hover {
  background: #fff;
  color: var(--primary);
}

.menu-button {
  position: relative;
  z-index: 30;
  width: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-button span {
  display: block;
  width: 35px;
  height: 5px;
  margin: 7px 0;
  background: #fff;
  transition: transform 0.3s, opacity 0.2s;
}

.menu-button.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 8px);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(9px, -8px);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  width: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.9);
  transition: width 0.45s;
}

.overlay.is-open {
  width: 100%;
}

.overlay-content {
  display: grid;
  gap: 22px;
  text-align: center;
}

.overlay-content a {
  color: #f1f1f1;
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 700;
  text-transform: uppercase;
}

.overlay-content a:hover {
  color: var(--secondary);
}

.slider-section {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: calc(98vh - 80px);
  padding: 20px clamp(18px, 6vw, 90px) 120px;
  text-align: center;
}

.hero-copy {
  max-width: 880px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.02;
  text-transform: uppercase;
}

.hero-copy h1 span,
.hero-copy h1 em {
  display: block;
  font-style: normal;
}

.hero-copy h1 em {
  color: var(--anthracite);
}

.hero-copy p {
  margin: 24px 0 34px;
  color: #fff;
  font-size: 16px;
}

.hero-button,
.about-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 32px;
  border: 2px solid currentColor;
  border-radius: 35px;
  font-weight: 600;
}

.hero-button {
  color: #fff;
}

.hero-button:hover {
  background: #fff;
  color: var(--ink);
}

.about-section,
.portfolio-section {
  text-align: center;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  text-transform: uppercase;
}

.section-intro {
  max-width: 780px;
  margin: 0 auto;
  color: var(--muted);
}

.about-card-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 45px;
}

.about-card {
  min-width: 0;
  display: flex;
}

.about-detail {
  flex: 1;
  width: 100%;
  min-height: 360px;
  padding: 30px 25px 35px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-img-box {
  display: grid;
  place-items: center;
  width: 124px;
  height: 118px;
  margin: 12px auto 36px;
}

.about-img-box img {
  width: 118px;
  height: 118px;
  object-fit: contain;
}

.about-card h3 {
  min-height: 58px;
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.15;
  text-transform: uppercase;
}

.about-card p {
  margin: 0;
  color: var(--muted);
}

.about-card a {
  margin-top: 32px;
  color: var(--secondary);
}

.about-card a:hover {
  background: var(--primary);
  color: #fff;
}

.portfolio-section {
  background: var(--soft);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 45px;
  text-align: left;
}

.portfolio-item {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 18px;
  background: #222;
  box-shadow: var(--shadow);
}

.portfolio-large {
  grid-column: span 2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.project-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  opacity: 0;
  animation: projectFade 24s infinite;
}

.project-slides img:nth-child(1) {
  animation-delay: 0s;
}

.project-slides img:nth-child(2) {
  animation-delay: 4s;
}

.project-slides img:nth-child(3) {
  animation-delay: 8s;
}

.project-slides img:nth-child(4) {
  animation-delay: 12s;
}

.project-slides img:nth-child(5) {
  animation-delay: 16s;
}

.project-slides img:nth-child(6) {
  animation-delay: 20s;
}

.portfolio-slideshow-4 .project-slides img {
  animation-name: projectFadeFour;
  animation-duration: 16s;
}

.portfolio-slideshow-4 .project-slides img:nth-child(1) {
  animation-delay: -2s;
}

.portfolio-slideshow-4 .project-slides img:nth-child(2) {
  animation-delay: 2s;
}

.portfolio-slideshow-4 .project-slides img:nth-child(3) {
  animation-delay: 6s;
}

.portfolio-slideshow-4 .project-slides img:nth-child(4) {
  animation-delay: 10s;
}

.portfolio-slideshow-jumpyard .project-slides img {
  animation-name: projectFadeFour;
  animation-duration: 16s;
}

.portfolio-slideshow-jumpyard .project-slides img:nth-child(1) {
  animation-delay: -10s;
}

.portfolio-slideshow-jumpyard .project-slides img:nth-child(2) {
  animation-delay: -6s;
}

.portfolio-slideshow-jumpyard .project-slides img:nth-child(3) {
  animation-delay: -2s;
}

.portfolio-slideshow-jumpyard .project-slides img:nth-child(4) {
  animation-delay: 2s;
}

.portfolio-slideshow-trib3 .project-slides img:nth-child(1) {
  animation-delay: -6s;
}

.portfolio-slideshow-trib3 .project-slides img:nth-child(2) {
  animation-delay: -2s;
}

.portfolio-slideshow-trib3 .project-slides img:nth-child(3) {
  animation-delay: 2s;
}

.portfolio-slideshow-trib3 .project-slides img:nth-child(4) {
  animation-delay: 6s;
}

.portfolio-slideshow-trib3 .project-slides img:nth-child(5) {
  animation-delay: 10s;
}

.portfolio-slideshow-trib3 .project-slides img:nth-child(6) {
  animation-delay: 14s;
}

@keyframes projectFade {
  0%,
  12% {
    opacity: 1;
  }

  18%,
  100% {
    opacity: 0;
  }
}

@keyframes projectFadeFour {
  0%,
  18% {
    opacity: 1;
  }

  25%,
  100% {
    opacity: 0;
  }
}

.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.portfolio-item > div:not(.project-slides) {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 1;
  color: #fff;
}

.portfolio-item span {
  display: block;
  margin-bottom: 4px;
  color: #d4f5ef;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.portfolio-item h3 {
  margin: 0 0 4px;
  font-size: 24px;
  text-transform: uppercase;
}

.portfolio-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

@media (prefers-reduced-motion: reduce) {
  .project-slides img {
    animation: none;
  }

  .project-slides img:first-child {
    opacity: 1;
  }
}

.contact-section {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.clients-section {
  background: var(--soft);
}

.clients-section h2,
.clients-section .section-intro {
  text-align: center;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 34px;
}

.client-logo {
  display: grid;
  place-items: center;
  min-height: 105px;
  padding: 18px 28px;
}

.client-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.client-logo-square img {
  max-height: 66px;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 64%;
  background: var(--primary);
  clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%);
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.contact-copy p {
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-card a {
  width: fit-content;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
}

.contact-card a:hover {
  color: var(--secondary);
}

.contact-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-section {
  padding: 24px 18px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-size: 13px;
}

.footer-logo {
  width: min(220px, 62vw);
  margin: 0 auto 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;
  font-weight: 600;
}

.footer-links a:hover {
  color: #d4f5ef;
}

.footer-section p {
  margin: 0;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.cookie-copy p {
  margin: 0 0 8px;
  color: var(--muted);
}

.cookie-copy a {
  color: var(--secondary);
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-button {
  min-height: 42px;
  padding: 8px 18px;
  border: 2px solid var(--ink);
  border-radius: 35px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.cookie-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.cookie-outline:hover,
.cookie-primary:hover {
  border-color: var(--secondary);
  background: var(--secondary);
  color: #fff;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.cookie-modal-card {
  width: min(620px, 100%);
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  box-shadow: var(--shadow);
}

.cookie-modal-card h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.cookie-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid #e2e2e2;
}

.cookie-option input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.cookie-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.legal-page {
  background: var(--soft);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 56px);
  background: var(--primary);
}

.legal-header .navbar-brand img {
  filter: none;
}

.legal-back {
  color: #fff;
  font-weight: 700;
}

.legal-main {
  width: min(960px, calc(100% - 36px));
  margin: 42px auto;
  padding: clamp(24px, 5vw, 56px);
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-main h1 {
  margin: 0 0 22px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
  text-transform: uppercase;
}

.legal-main h2 {
  margin-top: 34px;
  font-size: clamp(22px, 3vw, 30px);
}

.legal-main p {
  color: var(--muted);
}

.legal-main a {
  color: var(--secondary);
  font-weight: 700;
}

.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 12px;
  border: 1px solid #e2e2e2;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 1120px) {
  .hero-area {
    min-height: auto;
  }

  .slider-section {
    min-height: auto;
    padding-bottom: 150px;
  }

  .about-card-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .slider-section {
    padding-top: 35px;
  }

  .hero-copy {
    max-width: none;
    margin: 0 auto;
  }

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

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

  .portfolio-large {
    grid-column: auto;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .clients-grid {
    gap: 10px;
    margin-top: 26px;
  }

  .client-logo {
    min-height: 82px;
    padding: 14px 12px;
  }

  .client-logo img {
    max-height: 38px;
  }

  .client-logo-square img {
    max-height: 48px;
  }

  .layout-padding {
    padding: 46px 0;
  }

  .about-section h2 {
    font-size: 24px;
  }

  .about-section .section-intro {
    font-size: 13px;
  }

  .about-card-container {
    gap: 12px;
    margin-top: 24px;
  }

  .about-detail {
    display: grid;
    grid-template-columns: 54px 1fr;
    column-gap: 14px;
    row-gap: 8px;
    align-items: center;
    padding: 14px 16px;
    text-align: left;
  }

  .about-img-box {
    width: 54px;
    height: 54px;
    margin: 0;
  }

  .about-img-box img {
    width: 54px;
    height: 54px;
  }

  .about-card h3 {
    min-height: 0;
    margin-bottom: 6px;
    font-size: 15px;
  }

  .about-card p {
    grid-column: 1 / -1;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
  }

  .header-section {
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
  }

  .navbar-brand {
    width: min(96px, 26vw);
  }

  .header-actions {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .language-switcher {
    gap: 0;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(23, 23, 23, 0.18);
  }

  .lang-button {
    width: 30px;
    height: 27px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    font-size: 11px;
  }

  .menu-button {
    width: 34px;
  }

  .menu-button span {
    width: 30px;
    height: 3px;
    margin: 6px 0;
  }

  .menu-button.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 7px);
  }

  .menu-button.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }

  .about-detail {
    min-height: auto;
  }

  .legal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-actions,
  .cookie-button {
    width: 100%;
  }
}
