/*
*  About Page Styles
*
*  Markup: page-about.php
*  JS:     js/about/about_reveal.js, about_story.js, about_scroll_fx.js, about_stats.js, about_beliefs.js + js/motion.js
*/

/* Scoped reset: these components were built against a global margin/padding reset */
.about-page,
.about-page *,
.about-page *::before,
.about-page *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.about-page {
  --about-radius: 8px;
  --about-cut: 60px;
  --about-cut-shape: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--about-cut)),
    calc(100% - var(--about-cut)) 100%,
    0 100%
  );

  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: var(--ink);
  background: var(--page);
}

:where(.about-page) h1,
:where(.about-page) h2,
:where(.about-page) h3,
:where(.about-page) h4,
:where(.about-page) h5,
:where(.about-page) h6 {
  clear: none;
}

:where(.about-page) ul,
:where(.about-page) ol {
  list-style: none;
}

/* :where() keeps this at zero added specificity so a component class like .btn-ghost always wins */
:where(.about-page) a {
  color: inherit;
  text-decoration: none;
}

:where(.about-page) img {
  display: block;
  max-width: 100%;
}

:where(.about-page) video,
:where(.about-page) canvas {
  display: block;
}

/* Shared scroll reveal, driven by js/about/about_reveal.js */
.about-page [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.about-page [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .about-page [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ——— Hero (pinned deck) ——— */
.about-page .about-hero {
  position: relative;
  background: var(--page);
}

/* The pin length is the whole choreography: reveal, exit, deal, expand. Beat fractions live in js/about/about_story.js update(). */
.about-page .about-hero__pin {
  position: relative;
  height: 444svh;
}

.about-page .about-hero__sticky {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100svh;
  overflow: hidden;
  perspective: 1200px;
}

.about-page .about-hero__inner {
  --hero-gap: 56px;

  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hero-gap);
  width: min(1298px, calc(100% - 120px));
  text-align: center;
  will-change: opacity, transform, filter;
}

/* Same font values as .story-intro__title in home.css */
.about-page .about-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, 5.75rem);
  line-height: 1.087;
  color: var(--ink);
}

.about-page .about-hero__part {
  display: inline;
}

.about-page .about-hero__part--accent {
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
}

/* One span per word — js/about/about_story.js adds .is-in in reading order. */
.about-page .about-hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.34em);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-page .about-hero__word.is-in {
  opacity: 1;
  transform: none;
}

.about-page .about-hero__scroll,
.about-page .about-hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink);
}

.about-page .about-hero__scroll {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.about-page .about-hero__scroll.is-in {
  opacity: 0.6;
  transform: none;
}

/* Pulls the 26px label box to 20px above the headline whatever the column gap is. */
.about-page .about-hero__eyebrow {
  margin: 0 0 calc(20px - var(--hero-gap));
  line-height: 26px;
  opacity: 0.6;
}

/* ——— Hero deck ——— */
.about-page .about-deck__stage {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(340px, 62vw);
  aspect-ratio: 334 / 166;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-page .about-deck__stage.is-active {
  opacity: 1;
}

/* Once the last card is blowing up it must clear the headline column. */
.about-page .about-deck__stage.is-expanding {
  z-index: 5;
}

/* The last card is laid out at the size it reaches when it covers the viewport; js/about/about_story.js scales it
   down by --deck-base (stage width / card width). Rasterising at 340px and scaling up is what pixelated the photos. */
.about-page .about-deck__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(102vw, calc(102svh * 334 / 166));
  aspect-ratio: 334 / 166;
  overflow: hidden;
  border-radius: var(--about-radius);
  background: var(--light-gray);
  box-shadow: 0 calc(24px / var(--deck-base, 1)) calc(60px / var(--deck-base, 1)) rgba(0, 0, 0, 0.22);
  opacity: 0;
  will-change: transform, opacity;
}

/* The rest never grow past the stage, so they are laid out at stage size: shrinking a full-screen layer ~5x blurred them. */
.about-page .about-deck__card:not(:last-child) {
  width: 100%;
}

.about-page .about-deck__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-page .about-deck__hint {
  position: absolute;
  left: 50%;
  bottom: 48px;
  z-index: 4;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.about-page .about-deck__hint.is-in {
  opacity: 0.55;
}

/* ——— Mission ——— */
.about-page .about-mission {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: min(66px, 3.93vw);
  padding: 212px 60px 117px;
  text-align: center;
  background: var(--page);
}

/* Same font values as .story-intro__title in home.css */
.about-page .about-mission__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, 5.75rem);
  line-height: 0.87;
  color: var(--ink);
}

