/* ============================================================
   MostAI — Unified site theme  (v2: floating nav, tools, GSAP)
   ============================================================ */

:root {
  --site-accent:   #5FB0FF;
  --site-accent-d: #0A84FF;
  --maxw: 1200px;
  --sheet-radius: 32px;
  --r-card: 22px;   /* one roundness for ALL cards & panels */
  --r-tile: 12px;   /* one roundness for ALL icon tiles & inputs */
  --d-text:   #EAF0FB;
  --d-text-2: #C5D0E6;
  --d-mute:   #94A1B8;
  --d-line:   rgba(255,255,255,.10);
  --d-line-2: rgba(255,255,255,.06);
  --d-glass:  rgba(255,255,255,.05);
  --d-glass-2:rgba(255,255,255,.08);
}

/* Lenis overrides */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(ellipse 90% 70% at 50% -5%, #14264c 0%, #0B1326 58%);
  background-attachment: fixed;
  color: var(--d-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(95,176,255,.32); color: #fff; }

.site { position: relative; z-index: 2; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---- Shared type ---- */
.eyebrow {
  font-family: var(--font-head); font-size: var(--text-2xs); font-weight: 600;
  letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: var(--site-accent); display: inline-flex; align-items: center; gap: 11px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--site-accent), transparent); }
.eyebrow.center { justify-content: center; }
/* Hero + page-header eyebrow → glass pill with a sparkle (brand look) */
.hero .eyebrow, .phead .eyebrow {
  padding: 9px 20px; border-radius: 999px; gap: 9px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 4px 18px -6px rgba(0,0,0,.3);
}
.hero .eyebrow::before, .phead .eyebrow::before {
  width: 13px; height: 13px; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235FB0FF'%3E%3Cpath d='M12 2c.7 4.6 1.7 5.6 6 6-4.3.4-5.3 1.4-6 6-.7-4.6-1.7-5.6-6-6 4.3-.4 5.3-1.4 6-6z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.grad-text {
  background: linear-gradient(115deg, #fff, var(--site-accent) 52%, var(--violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: var(--text-sm);
  letter-spacing: var(--tracking-snug); padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
/* Animate on the way IN, snap straight back on the way OUT — no lingering "run". */
.btn:hover, .btn:focus-visible {
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  color: #04101f;
  background: linear-gradient(135deg, #dcecff, var(--site-accent) 58%, var(--site-accent-d));
  box-shadow: 0 10px 38px -10px rgba(95,176,255,.6), inset 0 1px 0 rgba(255,255,255,.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(95,176,255,.78), inset 0 1px 0 rgba(255,255,255,.55); }
.btn--ghost { color: var(--d-text); background: var(--d-glass); border-color: var(--d-line); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--d-glass-2); border-color: rgba(255,255,255,.24); transform: translateY(-2px); }
.btn--lg { padding: 16px 28px; font-size: var(--text-base); }
.sheet .btn--ghost { color: var(--ink); background: var(--white); border-color: var(--border-strong); backdrop-filter: none; }
.sheet .btn--ghost:hover { border-color: var(--site-accent-d); color: var(--site-accent-d); }

/* ---- Brand mark ---- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__word { font-family: var(--font-display); letter-spacing: .01em; color: #fff; font-size: 18px; white-space: nowrap; }
.brand__word b { color: var(--site-accent); font-weight: 400; }

/* ---- Floating Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: center;
  padding: 16px 20px 0;
  pointer-events: none;
}
.nav__expanded {
  pointer-events: auto;
  transition: opacity .45s cubic-bezier(.4,0,.2,1), transform .45s cubic-bezier(.4,0,.2,1);
}
.nav__pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 8px 10px 16px;
  border-radius: 999px;
  background: rgba(12,16,28,.35);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 40px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.15);
}
.nav__mark { width: 28px; height: 24px; object-fit: contain; flex-shrink: 0; }
.nav__links { display: flex; gap: 4px; margin-left: 6px; }
.nav__link {
  font-family: var(--font-head); font-weight: 500; font-size: var(--text-sm);
  color: var(--d-text-2); padding: 8px 14px; border-radius: 999px;
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav__link:hover, .nav__link.is-active { color: #fff; background: rgba(255,255,255,.08); }
.nav__spacer { flex: 1; min-width: 8px; }
.nav__cta-btn { flex-shrink: 0; }
.nav__signin { font-family: var(--font-head); font-weight: 500; font-size: var(--text-sm); color: var(--d-text-2); transition: color .2s; }
.nav__signin:hover { color: #fff; }

/* Nav orb (collapsed state) */
.nav__orb {
  position: fixed;
  top: 20px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(12,16,28,.5);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 6px 28px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  display: grid; place-items: center;
  cursor: pointer; z-index: 41;
  opacity: 0; pointer-events: none;
  transition: opacity .4s cubic-bezier(.4,0,.2,1), box-shadow .3s;
  touch-action: none;
}
.nav__orb img { width: 24px; height: 24px; object-fit: contain; pointer-events: none; }
.nav__orb:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.5), 0 0 0 2px rgba(95,176,255,.3);
}

/* Collapsed state */
.nav--collapsed .nav__expanded {
  opacity: 0; transform: translateY(-16px) scale(.95);
  pointer-events: none;
}
.nav--collapsed .nav__orb {
  opacity: 1; pointer-events: auto;
}



/* ---- Hero ---- */
.hero { position: relative; padding: 168px 0 96px; }
.hero--tall { min-height: 100vh; display: flex; align-items: center; }
.hero__inner { max-width: 920px; margin: 0 auto; text-align: center; position: relative; }
/* soft premium glow behind the static logo mark */
.hero__inner::before { content: ""; position: absolute; left: 50%; top: 70px; width: 340px; height: 340px;
  transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(95,176,255,.20), transparent 62%); filter: blur(8px); }
.hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(40px, 7vw, 90px);
  line-height: 1.02; letter-spacing: -.035em; margin: 24px 0 0; text-wrap: balance; color: #fff; }
.hero__sub { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.6; color: var(--d-text-2);
  max-width: 640px; margin: 24px auto 0; text-wrap: pretty; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero__meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center;
  margin-top: 44px; color: var(--d-text-2); font-size: var(--text-sm); }
.hero__meta > span:not(.sep) {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 4px 18px -6px rgba(0,0,0,.3);
}
.hero__meta b { color: #fff; font-weight: 600; }
.hero__meta .sep { display: none; }

/* Hero benefits — clean responsive grid (replaces the old meta pills) */
.hero__builds { margin-top: 46px; width: 100%; }
.hero__builds-lead { font-family: var(--font-head); font-weight: 600; font-size: clamp(17px, 2.1vw, 22px);
  letter-spacing: -.01em; color: var(--d-text-2); text-align: center; margin: 0 0 20px; }
.hero__builds-lead .builds__dash { color: var(--site-accent); }
.hero__builds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 auto; }
.hbuild { display: flex; gap: 12px; align-items: flex-start; text-align: left;
  padding: 18px; border-radius: var(--r-card);
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 26px -12px rgba(0,0,0,.45);
  transition: transform .4s cubic-bezier(.2,.7,.3,1), border-color .4s, background .4s; }
.hbuild:hover { transform: translateY(-4px); border-color: rgba(95,176,255,.3); background: rgba(255,255,255,.07); }
.hbuild__ic { flex: none; width: 26px; height: 26px; border-radius: var(--r-tile); display: grid; place-items: center; margin-top: 1px;
  background: rgba(10,132,255,.16); border: 1px solid rgba(95,176,255,.32); color: var(--site-accent); }
.hbuild__ic svg { width: 15px; height: 15px; }
.hbuild p { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 15px; line-height: 1.45; color: var(--d-text); }
.hero__mark { width: 88px; height: 77px; margin: 0 auto; object-fit: contain;
  filter: drop-shadow(0 10px 40px rgba(95,176,255,.45)); }

/* 3D WebGL hero mark */
.hero__logo3d { position: relative; width: clamp(108px, 13vw, 162px); aspect-ratio: 1; margin: 0 auto 6px;
  filter: drop-shadow(0 18px 50px rgba(95,176,255,.35)); }
.hero__logo3d canvas { position: absolute; inset: 0; z-index: 2; }
.hero__logo3d-fallback { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 88px; height: 77px; object-fit: contain; z-index: 1;
  filter: drop-shadow(0 10px 40px rgba(95,176,255,.45)); }

/* page header (inner pages) */
.phead { position: relative; padding: 184px 0 70px; text-align: center; }
.phead h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(38px, 5.5vw, 70px);
  line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 0; color: #fff; text-wrap: balance; }
.phead p { font-size: var(--text-lg); line-height: 1.6; color: var(--d-text-2); max-width: 600px; margin: 22px auto 0; text-wrap: pretty; }

/* ---- Tools marquee (immersive) ---- */
.tools { padding: 8px 0 64px; text-align: center; }
.tools__label {
  font-family: var(--font-head); font-size: var(--text-xs); letter-spacing: .16em;
  text-transform: uppercase; color: var(--d-mute); margin: 0 0 28px;
}
.tools__marquee-wrap {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tools__row {
  display: flex; gap: 14px; padding: 5px 0; width: max-content;
  will-change: transform;
}

.tool-chip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px 0 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
  cursor: pointer; flex-shrink: 0; overflow: hidden;
  transition: all .5s cubic-bezier(.4,0,.2,1);
  user-select: none;
}
.tool-chip__icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255,255,255,.06);
  transition: all .4s;
}
.tool-chip__icon svg { width: 20px; height: 20px; color: rgba(255,255,255,.7); }
.tool-chip__img {
  width: 20px; height: 20px;
  opacity: .95;                       /* show the real brand-colour logo, not a dim white silhouette */
  transition: filter .4s, opacity .4s;
}
.tool-chip__svg { width: 20px; height: 20px; color: rgba(255,255,255,.7); transition: color .4s; }
.tool-chip__name {
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.82);
  white-space: nowrap; transition: all .5s cubic-bezier(.4,0,.2,1);
}
.tool-chip:hover { border-color: rgba(95,176,255,.32); background: rgba(255,255,255,.1); }
.tool-chip:hover .tool-chip__icon svg { color: rgba(255,255,255,.9); }
.tool-chip:hover .tool-chip__img { opacity: 1; }
.tool-chip:hover .tool-chip__name { color: #fff; }

/* ---- "We build the tech that" band (immersive) ---- */
.builds { position: relative; padding: clamp(36px, 5vw, 72px) 0 clamp(16px, 2vw, 32px); }
.builds__lead { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -.02em; color: #fff; text-align: center; margin: 0 0 34px; }
.builds__dash { color: var(--site-accent); }
.builds__list { list-style: none; padding: 0; margin: 0 auto; max-width: 700px; display: grid; gap: 16px; }
.builds__list li { display: flex; gap: 14px; align-items: flex-start;
  font-family: var(--font-head); font-weight: 500; font-size: clamp(17px, 2vw, 22px); line-height: 1.4; color: var(--d-text); }
.builds__mark { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; margin-top: 1px;
  background: rgba(10,132,255,.14); border: 1px solid rgba(95,176,255,.3); color: var(--site-accent); }
.builds__mark svg { width: 16px; height: 16px; }

/* ---- White sheet ---- */
.sheet {
  position: relative; color: var(--ink);
  border-radius: var(--sheet-radius);
  box-shadow: 0 -4px 80px rgba(0,0,0,.3), 0 30px 90px -40px rgba(0,0,0,.5);
  background: var(--white);
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(95,176,255,.07) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 40%, rgba(124,155,255,.05) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 85%, rgba(95,176,255,.04) 0%, transparent 45%);
}
.sheet h2, .sheet h3, .sheet h4 { color: var(--ink); }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section + .section { padding-top: clamp(40px, 5vw, 64px); }
.shead { max-width: 700px; }
.shead.center { margin: 0 auto; text-align: center; }
.shead .eyebrow { color: var(--site-accent-d); }
.shead .eyebrow::before { background: linear-gradient(90deg, var(--site-accent-d), transparent); }
.shead h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.06; letter-spacing: -.03em; margin: 16px 0 0; text-wrap: balance; }
.shead p { font-size: var(--text-lg); line-height: 1.6; color: var(--ink-2); margin: 18px 0 0; text-wrap: pretty; }

