/* ============================================================
   ZeroG 3D — product page specific styles
   Builds on site.css; reuses tokens (--ink, --bone, --aretech-blue…)
   ============================================================ */

/* ---------- Hero background video ---------- */
.hero-media--video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}
.hero-media--video .hero-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media--video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* cover: oversize a 16:9 iframe so it always fills the hero with no letterboxing */
  width: 100vw;
  height: 56.25vw;       /* 16:9 of viewport width */
  min-width: 177.78vh;   /* 16:9 of viewport height */
  min-height: 100vh;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* ---------- Hero intro band (below hero) ---------- */
.hero-intro-band {
  padding: 72px 48px 8px;
  background: var(--paper);
}
/* Tighten the gap between the intro band and the Overview section below it */
.hero-intro-band + .section { padding-top: 56px; }

/* Tighten the gap between Gallery and Specifications */
#gallery { padding-bottom: 44px; }
#specs { padding-top: 44px; }

/* Make the separator dots in the spec values a touch larger / easier to see */
#specs .spec-dot {
  font-size: 1.5em;
  line-height: 0;
  vertical-align: -0.08em;
  margin: 0 2px;
}

/* ZeroG 3D contact background image (override the shared footer.jpg) */
#contact .contact-bg {
  background:
    radial-gradient(circle at 18% 12%, rgba(37,170,225,0.45), transparent 55%),
    radial-gradient(circle at 92% 92%, rgba(46,110,200,0.42), transparent 55%),
    linear-gradient(160deg, rgba(0,40,80,0.82) 0%, rgba(10,15,30,0.88) 100%),
    url('../img/zerog-3d/contact-bg.jpg') center / cover no-repeat;
}
.hero-intro-band p {
  max-width: none;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* ---------- Hero intro paragraph under tagline ---------- */
.product-hero .hero-body {
  align-items: flex-start;
  padding: 128px 48px 64px 48px;
}
.product-hero .spec-strip {
  position: absolute;
  right: 48px;
  bottom: 56px;
}
.product-hero .hero-tagline-bl {
  position: absolute;
  left: 48px;
  bottom: 56px;
  max-width: 30ch;
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 16px rgba(0,0,0,0.35);
}
.product-hero .copy .hero-intro {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Overview: copy + freedom list ---------- */
.overview-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 64px;
  align-items: center;
}
.overview-grid .media-frame {
  aspect-ratio: 4/3;
  background: var(--bone);
  border-radius: 18px;
  overflow: hidden;
}
.overview-grid .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.overview-grid .media-frame--natural { aspect-ratio: auto; max-width: 440px; margin-left: auto; margin-right: auto; }
.overview-grid .media-frame--natural img { height: auto; object-fit: contain; }
/* Overview copy fills the wider text column so it extends toward the image */
#overview .lede { max-width: none; }
.freedom-list {
  list-style: none;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.freedom-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.freedom-list li:last-child { border-bottom: 1px solid var(--rule); }
.freedom-list .num {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--aretech-blue);
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.freedom-list .ft {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.freedom-list .fd {
  font-size: 15px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.55;
}

/* ---------- Feature cards (horizontal carousel) ---------- */
.feat-carousel { --feat-visible: 3.25; --feat-gap: 22px; }
.feat-grid {
  display: flex;
  gap: var(--feat-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Pad so lifted cards' hover shadows aren't clipped flat by the
     scroll container (overflow-x:auto forces overflow-y to clip too).
     Negative margins cancel the padding so cards stay in place. */
  padding: 36px 40px 56px;
  margin: -36px -40px -56px;
  scroll-padding: 0 40px;
}
.feat-grid::-webkit-scrollbar { display: none; }
.feat-card {
  flex: 0 0 calc((100% - (var(--feat-visible) - 1) * var(--feat-gap)) / var(--feat-visible));
  scroll-snap-align: start;
  position: relative;
  border: 0;
  text-align: left;
  background: var(--paper);
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,0.12); }
.feat-card .feat-thumb {
  aspect-ratio: 3/5;
  overflow: hidden;
  background: var(--bone);
  border-radius: 18px 18px 0 0;
}
.feat-card .feat-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--thumb-zoom, 1));
  transition: transform 0.5s var(--easing);
}
.feat-card:hover .feat-thumb img { transform: scale(calc(var(--thumb-zoom, 1) * 1.05)); }
.feat-card .feat-head {
  padding: 22px 22px 26px;
  border-radius: 0 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.feat-card .feat-head .ft-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.feat-card .feat-head .ft-blurb {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.feat-card .feat-open {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
}
.feat-card .feat-open .plus-ic {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #0a0a0a;
  color: #fff;
  display: inline-grid; place-items: center;
  font-size: 15px; line-height: 1;
}
/* the detail content is hidden in the card, surfaced in the modal */
.feat-card .feat-detail { display: none; }

/* ---------- Feature carousel nav (paired pill) ---------- */
.feat-nav {
  display: flex;
  gap: 18px;
  margin: 36px auto 0;
  width: fit-content;
  padding: 12px;
  background: #ececec;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.feat-arrow {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 0;
  background: #0a0a0a;
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.2s var(--easing);
}
.feat-arrow:hover { transform: scale(1.05); }
.feat-arrow[disabled] {
  background: #d2d2d2;
  color: #fff;
  cursor: default;
  pointer-events: none;
  transform: none;
}

/* ---------- Feature modal ---------- */
.feat-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: stretch;
  justify-content: center;
}
.feat-modal.open { display: flex; }
.feat-modal .modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 33, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--easing);
}
.feat-modal.open .modal-scrim { opacity: 1; }
.feat-modal .modal-panel {
  position: relative;
  margin: auto;
  width: min(1080px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 22px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.4);
  transform: translateY(24px) scale(0.985);
  opacity: 0;
  transition: transform 0.38s var(--easing), opacity 0.38s var(--easing);
}
.feat-modal.open .modal-panel { transform: translateY(0) scale(1); opacity: 1; }
.feat-modal .modal-close {
  position: sticky;
  top: 18px;
  float: right;
  margin: 18px 18px 0 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
  display: inline-grid; place-items: center;
  z-index: 5;
  transition: transform 0.2s var(--easing), background 0.2s var(--easing);
}
.feat-modal .modal-close:hover { transform: scale(1.06); background: #5b6471; }

/* detail content layout inside modal */
.feat-detail-inner { padding: 40px 56px 56px; }
.feat-detail-inner .ft-eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.feat-detail-inner h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 600;
  margin: 14px 0 18px;
}
.feat-detail-inner .ft-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}
.feat-detail-inner .ft-video {
  margin-top: 28px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.feat-detail-inner .ft-video iframe,
.feat-detail-inner .ft-video video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}
.feat-detail-inner .ft-video[data-vimeo] {
  position: relative;
  background: #000;
}
.feat-detail-inner .ft-video[data-vimeo] iframe {
  position: absolute;
  inset: 0;
  transition: opacity 1s ease;
}
.feat-subgrid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
}
.feat-sub .sub-media {
  aspect-ratio: 16/11;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bone);
  margin-bottom: 18px;
}
.feat-sub .sub-media img { width: 100%; height: 100%; object-fit: cover; }
.feat-sub h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.feat-sub p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.feat-sub.wide { grid-column: 1 / -1; }
.feat-sub.wide .sub-media { aspect-ratio: 21/9; }

