/* Homepage presentation layer: premium navigation, image-led hero and separated closing bands. */

/* The slide system now uses the same movement language at every viewport size. */
.hero .hero-slideshow {
  --pk-hero-duration: 5200ms;
}

.hero .hero-slideshow-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  opacity: 0 !important;
  visibility: visible;
  transform: translate3d(7%, 0, 0);
  transition:
    opacity 850ms ease,
    transform 850ms cubic-bezier(.22, .61, .36, 1);
  pointer-events: none;
  will-change: opacity, transform;
}

.hero .hero-slideshow-slide.active {
  z-index: 3;
  display: block;
  opacity: 1 !important;
  transform: translate3d(0, 0, 0);
}

.hero .hero-slideshow-slide.leaving {
  z-index: 2;
  display: block;
  opacity: 0 !important;
  transform: translate3d(-6%, 0, 0);
}

.hero .hero-slideshow-slide img {
  transform: scale(1);
  will-change: transform;
}

.hero .hero-slideshow-slide.active img {
  animation: pkHeroKenBurns var(--pk-hero-duration) ease-out forwards;
}

.hero .hero-slideshow-ui {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.hero .hero-slide-counter {
  color: rgba(244, 241, 232, .72);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: .08em;
}

.hero .hero-slide-counter-current {
  color: var(--yellow);
}

.hero .hero-slide-progress {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .26);
}

.hero .hero-slide-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero .hero-slideshow.is-playing .hero-slide-progress-fill {
  animation: pkHeroProgress var(--pk-hero-duration) linear forwards;
}

/* A framed navigation bar gives the header shape instead of merely reducing its height. */
@media (min-width: 981px) {
  header,
  header.scrolled {
    top: 12px;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
  }

  header.scrolled {
    top: 7px;
  }

  header .wrap,
  header.scrolled .wrap {
    width: min(1580px, calc(100vw - 40px)) !important;
    max-width: 1580px !important;
    min-height: 76px;
    padding: 7px 12px 7px 16px !important;
    grid-template-columns: auto 1fr auto;
    gap: clamp(24px, 2.4vw, 42px);
    background:
      linear-gradient(110deg, rgba(22, 25, 31, .94), rgba(10, 12, 16, .92));
    border: 1px solid rgba(255, 255, 255, .105);
    border-radius: 18px;
    box-shadow:
      0 20px 55px rgba(0, 0, 0, .42),
      inset 0 1px 0 rgba(255, 255, 255, .035);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: auto;
    transition:
      min-height .25s ease,
      background .25s ease,
      border-color .25s ease;
  }

  header.scrolled .wrap {
    min-height: 68px;
    background:
      linear-gradient(110deg, rgba(20, 23, 29, .98), rgba(8, 10, 13, .97));
    border-color: rgba(245, 215, 110, .14);
  }

  header .logo img,
  header.scrolled .logo img {
    height: 56px;
  }

  header nav.main-nav {
    width: auto;
    justify-self: center;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .028);
    border: 1px solid rgba(255, 255, 255, .045);
  }

  header .nav-links {
    width: auto;
    gap: 4px;
  }

  header .nav-links > a,
  header .nav-services-toggle {
    min-height: 38px;
    padding: 0 16px !important;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: rgba(244, 241, 232, .68);
    font-size: 13px !important;
    font-weight: 650;
    letter-spacing: .02em;
    transition: color .2s ease, background .2s ease;
  }

  header .nav-links > a::after {
    display: none;
  }

  header .nav-links > a:hover,
  header .nav-services-toggle:hover,
  header .nav-services-toggle.open {
    color: var(--text);
    background: rgba(245, 215, 110, .09);
  }

  header .header-right {
    gap: 14px;
  }

  header .header-phone .value {
    font-size: 13px;
    color: rgba(244, 241, 232, .78);
  }

  header .header-phone-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    background: rgba(245, 215, 110, .08);
  }

  header .btn-hero-compact {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(245, 215, 110, .13);
  }

  header .desktop-submenu {
    top: calc(100% + 16px);
    border-radius: 16px;
    background: rgba(11, 13, 17, .98);
    border-color: rgba(255, 255, 255, .1);
  }

  .hero {
    min-height: clamp(700px, 82vh, 800px);
    padding-top: 120px;
    padding-bottom: 48px;
  }

  .hero > .wrap {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .hero .hero-desktop-row {
    width: min(1680px, calc(100vw - 48px));
    margin: 0 auto;
    grid-template-columns: minmax(370px, .72fr) minmax(0, 1.28fr);
    gap: clamp(38px, 3.2vw, 64px);
    align-items: center;
  }

  .hero .hero-content {
    width: auto;
    max-width: 520px;
    margin-left: 0 !important;
    padding: 0;
  }

  .hero .hero-content h1 {
    max-width: 490px !important;
    margin-bottom: 18px;
    font-size: clamp(36px, 2.65vw, 44px) !important;
    line-height: 1.12 !important;
    font-weight: 500 !important;
    letter-spacing: -.035em;
  }

  .hero .hero-support {
    max-width: 480px;
    margin-bottom: 28px;
    color: rgba(244, 241, 232, .7);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.62;
  }

  .hero .hero-slideshow {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .11);
    box-shadow:
      0 36px 100px rgba(0, 0, 0, .52),
      0 0 0 1px rgba(245, 215, 110, .025),
      0 0 90px rgba(245, 215, 110, .055);
  }

  .hero .hero-slideshow::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
    pointer-events: none;
  }

  .hero .hero-slideshow-ui {
    left: 26px;
    right: 26px;
    bottom: 22px;
    gap: 14px;
  }

  .hero .hero-slide-counter {
    min-width: 55px;
    font-size: 11px;
  }

  .hero .hero-slide-progress {
    width: min(200px, 30%);
  }
}

