/* Subsurface presentation only. The shared editorial stylesheet owns body
   typography, section rhythm, content width, grids and responsive gutters. */
html[data-project="subsurface"] { background: #fff; }
html[data-project="subsurface"] .ss {
  --ss-ink: #202B32;
  --ss-muted: #54646B;
  --ss-rule: #DCE8EA;
  --rp-text: var(--ss-ink);
  --rp-muted: var(--ss-muted);
  --rp-divider: var(--ss-rule);
}

/* Adapt Alignment's lower-left cover composition to the existing ss video
   hooks. Keep both the poster and video on the same full-screen stage. */
html[data-project="subsurface"] .ss .ss-hero {
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  text-align: left;
}
html[data-project="subsurface"] .ss .ss-hero::after {
  background: linear-gradient(90deg, rgba(6, 14, 20, .85), rgba(6, 14, 20, .55) 28%, rgba(6, 14, 20, .18) 48%, transparent 66%);
}
html[data-project="subsurface"] .ss .ss-hero-copy {
  position: absolute;
  bottom: clamp(56px, 8svh, 112px);
  left: clamp(28px, 5.5vw, 96px);
  width: min(46vw, 650px);
  font-family: var(--font-noto-sans), sans-serif;
}
.ss .ss-hero-eyebrow {
  margin: 0 0 18px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .13em;
  text-transform: uppercase;
}
html[data-project="subsurface"] .ss .ss-hero-title {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 5.3vw, 86px);
  font-weight: 750;
  line-height: .99;
  letter-spacing: -.048em;
  text-wrap: wrap;
}
.ss .ss-hero-title > span { display: block; }
.ss .ss-hero-title-accent {
  color: #90E3E9;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.04em;
}
html[data-project="subsurface"] .ss .ss-hero-subtitle {
  max-width: 470px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .93);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.5;
}
html[data-project="subsurface"] .ss .ss-hero-foot {
  left: auto;
  right: var(--page-gutter);
  bottom: 20px;
  width: auto;
  margin: 0;
}
.ss .ss-motion {
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.ss .ss-motion:not([hidden]) { display: inline-flex; }
.ss .ss-motion[aria-pressed="false"] .ss-play-icon,
.ss .ss-motion[aria-pressed="true"] .ss-pause-icon { display: none; }

.ss .ss-section-number { color: #087E93; }
/* Cancel the shared sibling interval within this side-by-side composition. */
html[data-project="subsurface"] .ss .rp-feature-grid > .ss-rationale {
  margin-top: 0;
  padding-left: 20px;
  border-left: 2px solid #087E93;
}
.ss .rp-section .ss-sensing-film {
  width: min(100%, 560px);
  margin: var(--media-space) auto 0;
}
.ss .ss-method-figure { margin: var(--media-space) 0 0; }
.ss .ss-figure-link { display: block; cursor: zoom-in; }
.ss .ss-figure-link img { width: 100%; }
.ss .ss-resolution-link {
  display: inline-block;
  margin-top: 8px;
  font-size: var(--rp-caption-size);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Keep the shared three-panel metric component; only the nested pairs and
   Subsurface palette need local treatment. */
html[data-project="subsurface"] .ss .ss-metrics > .rp-result-group {
  justify-content: flex-start;
  margin: 0;
  border-color: var(--rp-divider);
  background: #EEF5F6;
}
.ss .ss-metric-values {
  display: grid;
  width: 100%;
  gap: 12px;
  margin: 0;
}
.ss .ss-metric-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ss .ss-metric-values > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
html[data-project="subsurface"] .ss .ss-metrics dd { color: #087E93; }
.ss .ss-metrics .ss-metric-context {
  margin: 0;
  color: var(--rp-muted);
  font-size: var(--rp-caption-size);
  line-height: 1.5;
  text-align: center;
}
.ss .ss-evaluation-notes { margin-top: 28px; }

/* Compact supporting bibliography. Keep every override inside this section;
   the shared editorial hierarchy continues to own the research above it. */
html[data-project="subsurface"] #publication .rp-section-heading {
  margin-bottom: 16px;
}
html[data-project="subsurface"] #publication .rp-section-heading h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}
html[data-project="subsurface"] #publication .ss-publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
html[data-project="subsurface"] #publication .ss-publication-list > li {
  padding-block: 8px;
  border-top: 1px solid var(--rp-divider);
}
html[data-project="subsurface"] #publication > .ss-publication-list > li:first-child {
  padding-top: 0;
  border-top: 0;
}
html[data-project="subsurface"] #publication .ss-publication-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: normal;
  text-wrap: wrap;
}
html[data-project="subsurface"] #publication .ss-publication-title a {
  color: var(--rp-text);
}
html[data-project="subsurface"] #publication .ss-publication-title a:is(:hover, :focus-visible) {
  color: #087E93;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html[data-project="subsurface"] #publication .rp-result-group > p {
  margin-top: 4px;
  color: var(--rp-muted);
  font-size: 13.5px;
  line-height: 1.5;
}
html[data-project="subsurface"] #publication .rp-result-group > .ss-publication-year {
  margin: 0 0 3px;
  font-size: 12.5px;
}
html[data-project="subsurface"] #publication .ss-publication-list cite {
  font-size: 12.5px;
  font-style: normal;
}
html[data-project="subsurface"] #publication .ss-more-publications summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding-block: 8px;
  color: var(--rp-muted);
  font-size: 14px;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
