/* About page — premium SaaS marketing (extends landing.css) */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.about-page {
  padding: 0;
}

.about-route-anchor {
  scroll-margin-top: 5.75rem;
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}

.about-surface {
  position: relative;
}

.about-surface--white {
  background: var(--bg-elevated);
}

.about-surface--gradient {
  background: linear-gradient(
    165deg,
    #f8f9ff 0%,
    rgba(238, 242, 255, 0.92) 38%,
    rgba(243, 245, 251, 0.98) 100%
  );
  border-block: 1px solid var(--line-faint);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.about-surface--tint {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, rgba(243, 245, 251, 0.96) 52%, var(--bg) 100%);
  border-block: 1px solid var(--line-faint);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.about-surface--vision {
  padding-block: var(--section-y);
  background: radial-gradient(80% 55% at 50% 0%, rgba(79, 70, 229, 0.09), transparent 60%), var(--bg);
  border-top: 1px solid var(--line-faint);
}

.about-vision-wrap {
  position: relative;
  z-index: 1;
  padding-inline: clamp(0.35rem, 2.2vw, 0.65rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

/* ─── Hero ─── */
.about-hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.25rem) 0 clamp(3.5rem, 8.5vw, 6.5rem);
  overflow: clip;
}

@media (max-width: 720px) {
  .about-hero {
    padding: 2.15rem 0 2.35rem;
  }
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background: linear-gradient(
    118deg,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 42%,
    rgba(14, 165, 233, 0.07) 78%,
    transparent 100%
  );
}

html.motion-ok .about-hero::after {
  animation: aboutHeroSheen 18s ease-in-out infinite alternate;
}

@keyframes aboutHeroSheen {
  0% {
    opacity: 0.38;
    transform: scale(1) translate(0, 0);
  }
  100% {
    opacity: 0.52;
    transform: scale(1.03) translate(1.5%, -0.5%);
  }
}

.about-hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.about-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
}

.about-blob--1 {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: -18%;
  left: -12%;
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.45), rgba(79, 70, 229, 0.08) 70%, transparent 72%);
}

.about-blob--2 {
  width: min(44vw, 360px);
  height: min(44vw, 360px);
  top: 8%;
  right: -8%;
  background: radial-gradient(circle at 60% 40%, rgba(14, 165, 233, 0.28), rgba(99, 102, 241, 0.1) 65%, transparent 72%);
  opacity: 0.5;
}

.about-blob--3 {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  bottom: -5%;
  left: 28%;
  background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.22), transparent 68%);
  opacity: 0.45;
}

html.motion-ok .about-blob--1 {
  animation: aboutBlobDriftA 18s ease-in-out infinite alternate;
}

html.motion-ok .about-blob--2 {
  animation: aboutBlobDriftB 22s ease-in-out infinite alternate;
}

html.motion-ok .about-blob--3 {
  animation: aboutBlobDriftC 20s ease-in-out infinite alternate;
}

@keyframes aboutBlobDriftA {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(4%, 3%) scale(1.05);
  }
}

@keyframes aboutBlobDriftB {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-5%, 4%) scale(1.08);
  }
}

@keyframes aboutBlobDriftC {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-3%, -4%) scale(1.06);
  }
}

.about-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 3.25rem);
  align-items: center;
}

.about-hero__copy .eyebrow {
  margin-bottom: 1rem;
}

.about-hero h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.95rem, 3.8vw + 1rem, 2.95rem);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1.12;
  color: var(--ink);
  max-width: min(40rem, 100%);
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.about-hero__lead {
  margin: 0;
  font-size: clamp(1.05rem, 1.15vw + 0.92rem, 1.18rem);
  line-height: 1.65;
  font-weight: 500;
  color: var(--muted);
  max-width: min(var(--prose-max), 100%);
  text-wrap: pretty;
}

.about-hero__lead strong {
  color: var(--ink);
  font-weight: 700;
}

