/* ==========================================================================
   Aurem — Services page (hero + jump links, discipline chapters with sticky
   sub-nav, process timeline, tools marquee, testimonial rotator).
   Load after ah-service-page.css: it reuses its result card, packages, quote
   mark and CTA (the Packages and CTA widgets are shared by both pages).
   ========================================================================== */

/* ---------- Hero ---------- */
.ah-shero {
  z-index: 1; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
}
.ah-shero .ah-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.ah-shero.ah-no-webgl { background: radial-gradient(60% 70% at 70% 30%, rgba(200, 16, 46, .7), transparent 70%), var(--ah-ink); }
.ah-shero > .ah-grain { z-index: 1; }
.ah-shero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1680px; margin: 0 auto;
  padding: clamp(130px, 20vh, 220px) var(--ah-gutter) clamp(40px, 7vh, 80px);
}
.ah-shero .ah-eyebrow { margin-bottom: 26px; }
.ah-shero__title {
  margin: 0; max-width: 14ch;
  font-family: var(--ah-display); font-variation-settings: "opsz" 96;
  font-weight: 650; font-size: clamp(3rem, min(7.2vw, 11.5vh), 8.6rem);
  line-height: .94; letter-spacing: -.055em;
}
.ah-shero__title em { font-family: var(--ah-serif); font-style: italic; font-weight: 400; font-size: 1.06em; color: var(--ah-ember); letter-spacing: -.02em; }
.ah-shero__row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 28px 48px; margin-top: 30px;
}
.ah-shero__lead { max-width: 34rem; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.65; color: var(--ah-muted); }
.ah-shero__stats { list-style: none; margin: 0; padding: 0; display: flex; }
.ah-shero__stats li { padding: 0 28px; border-left: 1px solid var(--ah-line); }
.ah-shero__stats li:first-child { padding-left: 0; border-left: 0; }
.ah-shero__stats strong { display: block; font-family: var(--ah-display); font-size: clamp(2rem, 3vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ah-shero__stats li > span { font-size: 13px; color: var(--ah-muted); }

.ah-jump { list-style: none; margin: clamp(36px, 6vh, 60px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ah-jump a {
  display: inline-flex; align-items: baseline; gap: 10px;
  height: 52px; padding: 0 22px; align-items: center;
  border-radius: 999px; border: 1px solid var(--ah-line);
  background: rgba(10, 6, 8, .35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: var(--ah-display); font-size: 18px; font-weight: 600; letter-spacing: -.02em;
  transition: background-color .4s, border-color .4s, color .4s;
}
.ah-jump em { font-family: var(--ah-sans); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--ah-ember); transition: color .4s; }
.ah-jump a:hover { background: var(--ah-ember); border-color: var(--ah-ember); color: var(--ah-ink); }
.ah-jump a:hover em { color: var(--ah-ink); }

/* ---------- Sticky sub-nav ---------- */
.ah-chapters { z-index: 1; padding-top: clamp(40px, 7vh, 80px); }
.ah-subnav {
  position: sticky; top: 92px; z-index: 20;
  display: flex; justify-content: center;
  padding: 0 var(--ah-gutter);
  pointer-events: none;
  transition: top .6s var(--ah-ease);
}
html.ah-nav-hidden .ah-subnav { top: 16px; }
.ah-subnav__pill {
  position: relative; pointer-events: auto;
  display: flex; gap: 2px; padding: 5px;
  border-radius: 999px; border: 1px solid var(--ah-line);
  background: rgba(20, 11, 15, .75);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.ah-subnav__pill::-webkit-scrollbar { display: none; }
.ah-subnav__ind {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ah-ember), var(--ah-crimson));
}
.ah-subnav__link {
  position: relative; z-index: 1; flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ah-muted);
  transition: color .4s;
}
.ah-subnav__link em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ah-ember); transition: color .4s; }
.ah-subnav__link:hover { color: var(--ah-text); }
.ah-subnav__link.is-active { color: var(--ah-text); }
.ah-subnav__link.is-active em { color: var(--ah-gold); }
.ah-subnav__progress { position: absolute; left: 22px; right: 22px; bottom: 1px; height: 1px; overflow: hidden; pointer-events: none; }
.ah-subnav__progress i { display: block; height: 100%; background: var(--ah-gold); transform: scaleX(0); transform-origin: left; }

