/* ============================================================
   /services: what Nalanbi does for owners and managers.
   Hero hub, towns marquee, a sticky "how it works" story (the
   visual swaps scene as each step scrolls past; pages/services.js
   sets .is-on), audience tabs, facts band, extras, closing CTA.
   Scroll-linked motion only runs where the browser supports
   scroll-driven animations and the visitor hasn't asked for less
   motion; everywhere else the page is simply visible.
   ============================================================ */

.svc { overflow-x: clip; }

.svcDots {
  background-color: var(--seafoam-tint);
  background-image: radial-gradient(var(--hairline-strong) 1px, transparent 1.2px);
  background-size: 22px 22px;
}

.svcKicker {
  font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--turquoise-ink);
}

.svcHead { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); max-width: 52rem; margin-bottom: var(--sp-6); }
.svcHead h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: var(--lh-tight); letter-spacing: -.02em; color: var(--ocean-deep); }

.svcTicks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-1); padding: 0; list-style: none; }
.svcTicks li {
  font-size: var(--fs-xs); color: var(--count-ink); background: var(--white);
  border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: var(--sp-1) 10px;
}

/* ---- hero -------------------------------------------------------- */
.svcHero { padding-block: var(--sp-9) 112px; border-bottom: 1px solid var(--hairline); }
.svcHero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: center; }
.svcHero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-5); }
.svcHero h1 { font-size: clamp(2.5rem, 1.4rem + 4vw, 4.25rem); line-height: 1.04; letter-spacing: -.025em; color: var(--ocean-deep); }
.svcHero__lead { font-size: 1.1875rem; line-height: var(--lh-body); color: var(--slate); max-width: 34rem; }
.svcHero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.svcHero__meta { font-size: var(--fs-xs); color: var(--stone); }

.svcHub { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin-inline: auto; }
.svcHub__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.svcHub__ring circle { fill: none; stroke: var(--hairline-dashed); stroke-width: 1.5; stroke-dasharray: 2 10; }
.svcHub__ring { transform-origin: 260px 260px; }
.svcHub__inner { fill: none; stroke: var(--seafoam); }
.svcHub__spokes path { fill: none; stroke: var(--turquoise); stroke-width: 2; stroke-dasharray: 3 7; }
.svcHub__pulses { fill: var(--turquoise); }
.svcHub__core {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 132px; aspect-ratio: 1; border-radius: 50%;
  background: var(--ocean-deep); color: var(--white);
  box-shadow:
    0 0 0 14px color-mix(in srgb, var(--turquoise) 12%, transparent),
    0 0 0 30px color-mix(in srgb, var(--turquoise) 6%, transparent),
    var(--shadow-lift);
}
.svcHub__core .ico { width: 60px; height: 60px; }
.svcHub__core::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 2px solid var(--turquoise); opacity: 0;
}

.svcNode {
  position: absolute; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) 14px var(--sp-2) var(--sp-2);
  background: var(--white); border: 1px solid var(--hairline-strong); border-radius: var(--r-pill);
  box-shadow: var(--shadow-med);
  font-size: var(--fs-ui); font-weight: 600; color: var(--ocean-deep); white-space: nowrap;
}
.svcNode__ico { display: grid; place-items: center; width: 26px; aspect-ratio: 1; border-radius: 50%; }
.svcNode__ico .ico { width: 14px; height: 14px; stroke-width: 2.2; }
.svcNode--listings { left: 50%;  top: 9.6%; }
.svcNode--leads    { left: 85%;  top: 29.8%; animation-delay: -1s; }
.svcNode--tours    { left: 85%;  top: 70.2%; animation-delay: -2s; }
.svcNode--leases   { left: 50%;  top: 90.4%; animation-delay: -3s; }
.svcNode--tenants  { left: 15%;  top: 70.2%; animation-delay: -4s; }
.svcNode--owners   { left: 15%;  top: 29.8%; animation-delay: -5s; }

/* tone pairs shared by the hub icons and the mock avatars */
.svcTone--rent  { background: var(--rental-bg); color: var(--rental-ink); }
.svcTone--sale  { background: var(--sale-bg); color: var(--sale-ink); }
.svcTone--info  { background: var(--info-bg); color: var(--info-ink); }
.svcTone--deal  { background: var(--deal-under-contract-bg); color: var(--deal-under-contract-ink); }
.svcTone--ocean { background: var(--seafoam); color: var(--ocean); }
.svcTone--ok    { background: var(--count-bg); color: var(--count-ink); }

