/* ============================================================
   About page sections — content from Portfolio.pdf (client source).
   Sections: Who We Are → Company History → Achievements → Vision
   → Team → Final CTA.
   ============================================================ */

/* ============================================================
   D-A1 — Corner accent (orange parallelogram, bottom-right)
   Anchors the Who We Are section.
   ============================================================ */
.brand-corner--who-we-are,
.brand-corner--mission {
  --bc-w: clamp(140px, 14vw, 240px);
  --bc-h: clamp(50px, 7vw, 150px);
  inset-block-end: 0;
  inset-inline-end: 0;
  z-index: 1;
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 70% 100%);
}

.js .brand-corner--who-we-are,
.js .brand-corner--mission {
  clip-path: polygon(100% 100%, 100% 100%, 100% 100%, 100% 100%);
}

@media (prefers-reduced-motion: reduce) {
  .js .brand-corner--who-we-are,
  .js .brand-corner--mission {
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 70% 100%);
  }
}

/* ============================================================
   WHO WE ARE
   Bone background, single-column centered narrative. Anchors the
   page's editorial register straight after the hero cut.
   ============================================================ */
.who-we-are {
  background: var(--c-bone);
  padding-block: var(--section-py);
  padding-inline: clamp(24px, 5vw, 96px);
  position: relative;
}

.who-we-are__inner {
  max-width: 960px;
  margin-inline: auto;
  text-align: left;
}

.who-we-are__inner .eyebrow { color: var(--c-text-meta); }

.who-we-are .section-title {
  font-size: clamp(40px, 5vw, 88px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--c-text-strong);
  margin-block: var(--sp-3) 0;
}

.who-we-are__body {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: clamp(18px, 1.3vw, 21px);
  line-height: 1.55;
  color: rgba(18, 63, 109, 0.90);
  max-inline-size: 65ch;
  margin-block-start: 32px;
}

.who-we-are__body p + p {
  margin-block-start: 1.2em;
}

.js .who-we-are__inner .eyebrow,
.js .who-we-are__body { opacity: 0; }
.js .who-we-are .section-title[data-mask] .mask__inner { transform: translateY(100%); }

@media (prefers-reduced-motion: reduce) {
  .js .who-we-are__inner .eyebrow,
  .js .who-we-are__body { opacity: 1; }
  .js .who-we-are .section-title[data-mask] .mask__inner { transform: none; }
}

/* ============================================================
   COMPANY HISTORY (Since 2009)
   Two-column 6:6 at desktop, image right + text left. Stacked on
   mobile (text first, image below). Continuous bone surface with
   Who We Are — no rhythm break mid-narrative.
   ============================================================ */
.history {
  background: var(--c-bone);
  padding-block: 0 var(--section-py);
  padding-inline: clamp(24px, 5vw, 96px);
  position: relative;
}

.history__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  max-width: var(--container-max);
  margin-inline: auto;
  align-items: center;
}

@media (min-width: 1024px) {
  .history__grid {
    grid-template-columns: 6fr 6fr;
    column-gap: clamp(48px, 6vw, 96px);
  }
}

.history__text { order: 1; }
.history__image-wrap { order: 2; }

.history__text .eyebrow { color: var(--c-text-meta); }

.history .section-title {
  font-size: clamp(36px, 4.2vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--c-text-strong);
  margin-block: var(--sp-3) 0;
}

.history__body {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.65;
  color: var(--c-text);
  max-inline-size: 55ch;
  margin-block-start: 32px;
}

.history__body p + p {
  margin-block-start: 1em;
}

