/* ==========================================================================
   About Us  (also loaded by our-story.html for the shared inner-page parts:
   light page header, header colour override, leaf decoration, CTA)
   ========================================================================== */

/* ---------------------------------------------- header on a light page band
   Inner "Who we are" pages open on a light (slate-50) band, so the shared
   white-on-glass nav is recoloured until the header turns dark on scroll. */
.inner-page { position: relative; overflow-x: clip; }
/* nav colours on the light band come from base.css ([data-header="light"]) */

/* ------------------------------------------------------------- PAGE HEAD */
.page-head {
  position: relative;
  background: var(--slate-50);
  padding-top: clamp(120px, 5.6rem + 6vw, 217px);
  padding-bottom: clamp(36px, 1.6rem + 2.6vw, 73px);
}
.page-head__inner { position: relative; z-index: 1; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 .3em; font-size: var(--fs-16); color: var(--slate-400); }
.crumbs li + li::before { content: "/"; margin-right: .3em; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--tb-500); }
.crumbs a[aria-current="page"] { color: var(--tb-500); }
.page-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-42);
  line-height: 1.2;
  color: var(--black);
}

/* Soft leaf shape that bleeds off the right edge (Figma "Rectangle 298") */
.page-leaf {
  position: absolute;
  z-index: 0;
  width: clamp(220px, 34.8vw, 526px);
  height: auto;
  pointer-events: none;
}
.page-leaf--about { right: calc(-0.0708 * 100vw); top: calc(100% - clamp(24px, 3.1vw, 47px)); }

/* Shared type */
.title-44 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.875rem, 1.52rem + 1.6vw, 2.75rem); /* 30 → 44 */
  line-height: 1.2;
  color: var(--slate-950);
}
.page-lead-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-42);
  line-height: 1.2;
  color: var(--black);
}
.page-lead-text { font-size: var(--fs-16); line-height: 1.5; color: #576477; }

/* ------------------------------------------------------------- INTRO */
.a-intro { position: relative; z-index: 1; padding-top: clamp(24px, 1rem + 0.6vw, 28px); }
.a-intro__inner { display: flex; flex-direction: column; gap: 8px; }
.a-intro .page-lead-title { max-width: 557px; }
.a-intro .page-lead-text { max-width: 978px; }

/* ------------------------------------------------------------- MISSION / VISION */
.mv { position: relative; z-index: 1; padding-top: clamp(32px, 1.4rem + 1.6vw, 48px); }
.mv__card {
  display: grid;
  grid-template-columns: minmax(0, 485px) auto;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  background: var(--tb-700);
  color: var(--white);
  border-radius: clamp(16px, 0.8rem + 0.9vw, 25px);
  padding: clamp(24px, 1rem + 2vw, 51px) clamp(16px, 0.6rem + 1vw, 25px) clamp(24px, 1rem + 1vw, 34px) clamp(20px, 1rem + 1.8vw, 44px);
}
.mv__copy { display: flex; flex-direction: column; gap: clamp(36px, 1.6rem + 2.4vw, 67px); }
.mv__block { display: flex; flex-direction: column; gap: 18px; }
.mv__block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.3rem + 0.75vw, 2rem); /* 24 → 32 */
  line-height: 1.2;
}
.mv__block p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-18);
  line-height: 1.5;
}
.mv__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 289px));
  gap: clamp(14px, 0.4rem + 1.6vw, 36px);
  align-items: center;
}
.mv__col { display: flex; flex-direction: column; gap: clamp(14px, 0.4rem + 1.2vw, 32px); }
.mv__col--offset { padding-bottom: clamp(0px, 4vw, 54px); }
.mv__img { position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.mv__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease-out); }
.mv__img--a, .mv__img--b { aspect-ratio: 289 / 343; }
.mv__img--c { aspect-ratio: 289 / 411; }
.mv__img:hover img { scale: 1.05; }

/* ------------------------------------------------------------- VALUES */
.values { padding-top: clamp(48px, 2rem + 2.6vw, 68px); padding-bottom: clamp(40px, 2rem + 1.2vw, 63px); }
.values__head { max-width: 656px; }
.values__head .title-44 { max-width: 643px; }
.values__grid {
  margin-top: clamp(32px, 1.4rem + 2vw, 53px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--slate-400);
}
.value {
  position: relative;
  min-height: clamp(160px, 8rem + 4vw, 214px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: clamp(24px, 1rem + 1.4vw, 40px) clamp(20px, 1rem + 1.4vw, 44px);
  border-bottom: 1px solid var(--slate-400);
  isolation: isolate;
}
.value:nth-child(odd) { border-right: 1px solid var(--slate-400); }
.value > * { max-width: 436px; }
.value::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--tb-50), rgba(235, 245, 255, 0));
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.value::after {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
  background: var(--tb-500); transform: scaleY(0); transform-origin: top;
  transition: transform .55s var(--ease-out);
}
.value:hover::before { opacity: 1; }
.value:hover::after { transform: scaleY(1); }
.value h3 { font-weight: 700; font-size: var(--fs-20); line-height: 1.5; color: var(--black); transition: color .4s; }
.value:hover h3 { color: var(--tb-500); }
.value p { font-size: var(--fs-18); line-height: 1.5; color: var(--slate-500); }

