/* About Capyo. One page, one system. Original photos and canonical minis. */
html:has(body.page-about) {
  background: #fffcf7;
}
body.page-about {
  --page: #fffcf7;
  --page-2: #f8f2e9;
  --paper: #f8f2e9;
  --ink: #121815;
  --body: #332c25;
  --muted: #76695c;
  --orange: var(--ink);
  --orange-hi: #2b322e;
  --ab-scale: 1;
  background: var(--page);
}
@media (min-width: 1025px) {
  body.page-about {
    --ab-scale: 0.95;
  }
}
body.page-about main em {
  font-style: normal;
  color: inherit;
}
body.page-about main :is(h1, h2, h3) {
  font-style: normal;
}
body.page-about main p {
  text-wrap: pretty;
}
body.page-about main .wrap {
  width: min(calc(1200px / var(--ab-scale)), calc(100% - 2 * var(--gutter)));
  max-width: none;
  padding-inline: 0;
}
body.page-about main .section {
  padding-block: 64px;
}
body.page-about main .label {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
  margin-bottom: 18px;
}
body.page-about main h2 {
  font-size: clamp(2.25rem, 4.15vw, 4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
body.page-about main h3 {
  font-size: clamp(1.375rem, 1.9vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
body.page-about ::selection {
  background: #f3dfc8;
  color: var(--ink);
}
body.page-about .site-header.scrolled {
  background: rgba(255, 252, 247, 0.94);
  box-shadow: none;
}
body.page-about main a.btn[href="/contact/"],
body.page-about .site-footer .actions,

/* The approved hero: three lines, a real photo, a quiet caption. */
body.page-about .ab-top {
  padding-top: var(--head);
  background: var(--page);
}
body.page-about .ab-top-in {
  container-type: inline-size;
  width: min(calc(1128px / var(--ab-scale)), calc(100% - 96px));
  margin-inline: auto;
  padding-block: 32px 56px;
  display: grid;
  grid-template-columns: minmax(0, 590fr) minmax(0, 486fr);
  gap: calc(52px / var(--ab-scale));
  align-items: center;
}
body.page-about .ab-top-in > * {
  min-width: 0;
  margin: 0;
}
body.page-about .ab-top-text {
  padding: 0;
  text-align: start;
}
body.page-about .ab-top .label {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
}
body.page-about .ab-top h1 {
  margin: 0 0 32px;
  font-size: min(110px, 9.2cqw);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
}
body.page-about .ab-top h1 span {
  display: block;
}
body.page-about .ab-top .lede {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1.1875rem, 2.1cqw, 1.5rem);
  line-height: 1.5;
  color: var(--body);
}
body.page-about .ab-top-photo {
  position: relative;
  top: 14px;
}
body.page-about .ab-top-frame {
  padding: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(50 35 15 / 5%);
}
body.page-about .ab-top-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9/10;
  object-fit: cover;
  object-position: 50% 45%;
}
body.page-about .ab-top-photo figcaption {
  padding-top: 14px;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--body);
}

/* Founders' letter: one readable column beside the original photograph. */
body.page-about .ab-letter .ab-note {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 4.5vw, 72px);
  align-items: start;
  margin: 0;
  background: none;
  box-shadow: none;
}
body.page-about .ab-letter figure {
  margin: 0;
}
body.page-about .ab-letter figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 6px;
}
body.page-about .ab-letter figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
body.page-about .ab-letter .txt {
  min-width: 0;
  padding: 0;
}
body.page-about .ab-letter h2 {
  font-size: clamp(2rem, 3.25vw, 3rem);
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 720px;
}
body.page-about .ab-letter .txt p {
  margin-bottom: 18px;
  max-width: 68ch;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--body);
}
body.page-about .ab-letter .sign {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding: 0;
  border: 0;
}
body.page-about .ab-letter .sign b {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}
body.page-about .ab-letter .sign span {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Centered build statement, grouped by space and the original mini artwork. */
body.page-about .ab-head {
  max-width: 1000px;
  margin: 0 auto 44px;
  text-align: center;
}
body.page-about .ab-build .ab-head {
  margin-bottom: 36px;
}
body.page-about .ab-build .ab-head h2 {
  font-weight: 600;
  line-height: 1.05;
}
body.page-about .ab3-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  max-width: 1080px;
  margin-inline: auto;
}
body.page-about .ab3-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}
body.page-about .ab-mini-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 160px;
  margin-bottom: 24px;
}
body.page-about .ab-mini-stage img {
  display: block;
  width: auto;
  height: 150px;
  max-width: 160px;
}
body.page-about .ab-mini-stage img.grad {
  height: 160px;
}
body.page-about .ab3-col p {
  margin-top: 12px;
  max-width: 440px;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--body);
}
body.page-about .ab3-sum {
  max-width: 1080px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

/* Training: readable reasons, original profession minis without a frame. */
body.page-about .ab-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
body.page-about .ab-train-split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
body.page-about .ab-train-copy h2 {
  margin-bottom: 24px;
}
body.page-about .ab-train-copy p {
  max-width: 56ch;
  margin-top: 18px;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--body);
}
body.page-about .ab-train-art {
  min-width: 0;
}
body.page-about .ab-work-minis {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding-block: 24px;
}
body.page-about .ab-work-minis img {
  width: 31%;
  max-height: 310px;
  object-fit: contain;
  object-position: center bottom;
}
body.page-about .ab-work-minis img:nth-child(2) {
  margin-bottom: 12px;
}

