/* About page. Mobile values first; desktop from "AAKRI About Us v3". */

/* ───────────── Hero ───────────── */
/* Fills the first screen (below the 64px header), content centred, so the story starts below the fold. */
.ab-hero {
  position: relative; padding: 48px var(--gutter); text-align: center; overflow: hidden;
  min-height: calc(100vh - 64px); min-height: calc(100svh - 64px);
  display: flex; justify-content: center; align-items: center;
}
/* Backdrop: a soft green aurora (lime + deep green light pooling at the corners, drifting slowly),
   with a fine grain on top so the gradients never band, fading into the page at the bottom. */
.ab-hero::before, .ab-hero::after { content: ""; position: absolute; pointer-events: none; }
.ab-hero::before {
  inset: -15%;
  background:
    radial-gradient(40% 35% at 18% 36%, rgba(var(--primary-rgb), 0.20), transparent 70%),
    radial-gradient(45% 40% at 85% 42%, rgba(34, 140, 86, 0.26), transparent 70%),
    radial-gradient(50% 35% at 60% 95%, rgba(var(--primary-rgb), 0.08), transparent 70%);
  filter: blur(40px);
  animation: ab-aurora 22s ease-in-out infinite alternate;
}
.ab-hero::after {
  inset: 0;
  /* Solid page black under the navbar for the top ~20%, then the aurora; fades back to black at the bottom. */
  background:
    linear-gradient(180deg, var(--bg-header) 0%, rgba(var(--bg-rgb), 0.85) 10%, transparent 30%, transparent 72%, var(--bg) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes ab-aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .ab-hero::before { animation: none; } }
.ab-hero__glow {
  position: absolute; left: 50%; top: 50%; width: min(640px, 160vw); height: 520px; transform: translate(-50%, -55%);
  background: radial-gradient(ellipse 45% 42% at 50% 50%, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.05) 55%, rgba(var(--bg-rgb), 0) 75%);
  pointer-events: none;
}
.js .ab-hero__glow { opacity: 0; transition: opacity 1.4s ease; }
.js .is-in .ab-hero__glow { opacity: 1; }
.ab-hero__inner { position: relative; z-index: 1; width: 100%; max-width: 1100px; display: flex; flex-direction: column; align-items: center; }
.ab-hero h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.1; font-weight: 700; display: flex; flex-direction: column; align-items: center; }
.ab-hero p { margin-top: 20px; max-width: 640px; font-size: 15px; line-height: 1.6; font-weight: 500; color: var(--text-secondary); text-wrap: pretty; }
.ab-hero__btns { margin-top: 32px; width: 100%; max-width: 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ab-hero__btns .btn-arrow, .ab-hero__btns .btn-outline { min-height: 50px; padding: 0 16px; justify-content: center; font-size: 15px; gap: 8px; }
.ab-hero__btns .btn-arrow__icon { width: auto; height: auto; background: none; color: var(--on-lime); }
/* Three key figures under the intro: number on top, label below, thin dividers between. */
.ab-stats { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 640px; }
.ab-stat { display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; padding: 0 8px; }
.ab-stat + .ab-stat { border-left: 1px solid rgba(255, 255, 255, 0.16); }
.ab-stat dd { margin: 0; font-size: 22px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: #FFFFFF; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.ab-stat dd span { color: var(--lime); }
.ab-stat dt { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(238, 243, 230, 0.7); }
@media (max-width: 379.98px) { .ab-stat dd { font-size: 18px; } .ab-stat dt { font-size: 10px; letter-spacing: 0.08em; } }
@media (min-width: 1024px) {
  .ab-stats { margin-top: 48px; max-width: 880px; }
  .ab-stat { gap: 10px; padding: 0 24px; }
  .ab-stat dd { font-size: 40px; }
  .ab-stat dt { font-size: 12px; }
}
@media (max-width: 339.98px) { .ab-hero__btns { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 768px) {
  .ab-hero { padding: clamp(88px, 10vw, 140px) 24px; }
}
@media (min-width: 1024px) {
  .ab-hero { min-height: calc(100vh - 76px); }
  .ab-hero__glow { width: min(1400px, 140vw); height: 900px; background: radial-gradient(ellipse 40% 38% at 50% 50%, rgba(var(--primary-rgb), 0.22), rgba(var(--primary-rgb), 0.06) 55%, rgba(var(--bg-rgb), 0) 75%); }
  .ab-hero p { margin-top: 24px; font-size: 18px; color: var(--text-secondary); }
  .ab-hero__btns { margin-top: 40px; max-width: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .ab-hero__btns .btn-arrow { min-height: 52px; padding: 0 6px 0 24px; font-size: 16px; gap: 14px; }
  .ab-hero__btns .btn-arrow:hover { transform: translateY(-2px); }
  .ab-hero__btns .btn-arrow__icon { width: 40px; height: 40px; background: var(--on-lime); color: var(--lime); }
  .ab-hero__btns .btn-outline { min-height: 52px; padding: 0 24px; font-size: 16px; }
}

/* ───────────── Story (sticky word reveal) ───────────── */
.ab-story { position: relative; height: calc(100vh * 3); height: calc(100svh * 3); }
.ab-story__pin {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  transition: top 300ms var(--ease-out), height 300ms var(--ease-out);
  display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter);
}
/* Centred on every screen size. */
.ab-story__inner { width: 100%; max-width: 1080px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.ab-story__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); }
.ab-story__text { font-size: clamp(23px, 3vw, 42px); line-height: 1.42; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.ab-story__text .w--hl { color: inherit; }
.ab-story__bar { width: 120px; height: 2px; border-radius: 2px; background: var(--border); overflow: hidden; }
.ab-story__bar span { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; }
@media (min-width: 1024px) { .ab-story__bar { width: min(320px, 60vw); height: 3px; } }
@media (prefers-reduced-motion: reduce) { .ab-story__bar { display: none; } }
/* Milestones: about one screen tall, with the truck driving along under the timeline. */
.ms-section .pg-wrap { min-height: calc(100vh - var(--header-h) - 128px); min-height: calc(100svh - var(--header-h) - 128px); display: flex; flex-direction: column; }
.ms-scene { margin-top: auto; padding-top: 40px; }
@media (min-width: 1024px) {
  .ms-section .pg-wrap { min-height: calc(100vh - var(--header-h) - 192px); min-height: calc(100svh - var(--header-h) - 192px); }
  .ms-scene { padding-top: 56px; }
}
.js .ab-story__text [data-w] { opacity: 0.14; }
@media (min-width: 1024px) {
  .ab-story { height: 320vh; }
  .ab-story__pin { height: calc(100vh - var(--header-h)); padding: 0 24px; }
  .ab-story__inner { align-items: center; text-align: center; gap: 36px; }
  .ab-story__eyebrow { font-size: 13px; letter-spacing: 0.18em; color: var(--text-secondary); }
  .ab-story__text { line-height: 1.38; letter-spacing: -0.015em; text-wrap: balance; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-story { height: auto; }
  .ab-story__pin { position: static; height: auto; padding-block: 96px; }
  .js .ab-story__text [data-w] { opacity: 1; }
}

/* ───────────── Leadership ─────────────
   Minimal: a small portrait beside the name and role, bio underneath (beside it on desktop). */
.ceo {
  margin-top: 28px; display: grid; grid-template-columns: 104px minmax(0, 1fr);
  grid-template-areas: "photo name" "photo link" "bio bio"; gap: 10px 18px; align-items: start;
}
.ceo__body { display: contents; }
.ceo__photo {
  grid-area: photo; width: 100%; position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.ceo__photo img { width: 100%; height: 100%; object-fit: cover; }
.ceo__monogram { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: rgba(var(--primary-rgb), 0.45); }
.ceo__name { grid-area: name; align-self: end; display: flex; flex-direction: column; gap: 4px; }
.ceo__name h3 { font-size: 20px; line-height: 1.2; font-weight: 600; }
.ceo__name span { font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.ceo__bio { grid-area: bio; margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.ceo__link {
  grid-area: link; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--divider);
  display: flex; align-items: center; justify-content: center; color: var(--text); transition: border-color 0.2s ease;
}
.ceo__link:hover { border-color: var(--lime); color: var(--text); }
.ceo__link svg { width: 17px; height: 17px; }
@media (min-width: 1024px) {
  .ceo {
    margin-top: 40px; grid-template-columns: 160px minmax(0, 370px) minmax(0, 1fr);
    grid-template-areas: "photo name bio" "photo link bio"; gap: 16px 40px; align-items: start;
  }
  .ceo__photo { border-radius: 24px; }
  .ceo__monogram { font-size: 44px; }
  .ceo__name { gap: 6px; }
  .ceo__name h3 { font-size: 30px; }
  .ceo__name span { font-size: 16px; }
  .ceo__bio { margin-top: 0; max-width: 64ch; font-size: 17px; line-height: 1.75; padding-left: 40px; border-left: 1px solid var(--border); }
}

/* Section headings match "Our journey so far." (medium weight). */
.page-about .pg-title { font-weight: 500; }

/* ───────────── Awards: all ten, five to a row on desktop ───────────── */
.aw-list {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px;
}
@media (min-width: 768px) { .aw-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1024px) { .aw-list { margin-top: 48px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px 32px; } }
.aw-card { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.aw-card__img { width: 100%; height: 100px; margin-bottom: 10px; display: block; }
@media (min-width: 768px) { .aw-card__img { height: 120px; } }
@media (min-width: 1024px) { .aw-card__img { height: 130px; } }
.aw-card__img img {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.5)); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.aw-card:hover .aw-card__img img { transform: translateY(-6px); }
.aw-card__year { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.aw-card__title { max-width: 24ch; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--text); text-wrap: balance; }
.aw-card__by { max-width: 26ch; font-size: 12px; line-height: 1.45; color: var(--aw-muted); text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .aw-card__img img { transition: none; } .aw-card:hover .aw-card__img img { transform: none; } }

/* ───────────── Photo slots (events) ───────────── */
.photo-slot { position: relative; margin: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); }
.photo-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot__empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-disabled); font-size: 12px; font-weight: 500;
  background: var(--bg-paper);
}
.photo-slot__empty svg { width: 32px; height: 32px; }
@media (min-width: 1024px) { .photo-slot { border-radius: 24px; } }

/* ───────────── Community events ─────────────
   Photo mosaic like the home "In the spotlight" section: captions over the photos, tiles of mixed sizes on desktop,
   first four shown, the rest after "Show more" (pages.js). Mobile stacks 4:3 cards; tablets two per row. */
.events { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) and (max-width: 1023.98px) { .events { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.event { min-width: 0; }
.event__img { height: 100%; aspect-ratio: 4 / 3; border-radius: 18px; }
.event__img img { user-select: none; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.event__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 16px 14px;
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  background: linear-gradient(to top, rgba(6, 8, 4, 0.92), rgba(6, 8, 4, 0.55) 55%, transparent);
}
.event__when { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.event h3 { font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--text); }
.event p { font-size: 13px; line-height: 1.5; color: rgba(238, 243, 230, 0.75); }
.events__more { display: none; }
.js .events__more { display: flex; justify-content: center; margin-top: 24px; }
.js [data-events]:not(.is-expanded) .event--more { display: none; }
.events__more-btn.btn-secondary { min-height: 36px; padding: 0 16px; font-size: 13px; }
@media (min-width: 1024px) {
  /* Mosaic: 1 big + 1 wide + 2 small by default, then 1 tall + 1 big + 1 tall after "Show more".
     Events past the seventh fall into plain rows of four below. */
  .events {
    margin-top: 48px; gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px;
    grid-template-areas: "a a b b" "a a c d" "e f f g" "e f f g";
  }
  .event:nth-child(1) { grid-area: a; } .event:nth-child(2) { grid-area: b; } .event:nth-child(3) { grid-area: c; }
  .event:nth-child(4) { grid-area: d; } .event:nth-child(5) { grid-area: e; } .event:nth-child(6) { grid-area: f; }
  .event:nth-child(7) { grid-area: g; }
  /* Exactly six events: the second row is two big tiles, so no empty "g" slot is left. */
  .events:has(> .event:nth-child(6):last-child) { grid-template-areas: "a a b b" "a a c d" "e e f f" "e e f f"; }
  .js [data-events]:not(.is-expanded) .events { grid-template-areas: "a a b b" "a a c d"; }
  .event__img { aspect-ratio: auto; border-radius: 24px; }
  .event__body { padding: 72px 22px 18px; gap: 6px; }
  .event__when { font-size: 11px; }
  .event h3 { font-size: 16px; }
  .event p { font-size: 14px; display: none; }
  /* The big tiles have room for the description and a larger title. */
  .event:nth-child(1) .event__body, .event:nth-child(6) .event__body { padding: 96px 28px 24px; }
  .event:nth-child(1) h3, .event:nth-child(6) h3 { font-size: 22px; }
  .event:nth-child(1) p, .event:nth-child(6) p { display: block; max-width: 46ch; }
  .events:has(> .event:nth-child(6):last-child) .event:nth-child(5) .event__body { padding: 96px 28px 24px; }
  .events:has(> .event:nth-child(6):last-child) .event:nth-child(5) h3 { font-size: 22px; }
  .events:has(> .event:nth-child(6):last-child) .event:nth-child(5) p { display: block; max-width: 46ch; }
  /* Keep faces in frame in the wide tile. */
  .event:nth-child(2) img { object-position: 50% 80%; }
  .event:hover .event__img img { transform: scale(1.04); }
  .js .events__more { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .event__img img { transition: none; } .event:hover .event__img img { transform: none; } }
.text-arrow {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 600; color: var(--lime); transition: gap 0.2s ease;
}
.text-arrow:hover { gap: 12px; color: var(--lime); }
@media (min-width: 1024px) { .text-arrow { margin-top: 48px; font-size: 16px; } }

/* ───────────── Page rhythm: one background, spacing only, same reveal ───────────── */
.page-about .pg-section { padding: 64px var(--gutter); }
.page-about .pg-section--alt { background: none; border: 0; }
/* Desktop: content spans the full page, lined up with the header's logo and "Get the App" edges. */
@media (min-width: 1024px) {
  .page-about .pg-section { padding: 96px max(32px, calc(222 * var(--u))) 96px max(32px, calc(224 * var(--u))); }
  .page-about .pg-wrap { max-width: none; }
  .ms-scene .aakri-truck-scene { max-width: none; }
  .ms-scene .aakri-truck-scene svg { max-height: none; }
}
.js .page-about [data-reveal] { transform: translateY(24px); transition: opacity 500ms ease-out, transform 500ms ease-out; transition-delay: var(--d, 0ms); }
.js .page-about [data-reveal].is-visible { transform: none; }

/* ───────────── Team photo, full screen ───────────── */
.showcase { position: relative; isolation: isolate; padding-top: 64px; }
@media (min-width: 1024px) { .showcase { padding-top: 96px; } }

/* Team photo: edge to edge, a full screen tall on desktop; fades into the page at top and bottom. */
.showcase__team { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 9; }
@media (min-width: 901px) { .showcase__team { aspect-ratio: auto; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 520px; } }
.showcase__team img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.showcase__team::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 16%, rgba(var(--bg-rgb), 0) 78%, var(--bg) 100%);
}
.js .page-about .showcase__team[data-reveal] { transform: none; }
.js .page-about .showcase__team[data-reveal] img { transform: scale(1.06); transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.js .page-about .showcase__team.is-visible img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .page-about .showcase__team[data-reveal] img { transform: none; transition: none; }
}

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

/* ───────────── Awards: section tokens ───────────── */
.aw { --aw-muted: var(--text-secondary); }
.aw-title { font-size: clamp(28px, 3.3vw, 46px); }
