/* ==========================================================================
   Testimonials page — spotlight + stacking cards. After "Single Voice
   Spotlight" (Oliver) and "Animated Cards Stack" (YoucefBnm) on 21st.dev.
   Markup: testimonials.php. Motion: assets/js/page-testimonials.js.
   ========================================================================== */

.jh-st {
  --st-cream: #f7f3ec;
  --st-ink: #1f2a1c;
  --st-body: #3a4436;
  --st-muted: #5f695a;
  --st-green: hsl(109, 37%, 33%);
  --st-forest: #1c3322;
  --st-leaf: #a8c98c;
  --st-rule: rgba(31, 42, 28, .14);
  --st-serif: var(--heading-font-font-family, "Cormorant Garamond"), Georgia, serif;
  --st-sans: var(--body-font-font-family, "adelle-sans"), "Helvetica Neue", Arial, sans-serif;
  --st-gutter: clamp(20px, 5vw, 72px);
  --st-max: 1180px;
  --st-ease: cubic-bezier(.22, 1, .36, 1);
  --st-top: calc(var(--jh-nav-space, 96px) + 8px);          /* where the cards pin */
  --st-card-h: clamp(420px, calc(100svh - var(--st-top) - 40px), 600px);

  background: var(--st-cream);
  color: var(--st-ink);
  font-family: var(--st-sans);
  padding: 0 var(--st-gutter) clamp(72px, 10vh, 120px);
}
.jh-st *, .jh-st *::before, .jh-st *::after { box-sizing: border-box; }
.jh-st h2, .jh-st p, .jh-st figure, .jh-st blockquote { margin: 0; padding: 0; }
.jh-st img { display: block; max-width: 100%; }
.jh-st a:focus-visible, .jh-st button:focus-visible { outline: 3px solid var(--st-green); outline-offset: 4px; }

.jh-st__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--st-green); margin-bottom: 26px !important;
}
.jh-st__btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 28px; margin: 0;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--st-ink); color: #fff !important;
  font: 600 15px/1 var(--st-sans); letter-spacing: .02em; text-decoration: none !important;
  transition: background-color .3s ease;
}
.jh-st__btn:hover { background: var(--st-green); }
.jh-st__btn span, .jh-st__read span { transition: transform .3s var(--st-ease); }
.jh-st__btn:hover span, .jh-st__read:hover span { transform: translateX(4px); }