/* ---- Cards ---- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 64px; }
.cards .card:first-child { grid-column: 1 / -1; }
.cards .card:last-child { grid-column: 1 / -1; }
.cards .card:first-child .card__inner,
.cards .card:last-child .card__inner { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.cards .card:first-child .card__icon,
.cards .card:last-child .card__icon { margin: 0; }
.cards .card:first-child .card__text h3,
.cards .card:last-child .card__text h3 { margin: 0 0 6px; }
.cards .card:first-child .card__text p,
.cards .card:last-child .card__text p { margin: 0; }
.cards .card:first-child .card__arrow,
.cards .card:last-child .card__arrow { grid-column: 1 / -1; }
.card { position: relative; display: flex; flex-direction: column; padding: 40px 36px; border-radius: var(--r-card);
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(32px) saturate(180%); -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 1px 2px rgba(10,30,60,.03), inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(0,0,0,.02);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .45s cubic-bezier(.2,.7,.3,1), box-shadow .45s, border-color .4s, background .4s; }
.card:hover { transform: translateY(-5px);
  background: rgba(255,255,255,.28);
  box-shadow: 0 16px 40px rgba(10,132,255,.07), 0 2px 6px rgba(10,30,60,.03), inset 0 1px 0 rgba(255,255,255,.7);
  border-color: rgba(95,176,255,.3); }
.card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r-tile); margin: 0 0 22px;
  background: rgba(10,132,255,.07);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(10,132,255,.1); color: var(--site-accent-d);
  transition: background .4s, border-color .4s, transform .35s; }
.card:hover .card__icon { background: rgba(10,132,255,.14); border-color: rgba(10,132,255,.22); transform: scale(1.06); }
.card__icon img { width: 24px; height: 24px; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--font-head); font-size: var(--text-lg); font-weight: 600; margin: 0 0 8px; letter-spacing: -.02em; }
.card p { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.6; margin: 0; flex: 1; }
.card__arrow { display: flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--site-accent-d);
  font-family: var(--font-head); font-size: var(--text-xs); font-weight: 600; opacity: 0; transform: translateX(-6px);
  transition: opacity .3s, transform .3s; }
.card__arrow svg { width: 16px; height: 16px; }
.card:hover .card__arrow { opacity: 1; transform: translateX(0); }
.section--services { padding: clamp(96px, 12vw, 160px) 0; }

/* ---- Service detail rows ---- */
.srow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: clamp(48px,6vw,76px) 0; border-top: 1px solid var(--border-faint); }
.srow:first-of-type { border-top: none; }
.srow--flip .srow__media { order: -1; }
.srow__n { font-family: var(--font-head); font-weight: 700; font-size: var(--text-sm); letter-spacing: .18em; color: var(--site-accent-d); }
.srow h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(24px,3vw,36px); letter-spacing: -.025em; margin: 14px 0 0; }
.srow p { color: var(--ink-2); font-size: var(--text-md); line-height: 1.62; margin: 16px 0 0; }
.srow__list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.srow__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: var(--text-base); }
.srow__list svg { width: 18px; height: 18px; color: var(--site-accent-d); flex: none; margin-top: 2px; }
.srow__media { aspect-ratio: 4/3; border-radius: var(--r-card); border: 1px solid var(--border); overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--tint) 0 14px, var(--tint-2) 14px 28px);
  display: grid; place-items: center; position: relative; }