.history__image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.history__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.js .history__text .eyebrow,
.js .history__body { opacity: 0; }
.js .history .section-title[data-mask] .mask__inner { transform: translateY(100%); }
.js .history__image {
  opacity: 0;
  transform: scale(1.04);
  transform-origin: center;
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .js .history__text .eyebrow,
  .js .history__body { opacity: 1; }
  .js .history .section-title[data-mask] .mask__inner { transform: none; }
  .js .history__image {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

/* ============================================================
   ACHIEVEMENTS
   Surface-grey background, distinct from Who We Are / History bone
   for a clear rhythm break. Heading + lede on top, two-column
   client list (Local + International) below. The "150+" stat in
   the heading keeps a count-up animation (initAchievements).
   ============================================================ */
.achievements {
  background: var(--c-surface);
  padding-block: clamp(56px, 6vw, 112px);
  padding-inline: clamp(24px, 5vw, 96px);
  position: relative;
}

.achievements__inner {
  max-width: var(--container-max);
  margin-inline: auto;
}

.achievements__header {
  max-width: 70ch;
  margin-block-end: clamp(40px, 5vw, 80px);
}

.achievements__header .eyebrow { color: var(--c-text-meta); }

.achievements__title {
  font-family: var(--ff-display);
  font-variation-settings: var(--fvar-display);
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--c-text-strong);
  margin-block: var(--sp-3) 0;
}

.achievements__title-num {
  color: var(--c-navy);
  font-variant-numeric: tabular-nums;
}

.achievements__title-suffix {
  color: var(--c-orange);
}

.achievements__lede {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.5;
  color: var(--c-text);
  margin-block-start: clamp(16px, 2vw, 24px);
  max-inline-size: 50ch;
}

/* ---- Partners: local index grid + international flag panel ---- */
.achievements__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

@media (min-width: 880px) {
  .achievements__columns {
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 3.5vw, 56px);
  }
}

.achievements__col {
  position: relative;
}

.achievements__col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-block-end: clamp(20px, 2.4vw, 32px);
  padding-block-end: var(--sp-3);
  border-block-end: 1px solid var(--c-border);
}

.achievements__col-label {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--c-navy);
  margin: 0;
}

.achievements__col-meta {
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  color: var(--c-text-meta);
  margin: 0;
  white-space: nowrap;
}

.achievements__col-meta span {
  color: var(--c-orange);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* International column reads as a distinct panel with a faint
   wireframe-globe motif — the section's single decorative accent. */
.achievements__col--intl {
  padding: clamp(22px, 2.6vw, 36px);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(18, 63, 109, 0.045), rgba(18, 63, 109, 0.012));
  overflow: hidden;
}

.achievements__col--intl > *:not(.achievements__globe) {
  position: relative;
  z-index: 1;
}

.achievements__globe {
  position: absolute;
  inset-block-start: -16%;
  inset-inline-end: -22%;
  inline-size: min(80%, 440px);
  color: var(--c-navy);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.achievements__globe svg {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

/* Local — numbered index tiles, accent bar on hover. */
.partner-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: partner;
  display: grid;
  gap: clamp(8px, 1vw, 12px);
}

.partner-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: clamp(12px, 1.4vw, 16px) clamp(14px, 1.5vw, 18px);
  font-family: var(--ff-sans);
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-text-strong);
  background: var(--c-bone);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.4s ease, box-shadow 0.4s ease;
}

.partner-tile::before {
  counter-increment: partner;
  content: counter(partner, decimal-leading-zero);
  flex: none;
  min-inline-size: 2.4ch;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-muted);
  transition: color 0.4s ease;
}

.partner-tile::after {
  content: "";
  position: absolute;
  inset-block: 9px;
  inset-inline-start: 0;
  inline-size: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--c-orange);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) {
  .partner-tile:hover {
    transform: translateY(-2px);
    border-color: var(--c-border-strong);
    box-shadow: var(--shadow-md);
  }
  .partner-tile:hover::before { color: var(--c-navy); }
  .partner-tile:hover::after { transform: scaleY(1); }
}

/* International — flag chip + name + country. */
.partner-flags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(8px, 1vw, 12px);
}

.partner-flag {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 16px);
  padding: clamp(11px, 1.3vw, 15px) clamp(13px, 1.5vw, 17px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.4s ease, box-shadow 0.4s ease;
}

@media (hover: hover) {
  .partner-flag:hover {
    transform: translateY(-2px);
    border-color: var(--c-border-strong);
    box-shadow: var(--shadow-md);
  }
  .partner-flag:hover .partner-flag__flag { transform: scale(1.06); }
}

.partner-flag__flag {
  flex: none;
  inline-size: 40px;
  block-size: 27px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(18, 63, 109, 0.2),
              inset 0 0 0 1px rgba(18, 63, 109, 0.07);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.partner-flag__flag svg {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.partner-flag__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-inline-size: 0;
}

.partner-flag__name {
  font-family: var(--ff-sans);
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-text-strong);
}

