/* ============ MuskSolutions — brand tokens ============ */
:root {
  --blue: #1842B6;
  --blue-2: #2F5BE0;
  --green: #26D48C;
  --green-2: #7CF2C0;
  --ink: #060B1A;
  --ink-2: #0B1430;
  --ink-3: #111C3F;
  --line: rgba(255, 255, 255, 0.09);
  --text: #E8EDFB;
  --muted: #8E9AC0;
  --grad: linear-gradient(100deg, var(--green) 0%, var(--green-2) 40%, var(--blue-2) 100%);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head: "Saira", sans-serif;
  --body: "Inter", sans-serif;
  --gutter: clamp(16px, 5vw, 80px);
  --mx: 50vw;
  --my: 50vh;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--green); color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor input,
  body.has-cursor textarea, body.has-cursor select, body.has-cursor label { cursor: none; }
}

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--ink);
  display: grid; place-content: center; gap: 20px; justify-items: center;
  transition: clip-path 1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.loader__mark { font-family: var(--head); font-weight: 800; font-size: clamp(28px, 5vw, 48px); letter-spacing: -0.02em; }
.loader__bar { width: 180px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; animation: load 1.1s var(--ease) forwards; transform: scaleX(0); }
@keyframes load { to { transform: scaleX(1); } }

.w { color: #fff; }
.g { color: var(--green); }

/* ============ Cursor ============ */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 999; display: none; }
body.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--green); }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(124, 242, 192, .55);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor__label { font: 600 12px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(38, 212, 140, .12); border-color: var(--green); }
.cursor.is-label .cursor__ring { width: 90px; height: 90px; margin: -45px 0 0 -45px; background: var(--green); border-color: var(--green); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot, .cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

/* Ambient spotlight that follows the mouse across the whole page */
.spotlight {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(47, 91, 224, .13), transparent 60%);
  transition: opacity .4s;
}
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0) } 20% { transform: translate(-5%,4%) } 40% { transform: translate(4%,-3%) } 60% { transform: translate(-3%,-5%) } 80% { transform: translate(5%,3%) } }

