/* LeanX Media */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --ring { syntax: '<angle>'; inherits: true; initial-value: 0deg; }

:root {
  --ink: #07060b; --ink2: #0e0c16; --bone: #efebe4; --mist: #9d9aab; --line: rgba(239, 235, 228, .12);
  --uv: #6e3bff; --ice: #a9e4ff; --ember: #ff5b3a;
  --out: cubic-bezier(.16, 1, .3, 1); --io: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(20px, 4vw, 60px);
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --chrome-text: linear-gradient(180deg, #fff 0%, #d4d3df 38%, #4a4859 52%, #c3c2d1 64%, #fff 100%);
  --chrome-ring: conic-gradient(from var(--ring), #fff, #6f6d82 12%, #f3f2fa 24%, #2b2936 38%, #d9d8e4 52%, #fff 62%, #5d5b70 78%, #e8e7f1 90%, #fff);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--bone); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { min-height: 100vh; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
::selection { background: var(--uv); color: #fff; }
:focus-visible { outline: 1px solid var(--ice); outline-offset: 4px; border-radius: 6px; }
section:focus { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; line-height: 1.6; }
.label { display: flex; gap: 1.4em; color: var(--mist); }
.label span, .svc-no { background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* small chrome details: sparkles, button rings */
.spark { position: absolute; width: 28px; height: 28px; fill: url(#chrome-d); filter: drop-shadow(0 0 10px rgba(169, 228, 255, .45)); pointer-events: none; }
.spark-1 { left: calc(50% - min(40vw, 590px) - 34px); top: calc(47% - min(80vw, 1180px) / 10 - 30px); }
.spark-2 { width: 18px; height: 18px; left: calc(50% + min(40vw, 590px) + 12px); top: calc(47% + min(80vw, 1180px) / 10 + 2px); }
.spark-3 { width: 26px; height: 26px; left: calc(50% + min(30vw, 360px)); top: 30%; }
.btn::after, .pill::after, .arrow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--chrome-ring); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .7; transition: opacity .5s var(--out); pointer-events: none; }
.btn:hover::after, .pill:hover::after, .arrow:hover::after { opacity: 1; }
.btn:hover, .pill:hover, .arrow:hover { --ring: 200deg; }
.js .intro { opacity: 0; }

/* the liquid canvas sits behind everything */
#gl { position: fixed; left: 0; top: 0; z-index: 0; display: block; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }
html.no-gl #gl { display: none; }
html.no-gl body::before { content: ""; position: fixed; inset: -20%; z-index: 0; pointer-events: none; background: radial-gradient(40% 35% at 30% 35%, rgba(110, 59, 255, .55), transparent 70%), radial-gradient(35% 30% at 70% 60%, rgba(169, 228, 255, .22), transparent 70%), radial-gradient(30% 30% at 55% 80%, rgba(255, 91, 58, .22), transparent 70%), var(--ink); filter: blur(40px); animation: drift 26s var(--io) infinite alternate; }
@keyframes drift { to { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.08); } }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--pad); transition: background-color .6s var(--out), box-shadow .6s var(--out); }
.nav.is-solid { background: rgba(7, 6, 11, .42); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: block; width: 88px; height: auto; aspect-ratio: 5 / 1; fill: url(#chrome); }
.brand-sub { font-size: 10px; letter-spacing: .32em; color: var(--mist); }
.links { display: flex; gap: 34px; }
.roll { position: relative; display: inline-flex; overflow: hidden; line-height: 1.3; vertical-align: top; }
.roll > span { position: relative; display: block; transition: transform .55s var(--out); }
.roll > span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
.roll:hover > span, .pill:hover .roll > span { transform: translateY(-100%); }
.pill { position: relative; display: inline-flex; align-items: center; padding: 11px 17px; border-radius: 999px; background: rgba(239, 235, 228, .04); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; transition: background-color .4s var(--out), --ring .9s var(--out); }
.pill:hover { background: rgba(239, 235, 228, .1); }

/* hero: held for one screen while the glass letters melt into the liquid */
.hero { position: relative; height: 150vh; height: 150svh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-title { position: absolute; left: 50%; top: 47%; width: min(80vw, 1180px); transform: translate(-50%, -50%); }
.hero-mark { display: block; width: 100%; height: auto; aspect-ratio: 5 / 1; fill: transparent; }
.no-gl .hero-mark { fill: var(--bone); }
.hero-ui { position: absolute; inset: 0; pointer-events: none; }
.hero-ui a { pointer-events: auto; }
.hero-line { position: absolute; left: 0; right: 0; top: calc(47% + min(80vw, 1180px) / 10 + clamp(18px, 3.2vh, 36px)); text-align: center; font: italic 400 clamp(20px, 2.2vw, 34px)/1.2 var(--serif); }
.hero-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: max(28px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; }
.hero-tag { color: var(--mist); }
.hero-tag span { display: block; }
.hero-cue { justify-self: end; display: flex; align-items: center; gap: 12px; color: var(--mist); }
.hero-cue span { display: block; width: 44px; height: 1px; background: linear-gradient(90deg, var(--mist), transparent); }

/* buttons: magnetic, filled from where the cursor enters */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 17px 25px; border-radius: 999px; background: rgba(239, 235, 228, .06); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); overflow: hidden; isolation: isolate; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone); transition: color .5s var(--out), --ring .9s var(--out); }
.btn-fill { position: absolute; left: var(--x, 50%); top: var(--y, 50%); z-index: -1; width: max(260%, 320px); aspect-ratio: 1; border-radius: 50%; background: var(--bone); transform: translate(-50%, -50%) scale(0); transition: transform .7s var(--out); pointer-events: none; }
.btn:hover { color: var(--ink); }
.btn:hover .btn-fill { transform: translate(-50%, -50%) scale(1); }
.btn-arrow { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .6s var(--out); }
.btn:hover .btn-arrow { transform: rotate(45deg); }
.btn-lg { padding: 23px 33px; font-size: 12.5px; }

/* statement */
.statement { position: relative; display: grid; gap: 40px; padding: 14vh var(--pad) 22vh; }
.statement-text { max-width: 20ch; font: 300 clamp(26px, 3.2vw, 46px)/1.16 var(--sans); letter-spacing: -.025em; }

/* network: one thin line becomes many */
.network { position: relative; height: 280vh; height: 280svh; }
.network-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.network canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.network .label { position: absolute; top: clamp(84px, 12vh, 120px); left: var(--pad); }
.net-caption { position: absolute; left: var(--pad); bottom: clamp(36px, 8vh, 72px); font: 300 clamp(20px, 2vw, 30px)/1.25 var(--sans); letter-spacing: -.02em; opacity: 0; }

/* verticals: a row that rolls by itself */
.verticals { position: relative; margin-top: -36vh; margin-top: -36svh; padding: 6vh 0 16vh; } /* rises over the end of the hero while the letters melt */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding: 0 var(--pad); margin-bottom: clamp(36px, 6vh, 64px); }
.sec-title { font: 300 clamp(24px, 2.6vw, 38px)/1.12 var(--sans); letter-spacing: -.025em; }
.rail-wrap { position: relative; }
.arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; margin-top: -28px; padding: 0; border: 0; border-radius: 50%; background: rgba(239, 235, 228, .07); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); color: var(--bone); cursor: pointer; transition: background-color .4s var(--out), transform .5s var(--out), --ring .9s var(--out); }
.arrow[hidden] { display: none; }
.arrow:hover { background: rgba(239, 235, 228, .16); }
.arrow:active { transform: scale(.9); }
.arrow:focus-visible { border-radius: 50%; outline-offset: 3px; }
.arrow-prev { left: var(--pad); }
.arrow-next { right: var(--pad); }
.arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .5s var(--out); }
.arrow-next svg { transform: scaleX(-1); }
.arrow-prev:hover svg { transform: translateX(-3px); }
.arrow-next:hover svg { transform: scaleX(-1) translateX(-3px); }
.rail { position: relative; overflow: hidden; padding: 24px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.track { display: flex; gap: 18px; width: max-content; padding: 0 18px; list-style: none; }
.card { position: relative; flex: 0 0 auto; width: clamp(200px, 16vw, 240px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; isolation: isolate; background: var(--ink2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--out); }
.card > a { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 50%, rgba(7, 6, 11, .9)); }
.card > a:focus-visible { outline: 2px solid var(--ice); outline-offset: -2px; }
.card-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--out); }
.card:hover .card-art { transform: scale(1.07); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise); opacity: .18; mix-blend-mode: overlay; }
.card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .22), transparent 45%); opacity: 0; transition: opacity .5s var(--out); pointer-events: none; }
.card:hover::after { opacity: 1; }
.card-body { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.card-views { display: block; font: italic 400 38px/1 var(--serif); letter-spacing: -.01em; }
.card-views small { margin-left: 7px; font-size: 10px; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: rgba(239, 235, 228, .6); }
.card-handle { display: block; margin-top: 8px; color: rgba(239, 235, 228, .75); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm .track { flex-wrap: wrap; justify-content: center; width: auto; }
.rm .rail { -webkit-mask-image: none; mask-image: none; }

/* services: rows that fill with liquid light */
.services { position: relative; padding: 18vh var(--pad) 14vh; }
.services .sec-head { padding: 0; }
.svc { list-style: none; border-top: 1px solid var(--line); }
.svc-row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 32px; align-items: center; gap: 20px; padding: clamp(26px, 4.4vh, 40px) 0; border-bottom: 1px solid var(--line); isolation: isolate; }
.svc-row::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: linear-gradient(90deg, rgba(110, 59, 255, .2), rgba(169, 228, 255, .06) 55%, transparent 85%); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--out); }
.svc-row:hover::before, .svc-row:focus-visible::before { transform: scaleY(1); }
.svc-name { font: 300 clamp(24px, 3vw, 44px)/1.05 var(--sans); letter-spacing: -.03em; transition: transform .7s var(--out); }
.svc-row:hover .svc-name { transform: translateX(14px); }
.svc-desc { color: var(--mist); font-size: 14px; transition: color .5s var(--out); }
.svc-row:hover .svc-desc { color: var(--bone); }
.svc-arrow { justify-self: end; font-size: 18px; transition: transform .6s var(--out); }
.svc-row:hover .svc-arrow { transform: rotate(45deg); }
.svc-blob { position: absolute; left: 0; top: 0; z-index: 2; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 42% 58% 63% 37% / 45% 38% 62% 55%; background: radial-gradient(circle at 32% 30%, rgba(169, 228, 255, .95), transparent 42%), radial-gradient(circle at 70% 68%, rgba(255, 91, 58, .85), transparent 48%), radial-gradient(circle at 50% 50%, rgba(110, 59, 255, .95), rgba(110, 59, 255, 0) 72%); filter: blur(16px) saturate(1.3) hue-rotate(var(--hue, 0deg)); mix-blend-mode: screen; opacity: 0; pointer-events: none; animation: morph 7s cubic-bezier(.45, 0, .55, 1) infinite; transition: filter .6s var(--out); }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 45% 38% 62% 55%; }
  33% { border-radius: 63% 37% 41% 59% / 56% 62% 38% 44%; }
  66% { border-radius: 38% 62% 55% 45% / 38% 51% 49% 62%; }
}

