/* Truth Bridge page — page-scoped components.
   Loaded AFTER styles.css. Inherits all tokens from :root there.

   The page is a walk along one diagram, so it is mostly a repeating unit:
   a wide render, a caption, and a block of explanation. .stage is that unit. */

.tb-hero {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  padding-bottom: clamp(56px, 7vw, 88px);
}

.tb-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tb-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 60%;
  opacity: 0.5;
}

/* The banner is a pale misty dusk, so white text over it needs a real scrim
   rather than a tint. Heavier on the left where the copy sits. */
.tb-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 34, 0.95) 0%, rgba(7, 16, 34, 0.86) 44%, rgba(7, 16, 34, 0.5) 100%),
    linear-gradient(0deg, rgba(7, 16, 34, 0.88) 0%, transparent 58%);
}

.tb-hero .section-inner {
  position: relative;
  z-index: 1;
}

.tb-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.04;
  max-width: 19ch;
}

.tb-hero p:not(.eyebrow) {
  color: var(--fog);
  max-width: 60ch;
}

/* ---------- the repeating stage unit ---------- */
.stage-figure {
  margin: 0 0 clamp(20px, 3vw, 30px);
}

.stage-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.stage-frame img,
.stage-frame video {
  display: block;
  width: 100%;
  height: auto;
  /* The width/height attributes hold the box before the poster decodes, so the
     page does not jump as six clips come into view on the way down. */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink);
}

.stage-figure figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 76ch;
}

.section-contrast .stage-figure figcaption {
  color: var(--fog);
}

.section-contrast .stage-frame {
  border-color: var(--line-dark);
}

/* ---------- the five filters ---------- */
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
  margin-top: 34px;
}

.filter {
  padding-top: 14px;
  border-top: 3px solid var(--swatch, var(--brass));
}

.filter h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.filter p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.section-contrast .filter p {
  color: var(--fog);
}

/* ---------- the permission callout ---------- */
.permission {
  margin: clamp(30px, 4vw, 44px) 0 0;
  padding: clamp(22px, 3vw, 32px);
  border-left: 3px solid var(--brass);
  background: rgba(217, 176, 74, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.permission p {
  margin: 0;
  color: var(--fog);
  max-width: 68ch;
}

.permission strong {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  display: block;
  margin-bottom: 10px;
}

/* ---------- lineage ---------- */
.lineage {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: 36px;
}

.lineage > div > p {
  color: var(--ink-soft);
  max-width: 60ch;
}

.lineage > div > p:last-child {
  margin-bottom: 0;
}

.credit-card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.credit-card p.credit-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin: 0 0 12px;
}

.credit-card p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.credit-card p:last-child {
  margin-bottom: 0;
}

.credit-card a {
  color: var(--brass-ink);
  font-weight: 700;
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .lineage {
    grid-template-columns: 1fr;
  }
}