/* em-sized to match the cap height of the line under it at every breakpoint */
.about-page .about-mission__logo {
  display: block;
  width: auto;
  height: 0.7em;
  margin: 0 auto 0.16em;
}

.about-page .about-mission__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--orange);
}

.about-page .about-mission__copy {
  max-width: 694px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.3;
  color: var(--ink);
}

.about-page .about-mission__copy p + p {
  margin-top: 1em;
}

/* ——— Passion ——— */
/* Fractions, not fixed widths: the design's 453 / 355 / 613 columns overflow anything under ~1500px. */
.about-page .about-passion {
  display: grid;
  grid-template-columns: minmax(0, 453fr) minmax(0, 355fr) minmax(0, 613fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 76px);
  padding: 60px 56px 180px;
  background: var(--page);
}

.about-page .about-passion__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 2.86vw, 48px);
  line-height: 1.17;
  color: var(--ink);
}

.about-page .about-passion__photo {
  justify-self: center;
  width: 100%;
  aspect-ratio: 355 / 344;
}

/* js/about/about_scroll_fx.js walks --tilt either side of the designed 4.2deg */
.about-page .about-passion__frame {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--about-radius);
  transform: rotate(var(--tilt, 4.2deg));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.about-page .about-passion__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-page .about-passion__copy {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.91vw, 32px);
  line-height: 1.19;
  color: var(--ink);
}

.about-page .about-passion__copy p + p {
  margin-top: 1em;
}

/* Bottom padding clears the tilted photo and its shadow; the team's top padding drops to keep the 164px gap */
.about-page .about-passion--team {
  padding: 164px 56px 80px;
}

@media (min-width: 1101px) {
  .about-page .about-passion--team + .about-team {
    padding-top: 84px;
  }
}

/* ——— Stats ——— */
.about-page .about-stats {
  background: var(--orange);
}

.about-page .about-stats__grid {
  display: grid;
  grid-template-columns: 421fr 421fr 417fr 421fr;
}

/* --stat-x is each tile's text inset as drawn in Figma (it differs per tile). */
.about-page .about-stats__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 355px;
  padding: 0 0 46px var(--stat-x);
  color: var(--cream);
}

/* Figma's 71px corner marks; tile 3 is already orange, so it has none. */
.about-page .about-stats__card:not(:nth-child(3))::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(71px, 4.226vw);
  aspect-ratio: 1;
  background: var(--orange);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

/* Four tints, lightest to darkest, left to right. */
.about-page .about-stats__card:nth-child(1) {
  --stat-x: 2.8vw;

  background: #ffb188;
}

.about-page .about-stats__card:nth-child(2) {
  --stat-x: 2.8vw;

  background: var(--orange-soft);
}

.about-page .about-stats__card:nth-child(3) {
  --stat-x: 3.87vw;

  background: var(--orange);
}

.about-page .about-stats__card:nth-child(4) {
  --stat-x: 3.39vw;

  background: var(--orange-subtle);
}

/* tabular-nums stops the figure changing width while it counts */
.about-page .about-stats__num {
  margin: 0 0 0.033em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5.48vw, 92px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.about-page .about-stats__label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 1.91vw, 32px);
  line-height: 1.25;
}

/* ——— Beliefs (pinned) ——— */
/* The stage is the 1680x838 Figma frame (375x812 on mobile) scaled by --u, so every offset below is a Figma pixel times --u. */
.about-page .about-beliefs {
  position: relative;
  background: var(--light-gray);
  color: var(--ink);
}

/* The pin length is the whole choreography; beat fractions live in js/about/about_beliefs.js update(). */
.about-page .about-beliefs__pin {
  position: relative;
  height: 525svh;
}

.about-page .about-beliefs__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--light-gray);
}

.about-page .about-beliefs__stage {
  --u: min(calc(100vw / 1680), calc(100svh / 838));

  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--u) * 1680);
  height: calc(var(--u) * 838);
  transform: translate(-50%, -50%);
}

.about-page .about-beliefs__intro {
  position: absolute;
  inset: 0;
  will-change: opacity, transform;
}