/* ---- marquee ----------------------------------------------------- */
.svcMarquee { overflow: hidden; padding-block: 28px; border-bottom: 1px solid var(--hairline); }
.svcMarquee__track { display: flex; width: max-content; }
.svcMarquee__run {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-size: 1.75rem; font-weight: 600; color: var(--ocean-deep); white-space: nowrap;
}
.svcMarquee__run a { color: inherit; }
.svcMarquee__run a:hover { color: var(--turquoise-ink); text-decoration: none; }
.svcMarquee__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--turquoise); }

/* ---- sticky story ------------------------------------------------ */
.svcStory { padding-block: 120px var(--sp-6); }
.svcStory__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.svcStory__visual { grid-column: 2; grid-row: 1; }
.svcStory__frame { position: sticky; top: calc(var(--header-h) + var(--sp-6)); height: 560px; border-radius: 28px; overflow: hidden; }
.svcScene {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 36px;
  opacity: 0; transform: translateY(28px) scale(.97); pointer-events: none;
  transition: opacity .55s var(--ease), transform .7s var(--ease);
}
.svcScene.is-on { opacity: 1; transform: none; }

/* The text inset lives on each step: base.css's ol[role="list"] reset outranks a padding set here. */
.svcSteps { grid-column: 1; grid-row: 1; position: relative; margin: 0; padding: 0; list-style: none; }
.svcSteps::before { /* rail */
  content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--hairline);
}
.svcSteps::after { /* fill: grows with the story */
  content: ""; position: absolute; left: 8px; top: 0; width: 2px; height: 100%; border-radius: 2px;
  background: var(--turquoise); transform-origin: top; transform: scaleY(var(--story-progress, .08));
  transition: transform .4s var(--ease);
}
.svcStep {
  position: relative; min-height: 600px; display: flex; flex-direction: column; justify-content: center; gap: var(--sp-3);
  padding-left: 36px;
  opacity: .32; transition: opacity .45s var(--ease);
}
.svcStep.is-on { opacity: 1; }
.svcStep::before { /* step dot on the rail */
  content: ""; position: absolute; z-index: 1; left: 0; top: 50%; width: 18px; height: 18px; translate: 0 -50%;
  border-radius: 50%; background: var(--white); border: 2px solid var(--hairline-strong);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.svcStep.is-on::before {
  background: var(--turquoise); border-color: var(--turquoise);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--turquoise) 16%, transparent);
}
.svcStep h3, .svcPanel h3 { font-size: clamp(1.625rem, 1.1rem + 1.4vw, 2.125rem); line-height: 1.15; color: var(--ocean-deep); }
.svcStep p, .svcPanel p { font-size: var(--fs-md); line-height: 1.6; color: var(--slate); max-width: 29rem; }

/* Without JS every step reads at full strength. */
html:not(.js) .svcStep { opacity: 1; }

/* ---- audience tabs ----------------------------------------------- */
.svcPortals { padding-block: 120px; background: var(--seafoam-tint); border-block: 1px solid var(--hairline); }
.svcTabs {
  display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px;
  background: var(--white); border: 1px solid var(--hairline-strong); border-radius: var(--r-pill);
}
.svcTab {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--count-ink); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  transition: background-color var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
}
.svcTab:hover { color: var(--ocean-deep); background: var(--seafoam-tint); }
.svcTab[aria-selected="true"] { background: var(--ocean-deep); color: var(--white); }
.svcTab:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.svcPanel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-7); align-items: center; }
.svcPanel + .svcPanel { margin-top: var(--sp-8); } /* stacked when there's no JS */
.js .svcPanel + .svcPanel { margin-top: 0; }
.svcPanel[hidden] { display: none; }
.svcPanel.is-entering { animation: svcPanelIn .6s var(--ease) both; }
.svcPanel__copy { display: flex; flex-direction: column; gap: 14px; }
.svcPanel__stage { display: flex; align-items: center; justify-content: center; min-height: 440px; padding: 36px; border-radius: 28px; }

