/* Organizations — page-specific styles (RD2 · Figma frame 1:1138 + carousel states 1:3253)
   Column spans follow the 12-col system in main.css (1344 artboard: 432→4, 545/546→5, 659/660→6).
   Media and bands are aspect/vw-driven so the page keeps growing past 1440. */
.page-organizations { --org-line: #EDE6D2; }

/* 01 · Hero ------------------------------------------------------------ */
.org-hero { padding-top: min(clamp(128px, 12.2vw, 220px), max(128px, 17.6svh)); }
.org-hero__split { --a-span: 6; --b-start: 9; --b-span: 4; }        /* 659 | 432 */
.org-hero__lede { font-size: var(--fs-lg); line-height: var(--lh-ui); max-width: var(--measure); }
.org-hero__cta { margin-top: 48px; }
.org-hero__video { margin-top: min(clamp(48px, 7.1vw, 136px), max(48px, 10.2svh)); aspect-ratio: 1344 / 588; --video-overlay: rgba(190, 190, 190, 0.2); }
@media (max-width: 1279px) {
  .org-hero__split { --a-span: 7; --b-start: 8; --b-span: 5; }
}
@media (max-width: 960px) {
  .org-hero { padding-top: calc(var(--header-h) + 40px); }
}
@media (max-width: 900px) {
  .org-hero__cta { margin-top: 32px; }
}
@media (max-width: 640px) {
  .org-hero__cta { width: 100%; }
  .org-hero__video { aspect-ratio: 4 / 3; }
}

/* 02 · What we hear from executive directors ------------------------------ */
.org-problem { padding-block: min(clamp(64px, 6.25vw, 120px), max(64px, 9.0svh)) var(--section-pb); }
.org-problem__grid { --a-span: 5; --b-start: 7; --b-span: 6; }      /* 546 | 660 */
.org-problem__copy { display: grid; gap: 30px; }
.org-problem__copy .text-lg { max-width: var(--measure); }
.org-problem__image { aspect-ratio: 660 / 710; }
@media (max-width: 1279px) {
  .org-problem__grid { --a-span: 6; }
}
@media (max-width: 900px) {
  .org-problem__grid { row-gap: 40px; }
  .org-problem__image { aspect-ratio: 4 / 3; }
}

/* Image cards with a white panel (sections 03 and 07) -------------------- */
/* 432×469 photo cards; the panel keeps the Figma proportions as the card grows. */
.org-values__card, .org-moments__card { --card-h: 0; aspect-ratio: 432 / 469; padding: 24px 24px 18px 18px; }
.org-values__panel, .org-moments__panel { display: flex; flex-direction: column; justify-content: space-between; }
/* Card rows: 1-up <640, 2-up 640–1279 (odd last card spans the row), 3-up ≥1280 */
@media (max-width: 1279px) {
  .org-values__list, .org-moments__list, .org-tech__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-values__card, .org-moments__card { aspect-ratio: auto; min-height: min(clamp(420px, 46vw, 520px), max(420px, 66.2svh)); }
  .org-values__card:last-child:nth-child(odd), .org-moments__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .org-values__list, .org-moments__list, .org-tech__list { grid-template-columns: minmax(0, 1fr); }
  .org-values__card, .org-moments__card { min-height: 0; padding: 180px 12px 12px; }
}

/* 03 · Why boards say yes -------------------------------------------------- */
.org-values { padding-block: var(--section-pt) clamp(48px, 4.2vw, 80px); }
.org-values__title { max-width: 660px; }
.org-values__list { margin-top: min(clamp(48px, 6.25vw, 120px), max(48px, 9.0svh)); }
.org-values__card { padding-right: 9.72%; }                          /* panel 372 of 432 */
.org-values__panel { gap: 36px; min-height: min(clamp(220px, 18.05vw, 340px), max(220px, 26.0svh)); }

/* 04 · How it works -------------------------------------------------------- */
.org-how { padding-block: clamp(48px, 4.2vw, 80px) var(--section-pb); }
.org-how__intro { display: grid; gap: 36px; max-width: max(660px, 50%); }
.org-how__lede { font-size: var(--fs-lg); line-height: var(--lh-ui); max-width: var(--measure); }
.org-how__steps { margin-top: min(clamp(48px, 6.25vw, 120px), max(48px, 9.0svh)); }
/* number (col 1) · title (cols 2–5) · text (cols 7–10) */
.org-how__step {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap);
  padding: 18px 0 36px; border-top: 1px solid var(--org-line);
}
.org-how__step > * { margin-top: 1px; }
.org-how__num { grid-column: 1; padding-top: 4px; color: var(--accent-light); font-size: var(--fs-md); line-height: var(--lh-body); }
.org-how__title { grid-column: 2 / span 4; font-weight: 400; font-size: var(--fs-lead); line-height: var(--lh-snug); letter-spacing: -0.01em; }
.org-how__text { grid-column: 7 / span 4; font-size: var(--fs-md); line-height: var(--lh-body); max-width: var(--measure); }
@media (max-width: 1023px) {
  .org-how__step { grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(20px, 4vw, 48px); }
  .org-how__num { grid-column: 1; }
  .org-how__title { grid-column: 2; }
  .org-how__text { grid-column: 3; }
}
@media (max-width: 700px) {
  .org-how__step { grid-template-columns: 24px minmax(0, 1fr); column-gap: 16px; row-gap: 10px; padding: 18px 0 28px; }
  .org-how__text { grid-column: 2; }
}