/* ---------- Chapters ---------- */
.ah-ch {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 140px); align-items: center;
  max-width: 1680px; margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) var(--ah-gutter);
  scroll-margin-top: 40px;
}
.ah-ch--flip .ah-ch__media { order: 2; }
.ah-ch__media { position: relative; max-width: 620px; width: 100%; justify-self: center; }
.ah-ch__big {
  position: absolute; z-index: 0; left: -.08em; top: -.42em;
  font-family: var(--ah-display); font-weight: 800;
  font-size: clamp(7rem, 15vw, 17rem); line-height: 1; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 197, 143, .22);
  pointer-events: none; user-select: none;
}
.ah-ch--flip .ah-ch__big { left: auto; right: -.08em; }
.ah-ch__img { position: relative; z-index: 1; margin: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--ah-radius-lg) var(--ah-radius-lg); }
.ah-ch__img img { position: absolute; left: 0; top: -9%; height: 118%; will-change: transform; }
.ah-ch__result { position: absolute; z-index: 2; right: -28px; bottom: 12%; width: clamp(200px, 15vw, 240px); }
.ah-ch--flip .ah-ch__result { right: auto; left: -28px; }
.ah-ch__result .ah-card__in { padding: 18px 20px; }

.ah-ch__kicker { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ah-muted); }
.ah-ch__kicker span { color: var(--ah-ember); margin-right: 8px; }
.ah-ch__title {
  margin: 14px 0 0;
  font-family: var(--ah-display); font-variation-settings: "opsz" 96;
  font-weight: 600; font-size: clamp(2.6rem, 5.2vw, 5.8rem);
  line-height: .95; letter-spacing: -.055em;
}
.ah-ch__tag { margin-top: 14px; font-family: var(--ah-serif); font-style: italic; font-size: clamp(1.4rem, 2.2vw, 2.2rem); line-height: 1.15; color: var(--ah-blush); }
.ah-ch__desc { margin-top: 20px; max-width: 34rem; font-size: 17px; line-height: 1.7; color: var(--ah-muted); }
.ah-ch__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.ah-ch__list li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; font-size: 15px; font-weight: 600;
  background: linear-gradient(var(--ah-line), var(--ah-line)) left bottom / 100% 1px no-repeat;
}
.ah-ch__list li::before { content: "✦"; font-size: 11px; color: var(--ah-ember); }
.ah-ch__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 44px; margin: 30px 0 0; }
.ah-ch__meta dt { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ah-muted); }
.ah-ch__meta dd { margin: 6px 0 0; font-family: var(--ah-display); font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.ah-ch__tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 28px; }
.ah-ch__links { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.ah-ch__tools span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ah-line); font-size: 12px; font-weight: 600; color: var(--ah-muted); }

/* ---------- Process timeline ---------- */
.ah-flow { z-index: 1; padding: clamp(60px, 10vh, 120px) 0 clamp(90px, 14vh, 160px); }
.ah-flow__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(40px, 7vw, 140px); margin-top: clamp(40px, 7vh, 72px); align-items: start; }
.ah-flow__side { position: sticky; top: 130px; display: grid; gap: 22px; justify-items: start; }
.ah-flow__track { position: relative; padding-left: 64px; }
.ah-flow__line { position: absolute; left: 15px; top: 14px; bottom: 60px; width: 2px; background: var(--ah-line); border-radius: 2px; overflow: hidden; }
.ah-flow__line i { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, var(--ah-gold), var(--ah-ember), var(--ah-crimson)); transform: scaleY(0); transform-origin: top; }
.ah-flow__steps { list-style: none; margin: 0; padding: 0; }
.ah-step2 { position: relative; padding-bottom: clamp(40px, 7vh, 64px); }
.ah-step2__node {
  position: absolute; left: -64px; top: 4px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ah-ink); border: 2px solid rgba(255, 255, 255, .18);
  transition: background-color .5s, border-color .5s, box-shadow .5s, transform .6s var(--ah-ease);
}
.ah-step2__node::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background-color .5s; }
.ah-step2.is-active .ah-step2__node { border-color: var(--ah-ember); box-shadow: 0 0 0 8px rgba(255, 90, 42, .15), 0 0 30px rgba(255, 90, 42, .6); transform: scale(1.08); }
.ah-step2.is-active .ah-step2__node::after { background: var(--ah-ember); }
.ah-step2__when { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ah-muted); transition: color .5s; }
.ah-step2.is-active .ah-step2__when { color: var(--ah-ember); }
.ah-step2__title { margin: 10px 0 0; font-family: var(--ah-display); font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.ah-step2__text { margin-top: 10px; max-width: 34rem; font-size: 16px; line-height: 1.65; color: var(--ah-muted); }
.ah-step2__out { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ah-step2__out span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--ah-line); font-size: 12px; font-weight: 600; }

