/* Atlas Graphite & Ice: full-height transparent header, approved extended render. */
@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: #202329;
  --header: #14171D;
  --text: #E7EAF0;
  --title: #DCE2EB;
  --subtitle: #ADB9CB;
  --body: #C1C7D1;
  --muted: #9DA7B8;
  --link: #A8C8F0;
  --download: #DCA8CA;
  --selection: #39455D;
  --focus: #E4B5D4;
  --stage: #101319;
  --control: rgba(20,23,29,.72);
  --control-hover: rgba(20,23,29,.94);
  --dot: #79818F;
  --footer: var(--header);
  --header-height: clamp(104px,10vw,192px);
  --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: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--header);
  overflow: hidden;
}

.header-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.header-art img,.header-art video {
  display: block;
  /* Natural aspect ratio; only right overflow is clipped on narrow screens. */
  height: 100%;
  width: auto;
  max-width: none;
  /* Fade the rendered glow into the header at each media layer's own edge. */
  -webkit-mask-image: linear-gradient(to right, #000 86%, transparent 100%);
  mask-image: linear-gradient(to right, #000 86%, transparent 100%);
}

.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: var(--stage);
  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: var(--text);
  border: 0;
  cursor: pointer;
  padding: 0;
}

.arrow::before {
  content: '';
  position: absolute;
  inset: 6px 7px;
  background: var(--control);
  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: var(--control-hover);
}

.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: var(--dot);
}

.dot[aria-pressed=true]::after {
  background: var(--download);
}

.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: var(--header-height);
  }

  .brand img {
    width: 180px;
  }

  .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;
  }

}

@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;
  }
}

/* Keep the logo anchored to the right at every viewport width. */
.site-header > .wrap {
  display: flex;
  justify-content: flex-end;
}

/* Reserve the right-hand logo area; contain always preserves full height. */
@media (min-width:1001px) {
  .header-art img,.header-art video {
    max-width: calc(100% - var(--gutter) - 220px - 32px);
    object-fit: contain;
    object-position: left center;
  }
}

/* Identical sizing keeps both decoded video layers and fallback frames aligned. */
.header-art picture,.header-video {
  position: absolute;
  top: 0;
  left: 0;
}

.header-art picture {
  width: 100%;
  height: 100%;
}

.header-video {
  opacity: 0;
  /* No fade: exchange complete frames without blending the two flames. */
}

.header-video.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .header-video {
    display: none;
  }
}

