/* Approved WP4 v0.5 layout. Fonts and assets are self-hosted. */
@font-face {
  font-family: AtlasInter;
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: AtlasInter;
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: AtlasTitle;
  src: url('../fonts/lmsans17-regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: AtlasSubtitle;
  src: url('../fonts/lmsans12-regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #1B2327;
  --header: #11181C;
  --footer: #11181C;
  --text: #E4E7E5;
  --title: #CCD3D7;
  --subtitle: #AAB8C0;
  --body: #BDC7CA;
  --muted: #99A7AD;
  --link: #A9CAD5;
  --download: #BFAFC9;
  --selection: #3D495F;
  --focus: #B7D9DC;
  --gutter: clamp(24px,3vw,96px);
  --column-gap: clamp(32px,2.4vw,64px);
}

* {
  box-sizing: border-box;
}

::selection {
  background: var(--selection);
  color: var(--text);
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: AtlasInter,system-ui,Arial,sans-serif;
  font-size: 18px;
  line-height: 1.65;
  font-synthesis: none;
}

a {
  color: var(--link);
  text-decoration: none;
}

a: hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

button,a {
  touch-action: manipulation;
}

button: focus-visible,a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.wrap {
  width: calc(100% - var(--gutter) - var(--gutter));
  margin-inline: auto;
}

.site-header {
  position: relative;
  flex-shrink: 0;
  isolation: isolate;
  height: 144px;
  display: flex;
  align-items: center;
  background: var(--header);
  overflow: hidden;
}

.header-art {
  position: absolute;
  inset: 0 0 0 calc(var(--gutter) + 212px);
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .62;
  mask-image: linear-gradient(90deg,transparent,#000 12%,#000 96%,transparent);
}

.header-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% calc(48.84% - 1.67px);
}

.brand {
  display: inline-block;
  line-height: 0;
}

.brand img {
  display: block;
  width: 220px;
  height: auto;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.masthead {
  flex: 0 0 auto;
  text-align: center;
  padding: 40px 0 44px;
}

h1 {
  font-family: AtlasTitle,Arial,sans-serif;
  font-size: clamp(40px,3.2vw,56px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .015em;
  color: var(--title);
  margin: 0;
  text-wrap: balance;
}

.strapline {
  font-family: AtlasSubtitle,Arial,sans-serif;
  font-weight: 400;
  margin: 12px 0 0;
  color: var(--subtitle);
  font-size: clamp(14px,.9vw,18px);
  line-height: 1.6;
  letter-spacing: .025em;
  text-wrap: balance;
}

.engineering {
  flex: 1;
  width: 100%;
  display: flex;
  gap: var(--column-gap);
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
}

.overview {
  flex: 1;
  min-width: 0;
  max-width: 56ch;
}

.overview p {
  font-family: AtlasInter,system-ui,Arial,sans-serif;
  font-weight: 400;
  margin: 0 0 22px;
  color: var(--body);
  font-size: clamp(17px,1vw,19px);
  line-height: 1.7;
}

.overview p:last-child {
  margin-bottom: 0;
}

.gallery {
  flex: none;
  min-width: 0;
  width: 60vw;
}

.stage {
  position: relative;
  aspect-ratio: 16/9;
  background: #101619;
  touch-action: pan-y;
  overflow: hidden;
}

.gallery-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gallery-viewport>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-viewport>img[hidden] {
  display: none;
}

.arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #D8E7EB;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.arrow::before {
  content: '';
  position: absolute;
  inset: 6px 7px;
  background: rgba(17,24,28,.66);
  transition: background .15s ease;
}

.arrow svg {
  position: relative;
  width: 14px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  opacity: .82;
}

.arrow:hover::before,.arrow:focus-visible::before {
  background: rgba(17,24,28,.9);
}

.arrow:hover svg,.arrow:focus-visible svg {
  opacity: 1;
}

.previous {
  left: 2px;
}
.arrow:focus-visible {
  outline-offset:  -4px;
}
.arrow:focus-visible::before {
  inset:  0;
}

.next {
  right: 2px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0;
  height: 36px;
  align-items: center;
}

.dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.dot::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(228,231,229,.44);
}

.dot[aria-pressed=true]::after {
  background: rgba(228,231,229,.76);
}

.dot:hover::after {
  background: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  flex-shrink: 0;
  background: var(--footer);
  padding: 22px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 8px var(--column-gap);
  align-items: baseline;
}

.contact,.legal {
  display: contents;
}

.contact h2 {
  grid-column: 1;
  grid-row: 1;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.email {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  font-size: 16px;
  line-height: 1.6;
}

.legal p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.legal p {
  grid-column: 2;
  justify-self: end;
  text-align: right;
}

.legal .company-name {
  grid-row: 1;
}

.legal .registration {
  grid-row: 2;
}

.legal .address {
  grid-row: 3;
}

.legal strong {
  color: var(--text);
  font-weight: 400;
}

.download {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  font-size: 14px;
  line-height: 1.65;
  color: var(--download);
}

.download span {
  font-size: 10px;
  color: var(--muted);
  margin-left: 7px;
}

@supports (container-type:size) and (width:1cqh) {
  @media(min-width:1001px) and (min-height:760px) {
    body {
      height: 100svh;
    }

    .engineering {
      min-height: 0;
      container-type: size;
    }

    .gallery {
      width: min(60vw,calc((100cqh - 36px) * 1.777778));
    }

  }

}

@media(min-width:1001px) and (max-height:850px) {
  .overview p {
    font-size: 17px;
  }

  .masthead {
    padding: 36px 0 38px;
  }

}

@media(max-width:1000px) {
  .engineering {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    padding-bottom: 28px;
  }

  .gallery {
    order: -1;
    width: 100%;
  }

  .overview {
    flex: none;
    max-width: none;
  }

  .overview p {
    font-size: 18px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .contact h2,.email,.legal .company-name,.legal .registration,.legal .address,.download {
    grid-column: 1;
    grid-row: auto;
  }

}

@media(max-width:700px) {
  :root {
    --gutter: 24px;
  }

  .site-header {
    height: 104px;
  }

  .brand img {
    width: 180px;
  }

  .header-art {
    inset: 0 0 0 205px;
    opacity: .52;
  }

  .header-art img {
    object-position: 0% calc(48.84% - 1.21px);
  }

  .masthead {
    padding: 34px 0 34px;
  }

  h1 {
    font-size: clamp(26px,7.4vw,36px);
  }

  .strapline {
    font-size: 13px;
    line-height: 1.6;
    max-width: 100%;
    margin: 10px auto 0;
  }

  .overview p {
    font-size: 17px;
  }

  .site-footer {
    padding: 22px 0;
  }

}

@media(max-width:360px) {
  h1 {
    font-size: 24px;
  }

  .brand img {
    width: 170px;
  }

  .header-art {
    left: 190px;
  }

}

@media(prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
    scroll-behavior: auto!important;
  }

}

/* Progressive enhancement and keyboard access. */
[hidden] {
  display:  none !important;
}
.skip-link {
  position:  absolute;
  top:  8px;
  left:  var(--gutter);
  z-index:  10;
  padding:  8px 12px;
  background:  var(--header);
  transform:  translateY(-200%);
}
.skip-link:focus {
  transform:  translateY(0);
}
@media (forced-colors: active) {
  .arrow::before {
    background:  Canvas;
    border:  1px solid ButtonText;
  }
  .dot::after {
    background:  ButtonText;
  }
  .dot[aria-pressed=true]::after {
    background:  Highlight;
  }
}
