/* Reusable subpage hero. Artwork remains optional until an asset is supplied. */

.page-hero__grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
}

.page-hero__intro {
  margin: var(--space-6) 0 0;
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.page-hero__actions {
  margin-top: var(--space-6);
}

.page-hero__visual {
  min-width: 0;
  margin: 0;
}

.page-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Photography shares the hero typography, with its own crop and fading. */
.page-hero--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-soft);
}

.page-hero--photo .page-hero__copy {
  position: relative;
  z-index: 1;
}

.page-hero--photo .page-hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 480px;
}

.page-hero--photo .page-hero__visual img {
  position: absolute;
  inset: 0 auto 0 calc(-1 * var(--space-7));
  width: calc(100% + var(--gutter) + var(--space-7));
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}

/* An atmospheric variant: artwork can bleed without narrowing the copy. */
.page-hero--immersive {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-soft);
}

.page-hero--immersive .page-hero__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-hero--immersive .page-hero__copy {
  position: relative;
  z-index: 1;
}

.page-hero--immersive .page-hero__visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: end;
  min-height: clamp(420px, 42vw, 600px);
}

.page-hero--immersive .page-hero__visual img {
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--gutter));
  width: 150%;
  max-width: none;
  transform: translateY(-55%);
  mix-blend-mode: multiply;
  mask-image:
    linear-gradient(90deg, transparent, #000 20%, #000 90%, transparent),
    linear-gradient(180deg, transparent, #000 10%, #000 80%, transparent);
  mask-composite: intersect;
}

.page-hero__visual-caption {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-5);
  width: 100%;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.page-hero__inputs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-hero__inputs li {
  white-space: nowrap;
}

.page-hero__inputs li:not(:last-child)::after {
  margin-inline: var(--space-3);
  color: var(--ink-soft);
  content: "·" / "";
}

.page-hero__output {
  max-width: 14ch;
  margin: 0;
  color: var(--forest);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .page-hero--photo .page-hero__visual {
    position: absolute;
    z-index: 0;
    inset: 0;
    min-height: 0;
    opacity: 0.14;
    pointer-events: none;
  }

  .page-hero--photo .page-hero__visual img {
    inset: 0;
    width: 100%;
    object-position: 65% center;
    mask-image: linear-gradient(180deg, transparent, #000 40%, #000 80%, transparent);
  }

  .page-hero__grid,
  .page-hero--immersive .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-hero__visual:empty,
  .page-hero__visual:not(:has(img, svg, video, canvas)) {
    display: none;
  }
  /* Single-column heroes use faint artwork behind the copy, not an extra row. */
  .page-hero--immersive .page-hero__visual {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    min-height: 0;
    margin: 0;
    opacity: 0.2;
    pointer-events: none;
  }

  .page-hero--immersive .page-hero__visual img {
    position: absolute;
    top: auto;
    right: -12vw;
    bottom: var(--space-7);
    width: min(760px, 155vw);
    transform: none;
    mask-image:
      linear-gradient(90deg, transparent, #000 28%, #000),
      linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent);
  }

  .page-hero--immersive .page-hero__visual-caption {
    display: none;
  }
}

/* Policy-only layout; the shared typography and palette remain authoritative. */
.privacy-policy { max-width: 960px; }
.privacy-policy > section { margin-top: var(--space-7); }
.privacy-policy .hero-title { margin-bottom: var(--space-5); }
.privacy-policy .card-title { margin: 0 0 var(--space-5); }
.privacy-policy p:not(.eyebrow), .privacy-policy li { font-size: var(--type-body); line-height: 1.65; }
.privacy-policy p:not(.eyebrow) { margin: var(--space-4) 0; }
.privacy-policy ul { padding-inline-start: 1.4em; }
.privacy-policy li + li { margin-top: var(--space-2); }
.privacy-policy a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.privacy-policy__table { margin-block: var(--space-5); overflow-x: auto; }
.privacy-policy table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.privacy-policy th, .privacy-policy td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.privacy-policy th { font-weight: 600; }
.privacy-policy thead { background: var(--paper-warm); }
.privacy-policy code { overflow-wrap: anywhere; font-size: 0.95em; }
@media (max-width: 560px) {
  .privacy-policy table { min-width: 520px; }
}

