/* ==========================================================================
   Aurem — Services section (services index + process + CTA).
   Uses brand tokens from hero.css (:root --ah-*) and shared components.
   ========================================================================== */

.ah-services {
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(80px, 12vh, 150px);
}

/* ---------- Ambient background ---------- */
.ah-services__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ah-services__glow {
  position: absolute; width: 55vw; height: 55vw; max-width: 860px; max-height: 860px;
  right: -15vw; top: 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 16, 46, .22), transparent);
  filter: blur(30px);
}
.ah-services__glow--2 {
  right: auto; left: -20vw; top: 55%;
  background: radial-gradient(closest-side, rgba(255, 90, 42, .16), transparent);
}
.ah-services .ah-grain { z-index: 0; opacity: .06; }

.ah-services__inner {
  position: relative; z-index: 1;
  max-width: 1680px; margin: 0 auto;
  padding: 0 var(--ah-gutter);
}

/* ---------- Intro ---------- */
.ah-services__intro {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 120px); align-items: end;
  margin-top: clamp(40px, 8vh, 90px);
}
.ah-services__title {
  font-family: var(--ah-display);
  font-variation-settings: "opsz" 96;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 6rem);
  line-height: 1; letter-spacing: -.045em;
}
.ah-services__title em {
  font-family: var(--ah-serif); font-style: italic; font-weight: 400;
  font-size: 1.08em; letter-spacing: -.015em; color: var(--ah-blush);
}
/* word masks → components.css */

.ah-services__aside { display: grid; gap: 28px; justify-items: start; padding-bottom: .6em; }
.ah-services__aside p { max-width: 26rem; font-size: 16px; line-height: 1.65; color: var(--ah-muted); }
.ah-btn--ghost .ah-btn__play svg { width: 18px; height: 18px; }

/* ---------- Services index ---------- */
.ah-svc__list {
  list-style: none; margin: clamp(56px, 10vh, 110px) 0 0; padding: 0;
  border-top: 1px solid var(--ah-line);
  counter-reset: none;
}
.ah-svc__row {
  position: relative;
  /* bottom rule — drawn by GSAP via background-size */
  background: linear-gradient(var(--ah-line), var(--ah-line)) left bottom / 100% 1px no-repeat;
}
.ah-svc__row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 90, 42, .12), rgba(200, 16, 46, .04) 55%, transparent);
  opacity: 0; transition: opacity .6s var(--ah-ease);
}
.ah-svc__row.is-open::before { opacity: 1; }

.ah-svc__head {
  width: 100%;
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 56px;
  align-items: center; gap: 24px;
  padding: clamp(22px, 3.4vh, 38px) 0;
  text-align: left;
  transition: opacity .5s var(--ah-ease);
}
.ah-svc__num {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--ah-muted);
  transition: color .4s;
}
.ah-svc__title {
  display: block; overflow: hidden;
  padding-bottom: .08em; margin-bottom: -.08em;
  font-family: var(--ah-display);
  font-variation-settings: "opsz" 96;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 5.2rem);
  line-height: 1.02; letter-spacing: -.045em;
  white-space: nowrap;
}
.ah-svc__title-i {
  display: inline-block;
  transition: transform .7s var(--ah-ease), color .4s;
}
.ah-svc__tags { display: flex; gap: 8px; }
.ah-svc__tags span {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--ah-line);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ah-muted);
  white-space: nowrap;
  transition: border-color .4s, color .4s;
}
.ah-svc__toggle {
  position: relative; justify-self: end;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--ah-line);
  transition: background-color .4s, border-color .4s, transform .7s var(--ah-ease);
}
.ah-svc__toggle i {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.6px; margin: -.8px 0 0 -8px;
  background: currentColor; border-radius: 2px;
  transition: transform .6s var(--ah-ease);
}
.ah-svc__toggle i:last-child { transform: rotate(90deg); }

