/* ============================================================
   ITs Production v2 (2026-10-17): cinematic, 3D, dark only.
   One WebGL orbit travels with the page (gl.js): a dark planet,
   a ring of slabs that turns as you scroll, a moon. Everything
   else is HTML + CSS + site.js. Violet is the one accent.
   Type: Sora (display), Inter (body), JetBrains Mono (labels).
   ============================================================ */

:root {
  --bg: #05040a;
  --bg-1: #0a0814;
  --bg-2: #100d1c;
  --ink: #f6f3fc;
  --ink-2: #bdb7cf;
  --ink-3: #8c86a3;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --violet: #8a4efc;
  --violet-2: #b49dff;
  --violet-3: #6a35e6;
  --violet-soft: rgba(138, 78, 252, 0.16);
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  /* one laurel branch (the other side is mirrored), from the Story Kit */
  --laurel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='120' viewBox='0 0 60 120'%3E%3Cpath d='M44 118 C30 90 22 60 34 10' stroke='%23000' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cg fill='%23000'%3E%3Cellipse cx='31' cy='112' rx='9' ry='4.2' transform='rotate(-40 31 112)'/%3E%3Cellipse cx='47' cy='107' rx='8' ry='3.8' transform='rotate(-120 47 107)'/%3E%3Cellipse cx='25.1' cy='97.7' rx='9' ry='4.2' transform='rotate(-44.3 25.1 97.7)'/%3E%3Cellipse cx='41.1' cy='92.7' rx='8' ry='3.8' transform='rotate(-117.1 41.1 92.7)'/%3E%3Cellipse cx='19.8' cy='83.4' rx='9' ry='4.2' transform='rotate(-48.6 19.8 83.4)'/%3E%3Cellipse cx='35.8' cy='78.4' rx='8' ry='3.8' transform='rotate(-114.3 35.8 78.4)'/%3E%3Cellipse cx='15.8' cy='69.1' rx='9' ry='4.2' transform='rotate(-52.9 15.8 69.1)'/%3E%3Cellipse cx='31.8' cy='64.1' rx='8' ry='3.8' transform='rotate(-111.4 31.8 64.1)'/%3E%3Cellipse cx='13.5' cy='54.9' rx='9' ry='4.2' transform='rotate(-57.1 13.5 54.9)'/%3E%3Cellipse cx='29.5' cy='49.9' rx='8' ry='3.8' transform='rotate(-108.6 29.5 49.9)'/%3E%3Cellipse cx='13.3' cy='40.6' rx='9' ry='4.2' transform='rotate(-61.4 13.3 40.6)'/%3E%3Cellipse cx='29.3' cy='35.6' rx='8' ry='3.8' transform='rotate(-105.7 29.3 35.6)'/%3E%3Cellipse cx='15.2' cy='26.3' rx='9' ry='4.2' transform='rotate(-65.7 15.2 26.3)'/%3E%3Cellipse cx='31.2' cy='21.3' rx='8' ry='3.8' transform='rotate(-102.9 31.2 21.3)'/%3E%3Cellipse cx='19.2' cy='12' rx='9' ry='4.2' transform='rotate(-70 19.2 12)'/%3E%3Cellipse cx='35.2' cy='7' rx='8' ry='3.8' transform='rotate(-100 35.2 7)'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 700; }
::selection { background: rgba(138, 78, 252, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 0.75rem 1rem; border-radius: 12px; background: var(--violet); color: #fff; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- layers: atmosphere < 3D canvas < content < chrome ---------- */
.atmos {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 50% at 78% 36%, rgba(138, 78, 252, 0.2), transparent 62%),
    radial-gradient(45% 42% at 10% 88%, rgba(99, 62, 230, 0.13), transparent 66%),
    radial-gradient(90% 60% at 50% 125%, rgba(60, 30, 140, 0.28), transparent 70%),
    linear-gradient(180deg, #07060e, #05040a 60%);
}
.gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0.045;
  background-image: 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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer { position: relative; z-index: 2; }

/* ---------- shared type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-2);
}
.label__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft), 0 0 14px var(--violet); }
.idx { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.12em; color: var(--ink-3); }
.sec-head { max-width: 780px; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.sec-title { margin: 1.1rem 0 1rem; font: 700 clamp(2.4rem, 1rem + 4.6vw, 5.4rem)/0.98 var(--font-display); letter-spacing: -0.045em; text-wrap: balance; }
.sec-lead { max-width: 40rem; color: var(--ink-2); font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.18rem); }

/* ---------- buttons ---------- */
.btn {
  --bh: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: var(--bh); padding: 0 1.55rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap;
  translate: var(--mx, 0) var(--my, 0);
  transition: translate 0.45s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { scale: 0.97; }
.btn--primary {
  color: #fff; background: linear-gradient(135deg, #a07bff, var(--violet) 45%, var(--violet-3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 12px 32px -12px rgba(138, 78, 252, 0.95);
}
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 18px 44px -12px rgba(138, 78, 252, 1); }
.btn--ghost { color: var(--ink); background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(138, 78, 252, 0.12); border-color: rgba(180, 157, 255, 0.5); }
.btn--sm { --bh: 44px; padding: 0 1.15rem; font-size: 0.92rem; }
.btn--block { width: 100%; }
.round-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--ink);
  transition: background-color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { background: rgba(138, 78, 252, 0.16); border-color: rgba(180, 157, 255, 0.5); }
.round-btn:active { transform: scale(0.94); }
.round-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding: 14px var(--pad) 0; pointer-events: none; }
.nav__bar {
  pointer-events: auto; max-width: calc(var(--maxw) - 2 * var(--pad) + 24px); margin: 0 auto;
  display: flex; align-items: center; gap: 0.75rem; height: 64px; padding: 0 10px 0 12px; border-radius: 999px;
  background: rgba(12, 10, 22, 0.42); border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  transition: background-color 0.4s, border-color 0.4s, transform 0.55s var(--ease), opacity 0.6s var(--ease);
}
.nav.is-scrolled .nav__bar { background: rgba(10, 8, 20, 0.78); border-color: rgba(255, 255, 255, 0.1); }
.nav.is-away .nav__bar { transform: translateY(-130%); }
.nav__brand { display: flex; align-items: center; gap: 0.65rem; padding: 4px 8px 4px 0; font: 700 1.02rem/1 var(--font-display); letter-spacing: -0.02em; }
.nav__brand img { width: 40px; height: 40px; transition: transform 0.8s var(--ease); }
.nav__brand:hover img { transform: rotate(-90deg); }
.nav__links { margin-left: auto; display: flex; gap: 0.15rem; }
.nav__links a { position: relative; padding: 0.6rem 0.9rem; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); transition: color 0.25s, background-color 0.25s; }
.nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 1px;
  background: var(--violet-2); transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 10px var(--violet);
}
.nav__cta { margin-left: 0.4rem; }
.nav__menu { display: none; align-items: center; gap: 0.7rem; height: 46px; padding: 0 0.9rem 0 1.1rem; margin-left: auto; border-radius: 999px; border: 1px solid var(--line-2); font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.nav__menu-icon { position: relative; width: 18px; height: 10px; }
.nav__menu-icon i { position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.nav__menu-icon i:first-child { top: 1px; }
.nav__menu-icon i:last-child { top: 8px; }
.nav__menu[aria-expanded="true"] .nav__menu-icon i:first-child { top: 4.5px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-icon i:last-child { top: 4.5px; transform: rotate(-45deg); }
.nav__progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 41; pointer-events: none; }
.nav__progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--violet-3), var(--violet-2)); box-shadow: 0 0 10px var(--violet); }

