/* ==========================================================================
   Antos Pinnacles — motion styles. Layout for the template
   sections ported to the homepage, plus the CSS-driven template interactions
   (navbar panel, hovers). Scroll/scrub behaviour lives in assets/js/motion.js.
   Template eases: power2.inOut = cubic-bezier(.45,0,.55,1), power1.inOut = cubic-bezier(.37,0,.63,1).
   ========================================================================== */

:root {
  --ease-2io: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-1io: cubic-bezier(0.37, 0, 0.63, 1);
  --ease-3io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Header hidden while scrolling down (motion.js moves the logo/nav) ---------- */
.site-header.is-hidden { background: transparent !important; border-bottom-color: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; pointer-events: none; }

/* ---------- Button label roll (template .text-button relative / absolute) ---------- */
.btn__roll { position: relative; display: inline-grid; overflow: hidden; }
.btn__roll > .btn__text { grid-area: 1 / 1; display: block; }

/* ---------- Card image hover zoom (template card-work: 1.3, 0.75s) ---------- */
.card__media img, .work-card__image img { transition: transform 0.75s var(--ease-2io); }
.card--hover:hover .card__media img, .work-card:hover .work-card__image img { transform: scale(1.3); }

/* ---------- FAQ (template .faq: answer height 0.75s, plus rotates 45deg and inverts) ---------- */
.accordion__panel { transition: grid-template-rows 0.75s var(--ease-2io); }
.accordion__icon { transition: background-color 0.75s var(--ease-2io), color 0.75s var(--ease-2io), transform 0.75s var(--ease-2io); }
.accordion__icon::after, .accordion__item.is-open .accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); }

/* ---------- Template navbar: "Featured" side tab + panel (all pages, >= 1200px) ---------- */
.side-nav {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 101;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  justify-content: flex-start;
  width: 4vw;
  min-width: 56px;
  height: 46vh;
  padding: 1.9vw 0 1.4rem;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--surface);
  color: var(--heading);
  transform: translateY(-50%);
  transition: transform 0.75s var(--ease-2io);
}
.side-nav__icon { display: grid; place-items: center; width: max(28px, 2vw); height: max(28px, 2vw); border: 1px solid var(--border-strong); border-radius: 50%; font-family: var(--font-mono); font-size: 1rem; line-height: 1; color: inherit; background: none; transition: transform 0.75s var(--ease-2io); }
.side-nav__label { position: relative; z-index: 1; margin-top: auto; margin-bottom: auto; writing-mode: vertical-rl; font-family: var(--font-mono); font-size: max(0.72rem, 0.95vw); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); transition: color 0.3s ease; }
.side-nav__bg { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--heading); opacity: 0; transition: opacity 0.5s var(--ease-2io), height 0.5s var(--ease-2io); }
.side-nav:hover .side-nav__bg { opacity: 0.2; height: 100%; }
.side-nav:hover .side-nav__label { color: var(--heading); }
body.featured-open .side-nav { transform: translate(5%, -50%); }
body.featured-open .side-nav__icon, body.featured-open .featured__close { transform: rotate(45deg); }

.featured-backdrop { position: fixed; inset: 0; z-index: 102; background: var(--overlay); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity 0.75s var(--ease-2io); }
body.featured-open .featured-backdrop { opacity: 1; pointer-events: auto; }
.featured {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 103;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  background: var(--bg);
  transform: translateX(105%);
  transition: transform 0.75s var(--ease-2io);
}
body.featured-open .featured { transform: none; }
.featured__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.featured__close { width: 40px; height: 40px; font-size: 1.3rem; cursor: pointer; }
.featured__body { display: flex; flex: 1; flex-direction: column; padding-top: 2rem; }
.featured__desc { margin: 0 0 1.5rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-subtle); }
.featured__list { margin: 0; padding: 0; list-style: none; }
.featured__link { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; overflow: hidden; border-bottom: 1px solid var(--border); font-family: var(--font-heading); font-size: 1.6rem; color: var(--heading); }
.featured__link svg { width: 16px; height: 16px; color: var(--accent); transition: transform 0.4s var(--ease-3io); }
.featured__link:hover svg { transform: translateX(4px); }
.featured__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: auto; padding-top: 2rem; }
.featured__foot .text-link { width: 100%; }
@media (min-width: 1200px) { .side-nav { display: flex; } }
@media (max-width: 1199px) { .featured, .featured-backdrop { display: none; } }

