:root {
  --black: #030303;
  --white: #ffffff;
  --red: #d10008;
  --soft: rgb(255, 255, 255);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: 'Jost Regular';
}

img {
  display: block;
  max-width: 100%;
}

.brand-page {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,.12), transparent 36%),
    var(--black);
}

.brand-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100vw;
  height: 100vh;
  border: 0;
  overflow: hidden;
  animation: frameIn .9s ease both;
}

.brand-card {
  position: relative;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  animation: cardRise .9s cubic-bezier(.2,.8,.2,1) both;
}

.brand-card:nth-child(2) {
  animation-delay: .12s;
}

.brand-card:nth-child(3) {
  animation-delay: .24s;
}

.brand-card::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,.88) 100%),
    linear-gradient(90deg, rgba(0,0,0,.2), transparent 28%, transparent 72%, rgba(0,0,0,.22));
  transition: opacity .45s ease;
}

.brand-card::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 4;
  width: 0;
  height: 3px;
  content: "";
  background: var(--red);
  transform: translateX(-50%);
  transition: width .45s ease;
}

.brand-card + .brand-card {
  border-left: 1px solid rgba(255,255,255,.35);
}

.brand-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1s cubic-bezier(.2,.8,.2,1), filter .45s ease;
}

.brand-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 46%;
  background: linear-gradient(transparent, rgba(0,0,0,.94));
  pointer-events: none;
}

.brand-logo {
  position: absolute;
  top: 27px;
  left: 50%;
  z-index: 5;
  width: 144px;
  height: 144px;
  padding: 13px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(0,0,0,.28);
  transform: translateX(-50%);
  animation: logoFloat 3.4s ease-in-out infinite;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 38px;
  z-index: 5;
  text-align: center;
  transform: translateY(14px);
  transition: transform .45s ease;
}

.brand-content h1,
.brand-content h2 {
  margin: 0 0 13px;
      font-family: 'Qlassy';
  font-size: clamp(25px, 2.4vw, 37px);
  font-weight: 500;
  line-height: 1.1;
}

.brand-content .visit {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .28em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-content .visit::after {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 34px;
  height: 1px;
  content: "";
  background: var(--white);
  transform: translateX(-50%);
  transition: width .35s ease, background .35s ease;
}

.brand-content p {
  margin: 7px 0 0;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.5;
  a{
    color: var(--white);
    text-decoration: none;
    transition: color .35s ease;
    &:hover{
      color: var(--red);
    }
  }
}

.brand-card:hover .brand-photo,
.brand-card:focus-within .brand-photo {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.12);
}

.brand-card:hover .brand-content,
.brand-card:focus-within .brand-content {
  transform: translateY(0);
}

.brand-card:hover::after,
.brand-card:focus-within::after {
  width: 72%;
}

.brand-card:hover .brand-content a::after,
.brand-card:focus-within .brand-content a::after {
  width: 54px;
  background: var(--red);
}

@keyframes frameIn {
  from {
    opacity: 0;
    transform: scale(.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@media (max-width: 900px) {
  html,
  body {
    overflow: auto;
  }

  .brand-page {
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 14px;
  }

  .brand-showcase {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    min-height: auto;
  }

  .brand-card {
    height: 100vh;
    min-height: 560px;
  }

  .brand-card + .brand-card {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.35);
  }
}

@media (max-width: 540px) {
  .brand-page {
    display: block;
    padding: 0;
  }

  .brand-showcase {
    border: 0;
  }

  .brand-card {
    height: 100vh;
    min-height: 520px;
  }

  .brand-logo {
    width: 116px;
    height: 116px;
  }

  .brand-content {
    left: 18px;
    right: 18px;
    bottom: 30px;
  }
}
