:root {
  --dark: #1d1d1b;
  --acid: #dcdd39;
  --white: #fff;
  --header-h: 98px;
  --header-anchor-h: 70px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--acid);
  color: var(--dark);
}

.site-header {
  background: rgba(29, 29, 27, 0.96);
  border-bottom: 2px solid var(--acid);
  backdrop-filter: blur(12px);
  transition: padding 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
}

.site-header .navbar {
  min-height: var(--header-h);
  padding: 0;
  transition: min-height 0.45s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.site-header.is-scrolled .navbar {
  min-height: 70px;
}

.brand-logo {
  width: 230px;
  transition: width 0.45s ease, transform 0.45s ease;
}

.site-header.is-scrolled .brand-logo {
  width: 165px;
}

.main-nav {
  gap: clamp(1.2rem, 3vw, 3.8rem);
}

.main-nav .nav-link {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.07rem;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 1rem 0.5rem 0;
  transition: font-size 0.45s ease, opacity 0.3s ease;
}

.site-header.is-scrolled .main-nav .nav-link {
  font-size: 0.78rem;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.main-nav .nav-link.active {
  color: var(--white);
}

.main-nav .nav-link::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 0.56rem;
  height: 0.56rem;
  background: var(--acid);
  transform: translateY(-50%) scale(0.35);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.main-nav .nav-link:hover::before,
.main-nav .nav-link:focus::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.social-links a {
  color: var(--acid);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.3s ease, font-size 0.45s ease;
}

.site-header.is-scrolled .social-links a {
  font-size: 1.08rem;
}

.social-links a:hover {
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none !important;
  border-radius: 0;
  box-shadow: none;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(220, 221, 57, 0.35);
}

.navbar-toggler-icon {
  filter: invert(1);
}

main {
  overflow: hidden;
}

.video-hero {
  min-height: 800px;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.video-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-divider {
  border-top: 2px solid var(--acid);
}

section[id] {
  scroll-margin-top: var(--header-anchor-h);
}

.section-pad {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.section-pad .title {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  font-style: italic;
}

.section-pad .title .big {
  font-size: 5rem;
  color: #dcdd39;
}


.intro-section {
  padding-top: clamp(5.8rem, 8vw, 8.5rem);
  padding-bottom: clamp(5.8rem, 8vw, 8.5rem);
}

.section-title-img {
  width: min(400px, 80vw);
  display: block;
}

.intro-row .col-lg-7 {
  padding-top: clamp(2rem, 7vw, 8rem);
}

.intro-copy {
  max-width: 580px;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 400;
}

.intro-copy strong,
.contact-copy strong {
  font-weight: 900;
}

.logo-marquee,
.slogan-marquee {
  width: 100%;
  overflow: hidden;
}

.video-scroll-indicator {
  display: none;
}

.video-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  color: var(--acid);
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  transform: translateX(-50%);
  animation: bob 1.5s ease-in-out infinite;
  z-index: 1;
}

.video-scroll-indicator i {
  font-size: 1rem;
  color: #1d1d1b;
}

@keyframes bob {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

.logo-track,
.slogan-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.logo-set {
  --logo-gap: clamp(2.25rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  padding-top: 2rem;
  padding-right: var(--logo-gap);
  padding-bottom: 5rem;
}

.logo-set img {
  flex: 0 0 clamp(160px, 17vw, 220px);
  width: clamp(160px, 17vw, 220px);
  height: 76px;
  object-fit: contain;
  object-position: center;
}

.logo-set img[src="assets/img/logo.svg"] {
  transform: scale(0.82);
}

.logo-set img[src="assets/img/hidea.svg"]+img[src="assets/img/stampa-incanta.svg"] {
  margin-left: -2.75rem;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.services-accordion {
  border-top: 0;
}

.services-accordion .accordion-item {
  background: transparent;
  color: var(--white);
  border: 0;
  border-bottom: 2px solid var(--acid);
  border-radius: 0;
}

.services-accordion .accordion-item:last-child {
  border-bottom: 0;
}

.services-accordion .accordion-button {
  background: transparent;
  color: var(--white);
  padding: 1.35rem 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 900;
}

.services-accordion .accordion-button::after {
  width: auto;
  height: auto;
  margin-left: auto;
  background-image: none;
  content: "+";
  color: var(--acid);
  font-size: 2rem;
  font-weight: 400;
  transform: none;
}

.services-accordion .accordion-button:not(.collapsed)::after {
  content: "-";
}

.services-accordion .accordion-body {
  max-width: 800px;
  padding: 0 0 2.2rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

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

.works-gallery {
  width: min(100%, 1100px);
  height: auto;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5rem) 1.25rem 16vh;
  perspective: 100rem;
  transform-style: preserve-3d;
}

.work-card {
  --stack-rotate: 0deg;
  --stack-y: 0px;
  --stack-z: 0px;
  --stack-scale: 1;
  --stack-opacity: 1;
  --sticky-offset: var(--sticky-offset-desktop, 1.6rem);
  position: sticky;
  top: calc(var(--header-h) + var(--sticky-offset));
  width: min(72vw, 1200px);
  margin: 0 auto 12vh;
  border-radius: 0.65rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  transform-origin: center top;
  transform: translate3d(0, var(--stack-y), var(--stack-z)) rotate(var(--stack-rotate)) scale(var(--stack-scale));
  opacity: var(--stack-opacity);
  transform-style: preserve-3d;
  will-change: transform;
}

.work-card:last-child {
  margin-bottom: 6vh;
}

.work-card img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.contact-section {
  border-top: 2px solid var(--acid);
}

.contact-section h2 {
  color: var(--acid);
  font-size: clamp(2.5rem, 5vw, 2.5rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 2.8rem;
  text-transform: uppercase;
}

.contact-section h2 .big {
  font-size: 5.5rem;
}

.contact-intro {
  max-width: 350px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
}

.contact-form {
  margin-top: 7rem;
}

.contact-status {
  display: none;
  margin-bottom: 2rem;
  padding: 1rem 1.15rem;
  border: 2px solid var(--acid);
  color: var(--white);
  font-size: 1rem;
  line-height: 1.45;
}

.contact-status.is-visible {
  display: block;
}

.contact-status.is-success {
  background: rgba(220, 221, 57, 0.12);
}

.contact-status.is-error {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.contact-form .form-label {
  color: var(--white);
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.contact-form .form-control {
  min-height: 58px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--acid);
  border-radius: 0;
  color: var(--white);
  padding: 0.85rem 0;
}

.contact-form .form-control:focus {
  background: transparent;
  border-color: var(--acid);
  color: var(--white);
  box-shadow: none;
}

.contact-form .invalid-feedback {
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.35;
}

.contact-form.was-validated .form-control:invalid {
  border-bottom-color: var(--white);
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: -1rem 0 2.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.privacy-copy {
  flex: 1 1 auto;
}

.privacy-consent .invalid-feedback {
  margin-top: 0.35rem;
}

.privacy-consent .form-check-input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.1rem 0 0;
  border: 1px solid var(--acid);
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

.privacy-consent .form-check-input:checked {
  border-color: var(--acid);
  background-color: var(--acid);
}

.privacy-consent .form-check-input:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 0.2rem rgba(220, 221, 57, 0.2);
}

.contact-form.was-validated .privacy-consent .form-check-input:invalid {
  border-color: var(--white);
}

.contact-form.was-validated .privacy-consent .form-check-input:invalid~.privacy-copy .invalid-feedback {
  display: block;
}

.privacy-consent a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.privacy-consent a:hover,
.privacy-consent a:focus {
  color: var(--acid);
}

.submit-btn {
  background: var(--acid);
  color: var(--dark);
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.14em;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.triangle-a {
  width: 0.78em;
  height: 0.78em;
  display: inline-block;
  background: currentColor;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  transform: translateY(-0.03em);
}

.submit-btn:hover,
.submit-btn:focus {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

.preview-btn {
  color: var(--white);
  border-bottom: 1px solid rgba(220, 221, 57, 0.55);
  padding-bottom: 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.preview-btn:hover,
.preview-btn:focus {
  color: var(--acid);
  border-bottom-color: var(--acid);
}

.slogan-marquee {
  padding-top: 2rem;
  padding-bottom: 7rem;
}

.slogan-track {
  gap: 0;
  animation-duration: 24s;
}

.slogan-track img {
  width: min(940px, 88vw);
  max-width: none;
}

.site-footer {
  border-top: 2px solid var(--acid);
}

.footer-logo-wrap {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.footer-logo-wrap img {
  width: min(220px, 55vw);
}

.footer-cols {
  color: rgba(255, 255, 255, 0.78);
}

.footer-menu {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.8rem 2.4rem;
  padding: 0;
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  text-align: start;
}

.footer-menu a:hover,
.site-footer address a:hover {
  color: var(--acid);
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.unit-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.unit-logos a {
  display: inline-flex;
  align-items: center;
}

.unit-logos img {
  width: min(132px, 38vw);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.unit-logos a:hover img,
.unit-logos a:focus img {
  transform: translateY(-2px);
  opacity: 0.9;
}

.site-footer address {
  margin: 0;
  line-height: 1.75;
  font-style: normal;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.thanks-page img {
  width: 190px;
  margin-bottom: 3rem;
}

.thanks-page h1 {
  color: var(--acid);
  font-size: clamp(2.2rem, 7vw, 6rem);
  font-weight: 900;
}

.thanks-page p {
  max-width: 620px;
  margin: 1.2rem auto 2.2rem;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1199.98px) {
  .unit-logos img {
    width: min(98px, 37vw);
  }
}

@media (max-width: 991.98px) {
  :root {
    --header-h: 78px;
    --header-anchor-h: 78px;
  }

  .site-header .navbar,
  .site-header.is-scrolled .navbar {
    min-height: 78px;
  }

  .brand-logo,
  .site-header.is-scrolled .brand-logo {
    width: 155px;
  }

  .navbar-collapse {
    padding: 1.2rem 0 1.5rem;
  }

  .main-nav {
    gap: 0.25rem;
    margin: 1rem 0;
  }

  .main-nav .nav-link,
  .site-header.is-scrolled .main-nav .nav-link {
    font-size: 1.35rem;
  }

  .social-links {
    padding-top: 0.5rem;
  }

  .video-hero {
    min-height: 560px;
  }

  .works-gallery {
    padding-top: clamp(2rem, 6vh, 4rem);
  }

  .footer-menu {
    grid-template-columns: repeat(2, minmax(0, max-content));
    font-size: 0.9rem;
    gap: 0.5rem 1.2rem;
  }

  .work-card {
    --sticky-offset: var(--sticky-offset-mobile, 1rem);
    width: min(86vw, 620px);
    margin-bottom: 10vh;
  }

  .video-scroll-indicator {
    display: inline-flex;
  }

  .unit-logos img {
    width: min(75px, 37vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 575.98px) {
  .section-pad {
    padding: 4.2rem 0;
  }

  .section-title-img {
    width: min(390px, 88vw);
  }

  .services-accordion .accordion-button {
    padding: 1.2rem 0;
    font-size: 1.6rem;
  }

  .services-accordion .accordion-button::after {
    font-size: 1.6rem;
  }

  .logo-set {
    --logo-gap: 3rem;
  }

  .contact-intro {
    font-size: 1.05rem;
  }

  .footer-menu {
    grid-template-columns: 1fr 1fr;
     text-align: center;
  }

  .unit-logos img {
    width: min(108px, 31vw);
  }

  .work-card img {
    aspect-ratio: 1.5;
  }

  .logo-set img[src="assets/img/hidea.svg"]+img[src="assets/img/stampa-incanta.svg"] {
    margin-left: -0.75rem;
  }

  .logo-set img[src="assets/img/logo.svg"] {
    transform: scale(0.92);
  }

  .main-nav .nav-link::before {
    left: -15px;
  }

  .works-gallery {
    padding: 2.5rem 1.25rem 8vh;
  }

  .slogan-track img {
    width: min(1055px, 260vw);
    max-width: none;
  }
}