.about-hero__lead a {
  color: var(--accent-strong, #4338ca);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-hero__aside {
  min-width: 0;
}

.about-section-image {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  object-fit: cover;
}

.about-visual-ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.1rem);
  padding: clamp(1.35rem, 3.5vw, 2rem);
  border-radius: var(--ui-radius-card);
  border: 2px dashed rgba(79, 70, 229, 0.24);
  background: linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(99, 102, 241, 0.06) 45%,
      rgba(243, 245, 251, 0.65) 100%
    ),
    linear-gradient(180deg, rgba(248, 249, 255, 0.9), rgba(238, 242, 255, 0.35));
  box-shadow: var(--ui-card-shadow), 0 0 0 1px rgba(79, 70, 229, 0.04);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.about-visual-ph::before {
  content: "";
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(79, 70, 229, 0.16);
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.08);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%234f46e5' stroke-opacity='0.42' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M8 11h8M8 14h5' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='9' r='1.2' fill='%236366f1' fill-opacity='0.45' stroke='none'/%3E%3C/svg%3E")
      center / 24px 24px no-repeat,
    linear-gradient(145deg, rgba(79, 70, 229, 0.12), rgba(99, 102, 241, 0.05));
  opacity: 0.98;
}

.about-visual-ph:hover {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: var(--ui-card-shadow-hover), 0 0 36px rgba(79, 70, 229, 0.12);
  background: linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(99, 102, 241, 0.09) 48%,
      rgba(255, 255, 255, 0.55) 100%
    ),
    linear-gradient(180deg, rgba(252, 252, 255, 0.95), rgba(238, 242, 255, 0.45));
  transform: translateY(-2px);
}

.about-visual-ph--hero {
  min-height: clamp(200px, 28vw, 280px);
}

.about-visual-ph--story {
  min-height: clamp(240px, 32vw, 300px);
}

.about-visual-ph__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  max-width: 17rem;
  line-height: 1.45;
}

.about-visual-ph__svg {
  width: min(100%, 200px);
  height: auto;
  opacity: 0.88;
}

.about-visual-ph__svg--wide {
  width: min(100%, 280px);
}

.about-hero-fade {
  opacity: 1;
}

html.motion-ok body.is-page-ready .about-hero-fade {
  animation: aboutHeroFade 0.75s var(--ease-premium) 0.06s both;
}

@keyframes aboutHeroFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Card-like blocks ─── */
.about-block__pad {
  --about-pad-y: clamp(2.45rem, 5.25vw, 3.5rem);
  --about-pad-x: clamp(1.25rem, 4.5vw, 2.75rem);
  padding: var(--about-pad-y) var(--about-pad-x);
  border-radius: var(--ui-radius-card);
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 249, 255, 0.88) 100%);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  margin-block: clamp(1.25rem, 2.75vw, 2rem);
}

.about-surface--gradient .about-block__pad,
.about-surface--tint .about-block__pad {
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 252, 255, 0.92) 100%);
}

.about-block {
  padding: clamp(0.8rem, 2vw, 1.25rem) 0 clamp(0.85rem, 2.2vw, 1.35rem);
}

.about-surface--white.about-block {
  padding-block: clamp(0.7rem, 1.85vw, 1.15rem);
}

.about-block__head {
  max-width: 38rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.15rem);
}

.about-block__head--wide {
  max-width: min(56rem, 100%);
}

.about-block__head h2 {
  margin: 0.5rem 0 0;
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1.12;
  color: var(--ink);
}

.about-block__head .section-sub {
  margin-top: 0.85rem;
  max-width: min(var(--prose-max), 100%);
}

/* ─── Story + illustration ─── */
.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 3.25rem);
  align-items: center;
}

/* “Our story” — icon + copy rows (aligned with value-card typography) */
.about-story--pillars .about-story__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2.75vw, 1.65rem);
  max-width: min(40rem, 100%);
}

.about-story-pillar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(0.85rem, 2.5vw, 1.35rem);
  align-items: start;
  padding: 0;
}

.about-story-pillar__icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-strong), var(--accent));
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.28);
}

.about-story-pillar__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.about-story-pillar__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.32;
  color: var(--ink);
}

.about-story-pillar__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.62;
  font-weight: 500;
  color: var(--muted);
}

.about-story__visual {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.about-story__visual .about-visual-ph {
  width: 100%;
}

.about-story__visual .about-section-image {
  width: 100%;
}

/* ─── Value cards ─── */
.about-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (max-width: 720px) {
  .about-value-grid {
    grid-template-columns: 1fr;
  }
}

.about-value-card {
  padding: 1.45rem 1.4rem 1.5rem;
  border-radius: var(--ui-radius-card);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--ui-card-shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.about-value-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  color: var(--accent-strong);
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.12), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(79, 70, 229, 0.12);
}

.about-value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.about-value-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.62;
  font-weight: 500;
  color: var(--muted);
}

