/* ============================================================
   subpages.css
   Page-level styling for science.html and usecases.html —
   editorial system (MODS-reference), loaded AFTER css/style.css.
   Additive only: never renames or removes ids/classes that
   js/main.js or js/theme.js hook into (moleculeCanvas, molSwitch,
   molState, tSlides, tNav, tPrev, tNext, .switch-compare, .reveal,
   [data-count]) — only introduces page-specific classes on top of
   the shared design system. Colors come exclusively from the CSS
   custom properties defined in style.css so light/dark mode both
   keep working. .kicker, .sec-head, .science-grid, .molecule-panel,
   .steps/.step/.step-n, .features-grid, .apps-grid, .stats,
   .uc-row/.uc-num/.uc-link, .testi-* and .cta-band are already
   fully styled in style.css and are NOT redefined here.
   ============================================================ */

/* ---------- sub-hero: left-aligned page intro + banner image ---------- */
.sub-hero {
  padding: 168px 0 0;
  text-align: left;
  overflow: hidden;
}
.sub-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.sub-hero-inner .kicker {
  margin-bottom: 18px;
}
.display-hero {
  margin: 0;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 0.98;
}
.sub-hero-lead {
  color: var(--text-2);
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.55;
}
.sub-hero-banner {
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--border);
  aspect-ratio: 21/9;
  max-height: 480px;
  overflow: hidden;
  position: relative;
}
.sub-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sub-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0), rgba(10, 10, 10, 0.18));
  pointer-events: none;
}

/* ---------- layers section: film cross-section ---------- */
.layers-sec { padding-top: 40px; }
.layers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.layers-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
}
.layers-media img { width: 100%; height: 100%; object-fit: cover; }
.layers-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.layers-list li {
  display: flex;
  gap: 18px;
  padding: 18px 4px;
  border-top: 1px solid var(--border);
}
.layers-list li:last-child { border-bottom: 1px solid var(--border); }
.ll-n {
  flex-shrink: 0;
  width: auto;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-3);
}
.ll-n::before { content: "("; }
.ll-n::after { content: ")"; }
.layers-list h4 { font-size: 1.05rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.layers-list p { color: var(--text-2); font-size: 0.92rem; }

/* ---------- projection mode section ---------- */
.projection-sec { padding-top: 24px; }
.projection-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.projection-copy p { color: var(--text-2); margin: 18px 0 0; max-width: 460px; }
.projection-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
}
.projection-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- spec strip: second stat row on science.html ---------- */
.stats-row2 {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 20px;
}
.stats-row2 .num { font-size: clamp(2rem, 3.6vw, 2.8rem); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .layers-grid,
  .projection-inner { grid-template-columns: 1fr; }
  .sub-hero-banner { aspect-ratio: 16/9; max-height: 360px; }
  .sub-hero { padding-top: 140px; }
}

@media (max-width: 680px) {
  .sub-hero { padding-top: 122px; }
  .sub-hero-inner .kicker { margin-bottom: 14px; }
  .sub-hero-banner { margin-top: 32px; aspect-ratio: 4/3; }
  .stats-row2 { grid-template-columns: 1fr; }
  .layers-list li { padding: 16px 2px; gap: 14px; }
}
