.page-home {
  --home-paper: #f7f8fa;
  --home-line: #dce3ec;
}

.page-home .header { border-bottom: 1px solid var(--home-line); }
.home-hero { color: #fff; background: linear-gradient(125deg, #0a172a, #142d4b); }
.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  align-items: center;
  gap: clamp(27px, 4.3vw, 70px);
  padding-block: clamp(44px, 5vw, 78px);
}
.home-hero .eyebrow { color: var(--yellow); margin-bottom: 18px; }
.home-hero h1 {
  color: #fff;
  font-size: clamp(2.55rem, 4.15vw, 4rem);
  letter-spacing: -.055em;
  line-height: 1.035;
}
.home-hero h1 em { display: block; color: var(--yellow); font-style: normal; }
.home-hero-copy > p:not(.eyebrow) { color: #dde8f5; margin: 22px 0 26px; max-width: 42ch; font-size: 1.11rem; }
.home-hero-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid #ffffff33;
  border-radius: 12px;
  box-shadow: 0 22px 48px #030b1677;
  background: #142437;
}
.home-hero-photo img { width: 100%; height: auto; aspect-ratio: 1030 / 611; object-fit: cover; }
.home-hero-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px 7px 12px;
  border-left: 2px solid var(--yellow);
  background: #071526ea;
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
}

.home-range { background: var(--home-paper); }
.home-range .section, .home-about { padding-block: clamp(46px, 6.3vw, 94px); }
.home-range-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: 28px;
}
.home-range-head .eyebrow { margin-bottom: 12px; }
.home-range-head h2 { font-size: clamp(2rem, 4vw, 3.75rem); }
.home-range-head > .text-link { flex: 0 0 auto; }
.home-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.home-device {
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--ink);
  min-width: 0;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: #fff;
  overflow: clip;
  box-shadow: 0 7px 18px #0b193006;
  transition: box-shadow 150ms ease, border-color 150ms ease;
}
.home-device:hover { border-color: #9aafc8; box-shadow: 0 12px 24px #0b193010; }
.home-device-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--home-line);
  background: radial-gradient(ellipse at 52% 33%, #f7f9fc 0%, #e9eff6 66%, #dce6f1 100%);
}
.home-device-stage::before {
  content: "";
  position: absolute;
  bottom: 14%;
  left: 13%;
  width: 74%;
  height: 9%;
  background: radial-gradient(ellipse at center, #0d233849, transparent 70%);
  filter: blur(5px);
}
.home-device--vb .home-device-stage::before { left: 25%; width: 50%; }
.home-device-stage img {
  position: absolute;
  inset: 13% 8% 9%;
  width: 84%;
  height: 78%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 5px 3px #192c4720);
}
.home-device--vb .home-device-stage img {
  inset: 12% 16% 9%;
  width: 68%;
  height: 79%;
}
.home-device--hb .home-device-stage img { left: 5%; right: 5%; width: 90%; }
.home-device-stage .home-series {
  align-self: start;
  justify-self: start;
  z-index: 1;
  margin: 13px;
  padding: 5px 8px;
  color: #233e5c;
  background: #f8fbffec;
  border: 1px solid #b8c8da;
  border-radius: 4px;
  font-weight: 780;
  font-size: .7rem;
  line-height: 1.2;
  letter-spacing: .045em;
}
.home-device-copy { display: flex; flex-direction: column; align-items: start; padding: clamp(16px, 2vw, 26px); }
.home-device-copy h3 { font-size: clamp(1.16rem, 1.85vw, 1.59rem); }
.home-device-copy p { margin: 10px 0 17px; color: var(--muted); font-size: .95rem; }
.home-device-copy .text-link { margin-top: auto; }
.home-image-note { margin: 11px 0 0; font-size: .83rem; color: var(--muted); }

.home-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 16px;
  border-top: 1px solid var(--home-line);
  padding-top: 19px;
  margin-top: 31px;
  color: var(--muted);
  font-size: .96rem;
}
.home-related strong { color: var(--ink); }
.home-related p { margin: 0; }
.home-about {
  display: grid;
  grid-template-columns: minmax(0, 1.21fr) minmax(0, .79fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
}
.home-about figure { margin: 0; }
.home-about figure img { width: 100%; aspect-ratio: 1.95; object-fit: cover; object-position: 54% center; border-radius: 11px; }
.home-about .section-head { margin-bottom: 21px; }
.home-about .section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.875rem); text-wrap: balance; }
.page-home .contact-bar { background: linear-gradient(112deg, #142b48, #173a5c); }

@media (max-width: 940px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 25px; }
  .home-hero-copy > p:not(.eyebrow) { max-width: 59ch; }
  .home-catalog { grid-template-columns: 1fr; }
  .home-device { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-rows: 1fr; }
  .home-device-stage { aspect-ratio: auto; min-height: clamp(180px, 33vw, 245px); border-bottom: 0; border-right: 1px solid var(--home-line); }
  .home-device-copy { justify-content: center; }
  .home-device-copy .text-link { margin-top: 0; }
  .home-about { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .home-hero-inner { padding-block: 34px 27px; }
  .home-hero h1 { font-size: clamp(2.1rem, 8.9vw, 3.45rem); }
  .home-hero .eyebrow { margin-bottom: 12px; }
  .home-hero-copy > p:not(.eyebrow) { margin: 15px 0 19px; font-size: 1rem; }
  .home-range-head { align-items: start; flex-direction: column; gap: 11px; }
  .home-device { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .home-device-stage { aspect-ratio: 16 / 10; min-height: 0; border-right: 0; border-bottom: 1px solid var(--home-line); }
  .home-about { gap: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-device { transition: none; }
}