main, footer, .nav { position: relative; z-index: 3; }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 22px var(--gutter);
  transition: padding .4s var(--ease), background .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { padding-top: 14px; padding-bottom: 14px; background: rgba(6, 11, 26, .7); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav.hidden { transform: translateY(-100%); }
.brand { font-family: var(--head); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; display: inline-block; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { position: relative; padding: 8px 14px; font-size: 15px; color: var(--muted); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; transition: transform .4s var(--ease); }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 25px; }
.nav.open .burger i:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  --bx: 50%; --by: 50%;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 100px; border: 0;
  background: var(--green); color: var(--ink);
  font: 600 15px var(--body); letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: box-shadow .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; width: 0; height: 0; border-radius: 50%;
  left: var(--bx); top: var(--by); transform: translate(-50%, -50%);
  background: #fff; transition: width .6s var(--ease), height .6s var(--ease);
}
.btn:hover::before { width: 320%; height: 320%; }
.btn:hover { box-shadow: 0 10px 40px -10px rgba(38, 212, 140, .7); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn span, .btn svg { position: relative; pointer-events: none; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn--ghost::before { background: var(--blue); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--blue), 0 10px 40px -10px rgba(47, 91, 224, .8); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--full { width: 100%; justify-content: center; }

/* ============ Shared ============ */
section { padding: clamp(80px, 12vw, 160px) var(--gutter); position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: 24px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero .eyebrow::before { display: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(38,212,140,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(38,212,140,0); } 100% { box-shadow: 0 0 0 0 rgba(38,212,140,0); } }
h2 { font-family: var(--head); font-weight: 700; font-size: clamp(38px, 6vw, 84px); line-height: 1; letter-spacing: -0.03em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { margin-bottom: clamp(48px, 7vw, 96px); max-width: 900px; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Hero ============ */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: 140px; overflow: hidden; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; will-change: transform; }
.hero__orb--a { width: 46vw; height: 46vw; right: -10vw; top: -8vw; background: radial-gradient(circle, rgba(24,66,182,.55), transparent 70%); }
.hero__orb--b { width: 34vw; height: 34vw; left: -8vw; bottom: -12vw; background: radial-gradient(circle, rgba(38,212,140,.28), transparent 70%); }
.hero__inner { position: relative; max-width: 1200px; }
.hero__title { font-family: var(--head); font-weight: 800; font-size: clamp(44px, 8.4vw, 132px); line-height: .95; letter-spacing: -0.04em; margin-bottom: 32px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; line-height: 1.02em; }
.hero__title .split { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.hero.in .hero__title .line:nth-child(2) .split { transition-delay: .1s; }
.hero.in .hero__title .line:nth-child(3) .split { transition-delay: .2s; }
.hero.in .hero__title .split { transform: none; }
.rotator { position: relative; display: inline-grid; vertical-align: top; overflow: hidden; height: 1.02em; clip-path: inset(0 -0.2em 0 0); }
.rotator span { grid-area: 1 / 1; display: block; line-height: 1.02em; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateY(100%); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease); padding-right: .05em; }
.rotator span.on { transform: none; opacity: 1; }
.rotator span.off { transform: translateY(-100%); opacity: 0; }
.hero__sub { max-width: 560px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); margin-bottom: 44px; --d: .5s; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; --d: .65s; }
.hero .eyebrow { --d: .1s; }
.scroll-cue { position: absolute; left: 50%; bottom: 36px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--green); border-radius: 2px; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 80% { transform: translateY(16px); opacity: 0 } 100% { opacity: 0 } }

/* ============ Capabilities flashlight ============ */
.caps { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); border-block: 1px solid var(--line); text-align: center; overflow: hidden; }
.caps__hint { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 36px; }
.caps__stage { --lx: 50%; --ly: 50%; --lr: 240px; position: relative; max-width: 1280px; margin: 0 auto; }
.caps__text { font: 700 clamp(28px, 4.6vw, 72px) / 1.12 var(--head); letter-spacing: -0.03em; }
.caps__text span { white-space: nowrap; }
.caps__text i { font-style: normal; font-weight: 400; padding: 0 .12em; }
.caps__text--base { color: transparent; -webkit-text-stroke: 1px rgba(232, 237, 251, .16); }
.caps__text--base i { -webkit-text-stroke: 0; color: rgba(38, 212, 140, .25); }
.caps__text--lit {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #fff 0%, var(--green-2) 25%, var(--green) 45%, var(--blue-2) 75%, transparent 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 20%, transparent 100%);
  mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 20%, transparent 100%);
  filter: drop-shadow(0 0 18px rgba(38, 212, 140, .35));
}
.caps__stage::before {
  content: ""; position: absolute; left: var(--lx); top: var(--ly); width: calc(var(--lr) * 2.4); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(47, 91, 224, .16), transparent 65%); pointer-events: none;
}

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); padding: 0; border-bottom: 1px solid var(--line); }
.stat { background: var(--ink); padding: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 44px); transition: background .5s; }
.stat:nth-child(2) { --d: .08s } .stat:nth-child(3) { --d: .16s } .stat:nth-child(4) { --d: .24s }
.stat:hover { background: var(--ink-2); }
.stat__num { font: 800 clamp(56px, 7vw, 104px) / 1 var(--head); letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.stat__num em { font-style: normal; font-size: .38em; color: var(--green); letter-spacing: 0; }
.stat p { color: var(--muted); max-width: 220px; font-size: 15px; }

/* ============ About ============ */
.statement { font: 600 clamp(26px, 3.9vw, 56px) / 1.18 var(--head); letter-spacing: -0.02em; max-width: 1200px; margin-bottom: clamp(56px, 8vw, 110px); }
.statement .word { display: inline-block; opacity: .14; transition: opacity .3s, color .3s; white-space: pre; }
.statement .word.lit { opacity: 1; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); max-width: 1100px; margin-left: auto; }
.about__cols h3 { font: 600 22px var(--head); margin-bottom: 12px; }
.about__cols p { color: var(--muted); }
.about__cols > div:nth-child(2) { --d: .12s; }

/* ============ Services cards ============ */
.services { background: linear-gradient(180deg, var(--ink), var(--ink-2) 40%, var(--ink)); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1400px; }
.card {
  --x: 50%; --y: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; padding: 0; border-radius: 22px;
  background: rgba(17, 28, 63, .55); border: 1px solid var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), border-color .4s, opacity 1s var(--ease), height .8s var(--ease);
  overflow: hidden; min-height: 380px; display: grid;
}
.card.reveal { transform: translateY(40px); }
.card.reveal.in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.card:nth-child(3n+2) { --d: .08s } .card:nth-child(3n+3) { --d: .16s }
/* Spotlight glow + glowing border, both driven by mouse position */
.card__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--x) var(--y), rgba(38, 212, 140, .16), transparent 45%); }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--x) var(--y), var(--green), rgba(47,91,224,.6) 40%, transparent 70%);
  -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:hover .card__glow, .card:hover::before { opacity: 1; }