/* Featured sub-item: full width, image left + copy right, image not cropped */
.feat-sub.feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 468px 1fr;
  gap: 32px;
  align-items: center;
}
.feat-sub.feature .sub-media {
  aspect-ratio: 1 / 1;
  margin-bottom: 0;
  background: none;
}
.feat-sub.feature .sub-media img { object-fit: contain; object-position: left center; }
.feat-sub.feature .feat-sub-copy h3 { margin-bottom: 10px; }

/* Mirrored featured row: copy left, media right-justified */
.feat-sub.feature.media-right { grid-template-columns: 1fr 468px; }

/* Cropped (cover) image in a featured row — fills the 468 square */
.feat-sub.feature.media-crop .sub-media img { object-fit: cover; object-position: center; }

/* Uncropped image, centered in the 468 square (for wide composite graphics) */
.feat-sub.feature.media-contain .sub-media img { object-fit: contain; object-position: center; }

/* Justify copy toward the media: media-right rows get right-aligned text */
.feat-sub.feature.media-right .feat-sub-copy { text-align: right; }

/* 468x468 center-cropped video with rounded corners (matches chair image size) */
.ft-crop {
  width: 100%;
  max-width: 468px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  clip-path: inset(0 round 14px);
  transform: translateZ(0); /* own compositing layer so the rounded clip actually applies to the iframe */
  isolation: isolate;
  position: relative;
  background: #000;
}
.ft-crop iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + var(--crop-x, 0px)), -50%);
  height: 100%;
  width: calc(100% * 16 / 9); /* fill the square via the 16:9 video's height, crop sides, keep subject centered */
  border: 0;
}
/* Shift the visible crop window leftward (positive --crop-x reveals more of the left) */
.ft-crop.focus-left { --crop-x: 130px; }

