/* ============================================================
   About page styles
   Loaded AFTER main.css and responsive.css so it wins by source order.
   Scoped to About-page section classes only.
   ============================================================ */

/* --- shared tokens (mirrors design system) --- */
:root {
  --af-hairline: oklch(87% 0.022 62deg);
  --af-terracotta-900: #420d08;
  --af-terracotta-700: #7f2d1f;
  --af-muted: oklch(53% 0.032 46deg);
  --af-subtle: oklch(67% 0.034 52deg);
}

/* ============================================================
   OUR STORY — welcome points: add icon + stack title over text
   (CSS already styles .point / .point-icon; markup now supplies them)
   ============================================================ */
.welcome .welcome-points .point .point-text {
  flex: 1 1 auto;
  min-width: 0;
}
.welcome .welcome-points .point .point-icon svg {
  width: 21px;
  height: 21px;
}

/* ============================================================
   NUMBERS — left-aligned head, arrows between stats, coord row, stamps
   ============================================================ */
.numbers .numbers-container {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(30px, 3.4vw, 50px) clamp(4px, 1vw, 16px);
}

/* scattered background stamps */
.numbers .numbers-stamps {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.numbers .numbers-stamps img {
  position: absolute;
  will-change: transform;
  animation: af-stamp-float 13s ease-in-out infinite;
}
/* Rotation via the standalone `rotate` property (not `transform`) so scroll
   parallax can drive `transform` without clobbering each stamp's angle. */
.numbers .numbers-stamps .st-a { left: -2%;  top: 16%; width: 190px; opacity: 0.26; rotate: -4deg; animation-delay: 0.2s; }
.numbers .numbers-stamps .st-b { left: 80%;  top: -6%; width: 176px; opacity: 0.30; rotate: 5deg;  animation-delay: 0.9s; }
.numbers .numbers-stamps .st-c { left: 46%;  top: 66%; width: 120px; opacity: 0.22; rotate: 6deg;  animation-delay: 0.4s; }

@keyframes af-stamp-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -7px; }
}

.numbers .numbers-panel {
  position: relative;
  z-index: 1;
}

/* top-right decorative wavy lines + stamp */
.numbers .numbers-corner {
  position: absolute;
  top: clamp(0px, 1vw, 8px);
  right: clamp(0px, 2vw, 20px);
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: none;
  z-index: 2;
}
.numbers .numbers-corner img {
  width: clamp(78px, 8vw, 112px);
  opacity: 0.92;
  transform: rotate(4deg);
}
.numbers .numbers-corner svg { opacity: 0.5; }

/* head: eyebrow + hairline */
.numbers .numbers-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(16px, 1.8vw, 22px);
}
.numbers .numbers-head .ust-eyebrow {
  text-align: left;
  margin: 0;
  letter-spacing: 0.24em;
  color: var(--af-terracotta-700);
}
.numbers .numbers-head .numbers-head-line {
  height: 1px;
  width: clamp(40px, 5vw, 72px);
  background: var(--af-hairline);
}

.numbers .numbers-title {
  font-family: "Lora", serif;
  font-weight: 400;
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.625rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--af-terracotta-900);
  text-align: left;
  margin: 0;
  max-width: 24ch;
}

/* stat grid with arrow columns */
.numbers .stats-grid {
  grid-template-columns:
    minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  margin-top: clamp(2.1rem, 3.6vw, 3.4rem);
}
.numbers .stats-grid .stat-item {
  border-right: 0;
  padding: 0 clamp(14px, 1.8vw, 28px);
}
.numbers .stats-grid .stat-item:first-child { padding-left: 0; }
.numbers .stats-grid .stat-item:last-child  { padding-right: 0; }

.numbers .stat-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  width: clamp(34px, 5vw, 84px);
  padding-top: clamp(44px, 4.6vw, 74px);
}
.numbers .stat-arrow .stat-arrow-line {
  flex: 1;
  height: 1px;
  background: var(--af-terracotta-700);
  opacity: 0.45;
}
.numbers .stat-arrow svg { flex: none; }

/* coordinate footer row */
.numbers .numbers-coords {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(26px, 2.8vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--af-hairline);
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--af-subtle);
}

/* ============================================================
   SHARED — left-aligned section head with hairline rule
   (Mission & Vision, Meet the Team)
   ============================================================ */
.title-container.about-head--left {
  display: block;
  text-align: left;
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(34px, 4vw, 52px);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--af-hairline);
}
.title-container.about-head--left .ust-eyebrow {
  text-align: left;
  margin-bottom: 14px;
}
.title-container.about-head--left h2 {
  max-width: 640px;
}
.title-container.about-head--left .desc,
.title-container.about-head--left > p {
  text-align: left;
  margin-top: 14px;
  margin-bottom: 0;
  max-width: 58ch;
}

/* ============================================================
   MISSION & VISION — icons + taller cards
   ============================================================ */
.mission-vision .mission-vision-card {
  padding: clamp(34px, 3.4vw, 52px);
  display: flex;
  flex-direction: column;
  min-height: clamp(340px, 32vw, 420px);
}
.mission-vision .mission-vision-card .mv-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  background: #ffe4d2;
  color: var(--af-terracotta-700);
}
.mission-vision .mission-vision-card.is-dark .mv-icon {
  background: oklch(100% 0 0 / 0.12);
  color: #ffe4d2;
}