.about-value-card strong {
  color: var(--ink);
  font-weight: 700;
}

.about-value-card:hover {
  transform: var(--ui-card-lift);
  box-shadow: var(--ui-card-shadow-hover), 0 0 28px rgba(79, 70, 229, 0.1);
  border-color: var(--ui-border-hover);
}

/* ─── What we build — responsive 2-col grid + minimal cards ─── */
.about-build-list {
  --about-build-gap: 0.85rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: min(56rem, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--about-build-gap);
}

@media (min-width: 768px) {
  .about-build-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: var(--about-build-gap);
  }

  .about-build-list__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc((100% - 1rem) / 2);
  }
}

.about-build-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem 0.85rem;
  padding: 0.95rem 1.05rem;
  min-width: 0;
  height: 100%;
  border-radius: var(--ui-radius-card);
  background: #fafafa;
  border: 1px solid var(--line);
  box-shadow: var(--ui-card-shadow);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
}

.about-build-list__item:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.22);
  box-shadow: var(--ui-card-shadow-hover), 0 0 0 1px rgba(99, 102, 241, 0.08);
}

.about-build-list__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  color: rgba(79, 70, 229, 0.48);
}

.about-build-list__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.about-build-list__text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  overflow-wrap: break-word;
}

.about-build-list__title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.32;
  color: var(--ink);
}

.about-build-list__desc {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.48;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

@media (max-width: 767.98px) {
  .about-build-list__desc {
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }
}

/* ─── Chips ─── */
.about-chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
}

.about-chip {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(79, 70, 229, 0.14);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  transition: transform var(--ui-transition), box-shadow var(--ui-transition), border-color var(--ui-transition),
    background var(--ui-transition);
}

.about-chips li {
  list-style: none;
}

.about-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--ui-card-shadow-hover), 0 0 20px rgba(79, 70, 229, 0.12);
  background: #fff;
}

.about-chips__tagline {
  margin: 1.65rem 0 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: min(var(--prose-max), 100%);
  line-height: 1.55;
}

/* ─── Vision quote ─── */
.about-vision-eyebrow {
  text-align: center;
  margin: 0 0 0.5rem;
}

.about-quote {
  position: relative;
  margin: 0.35rem auto 0;
  max-width: 44rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-quote::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(96%, 560px);
  height: min(78%, 240px);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 45% 40%, rgba(99, 102, 241, 0.38) 0%, rgba(14, 165, 233, 0.14) 48%, transparent 72%);
  filter: blur(52px);
  opacity: 0.88;
  z-index: 0;
  pointer-events: none;
}

.about-quote__symbol {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.35rem;
  border-radius: 14px;
  color: rgba(79, 70, 229, 0.55);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.75), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset, 0 10px 28px rgba(79, 70, 229, 0.1);
}

.about-quote__symbol svg {
  display: block;
}

.about-quote blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  padding: clamp(1.85rem, 4.5vw, 2.65rem) clamp(1.35rem, 3.5vw, 2.15rem);
  border-radius: var(--ui-radius-card);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: var(--ui-card-shadow), 0 18px 48px rgba(79, 70, 229, 0.08);
  backdrop-filter: blur(14px) saturate(1.15);
}

.about-quote blockquote p {
  margin: 0 auto;
  max-width: min(34ch, 100%);
  font-size: clamp(1.28rem, 2.2vw + 0.55rem, 1.72rem);
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: -0.028em;
  color: var(--ink);
}

@media (max-width: 960px) {
  .about-hero__grid {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.25rem);
  }

  .about-hero__aside {
    max-width: 28rem;
    margin-inline: auto;
    width: 100%;
  }

}

@media (max-width: 900px) {
  .about-story {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.25rem);
  }

  .about-story__visual {
    margin-top: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-blob,
  .about-hero-fade,
  html.motion-ok .about-hero::after {
    animation: none !important;
  }

  .about-hero::after {
    opacity: 0.42 !important;
    transform: none !important;
  }

  html.motion-ok .about-hero-fade {
    opacity: 1 !important;
    transform: none !important;
  }

  .about-value-card,
  .about-chip,
  .about-visual-ph,
  .about-build-list__item {
    transition: none !important;
  }

  .about-value-card:hover,
  .about-chip:hover,
  .about-visual-ph:hover,
  .about-build-list__item:hover {
    transform: none !important;
  }
}