/* hover + open states */
@media (hover: hover) {
  .ah-svc__list:hover .ah-svc__row:not(:hover):not(.is-open) .ah-svc__head { opacity: .32; }
  .ah-svc__head:hover .ah-svc__title-i { transform: translateX(22px); color: var(--ah-blush); }
  .ah-svc__head:hover .ah-svc__num { color: var(--ah-ember); }
  .ah-svc__head:hover .ah-svc__tags span { border-color: rgba(255, 197, 143, .35); color: var(--ah-text); }
  .ah-svc__head:hover .ah-svc__toggle { border-color: var(--ah-ember); transform: rotate(90deg); }
}
.ah-svc__row.is-open .ah-svc__num { color: var(--ah-ember); }
.ah-svc__row.is-open .ah-svc__title-i { font-family: var(--ah-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--ah-blush); }
.ah-svc__row.is-open .ah-svc__toggle { background: var(--ah-ember); border-color: var(--ah-ember); transform: rotate(180deg); }
.ah-svc__row.is-open .ah-svc__toggle i:last-child { transform: rotate(0deg); }

/* panel (closed only when JS is running, so content is never lost) */
.ah-svc-js .ah-svc__panel { height: 0; overflow: hidden; }
.ah-svc__panel-in {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto auto;
  gap: clamp(24px, 4vw, 64px); align-items: start;
  padding: 4px 0 clamp(32px, 5vh, 48px) 112px;
}
.ah-svc__desc { max-width: 30rem; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: var(--ah-muted); }
.ah-svc__deliver { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.ah-svc__deliver li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--ah-line);
  font-size: 13px; font-weight: 600;
}
.ah-svc__deliver li::before { content: "✦"; font-size: 10px; color: var(--ah-ember); }
.ah-svc__meta { display: grid; gap: 6px; white-space: nowrap; }
.ah-svc__meta span { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ah-muted); }
.ah-svc__meta strong { font-family: var(--ah-display); font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.ah-svc__thumb { width: 150px; aspect-ratio: 4 / 5; margin: 0; border-radius: 999px 999px 18px 18px; }

/* .ah-duo → components.css */

/* ---------- WebGL hover image ---------- */
.ah-svc-gl {
  position: fixed; inset: 0; z-index: 4;
  width: 100vw; height: 100vh;
  pointer-events: none;
}

/* ---------- Process ---------- */
.ah-process {
  position: relative; z-index: 1;
  margin-top: clamp(100px, 16vh, 180px);
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.ah-process__track {
  display: flex; align-items: stretch; gap: 22px;
  width: max-content;
  padding: 0 var(--ah-gutter);
  will-change: transform;
}
.ah-process__intro {
  flex: 0 0 clamp(300px, 34vw, 560px);
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  padding-right: clamp(20px, 4vw, 80px);
}
.ah-process__title {
  font-family: var(--ah-display); font-variation-settings: "opsz" 96;
  font-weight: 600; font-size: clamp(3rem, 7vw, 7.5rem);
  line-height: .95; letter-spacing: -.05em;
}
.ah-process__title em { font-family: var(--ah-serif); font-style: italic; font-weight: 400; color: var(--ah-blush); letter-spacing: -.02em; }
.ah-process__text { max-width: 24rem; font-size: 16px; line-height: 1.65; color: var(--ah-muted); }
.ah-process__hint { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ah-muted); }
.ah-process__hint span { width: 48px; height: 1px; background: var(--ah-ember); position: relative; overflow: hidden; }
.ah-process__hint span::after { content: ""; position: absolute; inset: 0; background: var(--ah-gold); animation: ah-hint 1.8s var(--ah-ease) infinite; }
@keyframes ah-hint { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.ah-step { flex: 0 0 clamp(290px, 27vw, 420px); }
.ah-step .ah-card__in {
  height: clamp(380px, 58vh, 540px);
  padding: clamp(24px, 2.4vw, 36px);
  display: flex; flex-direction: column;
  transition: background-color .5s;
}
.ah-step:hover .ah-card__in { background: rgba(60, 14, 22, .5); }
.ah-step__big {
  position: absolute; right: 18px; top: 6px;
  font-family: var(--ah-display); font-weight: 800;
  font-size: clamp(6rem, 9vw, 9.5rem); line-height: 1; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 197, 143, .22);
  transition: -webkit-text-stroke-color .5s, transform .8s var(--ah-ease);
}
.ah-step:hover .ah-step__big { -webkit-text-stroke-color: rgba(255, 90, 42, .6); transform: translateY(-6px); }
.ah-step__icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 90, 42, .2), rgba(200, 16, 46, .15));
  border: 1px solid rgba(255, 197, 143, .25);
}
.ah-step__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ah-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ah-step__icon svg * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ah-step__title {
  margin-top: auto;
  font-family: var(--ah-display); font-weight: 600;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem); letter-spacing: -.04em;
}
.ah-step__text { margin-top: 12px; min-height: 4.8em; /* 3 lines keep titles aligned */ font-size: 15px; line-height: 1.6; color: var(--ah-muted); }
.ah-step__meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ah-line);
  font-size: 13px; color: var(--ah-muted);
}
.ah-step__meta span { padding: 6px 12px; border-radius: 999px; background: var(--ah-ember); color: var(--ah-ink); font-weight: 700; }

