/* ===== About page =====
   Same language as the home page: black stage, violet light, Sora + Instrument Serif
   italics, pill badges, hairline grids. The hero continues the home dive — we're
   "inside Squarezix" — so it opens in the same starfield universe. */
.page-about main { --u: 1px; background: var(--page); color: #fff; }   /* --u sizes the shared xl buttons */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.nav-link.is-current { color: #621dd0; }

/* Shared type */
.ab-h2 {
  font-family: "Sora", sans-serif; font-weight: 500;
  font-size: clamp(34px, 4.4vw, 64px); line-height: 1.06; letter-spacing: -0.035em;
}
.ab-h2 em, .ab-hero-title em, .work-head h2 em {
  font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400;
  font-size: 1.14em; letter-spacing: -0.01em;
  background: linear-gradient(90deg, #ab24f2, #d9b8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.ab-head { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.ab-center { text-align: center; }
.ab-head .ab-h2 { margin-top: 20px; }
.ab-sub {
  margin: 18px auto 0; max-width: 680px;
  font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; color: #b8b8d1;
}
/* Word-by-word light-up (about.js), same feel as the home headings */
[data-reveal] .word { opacity: var(--o, 0.12); transition: opacity .2s linear; }

/* Scroll-in rise */
@media (prefers-reduced-motion: no-preference) {
  [data-rise] { opacity: 0; translate: 0 26px; transition: opacity .9s ease, translate 1s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
  [data-rise].is-in { opacity: 1; translate: 0 0; }
}

/* ---------- Hero ---------- */
.ab-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: var(--header-h);
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: clamp(56px, 7vw, 110px) 0 clamp(64px, 7vw, 120px);
  background:
    radial-gradient(40% 55% at 22% 40%, rgba(98, 29, 208, .22), transparent 70%),
    radial-gradient(38% 50% at 80% 70%, rgba(171, 36, 242, .12), transparent 70%),
    radial-gradient(120% 90% at 50% 50%, #140a26 0%, #0a0616 50%, #030208 100%);
}
.ab-stars { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
/* Faint scanlines — the same signal as the end of the home dive */
.ab-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
}
.ab-hero-grid {
  position: absolute; inset: 0; z-index: -1;
  display: grid; grid-template-columns: repeat(5, 1fr);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
          mask-image: linear-gradient(#000 40%, transparent);
}
.ab-hero-grid span { margin: 0 8px; border-left: 1px solid rgba(255, 255, 255, .06); border-right: 1px solid rgba(255, 255, 255, .06); }

.ab-hero-inner {
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 84px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.ab-badge { text-transform: uppercase; letter-spacing: .08em; }
.ab-hero-title {
  margin-top: 22px;
  font-family: "Sora", sans-serif; font-weight: 500;
  font-size: clamp(38px, 4.6vw, 76px); line-height: 1.04; letter-spacing: -0.04em;
}
.ab-hero-title > span { display: block; }
.ab-grad {
  background: linear-gradient(90deg, #e3d7ff 0%, #b98cff 18%, #ab24f2 45%, #ab24f2 78%, #d6c2ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.ab-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 3vw, 40px); }
.ab-hero-cta svg, .ab-btn-ghost svg { width: 1em; height: 1em; transition: transform .3s ease; }
.ab-hero-cta a:hover svg { transform: translateX(3px); }
.ab-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .7);
  color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 500;
  transition: background .25s ease, border-color .25s ease;
}
.ab-btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

/* Monitor with the home-page TV signal inside */
.ab-hero-media { position: relative; margin: 0; }
.ab-screen {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: clamp(18px, 2vw, 28px);
  background: #0a0616;
  box-shadow:
    0 0 0 1px rgba(181, 123, 255, .35),
    0 30px 80px rgba(0, 0, 0, .6),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.ab-screen video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; filter: saturate(1.1); }
.ab-screen-fx {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(to bottom, transparent, rgba(200, 170, 255, .06) 50%, transparent) 0 -40% / 100% 16% no-repeat;
  animation: ab-band 6s linear infinite;
}
@keyframes ab-band { from { background-position: 0 0, 0 0, 0 -40%; } to { background-position: 0 0, 0 0, 0 140%; } }
.ab-screen-ui {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; justify-content: space-between;
  padding: clamp(12px, 1.4vw, 20px) clamp(14px, 1.6vw, 24px);
  font-family: "DM Sans", sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(243, 240, 247, .75);
}
.ab-screen-ui span { display: inline-flex; align-items: center; gap: 8px; }
.crt-rec {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff3d3d; box-shadow: 0 0 8px rgba(255, 61, 61, .8);
  animation: rec-blink 1.2s steps(1) infinite;
}
@keyframes rec-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }

/* Floating stat cards (glass) */
.ab-stat {
  position: absolute; z-index: 2;
  display: grid; gap: 2px;
  padding: 14px 18px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)), rgba(20, 10, 40, .6);
  border: 1px solid rgba(192, 132, 252, .45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.ab-stat strong { font-family: "Sora", sans-serif; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.03em; }
.ab-stat span { font-size: 12px; color: #d9ccff; }
.ab-stat--a { left: clamp(-28px, -2vw, -12px); bottom: clamp(-24px, -2vw, -12px); }
.ab-stat--b { right: clamp(-20px, -1.6vw, -10px); top: 18%; }
@media (prefers-reduced-motion: no-preference) {
  .ab-stat--a { animation: ab-float 6s ease-in-out infinite; }
  .ab-stat--b { animation: ab-float 7s ease-in-out -2s infinite; }
}
@keyframes ab-float { 50% { transform: translateY(-8px); } }

/* ---------- Comparison ---------- */
.ab-compare { padding: clamp(80px, 9vw, 130px) clamp(16px, 5vw, 84px) 0; }
.ab-compare-grid {
  max-width: 1440px; margin: clamp(36px, 4vw, 56px) auto 0;
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(14px, 1.6vw, 22px); align-items: stretch;
}
.ab-cmp {
  position: relative; overflow: hidden;
  padding: clamp(24px, 2.6vw, 38px);
  border-radius: 20px;
  background: linear-gradient(180deg, #0e0b16, #07060b);
  border: 1px solid rgba(255, 255, 255, .07);
}
.ab-cmp h3 {
  padding-bottom: 20px; margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: "Sora", sans-serif; font-weight: 500;
  font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.02em;
}
.ab-cmp h3 em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; font-size: 1.2em; color: #c9a8ff; }
.ab-cmp ul { list-style: none; display: grid; gap: 18px; }
.ab-cmp li {
  position: relative; padding-left: 36px;
  font-size: 15px; line-height: 1.55; color: #b8b8d1;
}
.ab-cmp li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: center / 12px no-repeat;
}
.ab-cmp li.yes::before {
  background-color: rgba(52, 211, 153, .12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .35);
}
.ab-cmp li.no::before {
  background-color: rgba(248, 113, 113, .1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .3);
}
/* Squarezix column: lit, gradient rim, violet checks */
.ab-cmp--us {
  background:
    radial-gradient(90% 60% at 20% 0%, rgba(171, 36, 242, .35), transparent 70%),
    linear-gradient(180deg, #170d2c, #0b0714);
  border: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.ab-cmp--us::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(140deg, #ab24f2, #621dd0 45%, rgba(98, 29, 208, .15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.ab-cmp--us li { color: #ece6ff; }
.ab-cmp--us li.yes::before {
  background-color: #621dd0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
  box-shadow: 0 0 14px rgba(171, 36, 242, .6);
}

/* ---------- Who we are — Vision / Mission / Values tabs ---------- */
.ab-who {
  max-width: 1440px; margin: 0 auto;
  padding: clamp(72px, 8vw, 120px) clamp(16px, 5vw, 84px) 0;
}
.ab-who-head { max-width: 900px; margin: 0 auto; text-align: center; }
.ab-who-head .ab-h2 { margin-top: 20px; }

.mvv { margin-top: clamp(32px, 4vw, 56px); display: grid; }
/* All panels share one grid cell so switching tabs never changes the section's height */
.mvv-panel { grid-row: 2; grid-column: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.mvv-panel[hidden] { display: flex; visibility: hidden; pointer-events: none; }
.mvv-panel--values { align-items: stretch; }

/* Segmented control with a sliding thumb */
.mvv-tabs {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: repeat(3, 1fr);
  width: min(100%, 520px); margin: 0 auto;
  padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}
.mvv-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 14px; border: 0; border-radius: 999px;
  background: none; cursor: pointer;
  font-family: "Sora", sans-serif; font-weight: 500; font-size: 15px; color: #a9a4b8;
  transition: color .3s ease;
}
.mvv-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mvv-tab:hover { color: #fff; }
.mvv-tab.is-active { color: #fff; }
.mvv-tab:focus-visible { outline: 2px solid #b57bff; outline-offset: 2px; }
.mvv-thumb {
  position: absolute; z-index: -1; top: 6px; bottom: 6px; left: 6px;
  width: calc((100% - 12px) / 3); border-radius: 999px;
  background: linear-gradient(135deg, #621dd0, #ab24f2);
  box-shadow: 0 8px 24px rgba(171, 36, 242, .35);
  transform: translateX(calc(var(--tab, 0) * 100%));
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

/* Panels */
.mvv-panel {
  position: relative; overflow: hidden;
  margin-top: clamp(20px, 2.4vw, 32px);
  padding: clamp(32px, 5vw, 72px);
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(171, 36, 242, .22), transparent 70%),
    linear-gradient(180deg, #120b20, #0a0712);
  border: 1px solid rgba(181, 123, 255, .22);
  text-align: center;
}
.mvv-panel.is-active { animation: mvv-in .55s cubic-bezier(.22, 1, .36, 1); }
@keyframes mvv-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.mvv-kicker {
  display: inline-block;
  font-family: "Instrument Serif", serif; font-style: italic; font-size: clamp(20px, 2vw, 26px); color: #b57bff;
}
.mvv-statement {
  max-width: 940px; margin: 16px auto 0;
  font-family: "Sora", sans-serif; font-weight: 500;
  font-size: clamp(22px, 3vw, 40px); line-height: 1.3; letter-spacing: -0.02em; color: #fff;
}
.mvv-statement em {
  font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400;
  background: linear-gradient(90deg, #ab24f2, #d9b8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mvv-support { max-width: 640px; margin: 20px auto 0; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.65; color: #b8b8d1; }

/* Values: five cards in a row on desktop, a swipeable row on smaller screens */
.mvv-panel--values { padding-inline: clamp(20px, 3vw, 40px); }
.mvv-values {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.2vw, 16px);
  text-align: left;
}
.mvv-value {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(20px, 2vw, 26px);
  border-radius: 20px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .35s ease, background .35s ease, translate .5s cubic-bezier(.22, 1, .36, 1);
}
.mvv-value:hover { border-color: rgba(181, 123, 255, .5); background: rgba(171, 36, 242, .08); translate: 0 -4px; }
.mvv-value-num {
  position: absolute; top: 18px; right: 20px;
  font-family: "Instrument Serif", serif; font-style: italic; font-size: 22px; color: rgba(181, 123, 255, .5);
}
.mvv-value-icon {
  width: 40px; height: 40px; padding: 9px; border-radius: 12px;
  background: rgba(171, 36, 242, .16); color: #d9b8ff;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.mvv-value h4 { margin: 8px 0 0; font-family: "Sora", sans-serif; font-weight: 600; font-size: 17px; line-height: 1.25; color: #fff; }
.mvv-value p { margin: 0; font-size: 14px; line-height: 1.6; color: #b8b8d1; }
.mvv-dots { display: none; }

@media (max-width: 1200px) {
  .mvv-values {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(clamp(20px, 3vw, 40px) * -1); padding: 4px clamp(20px, 3vw, 40px) 8px;
    scroll-padding-inline: clamp(20px, 3vw, 40px);
  }
  .mvv-values::-webkit-scrollbar { display: none; }
  .mvv-value { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
  .mvv-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .mvv-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); transition: width .3s ease, background .3s ease; }
  .mvv-dots i.is-on { width: 22px; background: #ab24f2; }
}
@media (max-width: 640px) {
  .mvv-tab { font-size: 14px; gap: 6px; padding: 0 8px; }
  .mvv-tab svg { width: 16px; height: 16px; }
  .mvv-panel { border-radius: 22px; }
}

/* ---------- Brand Story Timeline — Horizontal Scroll ---------- */
/* ---------- Our Journey: pinned wave timeline (about.js sets height, pan and fill) ---------- */
.ab-timeline { position: relative; padding-top: clamp(96px, 10vw, 150px); }
.tl-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: 88px 0 28px;
}
.tl-pin .ab-head { max-width: 1200px; margin: 0 auto clamp(36px, 7vh, 88px); padding: 0 clamp(16px, 5vw, 84px); }
.tl-pin .ab-h2 { max-width: none; }
.tl-stage { position: relative; width: 100%; flex: 1 1 auto; min-height: 340px; max-height: 600px; }
.tl-track {
  --step-w: clamp(270px, 25vw, 360px);
  position: absolute; left: 0; top: 0; bottom: 0;
  width: max(100%, calc(var(--n) * var(--step-w)));
  will-change: transform;
}
.tl-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tl-svg path { fill: none; stroke-linecap: round; }
.tl-shadow { stroke: rgba(98, 29, 208, .16); stroke-width: 22; filter: blur(10px); }
.tl-base { stroke: rgba(255, 255, 255, .09); stroke-width: 3; }
.tl-fill {
  stroke: #ab24f2; stroke-width: 3.5;
  filter: drop-shadow(0 0 8px rgba(171, 36, 242, .75));
}
.tl-tip { fill: #f3e8ff; filter: drop-shadow(0 0 10px #ab24f2) drop-shadow(0 0 22px rgba(171, 36, 242, .8)); }

.tl-step {
  position: absolute; top: 0; bottom: 0;
  left: calc((var(--i) + .5) / var(--n) * 100%);
  width: calc(100% / var(--n));
  translate: -50% 0;
}
.tl-track { --amp: clamp(40px, 6vh, 72px); }
.is-low  { --y: calc(50% + var(--amp)); }
.is-high { --y: calc(50% - var(--amp)); }

/* Hexagon node: gradient rim + dark core, lights up when the line reaches it */
.tl-node {
  position: absolute; left: 50%; top: var(--y); z-index: 2;
  width: 64px; height: 64px; translate: -50% -50%;
  display: grid; place-items: center;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: rgba(181, 123, 255, .28);
  opacity: .35; scale: .82;
  transition: background .9s ease, opacity .9s ease, scale 1.1s cubic-bezier(.22, 1, .36, 1);
}
.tl-node::before {
  content: ""; position: absolute; inset: 2px;
  clip-path: inherit;
  background: #120b20;
  transition: background .9s ease;
}
.tl-node svg {
  position: relative; width: 24px; height: 24px;
  fill: none; stroke: #8f7bb3; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .9s ease;
}
.tl-step::before { /* soft glow under the node */
  content: ""; position: absolute; left: 50%; top: var(--y);
  width: 120px; height: 120px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(171, 36, 242, .45), transparent);
  opacity: 0; transition: opacity 1.1s ease;
}
.tl-step.is-on .tl-node { background: linear-gradient(135deg, #d9b8ff, #ab24f2 55%, #621dd0); opacity: 1; scale: 1.06; }
.tl-step.is-on .tl-node::before { background: linear-gradient(135deg, #2a1350, #160b2a); }
.tl-step.is-on .tl-node svg { stroke: #fff; }
.tl-step.is-on::before { opacity: 1; }

.tl-text {
  position: absolute; left: 9%; right: 9%;
  opacity: 0; translate: 0 26px; filter: blur(6px);
  transition: opacity 1s ease, translate 1.2s cubic-bezier(.22, 1, .36, 1), filter 1s ease;
}
/* Text sits on the far side of the wave so the line never crosses it */
.is-low  .tl-text { top: calc(var(--y) + 50px); }
.is-high .tl-text { bottom: calc(100% - var(--y) + 50px); }
.tl-step.is-on .tl-text { opacity: 1; translate: 0 0; filter: none; }
.tl-num {
  position: absolute; right: -2%; top: 50%; translate: 0 -50%; z-index: -1;
  font-family: "Sora", sans-serif; font-weight: 600;
  font-size: clamp(110px, 11vw, 160px); line-height: 1; letter-spacing: -0.05em;
  background: linear-gradient(180deg, rgba(181, 123, 255, .26), rgba(181, 123, 255, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  pointer-events: none;
}
.tl-year {
  margin: 0 0 8px;
  font-family: "Instrument Serif", serif; font-style: italic; font-size: 17px; color: #b57bff;
}
.tl-text h3 {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif; font-weight: 600;
  font-size: clamp(20px, 1.9vw, 26px); line-height: 1.15; letter-spacing: -0.02em; color: #fff;
}
.tl-desc { margin: 0; font-size: 15px; line-height: 1.6; color: #b8b8d1; }

.tl-progress {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: clamp(8px, 2.5vh, 28px);
  font-family: "Sora", sans-serif; font-size: 13px; letter-spacing: .08em; color: #8f8a9f;
}
.tl-count { color: #fff; }
.tl-bar { position: relative; width: 120px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.tl-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, #621dd0, #ab24f2); transform-origin: left; transform: scaleX(var(--p, 0)); }

@media (max-height: 760px) and (min-width: 641px) {
  .tl-pin { padding-top: 74px; }
  .tl-pin .ab-h2 { font-size: clamp(30px, 6.4vh, 46px); margin-top: 10px; }
  .tl-pin .ab-head { margin-bottom: 28px; }
  .tl-stage { min-height: 380px; }
  .tl-track { --amp: 34px; }
  .is-low  .tl-text { top: calc(var(--y) + 42px); }
  .is-high .tl-text { bottom: calc(100% - var(--y) + 42px); }
  .tl-node { width: 56px; height: 56px; }
  .tl-text h3 { font-size: 21px; margin-bottom: 6px; }
  .tl-year { margin-bottom: 4px; }
  .tl-desc { font-size: 14px; line-height: 1.5; }
}
@media (max-width: 640px) {
  .tl-pin { padding-top: 76px; }
  .tl-pin .ab-head { margin-bottom: 32px; }
  .tl-stage { min-height: 400px; max-height: 560px; }
  .tl-node { width: 54px; height: 54px; }
  .tl-node svg { width: 20px; height: 20px; }
  /* One step per screen with the neighbours peeking in */
  .tl-text { left: 10%; right: 10%; }
  .tl-track { --amp: 30px; --step-w: 86vw; }
  .is-low  .tl-text { top: calc(var(--y) + 36px); }
  .is-high .tl-text { bottom: calc(100% - var(--y) + 36px); }
  .tl-num { font-size: 96px; }
  .tl-desc { font-size: 14px; line-height: 1.55; }
}

/* ---------- Technology ---------- */
.ab-tech { padding: clamp(100px, 11vw, 160px) 0 0; overflow: hidden; }
.ab-chip-rows { margin-top: clamp(40px, 5vw, 64px); }
.ab-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 35%, #e9d5ff, #ab24f2 60%, #621dd0);
  box-shadow: 0 0 12px rgba(171, 36, 242, .7);
}

/* ---------- Client proof ---------- */
.ab-proof { padding: clamp(100px, 11vw, 160px) clamp(16px, 5vw, 84px) 0; }
/* Frosted stage: heading inside, three quote cards with the active one raised in front */
.ab-q-panel {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 1440px; margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) clamp(16px, 4vw, 64px) clamp(32px, 4vw, 52px);
  border-radius: clamp(20px, 2.4vw, 32px);
  background:
    linear-gradient(112deg, transparent 18%, rgba(255, 255, 255, .045) 26%, transparent 34%),
    linear-gradient(112deg, transparent 40%, rgba(255, 255, 255, .03) 46%, transparent 52%),
    radial-gradient(70% 60% at 50% 0%, rgba(98, 29, 208, .22), transparent 70%),
    linear-gradient(180deg, #14131c, #0a0910);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.ab-quotes {
  --w: min(100%, 440px);
  margin: clamp(36px, 4.5vw, 64px) auto 0; padding-top: 14px;
  display: grid; justify-items: center; touch-action: pan-y;
}
.ab-quote {
  --mx: 50%; --my: 0%;
  grid-area: 1 / 1; width: var(--w);
  position: relative; overflow: hidden; margin: 0; cursor: pointer;
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.2vw, 30px);
  border-radius: 16px;
  background:
    radial-gradient(260px 200px at var(--mx) var(--my), rgba(171, 36, 242, .16), transparent 70%),
    linear-gradient(180deg, #1d1c28, #14131c);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  transition: transform .8s cubic-bezier(.22, 1, .36, 1), opacity .6s ease, filter .6s ease, border-color .3s ease;
  will-change: transform;
}
.ab-quote[data-pos="0"] { z-index: 3; transform: translateY(-14px); cursor: default; border-color: rgba(255, 255, 255, .2); }
.ab-quote[data-pos="1"] { z-index: 1; transform: translateX(62%) scale(.92); opacity: .5; filter: saturate(.7); }
.ab-quote[data-pos="2"] { z-index: 1; transform: translateX(-62%) scale(.92); opacity: .5; filter: saturate(.7); }
.ab-quote:not([data-pos="0"]):hover { opacity: .75; }
.ab-quote:focus-visible { outline: 2px solid #b57bff; outline-offset: 3px; }
.ab-rating { letter-spacing: .25em; font-size: 13px; color: #b57bff; }
.ab-quote-title { margin: 14px 0 0; font-family: "Sora", sans-serif; font-weight: 500; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.3; letter-spacing: -0.015em; color: #fff; }
.ab-quote blockquote {
  flex: 1; margin: 12px 0 22px;
  font-size: 15px; line-height: 1.65; color: #d9d6e6;
}
.ab-quote figcaption {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px 8px 8px; border-radius: 9px;
  background: linear-gradient(90deg, #621dd0, #8f2ff0 70%, #ab24f2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 20px rgba(98, 29, 208, .35);
  font-family: "DM Sans", sans-serif; font-weight: 500; font-size: 14px; color: #fff;
}
.ab-quote figcaption b { font-weight: 600; }
.ab-quote figcaption small { display: block; margin-top: 1px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.ab-avatar {
  flex: none; width: 32px; height: 32px; border-radius: 7px;
  background: radial-gradient(circle at 30% 30%, #f3e8ff, #d8b4fe 40%, #ab24f2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}

.ab-q-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: clamp(28px, 3.4vw, 44px); }
.ab-q-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: #fff;
  transition: background .25s ease, border-color .25s ease;
}
.ab-q-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ab-q-btn:hover { background: rgba(171, 36, 242, .25); border-color: rgba(181, 123, 255, .5); }
.ab-q-btn:focus-visible, .ab-q-dots button:focus-visible { outline: 2px solid #b57bff; outline-offset: 3px; }
.ab-q-dots { display: flex; gap: 8px; }
.ab-q-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; cursor: pointer; background: rgba(255, 255, 255, .22); transition: width .35s ease, background .35s ease; }
.ab-q-dots button.is-on { width: 26px; background: #ab24f2; }

@media (max-width: 1080px) {
  .ab-quotes { --w: min(100%, 520px); }
  .ab-quote[data-pos="1"], .ab-quote[data-pos="2"] { opacity: 0; visibility: hidden; pointer-events: none; transition: transform .8s cubic-bezier(.22, 1, .36, 1), opacity .5s ease, visibility 0s .8s; }
  .ab-quote[data-pos="1"] { transform: translateX(30%) scale(.94); }
  .ab-quote[data-pos="2"] { transform: translateX(-30%) scale(.94); }
}

/* ---------- Process ---------- */


/* ---------- Work (reuses home cards) ---------- */
.ab-work { padding-top: clamp(100px, 11vw, 160px); }
.ab-work .work-head h2 { font-family: "Sora", sans-serif; }
/* Title on two lines; the short description sits above the button on the right */
.ab-work .work-head h2 em { display: block; }
.ab-work .work-aside { align-self: end; display: flex; flex-direction: column; align-items: flex-start; max-width: 360px; }
.ab-work-sub { margin: 0; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; color: #b8b8d1; }
.ab-work .work-aside .btn-contact { margin: clamp(20px, 2vw, 28px) 0 0; }
@media (max-width: 760px) { .ab-work .work-aside { max-width: none; } }
.ab-work-stage { margin-top: clamp(40px, 5vw, 70px); padding-bottom: 0; }

/* ---------- Contact ---------- */
.ab-contact {
  max-width: 1440px; margin: 0 auto;
  /* same space below as above, so the form never sits against the footer */
  padding: clamp(100px, 11vw, 160px) clamp(16px, 5vw, 84px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start;
}
.ab-contact-left .ab-h2 { margin-top: 20px; font-size: clamp(32px, 3.6vw, 54px); }
.ab-ticks { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.ab-ticks li {
  position: relative; padding-left: 32px; font-size: 16px; color: #ece6ff;
}
.ab-ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%;
  background: #621dd0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: 0 0 12px rgba(171, 36, 242, .55);
}
.ab-rfp { margin-top: 26px; max-width: 560px; font-size: 15px; line-height: 1.7; color: #b8b8d1; }
.ab-rfp a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(181, 123, 255, .6); }
.ab-reach { list-style: none; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 14px; }
.ab-reach li { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 12px; font-size: 15px; color: #d9d6e3; }
.ab-reach svg {
  width: 36px; height: 36px; padding: 9px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  fill: none; stroke: #c9a8ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ab-reach a { color: inherit; text-decoration: none; }
.ab-reach a:hover { color: #fff; }

.ab-form-card {
  position: relative; overflow: hidden;
  padding: clamp(26px, 3vw, 44px);
  border-radius: 24px;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(171, 36, 242, .28), transparent 70%),
    linear-gradient(180deg, #120b20, #07050c);
  border: 1px solid rgba(181, 123, 255, .3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.ab-form-title { margin-top: 18px; font-size: clamp(28px, 2.8vw, 44px); }
.ab-form-sub { margin-top: 12px; font-size: 15px; line-height: 1.6; color: #b8b8d1; }
.ab-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; margin-top: 30px; }
.ab-field { display: grid; gap: 8px; }
.ab-field--full { grid-column: 1 / -1; }
.ab-field > span { font-size: 14px; font-weight: 500; color: #ece6ff; }
.ab-field b { color: #ab24f2; font-weight: 600; }
.ab-field input, .ab-field textarea {
  width: 100%;
  padding: 12px 0;
  background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .16);
  color: #fff; font: inherit; font-size: 15px;
  transition: border-color .3s ease, box-shadow .3s ease;
  resize: vertical;
}
.ab-field input::placeholder, .ab-field textarea::placeholder { color: #6d6a7a; }
.ab-field input:focus, .ab-field textarea:focus { outline: none; border-bottom-color: #b57bff; box-shadow: 0 1px 0 #b57bff; }
.ab-field.is-invalid input { border-bottom-color: #f87171; }
.ab-form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ab-form-foot .btn-contact { border: 0; cursor: pointer; font-family: inherit; }
.ab-form-foot svg { width: 1em; height: 1em; }
.ab-form-note { font-size: 14px; color: #c9a8ff; }

/* ---------- Our story + numbers ---------- */
.ab-story { padding: clamp(96px, 10vw, 150px) clamp(16px, 5vw, 84px) 0; }

.ab-story-header {
  max-width: 900px; margin: 0 auto clamp(60px, 8vw, 100px);
  text-align: center;
}
.ab-story-header .ab-h2 { margin-top: 20px; margin-bottom: clamp(16px, 2vw, 24px); }
.ab-story-lead {
  font-size: clamp(16px, 1.8vw, 20px); line-height: 1.6;
  color: #ece6ff; margin: 0 auto clamp(16px, 2vw, 24px);
}
.ab-story-text {
  font-size: clamp(15px, 1.6vw, 18px); line-height: 1.65;
  color: #b8b8d1; margin: 0;
}

.ab-story-stats {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px);
}

/* Glass capsule: dark core, soft brand-colour glows inside, silver number */
.ab-stat-card {
  --g1: rgba(171, 36, 242, .55); --g2: rgba(98, 29, 208, .6); --g3: rgba(236, 72, 153, .35);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: clamp(150px, 15vw, 196px);
  padding: 24px 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, #17151f, #0c0b12);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -18px 40px rgba(0, 0, 0, .45),
    0 24px 50px rgba(0, 0, 0, .45);
  transition: translate .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s ease, border-color .5s ease;
}
.ab-stat-card::before { /* the coloured haze */
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background:
    radial-gradient(38% 45% at 22% 78%, var(--g1), transparent 70%),
    radial-gradient(40% 50% at 70% 92%, var(--g3), transparent 70%),
    radial-gradient(34% 42% at 88% 40%, var(--g2), transparent 70%);
  filter: blur(18px);
  opacity: .85;
  transition: opacity .5s ease, transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
.ab-stat-card::after { /* glass sheen along the top edge */
  content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 38%);
  pointer-events: none;
}
.ab-stat-card:nth-child(2) { --g1: rgba(98, 29, 208, .6); --g2: rgba(56, 189, 248, .28); --g3: rgba(171, 36, 242, .5); }
.ab-stat-card:nth-child(3) { --g1: rgba(236, 72, 153, .38); --g2: rgba(171, 36, 242, .55); --g3: rgba(98, 29, 208, .55); }
.ab-stat-card:hover {
  translate: 0 -4px;
  border-color: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -18px 40px rgba(0, 0, 0, .4), 0 30px 60px rgba(98, 29, 208, .28);
}
.ab-stat-card:hover::before { opacity: 1; transform: translate(-4%, -3%) scale(1.05); }

.ab-stat-value { display: flex; align-items: baseline; justify-content: center; }
.ab-stat-value strong {
  font-family: "Sora", sans-serif; font-weight: 600;
  font-size: clamp(48px, 5.2vw, 76px); line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #e6e3ee 45%, #9d98ad 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .45)) drop-shadow(0 8px 18px rgba(0, 0, 0, .5));
}
.ab-stat-label {
  margin: 0; text-align: center;
  font-family: "Sora", sans-serif; font-weight: 600;
  font-size: clamp(11px, .85vw, 13px); line-height: 1.4; letter-spacing: .14em; text-transform: uppercase;
  color: #e9e6f2;
}



@media (max-width: 1080px) {
  .ab-hero-inner { grid-template-columns: 1fr; }
  .ab-hero-media { max-width: 680px; }
  .ab-compare-grid { grid-template-columns: 1fr; max-width: 680px; }
  .ab-story-stats { grid-template-columns: 1fr; max-width: 460px; }
  .ab-contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ab-hero { min-height: 0; }
  .ab-stat--b { display: none; }
  .ab-stat--a { left: 12px; bottom: -18px; }
  .ab-story-stats { gap: 14px; }
  .ab-stat-card { min-height: 132px; padding: 20px 28px; }
  .ab-form { grid-template-columns: 1fr; }
  .ab-screen-ui span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-partners-track, .ab-screen-fx, .crt-rec { animation: none; }
}
