:root {
  --bg: #11151a;
  --panel: #111311;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.26);
  --dark-line: rgba(14, 17, 20, 0.12);
  --wood: #b2763d;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, #20252a 0, #11151a 42%, #0d1115 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 0;
  color: inherit;
  font: inherit;
}

.shell {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  display: block;
  overflow: hidden;
}

.hero {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #171a1d;
  box-shadow: none;
  isolation: isolate;
}

.slides,
.slide,
.shade {
  position: absolute;
  inset: 0;
}

.slides {
  z-index: -3;
}

.slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 520ms ease,
    transform 900ms ease;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.slide:nth-child(1) {
  background-image: url("./assets/carpentry.jpg");
}

.slide:nth-child(2) {
  background-image: url("./assets/wardrobe.jpg");
}

.slide:nth-child(3) {
  background-image: url("./assets/stairs.jpg");
}

.slide:nth-child(4) {
  background-image: url("./assets/room.jpg");
}

.shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 14, 17, 0.82) 0%, rgba(11, 14, 17, 0.5) 39%, rgba(11, 14, 17, 0.18) 72%),
    linear-gradient(0deg, rgba(11, 14, 17, 0.42), rgba(11, 14, 17, 0.28));
}

.nav {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(26px, 4.3vw, 78px) clamp(28px, 5vw, 76px) 0;
  position: relative;
  z-index: 3;
}

.brand {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 950;
  line-height: 1;
}

.links {
  display: flex;
  justify-content: center;
  gap: clamp(36px, 7vw, 126px);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 650;
}

.links a {
  opacity: 0.9;
  transition: opacity 160ms ease;
}

.links a:hover {
  opacity: 1;
}

.call-button {
  min-width: 116px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  border: 2px solid rgba(255, 255, 255, 0.86);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.call-button:hover {
  background: #fff;
  color: #11151a;
}

.content {
  position: absolute;
  left: clamp(28px, 5vw, 76px);
  top: 50%;
  z-index: 3;
  transform: translateY(-46%);
  display: grid;
  grid-template-columns: 56px minmax(0, 730px);
  gap: clamp(24px, 4vw, 48px);
  padding: 0;
  align-items: center;
}

.dots {
  display: grid;
  gap: 24px;
  justify-items: center;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.dot.is-active,
.dot:hover {
  background: #fff;
  transform: scale(1.18);
}

.copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 750;
  color: rgba(255, 255, 255, 0.78);
}

h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(58px, 7.6vw, 118px);
  line-height: 0.94;
  font-weight: 950;
}

.copy p:not(.eyebrow) {
  margin: 28px 0 30px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.35;
  font-weight: 500;
}

.cta {
  width: 154px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.cta:hover {
  background: #fff;
  color: #11151a;
}

.bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(360px, 530px) minmax(520px, 680px) minmax(260px, 350px);
  grid-template-rows: 126px;
  align-items: stretch;
  pointer-events: none;
}

.bottom > * {
  pointer-events: auto;
}

.social-strip {
  height: 126px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(28px, 5vw, 76px);
  background: #fff;
  color: #16191e;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
}

.social-strip a {
  opacity: 0.32;
}

.social-strip a:hover {
  opacity: 0.8;
}

.counter {
  color: rgba(19, 23, 28, 0.42);
  font-size: 16px;
}

.counter strong {
  color: rgba(19, 23, 28, 0.54);
}

.meta-card {
  height: 126px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 0 clamp(46px, 6vw, 92px);
  background:
    linear-gradient(90deg, rgba(18, 21, 22, 0.96), rgba(18, 21, 22, 0.84)),
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.22), transparent 50%);
  color: #fff;
  backdrop-filter: blur(10px);
}

.meta-card span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.05;
}

.meta-card strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.12;
}

.preview {
  height: 126px;
  position: relative;
  overflow: hidden;
  display: block;
  background: #21262b;
  cursor: pointer;
}

.preview img {
  width: 100%;
  height: 126px;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.84);
  display: block;
}

.play {
  width: 78px;
  height: 78px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 20px solid #020304;
}

.mobile-panel {
  width: min(100%, 1548px);
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--dark-line);
}

.mobile-panel span {
  background: #fff;
  color: #11151a;
  padding: 18px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .shell {
    width: 100%;
    height: auto;
    min-height: 100svh;
    display: block;
    padding: 0;
    overflow: visible;
  }

  .hero {
    width: 100%;
    height: auto;
    min-height: 100svh;
    box-shadow: none;
  }

  .nav {
    grid-template-columns: 1fr auto;
    padding: 28px 24px 0;
  }

  .links {
    display: none;
  }

  .content {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 18px;
    padding: 110px 24px 270px;
  }

  .dots {
    gap: 18px;
  }

  h1 {
    font-size: clamp(46px, 16vw, 84px);
  }

  .copy p:not(.eyebrow) {
    max-width: 520px;
  }

  .bottom {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .social-strip {
    height: 78px;
    order: 3;
    padding: 0 24px;
    gap: 12px;
  }

  .meta-card {
    height: 108px;
    order: 2;
    padding: 0 24px;
    gap: 22px;
  }

  .preview {
    height: 176px;
    order: 1;
  }

  .preview img {
    height: 176px;
  }

  .play {
    width: 64px;
    height: 64px;
  }

  .mobile-panel {
    display: grid;
  }
}

@media (max-width: 640px) {
  .shade {
    background:
      linear-gradient(90deg, rgba(11, 14, 17, 0.88) 0%, rgba(11, 14, 17, 0.52) 100%),
      linear-gradient(0deg, rgba(11, 14, 17, 0.34), rgba(11, 14, 17, 0.24));
  }

  .content {
    grid-template-columns: 1fr;
    padding: 92px 20px 328px;
  }

  .dots {
    grid-auto-flow: column;
    justify-content: start;
  }

  .copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .social-strip {
    grid-template-columns: 1fr 1fr;
    height: 96px;
  }

  .meta-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
    height: 116px;
  }

  .preview,
  .preview img {
    height: 130px;
  }

  .mobile-panel {
    grid-template-columns: 1fr 1fr;
  }
}