.ah-process__bar {
  display: flex; align-items: center; gap: 20px;
  margin: clamp(28px, 5vh, 56px) var(--ah-gutter) 0;
}
.ah-process__count { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--ah-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ah-process__count b { color: var(--ah-text); }
.ah-process__line { flex: 1; height: 1px; background: var(--ah-line); overflow: hidden; }
.ah-process__line i { display: block; height: 100%; background: linear-gradient(90deg, var(--ah-crimson), var(--ah-ember), var(--ah-gold)); transform: scaleX(0); transform-origin: left; }

/* ---------- Closing CTA ---------- */
.ah-svc-cta { position: relative; z-index: 1; padding: clamp(60px, 10vh, 140px) 0 clamp(90px, 14vh, 160px); }
.ah-svc-cta__inner {
  max-width: 1680px; margin: 0 auto; padding: 0 var(--ah-gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px;
}
.ah-svc-cta__title {
  margin: 20px 0 28px;
  font-family: var(--ah-display); font-variation-settings: "opsz" 96;
  font-weight: 600; font-size: clamp(3rem, 9vw, 10rem);
  line-height: .92; letter-spacing: -.055em;
}
.ah-svc-cta__line { display: block; overflow: hidden; padding: 0 .05em .1em; margin: 0 -.05em -.1em; }
.ah-svc-cta__line > span { display: inline-block; }
.ah-svc-cta__title em { font-family: var(--ah-serif); font-style: italic; font-weight: 400; color: var(--ah-ember); letter-spacing: -.02em; }

.ah-round-btn {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: clamp(160px, 15vw, 220px); aspect-ratio: 1;
  border-radius: 50%;
}
.ah-round-btn__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ah-round-btn__ring text { fill: var(--ah-text); font-family: var(--ah-sans); font-size: 13px; font-weight: 700; letter-spacing: 4.4px; }
.ah-round-btn__core {
  display: grid; place-items: center;
  width: 58%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(135deg, var(--ah-ember), var(--ah-crimson));
  box-shadow: 0 24px 60px -18px rgba(255, 90, 42, .9);
  transition: transform .7s var(--ah-ease);
}
.ah-round-btn__core svg { width: 34%; height: 34%; fill: none; stroke: var(--ah-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .7s var(--ah-ease); }
.ah-round-btn:hover .ah-round-btn__core { transform: scale(1.08); }
.ah-round-btn:hover .ah-round-btn__core svg { transform: rotate(45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .ah-svc__tags { display: none; }
  .ah-svc__head { grid-template-columns: 72px minmax(0, 1fr) 56px; }
  .ah-svc__panel-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-left: 96px; }
  .ah-svc__thumb { display: none; }
}

@media (max-width: 899px) {
  .ah-services__intro { grid-template-columns: 1fr; }
  .ah-process { height: auto; overflow: visible; }
  .ah-process__track { flex-direction: column; width: auto; }
  .ah-process__intro { flex: none; padding-right: 0; margin-bottom: 16px; }
  .ah-process__hint { display: none; }
  .ah-step { flex: none; }
  .ah-step .ah-card__in { height: auto; min-height: 320px; }
  .ah-step__title { margin-top: 48px; }
  .ah-process__bar { display: none; }
}

@media (max-width: 640px) {
  .ah-services__head .ah-label:last-child { display: none; }
  .ah-svc__head { grid-template-columns: 34px minmax(0, 1fr) 44px; gap: 12px; }
  .ah-svc__title { font-size: clamp(1.6rem, 7.6vw, 2.4rem); white-space: normal; }
  .ah-svc__toggle { width: 44px; height: 44px; }
  .ah-svc__panel-in { grid-template-columns: 1fr; padding-left: 46px; }
  .ah-svc-cta__inner { flex-direction: column; align-items: flex-start; }
}