.about-page .about-beliefs__title {
  position: absolute;
  left: 0;
  top: calc(var(--u) * 229);
  width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(var(--u) * 92);
  line-height: 0.978;
  text-align: center;
  color: var(--ink);
}

.about-page .about-beliefs__sub {
  position: absolute;
  left: calc(var(--u) * 514);
  top: calc(var(--u) * 343);
  width: calc(var(--u) * 652);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: max(14px, calc(var(--u) * 20));
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
}

.about-page .about-beliefs__sub p + p {
  margin-top: 1em;
}

/* Points are written by the script; overflow stays visible so the wipe can outgrow the frame. */
.about-page .about-beliefs__shapes,
.about-page .about-beliefs__wipe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.about-page .about-beliefs__shapes polygon {
  fill: var(--orange);
}

.about-page .about-beliefs__wipe polygon {
  fill: var(--ink);
}

.about-page .about-beliefs__slides {
  position: absolute;
  inset: 0;
}

.about-page .about-beliefs__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.about-page .about-beliefs__name {
  position: absolute;
  left: calc(var(--u) * 93);
  top: calc(var(--u) * 211);
  width: calc(var(--u) * 800);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(var(--u) * 92);
  line-height: 1.196;
  color: var(--ink);
}

.about-page .about-beliefs__copy {
  position: absolute;
  left: calc(var(--u) * 1156);
  top: calc(var(--u) * 644);
  width: calc(var(--u) * 490);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: max(14px, calc(var(--u) * 20));
  line-height: 1.4;
  color: var(--ink);
}

.about-page .about-beliefs__copy p + p {
  margin-top: 1em;
}

/* Figma sets each belief's text box to its own width, which is what makes the lines break where they do. */
.about-page .about-beliefs__slide:nth-child(1) .about-beliefs__name {
  width: calc(var(--u) * 599);
}

.about-page .about-beliefs__slide:nth-child(2) .about-beliefs__name {
  width: calc(var(--u) * 728);
}

.about-page .about-beliefs__slide:nth-child(3) .about-beliefs__name {
  width: calc(var(--u) * 766);
}

.about-page .about-beliefs__slide:nth-child(1) .about-beliefs__copy {
  width: calc(var(--u) * 486);
}

.about-page .about-beliefs__slide:nth-child(2) .about-beliefs__copy {
  width: calc(var(--u) * 452);
}

.about-page .about-beliefs__slide:nth-child(3) .about-beliefs__copy {
  width: calc(var(--u) * 446);
}

/* ——— Team ——— */
.about-page .about-team {
  position: relative;
  overflow: hidden;
  padding: 164px 54px 60px;
  background: var(--page);
}

.about-page .about-team__wedge {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Both triangles take the same --drift (js/about/about_scroll_fx.js) so the ribbon never opens a gap where they meet. */
.about-page .about-team__wedge::before,
.about-page .about-team__wedge::after {
  content: "";
  position: absolute;
  width: 61.7vw;
  aspect-ratio: 1;
  background: #e0e0e5;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transform: translate3d(0, var(--drift, 0px), 0);
}

.about-page .about-team__wedge::before {
  left: 0.3vw;
  top: -22.9vw;
}

.about-page .about-team__wedge::after {
  left: 38.15vw;
  top: 38.8vw;
}

.about-page .about-team__title {
  position: relative;
  z-index: 1;
  margin: 0 0 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 2.86vw, 48px);
  line-height: 1.17;
  color: var(--ink);
}

.about-page .about-team__group {
  position: relative;
  z-index: 1;
  margin-bottom: 59px;
}

.about-page .about-team__group:last-child {
  margin-bottom: 0;
}

.about-page .about-team__group-label {
  margin: 0 0 23px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--medium-gray);
}

/* Figma's four 360px columns and 39px gutters end 69px short of the right edge, so the grid is a fixed share of the viewport rather than the full width. */
.about-page .about-team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(100vw * 39 / 1680);
  width: min(100%, calc(100vw * 1557 / 1680));
}