.card:hover { border-color: transparent; }
.card__face { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; padding: 40px 34px 34px; transform: translateZ(30px); }
.card__num { position: absolute; top: 28px; right: 30px; font: 600 14px var(--head); color: var(--muted); letter-spacing: .1em; }
.card__icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 36px; background: linear-gradient(135deg, rgba(24,66,182,.5), rgba(38,212,140,.18)); border: 1px solid var(--line); transition: transform .6s var(--ease), background .4s; }
.card__icon svg { width: 32px; height: 32px; fill: none; stroke: var(--green-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { transform: translateZ(50px) rotate(-8deg) scale(1.08); }
.card h3 { font: 700 26px / 1.15 var(--head); letter-spacing: -0.01em; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card__toggle { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: none; border: 0; padding: 6px 0; font: 500 14px var(--body); color: var(--green); }
.card__more { margin-top: 28px; }
.card__toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.card__more:hover svg { transform: translateX(6px); }
.card__back-btn:hover svg { transform: translateX(-6px); }

/* Featured AI card */
.card--feature { grid-column: 1 / -1; min-height: 0; background: linear-gradient(120deg, rgba(24,66,182,.45), rgba(17,28,63,.6) 50%, rgba(38,212,140,.12)); }
.card__feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.card--feature h3 { font-size: clamp(30px, 3.4vw, 46px); }
.card--feature p { font-size: 16px; max-width: 560px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border-radius: 100px; border: 1px solid var(--line); background: rgba(6,11,26,.5); font-size: 14px; color: var(--text); transition: border-color .3s, color .3s, transform .4s var(--ease); }
.chips li:hover { border-color: var(--green); color: var(--green); transform: translateY(-3px) translateZ(40px); }

/* ============ Card reveal: use case + tech, in place ============ */
.card__front { transition: opacity .5s var(--ease), filter .6s var(--ease), transform .7s var(--ease); }
.card.is-open .card__front { opacity: 0; filter: blur(8px); transform: translateZ(30px) scale(.94); pointer-events: none; }

.card__back {
  --cx: 50%; --cy: 90%;
  background:
    radial-gradient(380px circle at var(--x) var(--y), rgba(38,212,140,.14), transparent 50%),
    radial-gradient(circle at 1px 1px, rgba(124,242,192,.14) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(160deg, #0E1E4F, #081233 60%, #06302A);
  position: absolute; inset: 0;
  clip-path: circle(0px at var(--cx) var(--cy));
  transition: clip-path .9s var(--ease);
  padding-top: 32px;
}
.card.is-open .card__back { clip-path: circle(150% at var(--cx) var(--cy)); }

/* scan line that sweeps down once as the card opens */
.card__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, var(--green-2), transparent); box-shadow: 0 0 18px 4px rgba(38,212,140,.45); }
.card.is-open .card__scan { animation: scan 1.2s .15s var(--ease) both; }
@keyframes scan { 0% { top: 0; opacity: 0 } 10% { opacity: 1 } 90% { opacity: 1 } 100% { top: 100%; opacity: 0 } }

.card__tag { font: 500 11px var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--green); display: flex; align-items: center; gap: 8px; }
.card__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.card__tag--tech { margin-top: 22px; }
.card__case { font: 700 21px / 1.2 var(--head); letter-spacing: -0.01em; margin: 10px 0 18px; color: #fff; min-height: 2.4em; }
.card--feature .card__case { font-size: clamp(24px, 2.4vw, 32px); min-height: 0; }

.case { list-style: none; display: grid; gap: 12px; }
.case li { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding-left: 12px; border-left: 1px solid rgba(124,242,192,.25); opacity: 0; transform: translateX(-16px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.case span { font: 600 12px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--green-2); padding-top: 2px; }
.card .case p { flex: none; font-size: 14px; line-height: 1.5; color: var(--text); opacity: .82; max-width: none; }
.card.is-open .case li { opacity: 1; transform: none; transition-delay: calc(.35s + var(--i) * .12s); }

.tech { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tech li { padding: 6px 12px; border-radius: 100px; font-size: 12.5px; background: rgba(38,212,140,.08); border: 1px solid rgba(124,242,192,.22); color: var(--text); opacity: 0; transform: translateY(10px) scale(.7); transition: opacity .4s var(--ease), transform .5s var(--ease), background .3s, border-color .3s; }
.tech li:hover { background: rgba(38,212,140,.2); border-color: var(--green); }
.card.is-open .tech li { opacity: 1; transform: none; transition-delay: calc(.7s + var(--i) * .05s), calc(.7s + var(--i) * .05s), 0s, 0s; }

.card__back-btn { margin-top: auto; padding-top: 22px; opacity: 0; transition: opacity .4s; }
.card.is-open .card__back-btn { opacity: 1; transition-delay: 1s; }

/* Featured card back: two columns */
.card--feature .card__back { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 48px; align-content: start; }
.card--feature .card__back > .card__tag:not(.card__tag--tech) { grid-column: 1; grid-row: 1; }
.card--feature .card__case { grid-column: 1; grid-row: 2; }
.card--feature .case { grid-column: 1; grid-row: 3 / span 2; }
.card--feature .card__tag--tech { grid-column: 2; grid-row: 1; margin-top: 0; }
.card--feature .tech { grid-column: 2; grid-row: 2 / span 2; align-content: start; }
.card--feature .card__back-btn { grid-column: 2; grid-row: 4; align-self: end; }

/* ============ AI section ============ */
.ai { overflow: hidden; }
.ai::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 80% 30%, rgba(24,66,182,.25), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(38,212,140,.08), transparent 70%); }
.ai__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.ai__lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 520px; margin: 28px 0 44px; }
.ai__list { list-style: none; border-top: 1px solid var(--line); }
.ai__list li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.ai__list li::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38,212,140,.1), transparent 80%); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); pointer-events: none; }
.ai__list li:hover { padding-left: 16px; }
.ai__list li:hover::before { transform: scaleX(1); }
.ai__list li:nth-child(2) { --d: .05s } .ai__list li:nth-child(3) { --d: .1s } .ai__list li:nth-child(4) { --d: .15s } .ai__list li:nth-child(5) { --d: .2s } .ai__list li:nth-child(6) { --d: .25s }
.ai__i { font: 600 14px var(--head); color: var(--green); padding-top: 4px; letter-spacing: .08em; }
.ai__list h4 { font: 600 20px var(--head); margin-bottom: 4px; transition: color .3s; }
.ai__list li:hover h4 { color: var(--green-2); }
.ai__list p { color: var(--muted); font-size: 15px; }