/* ------------------------------------------------------------- OVERVIEW */
.overview { padding-top: clamp(48px, 2rem + 2.6vw, 97px); padding-bottom: clamp(48px, 2rem + 1.8vw, 80px); }
.overview__inner {
  display: grid;
  grid-template-columns: minmax(0, 656px) minmax(0, 597px);
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}
.overview__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.overview__copy .title-44 { max-width: 643px; }
.overview__text { font-size: var(--fs-18); line-height: 1.5; color: #576477; max-width: 522px; }
.overview__img { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 597 / 569; }
.overview__img img { width: 100%; height: 115%; object-fit: cover; position: absolute; inset: -7.5% 0 auto; }

/* ------------------------------------------------------------- TEAM */
.team { background: var(--slate-50); padding-top: clamp(48px, 2rem + 3.4vw, 98px); padding-bottom: clamp(32px, 1.6rem + 0.6vw, 41px); overflow: hidden; }
.team__inner { display: flex; flex-direction: column; align-items: center; }
.team__copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; max-width: 765px; position: relative; z-index: 1; }
.team__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.625rem, 1.42rem + 0.9vw, 2rem); /* 26 → 32 */
  line-height: 1.2;
  color: var(--slate-950);
  max-width: 477px;
}
.team__text { margin-top: 17px; font-size: var(--fs-18); line-height: 1.5; color: #1e293b; }
.team__copy .btn { margin-top: 17px; }

/* Six photos laid out on a shallow U-shaped arc (outer ones rise beside the copy) */
.team__arc {
  --tile: 154px;
  --arc-1: 0px; --arc-2: 111px; --arc-3: 209px;
  display: flex; justify-content: center;
  gap: 28px;
  width: 100%;
  margin-top: calc(-1 * 107px);
}
.team__arc li { flex: 0 0 var(--tile); }
.team__arc li:nth-child(1), .team__arc li:nth-child(6) { margin-top: var(--arc-1); }
.team__arc li:nth-child(2), .team__arc li:nth-child(5) { margin-top: var(--arc-2); }
.team__arc li:nth-child(3), .team__arc li:nth-child(4) { margin-top: var(--arc-3); }
.team__arc img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm);
  transition: translate .6s var(--ease-out), rotate .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.team__arc li:hover img { translate: 0 -8px; rotate: -1.5deg; box-shadow: var(--shadow-float); }
.team__arc li:nth-child(even):hover img { rotate: 1.5deg; }
/* Between the side photos the copy needs room: tiles sit outside the 765px text column */
@media (max-width: 1240px) {
  .team__arc { --tile: clamp(96px, 11vw, 140px); gap: clamp(10px, 1.6vw, 22px); margin-top: var(--space-lg); --arc-2: calc(var(--tile) * .45); --arc-3: calc(var(--tile) * .85); }
}
@media (max-width: 640px) {
  /* 3 × 2 grid: first row dips, second row rises (a gentle wave) */
  .team__arc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .team__arc li:nth-child(1), .team__arc li:nth-child(6) { margin-top: 0; }
  .team__arc li:nth-child(2), .team__arc li:nth-child(5) { margin-top: 20px; }
  .team__arc li:nth-child(3), .team__arc li:nth-child(4) { margin-top: 40px; }
  .team__arc li:nth-child(4) { margin-top: 0; }
  .team__arc li:nth-child(6) { margin-top: 40px; }
}

/* ------------------------------------------------------------- CTA (matches homepage CTA) */
.page-cta { padding-top: clamp(24px, 1rem + 0.6vw, 24px); padding-bottom: clamp(40px, 2rem + 1.2vw, 64px); }
.page-cta__wrap { display: flex; justify-content: center; }
.cta {
  position: relative;
  width: min(1294px, 100%);
  min-height: clamp(340px, 18rem + 4vw, 377px);
  background: var(--tb-600);
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  display: flex; align-items: center;
}
.cta__deco { position: absolute; right: 0; bottom: 0; width: clamp(280px, 44vw, 572px); height: auto; pointer-events: none; }
.cta__content { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(32px, 1.5rem + 2vw, 52px) clamp(20px, 1rem + 2.6vw, 60px); max-width: 787px; }
.cta__title { max-width: 627px; }
.cta__text { font-size: var(--fs-18); line-height: 1.5; }

/* ------------------------------------------------------------- RESPONSIVE */
@media (max-width: 1100px) {
  .mv__card { grid-template-columns: minmax(0, 1fr); }
  .mv__copy { max-width: 640px; }
  .mv__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 640px; }
  .overview__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
}
@media (max-width: 900px) {
  .overview__inner { grid-template-columns: minmax(0, 1fr); }
  .overview__img { max-width: 597px; width: 100%; }
  .cta { align-items: flex-start; padding-bottom: clamp(140px, 30vw, 220px); }
  .cta__deco { width: clamp(260px, 70vw, 480px); }
}
@media (max-width: 720px) {
  .values__grid { grid-template-columns: minmax(0, 1fr); }
  .value:nth-child(odd) { border-right: 0; }
  .value { min-height: 0; }
}
@media (max-width: 520px) {
  .mv__gallery { gap: 12px; }
  .mv__col { gap: 12px; }
  .overview__copy .btn, .team__copy .btn { width: 100%; }
}