/* Tablet and mobile keep the shared two-column grid */
@media (min-width: 1101px) {
  .about-page .about-team__group--leadership .about-team__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about-page .about-team__card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Fixed ratio + cover image keeps every card the same height whatever was uploaded; grey shows when there's no photo. */
.about-page .about-team__photo {
  display: block;
  width: 100%;
  aspect-ratio: 360 / 377;
  margin-bottom: 17px;
  overflow: hidden;
  border-radius: var(--about-radius);
  background: var(--light-gray);
}

/* Figma alternates the cut corner like a checkerboard: even cards in one group, odd in the next. */
.about-page .about-team__card:nth-child(even) .about-team__photo,
.about-page .about-team__group--flip .about-team__card:nth-child(odd) .about-team__photo {
  clip-path: var(--about-cut-shape);
}

.about-page .about-team__group--flip .about-team__card:nth-child(even) .about-team__photo {
  clip-path: none;
}

.about-page .about-team__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transform: scale(1);
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease;
}

.about-page .about-team__card:hover .about-team__photo img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.about-page .about-team__name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.3;
  color: var(--ink);
}

.about-page .about-team__role {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
}

.about-page .about-team__years {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: 0.28px;
  color: var(--medium-gray);
  opacity: 0.7;
}

.about-page .about-team__linkedin {
  align-self: center;
  display: inline-flex;
  margin-top: 12px;
  color: var(--ink);
  transition: color 0.2s ease;
}

.about-page .about-team__linkedin:hover,
.about-page .about-team__linkedin:focus-visible {
  color: var(--orange);
}

/* ——— Jobs ——— */
.about-page .about-jobs {
  padding: 192px 0 0;
  background: var(--page);
}

/* Heading on the left margin, blurb beside it, both sharing the last baseline. */
.about-page .about-jobs__head {
  display: grid;
  grid-template-columns: minmax(0, 399px) minmax(0, 393px) minmax(0, 1fr);
  align-items: end;
  padding: 0 56px 38px;
}

.about-page .about-jobs__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 4.29vw, 72px);
  line-height: 1.11;
  color: var(--ink);
}

.about-page .about-jobs__sub {
  margin: 0 0 11px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.5;
  color: var(--ink);
}

.about-page .about-jobs__sub p + p {
  margin-top: 1em;
}

.about-page .about-jobs__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-page .about-jobs__item {
  border-bottom: 1px solid rgba(41, 43, 40, 0.24);
}

/* The orange band already draws the row's edge. */
.about-page .about-jobs__item:has(.about-jobs__link:hover),
.about-page .about-jobs__item:has(.about-jobs__link:focus-visible) {
  border-bottom-color: transparent;
}

.about-page .about-jobs__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  padding: 20px 68px 20px 56px;
  overflow: hidden;
  background: transparent;
  transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-page .about-jobs__link:hover,
.about-page .about-jobs__link:focus-visible {
  background: var(--orange);
}

.about-page .about-jobs__role,
.about-page .about-jobs__empty {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 1.91vw, 32px);
  line-height: 1.2;
  color: var(--ink);
}

.about-page .about-jobs__role {
  transition: color 0.3s ease;
}

.about-page .about-jobs__empty {
  padding: 0 68px 0 56px;
}

.about-page .about-jobs__empty p + p {
  margin-top: 1em;
}

.about-page .about-jobs__aside {
  display: flex;
  align-items: center;
}

.about-page .about-jobs__more {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--cream);
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* Solid triangle fades in over the outline rather than swapping, which would flash on a cold cache. */
.about-page .about-jobs__mark {
  position: relative;
  flex: none;
  width: 71px;
  height: 71px;
  background: url("../images/about/job_triangle_outline.svg") no-repeat center / 100% 100%;
}

.about-page .about-jobs__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/about/job_triangle_solid.svg") no-repeat center / 100% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-page .about-jobs__link:hover .about-jobs__role,
.about-page .about-jobs__link:focus-visible .about-jobs__role {
  color: var(--cream);
}

.about-page .about-jobs__link:hover .about-jobs__more,
.about-page .about-jobs__link:focus-visible .about-jobs__more {
  opacity: 1;
  transform: none;
}

.about-page .about-jobs__link:hover .about-jobs__mark::after,
.about-page .about-jobs__link:focus-visible .about-jobs__mark::after {
  opacity: 1;
}

/* White button with an orange corner, from the Figma mobile frame; the 768px block below makes it full width. */
.about-page .about-jobs__all {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(286px, calc(100% - 112px));
  min-height: 55px;
  margin: 24px 56px 0;
  border-radius: 8px 8px 0 8px;
  overflow: hidden;
  background: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--orange);
  transition:
    background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease;
}

.about-page .about-jobs__all::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36.5px;
  height: 22px;
  background: var(--orange);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.about-page .about-jobs__all:hover,