.menu {
  position: fixed; inset: 0; z-index: 39; display: flex; flex-direction: column; justify-content: center;
  padding: 104px var(--pad) max(32px, env(safe-area-inset-bottom));
  background: rgba(5, 4, 10, 0.94); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__links { display: grid; gap: 0.15rem; }
.menu__links a {
  display: flex; align-items: baseline; gap: 1rem; padding: 0.35rem 0;
  font: 700 clamp(2.2rem, 10vw, 3.6rem)/1.08 var(--font-display); letter-spacing: -0.045em;
  opacity: 0; translate: 0 22px; transition: opacity 0.5s var(--ease), translate 0.6s var(--ease), color 0.2s;
  transition-delay: calc(var(--i, 0) * 45ms + 60ms);
}
.menu__links a .idx { translate: 0 -0.5em; }
.menu.is-open .menu__links a { opacity: 1; translate: 0 0; }
.menu__links a:hover { color: var(--violet-2); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.menu__foot a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-2); font: 500 0.8rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- intro: the real video plays by itself (with sound where allowed), then the 3D ring draws in ---------- */
.intro { display: none; }
.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 100; background: #030207; transition: opacity 0.7s var(--ease-io), visibility 0.7s; }
.intro-on body { overflow: hidden; }
.intro__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* portrait: 16:9 "cover" would crop the logo, so size the frame until the ring spans ~86% of the
   width and feather the top/bottom into the page (gl.js uses the same 2.18 factor for the match cut) */
@media (max-aspect-ratio: 1/1) {
  .intro__video {
    inset: auto; left: 50%; top: 50%; width: 218vw; height: calc(218vw * 9 / 16); translate: -50% -50%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  }
}
.intro__skip {
  position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35); color: rgba(255, 255, 255, 0.78);
  font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; animation: fadeIn 0.6s 0.9s var(--ease) forwards;
}
.intro__skip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.intro-out .intro { opacity: 0; visibility: hidden; }
@keyframes fadeIn { to { opacity: 1; } }

.intro:not(.is-started) .intro__video { opacity: 0; }   /* the paused first frame would show as a faint box on portrait screens */
.intro.is-started .intro__video { transition: opacity 0.45s var(--ease); }
/* muted start (the browser refused sound): the whole intro turns the sound on when tapped, this button says so */
.intro.is-muted { cursor: pointer; }
.intro__sound {
  position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0 1.15rem 0 0.95rem; border-radius: 999px; border: 1px solid rgba(180, 157, 255, 0.5);
  background: rgba(24, 14, 48, 0.6); color: #fff;
  font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; animation: fadeIn 0.5s 0.3s var(--ease) forwards, soundPulse 2.2s 0.8s var(--ease) infinite;
  transition: opacity 0.3s, visibility 0.3s, border-color 0.25s;
}
.intro__sound[hidden] { display: none; }
.intro__sound svg { width: 16px; height: 16px; flex: none; }
.intro__sound:hover { border-color: var(--violet-2); }
.intro__sound.is-on { animation: none; opacity: 0; visibility: hidden; }
@media (max-width: 359px) {   /* both buttons side by side on the narrowest phones */
  .intro__sound, .intro__skip { padding-inline: 0.8rem; letter-spacing: 0.08em; }
  .intro__sound { left: max(12px, env(safe-area-inset-left)); gap: 0.45rem; }
  .intro__skip { right: max(12px, env(safe-area-inset-right)); }
}
@keyframes soundPulse { 0% { box-shadow: 0 0 0 0 rgba(138, 78, 252, 0.55); } 100% { box-shadow: 0 0 0 14px rgba(138, 78, 252, 0); } }

