/* =========================================================
   Ponytoe Technology — style.css
   ========================================================= */
:root {
  --bg: #06060a;
  --bg-2: #0c0c14;
  --panel: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f3f2f7;
  --muted: #9a98ab;
  --violet: #8b5cff;
  --cyan: #22e1ff;
  --lime: #c6ff3d;
  --grad: linear-gradient(100deg, var(--violet) 0%, var(--cyan) 55%, var(--lime) 100%);
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Space Grotesk", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

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

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }

/* ---------- typography ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.gradient-text {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradShift 8s linear infinite;
}
@keyframes gradShift { 0% { background-position: 0% 0; } 50% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
.muted { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); max-width: 56ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 28px;
}
.kicker span {
  font-family: var(--f-display); font-size: 11px; color: #000; background: var(--lime);
  padding: 4px 8px; border-radius: 99px; letter-spacing: .05em;
}
.section-head { margin-bottom: clamp(48px, 7vw, 96px); display: grid; gap: 24px; }
.section-head--split { grid-template-columns: 1.4fr 1fr; align-items: end; }

/* ---------- buttons ---------- */
.btn {
  --h: 58px;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 28px; border-radius: 99px;
  background: var(--text); color: #07070a;
  font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad); transform: translateY(101%); border-radius: inherit;
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { color: #07070a; }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--xl { --h: 68px; padding: 0 36px; font-size: 18px; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: grid; place-items: center;
}
.preloader__inner { width: min(560px, 86vw); }
.preloader__brand { font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 9vw, 88px); letter-spacing: -.04em; line-height: .9; display: flex; flex-direction: column; }
.preloader__sub { font-weight: 300; font-size: .28em; letter-spacing: .6em; color: var(--muted); margin-top: 12px; }
.preloader__count { font-family: var(--f-display); font-size: 16px; margin: 40px 0 12px; color: var(--muted); }
.preloader__bar { height: 2px; background: var(--line); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* ---------- cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 999; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255,255,255,.7);
  display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s var(--ease);
}
.cursor__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .3s; }
.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; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- global fx ---------- */
#webgl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }
.grain {
  position: fixed; inset: -50%; z-index: 998; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-5%,3%)} 40%{transform:translate(4%,-6%)} 60%{transform:translate(-3%,5%)} 80%{transform:translate(6%,2%)} 100%{transform:translate(0,0)} }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 101; }