/* AI: text comes first on phones, with the authentic photograph intact. */
body.page-about .ab-ai-split {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: 'photo copy';
  align-items: start;
}
body.page-about .ab-ai-copy {
  grid-area: copy;
  min-width: 0;
}
body.page-about .ab-ai-copy h2 {
  margin-bottom: 24px;
}
body.page-about .ab-ai-copy p {
  max-width: 60ch;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--body);
}
body.page-about .ab-ai-copy p + p {
  margin-top: 24px;
}
body.page-about .ab-ai-pic {
  grid-area: photo;
  margin: 0;
}
body.page-about .ab-ai-pic img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/0.98;
  object-fit: cover;
  border-radius: 6px;
}
body.page-about .ab-ai-pic figcaption {
  margin-top: 12px;
  text-align: start;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Montréal: a connected local scene and one clear reading path. */
body.page-about .ab-mtl2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 720px;
  padding-block: 88px !important;
}
body.page-about .ab-mtl2-grid {
  display: grid;
  grid-template-columns: minmax(0, calc(450px / var(--ab-scale))) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
body.page-about .ab-mtl2-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}
body.page-about .ab-mtl2 h2 {
  margin-bottom: 32px;
  font-size: clamp(2.25rem, 4vw, 3.875rem);
  line-height: 1.06;
}
body.page-about .ab-mtl2 h3 {
  font-size: 1.5625rem;
  font-weight: 500;
}
body.page-about .ab-mtl2 .pt + .pt {
  margin-top: 28px;
}
body.page-about .ab-mtl2 .pt p {
  margin-top: 8px;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--body);
}
body.page-about .ab-mtl2 .meet {
  margin-top: 28px;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--body);
}
body.page-about .ab-mtl2 .meet a {
  display: inline-block;
  margin-inline-start: 4px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.2em;
}
body.page-about .ab-mtl2-art {
  --scene-start: max(38%, calc(var(--gutter) + 480px / var(--ab-scale)));
  position: absolute;
  inset-inline-start: var(--scene-start);
  inset-block-start: 50%;
  width: calc(100% - var(--scene-start) + 64px);
  margin: 0;
  min-width: 0;
  aspect-ratio: 3/2;
  isolation: isolate;
  translate: 0 -50%;
  z-index: 0;
}
body.page-about .ab-mtl-scenery {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%),
    linear-gradient(0deg, transparent 0%, #000 7%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%),
    linear-gradient(0deg, transparent 0%, #000 7%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
body.page-about .ab-mtl-mini {
  position: absolute;
  width: auto;
  max-width: none;
  object-fit: contain;
}
body.page-about .ab-mtl-engineer {
  left: 23%;
  bottom: 4.7%;
  height: 27.5%;
}
body.page-about .ab-mtl-coder {
  left: 45%;
  bottom: 4%;
  height: 29%;
}
body.page-about .ab-mtl-community {
  left: 74%;
  bottom: 5%;
  height: 27.5%;
}

/* Charitable giving: distinguish the charity from Capyo without extra chrome. */
body.page-about .ab-gic-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
  background: none;
  padding: 0;
  border: 0;
  box-shadow: none;
}
body.page-about .ab-gic-lead h2 {
  font-size: clamp(2.25rem, 3.9vw, 3.75rem);
  line-height: 1.06;
  margin-bottom: 24px;
}
body.page-about .ab-gic-body {
  max-width: 46ch;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--body);
}
body.page-about .ab-gic-why {
  display: grid;
  gap: 32px;
}
body.page-about .ab-gic-why > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
body.page-about .ab-gic-ic {
  display: block;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 72px;
}
body.page-about .ab-gic-ic img {
  display: block;
  width: 100%;
  height: auto;
}
body.page-about .ab-gic-why h3,
body.page-about .ab-gic-why p {
  grid-column: 2;
}
body.page-about .ab-gic-why p {
  margin-top: 8px;
  max-width: 54ch;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--body);
}

