@font-face {
  font-family: Metropolis;
  src: url("assets/fonts/Metropolis-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: Metropolis;
  src: url("assets/fonts/Metropolis-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Metropolis;
  src: url("assets/fonts/Metropolis-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --green: #3cb44b;
  --separator: #808080;
  --unit: min(0.0694444444vw, 1px);
  font-family: Metropolis, Arial, sans-serif;
  background: #000;
  color: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

a:hover {
  color: var(--green);
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
}

img {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: #fff;
  color: #000;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1440px;
  min-height: 100svh;
  margin-inline: auto;
  padding: calc(26 * var(--unit)) calc(51 * var(--unit)) calc(44 * var(--unit)) calc(56 * var(--unit));
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: calc(16 * var(--unit));
  border-bottom: 1px solid var(--separator);
}

.identity {
  flex-shrink: 0;
  margin-left: calc(-22 * var(--unit));
}

.identity img {
  width: calc(240 * var(--unit));
  height: auto;
}

.contact {
  position: relative;
  top: calc(8 * var(--unit));
  display: flex;
  align-items: center;
  gap: calc(12 * var(--unit));
  margin-right: calc(-12 * var(--unit));
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: clamp(12px, calc(14 * var(--unit)), 14px);
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.address-link {
  white-space: nowrap;
}

.contact-actions {
  display: flex;
  align-items: center;
}

.icon-link {
  display: grid;
  width: 42px;
  height: 44px;
  place-items: center;
  transition: opacity 160ms ease;
}

.icon-link:hover {
  opacity: .65;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 566fr) minmax(0, 739fr);
  gap: calc(28 * var(--unit));
  margin-top: calc(52 * var(--unit));
  padding: 0;
}

.hero:focus {
  outline: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.construction {
  display: grid;
  align-self: flex-start;
  place-items: center;
  width: calc(438 * var(--unit));
  min-height: calc(70 * var(--unit));
  margin: calc(3 * var(--unit)) 0 0;
  padding: 8px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: calc(30 * var(--unit));
  font-weight: 300;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

h1 {
  width: calc(504 * var(--unit));
  max-width: 100%;
  margin: clamp(72px, calc(100svh - 844px), calc(180 * var(--unit))) 0 0;
  font-size: calc(100 * var(--unit));
  font-weight: 800;
  line-height: .84;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 739 / 493;
  object-fit: cover;
}

.brands {
  margin-top: auto;
  padding-top: calc(40 * var(--unit));
  border-top: 1px solid var(--separator);
  position: relative;
}

/* Preserve at least this much breathing room on shorter desktop displays. */
.hero + .brands {
  margin-top: 64px;
}

/* The spacer expands to reproduce the 1440 × 1024 composition. */
.hero {
  margin-bottom: auto;
}

.brands-band {
  width: 100%;
  height: auto;
}

.brands-grid {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-mark {
  display: block;
  width: calc(var(--width) * 1px);
  height: 40px;
  background: url("assets/marques.svg") no-repeat;
  background-size: 1335px 40px;
  background-position: calc(var(--x) * -1px) 0;
}

@media (max-width: 1023px) {
  .brands-band {
    display: none;
  }

  .brands-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
    gap: 22px 12px;
  }

  .brands-grid li {
    display: grid;
    min-height: 44px;
    place-items: center;
  }

  .brands {
    padding-top: 30px;
  }
}

@media (max-width: 900px) {
  .page {
    padding: 20px 32px 36px;
  }

  .header {
    padding-bottom: 16px;
  }

  .identity {
    margin-left: -18px;
  }

  .identity img {
    width: 210px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    margin-top: 40px;
    margin-bottom: 0;
  }

  .hero-copy {
    align-items: flex-end;
  }

  .construction {
    width: auto;
    min-height: 60px;
    margin-top: 0;
    padding-inline: 24px;
    font-size: 25px;
  }

  h1 {
    width: auto;
    margin-top: 64px;
    font-size: clamp(64px, 11vw, 100px);
  }

  .hero + .brands {
    margin-top: 64px;
  }

  .brands-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .page {
    padding: 12px 24px 32px;
  }

  .header {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 24px;
  }

  .identity {
    align-self: flex-start;
    margin-left: -19px;
  }

  .identity img {
    width: 230px;
  }

  .contact {
    position: static;
    justify-content: space-between;
    gap: 8px;
    margin-right: -10px;
  }

  .contact-details {
    align-items: flex-start;
    font-size: 12px;
    line-height: 19px;
  }

  .address-link {
    white-space: normal;
  }

  .address-link span {
    display: block;
  }

  .contact-actions {
    flex-shrink: 0;
  }

  .icon-link {
    width: 44px;
  }

  .hero {
    gap: 36px;
    margin-top: 32px;
  }

  .construction {
    min-height: 54px;
    max-width: 100%;
    padding-inline: 18px;
    font-size: clamp(17px, 4.9vw, 24px);
  }

  h1 {
    margin-top: 48px;
    font-size: clamp(48px, 11.7vw, 70px);
    line-height: .9;
  }

  .hero + .brands {
    margin-top: 40px;
  }

  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 10px;
  }
}

@media (max-width: 359px) {
  .page {
    padding-inline: 18px;
  }

  h1 {
    font-size: 11.7vw;
  }

  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .icon-link {
    transition: none;
  }
}