.partner-flag__country {
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  line-height: 1.3;
  color: var(--c-text-meta);
}

/* Pre-animation initial states (JS-only). Eyebrow + title fade,
   title number's clip-mask reveals before count-up, lede fades,
   list items stagger fade+rise. Reduced-motion bypass restores
   everything to final state. */
.js .achievements__header .eyebrow,
.js .achievements__lede { opacity: 0; }
.js .achievements__title[data-mask] .mask__inner { transform: translateY(100%); }
.js .achievements__title-num,
.js .achievements__title-suffix { clip-path: inset(100% 0 0 0); }
.js .achievements__item { opacity: 0; transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  .js .achievements__header .eyebrow,
  .js .achievements__lede { opacity: 1; }
  .js .achievements__title[data-mask] .mask__inner { transform: none; }
  .js .achievements__title-num,
  .js .achievements__title-suffix { clip-path: none; }
  .js .achievements__item { opacity: 1; transform: none; }
}

/* ============================================================
   VISION
   Bone background, distinct typographic register from Who We Are:
   oversized Fraunces lede first sentence + Manrope body paragraphs.
   Placed between Achievements and Team.
   ============================================================ */
.vision {
  background: var(--c-bone);
  padding-block: var(--section-py);
  padding-inline: clamp(24px, 5vw, 96px);
  position: relative;
}

.vision__inner {
  max-width: 1080px;
  margin-inline: auto;
}

.vision__inner .eyebrow { color: var(--c-text-meta); }

.vision .section-title {
  font-size: clamp(40px, 5vw, 88px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--c-text-strong);
  margin-block: var(--sp-3) 0 clamp(32px, 4vw, 56px);
}

/* Lede = oversized Fraunces opener (Vision's defining typographic
   move, differentiating it from Who We Are). */
.vision__lede {
  font-family: var(--ff-display);
  font-variation-settings: var(--fvar-heading);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.3;
  color: var(--c-text-strong);
  max-inline-size: 28ch;
  margin: 0;
}

.vision__body {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.65;
  color: var(--c-text);
  max-inline-size: 60ch;
  margin-block-start: clamp(24px, 3vw, 40px);
}

.vision__body p + p {
  margin-block-start: 1.1em;
}

.js .vision__inner .eyebrow,
.js .vision__lede,
.js .vision__body { opacity: 0; }
.js .vision .section-title[data-mask] .mask__inner { transform: translateY(100%); }

@media (prefers-reduced-motion: reduce) {
  .js .vision__inner .eyebrow,
  .js .vision__lede,
  .js .vision__body { opacity: 1; }
  .js .vision .section-title[data-mask] .mask__inner { transform: none; }
}

/* ============================================================
   OUR TEAM
   Bone background returns rhythm after the surface Numbers block.
   Centered header, leadership pair (Adel + Nidal larger), then a
   responsive grid of 10 members. Photos crop to circles via
   aspect-ratio + border-radius + object-fit; the wrap also carries
   a surface background so a CDN 404 degrades gracefully to a
   blank styled circle.
   ============================================================ */
.team {
  background: var(--c-bone);
  padding-block: var(--section-py);
  padding-inline: clamp(24px, 5vw, 96px);
  position: relative;
}

.team__header {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding-block-end: clamp(48px, 6vw, 96px);
}

.team__header .eyebrow {
  color: var(--c-text-meta);
  justify-content: center;
}

.team__header .section-title {
  font-size: clamp(36px, 4.5vw, 80px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--c-text-strong);
  margin-block: var(--sp-3) 0;
}

.team__intro {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--c-text);
  margin-block-start: var(--sp-4);
  margin-inline: auto;
}

.team__leadership {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 48px);
  max-width: 800px;
  margin-inline: auto;
  padding-block-end: clamp(48px, 6vw, 96px);
  /* Touch 4 — perspective on the card containers so rotateY on
     children has visible depth. 1200px is a calm value: enough for
     the 8deg book-page settle to read, restrained enough that grid
     cards near the edges don't distort. */
  perspective: 1200px;
}

@media (min-width: 768px) {
  .team__leadership {
    grid-template-columns: 1fr 1fr;
  }
}