/* The people: original portraits, quiet roles, complete biographies. */
body.page-about .ab-people .ab-head {
  max-width: 920px;
}
body.page-about .ab-team-aside {
  max-width: 720px;
  margin: 18px auto 0;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--body);
}
body.page-about .ab-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
body.page-about .ab-team .fxf {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
body.page-about .ab-team .well {
  padding: 0;
  background: none;
  box-shadow: none;
}
body.page-about .ab-team img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 12px;
}
body.page-about .ab-team h3 {
  margin: 20px 0 0;
  font-size: 1.5rem;
  font-weight: 500;
}
body.page-about .ab-team p {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}
body.page-about .ab-team p.bio {
  margin-top: 14px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body);
}
body.page-about .ab-team p.bio a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
body.page-about .ab-team p.bio a svg {
  display: none;
}

/* Questions stay functional; whitespace replaces decorative rules. */

/* A useful closing invitation with a real email link, no extra button. */
body.page-about .closing {
  padding-block: 88px;
  background: var(--paper);
  text-align: center;
}
body.page-about .closing::before {
  display: none;
}
body.page-about .closing h2 {
  max-width: 800px;
  margin-inline: auto;
}
body.page-about .closing .lede {
  max-width: 600px;
  margin: 24px auto 0;
  font-size: 1.1875rem;
  line-height: 1.6;
}
body.page-about .ab-careers-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
body.page-about .site-footer {
  border: 0;
  padding-top: 72px;
  background: var(--page);
}