/* Full-width image band: 1440×542 at 1440, grows with width, never wider than ~3:1 */
.org-band { width: 100%; height: min(clamp(220px, 37.64vw, 880px), max(220px, 54.2svh)); overflow: hidden; background: #cfd6dc; }
.org-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* 05 · Who stands behind it ------------------------------------------------ */
.org-team { padding-block: min(clamp(64px, 6.25vw, 120px), max(64px, 9.0svh)) var(--section-pb); }
.org-team__grid { --a-span: 6; --b-start: 8; --b-span: 5; }         /* 659 | 546 */
.org-team__copy { display: grid; justify-items: start; gap: 30px; }
.org-team__copy .section-head { width: 100%; }
.org-team__copy .text-lg { max-width: var(--measure); }
.org-team__image { aspect-ratio: 546 / 710; }
@media (max-width: 900px) {
  .org-team__grid { row-gap: 40px; }
  .org-team__image { aspect-ratio: 4 / 3; }
}

/* 06 · Our technology ------------------------------------------------------ */
.org-tech { padding-block: min(clamp(64px, 6.25vw, 120px), max(64px, 9.0svh)) var(--section-pb); }
.org-tech__split { --a-span: 6; --b-start: 8; --b-span: 5; }        /* 660 | 545 */
.org-tech__list { margin-top: var(--space-block); }
.org-tech__item { display: flex; flex-direction: column; }
.org-tech__shot { aspect-ratio: 432 / 248; overflow: hidden; border-radius: 4px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); background: #e9ecf2; }
.org-tech__shot img { width: 100%; height: 100%; object-fit: cover; }
.org-tech__heading { margin-top: 36px; letter-spacing: -0.01em; }
.org-tech__text { margin-top: 18px; color: #6B7280; font-size: var(--fs-md); line-height: var(--lh-body); max-width: var(--measure); }
@media (max-width: 1279px) {
  .org-tech__list { row-gap: 48px; }
}
@media (max-width: 900px) {
  .org-tech__heading { margin-top: 24px; }
  .org-tech__text { margin-top: 12px; }
}

/* 07 · Why boards say yes (moments) --------------------------------------- */
.org-moments { padding-block: min(clamp(64px, 6.25vw, 120px), max(64px, 9.0svh)) var(--section-pb); }
.org-moments__split { --a-span: 6; --b-start: 8; --b-span: 5; }     /* 660 | 545 */
.org-moments__list { margin-top: min(clamp(48px, 6.25vw, 120px), max(48px, 9.0svh)); }
.org-moments__card { padding-right: 20.6%; }                         /* panel 325 of 432 */
.org-moments__panel { gap: 60px; min-height: min(clamp(240px, 20.56vw, 380px), max(240px, 29.6svh)); }
.org-moments__heading.title-light { font-weight: 500; line-height: var(--lh-tight); }

/* Shared: card panels at narrower widths */
@media (max-width: 1279px) {
  .org-values__card, .org-moments__card { padding-right: 18px; }
  .org-values__panel, .org-moments__panel { min-height: 0; max-width: 440px; gap: 24px; }
}
@media (max-width: 639px) {
  .org-values__panel, .org-moments__panel { max-width: none; }
}

/* 08 · What it has meant so far ------------------------------------------- */
/* 1440×818 photo band at 1440 (≈1.76:1), grows with width and caps at ≈1.33× */
.org-impact {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(clamp(520px, 56.8vw, 1088px), max(520px, 81.8svh)); padding-block: clamp(24px, 3.34vw, 64px);
}
.org-impact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
/* 732 wide = 6 columns + the 36px panel padding on each side */
.org-impact__box { width: min(100%, calc((100% - 11 * var(--grid-gap)) / 2 + 5 * var(--grid-gap) + 72px)); padding: 36px; background: var(--white); }
.org-impact__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 60px; }
.org-impact__stat { display: grid; gap: 12px; padding: 0 0 0 18px; border-left: 1px solid var(--line); }
@media (max-width: 1023px) {
  .org-impact__box { width: min(100%, 732px); }
}
@media (max-width: 640px) {
  .org-impact { min-height: 0; padding-block: 220px 24px; }
  .org-impact__box { padding: 24px; }
  .org-impact__stats { gap: 16px; margin-top: 32px; }
  .org-impact__stat { padding: 0 12px; gap: 6px; }
}
@media (max-width: 420px) {
  .org-impact__stats { grid-template-columns: minmax(0, 1fr); }
}

/* Carousel controls (48px squares in the design) --------------------------- */
.org-controls .carousel__btn { width: 48px; height: 48px; color: var(--navy); }
.org-controls .carousel__btn svg { width: 7px; height: 12px; }

/* 09 · Testimonials: organization stories --------------------------------- */
/* Cards are 5 columns wide (546 @1440) and bleed off the right edge. */
.org-stories {
  --cw: min(100vw - 2 * var(--gutter), var(--content));
  --col: calc((var(--cw) - 11 * var(--grid-gap)) / 12);
  padding-block: var(--section-pt) clamp(48px, 4.2vw, 80px); overflow-x: clip;
}
.org-stories__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.org-stories__track {
  display: grid; grid-auto-flow: column; gap: var(--grid-gap);
  --card-w: min(calc(5 * var(--col) + 4 * var(--grid-gap)), 100vw - 2 * var(--gutter) - 32px);
  grid-auto-columns: var(--card-w);
  margin: clamp(40px, 5vw, 96px) calc((100% - 100vw) / 2) 0 0; padding: 0 var(--gutter) 0 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.org-stories__track::-webkit-scrollbar { display: none; }
.org-story {
  scroll-snap-align: start;
  display: grid; grid-template-columns: minmax(0, 1fr) 34.6%; gap: 24px;   /* 294 | 180 of 498 */
  min-height: calc(var(--card-w) * 360 / 546); padding: 24px; background: var(--cream);
}
.org-story__body { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 32px; }
.org-story__label { font-weight: 600; font-size: var(--fs-sm); line-height: var(--lh-ui); }
.org-story__title { margin-top: 9px; }
.org-story__copy { margin-top: 18px; font-size: var(--fs-md); line-height: var(--lh-ui); }
.org-story__watch { min-height: 38px; padding: 9px 18px; }
.org-story__image { align-self: stretch; min-height: 240px; }
@media (max-width: 1279px) {
  .org-stories__track { --card-w: min(546px, 100vw - 2 * var(--gutter) - 32px); }
}
@media (max-width: 640px) {
  .org-story { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 0; }
  .org-story__image { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .org-story__body { gap: 24px; }
  .org-story__watch { min-height: 44px; }
}

/* 10 · In their words ------------------------------------------------------ */
.org-words { padding-block: clamp(48px, 4.2vw, 80px) min(clamp(64px, 6.25vw, 120px), max(64px, 9.0svh)); }
.org-words__carousel { margin-top: 36px; }
/* 1344 card: 36 padding · 546 quote · 138 gap · 588 media */
.org-quote {
  display: grid; grid-template-columns: minmax(0, 546fr) minmax(0, 588fr);
  align-items: stretch; column-gap: 10.85%;
  padding: 36px; background: var(--cream);
}
.org-quote__body { display: flex; flex-direction: column; justify-content: flex-start; padding-block: 0 84px; /* room for the controls */ }
.org-quote__mark { width: 42px; height: 34px; color: var(--navy); flex: none; }
.org-quote__text { margin-top: 24px; font-family: var(--font-serif); font-size: var(--fs-xl); line-height: var(--lh-ui); max-width: var(--measure); }
.org-quote__cite { display: grid; margin-top: 36px; font-size: var(--fs-md); line-height: var(--lh-snug); }
.org-quote__cite strong { font-weight: 700; }
.org-quote__media { aspect-ratio: 588 / 468; align-self: center; --video-overlay: rgba(190, 190, 190, 0.2); }
.org-quote__media::after { content: ""; position: absolute; inset: 0; background: rgba(190, 190, 190, 0.2); pointer-events: none; }
.org-quote__media.video-thumb::after { background: var(--video-overlay); }
.org-words__controls { position: absolute; left: 36px; bottom: 36px; z-index: 2; }
@media (max-width: 900px) {
  .org-quote { grid-template-columns: minmax(0, 1fr); row-gap: 28px; padding: 24px; align-items: start; }
  .org-quote__media { order: -1; aspect-ratio: 16 / 10; }
  .org-quote__body { padding-bottom: 76px; }
  .org-words__controls { left: 24px; bottom: 24px; }
}

/* 11 · Contact: two-up fields (315 | 315 with a 30 gap), full-width rows span both */
.org-form .form__fields--2 { column-gap: 30px; }
.org-form__full { grid-column: 1 / -1; }

@media (min-width: 901px) {
  /* Viewport fit (see main.css) */
  .org-hero { padding-top: min(clamp(128px, 12.2vw, 220px), max(128px, 20svh)); }
  .org-hero__video { margin-top: min(clamp(48px, 7.1vw, 136px), max(48px, 7svh)); width: 100%; max-height: max(320px, 100svh - 360px); }
  .org-impact { min-height: min(clamp(520px, 56.8vw, 1088px), max(520px, 86svh)); }
}