html[data-project="subsurface"] #publication .ss-more-publications summary::-webkit-details-marker {
  display: none;
}
html[data-project="subsurface"] #publication .ss-more-publications summary::marker {
  content: "";
}
html[data-project="subsurface"] #publication .ss-more-publications summary::before {
  content: "";
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
html[data-project="subsurface"] #publication .ss-more-publications[open] summary::before {
  transform: translateY(-1px) rotate(45deg);
}
html[data-project="subsurface"] #publication .ss-more-publications summary:is(:hover, :focus-visible) {
  color: #087E93;
}
html[data-project="subsurface"] #publication .ss-more-publications summary:focus-visible {
  outline: 2px solid #63C8D8;
  outline-offset: 4px;
}
html[data-project="subsurface"] #publication .ss-more-publications .ss-fewer-label,
html[data-project="subsurface"] #publication .ss-more-publications[open] .ss-more-label {
  display: none;
}
html[data-project="subsurface"] #publication .ss-more-publications[open] .ss-fewer-label {
  display: inline;
}
.ss-footer { border-top: 1px solid #DCE8EA; }
.ss-footer p { margin: 0; text-align: left; }

@media (768px <= width <= 1100px) {
  html[data-project="subsurface"] .ss .ss-hero-copy { left: 5vw; width: min(52vw, 580px); }
  html[data-project="subsurface"] .ss .ss-hero-title { font-size: clamp(44px, 5.3vw, 60px); }
  html[data-project="subsurface"] .ss .ss-hero-subtitle { max-width: 420px; font-size: 15px; }
}
@media (max-width: 767px), (max-width: 900px) and (orientation: portrait) {
  html[data-project="subsurface"] .ss .ss-hero::after {
    background: linear-gradient(to top, rgba(8, 16, 22, .94), rgba(8, 16, 22, .75) 32%, rgba(8, 16, 22, .17) 66%, transparent 85%);
  }
  html[data-project="subsurface"] .ss .ss-hero-copy {
    inset: auto 24px 84px;
    width: auto;
  }
  html[data-project="subsurface"] .ss .ss-hero-title {
    font-size: clamp(34px, 9vw, 56px);
    line-height: 1.02;
  }
  html[data-project="subsurface"] .ss .ss-hero-subtitle {
    max-width: 470px;
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.45;
  }
  html[data-project="subsurface"] .ss .ss-hero-media > :is(img, video) {
    object-position: 65% center;
  }
}
/* A short landscape viewport still needs room for the cover and control. */
@media (max-height: 540px) and (orientation: landscape) {
  html[data-project="subsurface"] .ss .ss-hero-copy { bottom: 28px; width: 52vw; }
  html[data-project="subsurface"] .ss .ss-hero-title { font-size: clamp(28px, 6.5svh, 38px); }
  .ss .ss-hero-eyebrow { margin-bottom: 10px; }
  html[data-project="subsurface"] .ss .ss-hero-subtitle { margin-top: 14px; font-size: 13px; }
}