.ai__visual { position: sticky; top: 100px; display: grid; gap: 20px; }
.ai__core { position: relative; aspect-ratio: 1; border-radius: 28px; border: 1px solid var(--line); overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(24,66,182,.35), rgba(6,11,26,.2) 65%); }
.ai__core canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ai__badge { position: absolute; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 100px; background: rgba(6,11,26,.6); border: 1px solid var(--line); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); backdrop-filter: blur(8px); }

.console { border-radius: 18px; border: 1px solid var(--line); background: rgba(6,11,26,.85); overflow: hidden; font: 13px/1.7 ui-monospace, "Cascadia Code", Consolas, monospace; }
.console__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.console__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); }
.console__bar i:first-child { background: var(--green); }
.console__bar span { margin-left: 8px; color: var(--muted); font-size: 12px; }
.console__body { padding: 16px 18px; height: 196px; overflow: hidden; color: var(--text); }
.console__body div { white-space: pre-wrap; word-break: break-word; }
.console__body .u { color: var(--green-2); }
.console__body .s { color: var(--muted); }
.console__body .ok { color: var(--green); }
.console__body .caret { display: inline-block; width: 8px; height: 1em; vertical-align: -2px; background: var(--green); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ Approach ============ */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps__line { position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--line); }
.steps__line i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px var(--green); }
.step { position: relative; padding-top: 48px; }
.step:nth-child(3) { --d: .1s } .step:nth-child(4) { --d: .2s } .step:nth-child(5) { --d: .3s }
.step__dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 1px solid var(--green); transition: background .4s, box-shadow .4s; }
.step.active .step__dot { background: var(--green); box-shadow: 0 0 0 6px rgba(38,212,140,.15); }
.step__n { font: 600 14px var(--head); color: var(--green); letter-spacing: .1em; }
.step h4 { font: 700 30px var(--head); letter-spacing: -0.02em; margin: 8px 0 12px; }
.step p { color: var(--muted); font-size: 15px; max-width: 260px; }

/* ============ CTA ============ */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; border-top: 1px solid var(--line); overflow: hidden; }
.cta__title { font-size: clamp(48px, 9vw, 150px); line-height: .92; }
.cta__ball {
  flex-shrink: 0; width: clamp(160px, 18vw, 260px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--blue); color: #fff; font: 700 clamp(22px, 2.2vw, 32px) / 1 var(--head);
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 30px 80px -20px rgba(24, 66, 182, .9);
  transition: box-shadow .4s;
}
.cta__ball::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--green); border-radius: 50%; transform: scale(0); transition: transform .6s var(--ease); }
.cta__ball:hover::before { transform: scale(1); }
.cta__ball:hover { color: var(--ink); box-shadow: 0 30px 80px -20px rgba(38, 212, 140, .9); }
.cta__ball span { pointer-events: none; transition: color .4s; }