/* List-link hover sweep (template card-career-category: bg width 0 -> 100%, 0.4s power3.inOut) */
.featured__link::before, .mega__link::before, .toc a::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 0;
  background: var(--surface-2);
  transition: width 0.4s var(--ease-3io);
}
.featured__link:hover::before, .mega__link:hover::before, .toc a:hover::before { width: 100%; }
.mega__link, .toc a { position: relative; isolation: isolate; }

/* ---------- Mobile drawer: panel slides in from the right over a blurred backdrop ---------- */
.drawer { inset: 0 0 0 auto; width: min(440px, 100%); padding-top: calc(var(--header-h) + 1.5rem); border-left: 1px solid var(--border); opacity: 1; transform: translateX(105%); transition: transform 0.75s var(--ease-2io); }
.drawer.is-open { transform: none; }
.drawer__langs { margin: 1.75rem 0 0; padding: 0; list-style: none; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 98; background: var(--overlay); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 0.75s var(--ease-2io); }
body.menu-open:not(.featured-open) .drawer-backdrop { opacity: 1; pointer-events: auto; }
@media (min-width: 1200px) { .drawer-backdrop { display: none; } }
.menu-toggle .menu-toggle__bars { position: relative; width: 16px; height: 16px; transition: transform 0.75s var(--ease-2io); }
.menu-toggle .menu-toggle__bars > span { position: absolute; left: 0; top: 50%; width: 16px; height: 1.5px; transform: translateY(-50%); }
.menu-toggle .menu-toggle__bars > span:last-child { transform: translateY(-50%) rotate(90deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: rotate(45deg); }

/* ---------- Hero (template .hero) — positions measured from the template at 1920x910 ---------- */
.hero__phone {
  position: absolute;
  left: 50%;
  top: 14vh;
  z-index: 0;
  width: 19vw;
  aspect-ratio: 9 / 19.5;
  border: 0.55vw solid #121212;
  border-radius: 3.3vw;
  background: linear-gradient(180deg, #030303, #0b0b0b);
  box-shadow: 0 0 0 1px #2a2a2a, 0 40px 140px -30px var(--glow-1);
  transform: translateX(-50%);
}
.hero__phone-notch { position: absolute; top: 0.9vw; left: 50%; width: 31%; height: 1.7vw; border-radius: 1vw; background: #000; transform: translateX(-50%); }
/* The screen card is the template's card-content-hero: 19vw x 12vw, 3vw below the phone top */
.hero__phone-card { position: absolute; top: 2.4vw; left: 50%; display: grid; place-items: center; width: 19vw; height: 12vw; overflow: hidden; border-radius: 1.1vw; transform: translateX(-50%); background: var(--surface-3); }
.hero__phone-glow { position: absolute; inset: 0; background: linear-gradient(140deg, #ffc35a, var(--brand-orange) 45%, #3b82f6); }
.hero__phone-card img { position: relative; z-index: 1; width: 4vw; height: auto; border-radius: 50%; }
.hero__phone, .hero__phone-notch { transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
/* Light theme: a light device, so the navy headline that crosses the screen stays readable */
:root[data-theme="light"] .hero__phone {
  border-color: #dfe3ea;
  background: linear-gradient(180deg, #ffffff, #f3f5f9);
  box-shadow: 0 0 0 1px #c9cfd9, 0 30px 80px -30px rgb(16 27 48 / 0.25), 0 40px 140px -30px var(--glow-1);
}
:root[data-theme="light"] .hero__phone-notch { background: #1d2639; }

/* Left emblem: two overlapping rings on a horizontal line (template .wrapper-circle-hero) */
.hero__circle-wrap { position: absolute; top: 48%; left: 2.25vw; z-index: 1; display: flex; align-items: center; width: 6vw; height: 2.3vw; transform: translateY(-50%); }
.hero__circle-line { position: absolute; left: 0; width: 3.4vw; top: 50%; height: 1px; background: color-mix(in srgb, var(--heading) 55%, transparent); }
.hero__circle { position: absolute; left: 2.5vw; top: 0; width: 3.5vw; height: 2.3vw; }
.hero__ring { position: absolute; top: 0; width: 2.3vw; height: 2.3vw; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--heading) 70%, transparent); }
.hero__ring--a { left: 0; }
.hero__ring--b { left: 1.2vw; }

.hero__scroll-arrow { display: inline-block; margin-right: 1.4vw; font-size: 1rem; animation: none; }
.line-spacer { position: relative; display: inline-block; width: 1px; overflow: hidden; background: var(--border-strong); }
.line-spacer > span { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--accent), transparent); }
.line-spacer--track { position: absolute; left: 50%; bottom: 0; height: 14vh; transform: translateX(-50%); }

@media (min-width: 992px) {
  .hero { display: block; min-height: 100vh; height: 100vh; padding: 0; }
  /* Title block starts at 50vh like the template title; eyebrow sits just above it */
  .hero .hero__content { position: absolute; top: 50vh; left: 0; right: 0; z-index: 2; display: block; max-width: none; padding: 0; gap: 0; }
  /* Template title block is ~43.5vw wide, so the 5vw title wraps onto two lines */
  .hero .hero__slides { position: relative; max-width: 46vw; margin: 0 auto; align-items: end; }
  .hero .hero__slide { display: flex; flex-direction: column; justify-content: flex-end; }
  .hero .hero__slide .eyebrow { position: absolute; left: 0; right: 0; bottom: 100%; margin: 0 0 0.6vw; }
  .hero .hero__title { order: 0; margin: 0; font-size: 5vw; line-height: 1.04; letter-spacing: -0.02em; }
  .hero .hero__sub { margin: 0.5vw 0 0; font-size: 1vw; }
  .hero .btn-row { margin-top: 1vw; }
  .hero .hero__controls { justify-content: center; margin-top: 1.2vw; }
  /* Top-right copy (template: 135px from the top, 6vw from the right, centred text) */
  .hero .hero__aside { display: block; top: 14.8vh; right: 6vw; width: 17.5vw; max-width: none; font-size: 0.9vw; line-height: 1.55; text-align: center; }
  /* "Talk with Alex" card: 21.7vw wide, 2.25vw from the left, 3.8vh from the bottom */
  .hero .hero__card--cta { left: 2.25vw; bottom: 3.8vh; width: 21.7vw; gap: 1vw; padding: 0.5vw; border-radius: 1vw; }
  .hero__card-tile { display: grid; place-items: center; flex-shrink: 0; width: 6.9vw; height: 6.9vw; overflow: hidden; border-radius: 0.7vw; background: radial-gradient(120% 120% at 30% 20%, #ffc35a 0%, var(--brand-orange) 35%, #1b2a4a 75%); }
  .hero__card-tile img { width: 55%; height: auto; border-radius: 50%; }
  .hero .hero__card--cta .hero__card-title { font-size: 1.15vw; }
  .hero .hero__card--cta .hero__card-meta { margin: 0.5vw 0 1vw; font-size: 0.72vw; }
  .hero .hero__scroll { right: 3.2vw; bottom: 4.6vh; font-size: 0.75vw; }
}
@media (max-width: 991px) {
  .hero__circle-wrap { display: none; }
  .hero__phone { top: calc(var(--header-h) + 1.5rem); width: 190px; border-width: 5px; border-radius: 2rem; }
  .hero__phone-card { top: 26px; width: 190px; height: 120px; border-radius: 0.9rem; }
  .hero__phone-card img { width: 40px; }
  .hero__phone-notch { top: 8px; height: 14px; }
  .hero .hero__content { position: relative; z-index: 2; padding-top: 15rem; }
  .hero__card-tile { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 12px; background: radial-gradient(120% 120% at 30% 20%, #ffc35a 0%, var(--brand-orange) 35%, #1b2a4a 75%); }
  .hero__card-tile img { width: 55%; height: auto; border-radius: 50%; }
}
@media (max-width: 767px) {
  /* Phone: show only the top of the device (card + fade) so the headline sits cleanly below it, never across it */
  .hero__phone { width: 160px; aspect-ratio: auto; height: 190px; border-bottom: 0; border-radius: 2rem 2rem 0 0; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); box-shadow: none; }
  .hero__phone-card { width: 150px; height: 95px; top: 20px; }
  .hero .hero__content { padding-top: 11rem; }
}

/* Morphing card (motion.js): rides from the phone screen into the about-track line, fixed to the viewport */
.morph-card { position: fixed; left: 0; top: 0; z-index: 3; display: grid; place-items: center; overflow: hidden; border-radius: 1.1vw; background: var(--surface-3); border: 1px solid var(--border-strong); pointer-events: none; will-change: transform, width, height; }
.morph-card .track-about__card-glow { position: absolute; inset: 0; }
.morph-card img { position: absolute; width: 4vw; height: auto; border-radius: 50%; }
.morph-card img + img { opacity: 0; filter: grayscale(1) brightness(2.2); }
.has-morph .hero__phone-card, .has-morph .track-about__card { visibility: hidden; }

/* ---------- About track (template track-about) ---------- */
.track-about { position: relative; height: 220vh; }
.track-about__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.track-about__rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--heading) 32%, transparent); }
.orbit--1 { width: min(82vw, 1180px); aspect-ratio: 1; border-bottom-color: transparent; border-left-color: transparent; }
.orbit--2 { width: min(62vw, 880px); aspect-ratio: 1; border-top-color: transparent; }
.orbit--3 { width: min(44vw, 620px); aspect-ratio: 1; border-right-color: transparent; border-bottom-color: transparent; }
.track-about__glow { position: absolute; width: 40vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--glow-1), transparent 65%); filter: blur(40px); opacity: 0.45; }
.track-about__title { position: relative; z-index: 2; display: grid; justify-items: center; gap: 0.2em; padding-inline: var(--gutter); font-family: var(--font-heading); font-size: clamp(2rem, 0.9rem + 3.6vw, 4.8rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; color: var(--heading); text-align: center; }
.track-about__line { margin: 0; }
.track-about__row { display: flex; align-items: center; justify-content: center; gap: 1.4vw; }
.track-about__card { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 7.5vw; height: 4.6vw; min-width: 84px; min-height: 52px; overflow: hidden; border-radius: 1.2vw; border: 1px solid var(--border-strong); background: var(--surface-3); transform: rotate(96deg); }
.track-about__card-glow { position: absolute; inset: 0; background: linear-gradient(140deg, #ffc35a, var(--brand-orange) 45%, #3b82f6); }
.track-about__icon { position: relative; grid-area: 1 / 1; width: 2.2vw; min-width: 30px; height: auto; border-radius: 50%; transform: rotate(-96deg); }
.track-about__icon--alt { opacity: 0; filter: grayscale(1) brightness(2.2); }

.widget { position: absolute; z-index: 3; min-width: 170px; padding: 0.9rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.widget__label { margin: 0 0 0.35rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.widget__value { margin: 0; font-family: var(--font-heading); font-size: 1.7rem; font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; color: var(--heading); }
.widget__value small { font-size: 0.5em; color: var(--text-muted); letter-spacing: 0; }
.widget__meta { margin: 0.3rem 0 0; font-size: 0.78rem; color: var(--text-muted); }
.widget__bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: 0.6rem; }
.widget__bars span { width: 8px; height: calc(var(--h) * 100%); border-radius: 2px; background: var(--accent); opacity: 0.85; }
.widget__line { width: 120px; height: 40px; margin-top: 0.4rem; color: var(--accent); }
.widget__list { display: grid; gap: 0.45rem; margin: 0.5rem 0 0; padding: 0; list-style: none; font-size: 0.85rem; color: var(--heading); }
.widget__list li { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.6rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.widget__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 8px var(--positive); }
.widget--uptime { display: flex; align-items: center; gap: 0.9rem; }
.widget__ring { width: 44px; height: 44px; color: var(--accent); }
.widget--spread { top: 12%; left: 4%; }
.widget--leverage { top: 22%; left: 17%; }
.widget--withdraw { top: 12%; right: 5%; }
.widget--platforms { bottom: 12%; left: 5%; }
.widget--uptime { bottom: 16%; right: 9%; }
/* Tablet & phone: the floating widgets become an even dashboard grid under the heading
   (stretched to the column, equal heights per row) instead of shrink-wrapped cards of random widths */
@media (max-width: 991px) {
  .track-about { height: auto; padding-block: var(--section-y); }
  .track-about__sticky { position: relative; height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; place-items: stretch; max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); overflow: visible; }
  .track-about__title { grid-column: 1 / -1; justify-self: center; width: 100%; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); padding: 0; }
  .track-about__rings { overflow: hidden; }
  .widget { position: relative; inset: auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
  /* Five widgets in two columns: the uptime strip closes the grid at full width */
  .widget--uptime { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
  .widget__line { width: 100%; max-width: 160px; }
  .line-spacer--track { display: none; }
}
@media (max-width: 767px) {
  .widget__label { font-size: var(--fs-label); }
  /* Heading: balanced breaks, breathing room at the edges, and the two short phrases
     anchored to the logo card ("Raw Spreads" right-aligned, "Fast Execution" left-aligned) */
  .track-about__title { font-size: clamp(1.7rem, 1rem + 3.4vw, 2.6rem); line-height: 1.12; gap: 0.35em; }
  .track-about__line--1 { max-width: 15ch; margin-inline: auto; text-wrap: balance; }
  /* Equal side columns keep the card centred, but never narrower than the longest word
     (Malay "Pelaksanaan" would otherwise spill out of its column) */
  .track-about__row { display: grid; grid-template-columns: minmax(min-content, 1fr) auto minmax(min-content, 1fr); align-items: center; gap: clamp(0.6rem, 0.3rem + 1.5vw, 1rem); width: 100%; }
  .track-about__line--2a { text-align: right; }
  .track-about__line--2b { text-align: left; }
  .track-about__card { width: clamp(64px, 18vw, 96px); height: auto; aspect-ratio: 84 / 52; min-width: 0; min-height: 0; border-radius: 12px; }
  .widget { padding: 0.95rem 1rem; }
  .widget__value { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); }
  .widget__value small { font-size: var(--fs-label); }
  .widget__meta { font-size: 0.8rem; line-height: 1.4; }
}
@media (max-width: 479px) {
  .track-about__sticky { gap: 0.75rem; }
  .instruments__intro { flex-direction: column; gap: 0.75rem; }
  .circles-service { width: 56px; height: 56px; }
}
@media (max-width: 374px) {
  .track-about__title { font-size: 1.45rem; }
  .track-about__card { width: 54px; }
}
/* Very narrow phones: two widget columns would be ~135px; stack them */
@media (max-width: 359px) {
  .track-about__sticky { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Logos strip (template "powered by") ---------- */
.powered { padding: 2.2rem 0 2.4rem; border-bottom: 1px solid var(--border); overflow: hidden; }
.powered__head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; }
.powered__label { margin: 0; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.powered__label span { margin-inline: 0.4em; opacity: 0.4; }
.powered__count { display: flex; align-items: center; gap: 0.7rem; }
.powered__number { font-family: var(--font-heading); font-size: 1.4rem; color: var(--heading); }
.square-grid { display: grid; grid-template-columns: repeat(3, 6px); gap: 2px; }
.square-grid span { width: 6px; height: 6px; background: var(--text-muted); }
.square-grid .v2 { background: var(--accent); }
.barcode { display: flex; gap: 3px; height: 22px; }
.barcode span { width: 2px; background: var(--text-muted); }
.powered__year { display: flex; align-items: baseline; gap: 0.5rem; margin: 0; }
.powered__value { font-family: var(--font-heading); font-size: 1.1rem; color: var(--heading); }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; flex-shrink: 0; align-items: center; gap: 1rem; padding-right: 1rem; animation: marquee 30s linear infinite; }
.marquee.is-gsap .marquee__track { animation: none; }
.marquee__card { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); white-space: nowrap; font-family: var(--font-heading); font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem); color: var(--text-muted); }
.marquee__card img { width: 28px; height: 28px; border-radius: 50%; opacity: 0.85; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (max-width: 767px) {
  .powered__head { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Work slider (template "Join The Team") ---------- */
.work__slider { overflow: hidden; }
.work__track { display: flex; gap: clamp(1rem, 0.7rem + 1vw, 1.5rem); padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); transition: transform 0.5s ease; touch-action: pan-y; }
.work-card { flex: 0 0 clamp(270px, 30vw, 440px); display: flex; flex-direction: column; gap: 1rem; color: var(--heading); user-select: none; }
.work-card__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: linear-gradient(160deg, #e9ecf2, #cfd5df); }
.work-card__image { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; }
.work-card__image img { max-height: 100%; width: auto; object-fit: contain; pointer-events: none; }
.work-card__tags { position: absolute; top: 1rem; left: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag--dark { border-color: transparent; background: rgb(0 0 0 / 0.8); color: #fff; }
.tag--light { border-color: transparent; background: #fff; color: #111; }
.work-card__title { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.work__nav { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }

/* ---------- Platform rings ---------- */
.ring--1 { animation: spin 35s linear infinite; }
.ring--2 { border-top-color: transparent; border-right-color: color-mix(in srgb, var(--accent) 45%, transparent); animation: spin 45s linear infinite reverse; }
.ring--3 { border-left-color: transparent; animation: spin 25s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Service track (template track-service) ---------- */
.instruments.track-service { padding-bottom: 0; }
.instruments__intro { display: flex; align-items: flex-start; gap: 1.5rem; }
.circles-service { position: relative; flex-shrink: 0; width: 72px; height: 72px; margin-top: 0.3rem; }
.circles-service span { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1px solid var(--border-strong); mix-blend-mode: screen; }
.circles-service .c1, .circles-service .c4 { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.circles-service .c2, .circles-service .c3 { background: color-mix(in srgb, #3b82f6 40%, transparent); }
:root[data-theme="light"] .circles-service span { mix-blend-mode: multiply; }
.service-card__clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.service-card__media--photo { padding: 0; }
.service-card__media--photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.ripple, .service-track__tag { display: none; }
@media (min-width: 992px) {
  /* Cards fly in from scattered positions beyond the right edge; clip sideways only (clip, unlike
     hidden, makes no scroll container, so the sticky stage and the vertical fly-in keep working) */
  .service-track { position: relative; height: calc(var(--cards, 3) * 100vh); overflow-x: clip; }
  .service-track__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
  .service-track__sticky.is-clipped { overflow: hidden; }
  .service-track__viewport { height: 74vh; }
  .service-track__cards { display: flex; flex-direction: column; height: calc(var(--cards, 3) * 100%); will-change: transform; }
  .service-track__cards .service-card { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; margin-inline: auto; }
  .service-track__cards .service-card__body { flex: 1; min-height: 0; }
  .service-track__cards .service-card__media { min-height: 0; }
  .service-track__cards .service-card__media img { max-height: 100%; }
  .ripple { position: absolute; left: var(--gutter); top: 16vh; bottom: 16vh; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 18px; }
  .ripple-bar { display: block; flex-shrink: 0; width: 18px; height: 2px; background: var(--text-muted); }
  .service-track__tag { position: absolute; left: 50%; bottom: 4vh; z-index: 3; display: inline-flex; transform: translateX(-50%); }
  /* .btn:hover sets its own transform (translateY), which dropped the centring and slid the button out from
     under the cursor, so hover flickered on and off. Keep the centring and add the same 2px lift. */
  .service-track__tag:hover { transform: translateX(-50%) translateY(-2px); }
  .service-track__tag-window { display: block; height: 1.2em; overflow: hidden; }
  .service-track__tag-list { display: flex; flex-direction: column; }
  .service-track__tag-list span { display: block; height: 1.2em; line-height: 1.2em; }
}
@media (max-width: 991px) {
  .service-track { padding: 0 0 var(--section-y); }
  .service-track__cards { display: grid; gap: 3rem; }
}

/* ---------- Achievement (template .achievement) ---------- */
.achievement__head { margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 4rem); }
.achievement__title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.achievement__title-row h2 { margin: 0; max-width: 620px; }
.achievement__portraits { display: flex; }
.achievement__portraits img { width: 64px; height: 64px; margin-left: -14px; border: 3px solid var(--bg); border-radius: 50%; object-fit: cover; }
.achievement__portraits img:first-child { margin-left: 0; }
.achievement__meta { margin: 0; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.achievement__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.7rem + 1vw, 1.5rem); }
.achievement-card { min-height: 230px; justify-content: space-between; gap: 1rem; }
.achievement-card--intro { justify-content: flex-end; gap: 0.9rem; }
.achievement-card--intro .btn { align-self: flex-start; }
.achievement-card__avatars { display: flex; }
.achievement-card__avatars img { width: 40px; height: 40px; margin-left: -10px; border: 2px solid var(--surface); border-radius: 50%; object-fit: cover; }
.achievement-card__avatars img:first-child { margin-left: 0; }
.achievement-card__title { margin: 0; font-size: 0.95rem; font-weight: 500; color: var(--heading); }
.achievement-card__bars { display: flex; gap: 4px; height: 34px; }
.achievement-card__bars span { flex: 1; border-radius: 2px; background: var(--surface-3); }
.achievement-card__number { display: flex; align-items: flex-start; margin: 0; font-family: var(--font-heading); font-size: clamp(3rem, 2rem + 3vw, 5.2rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--heading); }
.odometer__win { display: inline-block; height: 1em; overflow: hidden; }
.odometer__col { display: flex; flex-direction: column; }
.odometer__col span { display: block; height: 1em; line-height: 1; }
.odometer__suffix { margin-left: 0.08em; font-size: 0.42em; line-height: 1.3; color: var(--accent); }
.achievement-card__label { margin: 0; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.1em; line-height: 1.5; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 991px) { .achievement__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .achievement__grid { grid-template-columns: minmax(0, 1fr); } .achievement-card { min-height: 0; } }

/* ---------- Home pricing / FAQ / blog ---------- */
.home-pricing .plans { margin-top: 0; }
.home-faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.home-faq__title { margin-bottom: 2rem; font-size: var(--fs-hero); line-height: 1; letter-spacing: -0.04em; }
.hero__card.home-faq__card { position: relative; left: auto; bottom: auto; width: fit-content; max-width: 100%; margin: 0 0 1.5rem; }
@media (max-width: 991px) { .home-faq__grid { grid-template-columns: minmax(0, 1fr); } }
.blog-card { gap: 0.9rem; }
.blog-card .card__title { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.blog-card .tag { align-self: flex-start; }

/* Education cards: image grows to fill the card on hover (template card-blog journal) */
.edu-card { overflow: hidden; isolation: isolate; }
.edu-card__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 0.6s var(--ease-2io), transform 0.75s var(--ease-2io); }
.edu-card__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.25), rgb(0 0 0 / 0.85)); }
.edu-card:hover .edu-card__bg { opacity: 1; transform: none; }
.edu-card:hover .card__title, .edu-card:hover .text-link { color: #fff; }
.edu-card:hover .tag { border-color: rgb(255 255 255 / 0.4); color: #fff; }

/* ---------- Sticky pop-up card + expanding buttons (template wrapper-sticky-button-2) ---------- */
.sticky-cta { position: fixed; right: clamp(1rem, 0.5rem + 1vw, 1.75rem); bottom: calc(clamp(1rem, 0.5rem + 1vw, 1.75rem) + 58px); z-index: 89; display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; pointer-events: none; }
.sticky-cta > * { pointer-events: auto; }
.sticky-cta__card { width: 260px; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: opacity 0.2s ease; }
.sticky-cta__card.is-closing { opacity: 0; }
.sticky-cta__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.8rem; }
.sticky-cta__title { margin: 0; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.sticky-cta__close { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); color: var(--heading); transform: rotate(45deg); }
.sticky-cta__close svg { width: 10px; height: 10px; }
.sticky-cta__buttons { display: flex; gap: 0.5rem; }
.sticky-cta__buttons .btn { flex: 1; padding-inline: 0.6rem; }
.sticky-cta__stack { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.sticky-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 0.55rem 0 0.55rem; overflow: hidden; border-radius: var(--radius-pill); background: var(--pill-bg); color: var(--pill-text); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; box-shadow: var(--shadow); }
.sticky-btn__text { display: block; overflow: hidden; padding-left: 0.6rem; }
.sticky-btn__gap { display: block; width: 0.6rem; }
.sticky-btn__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); }
.sticky-btn__icon svg { width: 14px; height: 14px; }
.sticky-btn__icon--reverse svg { transform: rotate(-45deg); }
@media (hover: hover) { .has-motion .sticky-btn__text, .has-motion .sticky-btn__gap { width: 0; padding-left: 0; } }
@media (max-width: 767px) {
  .work-card__tags .tag { font-size: var(--fs-label); }
}
/* Phones and touch tablets have no hover to collapse them: keep icon-only buttons and drop the
   duplicate promo card, so the floating stack doesn't cover the content underneath */
@media (max-width: 767px), (max-width: 1199px) and (hover: none) {
  .sticky-cta__card { display: none; }
  .sticky-btn { padding: 0 0.3rem; height: 40px; }
  .sticky-btn__text, .sticky-btn__gap { display: none; }
}