/* ---- facts ------------------------------------------------------- */
.svcFacts { padding-block: 104px; background: var(--ocean-deep); }
.svcFacts h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.1; color: var(--on-dark); max-width: 45rem; margin-bottom: var(--sp-7); }
.svcFacts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); padding: 0; list-style: none; }
.svcFact { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--on-dark-line); }
.svcFact__num { font-size: clamp(3.5rem, 2rem + 4vw, 5.5rem); font-weight: 700; line-height: 1; color: var(--on-dark); }
.svcFact__label { font-size: 1rem; line-height: 1.45; color: var(--on-dark-muted); }

/* ---- extras ------------------------------------------------------ */
.svcExtras__title { font-size: var(--fs-2xl); color: var(--ocean-deep); margin-bottom: var(--sp-6); }
.svcExtras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); padding: 0; list-style: none; }
.svcExtra {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--sp-3) 10px; padding: var(--sp-5);
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-card);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.svcExtra:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--hairline-dashed); }
.svcExtra h3 { font-size: 1.0625rem; font-weight: 600; color: var(--ocean-deep); }
.svcExtra p { grid-column: 1 / -1; font-size: var(--fs-ui); line-height: var(--lh-body); color: var(--slate); }
.svcExtra__ico { display: flex; color: var(--turquoise-ink); }
.svcExtra__ico .ico { width: 22px; height: 22px; stroke-width: 2; }

/* ---- closing CTA ------------------------------------------------- */
.svcCta { padding-top: 112px; overflow: hidden; border-top: 1px solid var(--hairline); }
.svcCta__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.svcCta h2 { font-size: clamp(2.125rem, 1.3rem + 3vw, 3.75rem); line-height: 1.05; letter-spacing: -.025em; color: var(--ocean-deep); }
.svcCta p { font-size: 1.125rem; line-height: var(--lh-body); color: var(--slate); max-width: 35rem; }
.svcCta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
.svcCta__arch { width: 240px; height: 240px; margin: var(--sp-7) 0 -30px; color: var(--ocean-deep); }

/* ================= mock app UI (decorative, aria-hidden) ================= */
.mock {
  --m-2xs: .625rem;   /* 10 */
  --m-xs: .6875rem;   /* 11 */
  --m-sm: .75rem;     /* 12 */
  --m-md: .8125rem;   /* 13 */
  font-size: var(--m-xs); color: var(--charcoal); line-height: 1.3; text-align: left;
}
.mock b { font-weight: 600; }
.mock .mut { color: var(--slate); }
.mock .pill {
  display: inline-flex; align-items: center; align-self: flex-start; gap: var(--sp-1);
  padding: 2px var(--sp-2); border-radius: var(--r-pill);
  font-size: var(--m-2xs); font-weight: 600; white-space: nowrap;
}
.pill--rent     { background: var(--rental-bg); color: var(--rental-ink); }
.pill--sale     { background: var(--sale-bg); color: var(--sale-ink); }
.pill--pending  { background: var(--pending-bg); color: var(--sale-ink); }
.pill--negative { background: var(--negative-bg); color: var(--negative-ink); }
.pill--info     { background: var(--info-bg); color: var(--info-ink); }
.pill--deal     { background: var(--deal-under-contract-bg); color: var(--deal-under-contract-ink); }
.pill--plain    { background: var(--white); color: var(--ocean-deep); border: 1px solid var(--hairline-strong); }
.mock .av {
  display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
  font-size: var(--m-2xs); font-weight: 600;
}
.mock .av--sm { width: 18px; height: 18px; }
.mock .av--lg { width: 28px; height: 28px; }
.mockRow { display: flex; align-items: center; gap: var(--sp-2); }
.mockEnd { margin-left: auto; }
.mockGrow { flex: 1; }

.mockWin {
  width: 100%; max-width: 560px; overflow: hidden;
  background: var(--white); border: 1px solid var(--hairline-strong); border-radius: var(--r-tile);
  box-shadow: var(--shadow-lift);
}
.mockWin--wide { max-width: 640px; }
.mockWin--narrow { max-width: 440px; }
.mockWin__bar { display: flex; align-items: center; gap: 6px; padding: 9px var(--sp-3); border-bottom: 1px solid var(--hairline); }
.mockWin__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--hairline-strong); }
.mockWin__bar span { margin-left: 10px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--seafoam-tint); color: var(--slate); }