/* hero + nav wait for the intro, then build in */
.js .nav__bar, .js .hero__label, .js .hero__sub, .js .hero__ctas, .js .hero__proof li, .js .hero__scroll { opacity: 0; translate: 0 18px; }
.js .nav__bar { translate: 0 -24px; }
.is-ready .nav__bar, .is-ready .hero__label, .is-ready .hero__sub, .is-ready .hero__ctas, .is-ready .hero__proof li, .is-ready .hero__scroll {
  opacity: 1; translate: 0 0; transition: opacity 1s var(--ease), translate 1.1s var(--ease), transform 0.55s var(--ease), background-color 0.4s, border-color 0.4s;
}
.is-ready .nav__bar { transition-delay: 0.15s; }
.is-ready .hero__label { transition-delay: 0.1s; }
.is-ready .hero__sub { transition-delay: 0.55s; }
.is-ready .hero__ctas { transition-delay: 0.7s; }
.is-ready .hero__proof li:nth-child(1) { transition-delay: 0.85s; }
.is-ready .hero__proof li:nth-child(2) { transition-delay: 0.95s; }
.is-ready .hero__proof li:nth-child(3) { transition-delay: 1.05s; }
.is-ready .hero__scroll { transition-delay: 1.2s; }

/* split words: 3D flip up (site.js wraps words in .w > .w__in) */
.js [data-split] .w { display: inline-block; perspective: 800px; }
.js [data-split] .w__in {
  display: inline-block; transform-origin: 50% 100%; opacity: 0; transform: translateY(0.42em) rotateX(-78deg);
  transition: transform 1.05s var(--ease), opacity 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms));
}
.js [data-split].is-in .w__in { opacity: 1; transform: none; }
.sj [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity 0.9s var(--ease), translate 1s var(--ease), transform 0.6s var(--ease), border-color 0.35s, background-color 0.35s; transition-delay: var(--rd, 0ms); }
.sj [data-reveal].is-in { opacity: 1; translate: 0 0; }
.sj [data-reveal][data-tilt].is-tilting { transition: opacity 0.9s var(--ease), translate 1s var(--ease), transform 0.12s linear, border-color 0.35s, background-color 0.35s; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: 110px; }
.hero__grid { flex: 1; display: grid; align-items: center; }
.hero__copy { max-width: min(640px, 47vw); padding-block: 2rem; }
.hero__title { margin: 1.4rem 0 1.5rem; font: 800 clamp(2.6rem, 1.1rem + 5.1vw, 6.1rem)/0.95 var(--font-display); letter-spacing: -0.048em; }
.hl { font-style: normal; background: linear-gradient(115deg, #d2c3ff 5%, var(--violet) 55%, #7046ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rot { display: inline-grid; vertical-align: bottom; perspective: 700px; }
.rot__w { grid-area: 1 / 1; justify-self: start; opacity: 0; transform: translateY(0.45em) rotateX(-80deg); transform-origin: 50% 100%; transition: transform 0.75s var(--ease), opacity 0.5s var(--ease); }
.rot__w.is-on { opacity: 1; transform: none; }
.rot__w.is-out { opacity: 0; transform: translateY(-0.35em) rotateX(80deg); transform-origin: 50% 0%; }
.hero__sub { max-width: 33rem; color: var(--ink-2); font-size: clamp(1.04rem, 0.96rem + 0.35vw, 1.22rem); line-height: 1.55; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.1rem; }
.hero__fallback { display: none; }
html:not(.js) .hero__fallback, .no-gl .hero__fallback { display: block; position: absolute; right: max(var(--pad), 4vw); top: 50%; width: min(40vw, 500px); height: auto; translate: 0 -50%; filter: drop-shadow(0 0 60px rgba(138, 78, 252, 0.45)); }
.hero__proof { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1rem; margin-bottom: 0; }
/* a frosted strip, edge to edge: keeps the proof lines readable when the orbit passes behind */
.hero__proof::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(5, 4, 10, 0.46), rgba(5, 4, 10, 0.78));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hero__proof li { display: flex; gap: 0.9rem; padding: 1.3rem 1.6rem 1.7rem 0; }
.hero__proof li + li { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.hero__proof .idx { padding-top: 0.3rem; }
.hero__proof p { color: var(--ink-2); font-size: 0.97rem; line-height: 1.5; }
.hero__proof b { color: var(--ink); font-weight: 600; }
.hero__scroll { position: absolute; right: var(--pad); bottom: 150px; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); }
.hero__scroll span { writing-mode: vertical-rl; }
.hero__scroll i { position: relative; width: 1px; height: 56px; background: var(--line-2); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--violet-2); animation: scrollCue 2.2s var(--ease-io) infinite; }
@keyframes scrollCue { to { top: 100%; } }