.team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.5vw, 40px);
  max-width: 1400px;
  margin-inline: auto;
  padding-inline-start: 0;
  list-style: none;
  perspective: 1200px;
}

@media (min-width: 480px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .team__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .team__grid { grid-template-columns: repeat(4, 1fr); }
}

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

.team__photo-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--c-surface);
  inline-size: 160px;
  box-shadow: 0 0 0 0 var(--c-orange);
  transition: box-shadow 220ms var(--ease-out);
}

/* Touch 5 — orange hover ring (fine pointer only).
   Pairs with the existing photo zoom; both share 220ms easing for
   coherent tactile feel. Reduced-motion collapses the transition
   duration so the ring still appears on hover (instant). */
@media (hover: hover) and (pointer: fine) {
  .team__card:hover .team__photo-wrap {
    box-shadow: 0 0 0 4px var(--c-orange);
  }
}

@media (prefers-reduced-motion: reduce) {
  .team__photo-wrap { transition-duration: 0ms; }
}

.team__card--leader .team__photo-wrap {
  inline-size: 240px;
}

@media (max-width: 768px) {
  .team__photo-wrap { inline-size: 120px; }
  .team__card--leader .team__photo-wrap { inline-size: 160px; }
}

.team__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .team__card:hover .team__photo { transform: scale(1.06); }
}

.team__info { margin-block-start: var(--sp-3); }
.team__card--leader .team__info { margin-block-start: var(--sp-4); }

.team__name {
  font-family: var(--ff-display);
  font-variation-settings: var(--fvar-heading);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-text-strong);
  margin-block: 0;
}

.team__card--leader .team__name {
  font-size: clamp(28px, 2.5vw, 40px);
}

.team__role {
  font-family: var(--ff-sans);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(18, 63, 109, 0.70);
  margin-block: var(--sp-1) 0;
}

/* Pre-animation initial states (JS-only). Touch 4 adds a 3D
   rotateY(8deg) alongside the existing translateY(20px) so each
   card "settles into place" with a subtle book-page feel.
   transform-origin: center is the default, declared explicitly so
   the rotation reads consistently across card sizes.
   Reduced-motion bypass clears all of it. */
.js .team [data-mask] .mask__inner { transform: translateY(100%); }
.js .team__header .eyebrow,
.js .team__intro,
.js .team__card { opacity: 0; }
.js .team__card {
  transform: translateY(20px) rotateY(8deg);
  transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
  .js .team [data-mask] .mask__inner { transform: none; }
  .js .team__header .eyebrow,
  .js .team__intro,
  .js .team__card { opacity: 1; transform: none; }
}

/* ============================================================
   FINAL CTA — copied verbatim from css/pages/home-sections.css
   (lines 722–826). Guardrails explicitly allow "additions for ...
   Final CTA" in this file. home-sections.css is locked and remains
   the source of truth for the home page; this block is a duplicate
   only because the About page does not load home-sections.css.
   .about-final-cta is an empty hook class for any future About-only
   overrides — currently no overrides needed.
   ============================================================ */
.about-final-cta { /* empty hook — see comment above */ }