/* listing card */
.mockCard { width: 320px; overflow: hidden; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-photo); box-shadow: var(--shadow-lift); }
.mockCard__photo { position: relative; display: grid; place-items: center; height: 190px; background: var(--seafoam); color: var(--on-dark-muted); }
.mockCard__photo > .ico { width: 72px; height: 72px; stroke-width: 1.2; }
.mockCard__mode { position: absolute; left: var(--sp-3); top: var(--sp-3); box-shadow: var(--shadow-chip-sm); }
.mockCard__co { position: absolute; right: var(--sp-3); top: var(--sp-3); }
.mockCard .pill { font-size: var(--m-xs); padding: var(--sp-1) 10px; }
.mockCard__body { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4); font-size: var(--m-md); }
.mockCard__title { font-size: 1.0625rem; }
.mockCard__price { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--sp-2); padding-top: 10px; border-top: 1px solid var(--hairline); color: var(--slate); font-size: var(--m-sm); }
.mockCard__price strong { font-size: 1.1875rem; color: var(--turquoise-ink); }

/* pipeline */
.mockToolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); padding: 10px var(--sp-3); border-bottom: 1px solid var(--hairline); }
.mockSearch { flex: 1; min-width: 120px; padding: 5px 9px; border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); color: var(--stone); }
.mockSeg { display: inline-flex; overflow: hidden; border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); }
.mockSeg > * { padding: var(--sp-1) 9px; }
.mockSeg b { background: var(--ocean-deep); color: var(--white); font-weight: 500; }
.mockToolbar .pill { font-size: var(--m-xs); padding: var(--sp-1) 10px; }
.mockStrip { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px var(--sp-3) 0; padding: 7px 10px; border-radius: var(--r-sm); background: var(--info-bg); color: var(--info-ink); }
.mockBoard { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); padding: 10px var(--sp-3) 14px; }
.mockCol { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: var(--sp-2); border-radius: 10px; background: var(--seafoam-tint); }
.mockCol__h { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px var(--sp-1); font-weight: 600; color: var(--ocean-deep); }
.mockCol__h span { padding: 1px 6px; border-radius: var(--r-pill); background: var(--count-bg); color: var(--count-ink); font-size: var(--m-2xs); }
.mockLead { display: flex; flex-direction: column; gap: 5px; padding: var(--sp-2); background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-sm); }
.mockWarn { font-size: var(--m-2xs); color: var(--negative-ink); }

/* tours */
.mockWeek { display: grid; grid-template-columns: 38px repeat(5, minmax(0, 1fr)); font-size: var(--m-2xs); }
.mockWeek__day { padding: 6px var(--sp-1); text-align: center; color: var(--slate); border-bottom: 1px solid var(--hairline); }
.mockWeek__day b { display: block; font-size: var(--m-md); color: var(--ocean-deep); }
.mockWeek__day.is-today b { color: var(--turquoise); }
.mockWeek > span:first-child { border-bottom: 1px solid var(--hairline); }
.mockWeek__time { height: 40px; padding: var(--sp-1) var(--sp-1) 0; color: var(--stone); border-top: 1px solid var(--seafoam-tint); }
.mockWeek__cell { height: 40px; padding: 2px; border-top: 1px solid var(--seafoam-tint); border-left: 1px solid var(--seafoam-tint); }
.mockWeek .is-today { background: var(--seafoam-tint); }
.mockTour {
  display: block; height: 36px; overflow: hidden; padding: var(--sp-1) 6px; border-radius: 6px;
  background: var(--rental-bg); color: var(--rental-ink);
  font-weight: 500; line-height: 1.25;
}
.mockTour--done { background: var(--count-bg); color: var(--count-ink); }
.mockTour--need { background: var(--pending-bg); color: var(--sale-ink); }
.mockOutcome { display: flex; align-items: center; gap: 10px; margin: 10px var(--sp-3) 14px; padding: 10px var(--sp-3); border-radius: 10px; background: var(--pending-bg); color: var(--sale-ink); font-size: var(--m-xs); }
.mockOutcome__btn { margin-left: auto; padding: 3px 10px; border-radius: var(--r-pill); background: var(--white); font-weight: 600; white-space: nowrap; }

