/* ==========================================================================
   Pavilion — About Us (about/)
   Figma "Pavilion Website – October" › Build - Live Mirror:
   "About – Desktop (1440)" 6885:2169 / "About – Mobile (402)" 6892:1173
   Reuses the Pavilion Overview and Leadership modules from pages/audience.css.
   ========================================================================== */

/* ---------- Hero: centred title + lede, 960 video ---------- */
/* Full-width sections: --gutter (base.css) centres the content above 1440px. */
.about-hero {
  background: var(--color-yellow-100); padding: 80px var(--gutter) 120px; display: flex; flex-direction: column; align-items: center; gap: 80px;
}
.about-hero__intro { max-width: 628px; display: flex; flex-direction: column; gap: 80px; text-align: center; }
.about-hero__intro .t-h1 { color: var(--color-maroon); }
.about-hero__lede { color: var(--color-black); }

.about-video {
  position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-panel); background: var(--color-black);
}
.about-video__media { display: block; width: 100%; height: 100%; object-fit: cover; --media-object-fit: cover; cursor: pointer; }
.about-video.is-playing .about-video__media { cursor: auto; }
.about-video__play {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px;
  border: 0; border-radius: var(--radius-pill); background: var(--color-off-white); color: var(--color-maroon);
  font: inherit; cursor: pointer; transition: background-color .2s ease;
}
.about-video__play svg { width: 12px; height: 14px; }
.about-video__play:hover { background: var(--color-yellow-200); }
.about-video__play:focus-visible { outline: 2px solid var(--color-maroon); outline-offset: 3px; }
.about-video.is-playing .about-video__play, .about-video__play[hidden] { display: none; }

/* ---------- Overview ---------- */
.about-overview { background: var(--color-off-white); padding: 80px var(--gutter); }   /* on the page background, like the sections around it */

/* ---------- Careers + Contact: light cards, text left, illustration right ---------- */
.about-ways { padding: 80px var(--gutter) 128px; display: flex; flex-direction: column; gap: 40px; }
.about-ways__title, .about-ways__grid { width: 100%; max-width: var(--content-max); margin: 0 auto; }
.about-ways__title { color: var(--color-black); }
.about-ways__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about-way { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 278px); min-height: 278px; overflow: hidden; border-radius: var(--radius-panel); }
.about-way__art { position: relative; min-height: 0; }   /* the text sets the card height; the photo fills it */
.about-way--careers { background: var(--color-blue-100); }
.about-way--contact { background: var(--color-sand-100); }
.about-way__text { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; padding: 32px; }
.about-way__text .t-label { color: var(--color-maroon); }
.about-way__text .btn { margin-top: auto; }
.about-way__art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Below 1280: one card per row, so the text column never gets narrow.
   Text and photo stay side by side (photo 40%) down to 520px. ---------- */
