/* ==========================================================================
   Mighty Frames — styles
   ========================================================================== */

:root {
  --bg: #151515;
  --bg-2: #1b1b1e;
  --fg: #f7f7f8;
  --muted: #9a9aa3;
  --line: rgba(247, 247, 248, 0.12);
  --accent: #a78bfa;
  --accent-ink: #150e2e;
  --glow: #2b1f6b;

  --gutter: clamp(16px, 4vw, 56px);
  --fs-mega: clamp(3.4rem, 11.5vw, 13rem);
  --fs-xl: clamp(2.6rem, 7vw, 7.5rem);
  --fs-lg: clamp(1.9rem, 4.4vw, 4.4rem);
  --fs-md: clamp(1.1rem, 1.5vw, 1.4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
/* never let anything widen the page sideways (iOS zooms out to fit overflow) */
body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.is-loading, body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }

.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- Stage ---------- */
#gl {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}
main, .footer, .marquee { position: relative; z-index: 1; }

/* brand glow — echoes the indigo corners of the logo artwork */
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 100% 0%, rgba(43,31,107,.55), transparent 60%),
    radial-gradient(55vmax 55vmax at 0% 100%, rgba(43,31,107,.45), transparent 60%);
}

.grain {
  position: fixed; inset: 0;
  z-index: 90; pointer-events: none;
  opacity: 0.06; background-size: 160px 160px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; } 25% { background-position: -40px 30px; }
  50% { background-position: 30px -45px; } 75% { background-position: -15px 45px; }
  100% { background-position: 0 0; }
}

/* ---------- Bottom lens: progressive blur that melts into the viewport's lower edge ---------- */
.lens {
  --h: 56px;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--h) + env(safe-area-inset-bottom));
  pointer-events: none;
}
/* stacked layers: each blurs a little more and fades in further down, so there is no visible top edge */
.lens i { position: absolute; inset: 0; }
.lens i:nth-child(1) {
  backdrop-filter: blur(0.5px); -webkit-backdrop-filter: blur(0.5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.5) 50%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.5) 50%, #000 100%);
}
.lens i:nth-child(2) {
  backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,.5) 60%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,.5) 60%, #000 100%);
}
.lens i:nth-child(3) {
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.5) 72%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.5) 72%, #000 100%);
}
.lens i:nth-child(4) {
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,.6) 85%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,.6) 85%, #000 100%);
}
/* a soft fade to the page colour, starting fully transparent at the top */
.lens::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(21,21,21,0) 0%, rgba(21,21,21,.08) 45%, rgba(21,21,21,.32) 100%);
}
@media (max-width: 700px) { .lens { --h: 44px; } }
body.menu-open .lens { opacity: 0; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; display: none; mix-blend-mode: difference; }
@media (pointer: fine) { .cursor { display: block; } body, a, button { cursor: none; } }
.cursor__dot { position: fixed; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.cursor__ring {
  position: fixed; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(255,255,255,0.6); border-radius: 50%;
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .3s, border-color .3s;
}
.cursor__label { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-link .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: #fff; }
.cursor.is-hover .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; border-color: #fff; }
.cursor.is-hover .cursor__label { opacity: 1; }
.cursor.is-hover .cursor__dot { opacity: 0; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-items: center;
}
.preloader__frame { position: relative; width: 140px; height: 140px; display: grid; place-items: center; }
.preloader__mark { position: relative; z-index: 1; width: 96px; height: 96px; overflow: visible; }
.pl { transform-box: fill-box; transform-origin: center; }
.preloader__glow {
  position: absolute; inset: -60%; border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,.35), transparent 60%);
  filter: blur(20px); opacity: 0;
}
.preloader__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + 18px);
  display: flex; justify-content: space-between; align-items: flex-end; color: var(--muted);
}
.preloader__count { font-family: var(--font); font-size: clamp(3rem, 10vw, 8rem); line-height: .8; letter-spacing: -0.05em; color: var(--fg); font-weight: 300; }
.preloader__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); height: 1px; background: var(--line); }
.preloader__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 18px var(--gutter);
  transition: transform .6s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(21,21,21,.85), rgba(21,21,21,0));
  opacity: 0; transition: opacity .4s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-110%); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -0.01em; font-size: 1.05rem; }
