@font-face {
  font-family: "Global Montserrat";
  src: url("./assets/montserrat-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Global Montserrat";
  src: url("./assets/montserrat-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #0c0d0e;
  --white: #faf9f7;
  --navy: #052347;
  --red: #e70033;
  --gold: #bf9654;
  --pale-gold: #dabf8b;
  --ivory: #f1eee6;
  --muted: #c4bfb5;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: var(--black);
  font-family: "Global Montserrat", "Avenir Next", "Segoe UI", Arial, sans-serif;
}

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

.gateway {
  position: relative;
  display: grid;
  width: 100%;
  height: 100svh;
  min-height: 42rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  isolation: isolate;
  overflow: hidden;
  background-color: var(--black);
  background-image: url("./assets/roller-wall-narrow-overlap-v6-primer.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.gateway::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 40%, transparent 50%);
  content: "";
  pointer-events: none;
}

.gateway::after {
  display: none;
}

.store-lockup {
  position: absolute;
  z-index: 10;
  top: clamp(1.75rem, 4.4vh, 3.5rem);
  right: clamp(2rem, 4vw, 5rem);
  left: clamp(2rem, 4vw, 5rem);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  font-size: clamp(0.77rem, 0.9vw, 0.98rem);
  letter-spacing: 0.18em;
  line-height: 1.1;
}

.store-lockup strong {
  color: #151719;
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: inherit;
  white-space: nowrap;
}

.store-lockup__details {
  display: grid;
  justify-items: end;
  gap: 0.48rem;
  color: var(--ivory);
  font-size: inherit;
  font-weight: 500;
  letter-spacing: inherit;
  text-align: right;
  white-space: nowrap;
}

.brand-entry {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 0 clamp(2rem, 6vw, 7rem);
  outline: 0;
}

.brand-entry::before {
  display: none;
}

.brand-entry:hover::before,
.brand-entry:focus-visible::before {
  display: none;
}

.brand-entry:focus-visible {
  outline: 0;
}

.brand-entry__content {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 31rem);
  justify-items: center;
  align-content: center;
}

.brand-entry__background {
  display: none;
}

.brand-entry__logo {
  display: block;
  transition: transform 320ms ease, filter 320ms ease;
}

.brand-entry__logo--bm {
  width: min(100%, 27rem);
  height: auto;
}

.brand-entry__logo--elf {
  width: min(78%, 21rem);
  height: auto;
}

.brand-entry:hover .brand-entry__logo,
.brand-entry:focus-visible .brand-entry__logo {
  transform: translateY(-0.35rem);
}

.brand-entry__rule {
  display: block;
  width: 4.5rem;
  height: 2px;
  margin-top: clamp(2rem, 4vh, 3.25rem);
}

.brand-entry__rule--red {
  background: var(--red);
}

.brand-entry__rule--gold {
  background: var(--gold);
}

.brand-entry__descriptor {
  margin-top: 1.25rem;
  font-size: clamp(0.62rem, 0.72vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.27em;
}

.brand-entry--paint {
  color: var(--navy);
}

.brand-entry--decor {
  color: var(--ivory);
}

.brand-entry__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: clamp(2.25rem, 4.6vh, 3.5rem);
  padding: 0.9rem 0 0.75rem;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  font-size: clamp(0.6rem, 0.68vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  transition: gap 220ms ease, color 220ms ease;
}

.brand-entry--paint .brand-entry__cta {
  color: rgba(5, 35, 71, 0.86);
}

.brand-entry--decor .brand-entry__cta {
  color: var(--pale-gold);
}

.brand-entry__cta b {
  font-size: 1rem;
  font-weight: 500;
}

.brand-entry:hover .brand-entry__cta,
.brand-entry:focus-visible .brand-entry__cta {
  gap: 1.25rem;
}

@media (max-width: 780px) {
  body {
    overflow: auto;
  }

  .gateway {
    min-height: 58rem;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    background-image: none;
  }

  .gateway::before {
    display: none;
  }

  .gateway::after {
    display: none;
  }

  .store-lockup {
    top: 1.7rem;
    left: 2.25rem;
    right: auto;
    display: grid;
    justify-items: start;
    gap: 0.34rem;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    line-height: 1.35;
    text-align: left;
  }

  .store-lockup__details {
    display: grid;
    max-width: none;
    justify-items: start;
    gap: 0.32rem;
    color: #151719;
    text-align: left;
    white-space: normal;
  }

  .brand-entry {
    width: 100vw;
    max-width: 100vw;
    padding: 0 2.25rem;
    overflow: hidden;
  }

  .brand-entry--paint {
    background: #faf9f7;
  }

  .brand-entry--decor {
    background: #202123;
  }

  .brand-entry__background {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    width: 100vw;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
  }

  .brand-entry--paint::after,
  .brand-entry--decor::after {
    display: none;
  }

  .brand-entry__logo--bm {
    width: min(80%, 19.5rem);
  }

  .brand-entry__logo--elf {
    width: min(66%, 16rem);
  }

  .brand-entry__rule {
    margin-top: 1.45rem;
  }

  .brand-entry__cta {
    margin-top: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
