/* Homepage product narrative: real products first, scoped to the homepage. */
html {
  scroll-behavior: smooth;
}

body.home-page .hero {
  position: relative;
  display: flex;
  min-height: min(900px, 100svh);
  padding: 118px clamp(24px, 6vw, 96px) 72px;
  align-items: flex-end;
  overflow: hidden;
  background: #101214 !important;
  border-bottom: 0;
}

body.home-page .hero-video,
body.home-page .hero-video.is-active {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  border: 0;
  border-radius: 0;
  opacity: 1;
  transform: none;
}

body.home-page .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 9, 0.88) 0%, rgba(5, 7, 9, 0.66) 44%, rgba(5, 7, 9, 0.14) 78%),
    linear-gradient(180deg, rgba(5, 7, 9, 0.16) 0%, rgba(5, 7, 9, 0.22) 58%, rgba(5, 7, 9, 0.72) 100%);
}

body.home-page .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 1440px);
  min-height: 0;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
}

body.home-page .hero-copy {
  max-width: 830px !important;
  padding: 0;
  color: #ffffff;
  background: transparent;
}

body.home-page .hero-copy h1 {
  max-width: 820px !important;
  margin: 0;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(46px, 4.7vw, 72px) !important;
  font-weight: 680 !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

body.home-page .hero-copy .hero-result {
  max-width: 760px;
  margin: 24px 0 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(18px, 1.55vw, 22px) !important;
  line-height: 1.48 !important;
  animation: none !important;
}

body.home-page .hero-copy .hero-audience {
  max-width: 680px;
  margin: 12px 0 0 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.7) !important;
  font-size: clamp(14px, 1.1vw, 16px) !important;
  line-height: 1.5 !important;
  animation: none !important;
}

body.home-page .hero-actions {
  display: flex !important;
  margin: 30px 0 0 !important;
  gap: 12px;
}

body.home-page .hero-actions .button {
  min-width: 164px;
  min-height: 48px;
  justify-content: center;
  border-radius: 6px;
  letter-spacing: 0;
}

body.home-page .hero-actions .button.primary {
  color: #0c1116;
  background: #ffffff;
  border-color: #ffffff;
}

body.home-page .hero-actions .button.primary:hover {
  color: #0c1116;
  background: #eef2f4;
  border-color: #eef2f4;
}

body.home-page .hero-actions .button.ghost {
  color: #ffffff;
  background: rgba(12, 17, 22, 0.24);
  border-color: rgba(255, 255, 255, 0.62);
}

body.home-page .hero-actions .button.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.home-product-story {
  --home-story-width: min(1280px, calc(100% - 72px));
  padding: clamp(76px, 8vw, 116px) 0 clamp(78px, 8vw, 116px);
  background: #f6f7f5;
  scroll-margin-top: 88px;
}

.home-product-story-head {
  display: grid;
  width: var(--home-story-width);
  margin: 0 auto clamp(58px, 7vw, 92px);
  padding: 0 0 clamp(34px, 4vw, 52px);
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(40px, 8vw, 128px);
  align-items: end;
  border-bottom: 1px solid #d8dcda;
}

.home-product-story-head h2 {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: clamp(38px, 4vw, 58px) !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
  text-wrap: pretty;
}

.home-product-story-head > p:last-of-type {
  max-width: 520px;
  margin: 0;
  color: #565e5b;
  font-size: 18px;
  line-height: 1.68;
}

.home-product-model {
  display: grid;
  width: var(--home-story-width);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

.home-product-model + .home-product-model {
  margin-top: clamp(42px, 4vw, 60px);
  padding-top: clamp(42px, 4vw, 60px);
  border-top: 1px solid #d8dcda;
}

.home-model-visual {
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 1.42 / 1;
  border-radius: 8px;
  background-color: #1a1c1d;
  background-image: url("assets/images/home-products/kitchen-family-2.png");
  background-repeat: no-repeat;
  background-size: 275% auto;
  box-shadow: 0 24px 54px rgba(16, 19, 18, 0.12);
}

.home-model-visual-b01 {
  background-position: 6% 64%;
  background-size: 285% auto;
}

.home-model-visual-pro {
  background-position: 96% 64%;
}

.home-product-copy {
  min-width: 0;
  padding: clamp(8px, 2vw, 28px) 0;
}

.home-product-name {
  margin: 0 0 16px;
  color: #545c59;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: 0;
}

.home-product-copy h2 {
  max-width: 520px;
  margin: 0;
  color: #101312;
  font-size: clamp(34px, 3.3vw, 50px) !important;
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
  text-wrap: pretty;
}

.home-product-copy .home-model-summary {
  max-width: 560px;
  margin: 24px 0 0;
  color: #565e5b;
  font-size: 17px;
  line-height: 1.7;
}

.home-model-feature-list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid #cfd4d1;
  list-style: none;
}