/* ---------- ticker with a tick-mark ruler ---------- */
.ticker { position: relative; z-index: 2; overflow: hidden; padding: 0.9rem 0 1.15rem; border-block: 1px solid var(--line); background: rgba(5, 4, 10, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ticker__ruler {
  height: 12px; margin-bottom: 1rem; opacity: 0.8; background-position: var(--rx, 0px) bottom;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px 64px), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 16px);
  background-size: 100% 12px, 100% 6px; background-repeat: repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track { display: flex; align-items: center; gap: 1.8rem; width: max-content; animation: tick 46s linear infinite; }
.ticker__track span { font: 700 clamp(1.3rem, 2.6vw, 2.2rem)/1 var(--font-display); letter-spacing: -0.03em; white-space: nowrap; }
.ticker__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.42); }
.ticker__track i { flex: none; width: 10px; height: 10px; border-radius: 1px; background: var(--violet); transform: rotate(45deg); box-shadow: 0 0 14px var(--violet); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about { position: relative; padding: clamp(6rem, 15vh, 10rem) 0 clamp(5rem, 12vh, 9rem); }
.manifesto { max-width: 21em; margin-top: 1.6rem; font: 600 clamp(1.75rem, 0.95rem + 2.7vw, 3.6rem)/1.15 var(--font-display); letter-spacing: -0.035em; text-shadow: 0 2px 30px rgba(5, 4, 10, 0.6); }
.js .manifesto .mw { opacity: 0.17; transition: opacity 0.35s linear; }
.js .manifesto .mw.on { opacity: 1; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(3.5rem, 9vh, 6rem); border-top: 1px solid var(--line); }
.pillar { padding: 1.6rem 1.8rem 0 0; }
.pillar + .pillar { padding-left: 1.8rem; border-left: 1px solid var(--line); }
.pillar h3 { margin: 1.1rem 0 0.5rem; font: 600 1.35rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.pillar p { color: var(--ink-2); }

/* ---------- services ---------- */
.services { position: relative; padding: clamp(5rem, 12vh, 9rem) 0; }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.svc {
  position: relative; display: flex; flex-direction: column; padding: 1.4rem 1.4rem 1.1rem;
  border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: border-color 0.35s, background-color 0.35s;
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s var(--ease);
  background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 0%), rgba(138, 78, 252, 0.22), transparent 60%);
}
.svc:hover { border-color: rgba(180, 157, 255, 0.35); }
.svc:hover::before { opacity: 1; }
.svc--featured { border-color: rgba(180, 157, 255, 0.3); background: linear-gradient(180deg, rgba(138, 78, 252, 0.17), rgba(138, 78, 252, 0.03)); }
.svc__head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.badge { padding: 0.45rem 0.65rem; border-radius: 999px; background: var(--violet); color: #fff; font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.svc h3 { margin-bottom: 0.55rem; font: 600 1.32rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.svc > p { color: var(--ink-2); font-size: 0.96rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 1.15rem 0 1.4rem; }
.tags li { padding: 0.5rem 0.62rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.05em; }
.svc__ask { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; font: 600 0.95rem/1 var(--font-display); color: var(--violet-2); }
.svc__ask svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.svc__ask:hover svg { transform: translateX(4px); }

/* extruded 3D icons: site.js stacks copies of the glyph in depth; the stack turns with the
   card's pointer tilt (--rx/--ry are inherited) and floats over a glowing pedestal */
.icon3d { position: relative; width: 120px; height: 112px; margin: 1.2rem 0 1.1rem -6px; perspective: 520px; }
.icon3d::before {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 96px; height: 26px; margin-left: -48px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(138, 78, 252, 0.6), rgba(138, 78, 252, 0.14) 62%, transparent);
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}
.icon3d::after {
  content: ""; position: absolute; left: 50%; bottom: 10px; width: 64px; height: 12px; margin-left: -32px; border-radius: 50%;
  border: 1px solid rgba(196, 176, 255, 0.45); transform: rotateX(0deg); opacity: 0.7;
}
.icon3d__stack {
  position: absolute; left: 50%; top: 40%; width: 62px; height: 62px; margin: -31px 0 0 -31px; transform-style: preserve-3d;
  transform: translateY(var(--lift, 0px)) rotateX(calc(16deg + var(--rx, 0deg) * 2.2)) rotateY(calc(-32deg + var(--ry, 0deg) * 3));
  transition: transform 0.8s var(--ease);
  animation: iconBob 5.5s ease-in-out infinite;
}
.icon3d__stack svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--layer, #fff); transform: translateZ(calc(var(--l, 0) * 1.35px)); }
.icon3d__stack svg.is-face { color: #fff; filter: drop-shadow(0 0 7px rgba(196, 176, 255, 0.95)); }
.svc:hover .icon3d__stack, .svc:focus-within .icon3d__stack { --lift: -8px; transform: translateY(var(--lift)) rotateX(calc(8deg + var(--rx, 0deg) * 2.2)) rotateY(calc(-10deg + var(--ry, 0deg) * 3)); }
.svc:hover .icon3d::before { transform: scale(1.12); }
@keyframes iconBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

/* pointer tilt (site.js sets --rx/--ry/--px/--py while hovering) */
[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease), border-color 0.35s, background-color 0.35s; }
[data-tilt].is-tilting { transition: transform 0.12s linear, border-color 0.35s, background-color 0.35s; }

/* ---------- process: pinned, the 3D ring lights up around the circle ---------- */
.process { position: relative; height: 400vh; }
.process__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.process__copy { max-width: min(560px, 47vw); }
.steps { margin-top: 2rem; }
.step { display: grid; grid-template-columns: 3.2rem 1fr; padding: 1rem 0; border-top: 1px solid var(--line); opacity: 0.38; transition: opacity 0.5s var(--ease); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .idx { padding-top: 0.35rem; transition: color 0.4s; }
.step h3 { font: 600 1.3rem/1.25 var(--font-display); letter-spacing: -0.02em; }
.step p { max-height: 0; overflow: hidden; opacity: 0; color: var(--ink-2); transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease), margin-top 0.6s var(--ease); }
.step.is-done { opacity: 0.62; }
.step.is-active { opacity: 1; }
.step.is-active .idx { color: var(--violet-2); }
.step.is-active p { max-height: 6em; opacity: 1; margin-top: 0.4rem; }
.meter { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.6rem; color: var(--ink-3); font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.08em; }
.meter__now { color: var(--ink); min-width: 1.6em; }
.meter__bar { position: relative; flex: 1; max-width: 240px; height: 2px; border-radius: 2px; overflow: hidden; background: var(--line-2); }
.meter__bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--violet-3), var(--violet-2)); }