/* One content breakpoint. No fixed text heights or viewport clipping. */
@media (max-width: 1024px) {
  body.page-about main .wrap {
    width: calc(100% - 2 * var(--gutter));
  }
  body.page-about main .section {
    padding-block: 44px;
  }
  body.page-about main h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.1;
  }
  body.page-about main h3 {
    font-size: 1.5rem;
    line-height: 1.25;
  }
  body.page-about main .label {
    font-size: 0.75rem;
    margin-bottom: 14px;
  }
  body.page-about .ab-top-in {
    container-type: normal;
    width: min(560px, calc(100% - 2 * var(--gutter)));
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 32px 44px;
  }
  body.page-about .ab-top .label {
    font-size: 0.8125rem;
    margin-bottom: 16px;
  }
  body.page-about .ab-top h1 {
    font-size: clamp(3rem, 14vw, 5.5rem);
    margin-bottom: 24px;
  }
  body.page-about .ab-top .lede {
    font-size: 1.125rem;
    line-height: 1.55;
  }
  body.page-about .ab-top-photo {
    top: 0;
    max-width: 440px;
    width: 100%;
    justify-self: center;
  }
  body.page-about .ab-top-photo figcaption {
    font-size: 0.9375rem;
    padding-top: 12px;
  }
  body.page-about .ab-letter .ab-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  body.page-about .ab-letter figure {
    max-width: 400px;
    width: 100%;
    margin-inline: auto;
  }
  body.page-about .ab-letter figure img {
    aspect-ratio: 4/5;
  }
  body.page-about .ab-letter h2 {
    font-size: clamp(2rem, 5.5vw, 2.75rem);
    margin-bottom: 20px;
  }
  body.page-about .ab-letter .txt p {
    font-size: 1.0625rem;
    line-height: 1.65;
    margin-bottom: 16px;
  }
  body.page-about .ab-letter .sign b {
    font-size: 1.25rem;
  }
  body.page-about .ab-head {
    margin-bottom: 32px;
  }
  body.page-about .ab3-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  body.page-about .ab-mini-stage {
    height: 144px;
    margin-bottom: 20px;
  }
  body.page-about .ab-mini-stage img {
    height: 136px;
  }
  body.page-about .ab-mini-stage img.grad {
    height: 144px;
  }
  body.page-about .ab3-col p {
    font-size: 1.0625rem;
    line-height: 1.6;
    max-width: 48ch;
  }
  body.page-about .ab3-sum {
    font-size: 1.125rem;
    line-height: 1.5;
    margin-top: 32px;
  }
  body.page-about .ab-split,
  body.page-about .ab-train-split,
  body.page-about .ab-ai-split,
  body.page-about .ab-mtl2-grid,
  body.page-about .ab-gic-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  body.page-about .ab-train-copy p,
  body.page-about .ab-ai-copy p,
  body.page-about .ab-mtl2 .pt p,
  body.page-about .ab-gic-body,
  body.page-about .ab-gic-why p {
    font-size: 1.0625rem;
    line-height: 1.6;
  }
  body.page-about .ab-train-copy h2 br,
  body.page-about .ab-mtl2 h2 br,
  body.page-about .ab-gic-lead h2 br {
    display: none;
  }
  body.page-about .ab-train-copy h2,
  body.page-about .ab-ai-copy h2 {
    margin-bottom: 20px;
  }
  body.page-about .ab-work-minis {
    max-width: 560px;
    margin-inline: auto;
    padding-block: 8px;
    gap: 10px;
  }
  body.page-about .ab-work-minis img {
    max-height: 240px;
  }
  body.page-about .ab-ai-split {
    grid-template-areas: 'copy' 'photo';
  }
  body.page-about .ab-ai-pic {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
  body.page-about .ab-ai-pic figcaption {
    font-size: 0.875rem;
  }
  body.page-about .ab-mtl2 h2 {
    margin-bottom: 24px;
  }
  body.page-about .ab-mtl2 .pt + .pt {
    margin-top: 24px;
  }
  body.page-about .ab-mtl2 .meet {
    margin-top: 24px;
    font-size: 1.0625rem;
  }
  body.page-about .ab-mtl2 {
    min-height: 0;
    padding-block: 44px !important;
  }
  body.page-about .ab-mtl2-art {
    position: relative;
    inset: auto;
    width: calc(100% + 2 * var(--gutter));
    max-width: none;
    margin-inline: calc(-1 * var(--gutter));
    translate: none;
    z-index: 0;
  }
  body.page-about .ab-mtl-scenery {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 97%, transparent 100%),
      linear-gradient(0deg, transparent 0%, #000 12%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 97%, transparent 100%),
      linear-gradient(0deg, transparent 0%, #000 12%, #000 94%, transparent 100%);
  }
  body.page-about .ab-gic-lead h2 {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  body.page-about .ab-gic-why {
    gap: 28px;
  }
  body.page-about .ab-gic-why > div {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 16px;
  }
  body.page-about .ab-gic-ic {
    width: 52px;
  }
  body.page-about .ab-team {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    max-width: 440px;
    margin-inline: auto;
  }
  body.page-about .ab-team .fxf {
    width: 100%;
    max-width: none;
  }
  body.page-about .ab-team img {
    aspect-ratio: 4/4.5;
  }
  body.page-about .ab-team-aside {
    font-size: 1.0625rem;
  }
  body.page-about .ab-team h3 {
    font-size: 1.375rem;
    margin-top: 16px;
  }
  body.page-about .ab-team p.bio {
    font-size: 1.0625rem;
  }
  body.page-about .closing {
    padding-block: 64px;
  }
  body.page-about .closing .lede,
  body.page-about .ab-careers-link {
    font-size: 1.0625rem;
  }
  body.page-about .site-footer {
    padding-top: 48px;
  }
}

/* ---------- Motion: page choreography (page-about.js). Hidden states only with .js; reduced motion shows everything still. ---------- */
body.page-about {
  --am-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --am-spring: cubic-bezier(0.34, 1.45, 0.6, 1);
}

/* hero, on load: label, three masked lines, lede, then the photo opens and the caption settles */
.js body.page-about .ab-h1 > span {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.js body.page-about .ab-h1 > span > span {
  display: block;
  transform: translateY(108%);
  animation: am-line 1.1s var(--am-ease) forwards;
  animation-delay: calc(var(--i) * 120ms + 140ms);
}
.js body.page-about .ab-label-in {
  opacity: 0;
  animation: am-rise 0.8s var(--am-ease) 40ms forwards;
}
.js body.page-about .ab-lede-in {
  opacity: 0;
  transform: translateY(18px);
  animation: am-rise 1s var(--am-ease) 560ms forwards;
}
.js body.page-about .ab-photo-in .ab-top-frame {
  opacity: 0;
  transform: translateY(28px);
  clip-path: inset(9% 7% 9% 7%);
  animation: am-frame 1.3s var(--am-ease) 260ms forwards;
}
.js body.page-about .ab-photo-in .ab-top-frame img {
  transform: scale(1.08);
  animation: am-settle 1.8s var(--am-ease) 260ms forwards;
}
.js body.page-about .ab-photo-in figcaption {
  opacity: 0;
  animation: am-rise 0.8s var(--am-ease) 1100ms forwards;
}
body.page-about .ab-top-frame {
  overflow: hidden;
}
@keyframes am-line {
  to {
    transform: none;
  }
}
@keyframes am-rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes am-frame {
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(-40px);
  }
}
@keyframes am-settle {
  to {
    transform: none;
  }
}

/* scroll reveals */
.js body.page-about [data-am] {
  transition-delay: var(--d, 0ms);
}
.js body.page-about [data-am='up'] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--am-ease) var(--d, 0ms),
    transform 1s var(--am-ease) var(--d, 0ms);
}
.js body.page-about [data-am='fade'] {
  opacity: 0;
  transition: opacity 0.9s var(--am-ease) var(--d, 0ms);
}
.js body.page-about [data-am].am-in {
  opacity: 1;
  transform: none;
}

