:root {
  --ink: #0b0b0c;
  --paper: #ffffff;
  --muted: #6b6b70;
  --line: #e6e6e8;
  --blue: #1d6ae5;
  --display: "Unbounded", system-ui, sans-serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; align-content: center; gap: 20px;
}
.loader__count { font-family: var(--display); font-size: clamp(48px, 10vw, 140px); font-weight: 900; letter-spacing: -.04em; }
.loader__bar { width: min(240px, 60vw); height: 2px; background: #2a2a2e; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 90; border-radius: 50%; }
.cursor {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
  mix-blend-mode: difference; border-color: #fff;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor__label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: #fff; }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: #fff; mix-blend-mode: normal; border-color: transparent; }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* text roll hover */
.roll { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.roll span { display: block; position: relative; transition: transform .5s var(--ease); }
.roll span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.roll:hover span { transform: translateY(-100%); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #000; padding: 8px 16px; border-radius: 999px;
  position: relative; overflow: hidden;
}
.pill i { font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.pill:hover i { transform: translateX(4px) rotate(-45deg); }

/* ---------- Shared ---------- */
.display {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 5.2vw, 88px);
  line-height: 1; letter-spacing: -.03em; text-transform: uppercase;
}
.display > span { display: block; overflow: hidden; }
.display > span > span { display: inline-block; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ulink { font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 1px; }
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; }
.tags--dark li { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 5px 12px; font-size: 13px; }
.line { display: block; overflow: hidden; }
.split .ch { display: inline-block; will-change: transform; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h, 84px) + 48px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 13vw, 230px);
  line-height: .95; letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap;
}
.line--indent { padding-left: 14vw; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 32px; }
.hero__intro { max-width: 520px; font-size: 18px; }
.hero__scroll { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.hero__scroll-line { width: 60px; height: 1px; background: var(--ink); transform-origin: left; animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@media (max-width: 700px) { .hero__scroll { display: none; } }

.badge { position: absolute; top: 96px; right: var(--gutter); width: clamp(110px, 14vw, 190px); aspect-ratio: 1; }
.badge > svg:first-child { width: 100%; height: 100%; }
.badge text { font-family: var(--display); font-weight: 700; font-size: 16px; fill: var(--ink); }
.badge__star { position: absolute; inset: 34%; width: 32%; height: 32%; fill: var(--blue); }

/* ---------- Warp ---------- */
.warp { height: 260vh; position: relative; }
.warp__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; perspective: 1200px; }
.warp__text {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(32px, 7vw, 120px); line-height: 1; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.5px #cfcfd4;
}
.warp__text span { display: block; }
.warp__img { width: min(50vw, 820px); position: relative; z-index: 2; will-change: transform, opacity; transform-style: preserve-3d; }
@media (max-width: 700px) { .warp__img { width: 86vw; } }

/* ---------- Intro ---------- */
.intro { padding: 12vh var(--gutter) 16vh; }
.intro__inner { margin-left: auto; max-width: 900px; }
.intro__copy { max-width: 460px; margin-top: 32px; display: grid; gap: 16px; font-size: 18px; }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); overflow: hidden; padding: 1.2vw 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__row { display: flex; align-items: center; flex-shrink: 0; }
.marquee__row span { font-family: var(--sans); font-weight: 800; font-size: clamp(40px, 7vw, 120px); letter-spacing: -.02em; line-height: 1; padding: 0 3vw; }
.marquee__row i { font-style: normal; font-size: clamp(20px, 3vw, 44px); color: var(--blue); display: inline-block; }

/* ---------- Industries ---------- */
.industries { padding-top: 18vh; }
.sec-head { padding: 0 var(--gutter) 10vh; display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 32px; align-items: end; }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; } }
.panels { position: relative; }
.panel {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden; color: #fff;
  display: flex; align-items: flex-end;
  transform-origin: 50% 0;
}
.panel__bg { position: absolute; inset: -10% 0; }
.panel__bg img { width: 100%; height: 100%; object-fit: cover; }
.panel__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 65%), linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.88) 100%); }
.panel__body { position: relative; padding: 0 var(--gutter) clamp(32px, 6vh, 64px); max-width: 900px; }
.panel__num { font-size: 12px; font-weight: 600; letter-spacing: .12em; opacity: .7; }
.panel h3 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.8vw, 60px); line-height: 1.1; letter-spacing: -.02em; margin: 12px 0 16px; }
.panel p { max-width: 540px; font-size: 18px; opacity: .92; margin-bottom: 22px; }
.reach { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-weight: 600; font-size: 16px; }
.reach b { display: inline-block; transition: transform .7s var(--ease); }
.reach:hover b { transform: rotate(180deg) scale(1.3); }

/* ---------- Products ---------- */
.products { padding: 20vh var(--gutter) 14vh; position: relative; }
.products__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 7vh; }
.toggle { position: relative; display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; padding: 4px; }
.toggle__btn { position: relative; z-index: 1; padding: 9px 18px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; transition: color .4s; }
.toggle__btn.is-active { color: #fff; }
.toggle__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; background: var(--ink); border-radius: 999px; transition: transform .5s var(--ease), width .5s var(--ease); }

