/* ==========================================================================
   About page (about.html)
   Page-specific styles only. Use .about-* class names; shared components
   live in css/style.css and must not be redefined here.
   ========================================================================== */

:root {
  --about-overlap: 160px;  /* how far the team photo rides up into the hero */
}

@media (max-width: 959px) {
  :root { --about-overlap: 112px; }
}

@media (max-width: 640px) {
  :root { --about-overlap: 64px; }
}


/* --------------------------------------------------------------------------
   01. Hero (stacked: headline, then lead + actions; photo overlaps below)
   -------------------------------------------------------------------------- */

.about-hero {
  min-height: 0;
  padding-bottom: calc(96px + var(--about-overlap));
}

.about-hero-inner > .eyebrow {
  margin-bottom: 28px;
}

.about-hero-title {
  max-width: 13.5em;
}

.about-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
  margin-top: 36px;
}

.about-hero-row .hero-lead {
  flex: 1 1 380px;
  max-width: 580px;
  margin-top: 0;
}

.about-hero-row .hero-actions {
  margin-top: 0;
}

@media (max-width: 959px) {
  .about-hero {
    padding-bottom: calc(72px + var(--about-overlap));
  }

  .about-hero-row {
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .about-hero {
    padding-bottom: calc(56px + var(--about-overlap));
  }

  .about-hero-inner > .eyebrow {
    margin-bottom: 20px;
  }

  /* Overrides the shared .hero-title size so "content" isn't left alone on a line */
  .about-hero-title {
    font-size: min(46px, 10.6vw);
  }

  .about-hero-row {
    gap: 28px;
  }

  .about-hero-row .hero-lead {
    flex-basis: 100%;
  }

  .about-hero-row .hero-actions {
    width: 100%;
  }
}


/* --------------------------------------------------------------------------
   02. Team photo (overlaps the hero) + key facts
   -------------------------------------------------------------------------- */

.about-intro {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--about-overlap));
}

.about-photo {
  position: relative;
  margin: 0;
}

.about-photo-media {
  aspect-ratio: 12 / 5;
  overflow: hidden;
  border-radius: var(--r-visual);
  background: var(--plum-700);
}

.about-photo-media picture {
  display: block;
  height: 100%;
}

.about-photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.about-photo-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 48px);
  padding: 8px 20px 8px 8px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.about-photo-pin {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--plum-900);
  color: var(--lime);
}

.about-photo-pin svg {
  width: 16px;
  height: 16px;
}

.about-photo-text strong {
  margin-right: 2px;
  color: var(--plum-900);
  font-weight: 700;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: 64px;
}

@media (max-width: 959px) {
  .about-photo-media {
    aspect-ratio: 2 / 1;
    border-radius: var(--r-card-lg);
  }
}

@media (max-width: 900px) {
  .about-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px var(--grid-gap);
    margin-top: 48px;
  }
}

@media (max-width: 640px) {
  .about-photo-media {
    aspect-ratio: 3 / 2;
    border-radius: var(--r-media);
  }

  /* Caption moves under the photo so it never covers faces */
  .about-photo-caption {
    position: static;
    align-items: flex-start;
    max-width: none;
    margin-top: 16px;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .about-photo-pin {
    width: 28px;
    height: 28px;
  }

  .about-photo-pin svg {
    width: 14px;
    height: 14px;
  }

  .about-photo-text {
    padding-top: 4px;
  }

  .about-facts {
    gap: 28px 16px;
    margin-top: 40px;
  }
}


/* --------------------------------------------------------------------------
   03. Our story — vertical timeline with oversized years
   Desktop: year | rail | milestone. Mobile: rail on the left, year above.
   -------------------------------------------------------------------------- */

/* Header image (img/v2/hero-about.jpg, 16:10): phones 2008 → today rise
   left to right, so it scales on mobile and is never cropped. */
.about-story-media {
  margin: 0 0 72px;
  overflow: hidden;
  border-radius: var(--r-visual);
  background: var(--lime);
}

.about-story-media img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 959px) {
  .about-story-media {
    margin-bottom: 56px;
    border-radius: var(--r-card-lg);
  }
}

@media (max-width: 640px) {
  .about-story-media {
    margin-bottom: 40px;
    border-radius: var(--r-media);
  }
}

.about-timeline {
  --yr: clamp(56px, 6.4vw, 96px);   /* year size */
  --rail-x: 25%;                    /* rail position inside each row */
  --dot: 22px;
  --dot-y: calc(var(--yr) / 2);     /* dot sits on the year's midline */
  --col-gap: 48px;
}

.about-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
}

/* Rail */
.about-tl-item::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--rail-x) - 1px);
  width: 2px;
  background: var(--plum-900);
}

.about-tl-item:first-child::before {
  top: var(--dot-y);
}

/* Dot */
.about-tl-item::after {
  content: '';
  position: absolute;
  top: calc(var(--dot-y) - var(--dot) / 2);
  left: calc(var(--rail-x) - var(--dot) / 2);
  width: var(--dot);
  height: var(--dot);
  border: 5px solid var(--bone);
  border-radius: 50%;
  background: var(--violet);
}