/* headings rise word by word out of a mask */
body.page-about .am-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
body.page-about .am-w > span {
  display: inline-block;
}
.js body.page-about [data-am='words'] .am-w > span {
  transform: translateY(105%);
  transition: transform 0.95s var(--am-ease);
  transition-delay: calc(var(--d, 0ms) + var(--w) * 38ms);
}
.js body.page-about [data-am='words'].am-in .am-w > span {
  transform: none;
}

/* photos open out of their frame */
.js body.page-about [data-am='clip'] img {
  clip-path: inset(12% 9% 12% 9% round 18px);
  opacity: 0;
  transition:
    clip-path 1.3s var(--am-ease) var(--d, 0ms),
    opacity 0.6s var(--am-ease) var(--d, 0ms);
}
.js body.page-about [data-am='clip'].am-in img {
  clip-path: inset(0% 0% 0% 0% round 0px);
  opacity: 1;
}
.js body.page-about [data-am='clip'] figcaption {
  opacity: 0;
  transition: opacity 0.8s var(--am-ease) calc(var(--d, 0ms) + 600ms);
}
.js body.page-about [data-am='clip'].am-in figcaption {
  opacity: 1;
}

/* capys arrive with a small spring, and hop when hovered */
.js body.page-about [data-am='pop'] {
  opacity: 0;
  transform: translateY(36px) scale(0.94);
  transform-origin: 50% 100%;
  transition:
    opacity 0.5s var(--am-ease) var(--d, 0ms),
    transform 0.9s var(--am-spring) var(--d, 0ms);
}
.js body.page-about [data-am='pop'].am-in {
  opacity: 1;
  transform: none;
}
body.page-about .am-hop {
  animation: am-hop 0.6s var(--am-ease);
}
@keyframes am-hop {
  0%,
  100% {
    translate: 0 0;
  }
  35% {
    translate: 0 -10px;
  }
  60% {
    translate: 0 0;
  }
  78% {
    translate: 0 -3px;
  }
}

