/* ==========================================================================
   about.css – About Us page (Figma frame "about-us" 1:758, 1920 × 6926)
   1 Figma px = var(--u). Comments give the Figma node and y position.
   ========================================================================== */

/* Signature font (Figma 1:887 – Caveat Brush Regular 40/48), OFL licence */
@font-face {
  font-family: "Caveat Brush";
  src: url("../assets/fonts/caveat-brush-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Overview (1:2121 title y684, text y844 · 1:2124 collage y1132) ---------- */
.about-overview { position: relative; padding-top: calc(96 * var(--u)); }
/* light-blue triangle strip, Figma 1:785 (x 0–224, y 440–1028) – starts under the hero */
.about-overview__triangles {
  position: absolute; left: 0; top: calc(-148 * var(--u));
  width: calc(224 * var(--u)); height: calc(588 * var(--u));
  pointer-events: none;
}
.about-overview__copy { position: relative; width: calc(1056 * var(--u)); margin-inline: auto; }
.about-overview__text {
  margin-top: calc(16 * var(--u));
  color: var(--c-text);
  font-size: calc(24 * var(--u));
  line-height: calc(36 * var(--u));
  text-align: center;
}
.about-overview__text p + p { margin-top: calc(36 * var(--u)); }

.about-overview__media {
  position: relative;
  width: calc(1328 * var(--u)); height: calc(568 * var(--u));
  margin: calc(72 * var(--u)) auto 0;
}
/* navy band behind the products, Figma 1:2125 – 1442 × 137, 339px below the image top */
.about-overview__bar {
  position: absolute; left: 50%; top: calc(339 * var(--u));
  width: calc(1442 * var(--u)); height: calc(137 * var(--u));
  transform: translateX(-50%);
  background: var(--c-navy);
}
.about-overview__media img { position: relative; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Vision & Mission (1:889 – 1600 × 352 at y1860) ---------- */
.vision { position: relative; margin-top: calc(160 * var(--u)); height: calc(352 * var(--u)); }
.vision__panel {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  height: calc(346 * var(--u));
  padding-top: calc(56 * var(--u));
  background: var(--c-menu-hover);
}
/* centre divider – Figma 1:899, #c8c8c8, 240 tall from y56 */
.vision__panel::before {
  content: ""; position: absolute; left: 50%; top: calc(56 * var(--u));
  width: 1px; height: calc(240 * var(--u));
  background: var(--c-border);
}
.vision__col { padding-left: calc(64 * var(--u)); }
.vision__col p {
  width: calc(672 * var(--u));
  margin-top: calc(16 * var(--u));
  color: var(--c-text);
  font-size: calc(24 * var(--u));
  line-height: calc(36 * var(--u));
}
/* white tab on the bottom edge – Figma 1:898, 269 × 22 */
.vision__notch {
  position: absolute; left: 50%; top: calc(324 * var(--u));
  width: calc(269 * var(--u)); height: calc(22 * var(--u));
  transform: translateX(-50%);
}

/* ---------- Director's message (1:823 – y2372 to 3256) ---------- */
.director {
  position: relative;
  height: calc(884 * var(--u));
  margin-top: calc(160 * var(--u));
}
/* triangle strip on the right edge – Figma 1:759 (x1760, y2182) */
.director__triangles {
  position: absolute; right: 0; top: calc(-190 * var(--u));
  width: calc(160 * var(--u)); height: calc(514 * var(--u));
  pointer-events: none;
}
.director__banner {
  position: absolute; left: 0; right: 0; top: calc(24 * var(--u));
  height: calc(836 * var(--u));
  overflow: hidden;
  background: #013361;
}
.director__banner img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.director__panel {
  position: absolute; top: 0;
  left: calc(50% - 120 * var(--u));
  width: calc(920 * var(--u)); height: 100%;
  background: var(--c-navy);
  color: #fff;
}
.director__pattern { position: absolute; inset: 0; width: 100%; height: 100%; }
.director__body {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  padding: calc(56 * var(--u)) calc(64 * var(--u)) calc(56 * var(--u));
}
.director__title {
  font-weight: 700;
  font-size: calc(56 * var(--u));
  line-height: calc(72 * var(--u));
  text-transform: uppercase;
}
.director__lead {
  margin-top: calc(24 * var(--u));
  font-weight: 600;
  font-size: calc(28 * var(--u));
  line-height: calc(40 * var(--u));
}
.director__text {
  width: calc(792 * var(--u));
  margin-top: calc(16 * var(--u));
  font-size: calc(24 * var(--u));
  line-height: calc(36 * var(--u));
}
.director__text p + p { margin-top: calc(36 * var(--u)); }
/* rule (Figma 1:886, #467eb8) at y3080, signature y3112, role y3160 */
.director__sign {
  margin-top: auto;
  width: calc(792 * var(--u));
  padding-top: calc(32 * var(--u));
  border-top: 1px solid var(--c-field-border);
}
.director__name {
  font-family: "Caveat Brush", var(--f-head);
  font-size: calc(40 * var(--u));
  line-height: calc(48 * var(--u));
}
.director__role {
  font-weight: 600;
  font-size: calc(24 * var(--u));
  line-height: calc(40 * var(--u));
}

/* ---------- Global presence (1:979 – y3416 to 4304) ---------- */
.presence { position: relative; margin-top: calc(160 * var(--u)); }
.presence__sub {
  margin-top: calc(16 * var(--u));
  color: #2a2a2a;
  font-size: calc(40 * var(--u));
  line-height: calc(56 * var(--u));
  text-align: center;
}
.presence__stage { position: relative; margin-top: calc(64 * var(--u)); }
/* world map – Figma 1:980, 1600 × 508, 172px below the maps' top */
.presence__world {
  position: absolute; left: 0; top: calc(172 * var(--u));
  width: 100%; height: calc(508 * var(--u));
  pointer-events: none;
}
.presence__list {
  position: relative;
  display: grid; grid-template-columns: repeat(3, calc(376 * var(--u)));
  justify-content: center; column-gap: calc(32 * var(--u));
}
.presence__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}
/* dividers – Figma 1:2119 / 1:2120, #c8c8c8, 422 tall, centred in the gap */
.presence__item + .presence__item::before {
  content: ""; position: absolute; top: 0; left: calc(-16 * var(--u));
  width: 1px; height: calc(422 * var(--u));
  background: var(--c-border);
}
.presence__item img { width: calc(376 * var(--u)); height: calc(260 * var(--u)); object-fit: contain; }
.presence__name {
  margin-top: calc(40 * var(--u));
  color: #000;
  font-weight: 500;
  font-size: calc(40 * var(--u));
  line-height: calc(56 * var(--u));
}
.presence__btn { margin-top: calc(8 * var(--u)); }
.presence__text {
  position: relative;
  width: calc(1328 * var(--u));
  margin: calc(80 * var(--u)) auto 0;
  padding-bottom: calc(34 * var(--u)); /* world map runs 34px below the text */
  color: var(--c-text);
  font-size: calc(32 * var(--u));
  line-height: calc(48 * var(--u));
  text-align: center;
}

/* ---------- Industry certifications (1:951 – 1920 × 444 at y4464) ---------- */
.certs { margin-top: calc(160 * var(--u)); background: var(--c-menu-hover); }
.certs__inner {
  display: flex; justify-content: space-between;
  width: calc(1600 * var(--u)); height: calc(444 * var(--u));
  margin-inline: auto;
}
.certs__intro {
  position: relative;
  width: calc(648 * var(--u));
  padding: calc(56 * var(--u)) calc(64 * var(--u)) 0;
  background: linear-gradient(138.26deg, #0284c7 0%, var(--c-navy) 47.974%, #264a91 100%);
  color: #fff;
}
/* top stripe – Figma 1:956, #55c5ff, 10.364 tall */
.certs__intro::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: calc(10.364 * var(--u));
  background: #55c5ff;
}
.certs__title {
  font-weight: 700;
  font-size: calc(56 * var(--u));
  line-height: calc(72 * var(--u));
  text-transform: uppercase;
}
.certs__text {
  width: calc(520 * var(--u));
  margin-top: calc(16 * var(--u));
  font-size: calc(24 * var(--u));
  line-height: calc(36 * var(--u));
}
.certs__gallery { width: calc(784 * var(--u)); padding-top: calc(56 * var(--u)); }
.certs__list { display: flex; gap: calc(32 * var(--u)); }
.cert { display: flex; flex-direction: column; align-items: center; width: calc(240 * var(--u)); }
.cert__card {
  display: grid; place-items: center;
  width: calc(240 * var(--u)); height: calc(240 * var(--u));
  background: #fff;
}
.cert__card img { width: calc(208 * var(--u)); height: calc(208 * var(--u)); object-fit: contain; }
.cert__label {
  margin-top: calc(8 * var(--u));
  color: var(--c-text);
  font-weight: 500;
  font-size: calc(20 * var(--u));
  line-height: calc(36 * var(--u));
  white-space: nowrap;
}
.certs .dots { margin-top: calc(40 * var(--u)); }

/* ---------- Quality (1:900 – y5068 to 5720) ---------- */
.quality {
  display: flex; align-items: flex-start; gap: calc(80 * var(--u));
  margin-top: calc(160 * var(--u));
}
.quality__media {
  position: relative; flex: none;
  width: calc(512 * var(--u)); height: calc(652 * var(--u));
  overflow: hidden;
}
/* corner cuts – Figma 1:949 / 1:950, 82 × 82, top-left + bottom-right.
   The photo itself is clipped (no white triangles on top), so no hairline shows. */
.quality__media img {
  --cut: calc(82 * var(--u));
  width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.quality__cut { display: none; }
.quality__copy { width: calc(1008 * var(--u)); }
.quality__text, .quality__label {
  color: var(--c-text);
  font-size: calc(24 * var(--u));
  line-height: calc(36 * var(--u));
}
.quality__text { margin-top: calc(16 * var(--u)); }
.quality__label { margin-top: calc(36 * var(--u)); font-weight: 500; }
.quality__list { display: grid; row-gap: calc(24 * var(--u)); margin-top: calc(24 * var(--u)); }
.quality__list li { display: flex; align-items: center; gap: calc(16 * var(--u)); }
.quality__list img { flex: none; width: calc(40 * var(--u)); height: calc(40 * var(--u)); }
.quality__list p {
  color: var(--c-text);
  font-size: calc(24 * var(--u));
  line-height: calc(36 * var(--u));
}
.quality__list b { color: #000; font-weight: 600; }

/* ==========================================================================
   TABLET + MOBILE (< 1200px) – same content and order, reflowed
   ========================================================================== */
@media (max-width: 1199.98px) {
  .about-overview { padding-top: 64px; }
  .about-overview__triangles { display: none; }
  .about-overview__copy { width: calc(100% - var(--gutter) * 2); max-width: 820px; }
  .about-overview__text { margin-top: 16px; font-size: 17px; line-height: 1.6; }
  .about-overview__text p + p { margin-top: 16px; }
  .about-overview__media { width: calc(100% - var(--gutter) * 2); max-width: 900px; height: auto; aspect-ratio: 1328 / 568; margin-top: 40px; }
  .about-overview__bar { width: calc(100% + var(--gutter) * 2); max-width: 100vw; top: 59.7%; height: 24.1%; }

  .vision { height: auto; margin-top: 72px; }
  .vision__panel { grid-template-columns: 1fr 1fr; height: auto; padding: 40px 0 56px; }
  .vision__panel::before { top: 40px; height: calc(100% - 96px); }
  .vision__col { padding-inline: 32px; }
  .vision__col p { width: auto; margin-top: 12px; font-size: 17px; line-height: 1.6; }
  .vision__notch { top: auto; bottom: 0; width: 160px; height: 13px; }

  .director { height: auto; margin-top: 72px; }
  .director__triangles { display: none; }
  .director__banner { position: relative; top: auto; height: auto; aspect-ratio: 16 / 9; }
  .director__banner img { object-position: 15% center; }
  .director__panel { position: relative; left: auto; width: calc(100% - var(--gutter) * 2); margin: -48px auto 0; }
  .director__pattern { object-fit: cover; object-position: right bottom; }
  .director__body { padding: 40px 32px; }
  .director__title { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.25; }
  .director__lead { margin-top: 16px; font-size: 20px; line-height: 1.4; }
  .director__text, .director__sign { width: auto; }
  .director__text { font-size: 17px; line-height: 1.6; }
  .director__text p + p { margin-top: 16px; }
  .director__sign { margin-top: 32px; padding-top: 24px; }
  .director__name { font-size: 32px; line-height: 40px; }
  .director__role { font-size: 18px; line-height: 28px; }

  .presence { margin-top: 72px; }
  .presence__sub { margin-top: 8px; font-size: clamp(18px, 2.8vw, 26px); line-height: 1.4; }
  .presence__stage { margin-top: 40px; }
  .presence__world { top: 18%; height: auto; }
  .presence__list { grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
  .presence__item + .presence__item::before { left: -12px; height: 100%; }
  .presence__item img { width: 100%; height: auto; aspect-ratio: 376 / 260; }
  .presence__name { margin-top: 16px; font-size: 24px; line-height: 32px; }
  .presence__btn { margin-top: 12px; }
  .presence__text { width: auto; margin-top: 40px; font-size: 18px; line-height: 1.6; }

  .certs { margin-top: 72px; }
  .certs__inner { flex-direction: column; width: auto; height: auto; }
  .certs__intro { width: auto; padding: 48px var(--gutter) 40px; }
  .certs__intro::before { height: 6px; }
  .certs__title { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.25; }
  .certs__text { width: auto; max-width: 640px; margin-top: 12px; font-size: 17px; line-height: 1.6; }
  .certs__gallery { width: auto; padding: 40px var(--gutter) 40px; }
  .certs__list { justify-content: center; gap: 16px; }
  .cert { width: 200px; }
  .cert__card { width: 200px; height: 200px; }
  .cert__card img { width: 172px; height: 172px; }
  .cert__label { font-size: 16px; line-height: 28px; white-space: normal; text-align: center; }
  .certs .dots { margin-top: 24px; }

  .quality { flex-direction: column; gap: 40px; margin-top: 72px; }
  .quality__media { width: 100%; max-width: 512px; height: auto; aspect-ratio: 512 / 652; margin-inline: auto; }
  .quality__media img { --cut: 56px; }
  .quality__copy { width: auto; }
  .quality__text, .quality__label, .quality__list p { font-size: 17px; line-height: 1.6; }
  .quality__label { margin-top: 20px; }
  .quality__list { row-gap: 16px; margin-top: 16px; }
  .quality__list li { align-items: flex-start; gap: 12px; }
  .quality__list img { width: 32px; height: 32px; }
}

@media (max-width: 767.98px) {
  .vision__panel { grid-template-columns: 1fr; padding: 32px 0 40px; }
  .vision__panel::before { display: none; }
  .vision__col { padding-inline: 20px; }
  .vision__col + .vision__col { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--c-border); margin-inline: 20px; padding-inline: 0; }

  .director__banner { aspect-ratio: 4 / 3; }
  .director__banner img { object-position: 12% center; }
  .director__panel { width: 100%; margin-top: 0; }
  .director__body { padding: 32px 20px; }

  .presence__list { grid-template-columns: 1fr; row-gap: 40px; }
  .presence__item + .presence__item::before { display: none; }
  .presence__item img { max-width: 300px; }
  .presence__world { display: none; }

  .certs__list { flex-wrap: wrap; }
  .cert { width: calc(50% - 8px); }
  .cert__card { width: 100%; height: auto; aspect-ratio: 1; }
  .cert__card img { width: 86%; height: auto; }
}