.home-model-feature {
  display: grid;
  min-height: 58px;
  padding: 13px 0;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #cfd4d1;
}

.home-model-feature + .home-model-feature {
  padding-left: 0;
  border-left: 0;
}

.home-model-feature span {
  display: block;
  margin-bottom: 0;
  color: #8a918e;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.home-model-feature strong {
  display: block;
  color: #171b19;
  font-size: 16px;
  font-weight: 680;
  line-height: 1.35;
  letter-spacing: 0;
}

.home-product-copy .button {
  min-height: 44px;
  margin-top: 26px;
  padding: 0 20px;
  color: #ffffff;
  background: #121715;
  border-color: #121715;
  border-radius: 6px;
}

.home-product-copy .button::after,
.home-product-compare .button::after {
  margin-left: 14px;
  content: "→";
  font-size: 17px;
  line-height: 1;
}

.home-product-copy .button:hover,
.home-product-copy .button:focus-visible {
  color: #ffffff;
  background: #303734;
  border-color: #303734;
}

.home-product-model-b01 {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.home-product-model-b01 .home-model-visual {
  order: 2;
}

.home-product-model-b01 .home-product-copy {
  order: 1;
}

.home-product-model-pro {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.home-product-model-pro .home-model-visual {
  order: 1;
}

.home-product-model-pro .home-product-copy {
  order: 2;
}

.home-product-compare {
  display: flex;
  width: var(--home-story-width);
  margin: clamp(48px, 5vw, 68px) auto 0;
  padding-top: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 2px solid #303734;
}

.home-product-compare p {
  max-width: 640px;
  margin: 0;
  color: #4f5754;
  font-size: 17px;
  font-weight: 620;
  line-height: 1.55;
}

.home-product-compare .button {
  flex: 0 0 auto;
  color: #ffffff;
  background: #121715;
  border-color: #121715;
  border-radius: 6px;
}

.home-product-compare .button:hover,
.home-product-compare .button:focus-visible {
  color: #ffffff;
  background: #303734;
  border-color: #303734;
}

body.home-page .final-official-video .official-video-card {
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.official-video-launch {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  background: #080a0c;
}

.official-video-launch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 280ms ease, opacity 280ms ease;
}

.official-video-launch:hover img {
  transform: scale(1.015);
  opacity: 0.92;
}

.official-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(8, 10, 12, 0.76);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.official-video-play::after {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  content: "";
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #ffffff;
  transform: translate(-40%, -50%);
}

body.home-page .official-video-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 980px) {
  .home-product-story {
    --home-story-width: min(100% - 40px, 900px);
  }

  .home-product-model,
  .home-product-model-pro {
    gap: 40px;
  }
}

@media (max-width: 760px) {
  html body.home-page .hero {
    min-height: 100svh !important;
    height: 100svh !important;
    padding: 76px 20px 28px !important;
    align-items: flex-end !important;
    background: #0d1012 url("assets/images/hero-slice-poster.jpg") center 46% / cover no-repeat !important;
  }

  html body.home-page .hero-video,
  html body.home-page .hero-video.is-active,
  html body.home-page .hero-video.is-static {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 46% !important;
    transform: none !important;
  }

  html body.home-page .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 7, 9, 0.12) 0%, rgba(5, 7, 9, 0.5) 48%, rgba(5, 7, 9, 0.96) 100%),
      linear-gradient(90deg, rgba(5, 7, 9, 0.66) 0%, rgba(5, 7, 9, 0.14) 88%) !important;
  }

  html body.home-page .hero-grid {
    position: relative !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  html body.home-page .hero-copy {
    width: 100% !important;
    max-width: 100% !important;
  }

  html body.home-page .hero-copy h1 {
    max-width: 360px !important;
    font-size: clamp(30px, 8.5vw, 34px) !important;
    line-height: 1.08 !important;
    text-wrap: balance !important;
  }

  html body.home-page .hero-copy > p.hero-result:not(.eyebrow) {
    position: relative !important;
    z-index: 3 !important;
    max-width: calc(100% - 58px) !important;
    margin-top: 15px !important;
    color: rgba(255, 255, 255, 0.94) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.94) !important;
    font-size: 13.5px !important;
    font-weight: 560 !important;
    line-height: 1.48 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7) !important;
  }

  html body.home-page .hero-copy > p.hero-audience:not(.eyebrow) {
    position: relative !important;
    z-index: 3 !important;
    max-width: calc(100% - 58px) !important;
    margin-top: 8px !important;
    color: rgba(255, 255, 255, 0.82) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.82) !important;
    font-size: 12.5px !important;
    font-weight: 520 !important;
    line-height: 1.45 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72) !important;
  }

  html body.home-page .hero-actions {
    display: grid !important;
    width: 100% !important;
    margin-top: 18px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  html body.home-page .hero-actions .button {
    min-width: 0;
    min-height: 42px !important;
    padding: 0 10px !important;
    border-radius: 6px !important;
    font-size: 12.5px !important;
    white-space: normal !important;
    text-align: center;
  }

  .home-product-story {
    --home-story-width: calc(100% - 32px);
    padding: 56px 0 72px;
    scroll-margin-top: 66px;
  }

  .home-product-story-head {
    margin-bottom: 40px;
    padding: 0 48px 30px 0;
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
  }

  .home-product-story-head h2 {
    margin: 8px 0 0;
    font-size: 30px !important;
    line-height: 1.12 !important;
    text-wrap: pretty;
  }

  .home-product-story-head > p:last-of-type {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.58;
  }

  .home-product-model {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-product-model + .home-product-model {
    margin-top: 44px;
    padding-top: 40px;
    border-top: 1px solid #cfd4d1;
  }

  .home-product-model-b01,
  .home-product-model-pro {
    grid-template-columns: 1fr;
  }

  .home-product-model-b01 .home-model-visual,
  .home-product-model-pro .home-model-visual {
    order: 1;
  }

  .home-product-model-b01 .home-product-copy,
  .home-product-model-pro .home-product-copy {
    order: 2;
  }

  .home-model-visual {
    aspect-ratio: 1.28 / 1;
    background-size: 275% auto;
    box-shadow: 0 16px 34px rgba(16, 19, 18, 0.1);
  }

  .home-model-visual-b01 {
    background-position: 6% 64%;
    background-size: 285% auto;
  }

  .home-model-visual-pro {
    background-position: 96% 64%;
  }

  .home-product-copy {
    padding: 0 48px 0 0;
  }

  .home-product-copy h2 {
    max-width: 100%;
    font-size: 30px !important;
    line-height: 1.12 !important;
    text-wrap: pretty;
    overflow-wrap: anywhere !important;
    hyphens: auto !important;
  }

  .home-product-copy .home-model-summary {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.62;
  }

  .home-model-feature-list {
    grid-template-columns: 1fr;
    margin-top: 24px;
    border-top: 1px solid #cfd4d1;
  }

  .home-model-feature {
    display: grid;
    min-height: 52px;
    padding: 12px 0;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border-top: 0;
    border-bottom: 1px solid #cfd4d1;
  }

  .home-model-feature + .home-model-feature {
    padding-left: 0;
    border-left: 0;
  }

  .home-model-feature span {
    margin-bottom: 0;
  }

  .home-model-feature strong {
    font-size: 14px;
  }

  .home-product-copy .button {
    width: 100%;
    min-height: 44px;
    margin-top: 24px;
    justify-content: center;
  }

  .home-product-compare {
    display: grid;
    margin-top: 48px;
    padding: 24px 48px 0 0;
  }

  .home-product-compare p {
    font-size: 14px;
  }

  .home-product-compare .button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .official-video-play {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 360px) {
  html body.home-page .hero {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  html body.home-page .hero-copy h1 {
    font-size: 29px !important;
  }

  html body.home-page .hero-actions .button {
    min-height: 40px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .official-video-launch img {
    transition: none;
  }
}
