/* hero-demo.css (ISS-08): concept B "Signals to calls" layered hero for the unlisted DOM page.
   Resting styles are the finished composition, so reduced motion, no JS and browsers without
   scroll timelines all show the final frame. Motion is added only inside @supports + no-preference. */
.hd {
  --hd-ink: #0A2540; --hd-aqua: #4FD1C5; --hd-aqua-d: #2FA8B5; --hd-teal: #1A7A85;
  --hd-warm: #FBF8F1; --hd-mist: #CDEFF0; --hd-soft: #9CB5C5;
  --hd-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --hd-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hd-pin: 180px;
  background: linear-gradient(180deg, #0A2540 0%, #12345a 55%, #1A4D68 100%);
  color: var(--hd-warm);
}
.hd-track { position: relative; height: 230vh; view-timeline: --hd block; }
.hd-stage {
  position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden;
  display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center;
  padding: max(16px, env(safe-area-inset-left, 0px));
}
.hd-scene { position: relative; width: min(92vw, 540px); aspect-ratio: 9 / 13; }
.hd-words { position: absolute; inset: 0 0 auto 0; text-align: center; margin: 0; padding: 0; list-style: none;
  font-family: var(--hd-serif); font-size: clamp(40px, 10.5vw, 76px); line-height: 1.05; }
.hd-words li { display: block; }
.hd-words li:last-child { color: var(--hd-aqua); }
.hd-card { position: absolute; display: block; height: auto; border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35); background: #fff; }
.hd-card-audit { width: 66%; left: 14%; top: 40%; transform: rotate(3deg); }
.hd-card-score { width: 62%; left: 6%; top: 58%; transform: rotate(-4deg); }
.hd-tag { position: absolute; left: 6%; bottom: 1%; font: 600 11px/1.3 var(--hd-sans); letter-spacing: .08em;
  text-transform: uppercase; color: var(--hd-mist); opacity: .85; }
.hd-pin { position: absolute; width: var(--hd-pin); height: var(--hd-pin); right: 2%; top: 30%;
  background-image: url("/wp-content/uploads/hd-f185d7ff02/pin_strip_360_v3.avif");
  background-size: calc(24 * var(--hd-pin)) var(--hd-pin); background-repeat: no-repeat;
  background-position: calc(-23 * var(--hd-pin)) 0; }
@supports not (background-image: url("x.avif")) { .hd-pin { background-image: url("/wp-content/uploads/hd-f185d7ff02/pin_strip_360_v3.webp"); } }

.hd-copy { max-width: 720px; margin: 0 auto; padding: 56px max(16px, env(safe-area-inset-left, 0px)) 72px; text-align: center; }
.hd-eyebrow { display: inline-block; font: 600 13px/1.4 var(--hd-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--hd-aqua); }
.hd-copy h1 { font-family: var(--hd-serif); font-weight: 400; font-size: clamp(40px, 8vw, 72px); line-height: 1.08; margin: 14px 0 16px; color: var(--hd-warm); text-wrap: balance; }
.hd-lede { font: 400 19px/1.55 var(--hd-sans); color: var(--hd-mist); margin: 0 auto 28px; max-width: 56ch; }
.hd-btn { display: inline-block; padding: 16px 28px; border-radius: 8px; background: var(--hd-aqua); color: var(--hd-ink);
  font: 600 17px/1 var(--hd-sans); text-decoration: none; }
.hd-btn:focus-visible { outline: 3px solid var(--hd-warm); outline-offset: 3px; }

.hd-body { background: #FBF8F1; color: #0A2540; }
.hd-sec { max-width: 760px; margin: 0 auto; padding: 56px max(16px, env(safe-area-inset-left, 0px)); }
.hd-sec + .hd-sec { border-top: 1px solid #E2E8F0; }
.hd-sec h2 { font-family: var(--hd-serif); font-weight: 400; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 16px; text-wrap: balance; }
.hd-sec p, .hd-sec li { font: 400 18px/1.65 var(--hd-sans); color: #1A3550; }
.hd-sec ul { padding-left: 1.2em; }
.hd-link { color: #1A7A85; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hd-faq dt { font: 600 18px/1.4 var(--hd-sans); color: #0A2540; margin-top: 22px; }
.hd-faq dd { margin: 8px 0 0; font: 400 18px/1.65 var(--hd-sans); color: #1A3550; }
.hd-final { text-align: center; }

@media (min-width: 960px) {
  .hd-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1180px; margin: 0 auto; align-items: start; }
  .hd-copy { position: sticky; top: 28vh; text-align: left; padding: 0 0 0 max(16px, env(safe-area-inset-left, 0px)); }
  .hd-lede { margin-left: 0; }
  .hd-track { height: 200vh; }
  .hd-scene { width: min(42vw, 520px); }
  .hd { --hd-pin: 200px; }
}

/* Motion: only where scroll timelines exist and the reader has not asked for less motion. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hd-words li { animation: hd-rise linear both; animation-timeline: --hd; }
    .hd-words li:nth-child(1) { animation-range: contain 0% contain 18%; }
    .hd-words li:nth-child(2) { animation-range: contain 10% contain 28%; }
    .hd-words li:nth-child(3) { animation-range: contain 20% contain 38%; }
    .hd-words li:nth-child(4) { animation-range: contain 30% contain 48%; }
    .hd-card-audit { animation: hd-card-a linear both; animation-timeline: --hd; animation-range: contain 15% contain 55%; }
    .hd-card-score { animation: hd-card-s linear both; animation-timeline: --hd; animation-range: contain 25% contain 65%; }
    .hd-sprite-ready .hd-pin { animation: hd-sprite steps(24, jump-none) both; animation-timeline: --hd; animation-range: contain 60% contain 92%; }
  }
}
@keyframes hd-rise { from { opacity: .55; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hd-card-a { from { opacity: .85; transform: translateY(36px) rotate(6deg); } to { opacity: 1; transform: rotate(3deg); } }
@keyframes hd-card-s { from { opacity: .85; transform: translateY(64px) rotate(-8deg); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes hd-sprite { from { background-position: 0 0; } to { background-position: calc(-23 * var(--hd-pin)) 0; } }

/* R16 2026-11-23: alias to Marina (same hex values; zero visual change) */
.hd {
  --hd-ink: var(--ll-mr-primary);
  --hd-aqua: var(--ll-mr-aqua);
  --hd-aqua-d: var(--ll-mr-aqua-deep);
  --hd-warm: var(--ll-mr-paper-warm);
}
