* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: #000;
  overflow-x: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

/* HEADER */

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 54px;
  z-index: 50;

  display: flex;
  align-items: center;

  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55em;

  margin-left: 1em;

  color: #050505;
  text-decoration: none;
}

.brand-logo {
  width: 2.7em;
  height: 2.7em;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-left: auto;
  margin-right: 1em;
}

.top-nav a {
  color: #050505;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

/* LANDING PAGE */

.landing {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
}

.panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-decoration: none;
  background-size: cover;
  background-repeat: no-repeat;

  filter: grayscale(0.8);
}

.panel-mobility {
  justify-content: flex-start;
  background-image: url("../img/landing_page/mobility.png");
  background-position: center;
}

.panel-product {
  justify-content: flex-end;
  background-image: url("../img/landing_page/product.png");
  background-position: center;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.66);
  pointer-events: none;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: screen;
  background-image:
    repeating-radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.15) 0 1px,
      transparent 1px 2px
    );
  background-size: 5px 6px;
}

.panel-mobility::before {
  background: rgba(0, 0, 0, 0.3);
}

.panel:hover,
.panel:active,
.panel:focus-visible {
  filter: grayscale(0);
}

.panel:hover::before,
.panel:active::before,
.panel:focus-visible::before {
  background: rgba(0, 0, 0, 0.18);
}

.panel-mobility:hover::before,
.panel-mobility:active::before,
.panel-mobility:focus-visible::before {
  background: rgba(0, 0, 0, 0);
}

.panel:hover::after,
.panel:active::after,
.panel:focus-visible::after {
  opacity: 0;
}

.landing::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.42) 0%,
      transparent 22%,
      transparent 78%,
      rgba(0, 0, 0, 0.42) 100%
    );
}

.panel-title {
  position: relative;
  z-index: 6;
  color: #fff;

  font-size: clamp(1.5rem, 2.1vw, 2.8rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.panel-mobility .panel-title {
  margin-left: 7vw;
}

.panel-product .panel-title {
  margin-right: 7vw;
}

.panel:hover .panel-title,
.panel:active .panel-title,
.panel:focus-visible .panel-title {
  opacity: 0.55;
}

.max-mark {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10;
  transform: translate(-70%, -50%);
  display: grid;
  gap: 1vh;
  pointer-events: none;
  text-align: center;
}

.max-mark span {
  display: block;
  font-size: clamp(2.5rem, 2.5vw, 4rem);
  font-weight: 545;
  line-height: 0.68;
  letter-spacing: -0.18em;
  color: rgba(20, 20, 20, 1);
}

/* SUBPAGE */

.subpage {
  min-height: 100vh;
  padding-top: 54px;
  padding-left: clamp(1.2rem, 2.5vw, 2.5rem);
  padding-right: clamp(1.2rem, 2.5vw, 2.5rem);
  padding-bottom: clamp(1.2rem, 2.5vw, 2.5rem);

  background: #000;
  color: #fff;

  overflow: visible;
}

.subpage-intro {
  padding-top: clamp(1.4rem, 2.5vw, 2.2rem);
  padding-bottom: clamp(1rem, 1.8vw, 1.5rem);
}

.subpage-intro h1 {
  font-size: clamp(1.1rem, 1.8vw, 1.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
}

/* GALLERY */

.gallery {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: clamp(0.9rem, 1.5vw, 1.4rem);

  align-items: start;
}

.gallery img {
  width: 100%;
  max-width: 100%;
  height: auto;

  display: block;
  object-fit: contain;

  background: transparent;
  border: none;

  cursor: zoom-in;

  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.gallery img:hover {
  opacity: 0.82;
}

.coming-soon {
  grid-column: 1 / -1;

  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: clamp(1.2rem, 2.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.55);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;

  display: none;
  align-items: center;
  justify-content: center;

  width: 100vw;
  height: 100vh;

  padding: 72px 72px 32px;

  background: rgba(0, 0, 0, 0.95);
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  width: auto;
  height: auto;

  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 120px);

  display: block;
  object-fit: contain;

  cursor: default;

  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.lightbox-close {
  position: fixed;
  top: 70px;
  right: 24px;
  z-index: 120;

  width: 42px;
  height: 42px;

  border: none;
  background: transparent;
  color: #fff;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 200;
  line-height: 1;

  cursor: pointer;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  z-index: 115;

  width: 64px;
  height: 96px;

  transform: translateY(-50%);

  border: none;
  background: transparent;
  color: #fff;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 100;
  line-height: 1;

  cursor: pointer;

  opacity: 0.72;
}

.lightbox-arrow:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

/* MOBILE */

@media (max-width: 700px) {
  .top-header {
    height: 46px;
  }

  .brand {
    margin-left: 0.75em;
    gap: 0.45em;
  }

  .brand-logo {
    width: 2.25em;
    height: 2.25em;
  }

  .brand-text {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .landing {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100vw;
    height: 100svh;
  }

  .panel {
    width: 100%;
    height: 100%;
    justify-content: center;
    background-size: cover;
  }

  .panel-mobility,
  .panel-product {
    background-position: center;
  }

  .panel-title {
    margin: 0 !important;
    text-align: center;
    font-size: clamp(1.1rem, 5vw, 2rem);
    z-index: 6;
  }

  .landing::after {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.42) 0%,
        transparent 24%,
        transparent 76%,
        rgba(0, 0, 0, 0.42) 100%
      );
  }

  .max-mark {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.18em;
  }

  .max-mark span {
    font-size: clamp(3.2rem, 15vw, 5.8rem);
    line-height: 1;
    letter-spacing: -0.22em;
    color: #050505;
  }

  .subpage {
    padding-top: 46px;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .subpage-intro {
    padding-top: 1rem;
    padding-bottom: 0.85rem;
  }

  .subpage-intro h1 {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .coming-soon {
    min-height: 40vh;
    font-size: clamp(1.1rem, 6vw, 2rem);
  }

  .lightbox {
    padding: 58px 44px 16px;
  }

  .lightbox-image {
    max-width: calc(100vw - 88px);
    max-height: calc(100svh - 80px);
  }

  .lightbox-close {
    top: 52px;
    right: 12px;
    font-size: 2.2rem;
  }

  .lightbox-arrow {
    width: 42px;
    height: 72px;
    font-size: 3.4rem;
  }

  .lightbox-prev {
    left: 2px;
  }

  .lightbox-next {
    right: 2px;
  }
}

@media (max-width: 420px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