/* ============ Contact ============ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.contact h2 { margin-bottom: 56px; }
.contact__list { list-style: none; display: grid; gap: 28px; }
.contact__list li { border-top: 1px solid var(--line); padding-top: 20px; display: grid; grid-template-columns: 150px 1fr; gap: 20px; }
.contact__list span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact__list p { font-size: 17px; }
.contact__list small { color: var(--muted); font-size: 14px; }
.contact__list a { background: linear-gradient(var(--green), var(--green)) left bottom / 0 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.contact__list a:hover { background-size: 100% 1px; color: var(--green); }


/* ============ Footer ============ */
.footer { padding: 36px var(--gutter) 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__row nav { display: flex; gap: 28px; }
.footer__row nav a { color: var(--muted); font-size: 15px; transition: color .3s; }
.footer__row nav a:hover { color: var(--green); }
.footer__row p { color: var(--muted); font-size: 14px; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .steps__line { display: none; }
  .contact { grid-template-columns: 1fr; }
  .ai__grid, .card__feature { grid-template-columns: 1fr; }
  .card__feature { gap: 28px; }
  .card--feature .card__back { display: flex; }
  .ai__visual { position: relative; top: 0; max-width: 560px; }
}
@media (max-width: 760px) {
  .nav { gap: 16px; }
  .nav__cta { display: none; }
  .burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 0 var(--gutter); gap: 4px; background: rgba(6, 11, 26, .97);
    clip-path: circle(0 at calc(100% - 38px) 38px); transition: clip-path .7s var(--ease);
  }
  .nav.open .nav__links { clip-path: circle(150% at calc(100% - 38px) 38px); }
  .nav__links a { font: 700 44px var(--head); color: #fff; padding: 6px 0; }
  .nav__links a::after { display: none; }
  .cards, .about__cols, .steps { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .stat__num { font-size: 56px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta__ball { align-self: flex-end; }
  .contact__list li { grid-template-columns: 1fr; gap: 6px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .footer__row nav { flex-wrap: wrap; gap: 18px; }
  .hero__title { font-size: clamp(40px, 11vw, 64px); }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .hero__title .split { opacity: 1; transform: none; }
}

/* Stack use-case labels above their text when a card is narrow */
.card__back { container-type: inline-size; }
@container (max-width: 380px) {
  .case li { grid-template-columns: 1fr; gap: 2px; }
}

/* ============ Contact person card ============ */
.person {
  --x: 50%; --y: 50%;
  display: flex; align-items: center; gap: 26px;
  padding: 24px; margin-bottom: 36px; border-radius: 22px;
  border: 1px solid var(--line);
  background: radial-gradient(400px circle at var(--x) var(--y), rgba(38,212,140,.12), transparent 55%), rgba(17, 28, 63, .55);
}
.person__photo { position: relative; flex-shrink: 0; width: 112px; height: 112px; }
.person__ring {
  position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--green), var(--blue-2), transparent 60%, var(--green));
  animation: spin 6s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 57px, #000 58px); mask: radial-gradient(circle, transparent 57px, #000 58px);
}
.person:hover .person__ring { animation-duration: 1.6s; }
@keyframes spin { to { transform: rotate(360deg); } }
.person__initials, .person__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%;
}
.person__initials {
  display: grid; place-items: center;
  font: 700 38px var(--head); letter-spacing: -0.02em; color: #fff;
  background: radial-gradient(circle at 30% 25%, var(--blue-2), var(--blue) 55%, #0B1E5C);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.person__photo img { object-fit: cover; transition: transform .6s var(--ease); }
.person:hover .person__photo img { transform: scale(1.06); }
.person__status { position: absolute; right: 6px; bottom: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid var(--ink-2); animation: pulse 2s infinite; }
.person__label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.person h3 { font: 700 26px / 1.15 var(--head); margin: 6px 0 2px; }
.person__info > p { color: var(--muted); font-size: 15px; }
.person__actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 100px;
  border: 1px solid rgba(124,242,192,.3); color: var(--text); font-size: 14px; font-weight: 500;
  transition: background .3s, border-color .3s, color .3s;
}
.pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill:hover { background: var(--green); border-color: var(--green); color: var(--ink); }
.contact h2 { margin-bottom: 44px; }

/* Address: deliberately quiet */
.address { display: flex; align-items: flex-start; gap: 8px; margin-top: 28px; font-size: 12.5px; color: rgba(142, 154, 192, .7); line-height: 1.5; }
.address svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; }

@media (max-width: 480px) {
  .person { flex-direction: column; align-items: flex-start; }
}

/* ============ Contact illustrations (replace the form) ============ */
.contact { align-items: stretch; }
.visuals {
  --px: 0; --py: 0;
  display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px;
  min-height: 560px; height: 100%;
}
.vtile {
  --x: 50%; --y: 50%;
  position: relative; margin: 0; overflow: hidden; border-radius: 22px;
  border: 1px solid var(--line); background: #060B1A; isolation: isolate;
  transition: border-color .4s, transform .6s var(--ease), box-shadow .4s;
}
.vtile--rocket { grid-row: 1 / span 2; }
.vtile--chip { background: radial-gradient(circle at 50% 45%, #132A70, #060B1A 70%); }
.vtile--chip svg, .vtile--planet svg { inset: 0 0 34px 0; width: 100%; height: calc(100% - 34px); }
.vtile svg { position: absolute; inset: -4%; width: 108%; height: 108%; display: block; transition: transform .2s linear; }
.vtile--rocket svg { transform: translate(calc(var(--px) * -10px), calc(var(--py) * -10px)); }
.vtile--chip svg { transform: translate(calc(var(--px) * 14px), calc(var(--py) * 14px)); }
.vtile--planet svg { transform: translate(calc(var(--px) * -16px), calc(var(--py) * -16px)); }
.vtile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--x) var(--y), rgba(124, 242, 192, .14), transparent 60%);
}
.vtile:hover { border-color: rgba(124, 242, 192, .35); box-shadow: 0 30px 80px -30px rgba(38, 212, 140, .35); }
.vtile:hover::after { opacity: 1; }
.vtile figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px; z-index: 2;
  font: 600 17px / 1.2 var(--head); color: #fff; letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.vtile figcaption span {
  display: table; margin-bottom: 6px; padding: 4px 10px; border-radius: 100px;
  font: 500 11px var(--body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-2); background: rgba(6, 11, 26, .6); border: 1px solid rgba(124, 242, 192, .25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-shadow: none;
}