/* ---------- 1. Spotlight: fills the first screen ---------- */
.jh-st__spot {
  width: min(var(--st-max), 100%); margin-inline: auto;
  /* the page banner now sits above, so the spotlight is a normal section */
  padding: clamp(72px, 11vh, 120px) 0 clamp(56px, 8vh, 90px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center; gap: clamp(32px, 6vw, 96px);
}
.jh-st__spot-quote {
  position: relative;
  font-family: var(--st-serif); font-weight: 500; font-style: italic;
  font-size: clamp(38px, min(5.2vw, 8vh), 80px); line-height: 1.04; letter-spacing: -0.02em;
  color: var(--st-ink);
}
.jh-st__mark {
  position: absolute; left: -.42em; top: -.08em;
  font-style: normal; font-weight: 700; color: var(--st-green);
}
.jh-st__spot-who { margin-top: clamp(24px, 4vh, 40px); padding-top: 20px; border-top: 1px solid var(--st-rule); max-width: 420px; }
.jh-st__spot-who b { display: block; font-family: var(--st-serif); font-size: 24px; font-weight: 700; }
.jh-st__spot-who span { display: block; margin-top: 4px; font-size: 14px; color: var(--st-muted); }
.jh-st__spot-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: clamp(24px, 4vh, 36px); }
.jh-st__more { font-weight: 600; font-size: 15px; color: var(--st-ink) !important; text-decoration: none !important; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.jh-st__more:hover { color: var(--st-green) !important; }
.jh-st__more span { display: inline-block; animation: jh-st-bob 1.8s ease-in-out infinite; }
@keyframes jh-st-bob { 50% { transform: translateY(4px); } }
.jh-st__spot-photo {
  position: relative; justify-self: end; width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(31, 42, 28, .18);
}
.jh-st__spot-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 2. Stacking cards ---------- */
.jh-st__list { width: min(var(--st-max), 100%); margin-inline: auto; padding-bottom: 4vh; }
.jh-st__card {
  position: sticky; top: calc(var(--st-top) + var(--i) * 14px);
  height: var(--st-card-h);
  margin-bottom: 6vh;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 -10px 40px rgba(31, 42, 28, .10), 0 2px 8px rgba(31, 42, 28, .06);
  transform-origin: 50% 0;
  will-change: transform;
}
.jh-st__card:last-child { margin-bottom: 0; }
.jh-st__card--sand   { background: #ece4d6; }
.jh-st__card--paper  { background: #fffdf8; }
.jh-st__card--sage   { background: #dfe8d5; }
.jh-st__card--forest { background: var(--st-forest); color: #f3ede1; }
.jh-st__card--end    { background: var(--st-ink); color: #f3ede1; grid-template-columns: 1fr; }

.jh-st__card-text {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(28px, 4vw, 56px);
  min-height: 0;
}
.jh-st__card-top { display: flex; align-items: baseline; gap: 8px; font-family: var(--st-serif); font-weight: 700; }
.jh-st__num { font-size: 20px; color: var(--st-green); }
.jh-st__of { font-size: 16px; opacity: .78; }
.jh-st__card--forest .jh-st__num, .jh-st__card--end .jh-st__num { color: var(--st-leaf); }

.jh-st__card-quote {
  font-family: var(--st-serif); font-weight: 600;
  font-size: clamp(26px, min(3.2vw, 5.2vh), 50px); line-height: 1.12; letter-spacing: -0.015em;
  max-width: 24ch;
}
.jh-st__card-foot { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.jh-st__card-who b { display: block; font-size: 17px; font-weight: 600; }
.jh-st__card-who span { display: block; margin-top: 3px; font-size: 14px; opacity: .7; }
.jh-st__read {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0 0 3px;
  background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer;
  font: 600 15px/1.2 var(--st-sans); color: inherit;
}
.jh-st__read:hover { color: var(--st-green); }
.jh-st__card--forest .jh-st__read:hover { color: var(--st-leaf); }

.jh-st__card-photo { position: relative; overflow: hidden; }
.jh-st__card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

.jh-st__end-title {
  font-family: var(--st-serif) !important; font-weight: 600 !important;
  font-size: clamp(30px, min(4vw, 6vh), 60px) !important; line-height: 1.08 !important; letter-spacing: -0.015em;
  color: #f3ede1 !important; max-width: 22ch;
}
.jh-st__btn--light { background: #f3ede1; color: var(--st-ink) !important; }
.jh-st__btn--light:hover { background: var(--st-leaf); }
.jh-st__tel { color: #f3ede1 !important; font-weight: 600; text-decoration: none !important; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.jh-st__tel:hover { color: var(--st-leaf) !important; }
.jh-st__card--end .jh-st__card-foot { justify-content: flex-start; align-items: center; }

/* ---------- 3. Letter reader ---------- */
/* Two panels: a dark-green side with drifting colour, the letter on cream.
   page-testimonials.js adds .is-open / .is-closing / .is-swapping. */
.jh-rd {
  --rd-ink: #1f2a1c; --rd-body: #3a4436; --rd-muted: #5f695a;
  --rd-cream: #fbf8f2; --rd-leaf: #a8c98c; --rd-gold: #d9bf7a; --rd-green: hsl(109, 37%, 33%);
  --rd-ease: cubic-bezier(.22, 1, .36, 1);
  width: min(1040px, calc(100vw - 40px)); height: min(720px, calc(100svh - 48px));
  max-width: none; max-height: none;
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--rd-ink);
  overflow: visible;
  font-family: var(--body-font-font-family, "adelle-sans"), "Helvetica Neue", Arial, sans-serif;
}
.jh-rd::backdrop {
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(80, 130, 60, .35), transparent 70%),
    radial-gradient(50% 50% at 85% 80%, rgba(201, 169, 92, .25), transparent 70%),
    rgba(14, 22, 13, .62);
  backdrop-filter: blur(8px) saturate(1.1);
  opacity: 0; transition: opacity .45s ease;
}
.jh-rd.is-open::backdrop { opacity: 1; }
.jh-rd.is-closing::backdrop { opacity: 0; }

.jh-rd__panel {
  position: relative; display: grid; grid-template-columns: minmax(260px, 340px) 1fr;
  width: 100%; height: 100%;
  border-radius: 28px; overflow: hidden;
  background: var(--rd-cream);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
  opacity: 0; transform: translateY(46px) scale(.96);
  transition: opacity .45s ease, transform .7s var(--rd-ease);
}
.jh-rd.is-open .jh-rd__panel { opacity: 1; transform: none; }
.jh-rd.is-closing .jh-rd__panel { opacity: 0; transform: translateY(26px) scale(.97); transition-duration: .3s, .35s; }

/* side panel */
.jh-rd__side {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 32px 30px 30px;
  background: linear-gradient(160deg, #24432b 0%, #172a1c 60%, #101d13 100%);
  color: #f3ede1;
}
.jh-rd__side::after {           /* film grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.jh-rd__aurora { position: absolute; inset: 0; z-index: -2; }
.jh-rd__aurora span { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; animation: jh-rd-drift 16s ease-in-out infinite alternate; }
.jh-rd__aurora span:nth-child(1) { width: 260px; height: 260px; left: -80px; top: -60px; background: #4f8a3e; }
.jh-rd__aurora span:nth-child(2) { width: 220px; height: 220px; right: -90px; top: 35%; background: #c9a95c; opacity: .38; animation-duration: 20s; animation-delay: -5s; }
.jh-rd__aurora span:nth-child(3) { width: 240px; height: 240px; left: 10%; bottom: -110px; background: #7fb36a; opacity: .4; animation-duration: 24s; animation-delay: -10s; }
@keyframes jh-rd-drift { 50% { transform: translate(40px, 30px) scale(1.15); } 100% { transform: translate(-20px, 50px) scale(.92); } }
.jh-rd__qmark {
  position: absolute; right: 18px; top: -26px; z-index: -1;
  font-family: var(--heading-font-font-family, "Cormorant Garamond"), Georgia, serif; font-weight: 700;
  font-size: 260px; line-height: 1; color: rgba(243, 237, 225, .08);
}
.jh-rd .jh-rd__photo {
  width: 100%; max-width: min(280px, calc(min(720px, 100svh - 48px) - 310px)); aspect-ratio: 1 / 1; margin: 0 0 26px; border-radius: 22px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 0 4px rgba(243, 237, 225, .12);
}
.jh-rd__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.jh-rd .jh-rd__kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--rd-leaf); }
.jh-rd__name {
  margin: 10px 0 0 !important;
  font-family: var(--heading-font-font-family, "Cormorant Garamond"), Georgia, serif !important; font-weight: 700 !important;
  font-size: clamp(30px, 2.8vw, 40px) !important; line-height: 1.05 !important; letter-spacing: -0.01em !important;
  color: #f8f3e8 !important;
}
.jh-rd .jh-rd__role { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: rgba(243, 237, 225, .72); }
.jh-rd .jh-rd__time {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  margin: 22px 0 0; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #f3ede1;
  background: rgba(243, 237, 225, .1); border: 1px solid rgba(243, 237, 225, .18);
}
.jh-rd__side-in { display: flex; flex-direction: column; }
/* side content settles in after the panel */
.jh-rd__side-in > * { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .7s var(--rd-ease); }
.jh-rd.is-open .jh-rd__side-in > * { opacity: 1; transform: none; }
.jh-rd.is-open .jh-rd__side-in > :nth-child(1) { transition-delay: .12s; }
.jh-rd.is-open .jh-rd__side-in > :nth-child(2) { transition-delay: .2s; }
.jh-rd.is-open .jh-rd__side-in > :nth-child(3) { transition-delay: .26s; }
.jh-rd.is-open .jh-rd__side-in > :nth-child(4) { transition-delay: .32s; }
.jh-rd.is-open .jh-rd__side-in > :nth-child(5) { transition-delay: .38s; }
.jh-rd__photo img { transform: scale(1.18); transition: transform 1.2s var(--rd-ease); }
.jh-rd.is-open .jh-rd__photo img { transform: none; }

/* main panel */
.jh-rd__main { position: relative; display: flex; flex-direction: column; min-height: 0; }
.jh-rd__bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 3; background: rgba(31, 42, 28, .06); }
.jh-rd__bar span {
  display: block; height: 100%; width: 100%; transform: scaleX(var(--rd-p, 0)); transform-origin: left;
  background: linear-gradient(90deg, var(--rd-green), var(--rd-leaf) 60%, var(--rd-gold));
  transition: transform .12s linear;
}
.jh-rd__close {
  position: absolute; top: 20px; right: 20px; z-index: 4;
  width: 46px; height: 46px; display: grid; place-items: center; margin: 0; padding: 0;
  border: 1px solid rgba(31, 42, 28, .1); border-radius: 50%;
  background: rgba(251, 248, 242, .85); backdrop-filter: blur(6px); color: var(--rd-ink); cursor: pointer;
  transition: background-color .3s ease, color .3s ease, transform .4s var(--rd-ease);
}
.jh-rd__close:hover { background: var(--rd-ink); color: #fff; transform: rotate(90deg); }
.jh-rd__scroll {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 56px clamp(28px, 4.5vw, 64px) 32px;
  scrollbar-width: thin; scrollbar-color: rgba(31, 42, 28, .25) transparent;
}
.jh-rd__scroll:focus-visible { outline: none; }
.jh-rd__text { max-width: 60ch; }
.jh-rd__text p { margin: 0; font-size: 18px; line-height: 1.8; color: var(--rd-body); }
.jh-rd__text p + p { margin-top: 1.25em; }
.jh-rd__text p:first-child { font-size: 21px; line-height: 1.65; color: var(--rd-ink); }
.jh-rd__text p:first-child::first-letter {
  float: left; margin: .06em .12em 0 0;
  font-family: var(--heading-font-font-family, "Cormorant Garamond"), Georgia, serif; font-weight: 700;
  font-size: 3.6em; line-height: .8;
  background: linear-gradient(160deg, var(--rd-green), #6fa05a 55%, var(--rd-gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.jh-rd__sig {
  margin: 34px 0 0; padding-top: 22px; border-top: 1px solid rgba(31, 42, 28, .12); max-width: 60ch;
  font-family: var(--heading-font-font-family, "Cormorant Garamond"), Georgia, serif; font-weight: 700; font-size: 24px; color: var(--rd-ink);
}
/* paragraphs rise in, one after another */
.jh-rd__text p, .jh-rd__sig { opacity: 0; transform: translateY(14px); }
.jh-rd.is-open .jh-rd__text p, .jh-rd.is-open .jh-rd__sig {
  animation: jh-rd-in .7s var(--rd-ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 220ms);
}
@keyframes jh-rd-in { to { opacity: 1; transform: none; } }
.jh-rd__scroll, .jh-rd__side-in { transition: opacity .35s ease, transform .45s var(--rd-ease); }
.jh-rd.is-swapping .jh-rd__scroll, .jh-rd.is-swapping .jh-rd__side-in { opacity: 0; transform: translateY(10px); transition: opacity .22s ease, transform .22s ease; }

/* footer navigation */
.jh-rd__nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 3vw, 36px);
  border-top: 1px solid rgba(31, 42, 28, .1); background: rgba(251, 248, 242, .92);
}
.jh-rd__step {
  display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 10px 14px;
  border: 0; border-radius: 14px; background: transparent; cursor: pointer;
  font: 600 14px/1.2 var(--body-font-font-family, "adelle-sans"), sans-serif; color: var(--rd-ink); text-align: left;
  transition: background-color .25s ease, color .25s ease, opacity .25s ease;
}
.jh-rd__step:hover { background: #efe8da; color: var(--rd-green); }
.jh-rd__step svg { flex: none; transition: transform .3s var(--rd-ease); }
.jh-rd__step--prev:hover svg { transform: translateX(-4px); }
.jh-rd__step--next:hover svg { transform: translateX(4px); }
.jh-rd__step--next { text-align: right; }
.jh-rd__step small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rd-muted); }
.jh-rd__step b { display: block; margin-top: 3px; font-family: var(--heading-font-font-family, "Cormorant Garamond"), Georgia, serif; font-size: 19px; }
.jh-rd__step[disabled] { opacity: .3; pointer-events: none; }
.jh-rd__dots { display: flex; gap: 6px; }
.jh-rd__dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(31, 42, 28, .18); transition: width .45s var(--rd-ease), background-color .3s ease; }
.jh-rd__dots i.is-on { width: 26px; background: linear-gradient(90deg, var(--rd-green), var(--rd-gold)); }
.jh-rd :focus-visible { outline: 3px solid var(--rd-green); outline-offset: 3px; }
html.jh-st-locked { overflow: hidden; }

@media (max-width: 760px) {
  .jh-rd { width: 100vw; height: 100svh; margin: 0; max-width: 100vw; max-height: 100svh; }
  .jh-rd__panel { grid-template-columns: 1fr; grid-template-rows: auto 1fr; border-radius: 0; transform: translateY(60px); }
  .jh-rd__side { padding: 20px 76px 20px 20px; justify-content: flex-start; }
  .jh-rd__side-in { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; align-items: center; }
  .jh-rd .jh-rd__photo { width: 64px; max-width: none; margin: 0; grid-row: 1 / 4; border-radius: 14px; }
  .jh-rd__name { margin-top: 4px !important; font-size: 24px !important; }
  .jh-rd .jh-rd__role { margin-top: 4px; font-size: 12px; }
  .jh-rd .jh-rd__time { display: none; }
  .jh-rd__qmark { font-size: 160px; top: -18px; }
  .jh-rd__close { top: 18px; right: 14px; background: rgba(243, 237, 225, .14); color: #f3ede1; border-color: rgba(243, 237, 225, .25); }
  .jh-rd__close:hover { background: #f3ede1; color: var(--rd-ink); }
  .jh-rd__bar { position: relative; }
  .jh-rd__main { position: static; }   /* close button pins to the green header */
  .jh-rd__scroll { padding: 24px 20px; }
  .jh-rd__text p { font-size: 17px; }
  .jh-rd__text p:first-child { font-size: 19px; }
  .jh-rd__step--prev span { display: none; }
  .jh-rd__step b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .jh-rd__aurora span { animation: none; }
  .jh-rd__panel, .jh-rd__side-in > *, .jh-rd__photo img, .jh-rd__scroll, .jh-rd__side-in { transition: none; }
  .jh-rd__text p, .jh-rd__sig { opacity: 1; transform: none; animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .jh-st__spot { grid-template-columns: 1fr; padding-top: 56px; gap: 28px; }
  .jh-st__spot-photo { order: -1; justify-self: start; max-width: 240px; border-radius: 20px; }
  .jh-st__mark { position: static; margin-right: 4px; }
  .jh-st__card { grid-template-columns: 1fr; grid-template-rows: 38% 1fr; --st-card-h: clamp(460px, calc(100svh - var(--st-top) - 24px), 620px); height: var(--st-card-h); top: calc(var(--st-top) + var(--i) * 10px); border-radius: 22px; }
  .jh-st__card-photo { grid-row: 1; }
  .jh-st__card-text { grid-row: 2; padding: 22px 22px 24px; gap: 14px; }
  .jh-st__card--end { grid-template-rows: 1fr; }
  .jh-st__card--end .jh-st__card-text { grid-row: 1; }
  .jh-st__card-quote { font-size: clamp(22px, 6vw, 30px); max-width: none; }
}

/* ---------- motion ---------- */
.jh-st-motion .jh-st__spot-text > *, .jh-st-motion .jh-st__spot-photo { opacity: 0; transform: translateY(22px); animation: jh-st-in 1s var(--st-ease) forwards; }
.jh-st-motion .jh-st__spot-text > :nth-child(2) { animation-delay: .1s; }
.jh-st-motion .jh-st__spot-text > :nth-child(3) { animation-delay: .25s; }
.jh-st-motion .jh-st__spot-text > :nth-child(4) { animation-delay: .35s; }
.jh-st-motion .jh-st__spot-photo { animation-delay: .2s; }
@keyframes jh-st-in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .jh-st__more span { animation: none; }
}

/* the page behind the footer's rounded top matches the cream */
#siteWrapper:has(.jh-st) { background: #f7f3ec; }

/* the shared page banner runs full width, past this page's side padding */
.jh-st > .jh-pb { margin-inline: calc(-1 * var(--st-gutter)); }

/* ==========================================================================
   "Your story" card: drifting contour pattern, cursor glow, big outlined
   quote mark; heading words slide up ([data-split], reveal.js), the label
   line draws and the buttons rise once the heading is in view.
   ========================================================================== */
.jh-st__card--end { isolation: isolate; background: radial-gradient(120% 120% at 100% 0%, #24412b 0%, #1f2a1c 55%, #16201a 100%); }
.jh-st__topo {
  position: absolute; inset: -40px; z-index: -1; pointer-events: none;
  background: url("../images/pattern-topo.svg") 0 0 / 560px 560px repeat; opacity: .22;
  animation: jh-st-topo 70s linear infinite;
  -webkit-mask-image: radial-gradient(90% 110% at 100% 50%, #000 25%, transparent 80%);
          mask-image: radial-gradient(90% 110% at 100% 50%, #000 25%, transparent 80%);
}
@keyframes jh-st-topo { to { background-position: -560px 280px; } }
.jh-st__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(380px circle at var(--mx, 70%) var(--my, 40%), rgba(168, 201, 140, .2), transparent 70%);
}
.jh-st__card--end:hover .jh-st__glow { opacity: 1; }
.jh-st__quote {
  position: absolute; right: clamp(24px, 6vw, 96px); top: 50%; translate: 0 -46%; z-index: -1; pointer-events: none;
  font-family: var(--st-serif); font-weight: 700; font-size: clamp(260px, 30vw, 460px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(181, 210, 154, .35);
  animation: jh-st-float 7s ease-in-out infinite;
}
@keyframes jh-st-float { 50% { transform: translateY(-14px) rotate(-3deg); } }

/* label line draws, buttons rise (after the heading has slid in) */
.jh-st__end-top { align-items: center; }
.jh-st__end-line { width: 56px; height: 1px; margin-left: 10px; background: var(--st-leaf); transform-origin: left; transition: transform 1s cubic-bezier(.22, 1, .36, 1) .2s; }
.jh-st__end-foot > * { transition: opacity .8s ease, transform .9s cubic-bezier(.22, 1, .36, 1), background-color .3s ease; }
.jh-st__end-foot > :nth-child(1) { transition-delay: .9s, .9s, 0s; }
.jh-st__end-foot > :nth-child(2) { transition-delay: 1s, 1s, 0s; }
.jh-reveal-motion .jh-st__card--end:not(:has(.jh-st__end-title.is-in)) .jh-st__end-line { transform: scaleX(0); }
.jh-reveal-motion .jh-st__card--end:not(:has(.jh-st__end-title.is-in)) .jh-st__end-foot > * { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) { .jh-st__topo, .jh-st__quote { animation: none; } }