.srow__media .ph { font-family: var(--font-head); font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* ---- Process steps ---- */
.section--process { padding: clamp(96px, 12vw, 160px) 0;
  border-top: 1px solid var(--border-faint); }
.process-steps { display: grid; gap: 0; margin-top: 72px; counter-reset: pstep; }
.pstep { display: grid; grid-template-columns: 80px 1fr; gap: 32px; align-items: start;
  padding: 40px 0; border-bottom: 1px solid var(--border-faint);
  transition: background .35s; }
.pstep:first-child { padding-top: 0; }
.pstep:last-child { border-bottom: none; padding-bottom: 0; }
.pstep__num { font-family: var(--font-head); font-size: clamp(36px, 4vw, 52px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(135deg, var(--site-accent-d), var(--site-accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: .18; transition: opacity .4s, transform .4s; }
.pstep:hover .pstep__num { opacity: .5; transform: scale(1.08); }
.pstep__body h3 { font-family: var(--font-head); font-size: var(--text-xl); font-weight: 600;
  margin: 0 0 8px; letter-spacing: -.02em;
  transition: color .3s; }
.pstep:hover .pstep__body h3 { color: var(--site-accent-d); }
.pstep__body p { color: var(--ink-2); font-size: var(--text-base); line-height: 1.62; margin: 0;
  max-width: 520px; }

/* ---- Metrics ---- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.metric { padding: 28px; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(10,30,60,.03); }
.metric__v { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px,4.4vw,52px); letter-spacing: -.03em; color: var(--ink);
  background: linear-gradient(135deg, var(--site-accent-d), var(--site-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metric__l { color: var(--ink-2); font-size: var(--text-sm); margin-top: 8px; line-height: 1.5; }

/* ---- Work / cases ---- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 52px; }
.case { border-radius: var(--r-card); border: 1px solid var(--border); overflow: hidden; background: var(--white);
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s, border-color .4s; }
.case:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -30px rgba(10,132,255,.35); border-color: var(--accent-border); }
.case__media { aspect-ratio: 16/10; background: repeating-linear-gradient(135deg, var(--tint) 0 16px, var(--tint-2) 16px 32px);
  display: grid; place-items: center; border-bottom: 1px solid var(--border); position: relative; }
.case__media .ph { font-family: var(--font-head); font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.case__media [data-preview] { border-radius: 0; border: none; box-shadow: none; }
.case__tag { position: absolute; top: 16px; left: 16px; font-family: var(--font-head); font-size: var(--text-2xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--site-accent-d); background: rgba(255,255,255,.92);
  border: 1px solid var(--accent-border); padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.case__body { padding: 26px 28px 30px; }
.case__body h3 { font-family: var(--font-head); font-weight: 600; font-size: var(--text-xl); letter-spacing: -.02em; margin: 0; }
.case__body p { color: var(--ink-2); font-size: var(--text-base); line-height: 1.6; margin: 12px 0 0; }
.case__stats { display: flex; gap: 26px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-faint); }
.case__stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: var(--text-xl); letter-spacing: -.02em; color: var(--site-accent-d); }
.case__stat span { font-size: var(--text-xs); color: var(--mute); }

/* ---- Mission ---- */
.section--why { padding: clamp(120px, 14vw, 200px) 0; }
.wrap--wide { max-width: 1100px; }
.mission { text-align: center; max-width: 1000px; margin: 0 auto; }
.mission__head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 8px; }
.mission__mark { width: 64px; height: 56px; margin: 0 auto; }
.mission__quote { font-family: var(--font-head); font-weight: 600; font-size: clamp(30px,4.2vw,52px);
  line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; color: var(--ink);
  cursor: default; margin: 28px 0 0; }
.mission__cta { margin-top: 46px; }

/* Individual word hover effect */
.mq-word {
  display: inline; transition: color .25s, -webkit-text-fill-color .25s;
  -webkit-text-fill-color: var(--ink);
}
.mq-word:hover {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(120deg, var(--site-accent-d), var(--site-accent));
  -webkit-background-clip: text; background-clip: text;
}
.mq-word--hl {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(120deg, var(--site-accent-d), var(--violet, #7C9BFF));
  -webkit-background-clip: text; background-clip: text;
}
.mq-word--hl:hover {
  background: linear-gradient(120deg, var(--site-accent), #fff);
  -webkit-background-clip: text; background-clip: text;
}

.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 72px; text-align: center; }
.pillar { padding: 40px 28px; border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(10,30,60,.03);
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s, border-color .4s; }
.pillar:hover { transform: translateY(-6px); border-color: var(--accent-border);
  box-shadow: 0 30px 70px -34px rgba(10,132,255,.4); }
.pillar__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r-tile); margin: 0 auto 18px;
  background: rgba(10,132,255,.07);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(10,132,255,.1); color: var(--site-accent-d);
  transition: transform .4s; }
.pillar:hover .pillar__icon { transform: scale(1.1); }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h4 { font-family: var(--font-head); font-size: var(--text-md); font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.pillar p { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.6; margin: 0; }

/* ---- CTA ---- */
.cta { position: relative; padding: clamp(80px,11vw,140px) 0; text-align: center; }
.cta__inner { max-width: 780px; margin: 0 auto; padding: clamp(48px,7vw,82px) 40px; border-radius: var(--r-card);
  background: rgba(14,20,36,.5); border: 1px solid rgba(255,255,255,.12); 
  backdrop-filter: blur(34px) saturate(150%);
  -webkit-backdrop-filter: blur(34px) saturate(150%); position: relative; overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(0,0,0,.2); }
.cta__inner::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(95,176,255,.6), transparent 50%, rgba(124,155,255,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cta__mark { width: 58px; height: 51px; margin: 0 auto 22px; object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(95,176,255,.5)); }
.cta h2 { font-family: var(--font-head); font-size: clamp(32px,5vw,58px); font-weight: 700; letter-spacing: -.03em; margin: 0; color: #fff; }
.cta p { color: var(--d-text-2); font-size: var(--text-lg); line-height: 1.6; max-width: 540px; margin: 18px auto 0; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; position: relative; }
.cta__fine { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.cta__glass-pill {
  display: inline-flex; align-items: center; padding: 11px 24px;
  border-radius: 999px; font-family: var(--font-head); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: .03em; color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.1);
  transition: transform .5s cubic-bezier(.2,.7,.3,1), letter-spacing .4s, font-size .4s, padding .4s, background .35s, border-color .35s, box-shadow .45s, color .3s;
  cursor: default;
}
.cta__glass-pill:hover {
  transform: scale(1.25);
  font-size: var(--text-sm);
  padding: 12px 28px;
  letter-spacing: .06em;
  color: #fff;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  border-color: rgba(95,176,255,.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 0 20px rgba(95,176,255,.06),
    0 0 0 1px rgba(95,176,255,.08),
    0 12px 32px rgba(95,176,255,.12),
    0 4px 12px rgba(0,0,0,.1);
  z-index: 2;
}

/* ---- Footer ---- */
.footer { position: relative; padding: 48px 0 28px; background: var(--white); color: var(--ink); border-top: none; }
.footer__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
.footer__line { color: var(--ink-2); font-size: var(--text-sm); max-width: 240px; margin: 12px 0 16px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-tile);
  background: var(--tint); border: 1px solid var(--border); font-family: var(--font-head); font-size: 11px; color: var(--ink-2); transition: .2s; }
.footer__social a:hover { color: var(--ink); background: var(--tint-2); }
.footer__cols { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.footer__col-title { display: block; font-family: var(--font-head); font-size: var(--text-2xs); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.footer__col a { display: block; color: var(--ink-2); font-size: var(--text-sm); padding: 4px 0; transition: color .2s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer__word { font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.footer__word b { color: var(--site-accent-d); font-weight: 400; }
.footer__copy { color: var(--mute); font-size: var(--text-xs); }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { color: var(--mute); font-size: var(--text-xs); }
.footer__legal a:hover { color: var(--ink); }

/* ---- Contact form ---- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__sub { color: var(--ink-2); font-size: var(--text-lg); line-height: 1.6; margin: 18px 0 0; max-width: 440px; }
.contact__list { margin: 36px 0 0; display: grid; gap: 16px; }
.contact__item { display: flex; gap: 14px; align-items: flex-start; }
.contact__item .ic { width: 42px; height: 42px; flex: none; border-radius: var(--r-tile); display: grid; place-items: center;
  background: var(--tint-2); border: 1px solid var(--accent-border); color: var(--site-accent-d); }
.contact__item .ic svg { width: 18px; height: 18px; }
.contact__item .lab { font-family: var(--font-head); font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.contact__item .val { color: var(--ink); font-size: var(--text-base); margin-top: 2px; }
.form { padding: 34px; border-radius: var(--r-card); background: var(--white); border: 1px solid var(--border); box-shadow: 0 24px 60px -34px rgba(10,30,60,.3); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.input, .textarea, .select { width: 100%; padding: 13px 15px; border-radius: var(--r-tile); background: var(--tint);
  border: 1px solid var(--border); color: var(--ink); font-family: var(--font-sans); font-size: var(--text-base);
  transition: border-color .2s, background .2s, box-shadow .2s; }
.input::placeholder, .textarea::placeholder { color: var(--mute); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--site-accent-d); background: var(--white); box-shadow: 0 0 0 4px rgba(10,132,255,.12); }
.textarea { min-height: 122px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7585' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__submit { margin-top: 8px; width: 100%; justify-content: center; }
.form__note { margin-top: 16px; text-align: center; color: var(--mute); font-size: var(--text-xs); }
.form.is-sent { text-align: center; display: grid; place-items: center; min-height: 360px; }
.form__success { display: none; }
.form.is-sent .form__success { display: block; }
.form.is-sent .form__body { display: none; }
.form__check { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px;
  background: var(--tint-2); border: 1px solid var(--accent-border); color: var(--site-accent-d); }
.form__check svg { width: 28px; height: 28px; }

/* ---- Logo-burst animation (form success) ---- */
.logo-burst { width: 150px; max-width: 60%; margin: 0 auto 24px; }
.logo-burst__svg { width: 100%; height: auto; display: block; overflow: visible; }
.mai-left, .mai-right { fill: var(--site-accent-d, #0A84FF); }
.mai-spark { fill: var(--site-accent, #5FB0FF); }
.logo-burst__title {
  font-family: var(--font-head); font-size: clamp(22px, 3vw, 30px);
  font-weight: 700; letter-spacing: -.025em; margin: 0; color: var(--ink);
}
.logo-burst__title span { color: var(--site-accent-d, #0A84FF); }
.logo-burst__sub {
  color: var(--ink-2); font-size: var(--text-base); line-height: 1.6;
  max-width: 340px; margin: 14px auto 0; text-align: center;
}

/* ---- Service sticky tabs ---- */
.service-tabs {
  position: sticky; top: 0; z-index: 30;
  display: flex; justify-content: center; gap: 4px;
  padding: 14px 20px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-faint);
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
}
.service-tab {
  font-family: var(--font-head); font-size: var(--text-2xs); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; background: transparent;
  transition: color .3s, background .3s, border-color .3s; white-space: nowrap;
}
.service-tab:hover { color: var(--ink-2); background: var(--tint); }
.service-tab.is-active {
  color: var(--site-accent-d); background: var(--tint-2); border-color: var(--accent-border);
}

/* ---- Service full-height sections ---- */
.service-full {
  min-height: 85vh; display: flex; align-items: center;
  padding: clamp(72px, 9vw, 120px) 0; position: relative; overflow: hidden;
}
.service-full + .service-full { border-top: 1px solid var(--border-faint); }
.service-full .srow { padding: 0; border-top: none; }
.service-full__wm {
  position: absolute; top: 50%; right: 40px; transform: translateY(-50%);
  font-family: var(--font-head); font-size: clamp(140px, 22vw, 320px);
  font-weight: 800; letter-spacing: -.06em; line-height: .9;
  color: var(--tint); pointer-events: none; user-select: none;
}
.service-next {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 36px; font-family: var(--font-head); font-weight: 600;
  font-size: var(--text-sm); color: var(--site-accent-d);
  background: none; border: none; padding: 0; cursor: pointer;
  text-decoration: none; transition: gap .3s;
}
.service-next:hover { gap: 16px; }
.service-next svg { width: 18px; height: 18px; transition: transform .3s; }
.service-next:hover svg { transform: translateX(4px); }

/* ---- Mobile menu (hamburger + compact glass dropdown) ---- */
.nav__toggle { display: none; }
.nav__menu { display: none; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .cards { grid-template-columns: 1fr; }
  .process-steps { gap: 0; }
  .pstep { grid-template-columns: 60px 1fr; gap: 20px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .work { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .srow { grid-template-columns: 1fr; gap: 28px; }
  .srow--flip .srow__media { order: 0; }
  .nav__links, .nav__signin { display: none; }
  .service-tabs { flex-wrap: wrap; gap: 3px; padding: 10px 12px; }
  .service-tab { font-size: 10px; padding: 7px 12px; }
  .service-full { min-height: auto; }
  .service-full__wm { font-size: 100px; right: 16px; }

  /* compact pill-style mobile nav: logo + hamburger; links & CTA live in the dropdown */
  .nav__pill .btn--primary { display: none; }
  /* keep the pill visible on phones — never collapse to a floating orb that gets lost over content */
  .nav__orb { display: none !important; }
  .nav--collapsed .nav__expanded { opacity: 1; transform: none; pointer-events: auto; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 42px; height: 42px; margin-left: auto; flex-shrink: 0; padding: 0 11px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06); cursor: pointer;
    transition: background .2s, border-color .2s;
  }
  .nav__toggle span { display: block; height: 2px; width: 100%; border-radius: 2px;
    background: var(--d-text); transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .25s; }
  .nav__toggle:hover { background: rgba(255,255,255,.1); }
  .nav--menu-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav--menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav--menu-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav__menu {
    display: block; position: absolute; top: 74px; left: 20px; right: 20px;
    padding: 10px; border-radius: var(--r-card);
    background: rgba(12,16,28,.55);
    backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 54px -12px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
    opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top center;
    pointer-events: none; transition: opacity .26s cubic-bezier(.2,.7,.2,1), transform .26s cubic-bezier(.2,.7,.2,1);
  }
  .nav--menu-open .nav__menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .nav__menu-links { display: flex; flex-direction: column; gap: 2px; }
  .nav__menu-links a {
    font-family: var(--font-head); font-weight: 500; font-size: 16px; color: var(--d-text-2);
    padding: 13px 16px; border-radius: var(--r-tile); transition: background .2s, color .2s; }
  .nav__menu-links a:hover, .nav__menu-links a.is-active { color: #fff; background: rgba(255,255,255,.08); }
  .nav__menu-cta { width: 100%; justify-content: center; margin-top: 8px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .pstep { grid-template-columns: 1fr; gap: 8px; }
  .pstep__num { font-size: 28px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  :root { --sheet-radius: 28px; }

  /* Hero scaled down so the landing actually fits a phone */
  .hero { padding: 116px 0 60px; }
  .hero--tall { min-height: auto; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 40px); margin-top: 18px; }
  .hero__sub { font-size: 16px; margin-top: 16px; }
  .hero__cta { margin-top: 26px; gap: 10px; }
  .hero__cta .btn--lg { padding: 14px 22px; font-size: var(--text-sm); }
  .hero__meta { margin-top: 28px; gap: 8px; }
  .hero__meta > span:not(.sep) { padding: 8px 13px; font-size: 12px; }
  .hero__mark { width: 60px; height: 53px; }
  .hero__builds { margin-top: 32px; }
  .hero__inner::before { top: 54px; width: 240px; height: 240px; }
  .phead { padding: 124px 0 44px; }
  .phead h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .phead p { font-size: var(--text-base); }
  .tools { padding: 4px 0 40px; }
  .tools__label { margin-bottom: 18px; }
}
