/* =====================================================================
   Product sheets (Figma: "3 - Products Spec - …", 1920 px).
   Static hero (Stabilisation Point, CASEVAC Module), 02/Specifications, 03/Gallery, "Explore the series"
   and "Need a configuration". Command Centre and Medical Cabinet use only the last three: their hero is the animation.
   ===================================================================== */

.t-head-56 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 2.9167vw, 56px); line-height: 1.04; letter-spacing: 0.01em; text-transform: uppercase; }

/* Centred section tag: small square + text + line underneath. */
.p-tag { display: inline-flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(21, 21, 21, 0.08); color: var(--orange); }
.p-tag::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.p-tag--light { color: var(--light-blue); border-bottom-color: rgba(255, 255, 255, 0.08); }

/* ---------- 01 · Static hero ---------- */
.p-hero { position: relative; height: max(640px, min(912px, 100svh)); overflow: hidden; background: var(--surface-hero); }
.p-hero__shape { position: absolute; height: auto; pointer-events: none; opacity: 0.5; }
.p-hero__shape--top { left: -6vw; top: -16.7vw; width: 45.26vw; }
.p-hero__shape--bottom { left: 23.96vw; top: 46.4%; width: 48.65vw; }
.p-hero__media { position: absolute; z-index: 1; right: 0; top: 0; bottom: 0; width: 64.84vw; }
.p-hero__media img { width: 100%; height: 100%; object-fit: contain; object-position: 100% 50%; mix-blend-mode: multiply; } /* removes the photo's white background */
.p-hero--casevac .p-hero__media { right: 3.75vw; top: 25.4%; bottom: auto; width: 52.6vw; height: auto; }
.p-hero--casevac .p-hero__media img { height: auto; }
.p-hero__copy {
  position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--page-gutter); width: min(737px, 38.4vw);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 32px; padding-top: 32px;
}
.p-hero__tag { padding: 5px 16px; border-left: 2px solid var(--light-blue); }

/* ---------- 02 · Specifications (same as Command Centre) ---------- */
.specs {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 868fr) minmax(0, 774fr); column-gap: clamp(32px, 6.15vw, 118px);
  padding: clamp(80px, 7.5vw, 144px) var(--page-gutter) clamp(120px, 8.8vw, 169px);
  background: var(--surface-dark); color: var(--white);
}
.specs__media { position: relative; min-height: 320px; overflow: hidden; border-radius: var(--radius-sm); }
.specs__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.specs__content { display: flex; flex-direction: column; gap: 40px; }
.specs__intro { display: flex; flex-direction: column; align-items: flex-start; }
.specs__tag { display: inline-flex; align-items: center; gap: 16px; padding-bottom: 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: var(--light-blue); }
.specs__bullet { width: 6px; height: 6px; background: var(--light-blue); }
.specs__title { margin-top: 24px; }
.specs__desc { margin-top: 12px; }
.specs__desc p + p { margin-top: 24px; }
.specs__table { margin: 0; }
.specs__table div { display: flex; justify-content: space-between; gap: 24px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font: 700 14px/1.5 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.specs__table div:last-child { border-bottom: 0; }
.specs__table dd { margin: 0; text-align: right; }
.specs__divider { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; pointer-events: none; }

/* ---------- 03 · Gallery ---------- */
.p-gallery { position: relative; overflow: hidden; padding: 144px var(--page-gutter); background: var(--surface-dark); color: var(--white); text-align: center; }
.p-gallery__mesh { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-height: 960px; object-fit: cover; opacity: 0.62; pointer-events: none; }
/* The mesh fades at the edges: without this the image's top edge showed as a line between the specifications and the gallery. */
.p-gallery__mesh { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%); }
.p-gallery__head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.p-gallery__grid { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin-top: 80px; }
.p-gallery__grid figure { margin: 0; aspect-ratio: 571 / 624; overflow: hidden; border-radius: var(--radius-sm); background: #222; }
.p-gallery__grid figure:nth-child(1), .p-gallery__grid figure:nth-child(4) { grid-column: span 2; }
.p-gallery__grid figure:nth-child(2), .p-gallery__grid figure:nth-child(3) { grid-column: span 4; aspect-ratio: auto; }
.p-gallery__grid figure:nth-child(n+5) { grid-column: span 2; }
.p-gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .p-gallery__grid figure:hover img { transform: scale(1.03); }
}

/* ---------- Explore the series ---------- */
.p-explore { position: relative; padding: 144px var(--page-gutter) 59px; background: var(--white); text-align: center; }
.p-explore__head { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.p-explore__title { max-width: 618px; }
.p-explore__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; text-align: left; }
.p-card { display: flex; flex-direction: column; gap: 24px; color: var(--black); }
.p-card__media { aspect-ratio: 571 / 400; overflow: hidden; border-radius: var(--radius-sm); }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.p-card__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.12; text-transform: uppercase; color: #000; }
.p-card__text { margin-top: 16px; }
.p-card__more { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.5; text-transform: uppercase; color: #000; }
.p-card__more svg { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .p-card:hover .p-card__media img { transform: scale(1.04); }
  .p-card:hover .p-card__more svg { transform: translate(2px, -2px); }
}

/* ---------- Need a configuration you don't see here? ---------- */
.p-config { position: relative; overflow: hidden; padding: 173px var(--page-gutter) 200px; background: var(--white); text-align: center; }
/* Background symbol (Figma, section 7): two brand pieces rotated -30 and +30 degrees, blue at 6%, sized to the section. */
.p-config__shapes { position: absolute; left: 0; top: 0; width: 100%; height: auto; pointer-events: none; }
.p-config__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.p-config__title { max-width: 731px; }
.p-config__text { max-width: 462px; margin-top: 24px; opacity: 0.72; }
.p-config .btn-primary { width: 343px; margin-top: 40px; }
.p-config .btn-primary__label { width: 292px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .p-hero { height: auto; min-height: 0; padding: 150px var(--page-gutter) 0; }
  .p-hero__copy { position: relative; left: 0; width: 100%; padding: 0; }
  .p-hero__media, .p-hero--casevac .p-hero__media { position: relative; right: auto; top: auto; width: 100%; height: auto; margin-top: 24px; }
  .p-hero__media img { height: auto; }
  .specs { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .specs__media { aspect-ratio: 868 / 657; min-height: 0; }
  .p-gallery { padding: 96px var(--page-gutter); }
  .p-gallery__grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
  .p-gallery__grid figure:nth-child(n) { grid-column: span 1; aspect-ratio: 571 / 624; }
  .p-gallery__grid figure:nth-child(2), .p-gallery__grid figure:nth-child(3) { grid-column: span 2; aspect-ratio: 1165 / 624; }
  .p-explore { padding-top: 96px; }
  .p-explore__grid { grid-template-columns: 1fr; gap: 48px; }
  .p-config { padding: 112px var(--page-gutter) 128px; }
}
@media (max-width: 640px) {
  .p-config .btn-primary { width: 100%; max-width: 343px; }
}