/* Montreal street drifts with the scroll */
body.page-about .ab-mtl2-art[data-par] {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
body.page-about .ab-mtl2-art[data-par].am-in {
  transform: translate3d(0, var(--py, 0px), 0);
}

/* careers link: underline draws in */
body.page-about .ab-careers-link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px;
}
body.page-about .ab-careers-link.am-in {
  background-size: 100% 1.5px;
  transition:
    opacity 0.8s var(--am-ease) var(--d, 0ms),
    transform 1s var(--am-ease) var(--d, 0ms),
    background-size 0.9s var(--am-ease) calc(var(--d, 0ms) + 450ms);
}

@media (prefers-reduced-motion: reduce) {
  .js body.page-about .ab-h1 > span > span,
  .js body.page-about .ab-label-in,
  .js body.page-about .ab-lede-in,
  .js body.page-about .ab-photo-in .ab-top-frame,
  .js body.page-about .ab-photo-in .ab-top-frame img,
  .js body.page-about .ab-photo-in figcaption {
    animation: none;
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .js body.page-about [data-am],
  .js body.page-about [data-am] img,
  .js body.page-about [data-am] figcaption,
  .js body.page-about .am-w > span {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  body.page-about .ab-careers-link {
    background-size: 100% 1.5px;
  }
  body.page-about .am-hop {
    animation: none;
  }
}

/* ---------- 11-10 Max round (Tab01) ---------- */
/* letter and Global Impact sit a little lower */
body.page-about main .ab-letter {
  padding-top: 104px;
}
body.page-about main .ab-gic {
  padding-top: 104px;
}
/* build: the two columns pulled closer */
body.page-about .ab3-row {
  max-width: 860px;
  gap: 40px;
}
/* training: one-line title across the row, shorter copy pulled inward */
body.page-about .ab-train-head {
  grid-column: 1 / -1;
  margin-bottom: -24px;
}
body.page-about .ab-train-head h2 {
  white-space: nowrap;
  margin: 0;
}
body.page-about .ab-train-copy p {
  max-width: 46ch;
}
/* AI: photo and text closer in weight, caption centred */
@media (min-width: 1025px) {
  body.page-about .ab-ai-split {
    grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
    align-items: center;
  }
}
body.page-about .ab-ai-pic figcaption {
  text-align: center;
}
/* Montreal: copy nudged left and narrower so it clears the street */
@media (min-width: 1025px) {
  body.page-about .ab-mtl2-copy {
    margin-inline-start: -40px;
    max-width: calc(420px / var(--ab-scale));
  }
}
/* join: its own small section above the questions, two minis either side */
body.page-about main .ab-join {
  padding-block: 88px 24px;
}
body.page-about .ab-join-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 640px) minmax(0, 180px);
  justify-content: center;
  align-items: end;
  gap: 40px;
  padding: 64px 48px 0;
  border-radius: 24px;
  background: var(--paper);
  overflow: hidden;
}
body.page-about .ab-join-txt {
  padding-bottom: 64px;
  text-align: center;
}
body.page-about .ab-join-txt h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.06;
  text-wrap: balance;
}
body.page-about .ab-join-txt p {
  max-width: 520px;
  margin: 20px auto 0;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--body);
}
body.page-about .ab-join-txt .ab-careers-link {
  margin-top: 20px;
}
body.page-about .ab-join-capy {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -6px;
}
body.page-about .ab-join-r {
  transform-origin: 50% 100%;
}
@media (max-width: 1024px) {
  body.page-about main .ab-letter,
  body.page-about main .ab-gic {
    padding-top: 56px;
  }
  body.page-about .ab3-row {
    gap: 40px;
  }
  body.page-about .ab-train-head {
    margin-bottom: 0;
  }
  body.page-about .ab-train-head h2 {
    white-space: normal;
  }
  body.page-about .ab-train-copy p {
    max-width: none;
  }
  body.page-about main .ab-join {
    padding-block: 44px 8px;
  }
  body.page-about .ab-join-panel {
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    padding: 40px 24px 0;
  }
  body.page-about .ab-join-txt {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-bottom: 24px;
  }
  body.page-about .ab-join-capy {
    width: min(130px, 100%);
    justify-self: center;
  }
}
@media (min-width: 1025px) {
  body.page-about .ab-train-art .ab-work-minis {
    padding-block: 0;
  }
  body.page-about .ab-join-capy {
    width: auto;
    height: 170px;
    justify-self: center;
  }
  body.page-about .ab-join-r {
    height: 164px;
  }
}
@media (max-width: 1024px) {
  body.page-about .ab-join-capy {
    width: auto;
    height: 128px;
  }
  body.page-about .ab-join-r {
    height: 122px;
  }
}
/* training title: two lines, room under it, text starts close beneath */
body.page-about .ab-train-split {
  align-items: center;
}
body.page-about .ab-train-copy h2 {
  margin: 0 0 28px;
  line-height: 1.04;
}
body.page-about .ab-train-copy h2 + p {
  margin-top: 0;
}
body.page-about .ab-train-copy p {
  max-width: 50ch;
}
/* join capys peek up from behind the card's bottom edge (panel clips them) */
@media (min-width: 1025px) {
  body.page-about .ab-join-capy {
    margin-bottom: -20px;
    height: 180px;
  }
  body.page-about .ab-join-r {
    height: 174px;
  }
}
@media (max-width: 1024px) {
  body.page-about .ab-join-capy {
    margin-bottom: -14px;
  }
}
/* AI mirrors the training section's stretch: same columns, gap and text measure */
@media (min-width: 1025px) {
  body.page-about .ab-ai-split {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 64px;
  }
  body.page-about .ab-ai-copy p {
    max-width: 50ch;
  }
  body.page-about .ab-ai-pic {
    max-width: 500px;
  }
}
/* AI: text sits right beside the photo and centres on the photo itself (caption hangs below) */
@media (min-width: 1025px) {
  body.page-about .ab-ai-split {
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
  }
  body.page-about .ab-ai-pic {
    position: relative;
    max-width: none;
  }
  body.page-about .ab-ai-pic figcaption {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
  }
  body.page-about main .ab-ai {
    padding-bottom: 96px;
  }
}
@media (min-width: 1025px) {
  body.page-about main .ab-join {
    padding-top: 40px;
  }
}
/* header: EN smaller, sits left of Schools; no mega menu on this page */
body.page-about .site-header .mega {
  display: none !important;
}
body.page-about .site-header .nav .lang-sw {
  margin-right: 6px;
}
body.page-about .site-header .lang-btn {
  height: auto;
  padding: 8px 10px;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.86;
}
body.page-about .site-header .lang-btn svg {
  width: 14px;
  height: 14px;
}
body.page-about .site-header .lang-btn .chev {
  width: 8px;
  height: 8px;
}
body.page-about .site-header .nav-cta {
  margin-left: 8px;
}