/* rental management */
.mockKpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); padding: var(--sp-3); }
.mockKpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px var(--sp-3); border: 1px solid var(--hairline); border-radius: 10px; color: var(--slate); font-size: var(--m-2xs); }
.mockKpi b { font-size: 1.0625rem; color: var(--ocean-deep); }
.mockPending { color: var(--sale-ink); }
.mockAttention { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0 var(--sp-3) var(--sp-3); padding: 10px var(--sp-3); border: 1px solid var(--hairline); border-radius: 10px; }
.mockAttention > b { font-size: var(--m-sm); color: var(--ocean-deep); }
.mockTable { margin: 0 var(--sp-3) var(--sp-3); border: 1px solid var(--hairline); border-radius: 10px; }
.mockTable__row { display: grid; grid-template-columns: 1.6fr 1.2fr .9fr .9fr; gap: var(--sp-2); align-items: center; padding: var(--sp-2) var(--sp-3); border-top: 1px solid var(--hairline); }
.mockTable__head { border-top: 0; padding-block: var(--sp-1); color: var(--slate); font-size: var(--m-2xs); text-transform: uppercase; letter-spacing: .06em; }

/* company */
.mockTabs { display: flex; gap: var(--sp-4); padding: 10px var(--sp-4) 0; border-bottom: 1px solid var(--hairline); font-size: var(--m-sm); color: var(--slate); }
.mockTabs > * { padding-bottom: 9px; }
.mockTabs b { color: var(--ocean-deep); box-shadow: inset 0 -2px 0 var(--turquoise); }
.mockList { display: flex; flex-direction: column; padding: var(--sp-1) var(--sp-4) var(--sp-4); font-size: var(--m-md); }
.mockList__row { display: flex; align-items: center; gap: var(--sp-2); padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.mockBtn { align-self: flex-start; margin-top: 14px; padding: 7px 14px; border-radius: var(--r-pill); background: var(--turquoise-ink); color: var(--white); font-size: var(--m-sm); font-weight: 600; }

/* tenant phone */
.mockPhone { width: 250px; overflow: hidden; background: var(--white); border: 9px solid var(--ocean-deep); border-radius: 34px; box-shadow: var(--shadow-lift); }
.mockPhone__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 10px; border-bottom: 1px solid var(--hairline); color: var(--ocean-deep); }
.mockPhone__pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px var(--sp-2) 3px 3px; border: 1px solid var(--hairline-strong); border-radius: var(--r-pill); }
.mockPhone__body { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.mockPhone__hi { font-size: 1rem; color: var(--ocean-deep); }
.mockRent { display: flex; flex-direction: column; padding: var(--sp-3); border-radius: var(--r-md); background: var(--ocean-deep); color: var(--on-dark-muted); font-size: var(--m-2xs); }
.mockRent b { margin-block: 2px; font-size: 1.25rem; font-weight: 700; color: var(--white); }
.mockBox { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--hairline); border-radius: 10px; }

/* owner statement */
.mockStatement { display: flex; flex-direction: column; padding: 14px var(--sp-4) var(--sp-4); font-size: var(--m-md); }
.mockStatement > .mockRow { margin-bottom: 10px; color: var(--ocean-deep); font-size: var(--fs-ui); }
.mockLine { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--hairline); }
.mockIn { color: var(--rental-ink); }
.mockOut { color: var(--negative-ink); }
.mockNet { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 11px var(--sp-3); border-radius: 10px; background: var(--rental-bg); color: var(--rental-ink); }
.mockNet b:last-child { font-size: 1.0625rem; font-weight: 700; }
.mockFiles { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-3); color: var(--ocean); font-size: var(--m-sm); }
.mockFiles .ico { width: 14px; height: 14px; stroke-width: 2.2; }

/* ================= motion ================= */
@keyframes svcSpin { to { rotate: 360deg; } }
@keyframes svcDash { to { stroke-dashoffset: -20; } }
@keyframes svcBob { 50% { translate: -50% calc(-50% - 6px); } }
@keyframes svcPulse { from { transform: scale(.9); opacity: .6; } to { transform: scale(1.5); opacity: 0; } }
@keyframes svcMarquee { to { transform: translateX(-50%); } }
@keyframes svcPanelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes svcRise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes svcHeroOut { to { opacity: .25; transform: scale(.86) translateY(60px); } }
@keyframes svcArchUp { from { transform: translateY(120px) scale(.9); } to { transform: none; } }
@property --svc-n { syntax: "<integer>"; initial-value: 0; inherits: false; }
@keyframes svcCount { from { --svc-n: 0; } to { --svc-n: var(--t); } }

