/* ==========================================================================
   Home page sections. Positions are taken from the 1920x1080 Figma frames
   and expressed in vw / vh so the composition holds at other sizes.
   ========================================================================== */

/* ---- Loader ------------------------------------------------------------ */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; place-content: center; justify-items: center; gap: 1.25rem;
  background: #000;
}
.loader__logo { width: clamp(5.5rem, 7vw, 8.5rem); }
.loader__bar { width: clamp(5.5rem, 7vw, 8.5rem); height: 1px; background: rgb(255 255 255 / 0.15); overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.no-js .loader, .reduced .loader { display: none; }

/* ---- Stage: hero + intro over one sticky background ------------------- */
.stage { position: relative; }
.stage__bg { position: absolute; inset: 0; z-index: 0; }
.stage__bg-inner {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  clip-path: inset(0 0 0 0 round 0);
}
.stage__bg-inner img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform-origin: 50% 40%; }
.stage__bg-inner::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, transparent, rgb(0 0 0 / 0.55)); }

.hero { position: relative; z-index: 1; height: 100vh; height: 100svh; min-height: 34rem; }
.hero__word {
  position: absolute; left: var(--margin); right: var(--margin);
  bottom: calc(17.6svh);
  display: flex; justify-content: space-between; align-items: flex-end;
  margin: 0; line-height: 0;
}
.hero__letter { height: min(14vw, 34svh); width: auto; will-change: transform; }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: clamp(1.5rem, 6.5svh, 4.5rem);
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8);
}
.hero__sub { max-width: 35.5rem; font-size: var(--fs-body); color: var(--color-gray-100); line-height: 1.4; }
.hero__ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; }

