/* ==========================================================================
   NEXAAB — Premium dark editorial redesign
   Tokens, base, and all component styles.
   Sections are ordered to match the DOM for easy Webflow porting.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-panel: #0d0d0f;
  --bg-card: #101013;
  --line: rgba(242, 240, 236, 0.08);
  --text: #f2f0ec;
  --text-muted: #8a8a93;
  /* Accent pulled from the Nexaab logo blues: royal #1565c0 + navy #0d2b56,
     brightened to #3e8dff for contrast on near-black backgrounds. */
  --accent: #3e8dff;
  --accent-dim: rgba(62, 141, 255, 0.12);
  --navy: #0d2b56;
  --font-display: "Clash Display", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  --radius: 16px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, canvas { display: block; max-width: 100%; }

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

::selection { background: var(--accent); color: #041226; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(90px, 12vw, 160px); }

/* Eyebrow micro-label */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: clamp(40px, 6vw, 80px);
}

/* Split-word animation targets */
.split-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split-words .w > span {
  display: inline-block;
  transform: translateY(110%);
}

/* Generic reveal target (JS animates in) */
.reveal { opacity: 0; }
.no-motion .reveal,
.no-motion .split-words .w > span,
.no-motion .hero__line-inner { opacity: 1 !important; transform: none !important; filter: none !important; }

/* ---------- Grain overlay ----------
   Static by design: an animated full-viewport grain layer forces constant
   compositing and was the main source of scroll lag. A still grain reads
   identically at 4% opacity and costs nothing. */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.preloader__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.35em;
  padding-left: 0.35em; /* optically center the tracked text */
}
.preloader__count {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.preloader__curtain {
  position: absolute;
  inset: 0;
  background: var(--bg-panel);
  transform: scaleY(0);
  transform-origin: top;
  z-index: -1;
}
.preloader.is-done { pointer-events: none; }

/* ---------- Custom cursor (desktop only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
  }
  .cursor__dot {
    position: fixed;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: var(--accent);
  }
  .cursor__ring {
    position: fixed;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border-radius: 50%;
    border: 1px solid rgba(242, 240, 236, 0.35);
    display: grid;
    place-items: center;
    transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
      margin 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s;
  }
  .cursor__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #05130d;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .cursor.is-hover .cursor__ring {
    width: 56px; height: 56px; margin: -28px 0 0 -28px;
    border-color: var(--accent);
  }
  .cursor.is-view .cursor__ring {
    width: 76px; height: 76px; margin: -38px 0 0 -38px;
    background: var(--accent);
    border-color: var(--accent);
  }
  .cursor.is-view .cursor__label { opacity: 1; }
  .cursor.is-view .cursor__dot { opacity: 0; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--gutter);
  background: rgba(10, 10, 11, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.45s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.nav__logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  /* lift the navy strokes of the mark on the dark background */
  filter: brightness(1.2);
}
.nav__logo-text { line-height: 1; }
.nav__links { display: flex; gap: 34px; }
.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav__burger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: rgba(10, 10, 11, 0.97);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 26px; text-align: center; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.mobile-menu__link--accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  transition: color 0.3s var(--ease-out), border-color 0.3s;
}
.btn--lg { padding: 17px 36px; font-size: 15px; }
.btn--xl { padding: 22px 52px; font-size: 17px; }
.btn--primary {
  background: var(--accent);
  color: #041226;
}
.btn--primary .btn__fill {
  position: absolute;
  inset: 0;
  background: var(--text);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.4s var(--ease-out);
  z-index: 0;
}
.btn--primary:hover .btn__fill { transform: translateY(0); }
.btn__text { position: relative; z-index: 1; }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#auroraCanvas { width: 100%; height: 100%; }
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(52px, 9.5vw, 150px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__line { display: block; overflow: hidden; }
.hero__line-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__sub {
  max-width: 46ch;
  color: var(--text-muted);
  font-size: clamp(15px, 1.3vw, 17px);
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 1;
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: scroll-pulse 1.8s var(--ease-out) infinite;
}
@keyframes scroll-pulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line { animation: none; }
}

