/* ==========================================================================
   Trixcooperation — main stylesheet
   Tokens → base → components → sections → motion states
   ========================================================================== */

:root {
  --brand: #2546E8;
  --brand-600: #1E3AD0;
  --brand-50: #EEF1FE;
  --ink: #0B0D12;
  --ink-soft: #2B2F38;
  --ink-muted: #5B6170;
  --mist: #F5F6F8;
  --line: #E6E8EE;
  --lime: #C8F169;
  --sun: #F7C744;
  --white: #FFFFFF;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .07);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 60px rgba(15, 23, 42, .12);
  --glow: 0 0 0 4px rgba(37, 70, 232, .14), 0 10px 30px rgba(37, 70, 232, .35);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
body { font-feature-settings: "ss01", "cv11"; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.section { padding-block: clamp(64px, 9vw, 120px); }

.h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.08; letter-spacing: -.035em; font-weight: 600; text-wrap: balance;
}
.h2--xl { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
.lead { color: var(--ink-muted); font-size: 1rem; line-height: 1.65; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted);
}
.eyebrow--left::before { content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }

.split-head {
  display: grid; gap: 20px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px);
}
@media (min-width: 900px) {
  .split-head { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .split-head .lead { padding-bottom: 6px; }
}

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: .9375rem; letter-spacing: -.01em; white-space: nowrap;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: background-color .2s, color .2s, box-shadow .25s var(--ease-out), border-color .2s, filter .2s;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .875rem; }
.btn__arrow { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
a.btn:hover .btn__arrow[data-lucide="arrow-up-right"], .btn:hover svg.lucide-arrow-up-right { transform: translate(2px, -2px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); }
.btn--glow { box-shadow: var(--glow); }
.btn--glow:hover { box-shadow: 0 0 0 6px rgba(37, 70, 232, .16), 0 14px 36px rgba(37, 70, 232, .42); }
.btn--ghost { background: var(--mist); color: var(--ink); }
.btn--ghost:hover { background: #ECEEF2; }
.btn--outline { background: var(--brand-50); color: var(--ink); border: 1px solid var(--brand-100, #DDE3FD); }
.btn--outline:hover { background: #E3E8FD; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #22252D; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { filter: brightness(1.05); }

/* click ripple */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: rgba(255, 255, 255, .35); transform: scale(0); animation: ripple .6s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; flex-direction: column; justify-content: center;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.logo img { width: 34px; height: 34px; }
.logo__word { font-weight: 800; font-size: 1.125rem; letter-spacing: -.04em; white-space: nowrap; }
/* dotless "ı" topped with a brand-blue diamond, blue "x", lighter "cooperation" */
.logo__i { position: relative; display: inline-block; }
.logo__i::before { content: ""; position: absolute; left: 50%; top: .21em; width: .2em; height: .2em; border-radius: 2px; background: var(--brand); transform: translateX(-50%) rotate(45deg); }
.logo__x { color: var(--brand); }
.logo__co { font-weight: 500; color: var(--ink-muted); }
.logo--light .logo__word { color: #fff; }
.logo--light .logo__i::before, .logo--light .logo__x { color: #8FA2F4; background: #8FA2F4; }
.logo--light .logo__x { background: none; }
.logo--light .logo__co { color: #A9AFBC; }

.nav-pills { display: flex; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: .875rem; font-weight: 500; color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.pill:hover { border-color: #CBD0DA; background: var(--mist); }
.pill.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.nav-drop { position: relative; }
.nav-drop .pill svg { transition: transform .25s var(--ease-out); }
.nav-drop.is-open .pill svg { transform: rotate(180deg); }
.nav-drop__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease-out), visibility .2s;
}
.nav-drop.is-open .nav-drop__menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop__menu a { display: block; padding: 10px 12px; border-radius: 10px; font-size: .9rem; font-weight: 500; }
.nav-drop__menu a:hover, .nav-drop__menu a:focus-visible { background: var(--mist); }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); }
.lang button {
  min-width: 36px; min-height: 36px; padding: 0 8px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; color: var(--ink-muted); cursor: pointer; transition: background-color .2s, color .2s;
}
@media (max-width: 420px) {
  .logo { gap: 8px; } .logo img { width: 30px; height: 30px; } .logo__word { font-size: 1rem; }
  .lang button { min-width: 32px; padding: 0 6px; }
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.mobile-nav {
  position: absolute; top: calc(var(--header-h) - 4px); left: 12px; right: 12px;
  display: grid; gap: 4px; padding: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: 14px 12px; border-radius: 12px; font-weight: 600; }
.mobile-nav a:not(.btn):hover { background: var(--mist); }
.mobile-nav .btn { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + 24px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__copy { isolation: isolate; }
.dot-grid {
  position: absolute; inset: -20px 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(#C9CFDB 1.2px, transparent 1.3px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 45% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 55% at 45% 40%, #000 20%, transparent 75%);
  opacity: .8;
}
.hero__title {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02; letter-spacing: -.045em; font-weight: 600;
}
:lang(lt) .hero__title, :lang(ru) .hero__title { font-size: clamp(2.2rem, 4.3vw, 3.6rem); }
.hero__line { display: block; }
.hero__line--accent { position: relative; display: inline-block; color: var(--brand); padding-bottom: .08em; }
.underline-draw { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .28em; overflow: visible; }
.underline-draw path { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; opacity: .35; stroke-dasharray: 310; stroke-dashoffset: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  margin-top: 28px; padding: 6px 8px 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.badge__icon { width: 26px; height: 26px; padding: 5px; border-radius: 999px; background: var(--brand-50); color: var(--brand); }
.hero__sub { margin-top: 16px; max-width: 30rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; color: var(--ink-soft); }

.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 32px; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--ink-muted); }
.trust-row svg { width: 18px; height: 18px; color: var(--brand); }

.hero__visual { position: relative; }
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #DDE1E8; }
/* subtle scrim so glass cards and overlay text stay readable on any photo */
.media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11,13,18,.18), rgba(11,13,18,0) 35%, rgba(11,13,18,0) 60%, rgba(11,13,18,.32)); }
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media--hero > img { object-position: 50% 55%; }
.media--hero { width: 100%; aspect-ratio: 0.9; max-height: 680px; }
@media (min-width: 640px) and (max-width: 1023px) { .media--hero { aspect-ratio: 1.15; } }
@media (min-width: 1024px) { .media--hero { height: 100%; min-height: 480px; aspect-ratio: auto; } }
.parallax-img { transform: scale(1.12); will-change: transform; }

.glass {
  position: absolute; z-index: 2; padding: 14px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(160deg, rgba(18, 22, 30, .58), rgba(18, 22, 30, .38));
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 20px 50px rgba(20, 30, 20, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.glass--tl { top: 18px; left: 18px; width: min(232px, 58%); }
.glass--br { right: 18px; bottom: 18px; width: min(280px, 66%); }
.glass__label { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; opacity: .95; }
.glass__label svg { width: 16px; height: 16px; color: var(--lime); }
.glass__more { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); }
.glass__more svg { width: 14px; height: 14px; }
.glass__num { margin-top: 6px; font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.glass__meta { font-size: .72rem; opacity: .85; }
.glass__meta b { color: var(--lime); font-weight: 700; }
.spark { width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.spark__grid line { stroke: rgba(255, 255, 255, .14); stroke-dasharray: 3 4; }
.spark__line { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark__dots circle { fill: #fff; }
.spark__days { display: flex; justify-content: space-between; font-size: .6rem; opacity: .7; margin-top: 4px; }

.segbar { display: flex; gap: 3px; height: 22px; margin-top: 10px; }
.segbar i { flex: 1; border-radius: 3px; background: rgba(255, 255, 255, .18); transform-origin: bottom; }
.segbar i.on { background: var(--lime); }
.segbar__legend { display: flex; justify-content: space-between; margin-top: 6px; font-size: .62rem; opacity: .8; }
.segbar__legend span:nth-child(2) { margin-left: auto; margin-right: 10%; }

/* ---------- Marquee ---------- */
.marquee-wrap { padding-block: 8px 24px; }
.marquee__title { font-size: .85rem; font-weight: 600; color: var(--ink-muted); }
.marquee__toggle { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-muted); }
.marquee__toggle svg { width: 16px; height: 16px; }
.marquee {
  margin-top: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: 56px; width: max-content; padding-block: 12px; animation: marquee 38s linear infinite; }
.marquee__track li { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; color: #9AA1AE; white-space: nowrap; }
.marquee__track svg { width: 22px; height: 22px; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.panel { background: var(--mist); border-radius: clamp(0px, 3vw, 32px); }
@media (max-width: 1279px) { #services .panel { border-radius: 0; } }
.svc-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 28px 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 16px;
  background: linear-gradient(150deg, var(--brand-50), #fff); color: var(--brand);
  box-shadow: inset 0 0 0 1px #E1E6FB; transition: transform .45s var(--ease-out);
}
.svc-card__icon svg { width: 26px; height: 26px; }
.svc-card:hover .svc-card__icon { transform: rotate(-8deg) scale(1.08); }
.svc-card h3 { font-weight: 700; font-size: .975rem; letter-spacing: -.015em; }
.svc-card p { font-size: .85rem; line-height: 1.45; color: var(--ink-muted); }

.cat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.cat-chips li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; font-weight: 600;
}
.cat-chips svg { width: 16px; height: 16px; color: var(--brand); }

/* ---------- About / wide media ---------- */
.media--wide { width: 100%; aspect-ratio: 2.1; border-radius: var(--radius-lg); background: #DDE1E8; }
@media (max-width: 760px) { .media--wide { aspect-ratio: auto; height: 420px; } .media--wide > img { object-position: 40% 50%; } }
.overlay-card {
  position: absolute; left: clamp(12px, 3vw, 28px); bottom: clamp(12px, 3vw, 28px); z-index: 2;
  display: flex; gap: 16px; align-items: center; max-width: min(420px, calc(100% - 24px));
  padding: 14px 18px 14px 14px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(160deg, rgba(25, 30, 40, .62), rgba(25, 30, 40, .42));
  border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}
.overlay-card__img { width: 86px; height: 86px; flex: none; border-radius: 12px; object-fit: cover; }
.overlay-card__title { font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; }
.overlay-card__text { font-size: .85rem; opacity: .85; line-height: 1.45; margin-top: 2px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 22px 22px 20px; border-radius: var(--radius); background: var(--mist); display: flex; flex-direction: column-reverse; gap: 4px; }
.fact dd { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact dd span { color: var(--ink); }
.fact dt { font-size: .85rem; font-weight: 500; color: var(--ink-muted); }

/* ---------- How it works ---------- */
.how { background: var(--ink); color: #fff; padding-block: clamp(64px, 9vw, 120px); }
.how .lead { color: #A9AFBC; }
.how .eyebrow { color: #A9AFBC; }
.how__nav { display: grid; gap: 4px; margin-top: 36px; }
.how__nav li {
  display: flex; gap: 16px; align-items: center; padding: 12px 0; font-weight: 600; font-size: 1.05rem;
  color: #7A808D; border-bottom: 1px solid #23262E; transition: color .35s;
}
.how__nav li span:first-child { font-size: .75rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.how__nav li.is-active { color: #fff; }
.how__nav li.is-active span:first-child { color: var(--lime); }
.how__progress { display: none; }
.how:not(.is-pinned) .how__nav { display: none; }

.how__panels { display: grid; gap: 16px; }
.how-panel {
  position: relative; padding: 32px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, #171A22, #101218); border: 1px solid #23262E;
}
.how-panel::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 70, 232, .45), transparent 70%); pointer-events: none;
}
.how-panel__num { position: absolute; right: 28px; top: 20px; font-size: 4.5rem; font-weight: 800; letter-spacing: -.05em; color: #1F232C; line-height: 1; }
.how-panel__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: #fff; box-shadow: var(--glow); }
.how-panel__icon svg { width: 26px; height: 26px; }
.how-panel h3 { position: relative; margin-top: 28px; font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; }
.how-panel p { position: relative; margin-top: 10px; color: #A9AFBC; line-height: 1.6; max-width: 34rem; }

/* pinned mode (enabled by JS on desktop when motion is allowed) */
.how.is-pinned { height: 100vh; padding-block: 0; display: flex; align-items: center; }
.how.is-pinned .how__inner { width: 100%; align-items: center; }
.how.is-pinned .how__panels { position: relative; height: min(440px, 62vh); }
.how.is-pinned .how-panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; }
.how.is-pinned .how-panel__icon { position: absolute; top: 40px; left: 40px; }
.how.is-pinned .how-panel h3 { font-size: 2rem; }
.how.is-pinned .how__progress { display: block; height: 3px; margin-top: 24px; border-radius: 3px; background: #23262E; overflow: hidden; }
.how.is-pinned .how__progress span { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }

/* ---------- Global reach map ---------- */
.map-card { position: relative; padding: clamp(16px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--mist); overflow: hidden; }
.map { width: 100%; height: auto; }
.map__land { fill: none; stroke: #B7C0D2; stroke-width: 5.4; stroke-linecap: round; }
.map__routes path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.map__nodes circle { fill: #fff; stroke: var(--brand); stroke-width: 2.5; }
.map__pulse { fill: rgba(37, 70, 232, .18); transform-origin: 567px 98px; animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.region-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.region-chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; background: #fff; border-radius: 999px; font-size: .825rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.region-chips .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* ---------- Control / challenges ---------- */
.ctl-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 20px; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.ctl-bar__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .875rem; font-weight: 600; }
.ctl-bar__chip svg { width: 18px; height: 18px; color: var(--brand); }
#control { overflow-x: clip; } /* cards start slightly rotated before fanning in */
.ctl-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .ctl-grid { grid-template-columns: repeat(3, 1fr); } }
.ctl-card {
  display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: var(--radius-lg);
  background: var(--mist); border: 1px solid var(--line);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.ctl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ctl-card__head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 0; font-size: .85rem; font-weight: 600; }
.ctl-card__head > span { display: inline-flex; align-items: center; gap: 8px; }
.ctl-card__head svg { width: 18px; height: 18px; }
.ctl-card__body { padding: 16px; background: #fff; border-radius: var(--radius); }
.ctl-card__body h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; }
.ctl-card__body p { margin-top: 8px; font-size: .875rem; line-height: 1.55; color: var(--ink-muted); }
.ctl-card__tags { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-block: 14px 0; font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.ctl-card__body > .ctl-card__tags:first-child { margin-block: 0 14px; }
.ctl-card__img { border-radius: var(--radius); overflow: hidden; background: #DDE1E8; aspect-ratio: 4 / 3; }
.ctl-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.ctl-card:hover .ctl-card__img img { transform: scale(1.05) translateY(-4px); }

/* ---------- Testimonials ---------- */
.testi { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 120px); overflow: hidden; }
.testi__word {
  font-size: clamp(3.4rem, 13vw, 11rem); font-weight: 800; letter-spacing: -.06em; line-height: .8;
  text-align: center; text-transform: uppercase; white-space: nowrap; margin-bottom: -0.32em;
  position: relative; z-index: 0;
}
.testi__rows { position: relative; z-index: 1; display: grid; gap: 16px; }
.testi__row { display: grid; gap: 16px; }
@media (min-width: 900px) { .testi__row { grid-template-columns: repeat(3, 1fr); } }
.t-card { padding: 20px; border-radius: var(--radius-lg); background: rgba(245, 246, 248, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid #fff; box-shadow: var(--shadow-sm); }
.t-card__head { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; font-size: .8rem; font-weight: 700; color: #fff; background: linear-gradient(140deg, hsl(var(--h) 70% 60%), hsl(calc(var(--h) + 30) 65% 45%)); }
.t-card__name { font-weight: 700; font-size: .9rem; }
.t-card__role { font-size: .75rem; color: var(--ink-muted); }
.t-card__logo { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .9rem; letter-spacing: -.03em; color: var(--ink-soft); white-space: nowrap; }
.t-card__logo svg { width: 16px; height: 16px; }
.t-card blockquote { margin-top: 16px; font-size: .9rem; line-height: 1.6; color: var(--ink-soft); }
.testi__fade { position: absolute; inset: auto -2px -2px; height: 55%; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%); pointer-events: none; }
@media (max-width: 899px) { .testi__fade { height: 30%; } }

/* ---------- Footer ---------- */
.footer { background: #000; color: #fff; padding-block: 56px 28px; overflow: hidden; }
.footer__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__pills a {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #3A3D45; font-size: .85rem; font-weight: 500; overflow: hidden; isolation: isolate; transition: color .3s, border-color .3s;
}
.footer__pills a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.footer__pills a:hover { color: #000; border-color: #fff; }
.footer__pills a:hover::before { transform: scaleX(1); }
.footer__tag { max-width: 26rem; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; font-weight: 500; letter-spacing: -.02em; }
.footer__tag span { color: #8A8F9A; }
.phone-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 18px; border-radius: 999px; background: #fff; color: #000; }
.phone-pill__num { font-weight: 600; font-size: .9rem; padding-right: 6px; }
.phone-pill__icon, .phone-pill__call { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; }
.phone-pill__icon svg, .phone-pill__call svg { width: 18px; height: 18px; }
.phone-pill__icon:hover { background: var(--mist); }
.phone-pill__call { background: #000; color: #fff; }
.footer__contacts { margin-top: 40px; }
.footer__contacts-title { font-size: .85rem; font-weight: 600; color: #8A8F9A; margin-bottom: 14px; }
.contact-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius); background: #141518; border: 1px solid #23252B; }
.contact-card__name { font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.contact-card__link { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; font-size: .9rem; color: #E6E8EE; overflow-wrap: anywhere; transition: color .2s; }
.contact-card__link svg { width: 16px; height: 16px; flex: none; color: #8FA2F4; }
.contact-card__link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__word {
  margin-block: clamp(32px, 6vw, 64px) clamp(32px, 5vw, 56px);
  font-size: clamp(2rem, 9.4vw, 8.4rem); font-weight: 800; letter-spacing: -.05em; line-height: .9;
  color: #1A1A1A; white-space: nowrap; text-align: center; user-select: none;
}
.footer__word .char { display: inline-block; }
.footer__cols { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }
.footer__cols h3 { font-size: .85rem; font-weight: 600; color: #8A8F9A; margin-bottom: 14px; }
.footer__cols li { font-size: .875rem; line-height: 1.5; color: #E6E8EE; }
.footer__cols li + li { margin-top: 8px; }
.footer__cols a { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; transition: color .2s; }
.footer__cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.arrow-link svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.arrow-link:hover svg { transform: translateX(3px); }
.footer__bottom { display: flex; gap: 8px; margin-top: 48px; }
.footer__top, .footer__explore { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 12px; background: #141518; border: 1px solid #23252B; font-size: .85rem; font-weight: 500; transition: background-color .2s; }
.footer__top svg, .footer__explore svg { width: 16px; height: 16px; }
.footer__explore { flex: 1; justify-content: space-between; }
.footer__top:hover, .footer__explore:hover { background: #1D1F24; }
.footer__legal { margin-top: 20px; font-size: .75rem; color: #858A95; }

/* ---------- Quote modal ---------- */
.quote { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius-lg); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
.quote::backdrop { background: rgba(11, 13, 18, .55); backdrop-filter: blur(4px); }
.quote[open] { animation: modal-in .45s var(--ease-out); }
.quote[open]::backdrop { animation: fade-in .3s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.quote__panel { position: relative; padding: clamp(24px, 4vw, 36px); }
.quote__close { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--mist); }
.quote__close:hover { background: #ECEEF2; }
.quote__form { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 560px) { .quote__form { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 6px; font-size: .825rem; font-weight: 600; }
.field .opt { font-weight: 500; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid #D5D9E1; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 70, 232, .15); }
.field__err { display: none; margin-top: 6px; font-size: .78rem; font-weight: 600; color: #C62828; }
.field.is-invalid input, .field.is-invalid select { border-color: #C62828; }
.field.is-invalid .field__err { display: block; }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn__label { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
.quote__success { text-align: center; padding: 24px 0 8px; outline: none; }
.quote__check { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: var(--glow); }
.quote__check svg { width: 30px; height: 30px; }

/* ---------- Custom cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 90; pointer-events: none; }
  .cursor__ring, .cursor__dot { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
  .cursor__ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(37, 70, 232, .55); transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background-color .3s, border-color .3s; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--brand); }
  .cursor.is-hover .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(37, 70, 232, .08); border-color: rgba(37, 70, 232, .3); }
  .cursor.is-dark .cursor__ring { border-color: rgba(200, 241, 105, .7); }
  .cursor.is-dark .cursor__dot { background: var(--lime); }
  .cursor.is-hidden { opacity: 0; }
}

/* ==========================================================================
   Motion states — only when JS has confirmed animations will run
   ========================================================================== */
.js-anim .hero__line, .js-anim .hero-in, .js-anim .hero__visual .media,
.js-anim .glass, .js-anim .reveal, .js-anim .stagger, .js-anim .fan, .js-anim .reveal-media { opacity: 0; }

/* Float loops (CSS so they never fight GSAP transforms on the parent) */
@media (prefers-reduced-motion: no-preference) {
  .float-a > *, .float-b > * { will-change: transform; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 24px 40px; }
  .marquee__track li[aria-hidden="true"] { display: none; }
  .marquee__toggle { display: none; }
  .parallax-img { transform: none; }
}
