/* ==========================================================================
   VANTIX SYSTEMS — pages/about.css
   Hero with dots, intro, pinned "how we work", quote, mission, dark
   principles, brands band. Phones and tablets get a plain vertical layout.
   ========================================================================== */

.ab-label {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.ab em {
  font-style: italic;
  background: linear-gradient(90deg, #2e6cc6, #2fa8e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.12em;
}

/* ---------- 1. Hero ---------- */
.ab-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 92svh;
  overflow: hidden;
  background: #f4f7fd;
}
.ab-hero__word {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 22rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(46, 108, 198, 0.22);
  pointer-events: none;
  white-space: nowrap;
}
.ab-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.ab-hero__title {
  font-size: clamp(2.5rem, 6.4vw, 6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.ab-hero__side {
  padding-bottom: 0.6rem;
}
.ab-hero__side p {
  margin-top: 0.75rem;
  color: var(--slate);
  line-height: 1.6;
}

/* ---------- 2. Intro ---------- */
.ab-intro {
  background: var(--white);
  padding-block: var(--section-y);
}
.ab-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.ab-intro__lead {
  font-size: clamp(1.75rem, 3.6vw, 3.1rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.ab-intro__text {
  max-width: 40rem;
  margin-top: 2rem;
  color: var(--slate);
  font-size: var(--step-1);
  line-height: 1.55;
}
.ab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.25rem;
}
.ab-tags li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.ab-tags li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--blue);
}

/* Word-by-word reveal (scripts only) */
.wr {
  transition: none;
}

/* ---------- Pinned swap (story + principles) ---------- */
.sw {
  position: relative;
  overflow: hidden;
}
.sw__stage {
  position: relative;
  padding: var(--section-y) 0;
}
.sw__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.sw__title {
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.sw__count {
  display: none;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 500;
  color: var(--blue-600);
}
.sw__count small {
  margin-left: 0.4rem;
  font-size: 0.875rem;
  color: var(--slate);
}
.sw__ghost {
  display: none;
}
.sw__items {
  display: grid;
  gap: 1.25rem;
}
.sw__item {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 3px solid var(--blue);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 60px -38px rgba(30, 50, 110, 0.4);
}
.sw__tag {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.sw__item h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.sw__item p {
  max-width: 36rem;
  margin-top: 0.75rem;
  color: var(--slate);
  line-height: 1.6;
}
.ab-story {
  background: #eef1fb;
}

/* Pinned (desktop with a mouse) */
.sw--pinned .sw__stage {
  height: 100svh;
  display: flex;
  align-items: center;
  padding: 0;
}
.sw--pinned .sw__count {
  display: block;
}
.sw--pinned .sw__ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 24vw, 24rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(46, 108, 198, 0.14);
  pointer-events: none;
}
.sw--pinned .sw__items {
  position: relative;
  display: block;
  min-height: 17rem;
}
.sw--pinned .sw__item {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  visibility: hidden;
  filter: blur(8px);
  transform: translateY(2rem);
  transition: opacity 0.6s ease, transform 0.8s var(--ease), filter 0.6s ease, visibility 0s linear 0.6s;
}
.sw--pinned .sw__item.is-past {
  transform: translateY(-2rem);
}
.sw--pinned .sw__item.is-active {
  opacity: 1;
  visibility: visible;
  filter: none;
  transform: none;
  transition-delay: 0s;
}

/* ---------- 4. Quote ---------- */
.ab-quote {
  background: var(--white);
  padding-block: clamp(5rem, 12vw, 11rem);
  text-align: center;
}
.ab-quote__text {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(2.25rem, 5.6vw, 5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

/* ---------- 5. Mission ---------- */
.ab-mission {
  background: var(--white);
  padding-bottom: var(--section-y);
}
.ab-mission__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.ab-mission__word {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue-600);
}
.ab-mission__text p {
  max-width: 38rem;
  font-size: var(--step-1);
  line-height: 1.55;
}
.ab-mission__text p + p {
  margin-top: 1.5rem;
  color: var(--slate);
  font-size: var(--step-0);
}

/* ---------- 6. Principles (dark) ---------- */
.ab-values {
  color: var(--white);
  background: #070b1c;
}
.ab-values .sw__title {
  color: var(--white);
}
.ab-values .sw__title em {
  background: linear-gradient(90deg, #7fa8ff, #5ad0ff);
  -webkit-background-clip: text;
  background-clip: text;
}
.ab-values .sw__count { color: #7fa8ff; }
.ab-values .sw__count small { color: rgba(255, 255, 255, 0.5); }
.ab-values .sw__item {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-inline: 0;
}
.ab-values .sw__tag { color: #7fa8ff; }
.ab-values .sw__item p { color: rgba(255, 255, 255, 0.66); }
.ab-values .sw__ghost { -webkit-text-stroke-color: rgba(127, 168, 255, 0.12); }
.ab-values .sw__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); }

.ab-rings {
  display: none;
  position: relative;
  aspect-ratio: 1;
  max-width: 22rem;
  margin-inline: auto;
  perspective: 900px;
}
.sw--pinned .ab-rings { display: block; }
.ab-rings span {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 14px solid transparent;
  border-image: none;
  background: linear-gradient(135deg, #e7ecfa, #7fa8ff 50%, #3678d4) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  will-change: transform;
}
.ab-rings span:nth-child(2) { inset: 22%; border-width: 10px; opacity: 0.85; }
.ab-rings span:nth-child(3) { inset: 36%; border-width: 8px; opacity: 0.7; }
.ab-track {
  display: none;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}
.sw--pinned .ab-track { display: flex; justify-content: center; }
.ab-track span { transition: color 0.4s ease; }
.ab-track span.is-active { color: var(--white); }

/* ---------- 7. Brands band ---------- */
.ab-brands {
  overflow: hidden;
  background: var(--white);
  padding-block: clamp(4rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem);
}
.ab-brands__head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.ab-brands__title {
  max-width: 16ch;
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.ab-row {
  overflow: hidden;
  white-space: nowrap;
}
.ab-row + .ab-row { margin-top: 0.75rem; }
.ab-row__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-transform: uppercase;
  animation: ab-marquee 50s linear infinite;
}
.ab-row__track b { flex: none; font-weight: 400; color: var(--blue-600); }
.ab-row--outline .ab-row__track {
  color: transparent;
  -webkit-text-stroke: 1px rgba(10, 20, 36, 0.38);
  animation-direction: reverse;
}
.ab-row--outline .ab-row__track b { -webkit-text-stroke: 0; }
@keyframes ab-marquee { to { transform: translateX(-50%); } }
.ab-brands__note {
  margin-top: 2rem;
  color: var(--sd-faint, #8a94a6);
  font-size: var(--step--1);
}

/* ---------- Tablet and below ---------- */
@media (max-width: 63.9375rem) {
  .ab-hero__inner,
  .ab-intro__grid,
  .sw__grid,
  .ab-values .sw__grid,
  .ab-mission__grid {
    grid-template-columns: 1fr;
  }
  .ab-hero { min-height: 82svh; }
  .ab-hero__word { top: 34%; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-row__track { animation: none; }
}

/* ==========================================================================
   Particle hero, orb, story bar, principles with 3D, liquid cursor
   ========================================================================== */
.ab { --ab-y: clamp(3.5rem, 7vw, 6.5rem); --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
.ab-intro { position: relative; padding-block: var(--ab-y); }
.ab-quote { padding-block: clamp(3.5rem, 8vw, 7rem); }
.ab-mission { padding-bottom: var(--ab-y); }
.sw__stage { padding: var(--ab-y) 0; }

/* particles replace the outlined word when scripts run */
html.ab-dots .ab-hero__word { display: none; }
.ab-dots-canvas {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ab-intro__grid { position: relative; }
.ab-orb {
  position: absolute;
  left: 0;
  top: 54%;
  width: clamp(14rem, 25vw, 23rem);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.ab-intro__text { max-width: 36rem; }

/* Story card */
.ab-story .sw__item {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.75rem, 3.5vw, 3rem) clamp(1.75rem, 3.5vw, 3rem) clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 0;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.82);
}
.ab-story .sw__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--blue-600) calc(var(--p, 0) * 100%), var(--line) calc(var(--p, 0) * 100%));
}
.ab-story .sw__tag {
  font-family: var(--mono);
  letter-spacing: 0.2em;
  color: #5b8a1f;
}
.ab-story .sw__item h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1.1;
}
.ab-story .sw__item p:not(.sw__tag) {
  max-width: 34rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  line-height: 1.45;
}
.sw__count { font-family: var(--mono); }
.sw--pinned.ab-story .sw__items {
  min-height: 23rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 40px 80px -50px rgba(30, 50, 110, 0.35);
}
.sw--pinned.ab-story .sw__items::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--blue-600) calc(var(--p, 0) * 100%), var(--line) calc(var(--p, 0) * 100%));
}
.sw--pinned.ab-story .sw__grid { align-items: center; }
.sw--pinned.ab-story .sw__item {
  position: absolute;
  inset: 0 0 auto 0;
  border: 0;
  background: none;
  box-shadow: none;
  filter: none;
  transform: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.sw--pinned.ab-story .sw__item::before { display: none; }
.sw--pinned.ab-story .sw__item.is-past { transform: none; }
.sw--pinned.ab-story .sw__item.is-active { transition-delay: 0s; }
.sw--pinned.ab-story .sw__item .wr { transition: none; }

/* Mission and vision */
.ab-mission__grid + .ab-mission__grid { margin-top: clamp(3rem, 6vw, 5.5rem); }
.ab-mission__grid--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ab-mission__word--right { justify-self: end; }

/* Principles */
.ab-values__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.ab-values__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.ab-values__head p { max-width: 22rem; color: rgba(255, 255, 255, 0.7); }
.ab-values .sw__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
.ab-values .sw__item { padding: 1.5rem 0 1.75rem; border-top: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.ab-values .sw__item h3 { margin-top: 0; font-size: clamp(2rem, 3.8vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.05; }
.ab-values .sw__item p { max-width: 28rem; font-size: 0.9375rem; }
.sw--pinned.ab-values .sw__items { display: block; min-height: 0; }
.sw--pinned.ab-values .sw__item {
  position: relative;
  inset: auto;
  opacity: 0.32;
  visibility: visible;
  filter: none;
  transform: none;
  transition: opacity 0.5s ease, border-color 0.5s ease;
}
.sw--pinned.ab-values .sw__item.is-active { opacity: 1; border-bottom-color: #7fa8ff; }
.sw--pinned.ab-values .sw__item.is-past { transform: none; }
.ab-3d { position: relative; display: none; }
.sw--pinned .ab-3d { display: block; }
.ab-3d canvas { width: 100%; height: clamp(18rem, 42vh, 28rem); display: block; }
.ab-track { display: flex; justify-content: center; gap: 1.25rem; margin-top: 1rem; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.4); }
.sw--pinned .ab-track { display: flex; }
.ab-track span.is-active { color: var(--white); }
.ab-track i { font-style: normal; font-family: var(--mono); font-size: 0.75rem; margin-right: 0.3rem; color: #7fa8ff; }

/* Liquid cursor */
.ab-liquid {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
  filter: url(#ab-goo) drop-shadow(0 0 0.6px rgba(40, 80, 150, 0.55)) drop-shadow(0 3px 8px rgba(30, 60, 120, 0.14));
}

@media (max-width: 63.9375rem) {
  .ab-mission__grid--flip { grid-template-columns: 1fr; }
  .ab-mission__grid--flip .ab-mission__word { order: -1; justify-self: start; }
  .ab-values .sw__grid { grid-template-columns: 1fr; }
  .ab-orb { left: 50%; top: 4rem; transform: translateX(-50%); width: 70vw; }
}
@media (hover: none) {
  .ab-liquid { display: none; }
}

/* Principles section: scale with the window height so nothing is cut off */
.sw--pinned.ab-values .sw__stage {
  padding: calc(var(--header-h) + 0.5rem) 0 1rem;
  box-sizing: border-box;
}
.sw--pinned.ab-values .ab-values__title { font-size: clamp(2rem, min(6vw, 9.5vh), 5rem); }
.sw--pinned.ab-values .ab-values__head {
  padding-bottom: clamp(0.75rem, 2.2vh, 1.75rem);
  margin-bottom: clamp(0.5rem, 2.5vh, 2.5rem);
}
.sw--pinned.ab-values .sw__item { padding: clamp(0.55rem, 1.9vh, 1.5rem) 0 clamp(0.65rem, 2vh, 1.75rem); }
.sw--pinned.ab-values .sw__item h3 { font-size: clamp(1.45rem, min(3.8vw, 5.4vh), 3.4rem); }
.sw--pinned.ab-values .sw__item p { margin-top: clamp(0.35rem, 1vh, 0.75rem); font-size: clamp(0.8125rem, 1.7vh, 0.9375rem); }
.sw--pinned.ab-values .ab-3d canvas { height: clamp(11rem, 40vh, 28rem); }
@media (max-height: 640px) {
  .sw--pinned.ab-values .sw__item p { display: none; }
  .sw--pinned.ab-values .sw__item.is-active p { display: block; }
}