/** VarleyLabs About page — built on the shared global design system (global.css). */

/* ----------------------------------------------------------------------------
   Hero (dark)
---------------------------------------------------------------------------- */
.about-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(140px, 18vh, 200px) 0 clamp(70px, 9vw, 110px);
  color: rgb(var(--on-dark));
  background:
    radial-gradient(900px circle at 18% 6%, rgba(118, 80, 232, .26), transparent 60%),
    radial-gradient(760px circle at 92% 28%, rgba(31, 100, 249, .22), transparent 58%),
    linear-gradient(180deg, #0D1020 0%, #12152a 64%, #171827 100%);
}

/* Fine grid wash, masked to the centre — matches the site's hero treatment. */
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(circle at 50% 28%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 28%, #000 0%, transparent 72%);
  opacity: .55;
}

.about-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
}

.about-hero-copy .eyebrow { margin-bottom: 26px; }

.about-hero h1 {
  color: #fff;
  margin-bottom: 22px;
}

.about-hero-lead {
  max-width: 48ch;
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.62;
  color: rgba(235, 238, 252, .78);
}

.about-hero-lead strong { color: #fff; font-weight: 700; }

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ----------------------------------------------------------------------------
   Portrait slot  (swap the placeholder for an <img> when a photo is ready)
---------------------------------------------------------------------------- */
.about-portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow-card);
  background: #0b0e1a;
}

.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-portrait-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 2px;
  padding: 28px 22px 18px;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 20, .82) 64%);
}

.about-portrait-caption strong {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: var(--tight);
}

.about-portrait-caption span {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(235, 238, 252, .68);
}

/* ----------------------------------------------------------------------------
   Light sections — shared bits
---------------------------------------------------------------------------- */
.about-page .light-eyebrow {
  color: var(--ink);
  background: #fff;
  border-color: rgba(23, 24, 39, .08);
}

/* ---- Why it's different ---- */
.about-cred { background: var(--paper); }

.about-cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(23, 24, 39, .08);
  box-shadow: 0 14px 40px rgba(23, 24, 39, .05);
}

.about-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 10px 24px rgba(118, 80, 232, .26);
}

.about-card h3 {
  font-size: var(--h3);
  letter-spacing: var(--tight);
  margin: 0;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: var(--text-base);
}

/* ---- How it works ---- */
.about-approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.about-approach-item {
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(23, 24, 39, .08);
}

.about-approach-item h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.16rem;
  letter-spacing: var(--tight);
  margin: 0 0 9px;
}

/* Brand-dot accent (echoes the site's .dot) — not a number, because these
   points are qualities rather than an ordered sequence. */
.about-approach-item h3::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rainbow);
  flex: none;
}

.about-approach-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: var(--text-base);
}

/* ----------------------------------------------------------------------------
   Closing CTA (dark panel on a light section)
---------------------------------------------------------------------------- */
.about-cta { background: var(--paper); }

.about-cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-xl);
  color: rgb(var(--on-dark));
  background:
    radial-gradient(600px circle at 10% 0%, rgba(118, 80, 232, .4), transparent 60%),
    linear-gradient(135deg, #14182f 0%, #0d1020 70%);
  box-shadow: var(--shadow-soft);
}

.about-cta-panel .eyebrow { margin-bottom: 0; }

.about-cta-panel h2 {
  color: #fff;
  font-size: var(--h2);
  line-height: 1.05;
  margin: 0;
  max-width: 20ch;
}

.about-cta-panel p {
  margin: 0;
  max-width: 54ch;
  color: rgba(235, 238, 252, .76);
  font-size: var(--text-lg);
  line-height: 1.6;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 4px;
}

.text-link-light {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 800;
  font-size: var(--text-sm);
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  padding-bottom: 2px;
  transition: border-color .2s ease, gap .2s ease;
}

.text-link-light:hover { border-color: #fff; gap: 11px; }

/* ----------------------------------------------------------------------------
   Scroll reveal (main.js toggles .is-visible)
---------------------------------------------------------------------------- */
.js .about-page .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .7s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.js .about-page .reveal.is-visible { opacity: 1; transform: none; }

/* Gentle stagger across the two card grids. */
.js .about-cred-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .about-cred-grid .reveal:nth-child(3) { transition-delay: .16s; }
.js .about-approach-grid .reveal:nth-child(2) { transition-delay: .06s; }
.js .about-approach-grid .reveal:nth-child(3) { transition-delay: .12s; }
.js .about-approach-grid .reveal:nth-child(4) { transition-delay: .18s; }

/* ----------------------------------------------------------------------------
   Responsive
---------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .about-hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { width: 100%; max-width: 330px; margin: 0 auto; }
  .about-cred-grid { grid-template-columns: 1fr; }
  .about-approach-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .about-hero { padding-top: clamp(118px, 22vh, 150px); }
  .about-cta-panel h2 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .about-page .reveal { opacity: 1; transform: none; transition: none; }
}

.about-inline-link{display:inline-flex;margin-top:14px;color:#5f59e8;font-size:.78rem;font-weight:800}.about-inline-link:hover{color:#3c48c8}