.final-cta {
  position: relative;
  background: var(--c-navy);
  color: var(--c-bone);
  padding-block: var(--section-py);
  padding-inline: clamp(24px, 5vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

.final-cta__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
}

/* Subtle radial glow orb — Layer 1 parallax target (slowest) */
.final-cta__bg-orb {
  display: block;
  inline-size: clamp(400px, 60vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(247, 148, 29, 0.10) 0%,
    rgba(247, 148, 29, 0.04) 40%,
    transparent 75%);
  filter: blur(20px);
  will-change: transform;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Layer 2 parallax target (medium speed) */
.final-cta__layer-2 {
  position: relative;
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.final-cta__eyebrow {
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}
.final-cta__eyebrow::before { background: currentColor; }

.final-cta__heading {
  font-family: var(--ff-display);
  font-variation-settings: var(--fvar-display);
  font-size: clamp(56px, 8vw, 144px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--c-bone);
  text-align: center;
  margin-block: var(--sp-3) 0;
  max-inline-size: 14ch;
}

.final-cta__sub {
  font-family: var(--ff-sans);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  color: rgba(241, 242, 242, 0.85);
  max-inline-size: 50ch;
  text-align: center;
  margin-block-start: var(--sp-4);
}

.final-cta__btn {
  margin-block-start: var(--sp-5);
  transform: translate3d(var(--btn-mag-x), var(--btn-mag-y), 0);
  transition: transform var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}

/* ---- Pre-animation states ---- */
.js .final-cta__heading[data-mask] .mask__inner { transform: translateY(100%); }
.js .final-cta__eyebrow,
.js .final-cta__sub,
.js .final-cta__btn { opacity: 0; }
.js .final-cta__bg-orb { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .final-cta__heading[data-mask] .mask__inner { transform: none; }
  .js .final-cta__eyebrow,
  .js .final-cta__sub,
  .js .final-cta__btn { opacity: 1; }
  .js .final-cta__bg-orb { opacity: 1; }
}

/* ============================================================
   6-A-4 — Scroll-driven text color reveal (Mission + Our Story body)
   Words enter at muted (--c-text-muted) and progress to strong as
   the section scrolls through the viewport. JS toggles .is-revealed
   per word based on a ScrollTrigger scrub. Linear color transition
   smooths the per-word toggle into a continuous wash.
   ============================================================ */
.reveal-word {
  color: var(--c-text-muted);
  transition: color 200ms linear;
  display: inline;
}

.reveal-word.is-revealed {
  color: var(--c-text-strong);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-word {
    color: var(--c-text-strong);
    transition: none;
  }
}

/* ============================================================
   6-A-4 — Infinite team marquee (desktop ≥1024px replaces grid)
   The marquee track holds 20 cards (10 + 10 aria-hidden duplicates).
   The 50% transform shift consumes exactly the first set so the
   loop point is seamless at the boundary between original-10 and
   duplicated-10. CSS animation handles auto-scroll; CSS handles
   pause-on-hover and grayscale → color. No JS init required for
   the marquee.
   ============================================================ */
.team__marquee { display: none; }

/* Override the inherited 6-A-3 Touch 4 init state for marquee cards.
   .js .team__card { opacity: 0; transform: ... } applies to every
   .team__card, including marquee cards, but initTeam() only animates
   .team__leadership .team__card and .team__grid .team__card to
   opacity:1 — without this override, marquee cards stay invisible.
   Marquee cards don't need an entry stagger; they appear instantly
   and auto-scroll via CSS animation. */
.js .team__marquee .team__card {
  opacity: 1;
  transform: none;
}

@media (min-width: 1024px) {
  .team .team__marquee { display: block; }
  .team .team__grid { display: none; }

  .team__marquee {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    overflow: hidden;
    padding-block: clamp(16px, 2vw, 32px);
  }

  .team__marquee-track {
    display: flex;
    inline-size: max-content;
    animation: marquee-scroll 50s linear infinite;
    will-change: transform;
  }

  /* Per-card margin instead of flex `gap`, so the total track width
     is exactly 2× the cumulative width of one set (10 cards +
     10 trailing margins). translateX(-50%) then lands card 11 (the
     first duplicate) precisely where card 1 was — seamless loop. */
  .team__marquee .team__card {
    flex: 0 0 auto;
    margin-inline-end: clamp(32px, 4vw, 64px);
  }

  .team__marquee:hover .team__marquee-track {
    animation-play-state: paused;
  }

  .team__marquee .team__photo {
    filter: grayscale(1);
    transition: filter 700ms var(--ease-out), transform 700ms var(--ease-out);
  }

  .team__marquee .team__card:hover .team__photo {
    filter: grayscale(0);
    transform: scale(1.06);
  }
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .team__marquee-track { animation: none; }
  .team__marquee .team__photo { filter: none; transition: none; }
}

/* ============================================================
   Letter cascade on selected section titles
   Applies to .section-title--cascade (Who We Are H2, Our Team H2).
   These titles use [data-cascade] instead of [data-mask], so the
   existing initWhoWeAre / initTeam mask-rise selectors don't match
   them. initLetterCascade() splits each title into per-letter
   spans and animates them in.
   ============================================================ */
.section-title--cascade {
  /* Container properties unchanged — only the letter spans get
     transformed. White-space preserves intra-word spacing. */
}

.cascade-word {
  display: inline-block;
  white-space: nowrap;
}

.js .cascade-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .js .cascade-letter {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}