.about-tl-year {
  display: block;
  padding-right: var(--col-gap);
  color: var(--plum-900);
  font-family: var(--font-display);
  font-size: var(--yr);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.about-tl-body {
  max-width: calc(640px + var(--col-gap));
  padding: calc(var(--dot-y) - 15px) 0 72px var(--col-gap);
}

.about-tl-title {
  margin-bottom: 10px;
  color: var(--plum-900);
  font-family: var(--font-text);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.about-tl-text {
  max-width: 58ch;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.55;
}

/* The future: dashed rail, hollow dot, lime card */
.about-tl-item--future::before {
  bottom: auto;
  width: 0;
  height: var(--dot-y);
  border-left: 2px dashed var(--plum-900);
  background: none;
}

.about-tl-item--future::after {
  border: 3px solid var(--violet);
  background: var(--bone);
}

.about-tl-item--future .about-tl-year {
  color: var(--violet);
  font-size: calc(var(--yr) * 0.82);
  line-height: 1.02;
}

.about-tl-item--future .about-tl-body {
  padding-top: 0;
  padding-bottom: 0;
}

.about-tl-card .card-title {
  font-family: var(--font-display);
  font-size: var(--fs-h-sm);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.about-tl-card .card-text {
  max-width: 46ch;
  font-size: var(--fs-body);
}

@media (max-width: 900px) {
  .about-timeline {
    --yr: clamp(40px, 9vw, 56px);
    --rail-x: 11px;
    --dot: 20px;
    --col-gap: 0px;
  }

  .about-tl-item {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 44px;
  }

  .about-tl-body {
    max-width: none;
    padding: 12px 0 48px;
  }

  .about-tl-item--future .about-tl-year {
    font-size: var(--yr);
  }

  .about-tl-item--future .about-tl-body {
    padding-top: 20px;
  }
}


/* --------------------------------------------------------------------------
   04. Mission — lavender statement panel
   -------------------------------------------------------------------------- */

.about-mission {
  isolation: isolate;
  overflow: hidden;
  padding: clamp(36px, 6.5vw, 88px);
}

/* Flat candy circles */
.about-mission::before,
.about-mission::after {
  content: '';
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
}

.about-mission::before {
  top: -96px;
  right: -72px;
  width: clamp(200px, 26vw, 340px);
  background: var(--lime);
}

.about-mission::after {
  right: clamp(96px, 10vw, 150px);
  bottom: clamp(40px, 6vw, 88px);
  width: clamp(80px, 9vw, 128px);
  background: var(--pink);
}

/* Tablets and phones: the pill row and paragraph reach the pink circle */
@media (max-width: 900px) {
  .about-mission::after { display: none; }
}

.about-mission .eyebrow {
  align-self: flex-start;
  margin-bottom: 28px;
}

.about-mission-statement {
  max-width: 15.5em;
  font-size: clamp(30px, 4vw, 52px);
}

.about-mission-text {
  max-width: 48ch;
  margin-top: 24px;
}

.about-mission-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.about-mission-pillars li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.about-mission-pillars li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--plum-900);
}

@media (max-width: 640px) {
  .about-mission {
    padding: 32px 28px 40px;
  }

  .about-mission::before {
    top: -72px;
    right: -72px;
    width: 160px;
  }

  .about-mission .eyebrow {
    margin-bottom: 24px;
  }

  .about-mission-statement {
    max-width: none;
    font-size: 30px;
  }

  .about-mission-pillars {
    margin-top: 28px;
  }
}


/* --------------------------------------------------------------------------
   05. Values — heading + five cards in one 3-column bento
   Accent rhythm: white / pink / white / plum / white (never adjacent).
   -------------------------------------------------------------------------- */

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.about-values-head {
  align-self: start;
  padding: 4px 24px 24px 0;
}

.about-values-head .eyebrow {
  margin-bottom: 20px;
}

.about-values-head .lead {
  margin-top: 20px;
}

.about-value {
  min-height: 280px;
}

.about-value-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: auto;
  padding-bottom: 40px;
}

.about-value-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--plum-900);
  color: var(--lime);
}

.card--plum .about-value-icon {
  background: var(--lime);
  color: var(--plum-900);
}

.about-value-icon svg {
  width: 24px;
  height: 24px;
}

.about-value-num {
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.about-value .card-text {
  max-width: 32ch;
}

@media (max-width: 900px) {
  .about-values {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-values-head {
    padding: 0 0 calc(var(--head-gap) - var(--grid-gap));
  }

  /* Horizontal card: icon left, copy right, number top right */
  .about-value {
    min-height: 0;
    padding-left: calc(var(--card-pad) + 72px);
  }

  .about-value-top {
    position: absolute;
    inset: var(--card-pad) var(--card-pad) auto;
    padding: 0;
  }

  .about-value .card-title {
    padding-right: 32px;
  }

  .about-value .card-text {
    max-width: 52ch;
  }
}

@media (max-width: 480px) {
  .about-value {
    padding-left: calc(var(--card-pad) + 60px);
  }

  .about-value-icon {
    width: 44px;
    height: 44px;
  }

  .about-value-icon svg {
    width: 20px;
    height: 20px;
  }
}


/* --------------------------------------------------------------------------
   06. Misc
   -------------------------------------------------------------------------- */

/* The photo's alt text is translated; keep the image from blinking while
   js/i18n.js swaps it (it fades every [data-i18n] element for 150ms). */
.about-photo-media img.switching {
  opacity: 1;
  transition: none;
}