@media (min-width: 981px) and (max-width: 1220px) {
  header .header-phone {
    display: none;
  }

  .hero .hero-desktop-row {
    grid-template-columns: minmax(350px, .78fr) minmax(0, 1.22fr);
  }
}

/* Mobile keeps the established 235px image stage but gains the full slide/zoom transition. */
@media (max-width: 980px) {
  header,
  header.scrolled {
    top: 8px;
    right: 8px;
    left: 8px;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  header .wrap,
  header.scrolled .wrap {
    min-height: 58px;
    padding: 7px 9px 7px 12px !important;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: linear-gradient(110deg, rgba(20, 23, 29, .96), rgba(8, 10, 13, .94));
    box-shadow: 0 15px 40px rgba(0, 0, 0, .42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  header .btn-hero-compact {
    border-radius: 10px;
  }

  header .burger {
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
  }

  .mobile-menu {
    top: 78px;
  }

  .hero .hero-slideshow {
    --pk-hero-duration: 3500ms;
  }

  .hero .hero-slideshow-slide,
  .hero .hero-slideshow-slide.active,
  .hero .hero-slideshow-slide.leaving {
    position: absolute;
    inset: 0;
    display: block;
    transition:
      opacity 700ms ease,
      transform 700ms cubic-bezier(.22, .61, .36, 1) !important;
  }

  .hero .hero-slideshow::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    z-index: 4;
    background: linear-gradient(180deg, transparent, rgba(5, 6, 8, .58));
    pointer-events: none;
  }

  .hero .hero-slideshow-ui {
    right: 16px;
    bottom: 14px;
    left: 16px;
    gap: 10px;
  }

  .hero .hero-slide-counter {
    min-width: 49px;
    font-size: 9px;
  }

  .hero .hero-slide-progress {
    width: 112px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 76px;
  }

  .hero .hero-slideshow {
    width: 100vw;
    max-width: 100vw;
    height: 235px;
    max-height: none;
    margin-top: 0;
    margin-right: calc(50% - 50vw);
    margin-bottom: 24px;
    margin-left: calc(50% - 50vw);
    border: 0;
    border-radius: 0;
  }
}

/* The closing area is split into location, material partners and company footer. */
.pk-location-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 92px 0 0 !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 107, 255, .055), transparent 34%),
    linear-gradient(135deg, #14171c 0%, #0d0f13 58%, #090a0d 100%);
  border-top: 1px solid rgba(255, 255, 255, .075);
}

.pk-location-section::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .33;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, #000, transparent 46%, transparent 54%, #000);
}

.pk-location-section > .wrap {
  width: min(1480px, calc(100% - 64px)) !important;
  max-width: 1480px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 0 !important;
}

.pk-location-section > .wrap.pk-location-heading {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 2.35fr);
  gap: clamp(40px, 5vw, 86px);
  align-items: center;
  padding-bottom: 40px !important;
}

.pk-location-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.pk-location-kicker::before {
  content: '';
  width: 38px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(245, 215, 110, .3);
}

.pk-location-details {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(200px, .85fr) minmax(270px, auto);
  gap: clamp(22px, 3vw, 46px);
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .11);
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.pk-location-detail {
  display: grid;
  gap: 6px;
}

.pk-location-detail span {
  color: var(--muted-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pk-location-detail strong {
  color: rgba(244, 241, 232, .8);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.pk-location-access {
  display: block;
  margin-top: 4px;
  color: rgba(244, 241, 232, .62);
  font-size: 12px;
  font-weight: 500;
}

.pk-location-section .pk-location-nav-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.pk-location-section .pk-location-nav-buttons a {
  min-width: 0;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  color: rgba(244, 241, 232, .86);
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
}

.pk-location-section .pk-location-nav-buttons a:first-child {
  border-color: rgba(245, 215, 110, .26);
  background: rgba(245, 215, 110, .09);
}

.pk-location-section .pk-location-nav-buttons a:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #151208;
}

.pk-location-map {
  position: relative;
  width: 100%;
  height: clamp(470px, 38vw, 600px);
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  background: #0b0d10;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .18);
}

.pk-location-map::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 8, 10, .32), transparent 14%, transparent 82%, rgba(7, 8, 10, .24)),
    linear-gradient(90deg, rgba(7, 8, 10, .15), transparent 18%, transparent 82%, rgba(7, 8, 10, .15));
}

