/* Shared heading roles and final CTA palette. Loaded after page-specific styles. */
:root {
  --hero-top-space: 20px;
  --section-heading-size: clamp(2.2rem, 3.6vw, 3.1rem);
  --panel-heading-size: clamp(2rem, 3vw, 2.4rem);
  --cta-heading-size: clamp(2.2rem, 3.5vw, 2.8rem);
  --heading-leading: 1.14;
  --heading-blue: linear-gradient(105deg, #102f5b 0%, #004aad 58%, #276aa2 100%);
  --final-banner-blue: linear-gradient(120deg, #15395f, #0b4e9c);
}

/* One page rhythm, including the first eyebrow below navigation. */
body.home-palette main :is(.products-hero-inner,.pl-hero,.cap-hero,.about-hero,.quote-hero) { padding-top:var(--hero-top-space); }
body.home-palette main :is(.products-hero-inner,.pl-hero-grid,.cap-hero-grid,.about-hero,.quote-hero) { align-items:start; }
body.home-palette .hero { padding-bottom:38px; }
body.home-palette main > .section-divider { padding-top:58px; padding-bottom:24px; }
body.home-palette main > section:last-child { padding-bottom:64px; }
body.home-palette .quote-main { padding-bottom:0; }
body.home-palette .site-footer {
  background:radial-gradient(ellipse at 8% 0%,#fff9 0%,transparent 55%), repeating-linear-gradient(125deg,transparent 0 78px,#3d6b9d0a 79px 80px,transparent 81px 156px),linear-gradient(115deg,#f0f5fc,#d5e2f1 65%,#bdd2eb);
  border-top:1px solid #9bb7d4;
}
.footer-bottom a[href="https://tech91.digital"] { text-decoration:underline; text-underline-offset:4px; }
.carousel-dots button.is-active::after { width:7px; height:7px; }
#capabilities .process-timeline { scroll-snap-type:none; scroll-behavior:auto; touch-action:pan-x pan-y; }
.scroll-track.is-dragging { scroll-snap-type:none; scroll-behavior:auto; cursor:grabbing; user-select:none; }
.format-carousel-controls { justify-content:center; }
.format-dot[aria-pressed="true"] span { width:7px; }
.slow-image-frame { overflow:hidden; }
.hero-main-image,.pack-stage img,.applications-photo img { animation-duration:24s; }
.about-photo-essay .about-photo-main img { object-position:center bottom; transform-origin:center bottom; }
@media(max-width:1080px) { :root { --hero-top-space:30px; } }
@media(max-width:760px) {
  :root { --hero-top-space:24px; }
  body.home-palette main > .section-divider { padding-top:40px; }
  body.home-palette main > section:last-child { padding-bottom:48px; }
  body.home-palette .hero { padding-bottom:28px; }
}
body.home-palette main h2.theme-section-title,
body.home-palette main h2.theme-panel-title {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: var(--section-heading-size);
  line-height: var(--heading-leading);
  letter-spacing: 0;
  text-wrap: balance;
  color: #12477f;
  background-image: var(--heading-blue);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.home-palette main h2.theme-panel-title { font-size: var(--panel-heading-size); }
/* Cormorant's descenders extend beyond tight line boxes. Gradient text needs
   paint space, not just overflow:visible, or the glyph itself gets truncated. */
body.home-palette main h1,
body.home-palette main h2.theme-section-title,
body.home-palette main h2.theme-panel-title {
  padding-block: .06em .18em;
  overflow: visible;
}
body.home-palette main h1 { line-height: 1.1; }
/* Paint the full heading once so individual hero lines cannot clip descenders. */
body.home-palette main .hero h1 {
  width: max-content;
  max-width: 100%;
  color: #12477f;
  background-image: var(--heading-blue);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (min-width: 761px) {
  body.home-palette main .hero h1 { max-width: none; }
}
body.home-palette main :is(.hero,.products-hero) h1 span {
  background: none;
  color: inherit;
  -webkit-text-fill-color: inherit;
  overflow: visible;
}
body.home-palette main .theme-final-banner {
  background: var(--final-banner-blue);
  border: 1px solid #2365aa;
}
body.home-palette main .theme-final-banner h2.theme-section-title {
  font-size: var(--cta-heading-size);
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
}
body.home-palette main .theme-final-banner .section-kicker { color: #e6c484; }
body.home-palette main .theme-final-banner p:not(.section-kicker) { color: #e0eaf6; }
body.home-palette main .theme-final-banner .button-primary,
body.home-palette main .theme-final-banner .contact-actions .button:first-child {
  color: #064a9e;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: none;
}
body.home-palette main .theme-final-banner .button-primary:hover,
body.home-palette main .theme-final-banner .contact-actions .button:first-child:hover { background: #e4efff; }
body.home-palette main .theme-final-banner .button-secondary,
body.home-palette main .theme-final-banner .contact-actions .button:last-child {
  color: #fff;
  background: transparent;
  border: 1px solid #91b1d9;
}
body.home-palette main .theme-final-banner .button-secondary:hover,
body.home-palette main .theme-final-banner .contact-actions .button:last-child:hover { background: rgba(255,255,255,.1); }
body.home-palette main .theme-final-banner :is(a,button):focus-visible { outline-color: #fff; }
@media (forced-colors: active) {
  body.home-palette main :is(h1,h2.theme-section-title,h2.theme-panel-title),
  body.home-palette main .hero h1 {
    background: none; color: CanvasText; -webkit-text-fill-color: CanvasText;
  }
}