/* ---------- 11-10 responsive pass (Tab01): tablet, mid-desktop, large and ultrawide ---------- */
/* Montréal: the copy only nudges left when there is margin to give, so it never meets the screen edge */
@media (min-width: 1025px) {
  body.page-about .ab-mtl2-copy {
    margin-inline-start: calc(-1 * clamp(0px, (100vw - 1290px) / 2, 40px));
  }
  /* the scene starts after the copy column and stops growing past 1040px; it fades out on both sides */
  body.page-about .ab-mtl2-art {
    --scene-start: max(
      38%,
      calc(var(--gutter) + 480px / var(--ab-scale)),
      calc((100% - 1263px) / 2 + 470px)
    );
    width: min(calc(100% - var(--scene-start) + 64px), 1040px);
  }
  body.page-about .ab-mtl-scenery {
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 18%,
        #000 90%,
        transparent 100%
      ),
      linear-gradient(0deg, transparent 0%, #000 7%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 90%, transparent 100%),
      linear-gradient(0deg, transparent 0%, #000 7%, #000 95%, transparent 100%);
  }
}

/* Tablets and small laptops (720 to 1024): keep the desktop pairings instead of one long column */
@media (min-width: 720px) and (max-width: 1024px) {
  body.page-about .ab-top-in {
    container-type: inline-size;
    width: calc(100% - 2 * var(--gutter));
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 36px;
    align-items: center;
  }
  body.page-about .ab-top h1 {
    font-size: min(96px, 10cqw);
  }
  body.page-about .ab-top .lede {
    font-size: 1.0625rem;
  }
  body.page-about .ab-top-photo {
    max-width: none;
  }
  body.page-about .ab-letter .ab-note {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 36px;
  }
  body.page-about .ab-letter figure {
    max-width: none;
  }
  body.page-about .ab-letter figure img {
    aspect-ratio: 3/4;
  }
  body.page-about .ab3-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }
  body.page-about .ab-ai-split {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-areas: 'photo copy';
    gap: 36px;
    align-items: center;
  }
  body.page-about .ab-ai-pic {
    max-width: none;
  }
  body.page-about .ab-train-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 32px;
  }
  body.page-about .ab-work-minis {
    padding-block: 0;
  }
  body.page-about .ab-gic-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
  body.page-about .ab-gic-lead h2 br {
    display: none;
  }
  body.page-about .ab-team {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: none;
  }
  body.page-about .ab-team img {
    aspect-ratio: 4/5;
  }
  body.page-about .ab-team h3 {
    font-size: 1.25rem;
  }
  body.page-about .ab-team p.bio {
    font-size: 0.9375rem;
  }
  body.page-about .ab-join-panel {
    grid-template-columns: minmax(0, 140px) minmax(0, 1fr) minmax(0, 140px);
    gap: 16px;
    padding: 48px 24px 0;
    align-items: end;
  }
  body.page-about .ab-join-txt {
    grid-column: 2;
    grid-row: 1;
    padding-bottom: 48px;
  }
  body.page-about .ab-join-l {
    grid-column: 1;
    grid-row: 1;
  }
  body.page-about .ab-join-r {
    grid-column: 3;
    grid-row: 1;
  }
}