/* rocket */
.v-streaks line { animation: vfall var(--dur) linear infinite; animation-delay: var(--delay); }
@keyframes vfall { from { transform: translateY(-560px); } to { transform: translateY(560px); } }
.v-bob { animation: vbob 3.2s ease-in-out infinite; }
@keyframes vbob { 50% { transform: translateY(-10px); } }
.v-flame { transform-box: fill-box; transform-origin: 50% 0; animation: vflicker .12s ease-in-out infinite alternate; }
@keyframes vflicker { from { transform: scale(.92, .86); opacity: .85; } to { transform: scale(1.04, 1.06); opacity: 1; } }
.v-window { animation: vglow 2.4s ease-in-out infinite; }
@keyframes vglow { 50% { fill: #7CF2C0; } }
.vtile--rocket:hover .v-flame { animation-duration: .07s; }

/* chip */
.v-traces path { stroke: rgba(90, 130, 240, .35); stroke-width: 2; }
.v-traces .v-pulse {
  stroke: #7CF2C0; stroke-width: 2.5; filter: drop-shadow(0 0 4px #26D48C);
  stroke-dasharray: 14 var(--len); stroke-dashoffset: 14;
  animation: vpulse 2.6s linear infinite; animation-delay: var(--delay);
}
@keyframes vpulse { to { stroke-dashoffset: calc(var(--len) * -1); } }
.v-core { animation: vcore 3s ease-in-out infinite; }
@keyframes vcore { 50% { opacity: .7; } }
.vtile--chip:hover .v-pulse { animation-duration: 1.1s; }
.v-nodes circle { filter: drop-shadow(0 0 4px #26D48C); }

/* planet */
.v-stars circle { animation: vtwinkle var(--tw) ease-in-out infinite; animation-delay: var(--delay); }
@keyframes vtwinkle { 50% { opacity: .15; } }

@media (max-width: 760px) {
  .visuals { min-height: 0; gap: 12px; grid-template-rows: 210px 210px; }
  .vtile figcaption { font-size: 14px; left: 12px; bottom: 12px; }
}

/* ============ Story / journey timeline ============ */
.story { overflow: hidden; }
.story__intro { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 560px; margin-top: 24px; }
.timeline { --p: 0; position: relative; max-width: 1100px; margin: 0 auto; }
.timeline__track { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--line); border-radius: 2px; }
.timeline__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--blue-2), var(--green)); transform-origin: top; transform: scaleY(var(--p)); box-shadow: 0 0 14px rgba(38, 212, 140, .5); border-radius: 2px; }
.timeline__spark {
  position: absolute; left: 50%; top: calc(var(--p) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(38, 212, 140, .35), 0 0 24px 6px rgba(38, 212, 140, .7);
}
.timeline__spark::after { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 70px; margin-left: -1px; background: linear-gradient(to top, rgba(124, 242, 192, .9), transparent); }

.milestone { position: relative; width: 50%; padding: 0 56px 64px 0; }
.milestone:nth-of-type(even) { margin-left: 50%; padding: 0 0 64px 56px; }
.milestone:last-child { padding-bottom: 0; }
.milestone__dot {
  position: absolute; top: 30px; right: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); border: 2px solid rgba(124, 242, 192, .35); z-index: 1;
  transition: background .5s, border-color .5s, box-shadow .5s, transform .5s var(--ease);
}
.milestone:nth-of-type(even) .milestone__dot { right: auto; left: -9px; }
.milestone.active .milestone__dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 6px rgba(38, 212, 140, .15), 0 0 20px rgba(38, 212, 140, .6); transform: scale(1.1); }