/* ---------- Tools marquee ---------- */
.ah-tools { z-index: 1; overflow: hidden; padding: clamp(40px, 7vh, 80px) 0; border-block: 1px solid var(--ah-line); }
.ah-tools__label { max-width: 1680px; margin: 0 auto 26px; padding: 0 var(--ah-gutter); }
.ah-tools__row { overflow: hidden; padding: 6px 0; }
.ah-tools__track { display: flex; width: max-content; animation: ah-tools 34s linear infinite; }
.ah-tools__row--rev .ah-tools__track { animation-direction: reverse; animation-duration: 40s; }
.ah-tools:hover .ah-tools__track { animation-play-state: paused; }
@keyframes ah-tools { to { transform: translateX(-50%); } }
.ah-tools__track span {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--ah-display); font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 3.6rem); letter-spacing: -.04em;
  color: rgba(247, 239, 233, .85);
  transition: color .3s;
}
.ah-tools__track span::after { content: "✦"; margin: 0 .6em; font-size: .4em; color: var(--ah-ember); }
.ah-tools__track span:hover { color: var(--ah-ember); }
.ah-tools__row--rev .ah-tools__track span { font-family: var(--ah-serif); font-style: italic; font-weight: 400; color: rgba(255, 184, 154, .55); letter-spacing: -.01em; }

/* ---------- Testimonials ---------- */
.ah-quotes { z-index: 1; padding: clamp(90px, 14vh, 160px) 0; }
/* every quote sits in the same grid cell, so the stage is as tall as the longest one at any width */
.ah-quotes__stage { position: relative; display: grid; margin-top: clamp(48px, 8vh, 90px); }
.ah-quote { grid-area: 1 / 1; position: relative; z-index: 1; margin: 0; padding-left: clamp(40px, 7vw, 120px); visibility: hidden; opacity: 0; }
.ah-quote.is-active { visibility: visible; opacity: 1; }
.ah-quote blockquote {
  margin: 0; max-width: 24ch;
  font-family: var(--ah-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.8vw, 3.9rem); line-height: 1.1; letter-spacing: -.04em;
}
.ah-quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.ah-quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ah-ember); }
.ah-quote figcaption span { display: grid; font-size: 14px; color: var(--ah-muted); }
.ah-quote figcaption strong { font-size: 16px; color: var(--ah-text); }
.ah-quotes__nav { display: flex; align-items: center; gap: 18px; margin-top: 32px; padding-left: clamp(40px, 7vw, 120px); }
.ah-quotes__arrow {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--ah-line);
  transition: background-color .4s, border-color .4s;
}
.ah-quotes__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ah-quotes__arrow:hover { background: var(--ah-ember); border-color: var(--ah-ember); }
.ah-quotes__dots { display: flex; gap: 8px; }
.ah-quotes__dot { width: 48px; height: 20px; display: grid; align-items: center; }
.ah-quotes__dot i { display: block; height: 2px; border-radius: 2px; background: var(--ah-line); position: relative; overflow: hidden; }
.ah-quotes__dot i::after { content: ""; position: absolute; inset: 0; background: var(--ah-ember); transform: scaleX(var(--p, 0)); transform-origin: left; } /* --p set on <i> by JS */

/* ---------- Widget options ---------- */
.ah-tools--nopause:hover .ah-tools__track { animation-play-state: running; }
.ah-chapters--nonav .ah-subnav { display: none; }
.ah-ch--noresult .ah-ch__result { display: none; }
.ah-ch__img.ah-duo--off::before { display: none; }
.ah-ch__img.ah-duo--off img { filter: none; }
.ah-quotes__stage.is-static { gap: 48px; }
.ah-quotes__stage.is-static .ah-quote { grid-area: auto; visibility: visible; opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ah-ch { grid-template-columns: 1fr; }
  .ah-ch--flip .ah-ch__media { order: 0; }
  .ah-ch__media { max-width: 520px; }
  .ah-flow__grid { grid-template-columns: 1fr; }
  .ah-flow__side { position: relative; top: auto; }
}
@media (max-width: 700px) {
  .ah-subnav { top: 80px; }
  .ah-subnav__link { padding: 9px 12px; font-size: 13px; }
  .ah-ch__list { grid-template-columns: 1fr; }
  .ah-ch__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .ah-ch__meta dd { font-size: 18px; }
  .ah-ch__result { right: 8px; }
  .ah-ch--flip .ah-ch__result { left: 8px; }
  .ah-shero__stats li { padding: 0 16px; }
  .ah-flow__track { padding-left: 48px; }
  .ah-step2__node { left: -48px; width: 26px; height: 26px; }
  .ah-step2__node::after { inset: 7px; }
  .ah-flow__line { left: 12px; }
  .ah-quote, .ah-quotes__nav { padding-left: 0; }
  .ah-quotes__dot { width: 32px; }
  .ah-jump a { height: 44px; padding: 0 16px; font-size: 16px; }
  .ah-shero__stats { flex-wrap: wrap; row-gap: 16px; }
  .ah-ch { padding-top: clamp(60px, 10vh, 100px); padding-bottom: clamp(60px, 10vh, 100px); }
  .ah-head .ah-label:last-child { display: none; }
  .ah-head { grid-template-columns: auto 1fr; }
}