.about-page .about-jobs__all:focus-visible {
  background: var(--orange);
  color: var(--white);
}

/* Above 768px it sits in the head, on the right (Figma 256 x 55, bottom-aligned with the heading); at 768px and below it drops under the list. */
.about-page .about-jobs__all--head {
  display: none;
}

@media (min-width: 769px) {
  .about-page .about-jobs__all--head {
    display: flex;
    justify-self: end;
    width: 256px;
    margin: 0 12px 10px 0;
  }

  .about-page .about-jobs__all--foot {
    display: none;
  }
}

/* The head is a single stacked column here, so the button gets a column of its own beside the heading and blurb. */
@media (min-width: 769px) and (max-width: 1100px) {
  .about-page .about-jobs__head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .about-page .about-jobs__all--head {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    margin: 0;
  }
}

/* ——— Gallery ——— */
.about-page .about-gallery {
  padding: 230px 0 130px;
  overflow: hidden;
  background: var(--page);
}

/* Starts left of the frame so the first tile is cropped; --shift (js/about/about_scroll_fx.js) only runs positive from here. */
.about-page .about-gallery__row {
  display: flex;
  gap: 20px;
  width: max-content;
  height: 17.857vw;
  margin-left: -26.19vw;
  transform: translate3d(var(--shift, 0vw), 0, 0);
  will-change: transform;
}

.about-page .about-gallery__item {
  flex: none;
  width: 29.762vw;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--about-radius);
  background: var(--light-gray);
}

/* The wide tiles carry the cut corner. */
.about-page .about-gallery__item:nth-child(odd) {
  clip-path: var(--about-cut-shape);
}

.about-page .about-gallery__item:nth-child(even) {
  width: 17.857vw;
}

.about-page .about-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— CTA ——— */
.about-page .about-cta {
  padding: 0 56px 112px;
  background: var(--page);
}

/* Resting bloom; js/about/about_cta_fx.js eases these toward the pointer and its REST values must match. */
.about-page .about-cta__panel {
  --cta-glow-x: 82%;
  --cta-glow-y: 78%;
  --cta-glow-strength: 0.42;
  --cta-glow-size: 60%;

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 76px 60px 74px;
  border-radius: var(--about-radius);
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(
        ellipse var(--cta-glow-size) 90% at var(--cta-glow-x) var(--cta-glow-y),
        rgba(229, 83, 6, var(--cta-glow-strength)),
        transparent 62%
      ),
    radial-gradient(ellipse 50% 70% at 12% 20%, rgba(229, 83, 6, 0.16), transparent 60%),
    #0d0e01;
}

.about-page .about-cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 2.86vw, 48px);
  line-height: 1.17;
}

.about-page .about-cta__copy {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.3;
  color: var(--cream);
}

.about-page .about-cta__copy p {
  margin: 0;
}

.about-page .about-cta__btn {
  margin-top: 14px;
  color: var(--white);
}

/* ——— Breakpoints ——— */
@media (max-width: 1100px) {
  .about-page .about-hero__inner {
    --hero-gap: 40px;

    width: calc(100% - 56px);
  }

  .about-page .about-hero__pin {
    height: 370svh;
  }

  .about-page .about-mission {
    padding: 140px 28px 120px;
  }

  .about-page .about-passion {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 40px;
    padding: 40px 28px 120px;
    text-align: center;
  }

  .about-page .about-passion__photo {
    width: 33.333%;
    order: -1;
  }

  .about-page .about-passion--team {
    padding: 132px 28px 0;
  }

  .about-page .about-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-page .about-stats__card {
    min-height: 240px;
    padding-bottom: 32px;
  }

  .about-page .about-beliefs__pin {
    height: 470svh;
  }

  .about-page .about-team {
    padding: 132px 28px 40px;
  }

  .about-page .about-team__title {
    margin-bottom: 64px;
  }

  .about-page .about-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
  }

  /* Two columns: the cut always lands on the right-hand card. */
  .about-page .about-team__group--flip .about-team__card:nth-child(odd) .about-team__photo {
    clip-path: none;
  }

  .about-page .about-team__group--flip .about-team__card:nth-child(even) .about-team__photo {
    clip-path: var(--about-cut-shape);
  }

  .about-page .about-team__wedge::before,
  .about-page .about-team__wedge::after {
    width: 78vw;
  }

  .about-page .about-team__wedge::before {
    top: -29vw;
  }

  .about-page .about-team__wedge::after {
    left: 22vw;
    top: 49vw;
  }

  .about-page .about-jobs {
    padding-top: 92px;
  }

  .about-page .about-jobs__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 0 28px 32px;
  }

  .about-page .about-jobs__sub {
    margin-bottom: 0;
  }

  .about-page .about-jobs__link {
    min-height: 96px;
    padding: 20px 28px;
  }

  .about-page .about-jobs__empty {
    padding: 0 28px;
  }

  .about-page .about-jobs__mark {
    width: 52px;
    height: 52px;
  }

  .about-page .about-gallery {
    padding: 112px 0 100px;
  }

  .about-page .about-gallery__row {
    gap: 14px;
    height: 26vw;
    margin-left: -20vw;
  }

  .about-page .about-gallery__item {
    width: 43vw;
  }

  .about-page .about-gallery__item:nth-child(even) {
    width: 26vw;
  }

  .about-page .about-cta {
    padding: 0 28px 112px;
  }

  .about-page .about-cta__panel {
    padding: 72px 32px 76px;
  }
}