/* ============================================================
   PARTNERS — larger logos in bordered cells, taller strip
   ============================================================ */
.partners .partners-marquee {
  padding: 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners .partners-marquee .partners-track {
  gap: 0;
  align-items: stretch;
}
.partners .partners-marquee img {
  flex: none;
  box-sizing: border-box;
  width: clamp(180px, 16vw, 232px);
  height: 132px;
  padding: 18px 34px;
  border-right: 1px solid var(--af-hairline);
  object-fit: contain;
  opacity: 1;
}

/* ============================================================
   MEET THE TEAM — polaroid / stamp-edge cards, left text
   ============================================================ */
.team .team-grid {
  gap: clamp(20px, 2.4vw, 30px);
}
.team .team-card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--af-hairline);
  border-radius: 14px;
  box-shadow: 0 1px 3px oklch(31% 0.09 32deg / 0.07);
  padding: 16px 16px 0;
  transition: box-shadow 0.22s cubic-bezier(0.2, 0.7, 0.25, 1),
              transform 0.22s cubic-bezier(0.2, 0.7, 0.25, 1),
              border-color 0.22s cubic-bezier(0.2, 0.7, 0.25, 1);
}
.team .team-card:hover {
  box-shadow: 0 18px 38px oklch(52% 0.13 45deg / 0.26);
  transform: translateY(-4px);
  border-color: oklch(80% 0.04 60deg);
}
.team .team-card .team-photo {
  aspect-ratio: auto;
  background: #f6ede2;
  padding: 12px;
  margin-bottom: 0;
  border-radius: 0;
  overflow: visible;
  filter: drop-shadow(0 0 0.5px oklch(31% 0.09 32deg / 0.34))
          drop-shadow(0 2px 3px oklch(31% 0.09 32deg / 0.2))
          drop-shadow(0 10px 18px oklch(31% 0.09 32deg / 0.12));
  -webkit-mask:
    radial-gradient(7px at 50% 0, #0000 97%, #000) 50% 0 / 24px 100% repeat-x,
    radial-gradient(7px at 50% 100%, #0000 97%, #000) 50% 100% / 24px 100% repeat-x,
    radial-gradient(7px at 0 50%, #0000 97%, #000) 0 50% / 100% 24px repeat-y,
    radial-gradient(7px at 100% 50%, #0000 97%, #000) 100% 50% / 100% 24px repeat-y;
  mask:
    radial-gradient(7px at 50% 0, #0000 97%, #000) 50% 0 / 24px 100% repeat-x,
    radial-gradient(7px at 50% 100%, #0000 97%, #000) 50% 100% / 24px 100% repeat-x,
    radial-gradient(7px at 0 50%, #0000 97%, #000) 0 50% / 100% 24px repeat-y,
    radial-gradient(7px at 100% 50%, #0000 97%, #000) 100% 50% / 100% 24px repeat-y;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.team .team-card .team-photo img {
  aspect-ratio: 4 / 5;
  height: auto;
  box-shadow: inset 0 0 0 1px oklch(31% 0.09 32deg / 0.1);
}
.team .team-card h3 {
  text-align: left;
  margin: 22px 6px 6px;
}
.team .team-card p {
  text-align: left;
  margin: 0 6px 26px;
}

/* ============================================================
   OUR JOURNEY — Kerala map background + corner decorations
   ============================================================ */
.our-journey .our-journey-container {
  position: relative;
}
.our-journey .journey-map-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/kerala-bg-map.webp") center / cover no-repeat;
  opacity: 0.1;
  border-radius: 22px;
  pointer-events: none;
}
.our-journey .journey-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}
.our-journey .journey-deco.deco-a { top: -6px;  right: 8px;  width: clamp(76px, 8vw, 104px); transform: rotate(6deg); }
.our-journey .journey-deco.deco-b { bottom: 8px; left: 6px;  width: clamp(70px, 7vw, 92px);  transform: rotate(-7deg); }
.our-journey .our-journey-container > .title-container,
.our-journey .our-journey-container > .timeline-tabs,
.our-journey .our-journey-container > .category-panels {
  position: relative;
  z-index: 1;
}

/* ============================================================
   RESPONSIVE — keep About fixes coherent on tablet / mobile
   ============================================================ */
@media only screen and (max-width: 1024px) {
  .numbers .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }
  .numbers .stats-grid .stat-item {
    padding: 0 !important;
  }
  .numbers .stat-arrow {
    display: none;
  }
  .numbers .numbers-corner {
    display: none;
  }
}

@media only screen and (max-width: 600px) {
  .numbers .stats-grid {
    grid-template-columns: 1fr;
  }
  .numbers .numbers-coords {
    font-size: 0.625rem;
    letter-spacing: 0.14em;
  }
}

/* ============================================================
   OUR JOURNEY — scroll-driven animated map
   A 320vh sticky track drives the map, pins and copy as you scroll.
   ============================================================ */
.our-journey.ojm {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: calc(50% - 50vw);   /* full-bleed */
  overflow-x: clip;
  background: transparent;
}
.ojm-track { position: relative; height: 320vh; }
.ojm-stick {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
/* The map fills the whole pinned viewport; the route + overlays sit on top. */
.ojm-map,
.ojm-map-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
#mjMapVideo { display: block; width: 100%; height: 100%; object-fit: cover; }
#mjSvg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Section heading — top-right, overlaid on the map. */
.ojm-head {
  position: absolute; z-index: 3;
  top: clamp(24px, 5vh, 58px); right: clamp(22px, 4vw, 64px);
  max-width: min(360px, 46%); text-align: right;
}
.ojm-head .ust-eyebrow { color: var(--af-subtle); margin-bottom: 10px; }
.ojm-head h2 {
  font-family: "Lora", serif; font-weight: 400;
  font-size: clamp(26px, 3.2vw, 44px); line-height: 1.1;
  letter-spacing: -0.015em; color: var(--af-terracotta-900); margin: 0;
}

.mjMark { opacity: .45; transition: opacity .5s cubic-bezier(.22, 1, .36, 1); }
.mjMark .mjHalo, .mjMark .mjTag { opacity: 0; transition: opacity .45s ease; }
.mjMark .mjDot { opacity: .35; transition: opacity .45s ease; }
.mjMark.on { opacity: 1; }
.mjMark.on .mjHalo, .mjMark.on .mjTag, .mjMark.on .mjDot { opacity: 1; }
#mjTraveller { transition: opacity .35s ease; }

/* Year copy — a small card in the bottom-left, overlaid on the map. */
.ojm-copy {
  position: absolute; z-index: 3;
  left: clamp(20px, 4vw, 58px); bottom: clamp(24px, 6vh, 62px);
  width: min(430px, 68%); min-height: 132px; text-align: left; pointer-events: none;
}
.ojm-art {
  position: absolute; left: 0; bottom: 0; width: 100%;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
  background: oklch(98% 0.012 80 / 0.84);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border: 1px solid oklch(87% 0.022 62 / 0.7);
  border-radius: 12px; padding: 18px 22px;
  box-shadow: 0 8px 22px oklch(31% 0.09 32 / 0.12);
}
.ojm-art.is-active { opacity: 1; transform: none; }
.ojm-art .ust-eyebrow { color: var(--af-subtle); margin-bottom: 8px; }
.ojm-art h3 { font-family: "Lora", serif; font-weight: 400; font-size: clamp(19px, 1.9vw, 27px); line-height: 1.2; letter-spacing: -0.012em; color: var(--af-terracotta-900); margin: 0 0 8px; }
.ojm-art p { font-size: 0.875rem; line-height: 1.6; color: var(--af-body-muted, #6b5647); margin: 0; max-width: 46ch; }

/* Static, stacked layout — no scroll-jack — on mobile/tablet and when the
   viewer prefers reduced motion (JS also stops driving the scroll there). */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .our-journey.ojm { margin-inline: 0; }
  .ojm-track { height: auto; }
  .ojm-stick { position: relative; height: auto; overflow: visible; padding: clamp(48px, 8vw, 72px) clamp(20px, 5vw, 32px); }
  .ojm-map, .ojm-map-frame { position: relative; inset: auto; height: auto; aspect-ratio: 1672 / 941; }
  #mjMapVideo { object-fit: cover; }
  .ojm-head { position: static; text-align: left; max-width: none; padding: 0 4px 16px; }
  .ojm-copy { position: static; width: 100%; min-height: 0; margin-top: 18px; }
  .ojm-art { position: static; opacity: 1; transform: none; background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
  .ojm-art + .ojm-art { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--af-hairline); }
}
@media (min-width: 769px) and (max-width: 900px) {
  .ojm-track { height: 280vh; }
  .ojm-head { max-width: 58%; }
  .ojm-copy { width: min(430px, 86%); }
}

/* ============================================================
   MEET THE TEAM — single director feature: framed portrait card on
   the left, the director's message on the right
   ============================================================ */
.team .director {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.team .director-card:hover { transform: none; }
.team .director-message .ust-eyebrow {
  color: var(--af-terracotta-700);
  margin-bottom: 18px;
}
.team .director-quote {
  margin: 0 0 24px;
  font-family: "Lora", serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--af-terracotta-900);
  max-width: 28ch;
}
.team .director-message p {
  color: var(--af-muted);
  max-width: 60ch;
  margin-bottom: 16px;
}
.team .director-message .director-sign {
  margin-top: 24px;
  margin-bottom: 0;
  font-family: "Lora", serif;
  font-style: italic;
  color: var(--af-terracotta-700);
}
@media only screen and (max-width: 768px) {
  .team .director { grid-template-columns: 1fr; }
  .team .director-card { max-width: 340px; }
}

/* Mobile — journey copy: smaller eyebrow labels so they sit clearly below the
   headings in the hierarchy. */
@media only screen and (max-width: 768px), (prefers-reduced-motion: reduce) {
  .ojm-art .ust-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.2em;
  }
}