/* ---------- Marquees ---------- */
.marquee-section {
  border-block: 1px solid var(--line);
  padding-block: 26px;
  overflow: hidden;
  background: var(--bg-panel);
}
.marquee-section--keywords { background: transparent; }
.marquee { overflow: hidden; }
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  white-space: nowrap;
  will-change: transform;
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 32px);
  letter-spacing: -0.01em;
  color: var(--text-muted);
  transition: color 0.3s;
}
.marquee:hover .marquee__item { color: var(--text); }
.marquee__sep { color: var(--accent); font-size: 14px; }
.marquee__track--outline .marquee__item {
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 236, 0.25);
  font-size: clamp(28px, 4vw, 52px);
}
.marquee:hover .marquee__track--outline .marquee__item {
  -webkit-text-stroke-color: var(--accent);
  color: transparent;
}

/* ---------- Stats ---------- */
.stats { padding-block: clamp(70px, 8vw, 110px); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 60px);
}
.stat { border-left: 1px solid var(--line); padding-left: clamp(16px, 2vw, 28px); }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat__num-thin { color: var(--text-muted); }
.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ---------- Bento services ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento__card {
  position: relative;
  grid-column: span 2;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.3s;
}
.bento__card--wide { grid-column: span 3; }
.bento__card--full { grid-column: span 6; }
.bento__card:hover { border-color: rgba(62, 141, 255, 0.35); }
/* Cursor-tracked glow: JS sets --mx / --my as percentages */
.bento__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(62, 141, 255, 0.12),
    transparent 65%
  );
}
.bento__card:hover .bento__glow { opacity: 1; }
.bento__num {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 40px;
}
.bento__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.bento__desc { color: var(--text-muted); font-size: 14.5px; max-width: 44ch; }
.bento__icon {
  position: absolute;
  top: 26px;
  right: 28px;
  font-size: 20px;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.4s var(--ease-out);
}
.bento__card:hover .bento__icon {
  color: var(--accent);
  transform: rotate(90deg) scale(1.2);
}

