/* Shared internal-page components, matching the Home hero and photo cards. */

/* Photographic page hero. Markup:
   <section class="tp-hero" aria-labelledby="page-heading">
     <img class="tp-hero-photo" src="images/pages/<page>.jpg" alt="" width="2400" height="1350" fetchpriority="high" decoding="async">
     <div class="tm-wrap tp-hero-inner"><div class="tp-hero-copy">
       <p class="tm-eyebrow tp-hero-eyebrow">…</p>
       <h1 class="tp-hero-title" id="page-heading">…<span class="tp-hero-title-sub">…</span></h1>
       <p class="tp-hero-lead">…</p>
       <div class="tm-actions tp-hero-actions"><a class="tm-btn">…</a><a class="tm-btn tp-hero-btn-ghost">…</a></div>
     </div><div class="tp-hero-meta"><span>…</span></div></div>
   </section> */
.tp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: max(520px, min(68svh, 720px));
  color: #fff;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(23, 72, 199, .55), transparent 60%),
    var(--tm-ink);
}
.tp-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  animation: tp-hero-settle 2.4s cubic-bezier(.16, 1, .3, 1) both;
}
.tp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 18, 24, .45) 0, rgba(16, 18, 24, 0) 22%),
    linear-gradient(0deg, rgba(16, 18, 24, .9) 0, rgba(16, 18, 24, .55) 40%, rgba(16, 18, 24, 0) 75%),
    linear-gradient(90deg, rgba(16, 18, 24, .65) 0, rgba(16, 18, 24, 0) 65%);
}
.tp-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 44px;
  padding-block: 88px 32px;
}
.tp-hero-copy {
  max-width: 780px;
  animation: tp-hero-rise 1s .15s cubic-bezier(.16, 1, .3, 1) both;
}
.tp-hero-eyebrow.tm-eyebrow {
  color: #fff;
  margin: 0 0 22px;
}
.tp-hero-eyebrow.tm-eyebrow:before {
  background: #8fa9ff;
}
.tp-hero .tp-hero-title {
  margin: 0;
  color: #fff;
  font: 500 clamp(2.8rem, 6vw, 5.4rem)/.98 Gellix, Arial, sans-serif;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-transform: none;
}
.tp-hero .tp-hero-title-sub {
  display: block;
  margin-top: .22em;
  color: rgba(255, 255, 255, .8);
  font-size: .5em;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.tp-hero-lead {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1.08rem;
  line-height: 1.6;
}
.tp-hero-actions.tm-actions {
  margin-top: 32px;
}
.tp-hero .tm-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.tp-hero-btn-ghost.tm-btn {
  background: rgba(16, 18, 24, .2);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.tp-hero-btn-ghost.tm-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--tm-ink);
}
.tp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .72);
  font: .68rem/1.6 var(--tm-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tp-hero-meta a {
  color: inherit;
}
.tp-hero-meta a:hover {
  color: #fff;
}

/* Photo figure with an ink fallback. Set the ratio with --tp-ratio (default 4 / 3). */
.tp-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 12px;
  background: var(--tm-ink);
  aspect-ratio: var(--tp-ratio, 4 / 3);
}
.tp-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes tp-hero-settle {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@keyframes tp-hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-hero-photo,
  .tp-hero-copy {
    animation: none;
  }
}
@media (max-width: 800px) {
  .tp-hero-inner {
    gap: 32px;
    padding-block: 64px 22px;
  }
  .tp-hero-photo {
    object-position: 70% 50%;
  }
  .tp-hero::after {
    background:
      linear-gradient(180deg, rgba(16, 18, 24, .45) 0, rgba(16, 18, 24, 0) 18%),
      linear-gradient(0deg, rgba(16, 18, 24, .9) 0, rgba(16, 18, 24, .66) 55%, rgba(16, 18, 24, .42) 100%);
  }
  .tp-hero-actions.tm-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
