/* Inner pages */
.inner-banner {
  background: radial-gradient(ellipse at 81% 28%, #3c74644a, transparent 59%),
    linear-gradient(118deg, #12392e, #1d5548);
}
.inner-banner::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, #dcaa6a, #ebc9984d 58%, transparent);
  transform-origin: left;
  pointer-events: none;
}
.inner-banner h1 { width: fit-content; }
.contact-details[data-motion="contact"] { position: relative; }
.contact-details[data-motion="contact"]::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #b77b3a, #d6af7c 38%, #d6af7c30);
  transform-origin: left;
}
.news-card[data-motion="news"] .meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 5px;
}
.news-card[data-motion="news"] .meta::before {
  content: "";
  width: 17px;
  height: 2px;
  background: #a66b37;
  align-self: center;
  margin-right: 4px;
  transform-origin: left;
}
[data-motion="metrics"] h2 span { display: inline-block; }
.contact-page .button-gold:where(:hover, :focus-visible) {
  box-shadow: 0 5px 16px #87552238;
}
.contact-details[data-motion="contact"] a:where(:hover, :focus-visible) {
  color: #225e4f;
  text-decoration-thickness: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .inner-motion-ready {
    --inner-ease: cubic-bezier(.22,.75,.25,1);
  }

  .inner-motion-ready :is([data-motion="copy"], [data-motion="title"], [data-motion="panel"], [data-motion="certificate"], [data-motion="fact"], [data-motion="metrics"]):not(.is-inview):not(:focus-within),
  .inner-motion-ready :is([data-motion="solution"], [data-motion="news"], [data-motion="contact"], [data-motion="banner"]):not(.is-inview):not(:focus-within) > :not(.cert-grid) {
    opacity: 0;
  }

  .inner-banner.is-inview::before { animation: inner-line .9s var(--inner-ease) both; }
  .inner-banner.is-inview::after { animation: inner-orbit 1.35s var(--inner-ease) both; }
  .inner-banner.is-inview h1 { animation: inner-wipe .72s var(--inner-ease) both; }
  .inner-banner.is-inview .crumb { animation: inner-fade .44s ease-out both; }
  .inner-banner.is-inview .wrap > p { animation: inner-focus .62s ease-out .17s both; }

  [data-motion="title"].is-inview { animation: inner-wipe .65s var(--inner-ease) both; }
  [data-motion="copy"].is-inview { animation: inner-fade .57s ease-out both; }
  [data-motion="panel"].is-inview { animation: inner-enter .65s var(--inner-ease) both; }
  [data-motion="certificate"].is-inview {
    animation: inner-certificate .58s var(--inner-ease) var(--inner-delay, 0ms) both;
  }
  .cert-grid li:nth-child(4n+2) { --inner-delay: 48ms; }
  .cert-grid li:nth-child(4n+3) { --inner-delay: 96ms; }
  .cert-grid li:nth-child(4n+4) { --inner-delay: 144ms; }

  [data-motion="metrics"].is-inview h2 span {
    animation: inner-wipe .7s var(--inner-ease) both;
  }
  [data-motion="metrics"].is-inview h2 span:last-child { animation-delay: .14s; }

  [data-motion="solution"].is-inview figure {
    animation: inner-wipe .83s var(--inner-ease) both;
  }
  [data-motion="solution"].is-inview:nth-child(even) figure {
    animation-name: inner-wipe-right;
  }
  [data-motion="solution"].is-inview h2 { animation: inner-wipe .67s var(--inner-ease) .09s both; }
  [data-motion="solution"].is-inview p { animation: inner-focus .6s ease-out .22s both; }
  [data-motion="solution"].is-inview .related-list { animation: inner-enter .54s var(--inner-ease) .29s both; }
  .solution-card:hover .catalog-media img { transform: scale(1.025); }

  [data-motion="news"].is-inview .news-image { animation: inner-wipe .82s var(--inner-ease) both; }
  [data-motion="news"].is-inview > div { animation: inner-enter .65s var(--inner-ease) .12s both; }
  [data-motion="news"].is-inview .meta::before { animation: inner-line .68s var(--inner-ease) .22s both; }
  .news-image:hover .catalog-media img, .news-image:focus-visible .catalog-media img { transform: scale(1.04); }
  [data-motion="fact"].is-inview { animation: inner-enter .55s var(--inner-ease) both; }

  [data-motion="contact"].is-inview::before { animation: inner-line .72s var(--inner-ease) both; }
  [data-motion="contact"].is-inview > div {
    animation: inner-enter .52s var(--inner-ease) var(--inner-delay, 0ms) both;
  }
  [data-motion="contact"] > div:nth-child(2) { --inner-delay: 80ms; }
  [data-motion="contact"] > div:nth-child(3) { --inner-delay: 160ms; }
  [data-motion="contact"] > div:nth-child(4) { --inner-delay: 240ms; }
  .contact-page .button-gold { transition: box-shadow .2s ease, background-color .2s ease; }
  .contact-page .button-gold span { transition: transform .22s var(--inner-ease); }
  .contact-page .button-gold:where(:hover, :focus-visible) span { transform: translate(3px, -3px); }

  .inner-motion-ready [data-motion] :focus-visible { position: relative; }
  .inner-motion-ready [data-motion]:focus-within,
  .inner-motion-ready [data-motion]:focus-within > * { animation: none; }
}

@keyframes inner-wipe {
  from { opacity: .5; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(-3px); }
}
@keyframes inner-wipe-right {
  from { opacity: .5; clip-path: inset(0 0 0 100%); }
  to { opacity: 1; clip-path: inset(-3px); }
}
@keyframes inner-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes inner-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes inner-focus {
  from { opacity: 0; filter: blur(2px); }
  to { opacity: 1; filter: none; }
}
@keyframes inner-enter {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes inner-certificate {
  from { opacity: 0; transform: translateY(6px) scale(.975); }
  to { opacity: 1; transform: none; }
}
@keyframes inner-orbit {
  from { opacity: .15; transform: scale(.9) translate(12px, -6px); }
  to { opacity: .6; transform: none; }
}