/* ---------- work: glass logo tiles; the 3D orbit turns behind them and shows through ---------- */
.work { position: relative; padding: clamp(5rem, 12vh, 9rem) 0 clamp(5rem, 12vh, 8rem); }
.sec-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; max-width: none; }
.sec-head--row > div { max-width: 780px; }
/* laurels: real milestones only (the branches are a mask, so they take any colour) */
.laurels { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; padding-bottom: 0.3rem; }
.laurel { display: inline-flex; align-items: center; gap: 0.35rem; }
.laurel::before, .laurel::after {
  content: ""; flex: none; width: 1.6rem; height: 3.4rem; background: var(--violet-2);
  -webkit-mask: var(--laurel) center / contain no-repeat; mask: var(--laurel) center / contain no-repeat;
}
.laurel::after { transform: scaleX(-1); }
.laurel__text { display: grid; justify-items: center; text-align: center; color: var(--ink-2); font: 500 0.62rem/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.laurel__text b { margin: 0.12rem 0; color: var(--ink); font: 800 1.7rem/1 var(--font-display); letter-spacing: -0.03em; text-transform: none; }
.family { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.family > li { display: flex; }
.tile {
  position: relative; flex: 1; display: flex; flex-direction: column; min-height: 236px; padding: 1rem 1.15rem 1.2rem;
  border-radius: var(--r); border: 1px solid rgba(255, 255, 255, 0.14); overflow: hidden; isolation: isolate;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.33), rgba(255, 255, 255, 0.08)), rgba(14, 12, 24, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transition: transform 0.6s var(--ease), border-color 0.35s, box-shadow 0.45s var(--ease);
}
.tile.is-tilting { transition: transform 0.12s linear, border-color 0.35s, box-shadow 0.45s var(--ease); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.45s var(--ease);
  background: radial-gradient(320px circle at var(--sx, 50%) var(--sy, 30%), rgba(138, 78, 252, 0.2), transparent 62%);
}
.tile:hover, .tile:focus-visible {
  border-color: rgba(180, 157, 255, 0.42);
  box-shadow: inset 1px 1px 22px -8px rgba(196, 176, 255, 0.65), 0 24px 48px -28px rgba(138, 78, 252, 0.9);
}
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 20px; }
.tile__tag, .tile__note { font: 500 0.64rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); transition: color 0.3s; }
.tile__note { color: #6f6a86; }
.tile:hover .tile__tag { color: var(--violet-2); }
.tile__go { flex: none; width: 16px; height: 16px; color: var(--ink-3); transition: transform 0.3s var(--ease), color 0.3s; }
.tile:hover .tile__go, .tile:focus-visible .tile__go { transform: translate(2px, -2px); color: var(--violet-2); }
.tile__logo { flex: 1; display: grid; place-items: center; min-height: 92px; padding-block: 0.6rem; }
.tile__logo img { grid-area: 1 / 1; width: 64px; height: 64px; object-fit: contain; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.tile__logo--wide img { width: 150px; max-width: 100%; height: auto; }
.tile__color { opacity: 0; }
.tile:hover .tile__mono, .tile:focus-visible .tile__mono { opacity: 0; }
.tile:hover .tile__color, .tile:focus-visible .tile__color { opacity: 1; }
.tile:hover .tile__logo img, .tile:focus-visible .tile__logo img { transform: translateY(-3px) scale(1.04); }
/* every logo turns white its own way: line art, wordmarks and ink cut-outs become a white silhouette,
   neon marks (cut out of their black square) and full colour badges go grayscale.
   A wordmark drawn in dark ink sits on a light chip when it shows its real colours. */
.tile__logo--sil .tile__mono { filter: brightness(0) invert(1); }
.tile__logo--neon .tile__mono { filter: grayscale(1) brightness(1.5); }
.tile__logo--badge .tile__mono { filter: grayscale(1) brightness(1.1); }
.tile__logo--badge .tile__mono, .tile__logo--neon .tile__mono { opacity: 0.88; }
.tile__logo--card img { width: 72px; height: 70px; }
.tile__logo--card .tile__color { border-radius: 12px; }
.tile__color--light { padding: 6px; border-radius: 14px; background: #f6f3fc; }
.tile__logo--wide .tile__color--light { padding: 6px 10px; }
.tile__name { font: 600 1.08rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.tile__desc { margin-top: 0.3rem; color: var(--ink-3); font-size: 0.86rem; line-height: 1.4; }

/* ---------- team: flip cards (photo on the front; bio and what they handle on the back) ---------- */
.team { position: relative; padding: clamp(5rem, 12vh, 9rem) 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.member { position: relative; perspective: 1400px; }
/* both faces share one grid cell, so the card is as tall as its taller face */
.member__inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform 0.9s var(--ease); }
.member.is-flipped .member__inner { transform: rotateY(180deg); }
.member__face {
  grid-area: 1 / 1; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: #0c0a16;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.member__face--back {
  transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; padding: 1.8rem 1.6rem 5rem;
  border-color: rgba(180, 157, 255, 0.3);
  background: radial-gradient(120% 70% at 15% 0%, rgba(138, 78, 252, 0.34), transparent 62%), linear-gradient(170deg, #1b1434, #0c0a16 70%);
}
.member__face--back::before {   /* the ITs mark as a stamp in the empty top corner */
  content: ""; position: absolute; left: 1.6rem; top: 1.6rem; width: 44px; height: 44px; opacity: 0.9;
  background: url("images/brand/its-mark.svg") center / contain no-repeat; filter: drop-shadow(0 0 14px rgba(138, 78, 252, 0.55));
}
.member__back-name { font: 700 2rem/1 var(--font-display); letter-spacing: -0.03em; }
.member__bio { margin-top: 1rem; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.member__handles-label { margin-top: 1.6rem; color: var(--violet-2); font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.member__handles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.75rem; }
.member__handles li { padding: 0.5rem 0.75rem; border-radius: 999px; border: 1px solid rgba(180, 157, 255, 0.35); background: rgba(138, 78, 252, 0.12); font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.04em; }
/* the whole card is the button; the chip shows where to tap */
.member__flip { position: absolute; inset: 0; z-index: 3; padding: 0; border-radius: var(--r-lg); background: none; cursor: pointer; }
.member__flip:focus-visible { outline-offset: 4px; }
.member__flip-chip {
  position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0 0.95rem;
  border-radius: 999px; border: 1px solid rgba(180, 157, 255, 0.4); background: rgba(12, 10, 22, 0.72); color: var(--ink);
  font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color 0.25s, border-color 0.25s;
}
.member__flip-chip svg { width: 15px; height: 15px; transition: transform 0.6s var(--ease); }
.member:hover .member__flip-chip, .member__flip:focus-visible .member__flip-chip { background: var(--violet); border-color: transparent; }
.member:hover .member__flip-chip svg { transform: rotate(180deg); }
.member__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #120f1f; }
.member__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease);
  background: linear-gradient(180deg, transparent 55%, rgba(12, 10, 22, 0.85)), repeating-linear-gradient(0deg, rgba(196, 176, 255, 0.07) 0 1px, transparent 1px 4px);
}
.member:hover .member__photo::after { opacity: 1; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; scale: 1.06; translate: calc(var(--px, 0) * -8px) calc(var(--py, 0) * -8px); transition: translate 0.6s var(--ease), scale 0.8s var(--ease); }
.member:hover .member__photo img { scale: 1.1; }
.member__body { padding: 1.3rem 7.5rem 1.5rem 1.4rem; }
.member__body h3 { font: 700 1.5rem/1.1 var(--font-display); letter-spacing: -0.03em; }
.member__role { margin-top: 0.5rem; color: var(--violet-2); font: 500 0.72rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- contact ---------- */
.contact { position: relative; padding: clamp(6rem, 15vh, 10rem) 0 clamp(5rem, 12vh, 8rem); overflow-x: clip; }   /* the summon glow and spread never widen the page */
.contact__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.contact__title { max-width: 11.5ch; margin: 1.2rem 0 1.2rem; font: 800 clamp(2.8rem, 0.9rem + 7.4vw, 8.4rem)/0.92 var(--font-display); letter-spacing: -0.055em; text-shadow: 0 4px 40px rgba(5, 4, 10, 0.5); }

/* the free consultation card rises out of a spread of face-down cards (Story Kit summon, in ITs violet) */
.summon { --card-w: clamp(210px, 18vw, 250px); position: relative; display: grid; place-items: center; width: min(100%, calc(var(--card-w) * 1.75)); min-height: calc(var(--card-w) * 1.9); perspective: 900px; }
/* side by side, the face-down spread is wider than the card column (overhang ~0.37 card per side): when the space
   right of the content edge is too small for it, slide the summon left just enough; on wide screens it stays aligned with the form */
@media (min-width: 900px) {
  .summon { translate: min(0px, calc((100vw - min(100vw, var(--maxw))) / 2 + var(--pad) - 16px - var(--card-w) * 0.37)) 0; }
}
.summon__spread { position: absolute; left: 50%; bottom: 3%; display: flex; gap: 10px; translate: -50% 0; transform: rotateX(68deg); }
.summon__spread i {
  display: block; width: calc(var(--card-w) * 0.5); aspect-ratio: 5 / 7; border-radius: 12px; border: 1px solid rgba(180, 157, 255, 0.35);
  background: url("images/brand/its-mark.svg") center / 46% no-repeat, linear-gradient(160deg, #261b4d, #0f0c1e);
  box-shadow: 0 0 34px rgba(138, 78, 252, 0.4);
}
.summon__glow {
  position: absolute; z-index: 1; left: 50%; top: 46%; width: calc(var(--card-w) * 1.6); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(138, 78, 252, 0.5), rgba(138, 78, 252, 0.14) 60%, transparent); opacity: 0; pointer-events: none;
}
.summon__card {
  position: relative; z-index: 2; width: var(--card-w); padding: 1.5rem 1.3rem 1.35rem; border-radius: 22px; text-align: center; transform-origin: 50% 100%;
  border: 1px solid rgba(180, 157, 255, 0.4); background: linear-gradient(165deg, rgba(50, 34, 100, 0.97), rgba(16, 12, 30, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 60px -24px rgba(0, 0, 0, 0.8);
}
.summon__mark { display: block; width: 64px; height: 64px; margin: 0 auto 0.9rem; filter: drop-shadow(0 0 18px rgba(138, 78, 252, 0.6)); }
.summon__step { color: var(--violet-2); font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.summon__title { margin: 0.55rem 0 0.5rem; font: 700 1.45rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.summon__text { color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }
.summon__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 46px; margin-top: 1.1rem; padding: 0 1.1rem; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, #a07bff, var(--violet) 45%, var(--violet-3)); color: #fff; font: 600 0.92rem/1 var(--font-display);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 12px 28px -12px rgba(138, 78, 252, 0.95); transition: transform 0.3s var(--ease);
}
.summon__cta:hover { transform: translateY(-2px); }
.summon__cta svg { transition: transform 0.3s var(--ease); }
.summon__cta:hover svg { transform: translateX(3px); }
.summon__spark { position: absolute; left: 50%; bottom: 16%; z-index: 3; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #e2d8ff; box-shadow: 0 0 12px 3px rgba(180, 157, 255, 0.85); opacity: 0; pointer-events: none; }
.summon__spark:nth-of-type(1) { --x0: -30px; --x1: -80px; }
.summon__spark:nth-of-type(2) { --x0: 10px; --x1: 40px; }
.summon__spark:nth-of-type(3) { --x0: 40px; --x1: 110px; }
.summon__spark:nth-of-type(4) { --x0: -60px; --x1: -20px; }
.summon__spark:nth-of-type(5) { --x0: 70px; --x1: 30px; }
.summon__spark:nth-of-type(6) { --x0: -10px; --x1: -120px; }
/* hidden until site.js sees the section, then it stands up out of the spread, glows and keeps floating */
.sj .summon__card { opacity: 0; transform: translateY(30%) rotateX(76deg) scale(0.72); }
.summon.is-summoned .summon__card { opacity: 1; transform: none; transition: transform 1.7s var(--ease), opacity 0.8s ease; animation: summonFloat 5s 1.7s ease-in-out infinite; }
.summon.is-summoned .summon__glow { opacity: 1; transition: opacity 1.2s 0.7s; animation: summonPulse 3.4s 1.9s ease-in-out infinite; }
.summon.is-summoned .summon__spark { animation: summonSpark 2.6s ease-out infinite; }
.summon.is-summoned .summon__spark:nth-of-type(1) { animation-delay: 0.6s; }
.summon.is-summoned .summon__spark:nth-of-type(2) { animation-delay: 1s; }
.summon.is-summoned .summon__spark:nth-of-type(3) { animation-delay: 1.5s; }
.summon.is-summoned .summon__spark:nth-of-type(4) { animation-delay: 1.9s; }
.summon.is-summoned .summon__spark:nth-of-type(5) { animation-delay: 2.3s; }
.summon.is-summoned .summon__spark:nth-of-type(6) { animation-delay: 2.8s; }
@keyframes summonFloat { 50% { translate: 0 -10px; } }
@keyframes summonPulse { 50% { opacity: 0.6; scale: 1.07; } }
@keyframes summonSpark { 0% { opacity: 0; transform: translate(var(--x0, 0), 0) scale(0.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x1, 0), -240px) scale(0.2); } }
/* the narrowest phones: slimmer face-down cards so the spread stays on screen */
@media (max-width: 359px) {
  .summon__spread { gap: 8px; }
  .summon__spread i { width: calc(var(--card-w) * 0.44); }
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.channels { border-top: 1px solid var(--line); }
.channel { display: flex; align-items: center; gap: 1rem; min-height: 80px; padding: 0.9rem 0.2rem; border-bottom: 1px solid var(--line); transition: padding 0.45s var(--ease), background-color 0.3s; }
.channel:hover { padding-left: 0.8rem; background: linear-gradient(90deg, rgba(138, 78, 252, 0.1), transparent 70%); }
.channel__ic { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: rgba(138, 78, 252, 0.12); border: 1px solid rgba(180, 157, 255, 0.3); color: var(--violet-2); }
.channel__ic svg { width: 22px; height: 22px; }
.channel__txt { display: grid; gap: 0.15rem; min-width: 0; }
.channel__txt b { font: 600 1.06rem/1.2 var(--font-display); }
.channel__txt span { color: var(--ink-2); font-size: 0.93rem; overflow-wrap: anywhere; }
.channel__go { margin-left: auto; color: var(--ink-3); font-size: 1.25rem; transition: transform 0.3s var(--ease), color 0.3s; }
.channel:hover .channel__go { transform: translate(3px, -3px); color: var(--violet-2); }
.form { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-lg); background: rgba(12, 10, 22, 0.74); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.5rem; color: var(--ink-2); font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(5, 4, 10, 0.6); color: var(--ink); font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 2.8rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b49dff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
}
.field select option { background: #0c0a16; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #6f6a86; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(138, 78, 252, 0.22); }
.field [aria-invalid="true"] { border-color: #f87171; }
.field select.is-picked { animation: picked 1.4s var(--ease); }
@keyframes picked { 0% { border-color: var(--violet-2); box-shadow: 0 0 0 0 rgba(138, 78, 252, 0.7); } 100% { box-shadow: 0 0 0 14px rgba(138, 78, 252, 0); } }
.form .btn { margin-top: 0.4rem; }
.form-note { margin-top: 1rem; color: var(--ink-2); font-size: 0.93rem; line-height: 1.5; }
.form-note.is-error { color: #fca5a5; }
.form-note a { color: var(--violet-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.footer { padding: clamp(3.5rem, 9vh, 6rem) 0 2rem; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(5, 4, 10, 0.35), #05040a 45%); overflow: hidden; }
.footer__big {
  display: inline-block; margin-bottom: 2.6rem; white-space: nowrap; user-select: none;
  font: 800 var(--fit, 9.5vw)/0.86 var(--font-display); letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(180, 157, 255, 0.4);
  background: linear-gradient(100deg, transparent 30%, rgba(180, 157, 255, 0.9) 50%, transparent 70%) no-repeat;
  background-size: 250% 100%; background-position: 120% 0; -webkit-background-clip: text; background-clip: text;
  transition: background-position 1.6s var(--ease);
}
.footer__big.is-in { background-position: -20% 0; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.footer__brand { display: flex; align-items: center; gap: 0.9rem; max-width: 380px; color: var(--ink-2); }
.footer__brand img { flex: none; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); transition: color 0.2s; }
.footer__links a:hover { color: var(--ink); }
.footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; color: var(--ink-3); font-size: 0.86rem; }
.footer__base b { color: var(--ink-2); font-weight: 600; }
.footer__replay { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.25s, border-color 0.25s, background-color 0.25s; }
.footer__replay:hover { color: #fff; border-color: rgba(180, 157, 255, 0.5); background: rgba(138, 78, 252, 0.14); }

/* ---------- intro replay player ---------- */
.player { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: var(--pad); background: rgba(3, 2, 8, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.player[hidden] { display: none; }
.player__video { width: min(1120px, 100%); aspect-ratio: 16 / 9; border-radius: 18px; background: #000; box-shadow: 0 40px 120px -24px rgba(138, 78, 252, 0.55); }
.player__close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }

/* ---------- chat button ---------- */
.chat-fab {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: inline-flex; align-items: center; gap: 0.6rem; height: 56px; padding: 0 1.2rem 0 0.45rem; border-radius: 999px;
  background: linear-gradient(135deg, #a07bff, var(--violet) 45%, var(--violet-3)); color: #fff; font: 600 0.95rem/1 var(--font-display);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 32px -12px rgba(138, 78, 252, 0.9);
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease), visibility 0s;
}
.chat-fab:hover { transform: translateY(-3px); }
.chat-fab__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.chat-fab.is-tucked { transform: translateY(150%); opacity: 0; visibility: hidden; transition: transform 0.45s var(--ease), opacity 0.35s var(--ease), visibility 0s 0.45s; }

/* ---------- custom cursor (fine pointers only; the native cursor stays) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; will-change: transform; }
.has-cursor .cursor { display: block; }
.cursor__ring {
  position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(196, 176, 255, 0.55);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), left 0.35s var(--ease), top 0.35s var(--ease), background-color 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor.is-hover .cursor__ring { width: 58px; height: 58px; left: -29px; top: -29px; background: rgba(138, 78, 252, 0.14); border-color: rgba(196, 176, 255, 0.85); }
.cursor.is-hidden .cursor__ring { opacity: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__bar { height: 60px; }
  .nav__brand img { width: 36px; height: 36px; }
  /* the 3D ring sits on top, copy below it */
  .hero { padding-top: calc(var(--ring-gap, 46svh)); }
  .hero__grid { align-items: start; }
  .hero__copy { max-width: none; padding-block: 0 1rem; }
  .hero__title { margin-top: 1.1rem; }
  .no-gl .hero__fallback { position: absolute; top: calc(-1 * var(--ring-gap, 46svh) + 100px); left: 50%; right: auto; width: min(64vw, 300px); translate: -50% 0; }
  .no-gl .hero { padding-top: 400px; }
  .hero__proof { grid-template-columns: 1fr; margin-top: 2rem; }
  .hero__proof li { padding: 1rem 0; }
  .hero__proof li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero__scroll { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 1.4rem 0 1.6rem; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .process { height: 340vh; }
  .process__pin { align-items: flex-end; padding-bottom: max(5vh, 24px); }
  .process__copy { max-width: none; }
  .process .sec-title { margin: 0.8rem 0 0.4rem; font-size: clamp(2rem, 8.4vw, 2.8rem); }
  .steps { margin-top: 0.8rem; }
  .step { padding: 0.7rem 0; }
  .step h3 { font-size: 1.1rem; }
  .family { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile { min-height: 214px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__head { grid-template-columns: 1fr; }
  .summon { justify-self: center; }
}
@media (max-width: 599px) {
  .svc-grid, .team-grid { grid-template-columns: 1fr; }
  .icon3d { margin-top: 1rem; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .tile { min-height: 196px; padding: 0.85rem 0.9rem 1rem; }
  .tile__logo { min-height: 80px; }
  .tile__logo img { width: 56px; height: 56px; }
  .tile__logo--wide img { width: 124px; height: auto; }
  .tile__name { font-size: 0.98rem; }
  .tile__desc { font-size: 0.8rem; }
  .summon { --card-w: 196px; }                 /* the spread of three still fits a 320 px screen */
  .footer__base { flex-direction: column; align-items: flex-start; }
  .process__pin { padding-bottom: 92px; }      /* keep the meter clear of the chat button */
  .chat-fab { right: 14px; width: 56px; padding: 0; justify-content: center; }
  .chat-fab__label { display: none; }
  .chat-fab__ic { background: none; }
}
@media (max-width: 399px) {
  .tile__note { display: none; }               /* two tags don't fit on one line in half-width tiles */
}
@media (max-height: 640px) and (max-width: 899px) {
  .step p { display: none; }
}

/* ============================================================
   Reduced motion: no intro, no pinning, everything visible
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .process { height: auto; }
  .process__pin { position: static; height: auto; padding-block: 5rem; }
  .step, .step.is-done { opacity: 1; }
  .step p { max-height: none; opacity: 1; margin-top: 0.4rem; }
  .js [data-split] .w__in, .js [data-reveal] { opacity: 1; transform: none; translate: 0 0; }
  .js .manifesto .mw { opacity: 1; }
  .cursor { display: none !important; }
  .summon__spark { display: none; }
}