/* list view */
.plist.is-list { border-top: 1px solid var(--ink); }
.plist.is-list .pitem { border-bottom: 1px solid var(--line); }
.plist.is-list .pitem a {
  display: grid; grid-template-columns: 60px 1fr auto 140px; align-items: center; gap: 24px;
  padding: 28px 0; position: relative; transition: padding .5s var(--ease), color .3s;
}
.plist.is-list .pitem a::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.plist.is-list .pitem { position: relative; z-index: 0; }
.plist.is-list .pitem a:hover { color: #fff; padding-left: 20px; padding-right: 20px; }
.plist.is-list .pitem a:hover::before { transform: scaleY(1); transform-origin: top; }
.plist.is-list .pitem a:hover .tags--dark li { border-color: #3a3a3f; color: #bdbdc2; }
.plist.is-list .pitem__img { display: none; }
.pitem h3 { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.4vw, 34px); letter-spacing: -.02em; line-height: 1.15; }
.pitem__n { font-size: 13px; font-weight: 600; color: var(--muted); }
.pitem__meta { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; text-align: right; color: var(--muted); }
@media (max-width: 800px) {
  .plist.is-list .pitem a { grid-template-columns: 36px 1fr; row-gap: 10px; }
  .plist.is-list .pitem .tags { grid-column: 2; }
  .plist.is-list .pitem__meta { display: none; }
}

/* card view */
.plist.is-card { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 24px; }
.plist.is-card .pitem a { display: flex; flex-direction: column; gap: 12px; }
.plist.is-card .pitem__img { overflow: hidden; background: #f3f3f4; aspect-ratio: 4/3; border-radius: 4px; }
.plist.is-card .pitem__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease); }
.plist.is-card .pitem a:hover .pitem__img img { transform: scale(1.08); }
.plist.is-card .pitem__n { order: -1; }
.plist.is-card .pitem__meta { display: none; }
.plist.is-card h3 { font-size: clamp(20px, 2vw, 28px); }

.hover-img {
  position: fixed; top: 0; left: 0; width: 300px; aspect-ratio: 4/3; pointer-events: none; z-index: 40;
  overflow: hidden; border-radius: 4px; background: #f3f3f4;
  opacity: 0; transform: scale(.6); transition: opacity .35s, transform .5s var(--ease);
}
.hover-img.is-on { opacity: 1; transform: scale(1); }
.hover-img img { width: 100%; height: 100%; object-fit: contain; }
@media (hover: none), (pointer: coarse) { .hover-img { display: none; } }

/* ---------- Why ---------- */
.why { padding: 10vh var(--gutter) 18vh; display: grid; gap: 7vh; }
.why__list { width: min(100%, 820px); margin-left: auto; }
.why__list li { display: grid; grid-template-columns: 60px 1fr; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.why__list li:first-child { border-top: 1px solid var(--ink); }
.why__list li:hover { padding-left: 16px; }
.why__list span { font-size: 13px; font-weight: 600; color: var(--blue); }
.why__list h3 { font-size: clamp(19px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.02em; }

/* ---------- Clients ---------- */
.clients { padding: 0 0 18vh; }
.clients .eyebrow { padding: 0 var(--gutter) 40px; }
.clients__track { 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); }
.clients__row { display: flex; width: max-content; gap: 64px; align-items: center; animation: slide 60s linear infinite; }
.clients__track:hover .clients__row { animation-play-state: paused; }
.clients__row img { height: 56px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .4s, opacity .4s; }
.clients__row img:hover { filter: none; opacity: 1; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Contact ---------- */
.contact { color: var(--paper); }
.contact .eyebrow { color: #8a8a90; }
.contact__big { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(48px, 12vw, 210px); white-space: nowrap; line-height: .95; letter-spacing: -.04em; margin: 20px 0 48px; }
.contact__row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18vh; }
.contact__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 22px 36px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font-size: clamp(16px, 1.8vw, 22px); font-weight: 600; position: relative; overflow: hidden;
}
.contact__btn::before { content: ""; position: absolute; left: -10%; right: -10%; top: 0; height: 200%; background: var(--blue); border-radius: 50% 50% 0 0; transform: translateY(100%); transition: transform .6s var(--ease), border-radius .6s var(--ease); }
.contact__btn:hover::before { transform: translateY(-25%); border-radius: 0; }
.contact__btn span { position: relative; transition: color .4s; }
.contact__btn:hover span { color: #fff; }
.contact__btn--ghost { background: transparent; color: var(--paper); border: 1px solid #3a3a3f; }
.foot__logo { height: 38px; width: auto; }

/* ---------- Liquid mouse effect ---------- */
.fluid-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero__title { position: relative; }
.hero__title.is-gl .line { visibility: hidden; }
.panel__bg.is-gl img { opacity: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .warp { height: auto; }
  .warp__sticky { position: relative; height: auto; padding: 12vh 0; }
  .warp__text { position: relative; margin-bottom: 32px; }
}