.pk-location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(.78);
}

.pk-footer-logo-strip.pk-partner-band {
  margin: 0;
  padding: 30px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
  background: #0c0e12;
}

.pk-footer-logo-strip.pk-partner-band::before {
  display: none;
}

.pk-partner-inner {
  width: min(1480px, calc(100% - 64px)) !important;
  max-width: 1480px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 42px;
  align-items: center;
}

.pk-partner-label {
  color: rgba(244, 241, 232, .45);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pk-partner-band .pk-footer-logo-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: clamp(24px, 3vw, 54px);
  justify-items: center;
}

.pk-partner-band .pk-footer-logo-item {
  width: 100%;
  min-width: 0;
  opacity: .82;
}

.pk-partner-band .pk-footer-logo-item img {
  max-width: 150px;
}

footer.footer--with-partner-logos {
  padding: 74px 0 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(47, 107, 255, .035), transparent 30%),
    #07080a;
}

footer.footer--with-partner-logos > .wrap {
  width: min(1200px, calc(100% - 64px)) !important;
  max-width: 1200px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 0 !important;
}

footer.footer--with-partner-logos .footer-grid {
  grid-template-columns: 1.2fr .95fr .75fr;
  gap: clamp(44px, 7vw, 100px);
  margin-top: 0;
  padding-bottom: 58px;
  border-bottom-color: rgba(255, 255, 255, .09);
}

footer.footer--with-partner-logos .footer-brand p,
footer.footer--with-partner-logos .footer-col a,
footer.footer--with-partner-logos .footer-col p {
  color: rgba(244, 241, 232, .58);
}

footer.footer--with-partner-logos .footer-col h4 {
  color: rgba(244, 241, 232, .36);
}

footer.footer--with-partner-logos .footer-contact-link {
  color: var(--yellow) !important;
}

footer.footer--with-partner-logos .footer-bottom {
  padding-top: 24px;
}

@media (max-width: 900px) {
  .pk-location-section {
    padding: 70px 0 0 !important;
  }

  .pk-location-section > .wrap,
  .pk-partner-inner,
  footer.footer--with-partner-logos > .wrap {
    width: min(100% - 42px, 720px) !important;
  }

  .pk-location-section > .wrap.pk-location-heading {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px !important;
  }

  .pk-location-kicker {
    font-size: clamp(26px, 5vw, 34px);
  }

  .pk-location-details {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px 30px;
  }

  .pk-location-section .pk-location-nav-buttons {
    grid-column: 1 / -1;
  }

  .pk-location-map,
  .pk-location-map iframe {
    min-height: 0;
  }

  .pk-location-map {
    height: 390px;
    border-radius: 0;
  }

  .pk-partner-inner {
    display: block;
  }

  .pk-partner-label {
    margin-bottom: 22px;
    text-align: center;
  }

  .pk-partner-band .pk-footer-logo-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 20px;
  }

  .pk-partner-band .pk-footer-logo-item {
    min-height: 40px;
  }

  .pk-partner-band .pk-footer-logo-item img {
    max-width: min(100%, 128px);
  }

  footer.footer--with-partner-logos {
    padding-top: 58px;
  }

  footer.footer--with-partner-logos .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px 30px;
  }
}

@media (max-width: 620px) {
  .pk-location-section {
    padding: 56px 0 0 !important;
  }

  .pk-location-section > .wrap.pk-location-heading {
    gap: 24px;
    padding-bottom: 26px !important;
  }

  .pk-location-kicker {
    font-size: 27px;
  }

  .pk-location-kicker::before {
    width: 30px;
  }

  .pk-location-details {
    gap: 20px 18px;
    padding: 18px 0 0;
    border-bottom: 0;
  }

  .pk-location-detail strong {
    font-size: 13px;
  }

  .pk-location-section .pk-location-nav-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .09);
  }

  .pk-location-section .pk-location-nav-buttons a {
    width: 100%;
    padding: 12px;
  }

  .pk-location-map,
  .pk-location-map iframe {
    min-height: 0;
  }

  .pk-location-map {
    height: 320px;
  }

  .pk-footer-logo-strip.pk-partner-band {
    padding: 26px 0 30px;
  }

  .pk-partner-band .pk-footer-logo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
  }

  .pk-partner-band .pk-footer-logo-item:last-child {
    grid-column: 1 / -1;
  }

  footer.footer--with-partner-logos > .wrap {
    width: calc(100% - 42px) !important;
  }

  footer.footer--with-partner-logos .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-bottom: 42px;
  }

  footer.footer--with-partner-logos .footer-grid > * + * {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  footer.footer--with-partner-logos .footer-bottom {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-slideshow-slide {
    transform: none !important;
    transition: opacity 250ms ease !important;
  }

  .hero .hero-slideshow-slide.active img,
  .hero .hero-slideshow.is-playing .hero-slide-progress-fill {
    animation: none !important;
  }
}
