/* Hallmark · design-system: design.md · product Workbench
 * continuation of dark landing · content-height hero (no forced 100vh)
 */

.dark-product-page footer {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 16px;
  width: min(calc(100% - 64px), var(--shell));
  margin: 0 auto;
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dark-product-page footer .footer-statement {
  max-width: 36ch;
  margin: 0;
  color: var(--stone-soft);
  font: 400 13px/1.5 var(--sans);
  letter-spacing: 0.01em;
  text-transform: none;
}
.dark-product-page footer .footer-meta { margin: 0; color: var(--muted-deep); }
.dark-product-page footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}

body.dark-product-page {
  min-height: 0;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    var(--void);
  background-size: 120px 120px, 120px 120px, auto;
}

.dark-product-page .masthead { background: rgba(12, 16, 15, 0.9); }
.dark-product-page .masthead-inner { border-bottom-color: var(--line); }

.dark-product-page .product-main {
  position: relative;
  overflow: clip;
}
.dark-product-page .product-main::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(62vw, 900px);
  aspect-ratio: 1;
  top: -26vw;
  right: -25vw;
  border: 1px solid var(--signal-dim);
  border-radius: 50%;
  box-shadow: 0 0 120px var(--signal-glow);
  pointer-events: none;
}

.dark-product-page .page-hero {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), var(--shell));
  min-height: 0;
  margin: 0 auto;
  padding: 100px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  grid-template-rows: auto auto auto auto;
  align-content: center;
  gap: 0 8vw;
}
.dark-product-page .page-hero > :not(.product-mark-stage):not(.product-hero-stage) { grid-column: 1; }
.dark-product-page .eyebrow {
  margin: 0 0 25px;
  color: var(--teal-meta);
  font: 11px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dark-product-page h1 {
  margin: 0;
  color: var(--stone);
  font: 500 clamp(68px, 9vw, 138px) / 0.88 var(--serif);
  letter-spacing: -0.065em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.dark-product-page .hero-lede {
  max-width: 720px;
  margin: 34px 0 0;
  color: var(--stone-soft);
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.55;
}
.dark-product-page .status {
  width: fit-content;
  margin: 34px 0 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 10px/1.35 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-mark-stage,
.product-hero-stage {
  grid-column: 2;
  grid-row: 1 / -1;
  min-height: 480px;
  margin: 0;
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(5, 7, 6, 0.84);
}
.product-mark-stage::before,
.product-mark-stage::after {
  content: "";
  position: absolute;
  background: var(--line);
}
.product-mark-stage::before { width: 100%; height: 1px; left: 0; top: 50%; }
.product-mark-stage::after { width: 1px; height: 100%; top: 0; left: 50%; }
.product-mark-stage img {
  position: relative;
  z-index: 1;
  width: min(62%, 300px);
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.58));
}
.product-mark-stage figcaption {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  color: var(--muted-deep);
  font: 9px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* README / repo hero media — full-bleed product stage */
.product-hero-stage {
  padding: 0;
  place-items: stretch;
}
.product-hero-stage img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.product-hero-stage figcaption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--stone-soft);
  background: linear-gradient(transparent, rgba(5, 7, 6, 0.82));
  font: 9px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Product hero images have varying native aspect ratios; the shared near-square
   hero-stage box crops them under object-fit:cover, so each page pins the stage
   to its own source aspect ratio instead of stretching or cropping. */
.marigold-hero { aspect-ratio: 1672 / 941; }
.hexwire-hero { aspect-ratio: 853 / 1844; }
.hollersports-hero { aspect-ratio: 1672 / 941; }
.patchhive-hero { aspect-ratio: 1408 / 704; }
.psyfi-hero { aspect-ratio: 1400 / 933; }
.surveillance-survivor-hero { aspect-ratio: 1280 / 640; }
.waykin-hero { aspect-ratio: 1024 / 1024; }
.slosh-hero { aspect-ratio: 416 / 496; }
.autogive-hero { aspect-ratio: 1600 / 1000; }
.suas-hero { aspect-ratio: 1600 / 1000; }
.noema-hero { aspect-ratio: 1168 / 784; }

.marigold-hero,
.hexwire-hero,
.hollersports-hero,
.patchhive-hero,
.psyfi-hero,
.surveillance-survivor-hero,
.waykin-hero,
.autogive-hero,
.suas-hero,
.noema-hero {
  min-height: 0;
  align-self: center;
}
.slosh-hero {
  min-height: 0;
  align-self: center;
}
.slosh-hero {
  min-height: 0;
  align-self: center;
}
.marigold-hero img,
.hexwire-hero img,
.hollersports-hero img,
.patchhive-hero img,
.psyfi-hero img,
.surveillance-survivor-hero img,
.waykin-hero img,
.autogive-hero img,
.suas-hero img,
.noema-hero img {
  min-height: 0;
}
.slosh-hero img {
  min-height: 0;
}
.slosh-hero img {
  min-height: 0;
}

.dark-product-page .product-section {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--suite);
}
.dark-product-page .product-detail {
  width: min(calc(100% - 64px), var(--shell));
  margin: 0 auto;
  padding: 120px 0;
}
.dark-product-page .product-detail .split {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 8vw;
  align-items: start;
}
.dark-product-page .product-detail h2 {
  margin: 0;
  color: var(--stone);
  font: 500 clamp(44px, 5.4vw, 78px) / 0.98 var(--serif);
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.dark-product-page .product-detail .split > div {
  max-width: 800px;
  padding-top: 8px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.media-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--carbon-2);
  transition: border-color 180ms ease, transform 180ms ease;
}
.media-grid a:hover,
.media-grid a:focus-visible {
  border-color: var(--signal);
  transform: translateY(-3px);
}
.media-grid img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #101513;
}
.dark-product-page .product-detail p {
  margin: 0 0 22px;
  color: var(--stone-soft);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.72;
}
.dark-product-page .product-detail p:last-child { margin-bottom: 0; }
.dark-product-page .text-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--signal);
  color: var(--stone);
  font: 700 11px/1.3 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dark-product-page .section-accent {
  border-top: 0;
  background: var(--paper-work);
  color: var(--carbon-2);
}
.dark-product-page .section-accent .product-detail h2 { color: var(--carbon-2); }
.dark-product-page .section-accent .product-detail p { color: var(--work-body); }
.dark-product-page .section-accent .text-link { color: var(--carbon-2); }