.intro { position: relative; z-index: 1; height: 100vh; height: 100svh; }
.intro__counter { position: absolute; left: 4.7vw; top: 50%; translate: 0 -50%; }
.intro__text { position: absolute; left: 44.4vw; top: 50%; translate: 0 -50%; width: min(41.4vw, 49.7rem); }
.intro__title, .intro__para { font-size: var(--fs-heading); font-weight: var(--weight-regular); line-height: var(--lh-display); }
.intro__text { display: grid; }
.intro__step { grid-area: 1 / 1; align-self: center; }
.intro__title { margin-bottom: 0.6em; }
.intro__para { font-weight: var(--weight-light); }
[data-words] .w { color: #5a5a5a; transition: color 0.2s linear; }
.intro__line { position: absolute; left: 0; right: 0; bottom: 11%; height: 1px; background: rgb(255 255 255 / 0.15); }
.intro__line span { display: block; height: 100%; background: rgb(255 255 255 / 0.8); transform: scaleX(0); transform-origin: left; }
/* Without scroll motion the three statements simply stack */
.reduced .intro { height: auto; min-height: 100svh; padding: 22svh 0 18svh; }
.reduced .intro__text { position: relative; inset: auto; translate: none; display: block; margin-left: 44.4vw; }
.reduced .intro__step + .intro__step { margin-top: 1.2em; }
.reduced .intro__counter { display: none; }

/* ---- Ecosystem --------------------------------------------------------- */
.eco { position: relative; height: max(100vh, 44rem); overflow: hidden; background: #000; }
.eco__glow { position: absolute; left: 18%; top: 4%; width: 46vw; height: 70%; background: radial-gradient(closest-side, rgb(46 82 160 / 0.35), transparent 70%); filter: blur(30px); }
.eco__img { position: absolute; left: 50%; top: 5%; width: min(60vw, 72rem); translate: -56% 0; }
.eco__copy { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; }
.eco__copy .t-display { color: #fff; }
.eco__copy .t-lead { max-width: 46rem; margin: 0.6rem auto 0; }

/* ---- Product slider ---------------------------------------------------- */
.products { position: relative; height: max(100vh, 52rem); margin-top: var(--section-gap-eco); overflow: hidden; background: #000; }
/* Background is only concentric rings: full, thin, uniform, very faint,
   centred on the product visual (same 57% anchor). */
.products__rings { position: absolute; left: 50%; top: 57%; width: 0; height: 0; }
.ring {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  width: var(--ring-d); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / var(--ring-a));
}
.ring--1 { --ring-d: min(34vw, 70vh); --ring-a: 0.09; }
.ring--2 { --ring-d: min(50vw, 103vh); --ring-a: 0.065; }
.ring--3 { --ring-d: min(66vw, 136vh); --ring-a: 0.045; }
.products__head { position: relative; z-index: 2; padding-top: 12.5vh; text-align: center; }
.products__name {
  font-family: var(--font-display); font-weight: var(--weight-light);
  font-size: var(--fs-display-2); line-height: 1.1; color: #fff;
}
.products__name.is-gradient { background: var(--gradient-steel); -webkit-background-clip: text; background-clip: text; color: transparent; }
.products__sub { width: min(36rem, 100% - 2 * var(--margin)); margin: 0.6rem auto 0; font-size: var(--fs-body); color: var(--color-gray-100); line-height: 1.3; }
.products__desc { width: min(24rem, 100% - 2 * var(--margin)); margin: 0.4rem auto 0; font-size: var(--fs-ui); color: var(--color-gray-500); line-height: 1.35; min-height: 4em; }
.products__stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.products__visual { position: absolute; left: 50%; top: 57%; width: 38.9vw; height: 42vh; translate: -50% -50%; }
.products__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.products__visual img.is-photo { border-radius: var(--radius-lg); object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 60%, transparent); }
/* Round button that follows the mouse over the device: arrow on the sides,
   plus in the middle (r30). GSAP owns its transform; no CSS transition on it. */
.products__cursor {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  width: var(--plus-btn); height: var(--plus-btn); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-white); color: var(--color-black);
  opacity: 0; visibility: hidden;
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.35);
}
.products__cursor-i {
  grid-area: 1 / 1; width: 0.875rem; height: 0.875rem;
  opacity: 0; scale: 0.6;
  transition: opacity var(--dur-base) var(--ease-out), scale var(--dur-base) var(--ease-out), rotate var(--dur-slow) var(--ease-out);
}
.products__cursor[data-mode="prev"] .products__cursor-i--prev,
.products__cursor[data-mode="next"] .products__cursor-i--next,
.products__cursor[data-mode="plus"] .products__cursor-i--plus { opacity: 1; scale: 1; }
.products__cursor.is-open .products__cursor-i--plus { rotate: 45deg; }
/* The arrow glyph only fills a quarter of its 38-unit box, so it takes the full button */
.products__cursor-i--prev, .products__cursor-i--next, .products__arrow svg { width: 100%; height: 100%; }
.products.is-pointing { cursor: pointer; }
/* Static controls: shown on touch screens, kept for keyboard users with a mouse */
.products__plus, .products__arrow { position: absolute; pointer-events: auto; }
.products__plus { left: 50%; top: calc(57% + 21vh); translate: -50% -50%; }
.products__arrow { top: 57%; translate: 0 -50%; width: 2.75rem; height: 2.75rem; background: rgb(255 255 255 / 0.12); color: #fff; border: 1px solid rgb(255 255 255 / 0.2); }
.products__arrow--prev { left: calc(50% - 19.45vw - 4.5rem); }
.products__arrow--next { right: calc(50% - 19.45vw - 4.5rem); }
@media (hover: hover) and (pointer: fine) {
  .products__plus:not(:focus-visible), .products__arrow:not(:focus-visible) {
    width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
}
@media (hover: none), (pointer: coarse) {
  .products__cursor { display: none; }
}
.products__spec { position: absolute; left: 15.1vw; top: 42%; pointer-events: auto; width: min(22.4rem, 80vw); }
.products__spec[hidden] { display: grid; visibility: hidden; opacity: 0; }
.products__thumbs {
  position: absolute; z-index: 2; left: 50%; bottom: 7.4vh; translate: -50% 0;
  display: flex; gap: 0.6rem;
}
.products__thumbs .thumb { width: clamp(4rem, 7.9vw, 9.5rem); height: auto; aspect-ratio: 1.44; }

/* ---- Performance ------------------------------------------------------- */
.perf { position: relative; height: 100vh; height: 100svh; min-height: 44rem; padding-top: clamp(5.5rem, 15vh, 10rem); background: #000; display: flex; flex-direction: column; }
.perf__title { color: #fff; }
.perf__a { color: var(--color-gray-150); }
.perf__card {
  position: relative; flex: 1; margin: clamp(1.5rem, 3vh, 2.5rem) clamp(1rem, 4vw, 4.9rem) clamp(1.5rem, 5vh, 3.5rem);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 120% at 60% 50%, #141414 0%, #0b0b0b 60%, #080808 100%);
  border: 1px solid rgb(255 255 255 / 0.04);
  overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 24rem) 1fr; align-items: center; gap: var(--space-6);
  padding-left: clamp(1rem, 3vw, 3.5rem);
}
.perf__nav { display: grid; gap: var(--space-2); position: relative; z-index: 2; }
.perf__acc { position: relative; z-index: 2; }
.perf__media { position: absolute; inset: 0 0 0 30%; }
.perf__media img { position: absolute; left: 50%; top: 50%; height: 100%; width: auto; max-width: none; transform: translate(-50%, -50%) scale(1.04); opacity: 0; transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-reveal) var(--ease-out); -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); mask-image: radial-gradient(closest-side, #000 70%, transparent); }
.perf__media img.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.perf__media img.perf__alt { filter: hue-rotate(180deg) saturate(0.6); }
.perf__media img.perf__alt + .perf__alt { filter: grayscale(0.4) brightness(1.1); }

/* ---- ROI (light) ------------------------------------------------------- */
.roi { position: relative; background: #000; }
.roi__inner { position: relative; height: 100vh; height: 100svh; min-height: 40rem; background: #fff; color: #000; overflow: hidden; display: flex; flex-direction: column; }
.roi__head { padding-top: clamp(6.5rem, 24vh, 16.5rem); }
.roi__title { line-height: var(--lh-tight); color: #000; }
.roi__a { color: var(--color-gray-450); }
.roi__sub { margin-top: var(--space-3); font-size: var(--fs-body); color: var(--color-gray-550); line-height: 1.35; }
.roi__sub b { color: #000; font-weight: var(--weight-regular); }
.roi__track { display: flex; gap: 2rem; padding-left: var(--margin); margin-top: clamp(1.5rem, 4vh, 3rem); will-change: transform; }
.roi__card { flex: none; width: min(68.6vw, 82rem); aspect-ratio: 1318 / 547; max-height: 51vh; }
.roi__card .media-card__img { transform: scale(1.02); transition: none; } /* GSAP scrubs the scale */
.roi__card::after { background: linear-gradient(180deg, transparent 60%, rgb(0 0 0 / 0.55)); }
.roi__label { position: absolute; z-index: 2; left: 1.5rem; bottom: 1.25rem; font-size: var(--fs-title-lg); font-weight: var(--weight-light); color: #fff; }

/* ---- Partnership ------------------------------------------------------- */
.partner { position: relative; padding: clamp(6rem, 13vh, 9rem) 0 clamp(4rem, 9vh, 7rem); background: #000; overflow: hidden; }
.partner__bg { position: absolute; inset: 0 0 auto 0; height: 36rem; opacity: 0.12; }
.partner__bg img { width: 100%; height: 100%; object-fit: cover; }
.partner__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #000); }
.partner__head { position: relative; display: grid; justify-items: center; gap: var(--space-4); }
.partner__head .t-display span { color: var(--color-gray-150); }
.partner__sub { max-width: 28.2rem; }
.partner__track {
  position: relative; display: flex; gap: var(--gutter);
  margin-top: clamp(2rem, 4vh, 3rem);
  padding: 0 var(--margin);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--margin);
  scrollbar-width: none;
}
.partner__track::-webkit-scrollbar { display: none; }
.partner__card { flex: none; width: min(38.65vw, 46.4rem); aspect-ratio: 742 / 413; scroll-snap-align: start; }
.partner__controls { margin-top: var(--space-6); }
.featured { margin-top: clamp(4rem, 12vh, 8rem); text-align: center; }
.featured__title { font-size: var(--fs-subtitle); color: var(--color-gray-400); margin-bottom: clamp(2rem, 5vh, 3.5rem); }

/* ---- Testimonials ------------------------------------------------------ */
.testi { padding: clamp(6rem, 18vh, 12rem) 0; background: #000; overflow: hidden; }
.testi__grid { display: grid; grid-template-columns: minmax(0, 28rem) 1fr; gap: var(--space-12); align-items: center; }
.testi__intro { display: grid; justify-items: start; gap: var(--space-5); }
.testi__intro .t-display { line-height: 1.1; }
.testi__p { font-size: var(--fs-ui); color: var(--color-gray-400); max-width: 25rem; }
.testi__controls { margin-top: var(--space-10); }
.testi__cards { display: flex; align-items: flex-start; justify-content: flex-end; gap: var(--space-3); }
.person {
  --w: clamp(9.5rem, 15.6vw, 18.75rem);
  position: relative; flex: none; width: var(--w);
  border-radius: 1rem; background: var(--color-gray-850); overflow: hidden;
  transition: width var(--dur-slow) var(--ease-in-out);
}
.person > img { width: 100%; height: calc(var(--w) * 430 / 300); object-fit: cover; filter: grayscale(1); transition: filter var(--dur-slow), opacity var(--dur-base); }
.person:hover > img { filter: grayscale(0); }
.person__name { height: 4.75rem; display: grid; place-items: center; font-size: var(--fs-title-sm); color: #fff; transition: opacity var(--dur-base); }
.person__toggle { position: absolute; inset: 0; z-index: 2; }
.quote {
  position: absolute; inset: 0; padding: clamp(1.25rem, 2vw, 2rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-base);
  font-size: clamp(0.8125rem, 0.76rem + 0.2vw, 1rem); line-height: 1.45; color: #fff;
}
.quote__by { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--color-gray-700); }
.quote__by img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.quote__by span { display: grid; font-size: var(--fs-small); }
.quote__by b { font-weight: var(--weight-regular); }
.quote__by small { color: var(--color-gray-200); font-size: var(--fs-small); }
.person.is-open { width: calc(var(--w) * 2.15); }
.person.is-open > img, .person.is-open .person__name { opacity: 0; }
.person.is-open .quote { opacity: 1; pointer-events: auto; transition-delay: 0.25s; }
.person.is-open .person__toggle { inset: 0 0 auto auto; width: 3rem; height: 3rem; }

/* ---- Closing: CTA pinned under the footer reveal ---------------------- */
.closing { position: relative; }
.cta { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 40rem; overflow: hidden; background: #000; }
.cta__ring { position: absolute; left: 50%; top: 58%; width: min(68.3vw, 82rem); max-width: none; translate: -50% -50%; }
.cta__copy { position: relative; z-index: 2; padding-top: clamp(6.5rem, 18vh, 12rem); }
.cta__copy .t-display { line-height: 1.1; }
.cta__btns { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-6); }
/* Device sits lower so it never reaches the buttons: ~24% of its height
   (height = width x 0.719) drops below the fold. */
.cta__device { --dev-w: min(43vw, 52rem); position: absolute; z-index: 1; left: 50%; bottom: calc(var(--dev-w) * -0.17); width: var(--dev-w); translate: -50% 0; }

.footer { position: relative; z-index: 3; background: #000; padding: clamp(6rem, 14vw, 16rem) 0 clamp(2rem, 4vw, 4rem); border-top: 1px solid rgb(255 255 255 / 0.04); }
.footer__top { display: grid; grid-template-columns: minmax(0, 26rem) 1fr; gap: var(--space-12); padding-left: clamp(0rem, 3.5vw, 4.2rem); }
.footer__logo { width: clamp(9rem, 12.45vw, 15rem); margin-bottom: var(--space-8); }
.footer__news-title { font-weight: var(--weight-medium); margin-bottom: var(--space-5); }
.footer__legal { margin-top: var(--space-5); color: var(--color-gray-400); font-size: var(--fs-ui); }
.footer__cols { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: var(--space-8); padding-top: clamp(0rem, 4vw, 5rem); }
.footer__cols h3 { font-size: var(--fs-ui); font-weight: var(--weight-regular); color: #fff; margin-bottom: var(--space-2); }
.footer__cols a { white-space: nowrap; color: var(--color-gray-400); line-height: var(--lh-list); transition: color var(--dur-fast); }
.footer__cols a:hover { color: #fff; }
.footer__social { display: flex; gap: var(--space-4); }
.footer__social a { display: grid; place-items: center; width: 1.5rem; height: 2rem; opacity: 0.9; }
.footer__contact-title { margin-top: var(--space-6); }
.footer__contact li { display: flex; align-items: center; gap: var(--space-2); }
.footer__bar { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: clamp(4rem, 9vw, 10rem); padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); font-size: var(--fs-micro); color: var(--color-gray-400); }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .intro__counter { left: var(--margin); top: 30%; }
  .intro__text { left: var(--margin); right: var(--margin); width: auto; }
  .reduced .intro__text { margin: 0 var(--margin); }
  .eco__img { width: 92vw; top: 12%; translate: -50% 0; }
  .products__visual { width: 70vw; height: 36vh; }
  .ring--1 { --ring-d: 60vw; } .ring--2 { --ring-d: 84vw; } .ring--3 { --ring-d: 108vw; }
  .products__plus { top: calc(57% + 18vh); }
  .products__arrow--prev { left: var(--margin); }
  .products__arrow--next { right: var(--margin); }
  /* r30: the card opens above the "+" (which turns into a close button) and the
     side arrows step aside while it is open, so nothing covers the card. */
  .products__spec { left: 50%; top: auto; bottom: calc(43% - 18vh + var(--plus-btn) / 2 + 0.75rem); translate: -50% 0; }
  .products__arrow { transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base); }
  .products.is-spec-open .products__arrow { opacity: 0; visibility: hidden; }
  .products__thumbs { max-width: calc(100% - 2rem); overflow-x: auto; scrollbar-width: none; }
  .perf { height: auto; min-height: 0; padding-bottom: var(--space-10); }
  .perf__card { grid-template-columns: 1fr; padding: var(--space-6); align-content: start; gap: var(--space-6); min-height: 46rem; }
  .perf__nav { display: none; }
  .perf__media { inset: auto 0 0 0; height: 24rem; }
  .roi__card { width: 84vw; }
  .partner__card { width: 78vw; }
  .testi__grid { grid-template-columns: 1fr; }
  .testi__cards { justify-content: flex-start; }
  .person { --w: 42vw; }
  .person.is-open { width: calc(84vw + 0.75rem); }
  .testi__cards:has(.is-open) .person:not(.is-open) { display: none; }
  .footer__top { grid-template-columns: 1fr; padding-left: 0; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: start; column-gap: var(--space-8); }
}

@media (max-width: 640px) {
  .person.is-open > img, .person.is-open .person__name { display: none; }
  .person.is-open .quote { position: relative; inset: auto; }
  .footer__cols a[href^="mailto:"] { white-space: normal; }
  .nav__logo { width: 6.5rem; }
  .nav .btn { padding: 0 var(--space-4); }
  /* Menu on phones: the account button keeps only the Q, the photo gets a narrow column */
  .menu__account { width: 2.25rem; padding: 0; justify-content: center; }
  .menu__account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .menu__body { grid-template-columns: minmax(0, 1fr) 7.5rem; gap: var(--space-4); padding: var(--space-6) var(--space-3) 0; }
  .hero__word { bottom: 38svh; }
  .hero__letter { height: 19vw; }
  .hero__foot { flex-direction: column; align-items: flex-start; bottom: 2rem; }
  .hero__sub { font-size: var(--fs-ui); }
  .intro__counter { top: 22%; }
  .eco__copy { bottom: 7%; }
  .products__head { padding-top: 7.5rem; }
  .products__visual { width: 88vw; }
  .ring--1 { --ring-d: 78vw; } .ring--2 { --ring-d: 108vw; } .ring--3 { --ring-d: 138vw; }
  .products__plus { width: 2.75rem; height: 2.75rem; }
  .products__spec { bottom: calc(43% - 18vh + 2.125rem); }
  .roi__card { aspect-ratio: 4 / 5; max-height: 56vh; width: 80vw; }
  .partner__card { aspect-ratio: 4 / 5; }
  .cta__device { --dev-w: 92vw; }
  .footer__bar { flex-direction: column; }
}