.logo__mark { width: 30px; height: 30px; transition: transform .6s var(--ease); }
.logo:hover .logo__mark { transform: translateY(-3px) scale(1.08); }
.nav { display: flex; gap: 2rem; }
.nav a { position: relative; color: var(--muted); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--fg); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__right { display: flex; align-items: center; gap: 1.25rem; }
.clock { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot--live { background: var(--accent); box-shadow: 0 0 0 0 rgba(167,139,250,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(167,139,250,.55); } 70% { box-shadow: 0 0 0 10px rgba(167,139,250,0); } 100% { box-shadow: 0 0 0 0 rgba(167,139,250,0); } }

@media (max-width: 900px) {
  .nav, .clock { display: none; }
}

/* ---------- Hamburger + mobile menu ---------- */
.burger {
  display: none; position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(21,21,21,.6); color: var(--fg); cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .burger { display: inline-block; }
  .header__right { gap: 10px; }
  .logo, .btn--small { white-space: nowrap; }
}
@media (max-width: 520px) {
  .header__right .btn--small { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(21,21,21,.86);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.menu::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70vmax 70vmax at 100% 0%, rgba(43,31,107,.6), transparent 60%);
}
.menu__inner { min-height: 100%; display: flex; flex-direction: column; gap: 36px; padding: 104px var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom)); }
.menu__label { display: block; color: var(--accent); margin-bottom: 12px; }
.menu__links li { overflow: hidden; }
.menu__links a { display: inline-block; padding: 6px 0; font-size: 1.5rem; letter-spacing: -0.03em; font-weight: 500; color: #cfcfd4; }
.menu__links--big a { font-size: clamp(2.6rem, 12vw, 4rem); line-height: 1.05; font-weight: 600; color: var(--fg); letter-spacing: -0.045em; }
.menu__links a:active, .menu__links a:hover { color: var(--accent); }
.menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 901px) { .menu { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .75rem;
  border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--fg); color: var(--bg);
  font-weight: 500;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--small { padding: 10px 18px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.btn--big { padding: clamp(18px, 2.2vw, 28px) clamp(24px, 3vw, 40px); font-size: clamp(1rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); padding: clamp(18px, 2.2vw, 28px) clamp(22px, 2.6vw, 34px); }
.btn--ghost:hover { color: var(--accent-ink); border-color: var(--accent); }
.btn__arrow { display: inline-block; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(6px) rotate(-45deg); }

/* ---------- Shared ---------- */
section { position: relative; padding: clamp(96px, 16vh, 200px) var(--gutter); }
.chapter { display: inline-flex; gap: 14px; color: var(--muted); margin-bottom: clamp(24px, 4vh, 48px); }
.chapter span:first-child { color: var(--accent); }
.h-xl { font-size: var(--fs-xl); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line__i { display: inline-block; will-change: transform; }

.section-head { margin-bottom: clamp(48px, 10vh, 120px); max-width: 1500px; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section-head__lede { margin-top: 28px; max-width: 34ch; color: var(--muted); font-size: var(--fs-md); line-height: 1.4; }
.section-head--row .section-head__lede { margin-top: 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding-top: 110px; padding-bottom: calc(var(--gutter) + 8px);
}
.hero__top { display: flex; justify-content: space-between; color: var(--muted); }
.hero__title {
  align-self: center;
  font-size: clamp(2.5rem, min(6.4vw, 13vh), 8.5rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600;
  margin-left: -0.03em;
}
.hero__title .line:nth-child(2) { padding-left: 8vw; }
.rotator { display: inline-block; color: var(--accent); white-space: nowrap; }
.rotator__word { display: inline-block; }
.rotator .ch { display: inline-block; will-change: transform; }
.rotator__mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }

.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.hero__lede { max-width: 40ch; font-size: var(--fs-md); line-height: 1.4; color: #cfcfcb; }
.hero__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.scrollcue { display: inline-flex; align-items: center; gap: 12px; }
.scrollcue__line { width: 56px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scrollcue__line::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

@media (max-width: 700px) {
  .hero__title .line:nth-child(2) { padding-left: 0; }
  .hero__aside { align-items: flex-start; }
  .hero__top span:last-child { display: none; }
}

/* ---------- Manifesto ---------- */
.manifesto { padding: 0; }
.manifesto__pin {
  height: 100vh; position: relative;
  display: grid; place-items: center;
  padding: 0 var(--gutter);
}
.manifesto__pin .chapter { position: absolute; top: clamp(90px, 14vh, 140px); left: var(--gutter); }
.manifesto__line {
  grid-area: 1 / 1;
  max-width: 16ch; text-align: center;
  font-size: clamp(2.2rem, 5.6vw, 6.4rem); line-height: 1.08; letter-spacing: -0.04em; font-weight: 600;
}
.manifesto__line--b { max-width: 22ch; }
.manifesto__line .w { display: inline-block; }
.manifesto__line { position: relative; z-index: 1; }
.manifesto__pin .chapter { z-index: 1; }

/* Milky Way streaks: a soft diagonal band of glow + star dust in the empty corners */
.manifesto__pin { overflow: hidden; }
.milkyway {
  position: absolute; z-index: 0; pointer-events: none;
  width: 72vmax; height: 13vmax;
  left: 80%; top: 18%;
  transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) rotate(34deg);
  /* fade the band out along its length and across its width */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 62%, transparent), linear-gradient(transparent, #000 35%, #000 65%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 28%, #000 62%, transparent), linear-gradient(transparent, #000 35%, #000 65%, transparent);
          mask-composite: intersect;
  opacity: 0.85;
  animation: mw-breathe 9s ease-in-out infinite;
}
.milkyway--b {
  width: 52vmax; height: 10vmax; left: 10%; top: 88%;
  opacity: 0.5; animation-delay: -4s;
}
.milkyway i { position: absolute; inset: 0; }
.milkyway__glow {
  background: linear-gradient(180deg, transparent 10%, rgba(167,139,250,.16) 34%, rgba(236,232,255,.14) 50%, rgba(167,139,250,.16) 66%, transparent 90%);
  filter: blur(18px);
}
.milkyway__dust {
  opacity: .9;
  background-image:
    radial-gradient(1px 1px at 12px 18px, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(1px 1px at 47px 66px, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(1.5px 1.5px at 83px 31px, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(1px 1px at 104px 92px, rgba(199,184,255,.9), transparent 70%),
    radial-gradient(1px 1px at 131px 9px, rgba(255,255,255,.6), transparent 70%),
    radial-gradient(1px 1px at 22px 112px, rgba(255,255,255,.65), transparent 70%),
    radial-gradient(1px 1px at 9px 7px, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(1px 1px at 33px 41px, rgba(199,184,255,.7), transparent 70%),
    radial-gradient(1px 1px at 61px 24px, rgba(255,255,255,.5), transparent 70%),
    radial-gradient(1px 1px at 74px 58px, rgba(255,255,255,.6), transparent 70%);
  background-size: 140px 124px, 140px 124px, 140px 124px, 140px 124px, 140px 124px, 140px 124px, 86px 70px, 86px 70px, 86px 70px, 86px 70px;
  -webkit-mask-image: linear-gradient(transparent 15%, #000 40%, #000 60%, transparent 85%);
          mask-image: linear-gradient(transparent 15%, #000 40%, #000 60%, transparent 85%);
  animation: mw-twinkle 6s ease-in-out infinite alternate;
}
/* the dark dust lane that makes it read as a galaxy band */
.milkyway__lane {
  top: 46% !important; bottom: auto !important; height: 14%;
  background: linear-gradient(90deg, transparent, rgba(21,21,21,.55) 30%, rgba(21,21,21,.35) 70%, transparent);
  filter: blur(6px);
}
@keyframes mw-breathe { 0%, 100% { opacity: .85; } 50% { opacity: .6; } }
.milkyway--b { animation-name: mw-breathe-b; }
@keyframes mw-breathe-b { 0%, 100% { opacity: .5; } 50% { opacity: .32; } }
@keyframes mw-twinkle { from { opacity: .95; } to { opacity: .55; } }
@media (max-width: 700px) {
  .milkyway--a { left: 85%; top: 12%; width: 110vmax; opacity: .6; }
  .milkyway--b { display: none; }
}
@media (prefers-reduced-motion: reduce) { .milkyway, .milkyway__dust { animation: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(18px, 3vh, 30px) 0; background: rgba(21,21,21,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.marquee__track { display: flex; width: max-content; gap: 2.2rem; align-items: center; will-change: transform; }
.marquee__track span { font-size: clamp(1.6rem, 4vw, 3.6rem); letter-spacing: -0.03em; font-weight: 500; white-space: nowrap; }
.marquee__track i { color: var(--accent); font-style: normal; font-size: clamp(1rem, 2vw, 1.8rem); }

/* ---------- Services ---------- */
.svc { border-top: 1px solid var(--line); max-width: 1100px; }
.svc__row {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr 40px; grid-template-rows: auto auto;
  column-gap: 16px; align-items: baseline;
  padding: clamp(18px, 3vh, 30px) 0;
  border-bottom: 1px solid var(--line);
}
.svc__row::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.svc__num { color: var(--muted); transition: color .3s; }
.svc__name {
  font-size: clamp(1.7rem, 3.8vw, 4.4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 500;
  color: #6f6f76; transition: color .4s, transform .6s var(--ease);
}
.svc__arrow { grid-column: 3; grid-row: 1; justify-self: end; font-size: 1.6rem; color: var(--muted); transition: transform .5s var(--ease), color .3s; }
.svc__body { grid-column: 2 / 3; grid-row: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc__body > div { overflow: hidden; }
.svc__body p { max-width: 52ch; color: #cfcfcb; padding-top: 18px; font-size: var(--fs-md); line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); }

.svc__row.is-active .svc__name { color: var(--fg); transform: translateX(14px); }
.svc__row.is-active .svc__num { color: var(--accent); }
.svc__row.is-active .svc__arrow { color: var(--accent); transform: rotate(45deg); }
.svc__row.is-active .svc__body { grid-template-rows: 1fr; }
.svc__row.is-active::before { transform: scaleX(1); }

@media (min-width: 901px) {
  .svc { max-width: min(1100px, 62vw); }
}
@media (max-width: 700px) {
  .svc__row { grid-template-columns: 36px 1fr 28px; }
}

/* ---------- Engagement cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); perspective: 1200px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; min-height: clamp(380px, 52vh, 520px);
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 36px);
  border: 1px solid var(--line); border-radius: 22px;
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(167,139,250,.14), transparent 40%),
    rgba(27,27,30,.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform-style: preserve-3d; will-change: transform;
  transition: border-color .4s;
}
.card:hover { border-color: rgba(167,139,250,.45); }
.card__top { display: flex; justify-content: space-between; color: var(--muted); }
.card__title { margin-top: auto; font-size: clamp(3rem, 5.6vw, 5.6rem); line-height: .95; letter-spacing: -0.045em; font-weight: 600; transform: translateZ(40px); }
.card p { margin-top: 18px; color: #bdbdb9; max-width: 34ch; transform: translateZ(20px); }
.card__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; margin-top: 26px; border-top: 1px solid var(--line); }
.card__plus { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: transform .5s var(--ease), background .3s, color .3s; }
.card:hover .card__plus { transform: rotate(90deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.card--feature { background: radial-gradient(600px circle at var(--mx) var(--my), rgba(255,255,255,.18), transparent 40%), var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.card--feature .card__top, .card--feature p { color: rgba(21,14,46,.78); }
.card--feature .card__foot { border-color: rgba(21,14,46,.2); }
.card--feature .card__plus { border-color: rgba(21,14,46,.3); }
.card--feature:hover .card__plus { background: var(--accent-ink); color: var(--accent); }

@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } .card { min-height: 320px; } }

/* ---------- Process (horizontal) ---------- */
.process { padding: 0; }
.process__pin { height: 100vh; display: flex; align-items: center; overflow: hidden; }
.process__head {
  flex: 0 0 auto; width: min(40vw, 560px);
  padding-left: var(--gutter); padding-right: 4vw;
  display: flex; flex-direction: column; justify-content: center; height: 100%;
}
.process__lede { margin-top: 28px; color: var(--muted); font-size: var(--fs-md); line-height: 1.4; max-width: 30ch; }
.hud { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.hud__loop { width: 64px; height: 64px; transform: rotate(-90deg); }
.hud__track { fill: none; stroke: var(--line); stroke-width: 3; }
.hud__prog { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 276.5; }
.hud__txt { display: flex; flex-direction: column; gap: 4px; }
.hud__label { color: var(--muted); }
.hud__ver { font-family: var(--font); font-size: 2rem; letter-spacing: -0.04em; text-transform: none; font-variant-numeric: tabular-nums; }

.process__viewport {
  position: relative;
  flex: 1 1 auto; min-width: 0; height: 100%;
  display: flex; align-items: center; overflow: hidden;
}
/* edge fade drawn on top (a CSS mask here would stop the cards' backdrop blur from working) */
.process__viewport::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5vw; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, var(--bg), rgba(21,21,21,0));
}
.process__track { display: flex; padding-left: 4vw; gap: clamp(14px, 1.6vw, 24px); padding-right: var(--gutter); will-change: transform; }
.step {
  position: relative; flex: 0 0 auto;
  width: clamp(300px, 30vw, 440px); height: min(64vh, 560px);
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 34px);
  border-radius: 22px; border: 1px solid var(--line);
  background: rgba(27,27,30,.5);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  overflow: hidden;
}
.step__num { font-size: clamp(5rem, 9vw, 9rem); line-height: .8; letter-spacing: -0.07em; font-weight: 200; color: transparent; -webkit-text-stroke: 1px rgba(247,247,248,.35); }
.step__meta { margin-top: auto; color: var(--accent); }
.step__title { font-size: clamp(2.2rem, 3.4vw, 3.2rem); letter-spacing: -0.04em; font-weight: 600; line-height: 1; margin-top: 10px; }
.step p { margin-top: 14px; color: #bdbdb9; }
.step--loop { border-color: rgba(167,139,250,.5); }
.step--loop::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; border: 1px dashed rgba(167,139,250,.5);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .process { padding: clamp(96px, 16vh, 200px) var(--gutter); }
  .process__pin { height: auto; flex-direction: column; align-items: stretch; overflow: visible; }
  .process__head { width: 100%; padding: 0 0 48px; height: auto; }
  .process__viewport { height: auto; overflow: visible; }
  .process__viewport::before { display: none; }
  .process__track { flex-direction: column; padding: 0; width: 100%; }
  .step { width: 100%; height: auto; min-height: 300px; }
}

/* ---------- AI ---------- */
.ai__statement {
  font-size: clamp(2.4rem, 6vw, 6.6rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600;
  max-width: 15ch;
}
.ai__statement .w { display: inline-block; }
.ai__split {
  display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(64px, 12vh, 140px);
}
.ai__divider { background: linear-gradient(var(--accent), transparent); }
.ai__label { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 400; margin-bottom: 18px; }
.ai__col ul li {
  font-size: clamp(1.4rem, 2.8vw, 2.6rem); letter-spacing: -0.04em; line-height: 1.15;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.ai__col--machine li { font-family: var(--mono); font-size: clamp(1rem, 1.9vw, 1.7rem); letter-spacing: -0.02em; color: #bdbdb9; padding: 15px 0; }
@media (max-width: 800px) { .ai__split { grid-template-columns: 1fr; } .ai__divider { height: 1px; background: linear-gradient(90deg, var(--accent), transparent); } }

.timeline { margin-top: clamp(64px, 10vh, 120px); display: grid; gap: 18px; max-width: 1200px; }
.timeline__row { display: grid; grid-template-columns: 160px 1fr 220px; align-items: center; gap: 20px; }
.timeline__k { color: var(--muted); }
.timeline__v { color: var(--fg); }
.timeline__bar { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.05); overflow: hidden; display: flex; }
.timeline__fill { display: block; height: 100%; border-radius: 999px; transform-origin: left; }
.timeline__fill--slow { width: 92%; background: #3a3a3c; }
.timeline__fill--fast { width: 14%; background: var(--accent); flex: 0 0 auto; }
.timeline__loops { display: flex; gap: 6px; margin-left: 6px; }
.timeline__loops i { display: block; width: 46px; height: 100%; border-radius: 999px; border: 1px solid rgba(167,139,250,.6); }
@media (max-width: 700px) { .timeline__row { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Why (stacking cards) ---------- */
.stack { position: relative; }
.stack__card {
  position: sticky; top: calc(14vh + var(--i, 0) * 22px);
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 64px); align-items: start;
  min-height: 52vh; margin-bottom: 4vh;
  padding: clamp(26px, 4vw, 60px);
  border-radius: 28px; border: 1px solid var(--line);
  background: #121215;
  transform-origin: center top; will-change: transform;
}
.stack__card { background: #1b1b1e; }
.stack__card:nth-child(2) { background: #1e1e22; }
.stack__card:nth-child(3) { background: #212126; }
.stack__card:nth-child(4) { background: #24242a; }
.stack__card:nth-child(5) { background: #27272e; }
.stack__n { font-size: clamp(5rem, 12vw, 12rem); line-height: .8; letter-spacing: -0.06em; font-weight: 200; color: var(--accent); }
.stack__body h3 { font-size: var(--fs-lg); letter-spacing: -0.04em; line-height: 1.05; font-weight: 600; max-width: 14ch; }
.stack__body p { margin-top: 24px; max-width: 42ch; color: #bdbdb9; font-size: var(--fs-md); line-height: 1.45; }
.stack__tag { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--muted); white-space: nowrap; }
.stack__card--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stack__card--accent .stack__n { color: var(--accent-ink); }
.stack__card--accent .stack__body p { color: rgba(21,14,46,.8); }
.stack__card--accent .stack__tag { border-color: rgba(21,14,46,.25); color: var(--accent-ink); }
@media (max-width: 800px) {
  .stack__card { grid-template-columns: 1fr; min-height: 60vh; }
  .stack__tag { justify-self: start; }
}

/* ---------- Contact ---------- */
.contact { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.contact__title { font-size: clamp(2.8rem, 9vw, 11rem); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }

/* ---------- Clientele ---------- */
.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-bottom: clamp(48px, 9vh, 100px);
  border-top: 1px solid var(--line);
}
.metric { padding: clamp(24px, 4vh, 40px) clamp(0px, 2vw, 32px) 0 0; }
.metric + .metric { padding-left: clamp(16px, 2.4vw, 40px); border-left: 1px solid var(--line); }
.metric__num {
  font-size: clamp(3.6rem, 9vw, 9.5rem); line-height: 1; letter-spacing: -0.05em; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.metric__num em { color: var(--accent); font-weight: 400; margin-left: 0.04em; }
.metric__label { margin-top: 14px; color: var(--muted); }
@media (max-width: 700px) {
  .metrics { grid-template-columns: 1fr; }
  .metric + .metric { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
}


.logos { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos li {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  min-height: clamp(110px, 18vh, 180px); padding: 20px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: clamp(1.3rem, 2.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em;
  color: #8e8e96; isolation: isolate;
  transition: color .4s, background-color .5s, backdrop-filter .5s, -webkit-backdrop-filter .5s;
}
.logos li:hover {
  background-color: rgba(255,255,255,.04);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.logos li::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 50% 120%, rgba(167,139,250,.28), transparent 70%);
  opacity: 0; transition: opacity .5s;
}
.logos li:hover { color: var(--fg); }
.logos li:hover::before { opacity: 1; }
.logos small { font-size: .62rem; color: var(--accent); }
.logos .logos__more { font-weight: 300; font-size: var(--fs-md); color: var(--muted); grid-column: span 3; min-height: 90px; }
@media (max-width: 700px) {
  .logos { grid-template-columns: 1fr 1fr; }
  .logos .logos__more { grid-column: span 2; }
}
.contact__actions { margin-top: clamp(40px, 7vh, 80px); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Accordion (FAQ, job roles) ---------- */
.acc { position: relative; }
.acc::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}
.acc__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(22px, 3.4vh, 34px) 0; text-align: left;
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
}
.acc__q { font-size: clamp(1.1rem, 1.7vw, 1.6rem); letter-spacing: -0.02em; font-weight: 400; transition: color .3s, transform .5s var(--ease); }
.acc__head:hover .acc__q { color: var(--accent); transform: translateX(6px); }
.acc__icon { position: relative; flex: 0 0 auto; width: 22px; height: 22px; transition: transform .5s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.acc__icon::before { width: 22px; height: 1.5px; }
.acc__icon::after { width: 1.5px; height: 22px; }
.acc.is-open .acc__icon { transform: rotate(45deg); color: var(--accent); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc__body > div { overflow: hidden; }
.acc__body p { max-width: 60ch; padding-bottom: 28px; color: #bdbdc4; font-size: var(--fs-md); line-height: 1.55; font-weight: 300; }
.acc__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.acc.is-open .acc__body { grid-template-rows: 1fr; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.faq__head { position: sticky; top: 120px; }
.faq__title { font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 500; }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* ---------- Sub-pages ---------- */
.page-hero { min-height: 92svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 140px; }
.page-hero__title { font-size: clamp(3rem, min(9vw, 16vh), 11rem); line-height: 0.98; letter-spacing: -0.05em; font-weight: 600; }
.page-hero__row { margin-top: clamp(32px, 6vh, 64px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.page-hero__lede { max-width: 46ch; font-size: var(--fs-md); line-height: 1.5; color: #cfcfd4; font-weight: 300; }
.page-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.crumbs { display: inline-flex; gap: 10px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--fg); }
.btn--mid { padding: 16px 26px; font-size: 1rem; }
.nav a.is-current { color: var(--fg); }
.nav a.is-current::after { transform: scaleX(1); }

/* services page: one block per capability */
.sv-list { border-top: 1px solid var(--line); }
.sv {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 96px);
  padding: clamp(48px, 10vh, 120px) 0; border-bottom: 1px solid var(--line);
}
.sv__num { color: var(--accent); }
.sv__name { margin-top: 18px; font-size: clamp(2.2rem, 4.6vw, 5rem); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.sv__for { margin-top: 22px; color: var(--muted); max-width: 34ch; }
.sv__desc { font-size: clamp(1.15rem, 1.8vw, 1.6rem); line-height: 1.45; letter-spacing: -0.015em; color: #e2e2e6; font-weight: 300; }
.sv__list { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.sv__list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; color: #cfcfd4; }
.sv__list li::before { content: "+"; color: var(--accent); font-family: var(--mono); }
.sv__list li:nth-child(odd) { padding-right: 16px; }
.sv__meta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tags .tags__label { border: 0; padding-left: 0; }
@media (max-width: 900px) {
  .sv { grid-template-columns: 1fr; }
  .sv__list { grid-template-columns: 1fr; }
}

.modes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.mode { padding: clamp(28px, 4vh, 44px) clamp(0px, 2vw, 32px) 0 0; }
.mode + .mode { padding-left: clamp(16px, 2.4vw, 40px); border-left: 1px solid var(--line); }
.mode h3 { font-size: clamp(2rem, 3.4vw, 3.4rem); letter-spacing: -0.04em; font-weight: 600; line-height: 1; }
.mode p { margin-top: 16px; color: #bdbdc4; max-width: 34ch; font-weight: 300; }
.mode .mono { display: block; margin-top: 22px; color: var(--accent); }
@media (max-width: 800px) {
  .modes { grid-template-columns: 1fr; }
  .mode + .mode { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
}

.cta-block { text-align: left; }
.cta-block__title { font-size: clamp(2.6rem, 7vw, 8rem); line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.cta-block .page-hero__actions { margin-top: clamp(32px, 6vh, 64px); }

/* careers: roles list */
.roles .acc__head { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: clamp(12px, 2vw, 32px); }
.role__num { color: var(--muted); }
.role__title { font-size: clamp(1.6rem, 3.4vw, 3.4rem); letter-spacing: -0.04em; font-weight: 500; line-height: 1.05; transition: color .3s, transform .5s var(--ease); }
.role__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.role__tags span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; color: var(--muted); }
.roles .acc__head:hover .role__title { color: var(--accent); transform: translateX(6px); }
.role__apply { padding: 12px 20px; font-size: .95rem; white-space: nowrap; }
.role__body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); padding: 0 0 40px calc(56px + clamp(12px, 2vw, 32px)); }
.role__body h4 { margin-bottom: 14px; color: var(--accent); font-weight: 400; }
.role__body li { padding: 10px 0; border-bottom: 1px solid var(--line); color: #cfcfd4; font-weight: 300; }
.role__body p { padding-bottom: 0; }
.role__about { grid-column: 1 / -1; }
@media (max-width: 800px) {
  .roles .acc__head { grid-template-columns: 1fr auto; }
  .role__num { display: none; }
  .role__apply { display: none; }
  .role__body { grid-template-columns: 1fr; padding-left: 0; }
}
.role__apply--inline { display: inline-flex; margin-top: 8px; }
@media (min-width: 801px) { .role__apply--inline { display: none; } }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.value {
  padding: clamp(22px, 2.4vw, 32px); min-height: 280px; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 22px;
  background: rgba(27,27,30,.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.value__n { font-size: 3.4rem; line-height: 1; font-weight: 200; color: var(--accent); letter-spacing: -0.05em; }
.value h3 { margin-top: auto; font-size: clamp(1.4rem, 1.9vw, 1.9rem); letter-spacing: -0.03em; font-weight: 600; line-height: 1.1; }
.value p { margin-top: 12px; color: #bdbdc4; font-weight: 300; }
@media (max-width: 1000px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } .value { min-height: 220px; } }

.hire { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); counter-reset: hire; }
.hire li { padding: 28px 24px 0 0; position: relative; }
.hire li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hire .mono { color: var(--accent); }
.hire h3 { margin-top: 14px; font-size: clamp(1.3rem, 1.8vw, 1.8rem); letter-spacing: -0.03em; font-weight: 600; }
.hire p { margin-top: 10px; color: #bdbdc4; font-weight: 300; max-width: 30ch; }
@media (max-width: 800px) {
  .hire { grid-template-columns: 1fr; }
  .hire li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
}

/* ---------- Footer ---------- */
.footer { padding: 40px var(--gutter) 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__grid > div { display: flex; flex-direction: column; gap: 6px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer__nav { display: none; }
@media (max-width: 900px) {
  .footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
  .footer__nav div { display: flex; flex-direction: column; gap: 12px; }
  .footer__nav a { color: var(--fg); }
}
.footer__links a, .totop { transition: color .3s; }
.footer__links a:hover, .totop:hover { color: var(--accent); }
.footer__word {
  margin-top: 6vh;
  font-size: 12.6vw; line-height: .85; letter-spacing: -0.05em; font-weight: 200;
  white-space: nowrap; user-select: none;
  transform: translateY(8%);
}
.footer__word .ch { display: inline-block; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .dot--live, .scrollcue__line::after, .step--loop::after { animation: none; }
  .preloader { display: none; }
}