@media (max-width: 1279px) {
  .about-ways__grid { grid-template-columns: 1fr; }
  .about-way { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

/* ---------- Mobile <768 ---------- */
@media (max-width: 767px) {
  .about-hero { padding: 40px 20px 64px; gap: 40px; }
  .about-hero__intro { gap: 32px; }
  .about-video__play { left: 12px; bottom: 12px; gap: 8px; padding: 8px 14px 8px 12px; }
  .about-video__play svg { width: 9px; height: 10px; }

  .about-overview { background: var(--color-off-white); padding: 48px 0; }

  /* Leadership: a 2-column grid here, not the swipe row used on the PM page */
  .about-team { padding: 48px 20px 56px; gap: 40px; }
  .about-team .team__head { padding: 0; gap: 24px; }
  .about-team .team__grid {
    display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none;
    gap: 40px 20px; padding: 0; overflow: visible; scroll-snap-type: none;
  }
  .about-team .person { width: auto; align-items: center; text-align: center; gap: 16px; }
  .about-team .person__photo { width: 140px; height: 140px; }
  .about-team .person__text { gap: 8px; }
  .about-team .person .t-body { font-size: 15px; }

  .about-ways { padding: 48px 20px 64px; gap: 24px; }
  .about-ways__grid { gap: 20px; }
  .about-way { min-height: 240px; border-radius: 16px; }
  .about-way__text { padding: 24px; gap: 24px; }
}

/* ---------- Phones <520: photo on top, text below (Figma "About – Mobile (402)") ---------- */
@media (max-width: 519px) {
  .about-way { grid-template-columns: 1fr; min-height: 0; }
  .about-way__art { order: -1; aspect-ratio: 362 / 220; }
}

/* Show the same part of each illustration as the Figma crop */
.about-way--careers .about-way__art img { object-position: 77% 70%; }
.about-way--contact .about-way__art img { object-position: 32% 67%; }

/* Hover: like the homepage "Two ways" cards — the photo eases in a little and the
   button darkens (the card keeps its own colour). A click anywhere opens the button's link. */
.about-way { cursor: pointer; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about-way__art img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
  .about-way:hover .about-way__art img, .about-way:focus-within .about-way__art img { transform: scale(1.05); }
}
@media (hover: hover) {
  .about-way:hover .btn--maroon { background: var(--color-maroon-dark); }
}

/* Responsive pass · 2026-11-18: tablet landscape shows the team five across, as on desktop
   (three across left Matt alone on the last row). */
@media (min-width: 900px) and (max-width: 1099px) {
  .about-team .team__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 16px; max-width: none; width: 100%; }
  .about-team .person { width: auto; }
  .about-team .person__photo { width: 128px; height: 128px; }
}

/* Vertical rhythm · 2026-11-19: phones follow the shared spacing scale in tokens.css. */
@media (max-width: 767px) {
  .about-overview { padding: var(--space-section) 0; }
  .about-team { padding: var(--space-section) 20px; }
  .about-team .team__head { gap: var(--space-head); }
  .about-ways { padding: var(--space-section) 20px; }
  .about-way__text { gap: var(--space-subhead); }                   /* card title > body 16 */
  .about-way__text .t-body { margin-bottom: var(--space-subhead); }  /* + gap = 32 body > button */
}

/* Spacing variables · 2026-11-19 (Figma "Spacing" roles, tokens.css) */
.about-ways { padding-bottom: var(--space-section-lg); }
@media (max-width: 767px) {
  .about-ways { gap: var(--space-header); }
}

/* Figma pick-up · 2026-11-19 ("About – Desktop" 6885:2169 / "About – Mobile" 6892:1173):
   both cards Sandy Beige 100; Contact first on desktop (outline button), Careers first on phones;
   Canyon Red title. */
.about-ways__title { color: var(--color-orange-1000); }
.about-way--careers { background: var(--color-sand-100); }
@media (min-width: 768px) { .about-way--contact { order: -1; } }
@media (hover: hover) {
  .about-way:hover .btn--outline-maroon { background: var(--color-maroon); color: var(--color-off-white); }
}
@media (max-width: 767px) {
  .about-way--contact .btn--outline-maroon { background: var(--color-maroon); color: var(--color-off-white); }   /* Figma mobile: filled */
}

/* Vertical spacing check against Figma · 2026-11-20 ("About – Mobile" 6892:1173): stat cards 176 tall,
   20 apart; "Work with us" title at the H4 size (wraps to two lines). */
@media (max-width: 767px) {
  .about-overview .overview__row--stats { gap: var(--space-20); }
  .about-overview .ov-card { min-height: 176px; }
  .about-ways__title { font-size: var(--fs-h4); line-height: var(--lh-h4); }
}

/* "Work with us" cards on phones: 180px image, 20px corners (Figma 2026-11-20) */
@media (max-width: 519px) {
  .about-way { border-radius: var(--space-20); }
  .about-way__art { aspect-ratio: auto; height: 180px; }
}

/* "Work with us" art: exported at Figma's own crops (2026-11-20), desktop 278x255 and phone 362x180 at 2x,
   so the cards are filled edge to edge; centred cover replaces the old object-position nudges. */
.about-way__art { display: block; }
.about-way--careers .about-way__art img, .about-way--contact .about-way__art img { object-position: center; }

/* Play pill on phones: same as desktop (Figma "About – Mobile" Play pill, 2026-11-20) */
@media (max-width: 767px) {
  .about-video__play { left: 12px; bottom: 12px; gap: 10px; padding: 12px 20px 12px 16px; }
  .about-video__play svg { width: 12px; height: 14px; }
}