.scroll-progress i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s;
}
.header.is-scrolled { background: rgba(6,6,10,.55); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.header.is-hidden { transform: translateY(-110%); }
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo__mark { width: 34px; height: 34px; transition: transform .8s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-360deg); }
.logo__text { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; line-height: 1; display: flex; flex-direction: column; }
.logo__text small { font-family: var(--f-body); font-weight: 400; font-size: 10px; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 6px; padding: 6px; border-radius: 99px; background: rgba(255,255,255,.04); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.nav a { font-size: 14px; padding: 8px 16px; border-radius: 99px; color: var(--muted); transition: color .3s, background .3s; }
.nav a:hover, .nav a.is-active { color: var(--text); background: rgba(255,255,255,.08); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease); }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 25px; }
body.menu-open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(6,6,10,.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: space-between; padding: 110px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .9s var(--ease);
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); }
.menu__links { display: flex; flex-direction: column; }
.menu__links a { font-family: var(--f-display); font-size: clamp(32px, 9vw, 64px); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; display: flex; align-items: baseline; gap: 14px; }
.menu__links em { font-style: normal; font-family: var(--f-body); font-size: 13px; color: var(--lime); }
.menu__foot { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px var(--gutter) clamp(48px, 7vh, 88px); overflow: hidden; }
.hero__content { position: relative; z-index: 2; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; padding: 8px 16px 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.03); backdrop-filter: blur(8px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(198,255,61,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(198,255,61,0); } 100% { box-shadow: 0 0 0 0 rgba(198,255,61,0); } }
.hero__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(40px, min(7.6vw, 13.5vh), 148px); line-height: .92; letter-spacing: -.055em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .split { display: inline-block; }
.hero__title .outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); font-weight: 400; }
.hero__dot { color: var(--lime); }
.char { display: inline-block; will-change: transform; }
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: clamp(28px, 4vw, 56px); flex-wrap: wrap; }
.hero__lead { max-width: 46ch; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__badge { position: absolute; top: clamp(110px, 16vh, 170px); right: var(--gutter); width: 170px; height: 170px; z-index: 2; }
.badge-ring { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge-ring text { fill: var(--text); font-size: 13.5px; letter-spacing: 2.6px; font-weight: 500; }
.badge-core { position: absolute; inset: 34px; border-radius: 50%; background: var(--lime); color: #000; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.badge-core strong { font-family: var(--f-display); font-size: 34px; font-weight: 900; letter-spacing: -.04em; }
.badge-core span { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__hud { position: absolute; left: var(--gutter); top: 104px; z-index: 2; display: flex; gap: 28px; font-size: 12px; }
.hero__hud div { display: flex; flex-direction: column; border-left: 1px solid var(--line-2); padding-left: 12px; }
.hud-k { color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; }
.hud-v { font-family: var(--f-display); font-size: 13px; font-variant-numeric: tabular-nums; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); z-index: 2; }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--text), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- ticker ---------- */
.ticker { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid var(--line); background: rgba(6,6,10,.6); backdrop-filter: blur(10px); padding: 22px 0; transform: rotate(-1.5deg) scale(1.03); }
.ticker__track { display: flex; gap: 36px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--f-display); font-size: clamp(22px, 3vw, 40px); font-weight: 500; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.ticker__track span:nth-child(4n+1) { color: transparent; -webkit-text-stroke: 1px var(--text); }
.ticker__track b { color: var(--lime); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about__statement { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 3.4vw, 52px); line-height: 1.22; letter-spacing: -.025em; max-width: 1240px; }
.about__statement .w { opacity: .14; transition: none; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 24px; }
.stat__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(44px, 5.4vw, 88px); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num em { font-style: normal; font-size: .42em; margin-left: 4px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: var(--muted); font-size: 14px; margin-top: 12px; line-height: 1.35; }

/* ---------- model (horizontal) ---------- */
.model { position: relative; }
.model__pin { position: relative; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.model__intro { flex: 0 0 min(480px, 38vw); margin-right: clamp(24px, 5vw, 80px); align-self: center; }
.model__intro .muted { margin-top: 24px; }
.model__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 8vh; height: 2px; background: var(--line); }
.model__progress i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.model__track { display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter); will-change: transform; }
.pillar {
  position: relative; flex: 0 0 clamp(300px, 28vw, 400px); height: min(520px, 64vh);
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .4s, transform .6s var(--ease);
}
.pillar::after { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 70%; background: radial-gradient(closest-side, rgba(139,92,255,.35), transparent); opacity: 0; transition: opacity .6s; }
.pillar:hover { border-color: var(--line-2); transform: translateY(-8px); }
.pillar:hover::after { opacity: 1; }
.pillar__n { font-family: var(--f-display); font-size: 88px; font-weight: 900; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.pillar__tag { position: absolute; top: 32px; right: 32px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.pillar__icon { margin-top: auto; width: 56px; height: 56px; }
.pillar__icon svg, .card__icon svg { width: 100%; height: 100%; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-family: var(--f-display); font-weight: 500; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; margin: 24px 0 12px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* ---------- services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 36px; min-height: 340px; border-radius: var(--radius);
  background: rgba(12,12,20,.72); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  transition: border-color .4s;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(400px circle at var(--mx) var(--my), rgba(34,225,255,.8), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
.card__glow { position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx) var(--my), rgba(139,92,255,.16), transparent 40%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover::before, .card:hover .card__glow { opacity: 1; }
.card__top { display: flex; align-items: center; gap: 12px; margin-bottom: auto; transform: translateZ(40px); }
.card__n { font-family: var(--f-display); font-size: 13px; color: var(--muted); }
.chip { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #000; background: var(--lime); padding: 4px 10px; border-radius: 99px; }
.card__icon { margin-left: auto; width: 52px; height: 52px; transition: transform .8s var(--ease); }
.card:hover .card__icon { transform: rotate(-12deg) scale(1.12); }
.card h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -.025em; line-height: 1.1; margin: 48px 0 14px; transform: translateZ(60px); }
.card p { color: var(--muted); font-size: 15px; transform: translateZ(30px); }

/* ---------- products ---------- */
.products__wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.products__tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.products__tabs button {
  position: relative; display: flex; align-items: baseline; gap: 20px; text-align: left;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: clamp(26px, 3.2vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1;
  color: rgba(243,242,247,.28); transition: color .5s var(--ease), padding .6s var(--ease);
}
.products__tabs button em { font-style: normal; font-family: var(--f-body); font-size: 13px; letter-spacing: .1em; }
.products__tabs button::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.products__tabs button[aria-selected="true"] { color: var(--text); padding-left: 16px; }
.products__tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.products__tabs button:hover { color: var(--text); }
.products__stage { position: relative; min-height: 480px; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 80% 0%, rgba(139,92,255,.18), transparent 60%), rgba(12,12,20,.7); backdrop-filter: blur(14px); overflow: hidden; padding: clamp(28px, 4vw, 56px); display: flex; align-items: flex-end; }
.orbit { position: absolute; top: -12%; right: -12%; width: 420px; height: 420px; }
.orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.14); animation: spin 30s linear infinite; }
.orbit i:nth-child(2) { inset: 60px; border-style: solid; border-color: rgba(34,225,255,.22); animation-duration: 18s; animation-direction: reverse; }
.orbit i:nth-child(3) { inset: 120px; border-color: rgba(198,255,61,.3); animation-duration: 12s; }
.orbit i::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.orbit i:nth-child(3)::before { background: var(--lime); box-shadow: 0 0 20px var(--lime); }
.orbit__core { position: absolute; inset: 170px; border-radius: 50%; background: var(--grad); filter: blur(2px); box-shadow: 0 0 80px rgba(139,92,255,.7); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.25); } }
.products__panels { position: relative; width: 100%; display: grid; }
.panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.panel.is-active { opacity: 1; visibility: visible; }
.panel h3 { font-family: var(--f-display); font-size: clamp(36px, 4.4vw, 68px); font-weight: 700; letter-spacing: -.045em; line-height: 1; margin-bottom: 24px; }
.panel p { color: var(--muted); max-width: 48ch; margin-top: 24px; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); font-size: 15px; }