/* ---------- Work ---------- */
.work__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
}
.work-card {
  text-decoration: none;
  display: block;
}
.work-card:nth-child(even) { transform: translateY(clamp(0px, 4vw, 56px)); }
.work-card__visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--line);
}
.work-card__visual--a { background: radial-gradient(120% 120% at 20% 10%, #0e1e3a 0%, var(--bg-card) 60%); }
.work-card__visual--b { background: radial-gradient(120% 120% at 80% 10%, #101d3a 0%, var(--bg-card) 60%); }
.work-card__visual--c { background: radial-gradient(120% 120% at 20% 90%, #33180f 0%, var(--bg-card) 60%); }
.work-card__visual--d { background: radial-gradient(120% 120% at 80% 90%, #241038 0%, var(--bg-card) 60%); }
.work-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(62, 141, 255, 0.1);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.work-card:hover .work-card__visual::after { opacity: 1; }

/* Abstract browser mockup */
.mockup {
  width: 72%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.6s var(--ease-out);
  backdrop-filter: blur(4px);
}
.work-card:hover .mockup { transform: scale(1.06); }
.mockup__bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mockup__bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.mockup__body { padding: 16px; }
.mockup__hero {
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(120deg, var(--mh, var(--accent)), transparent 90%);
  opacity: 0.65;
  margin-bottom: 12px;
}
.mockup__row { display: flex; gap: 8px; }
.mockup__row i {
  flex: 1;
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}
.work-card__meta { display: grid; gap: 8px; }
.work-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.work-card__name::after {
  content: "→";
  font-size: 0.7em;
  color: var(--accent);
  transform: translateX(-6px);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}
.work-card:hover .work-card__name::after { transform: translateX(0); opacity: 1; }
.work-card__outcome { color: var(--text-muted); font-size: 14.5px; max-width: 46ch; }
.work-card__tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Full work index grouped by platform */
.work-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(60px, 8vw, 110px);
}
.work-index__group {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.work-index__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.work-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.work-index__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.01em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, padding-left 0.3s var(--ease-out), border-color 0.25s;
}
.work-index__link span {
  color: var(--accent);
  font-size: 0.75em;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.25s, transform 0.3s var(--ease-out);
}
.work-index__link:hover {
  color: var(--text);
  padding-left: 12px;
  border-color: rgba(62, 141, 255, 0.4);
}
.work-index__link:hover span {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------- Who we help ---------- */
.who__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.who__panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 56px);
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.who__panel:hover { transform: translateY(-4px); }
.who__panel--accent {
  background: linear-gradient(160deg, rgba(62, 141, 255, 0.09), var(--bg-card) 55%);
  border-color: rgba(62, 141, 255, 0.25);
}
.who__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.who__desc { color: var(--text-muted); font-size: 15px; margin-bottom: 26px; }
.who__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.who__list li {
  padding-left: 22px;
  position: relative;
  font-size: 14.5px;
}
.who__list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
  top: 4px;
}

/* ---------- Process (pinned) ---------- */
.process { padding-block: 0; }
.process__pin {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(90px, 10vw, 140px);
}
.process__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  width: 100%;
}
.process__left { position: sticky; top: 120px; }
.process__left .section__title { margin-bottom: 40px; }
.process__progress {
  width: 100%;
  max-width: 260px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.process__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
}
.process__steps { display: grid; gap: clamp(20px, 3vw, 36px); }
.process__step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 42px);
  background: var(--bg-card);
  opacity: 0.35;
  transition: opacity 0.4s, border-color 0.4s;
}
.process__step.is-active {
  opacity: 1;
  border-color: rgba(62, 141, 255, 0.3);
}
.process__num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 16px;
}
.process__step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 10px;
}
.process__step-desc { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Testimonials ---------- */
.testi { position: relative; }
.testi__viewport {
  position: relative;
  min-height: clamp(260px, 30vw, 340px);
  cursor: grab;
}
.testi__viewport:active { cursor: grabbing; }
.testi__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}
.testi__slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.testi__quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.6vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 26ch;
  margin-bottom: 28px;
}
.testi__attr {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.testi__controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}
.testi__dots { display: flex; gap: 10px; }
.testi__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.testi__dot.is-active { background: var(--accent); transform: scale(1.3); }
.testi__progress {
  flex: 1;
  max-width: 180px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.testi__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* ---------- FAQ ---------- */
.faq__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.faq__intro { position: sticky; top: 120px; }
.faq__intro .section__title { margin-bottom: 24px; }
.faq__sub { color: var(--text-muted); font-size: 15px; max-width: 36ch; }
.faq__mail {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(62, 141, 255, 0.4);
  transition: border-color 0.25s;
}
.faq__mail:hover { border-color: var(--accent); }
.faq__list { display: grid; gap: 0; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.8vw, 21px);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.35s var(--ease-out);
}
.faq__icon::before {
  left: 0; right: 0; top: 7px; height: 2px;
}
.faq__icon::after {
  top: 0; bottom: 0; left: 7px; width: 2px;
}
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__a {
  overflow: hidden;
}
.faq__a p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 62ch;
  padding: 0 4px 24px;
}

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  min-height: 92svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta__glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 141, 255, 0.1) 0%, transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glow-drift 9s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate(-56%, -52%) scale(1); }
  to { transform: translate(-44%, -48%) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .cta__glow { animation: none; }
}
.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 26px;
}
.cta__sub {
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 44px;
  font-size: clamp(15px, 1.3vw, 17px);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-panel);
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-block: clamp(50px, 6vw, 80px);
}
.footer__label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer__link {
  display: block;
  width: fit-content;
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 10px;
}
.footer__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.footer__link:hover::after { transform: scaleX(1); }
.footer__text { color: var(--text-muted); font-size: 15px; }
.footer__col--brand { max-width: 320px; }
.footer__logo {
  width: 120px;
  height: auto;
  margin-bottom: 18px;
  /* white version of the full logo for legibility on the dark footer */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer__socials { display: flex; gap: 12px; }
.footer__social {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.25s var(--ease-out);
}
.footer__social:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.footer__wordmark {
  display: flex;
  justify-content: center;
  overflow: hidden;
  line-height: 0.8;
  padding-bottom: 10px;
}
.footer__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(90px, 17vw, 300px);
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 236, 0.16);
  transform: translateY(35%);
  transition: color 0.6s var(--ease-out), -webkit-text-stroke-color 0.6s;
  user-select: none;
}
.footer__wordmark:hover .footer__word {
  color: var(--accent-dim);
  -webkit-text-stroke-color: var(--accent);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 13px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__card, .bento__card--wide { grid-column: span 1; }
  .bento__card--full { grid-column: span 2; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process__layout { grid-template-columns: 1fr; }
  .process__left { position: static; }
  .process__pin { min-height: 0; }
  .faq__layout { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav .btn { display: none; }
  .nav__burger { display: flex; }
  .work__list { grid-template-columns: 1fr; }
  .work-card:nth-child(even) { transform: none; }
  .work-index { grid-template-columns: 1fr; }
  .who__panels { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__card--full { grid-column: span 1; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__scroll-hint { display: none; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .btn--xl { padding: 18px 40px; font-size: 15px; }
}