.product-back {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}
.product-back-inner {
  width: min(calc(100% - 64px), var(--shell));
  min-height: 170px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.product-back p {
  margin: 0;
  color: var(--muted);
  font: 10px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.product-back a {
  padding-bottom: 7px;
  border-bottom: 2px solid var(--signal);
  font: 700 11px/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  body.dark-product-page { background-size: 76px 76px, 76px 76px, auto; }
  .dark-product-page .page-hero {
    width: calc(100% - 40px);
    min-height: auto;
    padding: 90px 0 80px;
    grid-template-columns: 1fr;
  }
  .dark-product-page .page-hero > :not(.product-mark-stage):not(.product-hero-stage) { grid-column: 1; }
  .dark-product-page h1 { font-size: clamp(58px, 18vw, 90px); }
  .product-mark-stage,
  .product-hero-stage {
    grid-column: 1;
    grid-row: auto;
    min-height: 390px;
    margin-top: 56px;
  }
  .product-mark-stage img { width: min(58%, 250px); max-height: 300px; }
  .product-hero-stage img { min-height: 280px; }
  .marigold-hero,
  .hexwire-hero,
  .hollersports-hero,
  .patchhive-hero,
  .psyfi-hero,
  .surveillance-survivor-hero,
  .waykin-hero,
  .autogive-hero,
  .suas-hero,
  .noema-hero { min-height: 0; }
  .dark-product-page .product-detail {
    width: calc(100% - 40px);
    padding: 82px 0;
  }
  .dark-product-page .product-detail .split { grid-template-columns: 1fr; gap: 38px; }
  .dark-product-page .product-detail .split > div { padding-top: 0; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .media-grid img { height: 260px; }
  .product-back-inner {
    width: calc(100% - 40px);
    min-height: 140px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

/* Skill install CTAs */
.install-panel {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 6, 0.55);
}
.install-panel h3 {
  margin: 0 0 12px;
  color: var(--stone);
  font: 500 18px/1.3 var(--serif);
  letter-spacing: -0.02em;
}
.install-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.install-panel pre {
  margin: 0 0 14px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  background: var(--void);
  color: var(--stone-soft);
  font: 12px/1.55 var(--mono);
  white-space: pre-wrap;
  word-break: break-word;
}
.install-panel pre:last-child { margin-bottom: 0; }
.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 16px;
}