@media (max-width: 768px) {
  .about-page {
    --about-cut: 26px;
  }

  .about-page .about-hero__pin {
    height: 310svh;
  }

  .about-page .about-hero__inner {
    --hero-gap: 32px;

    width: calc(100% - 36px);
  }

  .about-page .about-hero__title {
    font-size: clamp(32px, 8.53vw, 42px);
    line-height: 1.16;
  }

  .about-page .about-hero__part--accent {
    font-weight: 300;
  }

  .about-page .about-deck__hint {
    bottom: 32px;
  }

  .about-page .about-mission {
    gap: 29px;
    padding: 82px 24px 40px;
  }

  .about-page .about-mission__title {
    font-size: clamp(40px, 12.8vw, 48px);
    line-height: 1.167;
  }

  .about-page .about-mission__copy {
    line-height: 1.5;
  }

  .about-page .about-passion {
    gap: 51px;
    padding: 20px 24px 125px;
  }

  .about-page .about-passion__title {
    font-size: 32px;
    line-height: 1.19;
  }

  .about-page .about-passion--team {
    padding: 100px 24px 0;
  }

  .about-page .about-passion__copy {
    margin-top: -7px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
  }

  /* Figma stacks title, photo, copy at this size. */
  .about-page .about-passion__photo {
    order: 0;
    width: calc(100vw * 175 / 375);
  }

  .about-page .about-stats__card {
    min-height: 159px;
    padding-bottom: 12px;
  }

  /* The mobile frame has no corner marks. */
  .about-page .about-stats__card::after {
    display: none;
  }

  .about-page .about-stats__card:nth-child(1) {
    --stat-x: 5.6vw;
  }

  .about-page .about-stats__card:nth-child(2) {
    --stat-x: 5.33vw;
  }

  .about-page .about-stats__card:nth-child(3) {
    --stat-x: 7.73vw;
  }

  .about-page .about-stats__card:nth-child(4) {
    --stat-x: 6.4vw;
  }

  .about-page .about-stats__num {
    margin-bottom: -0.108em;
    font-size: clamp(36px, 12.8vw, 48px);
    line-height: 1.167;
  }

  .about-page .about-stats__label {
    font-size: clamp(16px, 5.33vw, 20px);
    line-height: 1.3;
  }

  .about-page .about-beliefs__pin {
    height: 420svh;
  }

  .about-page .about-beliefs__stage {
    --u: min(calc(100vw / 375), calc(100svh / 812));

    width: calc(var(--u) * 375);
    height: calc(var(--u) * 812);
  }

  .about-page .about-beliefs__title {
    top: calc(var(--u) * 188);
    font-size: calc(var(--u) * 32);
    line-height: 1.406;
  }

  .about-page .about-beliefs__sub {
    left: calc(var(--u) * 85);
    top: calc(var(--u) * 239);
    width: calc(var(--u) * 204);
    font-size: max(13px, calc(var(--u) * 16));
    line-height: 1.5;
  }

  /* 40 units above Figma so three-line titles clear the triangle's diagonal */
  .about-page .about-beliefs__name {
    left: calc(var(--u) * 26);
    top: calc(var(--u) * 170);
    width: calc(var(--u) * 232);
    font-size: calc(var(--u) * 48);
    line-height: 1.167;
  }

  .about-page .about-beliefs__copy {
    left: calc(var(--u) * 29);
    top: calc(var(--u) * 550);
    width: calc(var(--u) * 320);
    font-size: max(13px, calc(var(--u) * 16));
    line-height: 1.5;
  }

  /* Figma places each mobile title and copy a few pixels differently. */
  .about-page .about-beliefs__slide:nth-child(1) .about-beliefs__name {
    left: calc(var(--u) * 24);
    top: calc(var(--u) * 182);
    width: calc(var(--u) * 232);
  }

  .about-page .about-beliefs__slide:nth-child(1) .about-beliefs__copy {
    width: calc(var(--u) * 320);
  }

  .about-page .about-beliefs__slide:nth-child(2) .about-beliefs__copy {
    left: calc(var(--u) * 26);
    width: calc(var(--u) * 324);
  }

  .about-page .about-beliefs__slide:nth-child(2) .about-beliefs__name {
    top: calc(var(--u) * 168);
    width: calc(var(--u) * 229);
  }

  .about-page .about-beliefs__slide:nth-child(3) .about-beliefs__name {
    left: calc(var(--u) * 29);
    width: calc(var(--u) * 222);
  }

  .about-page .about-beliefs__slide:nth-child(3) .about-beliefs__copy {
    left: calc(var(--u) * 31);
    width: calc(var(--u) * 314);
  }

  .about-page .about-team {
    padding: 100px 20px 32px;
  }

  .about-page .about-team__title {
    margin-bottom: 49px;
    font-size: 32px;
    line-height: 1.19;
  }

  .about-page .about-team__group-label {
    margin-bottom: 22px;
  }

  .about-page .about-team__group {
    margin-bottom: 54px;
  }

  .about-page .about-team__grid {
    gap: 22px 13px;
    width: 100%;
  }

  .about-page .about-team__photo {
    margin-bottom: 4px;
  }

  .about-page .about-team__name {
    margin-bottom: 4.5px;
  }

  .about-page .about-team__role,
  .about-page .about-team__years {
    font-size: 12px;
    line-height: 1.5;
  }

  .about-page .about-team__role {
    margin-bottom: 12.5px;
    letter-spacing: 1.2px;
  }

  .about-page .about-jobs {
    padding-top: 56px;
  }

  .about-page .about-jobs__head {
    gap: 4px;
    padding: 0 20px 43px;
  }

  .about-page .about-jobs__title {
    font-size: 32px;
    line-height: 1.2;
  }

  .about-page .about-jobs__sub {
    font-size: 16px;
    line-height: 1.5;
  }

  .about-page .about-jobs__list {
    border-top: 1px solid rgba(41, 43, 40, 0.24);
  }

  .about-page .about-jobs__link {
    min-height: 0;
    padding: 17.25px 20px;
  }

  /* Figma sets the role to a narrow text box, so every title breaks onto two lines. */
  .about-page .about-jobs__role {
    max-width: calc(100vw * 175 / 375);
    font-size: 20px;
    line-height: 1.3;
  }

  .about-page .about-jobs__empty {
    padding: 0 20px;
  }

  .about-page .about-jobs__mark {
    display: none;
  }

  .about-page .about-jobs__all {
    width: auto;
    margin: 15px 20px 0;
  }

  /* Tile sizes from the 375 frame, as a swipe strip: the drift is off here, so scrolling is the only way to the next tiles. */
  .about-page .about-gallery {
    padding: 117px 0 86px;
  }

  .about-page .about-gallery__row {
    gap: 8.5px;
    width: auto;
    height: 33.95vw;
    margin-left: 0;
    padding: 0 20px;
    transform: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .about-page .about-gallery__row::-webkit-scrollbar {
    display: none;
  }

  .about-page .about-gallery__item {
    width: 56.4vw;
    scroll-snap-align: start;
  }

  .about-page .about-gallery__item:nth-child(even) {
    width: 33.95vw;
  }

  .about-page .about-cta {
    padding: 0 15px 91px;
  }

  .about-page .about-cta__panel {
    gap: 12px;
    padding: 37px 24px 37px;
  }

  .about-page .about-cta__title {
    font-size: 32px;
    line-height: 1.19;
  }

  .about-page .about-cta__copy {
    margin-bottom: -4.5px;
    font-size: 16px;
    line-height: 1.5;
  }
}