/* ---------- why ---------- */
.why__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.why__sticky { position: sticky; top: 18vh; }
.why__sticky .muted { margin-top: 24px; }
.why__stack { display: grid; gap: 24px; }
.stack-card {
  position: sticky; top: calc(16vh + var(--i, 0) * 28px);
  min-height: 300px; padding: clamp(28px, 3.5vw, 48px); border-radius: var(--radius);
  border: 1px solid var(--line-2); background: #0e0e17;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 -20px 60px rgba(0,0,0,.5); transform-origin: top center;
  overflow: hidden;
}
.stack-card:nth-child(1) { background: linear-gradient(145deg, #1a1235, #0e0e17 70%); }
.stack-card:nth-child(2) { background: linear-gradient(145deg, #0b2a33, #0e0e17 70%); }
.stack-card:nth-child(3) { background: linear-gradient(145deg, #25300c, #0e0e17 70%); }
.stack-card:nth-child(4) { background: var(--grad); color: #07070a; border: 0; }
.stack-card span { position: absolute; top: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px); font-family: var(--f-display); font-size: 72px; font-weight: 900; line-height: 1; letter-spacing: -.06em; opacity: .25; }
.stack-card h3 { font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 12px; }
.stack-card p { color: var(--muted); max-width: 44ch; }
.stack-card:nth-child(4) p { color: rgba(7,7,10,.75); }

/* ---------- global ---------- */
.global__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.global__text .muted { margin-top: 24px; }
.offices { list-style: none; margin-top: 48px; border-top: 1px solid var(--line); }
.offices li { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); cursor: default; transition: padding .5s var(--ease); }
.offices li:hover, .offices li.is-active { padding-left: 14px; }
.offices__city { font-family: var(--f-display); font-size: 22px; font-weight: 500; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.offices__city::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.offices__city em { font-style: normal; font-family: var(--f-body); font-size: 10px; letter-spacing: .14em; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--muted); }
.offices__addr { color: var(--muted); font-size: 14px; padding-left: 18px; }
.global__globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 680px; justify-self: center; }
#globe { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#globe:active { cursor: grabbing; }
.globe-hint { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* ---------- testimonials ---------- */
.stories { overflow: hidden; }
.marquee { display: flex; width: max-content; gap: 20px; padding: 10px 0; animation: marquee 70s linear infinite; }
.marquee--reverse { animation-direction: reverse; animation-duration: 80s; margin-top: 20px; }
.marquee:hover { animation-play-state: paused; }
.quote {
  flex: 0 0 min(440px, 82vw); padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(12,12,20,.75); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 20px; transition: border-color .4s, transform .5s var(--ease);
}
.quote:hover { border-color: var(--line-2); transform: translateY(-6px); }
.quote__stars { color: var(--lime); letter-spacing: 3px; font-size: 14px; }
.quote h3 { font-family: var(--f-display); font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.quote p { color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.quote footer { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote__av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 14px; color: #07070a; flex-shrink: 0; }
.quote__who { display: flex; flex-direction: column; line-height: 1.3; font-size: 14px; }
.quote__who strong { font-weight: 600; }
.quote__who span { color: var(--muted); font-size: 13px; }

/* ---------- projects ---------- */
.projects__list { border-top: 1px solid var(--line); }
.project { position: relative; display: grid; grid-template-columns: 80px 1fr auto 72px; align-items: center; gap: 24px; padding: clamp(28px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.project__n { font-family: var(--f-display); font-size: 14px; color: var(--muted); padding-left: 8px; }
.project h3 { font-family: var(--f-display); font-size: clamp(26px, 4.4vw, 68px); font-weight: 500; letter-spacing: -.04em; line-height: 1; transition: transform .7s var(--ease); }
.project__tag { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; }
.project__arrow { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .7s var(--ease), background .4s; }
.project__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.project__bg { position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--ease); }
.project__bg.p1 { background: linear-gradient(90deg, rgba(139,92,255,.35), rgba(34,225,255,.12)); }
.project__bg.p2 { background: linear-gradient(90deg, rgba(34,225,255,.3), rgba(198,255,61,.1)); }
.project__bg.p3 { background: linear-gradient(90deg, rgba(198,255,61,.28), rgba(139,92,255,.12)); }
.project:hover .project__bg { transform: scaleY(1); }
.project:hover h3 { transform: translateX(20px); }
.project:hover .project__arrow { transform: rotate(45deg); background: var(--text); color: #07070a; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); }
.contact__title { font-size: clamp(48px, 7.4vw, 120px); }
.contact__info .muted { margin: 24px 0 40px; }
.contact__mail { display: inline-block; font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.03em; border-bottom: 2px solid var(--lime); padding-bottom: 6px; }
.contact__phone { display: block; margin-top: 18px; color: var(--muted); font-size: 18px; }
.contact__alt { display: block; margin-top: 14px; font-family: var(--f-display); font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; letter-spacing: -.02em; color: rgba(243,242,247,.85); }
.contact__alt:hover { color: var(--lime); }
.contact__web { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 15px; transition: background .3s, color .3s; }
.contact__web svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.contact__web:hover { background: var(--text); color: #07070a; }
.form { display: grid; gap: 18px; padding: clamp(24px, 3.5vw, 48px); border-radius: 28px; border: 1px solid var(--line); background: rgba(12,12,20,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; padding: 26px 18px 10px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--text); font: inherit; font-size: 16px; resize: vertical;
  transition: border-color .3s, background .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: rgba(34,225,255,.05); }
.field span { position: absolute; left: 19px; top: 18px; color: var(--muted); font-size: 16px; pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), color .3s; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(.72); color: var(--cyan); }
.field.is-invalid input { border-color: #ff5c7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check i { width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s; flex-shrink: 0; }
.check input:checked + i { background: var(--lime); border-color: var(--lime); }
.check input:checked + i::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 2px; }
.check.is-invalid i { border-color: #ff5c7a; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__status { min-height: 1.4em; font-size: 14px; color: var(--lime); }
.form__status.is-error { color: #ff5c7a; }

/* ---------- footer ---------- */
.footer { padding-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); background: radial-gradient(90% 60% at 50% 100%, rgba(139,92,255,.16), transparent 70%), linear-gradient(180deg, rgba(6,6,10,.6), #07070d); overflow: hidden; }
.footer__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding: clamp(32px, 4vw, 56px); border-radius: 32px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(139,92,255,.14), rgba(34,225,255,.05) 50%, rgba(198,255,61,.06)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.footer__status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.footer__cta-title { font-family: var(--f-display); font-size: clamp(30px, 4vw, 60px); font-weight: 500; letter-spacing: -.035em; line-height: 1.04; max-width: 15ch; }
.footer__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: clamp(32px, 4vw, 64px); padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.footer__brand .logo { margin-bottom: 24px; }
.footer__brand p { color: var(--muted); font-size: 15px; max-width: 38ch; }
.footer__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.footer__badges li { font-size: 13px; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.03); }
.footer__badges strong { color: var(--text); font-weight: 600; margin-right: 4px; }
.footer__col h3 { font-family: var(--f-body); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 20px; }
.footer__col .footer__col-gap { margin-top: 36px; }
.footer__col a { position: relative; display: table; padding: 5px 0; font-size: 15px; color: rgba(243,242,247,.86); transition: color .3s, transform .4s var(--ease); }
.footer__col a::after { content: ""; position: absolute; left: 0; bottom: 3px; width: 100%; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.footer__col a:hover { color: var(--text); transform: translateX(4px); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__offices address { font-style: normal; color: var(--muted); font-size: 14px; line-height: 1.55; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer__city { display: flex; align-items: center; gap: 8px; color: var(--text); font-family: var(--f-display); font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.footer__city em { font-style: normal; font-family: var(--f-body); font-size: 10px; letter-spacing: .14em; padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--muted); }
.footer__city time { margin-left: auto; font-family: var(--f-body); font-size: 12px; color: var(--lime); font-variant-numeric: tabular-nums; }
.footer__contact a { display: table; font-size: 15px; }
.footer__giant { font-family: var(--f-display); font-weight: 900; font-size: 15.2vw; line-height: .8; letter-spacing: -.06em; text-align: center; white-space: nowrap; user-select: none; margin-bottom: -1.4vw; }
.footer__giant span { display: inline-block; background: linear-gradient(180deg, rgba(243,242,247,.9) 5%, rgba(243,242,247,0) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__legal { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-block: 24px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.footer__legal nav { display: flex; gap: 24px; flex-wrap: wrap; margin-right: auto; }
.footer__legal a { transition: color .3s; }
.footer__legal a:hover { color: var(--text); }
.footer__top { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .4s, color .4s, transform .5s var(--ease); }
.footer__top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer__top:hover { background: var(--text); color: #07070a; transform: translateY(-4px); }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- a11y ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1001; padding: 10px 18px; border-radius: 99px; background: var(--lime); color: #000; font-weight: 600; transform: translateY(-200%); transition: transform .3s; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- reveal helpers ---------- */
.reveal-up { will-change: transform, opacity; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .footer__main { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .nav { display: none; }
  .burger { display: block; }
  .header > .btn { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(4) { padding-left: 0; }
  .stat:nth-child(n+4) { margin-top: 32px; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero__hud { display: none; }
  .hero__badge { width: 124px; height: 124px; top: 96px; }
  .badge-core { inset: 25px; } .badge-core strong { font-size: 26px; } .badge-core span { font-size: 8px; }
  .model__pin { height: auto; flex-direction: column; align-items: stretch; padding: 96px var(--gutter); overflow: visible; }
  .model__intro { flex: none; }
  .model__progress { display: none; }
  .model__track { flex-direction: column; align-items: stretch; padding: 0; }
  .model__intro { margin: 0 0 16px; }
  .pillar { flex: none; height: auto; min-height: 300px; }
  .section-head--split, .products__wrap, .why__grid, .global__grid, .contact__grid { grid-template-columns: 1fr; }
  .why__sticky { position: static; }
  .products__stage { min-height: 400px; }
  .project { grid-template-columns: 1fr auto; }
  .project__n, .project__tag { display: none; }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 280px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 24px 12px 0 0; border-right: 0; }
  .stat:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { padding-left: 0; }
  .form__row { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1; justify-content: center; }
  .hero__badge { display: none; }
  .hero__title { font-size: clamp(28px, 9.2vw, 44px); }
  .scroll-cue { display: none; }
  .project__arrow { width: 48px; height: 48px; }
  .footer__main { grid-template-columns: 1fr; }
  .footer__cta-actions, .footer__cta-actions .btn { width: 100%; justify-content: center; }
  .footer__cta-actions .btn--ghost span { font-size: 16px; }
  .orbit { width: 300px; height: 300px; }
  .orbit__core { inset: 120px; } .orbit i:nth-child(2) { inset: 40px; } .orbit i:nth-child(3) { inset: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .about__statement .w { opacity: 1; }
}

/* ---------- legal pages ---------- */
.legal-body { background: radial-gradient(80% 50% at 80% 0%, rgba(139,92,255,.14), transparent 60%), var(--bg); }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); border-bottom: 1px solid var(--line); }
.legal-header .logo { margin-right: 0; }
.legal { max-width: 820px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(64px, 9vw, 120px); }
.legal h1 { font-family: var(--f-display); font-size: clamp(38px, 6vw, 72px); font-weight: 500; letter-spacing: -.04em; line-height: 1; margin-bottom: 16px; }
.legal__meta { color: var(--muted); font-size: 14px; margin-bottom: 48px; }
.legal h2 { font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; letter-spacing: -.02em; margin: 44px 0 14px; }
.legal p, .legal li { color: rgba(243,242,247,.8); font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin-top: 10px; }
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal-footer { border-top: 1px solid var(--line); padding: 24px var(--gutter); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; color: var(--muted); }
.legal-footer nav { display: flex; gap: 20px; }
.legal-footer a:hover { color: var(--text); }
.legal ul + p { margin-top: 14px; }
