/* ==========================================================
   Fulcrum Systems — scroll motion (home pages only)
   Everything here is progressive: without JS, or with
   "reduce motion" on, the page shows plainly.
   ========================================================== */

/* ---------- smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- numbered section labels: "01 / About us" ---------- */
.eyebrow[data-n]::before {
  content: attr(data-n) " /"; width: auto; height: auto; background: none; border-radius: 0;
  font-family: var(--mono); font-weight: 500; letter-spacing: 0; color: var(--ink-3);
}
.section--navy .eyebrow[data-n]::before { color: var(--on-navy-2); }

/* ---------- headings rise word by word ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.split.is-in .w > span { transform: none; }
.mo .hero h1 { animation: none; }

.mhead .eyebrow, .mhead .lead { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.mhead .lead { transition-delay: .25s; }
.mhead.is-in .eyebrow, .mhead.is-in .lead { opacity: 1; transform: none; }

/* ---------- ticker band ---------- */
.ticker {
  overflow: hidden; border-block: 1px solid var(--line); background: var(--card);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker li {
  display: inline-flex; align-items: center; gap: 28px; padding: 20px 28px 20px 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); white-space: nowrap;
}
.ticker li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- "about" statement lights up as you scroll ---------- */
.about .section-head { max-width: 980px; }
.lead.statement {
  max-width: none; margin-top: 28px;
  font-size: clamp(1.375rem, 2.5vw, 2.125rem); line-height: 1.32; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
}
.statement .sw { opacity: .16; transition: opacity .35s linear; }
.statement .sw.on { opacity: 1; }

/* ---------- counters ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: clamp(56px, 8vw, 96px);
}
.stat { border-top: 1px solid var(--line-2); padding-top: 18px; }
.stat__n {
  font-size: clamp(3rem, 6.4vw, 5.25rem); font-weight: 700; line-height: 1; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.stat dd { margin-top: 12px; font-family: var(--mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }

/* ---------- services: list that opens + picture that changes ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.svc__stage { position: sticky; top: 112px; }
.svc__frame {
  position: relative; aspect-ratio: 1600 / 1033; border-radius: 18px; overflow: hidden; background: var(--card);
  box-shadow: 0 40px 80px -40px rgb(0 20 43 / .5), 0 0 0 1px rgb(0 20 43 / .06);
}
.svc__pic {
  position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transform: scale(1.06);
  transition: opacity .7s var(--ease), transform 1.4s var(--ease), visibility 0s linear .7s;
}
.svc__pic.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.svc__pic img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.svc__item { border-top: 1px solid var(--line-2); }
.svc__item:last-child { border-bottom: 1px solid var(--line-2); }
.svc__item h3 { margin: 0; font-size: inherit; }
.svc__btn {
  width: 100%; display: flex; align-items: center; gap: 18px; padding: 24px 0;
  background: none; border: 0; text-align: left; cursor: pointer;
  font-size: clamp(1.375rem, 2.6vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--ink-3); transition: color .3s var(--ease);
}
.svc__btn:hover, .svc__item.is-open .svc__btn { color: var(--ink); }
.svc__n { font-family: var(--mono); font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--orange-text); align-self: flex-start; margin-top: .55em; }
.svc__t { flex: 1; }
.svc__plus {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--line-2); transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .5s var(--ease);
}
.svc__plus::before, .svc__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease);
}
.svc__plus::after { transform: rotate(90deg); }
.svc__btn:hover .svc__plus { border-color: var(--ink); }
.svc__item.is-open .svc__plus { background: var(--orange); border-color: var(--orange); transform: rotate(180deg); }
.svc__item.is-open .svc__plus::after { transform: rotate(0deg); }

.svc__body { display: grid; grid-template-rows: 1fr; }
.js .svc__body { grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.js .svc__item.is-open .svc__body { grid-template-rows: 1fr; }
.svc__body > div { overflow: hidden; }
.svc__text p { color: var(--ink-2); font-size: 1.0625rem; max-width: 52ch; }
.svc__body .tags { margin: 16px 0 28px; padding-top: 0; }
.svc__body .tags li { background: var(--card); border: 1px solid var(--line); }
.js .svc__body > div > * { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.js .svc__item.is-open .svc__body > div > * { opacity: 1; transform: none; transition-duration: .6s; transition-delay: .15s; }
.svc__mob { display: none; margin: 0 0 28px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.svc__mob img { width: 100%; cursor: zoom-in; }

@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; }
  .svc__stage { display: none; }
  .svc__mob { display: block; }
  .svc__btn { padding: 20px 0; }
}

/* ---------- showcase: the product grows as you scroll ---------- */
.showcase { padding-block: var(--section); background: var(--paper); }
.showcase__head { margin-bottom: clamp(28px, 4vw, 44px); }
.showcase__title { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; max-width: 24ch; text-wrap: balance; }
.showcase__frame {
  margin: 0 auto; width: min(1200px, calc(100% - 2 * var(--gutter)));
  border-radius: 18px; overflow: hidden; background: var(--card);
  box-shadow: 0 50px 100px -50px rgb(0 20 43 / .55), 0 0 0 1px rgb(0 20 43 / .08);
}
.showcase__frame img { width: 100%; cursor: zoom-in; }

.mo-grow .showcase { height: 240vh; padding: 0; }
.mo-grow .showcase__sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding-top: 72px;
}
.mo-grow .showcase__frame {
  width: min(1200px, calc(100% - 2 * var(--gutter)), calc((100vh - 260px) * 1.94));
  transform: translateY(calc((1 - var(--p, 0)) * 60px)) scale(calc(.58 + .42 * var(--p, 0)));
  transform-origin: 50% 50%; border-radius: calc(28px - 14px * var(--p, 0));
  will-change: transform;
}
.mo-grow .showcase__head { opacity: calc(.35 + var(--p, 0) * 1.3); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .split .w > span { transform: none; }
  .statement .sw { opacity: 1; }
  .mhead .eyebrow, .mhead .lead { opacity: 1; transform: none; }
}