@media (prefers-reduced-motion: no-preference) {
  .svcHub__ring { animation: svcSpin 60s linear infinite; }
  .svcHub__spokes path { animation: svcDash 1.6s linear infinite; }
  .svcHub__core::after { animation: svcPulse 3s ease-out infinite; }
  .svcNode { animation: svcBob 6s ease-in-out infinite; }
  .svcMarquee__track { animation: svcMarquee 38s linear infinite; }
  .svcMarquee:hover .svcMarquee__track { animation-play-state: paused; }

  @supports (animation-timeline: view()) {
    .svcReveal { animation: svcRise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .svcReveal--1 { animation-range: entry 10% entry 80%; }
    .svcReveal--2 { animation-range: entry 20% entry 90%; }
    .svcReveal--3 { animation-range: entry 30% entry 100%; }
    .svcHub { animation: svcHeroOut linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
    .svcCta__arch { animation: svcArchUp linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .svcFact__num { animation: svcCount linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; counter-reset: svc-n var(--svc-n); }
    .svcFact__num::after { content: counter(svc-n); }
    .svcFact__num > span { display: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .svcHub__pulses { display: none; } /* SMIL ignores the reduced-motion CSS */
  .svcScene, .svcStep { transition: none; }
}

/* ================= responsive ================= */
@media (max-width: 980px) {
  .svcHero__grid, .svcPanel { grid-template-columns: minmax(0, 1fr); }
  .svcHub { max-width: 440px; }
  /* No room to pin the card beside the text: pages/services.js moves each
     scene into its own step, above the text it illustrates, and nothing pins.
     Without JS the frame stays, unpinned, above the steps. */
  .svcStory__grid { display: block; }
  .js .svcStory__visual { display: none; }
  .svcStory__frame { position: relative; top: auto; height: 400px; margin-bottom: var(--sp-6); }
  .svcSteps::before, .svcSteps::after, .svcStep::before { display: none; }
  .svcStep { min-height: 0; padding: 0 0 var(--sp-8); opacity: 1; justify-content: flex-start; }
  .svcStep:last-child { padding-bottom: 0; }
  .svcStep > .svcScene {
    position: relative; inset: auto; height: 400px; margin-bottom: var(--sp-2); overflow: hidden;
    border-radius: var(--r-sheet); opacity: 1; transform: none;
    background-color: var(--seafoam-tint);
    background-image: radial-gradient(var(--hairline-strong) 1px, transparent 1.2px);
    background-size: 22px 22px;
  }
  .svcScene { padding: var(--sp-4); }
  .svcScene > .mock { flex: none; width: 640px; max-width: none; scale: .78; }
  .svcScene > .mockCard { width: 320px; }
  .svcFacts__grid, .svcExtras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .svcHero { padding-block: var(--sp-8) var(--sp-8); }
  .svcStory, .svcPortals { padding-block: var(--sp-8); }
  .svcStory__frame, .svcStep > .svcScene { height: 280px; border-radius: 20px; }
  .svcScene > .mock { scale: .5; }
  .svcScene > .mockCard { scale: .74; }
  .svcStep { padding-bottom: var(--sp-7); }
  .svcStep p, .svcPanel p { font-size: 1rem; }
  .svcNode { font-size: var(--fs-2xs); padding: 6px 10px 6px 6px; }
  .svcNode__ico { width: 20px; }
  .svcHub__core { width: 96px; }
  .svcHub__core .ico { width: 44px; height: 44px; }
  .svcPanel__stage { min-height: 360px; padding: var(--sp-4); overflow: hidden; }
  .svcPanel__stage > .mockWin { scale: .9; }
  .svcFacts__grid, .svcExtras { grid-template-columns: minmax(0, 1fr); }
  .svcMarquee__run { font-size: 1.375rem; }
  .svcTabs { border-radius: var(--r-card); }
  .svcTab { flex: 1 1 auto; }
}
