:root {
  --website-header-height: calc(38px + 2rem);
}

.company-site-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.company-site-page .solution-section {
  scroll-margin-top: calc(5rem + var(--section-nav-height));
}

.home-overview,
.company-site-page #strategies {
  scroll-margin-top: calc(var(--website-header-height) + var(--section-nav-height));
}

@media (max-width: 1023.98px) {
  :root {
    --website-header-height: calc(38px + 1.5rem);
  }

  .company-site-page .header-wrap.active .header-nav {
    display: block;
  }
}

.header-wrap:has(+ #presentation):not(.header-scroll, .active) {
  background-color: transparent;
}

.header-wrap:has(+ #presentation):not(.home-logo-visible) .header-logo {
  visibility: hidden;
}

#presentation {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto 1fr;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(clamp(6rem, 8vw, 8rem) - 3rem) 0 0;
}

#presentation > .container {
  grid-row: 2;
}

#presentation .presentation-video {
  inset: 0;
  width: 100%;
  height: 100%;
}

#presentation .presentation-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#presentation .presentation-title-block {
  max-width: none;
  container-type: inline-size;
}

#presentation .presentation-title {
  margin: 0;
  font-size: min(4.25vw, 4rem);
  font-size: min(5.25cqi, 4rem);
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

#presentation .home-hero-logo {
  display: block;
  width: clamp(10rem, 22vw, 20rem);
  height: auto;
  margin: 0 auto clamp(.875rem, 2.25vw, 1.75rem);
  transform-origin: 11.6667% 50%;
}

#presentation .home-scroll-link {
  --scroll-link-accent: #ffc45f;
  z-index: 3;
  grid-row: 3;
  place-self: center;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--scroll-link-accent);
  border-radius: 50%;
  background: rgb(13 43 66 / 70%);
  color: var(--scroll-link-accent);
}

#presentation .home-scroll-link::before {
  width: .55rem;
  height: .55rem;
  margin-top: -.2rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  content: "";
}

#presentation .home-scroll-link:hover {
  background: var(--scroll-link-accent);
  color: #0d2b42;
}

#presentation .home-scroll-link:focus-visible {
  outline: 2px solid var(--scroll-link-accent);
  outline-offset: 4px;
}

.reference-content .company-section-title {
  position: relative;
  margin: 0 0 clamp(1rem, 2.5vw, 1.625rem);
  padding-inline-start: .8em;
  color: var(--deep);
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.reference-content .company-section-title::before {
  position: absolute;
  inset-block-start: calc(50% + .075em);
  inset-inline-start: 0;
  width: .48em;
  height: .75em;
  transform: translateY(-50%);
  background: url("assets/about-us/title_yellow.svg") center / contain no-repeat;
  content: "";
  pointer-events: none;
}