/* ---------- Arcade 3D ---------- */
.arcade {
  background: var(--paper);
  color: var(--ink);
}
.arcade .arcade-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.arcade .arcade-media {
  aspect-ratio: 4/3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bone);
}
.arcade .arcade-media img { width: 100%; height: 100%; object-fit: cover; }
.arcade h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1.0;
  font-weight: 600;
}
.arcade .arcade-lede {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}
.arcade .games {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.arcade .game {
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px;
  background: #fff;
}
.arcade .game .tag {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--aretech-blue);
}
.arcade .game h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 12px 0 10px; }
.arcade .game p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Ecosystem add-ons ---------- */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.eco-card {
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--easing);
}
/* Subtle, non-interactive hover cue — a faint border tint only (no lift),
   since these are static info cards with nothing to click into. */
.eco-card:hover { border-color: #cbc7bc; }
.eco-card .eco-media {
  position: relative;
  aspect-ratio: 550 / 800;
  background: #fff;
  overflow: hidden;
}
.eco-card .eco-media img { width: 100%; height: 100%; object-fit: contain; }
.eco-card .eco-media .fpo-flag {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #e11900;
  border: 4px solid #e11900;
  padding: 6px 22px;
  border-radius: 8px;
  background: rgba(255,255,255,0.4);
  pointer-events: none;
}
.eco-card .eco-body { padding: 24px 22px 28px; }
.eco-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.eco-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---------- Gallery (pill button → scrolling modal) ---------- */
.gallery-cta { display: flex; justify-content: center; margin-top: 12px; }
.gallery-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 16px 38px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--easing), background 0.2s var(--easing);
}
.gallery-open-btn span { transition: transform 0.2s var(--easing); }
.gallery-open-btn:hover { transform: translateY(-2px); background: #5b6471; }
.gallery-open-btn:hover span { transform: translateX(4px); }

/* scrolling gallery modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 650;
  display: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px) saturate(112%);
  -webkit-backdrop-filter: blur(12px) saturate(112%);
  -webkit-overflow-scrolling: touch;
}
.gallery-modal.open { display: block; }
.gallery-modal .gm-close {
  position: fixed;
  top: 24px; right: 28px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(18, 26, 38, 0.55);
  color: #fff;
  font-size: 22px;
  display: grid; place-items: center;
  z-index: 5;
  transition: background 0.2s var(--easing), transform 0.2s var(--easing);
}
.gallery-modal .gm-close:hover { background: rgba(18, 26, 38, 0.78); transform: scale(1.06); }
.gallery-modal .gm-track {
  max-width: 1100px;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  padding: 84px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.gallery-modal .gm-shot {
  width: 100%;
  flex: 0 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.gallery-modal .gm-shot img { width: 100%; height: auto; display: block; }

/* ---------- Video band ---------- */
.video-band {
  position: relative;
  height: 70vh;
  min-height: 460px;
  overflow: hidden;
  background: #000;
}
.video-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.video-band iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-band .vb-inner {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center; color: #fff;
  z-index: 2;
}
.video-band .vb-play {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.2s var(--easing), background 0.2s var(--easing);
}
.video-band .vb-play:hover { transform: scale(1.06); background: rgba(255,255,255,0.28); }
.video-band .vb-play svg { margin-left: 5px; }
.video-band .vb-label { margin-top: 22px; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- Contact (compact, on product page) ---------- */
.z3d-contact {
  background: var(--aretech-blue);
  color: #fff;
}
.z3d-contact .c-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.z3d-contact h2 { font-size: clamp(34px, 4.5vw, 56px); letter-spacing: -0.035em; line-height: 1.02; font-weight: 600; }
.z3d-contact p { margin-top: 18px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.8); max-width: 46ch; }
.z3d-contact form { display: grid; gap: 16px; }
.z3d-contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.z3d-contact input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font: inherit;
  font-size: 15px;
}
.z3d-contact input::placeholder { color: rgba(255,255,255,0.6); }
.z3d-contact input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,0.14); }
.z3d-contact button {
  justify-self: start;
  background: #fff;
  color: var(--aretech-blue);
  border: 0;
  padding: 16px 38px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s var(--easing);
}
.z3d-contact button:hover { transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .feat-carousel { --feat-visible: 2.25; }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  /* Clamp the carousel's negative margins to the mobile section padding (24px)
     so the scroller doesn't leak past the viewport edge and get clipped. */
  .feat-grid { padding-left: 24px; padding-right: 24px; margin-left: -24px; margin-right: -24px; scroll-padding: 0 24px; }
}
@media (max-width: 860px) {
  .overview-grid { grid-template-columns: 1fr; gap: 40px; }
  .arcade .arcade-top { grid-template-columns: 1fr; gap: 32px; }
  .arcade .games { grid-template-columns: 1fr; }
  .z3d-contact .c-wrap { grid-template-columns: 1fr; gap: 36px; }
  .feat-detail-inner { padding: 32px 28px 40px; }
  /* TABLET: keep the lightbox feature rows in their staggered desktop layout
     (image one side, copy the other, alternating) — just make the columns
     flexible so the fixed 468px media column can never overflow the modal.
     Phones collapse this to a single column below (see @640). */
  .feat-sub.feature,
  .feat-sub.feature.media-right { grid-template-columns: 1fr 1fr; gap: 26px; }
  .feat-sub.feature .sub-media,
  .feat-sub.feature .ft-crop { max-width: none; }
}
@media (max-width: 640px) {
  /* PHONE: one column, with each description ALWAYS below the image/video it
     describes. The mirrored "media-right" rows put copy first in the DOM, so
     reorder them here; the rest already lead with their media. */
  .feat-detail-inner { padding: 26px 20px 34px; }
  .feat-subgrid { grid-template-columns: 1fr; gap: 30px; }
  .feat-sub.feature,
  .feat-sub.feature.media-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  /* Description ABOVE each image/video for every non-hero sub-item on mobile,
     so two videos are never adjacent on screen — iOS can only decode one inline
     video at a time. (The hero video + its lede are separate, above the subgrid,
     and stay as-is.) Applies across all products via the shared lightbox. */
  .feat-sub.feature .feat-sub-copy { text-align: left; order: 0; }
  .feat-sub.feature .sub-media,
  .feat-sub.feature .ft-crop { order: 1; }
  .feat-sub.feature .sub-media,
  .feat-sub.feature .ft-crop { max-width: 468px; margin-left: auto; margin-right: auto; }
  /* Static lightbox images stay SQUARE (1:1) on mobile, exactly like desktop
     (per client). We deliberately do NOT override the desktop aspect/fit here:
     .feat-sub.feature .sub-media keeps aspect-ratio:1/1, media-crop images stay
     object-fit:cover, plain feature images stay contain — same as the desktop
     view. (Videos use .ft-crop and are unaffected.) */
}
@media (max-width: 680px) {
  .feat-carousel { --feat-visible: 1.15; }
  .eco-grid { grid-template-columns: 1fr; }
  .z3d-contact .row2 { grid-template-columns: 1fr; }
}
/* ---------- Product hero — phones & tablets ----------
   The desktop full-bleed hero (giant title pinned top-left, tagline + specs
   overlaid at the bottom of a cover-cropped video) crops the sides of the
   video and collides the text on narrower screens — including landscape
   tablets. So below 1200px we drop full-bleed: the WHOLE media shows (16:9
   video complete, photo at a 16:10 frame), the product NAME sits centered and
   white toward the bottom of the media, and the description + specs move into
   a bone panel directly beneath the media. `display:contents` on .hero-body
   promotes its children into the .product-hero grid so the name can overlap
   the media while the tagline/specs flow below — no DOM changes per page. */
