/* ================================================================
   TARABA BizComm — Services (six service rooms + languages)
   css/pages/services.css | Loaded by services.html only, after
   base.css, layout.css, showroom.css, showroom-motion.css, modal.css.

   Rebuilt for the showroom restructure (Phase 7). Each service room
   has the same parts but alternates background and side, so the page
   reads as a walk past six stands rather than one long list. The
   pre-rebuild version is kept in _archive/pre-showroom/services.css.
================================================================ */

/* Fixed nav (70px) + sticky service bar (~58px) */
html {
  scroll-padding-top: 136px;
}

/* ── Hero — compact; the guide stands on the room's floor ── */
.svc-hero {
  padding: calc(70px + var(--s-8)) 0 0;
}
.svc-hero .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s-7);
}
.svc-hero .wrap > div {
  padding-bottom: var(--s-8);
}
.svc-hero h1 {
  font-family: var(--f-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 18ch;
}
.svc-hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.svc-hero .lead {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--s-6);
}
.svc-hero__mascot {
  width: clamp(160px, 18vw, 250px);
  height: auto;
}

/* ── Sticky service bar ── */
.svc-nav {
  position: sticky;
  top: 70px;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.svc-nav__list {
  display: flex;
  /* "safe": when the eight links overflow, start at the left edge
     instead of cutting off the first ones */
  justify-content: safe center;
  gap: var(--s-2);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px var(--pad-x);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.svc-nav__list::-webkit-scrollbar {
  display: none;
}
.svc-nav__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  transition:
    background-color var(--dur-micro) var(--ease-out),
    color var(--dur-micro) var(--ease-out);
}
.svc-nav__list .icon {
  width: 20px;
  height: 20px;
  color: var(--brand-navy);
}
.svc-nav__list a:hover {
  background: var(--bg-cool);
}
.svc-nav__list a.is-active {
  background: var(--navy);
  color: var(--white);
  --icon-dot: var(--amber);
}
.svc-nav__list a.is-active .icon {
  color: var(--white);
}
.svc-nav__list a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ── Service room: text + exhibit stage, sides alternate ── */
.svc__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: var(--s-8);
  align-items: center;
}
.svc--flip .svc__grid {
  grid-template-columns: 5fr 6fr;
}
.svc--flip .svc__text {
  order: 2;
}
.room--dark .svc__for {
  color: var(--slate-light);
}
.room--dark .svc__for span {
  color: var(--orange);
}
.svc__inc {
  margin: var(--s-6) 0 var(--s-3);
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.room--dark .svc__inc {
  color: var(--slate-light);
}
/* "What's included" (client, 2026-10-31): the points line up in two
   even columns instead of a ragged wrap; one column on small phones */
.svc .chips {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.svc .chip {
  display: flex;
}
@media (max-width: 479px) {
  .svc .chips {
    grid-template-columns: 1fr;
  }
}
.svc__outcome {
  margin-top: var(--s-6);
  padding-left: var(--s-4);
  border-left: 3px solid var(--orange);
  font-family: var(--f-display);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  max-width: 40ch;
}
.room--dark .svc__outcome {
  color: var(--white);
}

/* Website room: the client's vertical reel. It must not make the room
   taller than the other service rooms, so it takes no space of its own:
   beside the text it fills the text's height; stacked (tablet/phone) a
   spacer keeps the old illustration's box and the reel fits inside. */
.svc-reel {
  align-self: stretch;
}
.svc-reel__video {
  position: absolute;
  top: var(--s-5);
  left: 50%;
  width: auto;
  height: calc(100% - 2 * var(--s-5) - 28px);
  max-width: none;
  aspect-ratio: 9 / 16;
  transform: translateX(-50%);
  border: var(--s-2) solid var(--white);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.svc-reel__space {
  display: none;
}
/* Logo room (client, 2026-11-02): a transparent clip, so the card keeps
   the navy behind it. Same 9:16 card as every other reel (client asked);
   the landscape clip (720×580) sits whole across the middle. */
.svc-reel__video--alpha {
  background: linear-gradient(160deg, var(--navy-mid), var(--navy));
  object-fit: contain;
}
/* Logo and Mascot rooms: the same frame as a reel, waiting for the
   client's video (2026-10-31) */
.svc-reel__soon {
  position: absolute;
  top: var(--s-5);
  left: 50%;
  height: calc(100% - 2 * var(--s-5) - 28px);
  aspect-ratio: 9 / 16;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  border: var(--s-2) solid var(--white);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--navy-mid), var(--navy));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.svc-reel__soon .svc-reel__soon-icon {
  width: 96px;
  height: 96px;
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--orange);
}
.svc-reel__soon-img {
  width: auto;
  max-width: 80%;
  height: 72%;
  object-fit: contain;
}
.svc-reel__soon-note {
  font-family: var(--f-display);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 1023px) {
  .svc-reel__space {
    display: block;
    box-sizing: content-box;
    width: calc(100% - 2 * var(--s-4));
    padding: var(--s-4);
    aspect-ratio: 480 / 330;
  }
}
@media (max-width: 639px) {
  .svc-reel__video,
  .svc-reel__soon {
    top: 0;
    height: calc(100% - 28px);
  }
  .svc-reel__space {
    width: calc(100% - 2 * var(--s-2));
    padding: var(--s-2);
  }
}

/* The exhibit stand: a white stage on a plinth, the same on any room */
.svc-stage {
  margin: 0;
  padding: var(--s-5) var(--s-5) calc(var(--s-5) + 28px);
}
.svc-stage svg {
  width: 100%;
  height: auto;
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: visible;
}
.room--dark .svc-stage svg {
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
}

/* ── Languages room ── */
.svc__text--wide .lead {
  max-width: 52ch;
}

/* ================================================================
   EXHIBIT MOTION — one moment per stand (spec: M4-style, ≤ 2.4s).
   Final state by default; start state only under html.js-motion.
================================================================ */
.svc-video__progress,
.svc-li__bar {
  transform-box: fill-box;
}

/* Video: the playhead runs to 1:30 */
.js-motion [data-motion="svc-video"]:not(.is-in) .svc-video__progress {
  transform: scaleX(0);
}
.js-motion [data-motion="svc-video"]:not(.is-in) .svc-video__head {
  transform: translateX(-211px);
}
.js-motion [data-motion="svc-video"] .svc-video__progress,
.js-motion [data-motion="svc-video"] .svc-video__head {
  transition: transform 1.6s cubic-bezier(0.45, 0, 0.25, 1) 0.3s;
}

/* Website: cursor moves to the button, the button presses, the enquiry arrives */
.js-motion [data-motion="svc-web"]:not(.is-in) .svc-web__cursor {
  transform: translate(190px, 70px);
  opacity: 0;
}
.js-motion [data-motion="svc-web"]:not(.is-in) .svc-web__toast {
  transform: translateY(14px) scale(0.96);
  opacity: 0;
}
.js-motion [data-motion="svc-web"] .svc-web__cursor {
  transition:
    transform 900ms cubic-bezier(0.45, 0, 0.25, 1) 0.2s,
    opacity 200ms ease-out 0.2s;
}
.js-motion [data-motion="svc-web"].is-in .svc-web__btn {
  animation: svc-press 240ms ease-out 1.15s;
  transform-box: fill-box;
  transform-origin: center;
}
.js-motion [data-motion="svc-web"] .svc-web__toast {
  transition:
    transform 350ms cubic-bezier(0.3, 1.4, 0.5, 1) 1.45s,
    opacity 250ms ease-out 1.45s;
}
@keyframes svc-press {
  50% {
    transform: scale(0.94);
  }
}

/* AI tools: the four steps light up in order */
.js-motion [data-motion="svc-ai"]:not(.is-in) .svc-ai__node {
  opacity: 0;
  transform: scale(0.7);
}
.js-motion [data-motion="svc-ai"] .svc-ai__node {
  transition:
    opacity 250ms var(--ease-out),
    transform 350ms cubic-bezier(0.3, 1.4, 0.5, 1);
  transition-delay: calc(200ms + var(--i, 0) * 260ms);
}

/* LinkedIn: bars grow, the trend line draws */
.js-motion [data-motion="svc-li"]:not(.is-in) .svc-li__bar {
  transform: scaleY(0.05);
}
.js-motion [data-motion="svc-li"] .svc-li__bar {
  transition: transform 500ms var(--ease-out);
  transition-delay: calc(150ms + var(--i, 0) * 110ms);
}
.js-motion [data-motion="svc-li"] .svc-li__line {
  stroke-dasharray: var(--len, 260);
  transition: stroke-dashoffset 1s cubic-bezier(0.45, 0, 0.25, 1) 0.9s;
}
.js-motion [data-motion="svc-li"]:not(.is-in) .svc-li__line {
  stroke-dashoffset: var(--len, 260);
}
.js-motion [data-motion="svc-li"] .svc-li__peak {
  transition: opacity 250ms ease-out 1.85s;
}
.js-motion [data-motion="svc-li"]:not(.is-in) .svc-li__peak {
  opacity: 0;
}
.js-motion [data-motion="svc-social"]:not(.is-in) .svc-soc__tile {
  opacity: 0;
  transform: scale(0.6);
}
.js-motion [data-motion="svc-social"] .svc-soc__tile {
  transition:
    opacity 250ms var(--ease-out),
    transform 350ms cubic-bezier(0.3, 1.4, 0.5, 1);
  transition-delay: calc(200ms + var(--i, 0) * 90ms);
}

/* Lead gen: many dots enter, most drop out, one lands as a conversation */
.js-motion [data-motion="svc-funnel"].is-in .svc-funnel__dot {
  animation: svc-drop 900ms cubic-bezier(0.45, 0, 0.6, 1) both;
  animation-delay: calc(200ms + var(--i, 0) * 120ms);
}
@keyframes svc-drop {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(var(--drop, 80px));
  }
}
.js-motion [data-motion="svc-funnel"]:not(.is-in) .svc-funnel__win {
  transform: translateY(-260px);
  opacity: 0;
}
.js-motion [data-motion="svc-funnel"] .svc-funnel__win {
  transition:
    transform 1s cubic-bezier(0.45, 0, 0.25, 1) 1.1s,
    opacity 200ms ease-out 1.1s;
}
.js-motion [data-motion="svc-funnel"]:not(.is-in) .svc-funnel__pill {
  opacity: 0;
}
.js-motion [data-motion="svc-funnel"] .svc-funnel__pill {
  transition: opacity 300ms ease-out 2s;
}

/* ─────────────────────────────────────────────
       RESPONSIVE
    ───────────────────────────────────────────── */
@media (max-width: 1023px) {
  .svc__grid,
  .svc--flip .svc__grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .svc--flip .svc__text {
    order: 0;
  }
  .svc-stage {
    max-width: 560px;
    width: 100%;
    justify-self: center;
  }
  .langs {
    grid-template-columns: 1fr 1fr;
  }
  .langs__group--india {
    grid-column: 1 / -1;
  }
  .svc__langfoot {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
}
@media (max-width: 639px) {
  html {
    scroll-padding-top: 128px;
  }
  .svc-hero .wrap {
    grid-template-columns: 1fr;
  }
  .svc-hero .wrap > div {
    padding-bottom: 0;
  }
  .svc-hero__mascot {
    justify-self: center;
    width: 150px;
  }
  .svc-nav__list {
    justify-content: flex-start;
  }
  .svc-stage {
    padding: 0 0 28px;
  }
  .svc-stage svg {
    padding: var(--s-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-nav__list a {
    transition: none;
  }
}