/* contact */
.contact { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; min-height: 100vh; min-height: 100svh; padding: 18vh var(--pad); text-align: center; }
.contact-title { font: 300 clamp(34px, 4.6vw, 68px)/1.04 var(--sans); letter-spacing: -.035em; }
.contact-for { color: var(--mist); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 26px var(--pad) max(26px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--mist); }
.foot a:hover { color: var(--bone); }

@media (max-width: 760px) {
  .links { display: none; }
  .brand-mark { width: 76px; }
  .hero-title { top: 44%; width: 88vw; }
  .hero-line { top: calc(44% + 8.8vw + 22px); font-size: 21px; }
  .hero-foot { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .hero-tag { text-align: center; }
  .hero-tag span { display: inline; }
  .hero-tag span + span::before { content: " · "; }
  .hero-cue { display: none; }
  .spark-1 { left: 5vw; top: calc(44% - 8.8vw - 34px); }
  .spark-2 { left: auto; right: 5vw; top: calc(44% + 8.8vw + 4px); }
  .spark-3 { left: auto; right: 10vw; top: 24%; }
  .card { width: 50vw; }
  .arrow { width: 44px; height: 44px; margin-top: -22px; }
  .arrow-prev { left: 10px; }
  .arrow-next { right: 10px; }
  .svc-row { grid-template-columns: 40px minmax(0, 1fr) 24px; row-gap: 10px; }
  .svc-desc { grid-column: 2; grid-row: 2; }
  .svc-arrow { grid-column: 3; grid-row: 1; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .svc-blob { display: none; }
}