/* Large and ultrawide screens (rules: plan/RESPONSIVE-RULES.md). Content stops at the 1450 composition,
   like Linear/Vercel/Apple: nothing scales up, extra width is calm background. The header lines up with it. */
@media (min-width: 1760px) {
  body.page-about .site-header .bar {
    max-width: calc(1263px + 2 * var(--gutter));
  }
  body.page-about .site-footer .wrap {
    max-width: none;
    width: min(1263px, calc(100% - 2 * var(--gutter)));
    padding-inline: 0;
  }
}
/* Hero is height-aware on desktop: the headline and photo shrink on short windows so the whole hero fits.
   At 1450x758 both terms resolve to the approved sizes. */
@media (min-width: 1025px) {
  body.page-about .ab-top h1 {
    font-size: min(110px, 9.2cqw, 14.5svh);
  }
  body.page-about .ab-top-photo {
    width: 100%;
    max-width: calc(74svh * 0.9 + 12px);
    justify-self: center;
  }
}
@media (min-width: 1025px) and (max-height: 700px) {
  body.page-about .ab-top-in {
    padding-block: 16px 40px;
  }
  body.page-about .ab-top .label {
    margin-bottom: 12px;
  }
  body.page-about .ab-top h1 {
    margin-bottom: 20px;
  }
  body.page-about .ab-top .lede {
    font-size: 1.125rem;
  }
}
@media (min-width: 720px) and (max-width: 1024px) {
  body.page-about .ab-gic-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  body.page-about .ab-gic-lead h2 {
    max-width: 16ch;
  }
  body.page-about .ab-gic-body {
    max-width: 56ch;
  }
  body.page-about .ab-gic-why {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }
}
/* tablet: the Montréal scene stops at 820px so it doesn't swallow the screen */
@media (min-width: 720px) and (max-width: 1024px) {
  body.page-about .ab-mtl2-art {
    width: min(calc(100% + 2 * var(--gutter)), 820px);
    margin-inline: max(calc(-1 * var(--gutter)), calc((100% - 820px) / 2));
  }
}

/* FAQ: same look as every other page (Max 11-10) */
body.page-about section[aria-labelledby='faq-h'] h2:not(#_) {
  font-size: 50px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}
body.page-about section[aria-labelledby='faq-h'] h2 em:not(#_) {
  color: #c44e00;
}
body.page-about .faq details:not(#_) {
  background: #f7efe3;
}
body.page-about section[aria-labelledby='faq-h'] .label:not(#_) {
  color: #9f3b00;
}
@media (max-width: 1024px) {
  body.page-about section[aria-labelledby='faq-h'] h2:not(#_) {
    font-size: clamp(32px, 8.4vw, 40px);
  }
}
body.page-about section[aria-labelledby='faq-h'] .wrap.narrow:not(#_) {
  max-width: 807px;
  width: min(807px, calc(100% - 2 * var(--gutter)));
  padding-inline: 0;
}