@media (max-width: 980px) {
  .product-hero {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bone);
    color: var(--ink);
    /* Top padding above the hero on mobile (matches the live staging fix). */
    padding-top: 18%;
  }
  .product-hero .hero-body { display: contents; }

  /* Row 1: the media, shown whole. */
  .product-hero .hero-media,
  .product-hero .hero-media--video {
    position: relative;
    inset: auto;
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    height: auto;
    overflow: hidden;
  }
  .product-hero .hero-media--video {
    /* 16:9 box via the padding-ratio technique (resolved against width). */
    height: 0;
    padding-top: 56.25%;
    aspect-ratio: auto;
    background: #0c1a2b;
  }
  /* Iframe overlays the spacer-defined 16:9 box. */
  .product-hero .hero-media--video iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    transform: none !important;
  }
  /* Photo hero (e.g. BabyG): cover a 16:10 frame so the overlaid name reads. */
  /* Photo hero (e.g. BabyG): show the WHOLE image (natural height at full
     width) so the top isn't cropped. */
  .product-hero .hero-media:not(.hero-media--video) {
    height: auto;
    aspect-ratio: auto;
    background: #0c1a2b;
  }
  .product-hero .hero-media:not(.hero-media--video) img,
  .product-hero .hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  /* Bottom scrim keeps the white name legible over any media. */
  .product-hero .hero-media::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.5) 100%);
  }
  .product-hero .hero-photo-overlay { display: none; }

  /* Product NAME: overlaid on the media, white, centered, toward the bottom. */
  .product-hero .copy {
    grid-row: 1;
    grid-column: 1;
    align-self: end;
    justify-self: center;
    z-index: 2;
    max-width: none;
    padding: 0 20px 18px;
    text-align: center;
    pointer-events: none;
  }
  .product-hero .copy h1 {
    color: #fff !important;
    margin: 0;
    line-height: 1;
    font-size: clamp(40px, 9vw, 74px) !important;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 22px rgba(0,0,0,0.5);
  }

  /* Description + specs: bone panel directly beneath the media. */
  .product-hero .hero-tagline-bl {
    grid-column: 1;
    position: static;
    left: auto; right: auto; bottom: auto;
    order: 1;
    margin: 0;
    padding: 26px 24px 0;
    max-width: none;
    color: var(--ink);
    text-shadow: none;
    font-weight: 600;
    font-size: clamp(19px, 4.6vw, 26px) !important;
  }
  .product-hero .spec-strip {
    grid-column: 1;
    position: static;
    left: auto; right: auto; bottom: auto;
    order: 2;
    margin: 0;
    padding: 18px 24px 30px;
    display: flex;
    flex-wrap: wrap;
    grid-auto-flow: initial;
    gap: 16px 32px;
  }
  .product-hero .spec-strip .spec .v { font-size: 22px; color: var(--ink); }
  .product-hero .spec-strip .spec .l { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
}