.milestone__card {
  --x: 50%; --y: 50%;
  position: relative; padding: 30px 30px 26px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(360px circle at var(--x) var(--y), rgba(38, 212, 140, .1), transparent 55%), rgba(17, 28, 63, .5);
  opacity: 0; transform: translateX(-40px); transition: opacity .9s var(--ease), transform 1s var(--ease), border-color .4s;
}
.milestone:nth-of-type(even) .milestone__card { transform: translateX(40px); }
.milestone.seen .milestone__card { opacity: 1; transform: none; }
.milestone__card:hover { border-color: rgba(124, 242, 192, .3); }
/* connector from card to the line */
.milestone__card::before { content: ""; position: absolute; top: 38px; right: -56px; width: 56px; height: 1px; background: linear-gradient(90deg, rgba(124, 242, 192, .4), transparent); }
.milestone:nth-of-type(even) .milestone__card::before { right: auto; left: -56px; background: linear-gradient(270deg, rgba(124, 242, 192, .4), transparent); }

.milestone__year { display: block; font: 800 clamp(34px, 3.6vw, 52px) / 1 var(--head); letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.milestone__chapter { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.milestone h3 { font: 700 24px / 1.2 var(--head); letter-spacing: -0.01em; margin-bottom: 10px; }
.milestone p { color: var(--muted); font-size: 15.5px; }
.milestone__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.milestone__tags li { padding: 5px 12px; border-radius: 100px; font-size: 12.5px; border: 1px solid rgba(124, 242, 192, .22); background: rgba(38, 212, 140, .06); color: var(--text); }

.milestone--next .milestone__card { background: linear-gradient(130deg, rgba(24, 66, 182, .55), rgba(38, 212, 140, .14)); border-color: rgba(124, 242, 192, .3); }
.milestone--next h3 { font-size: 28px; }
.milestone--next .btn { margin-top: 20px; }
.milestone--next .milestone__dot { border-style: dashed; }

@media (max-width: 860px) {
  .timeline__track { left: 8px; }
  .timeline__spark { left: 50%; }
  .milestone, .milestone:nth-of-type(even) { width: 100%; margin-left: 0; padding: 0 0 40px 40px; }
  .milestone__dot, .milestone:nth-of-type(even) .milestone__dot { left: -1px; right: auto; }
  .milestone__card, .milestone:nth-of-type(even) .milestone__card { transform: translateX(30px); }
  .milestone__card::before, .milestone:nth-of-type(even) .milestone__card::before { left: -32px; right: auto; width: 32px; background: linear-gradient(270deg, rgba(124, 242, 192, .4), transparent); }
  .milestone__card { padding: 24px 22px 22px; }
}

/* ============ Why us ============ */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why__card { background: var(--ink); padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); transition: background .5s; }
.why__card:nth-child(2) { --d: .08s } .why__card:nth-child(3) { --d: .16s }
.why__card:hover { background: var(--ink-2); }
.why__n { font: 500 13px var(--body); letter-spacing: .18em; color: var(--green); }
.why__card h3 { font: 700 clamp(24px, 2.4vw, 32px) / 1.1 var(--head); letter-spacing: -0.02em; margin: 16px 0 12px; }
.why__card p { color: var(--muted); font-size: 15px; max-width: 320px; }
@media (max-width: 860px) { .why__grid { grid-template-columns: 1fr; } }

/* ============ MS / Infinity — approved concept 02 ============ */
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; line-height: 1; }
.brand__name { display: inline-block; white-space: nowrap; }
.brand__name .w { color: #fff; }
.brand__name .g { color: var(--green); }
.ms-mark { position: relative; display: block; width: 82px; flex-shrink: 0; isolation: isolate; }
.ms-mark img { display: block; width: 100%; height: auto; }
.ms-mark::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 42%, rgba(255,255,255,.55) 49%, rgba(211,255,237,.65) 50%, transparent 58%) 200% 0 / 300% 100% no-repeat; -webkit-mask: url("assets/ms-infinity-white-m.png") center / contain no-repeat; mask: url("assets/ms-infinity-white-m.png") center / contain no-repeat; animation: infinity-sheen 5.5s 1.2s ease-in-out infinite; }
.brand .ms-mark { transition: filter .4s ease, transform .5s var(--ease); }
.brand:hover .ms-mark, .brand:focus-visible .ms-mark { filter: drop-shadow(0 3px 12px rgba(38,212,140,.35)); transform: translateY(-2px) scale(1.04); }
.brand:hover .ms-mark::after, .brand:focus-visible .ms-mark::after { animation: infinity-sheen-hover .85s ease both; }
.brand:focus-visible { outline: 2px solid var(--green-2); outline-offset: 7px; border-radius: 4px; }
.loader { gap: 0; background: radial-gradient(ellipse at 50% 43%, #102D2B 0%, #0B1728 32%, #060B1A 67%); transition: clip-path .85s var(--ease); }
.loader__emblem { position: relative; isolation: isolate; margin-bottom: 30px; perspective: 900px; }
.loader__emblem::before { content: ""; position: absolute; inset: -60% -40%; z-index: -1; background: radial-gradient(ellipse, rgba(38,212,140,.13), transparent 65%); animation: infinity-aura 2.6s ease-in-out infinite; }
.loader__emblem .ms-mark { width: clamp(220px, 36vw, 340px); filter: drop-shadow(0 18px 25px rgba(0,0,0,.35)); animation: infinity-unfold 1.15s var(--ease) both, infinity-float 3s 1.15s ease-in-out infinite; }
.loader__emblem .ms-mark::after { animation: infinity-sheen 2.2s .7s ease-in-out infinite; }
.loader__halo { position: absolute; width: 105%; height: 30%; bottom: -12%; left: -2.5%; border: 1px solid rgba(124,242,192,.16); border-radius: 50%; transform: rotate(-9deg); box-shadow: 0 0 30px rgba(38,212,140,.06); animation: infinity-halo 2.6s ease-in-out infinite; }
.loader__halo::after { content: ""; position: absolute; inset: -1px; border: 2px solid transparent; border-top-color: rgba(124,242,192,.8); border-radius: 50%; filter: drop-shadow(0 0 5px #26D48C); animation: infinity-orbit 2s linear infinite; }
.loader__mark { font-size: clamp(28px, 5vw, 48px); line-height: 1.2; letter-spacing: -.02em; animation: infinity-name .7s .35s var(--ease) both; }
.loader__mark .g { color: var(--green); font-weight: inherit; }
.loader__caption { margin-top: 10px; color: #8E9AC0; font: 400 11px/1.4 var(--body); letter-spacing: .24em; text-transform: uppercase; animation: infinity-name .7s .5s var(--ease) both; }
.loader__caption span { color: var(--green); }
.loader__bar { width: 56px; height: 2px; margin-top: 28px; background: rgba(124,242,192,.12); }
.loader__bar i { animation-duration: 1.7s; background: #7CF2C0; }
.loader.done { pointer-events: none; }
.loader.done .ms-mark, .loader.done .ms-mark::after, .loader.done .loader__halo, .loader.done .loader__halo::after, .loader.done .loader__emblem::before { animation-play-state: paused; }
@keyframes infinity-unfold { from { opacity: 0; transform: translateY(22px) rotateX(28deg) scale(.86); clip-path: inset(0 100% 0 0); } 55% { opacity: 1; } to { opacity: 1; transform: none; clip-path: inset(0); } }
@keyframes infinity-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes infinity-sheen { 0%,50% { background-position: 200% 0; } 90%,100% { background-position: -100% 0; } }
@keyframes infinity-sheen-hover { from { background-position: 200% 0; } to { background-position: -100% 0; } }
@keyframes infinity-aura { 0%,100% { opacity: .5; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes infinity-halo { 0%,100% { opacity: .4; transform: rotate(-9deg) scale(.95); } 50% { opacity: .9; transform: rotate(-9deg) scale(1.02); } }
@keyframes infinity-orbit { to { transform: rotate(360deg); } }
@keyframes infinity-name { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (min-width: 761px) and (max-width: 1100px) {
 .nav { gap: 18px; }
 .nav__links a { padding-left: 10px; padding-right: 10px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
 .nav { gap: 14px; }
 .nav .brand { gap: 10px; font-size: 22px; }
 .nav .ms-mark { width: 60px; }
 .nav .nav__cta { display: none; }
 .nav__links a { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 420px) {
 .nav .brand { gap: 9px; }
 .nav .ms-mark { width: 44px; }
 .nav .brand { font-size: 20px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
 .ms-mark, .ms-mark::after, .loader__emblem::before, .loader__halo, .loader__halo::after, .loader__mark, .loader__caption { animation: none !important; }
 .ms-mark::after { display: none; }
 .brand:hover .ms-mark, .brand:focus-visible .ms-mark { transform: none; }
}
