/* Carbon Confido — About page
   Loaded after type.css, site.css and pages.css; only what is unique to this page lives here.
   Breakpoints match the site: desktop ≥1100 · iPad 768–1099 · mobile <768 */

:root {
  --about-sy: var(--sy);                              /* same section spacing as the homepage */
  --value-bg: linear-gradient(180deg, #eef5e5 0%, #e3f1f9 100%);   /* pale green → pale blue cards */
  --value-ring: linear-gradient(180deg, var(--green) 0%, #45a8e0 100%);
}

/* ---------- Section spacing ---------- */
.about-sec { padding: var(--about-sy) 0; }

/* ---------- Confidence Built on Evidence: edge-to-edge photo + gray panel ---------- */
.evidence { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.evidence-photo { width: 100%; height: 100%; object-fit: cover; }
.evidence-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--gray-bg);
  padding: var(--about-sy) 56px;                    /* same top/bottom spacing as the other About sections */
  display: flex; flex-direction: column; justify-content: center;   /* text vertically centred */
}
.evidence-copy { position: relative; max-width: 500px; }
.evidence-copy h2 { margin-bottom: 24px; }
.evidence-copy p + p { margin-top: 18px; }
.evidence-mark {   /* large faded logo watermark sitting on the panel's bottom edge, behind the text */
  --wm-w: 440px;   /* logo width; the image has ~8.5% empty space below and ~4.9% on the right (of its width) */
  position: absolute; z-index: -1;
  right: calc(32px - var(--wm-w) * .049);
  bottom: calc(var(--wm-w) * -.085);   /* pulls the empty space out so the letters touch the bottom edge */
  width: var(--wm-w); height: auto; opacity: .13; pointer-events: none;
}

/* ---------- Text + photo rows (Mission & Vision, Impartiality, Approach) ---------- */
.about-photo img { height: auto; aspect-ratio: 3 / 2; border-radius: 0 48px; }    /* square top-left/bottom-right, rounded top-right/bottom-left */
.about-split .split-body h2 { margin-bottom: 24px; }
#evidence-title, #mv-title, #impartiality-title, #approach-title { font-size: 35px; }   /* desktop 35px, same as the other inner-page headings */

.mv-item + .mv-item { margin-top: 28px; }
.mv-pill {
  min-width: 132px; padding: 1px 28px; margin-bottom: 12px; text-align: center;
  font-size: var(--fs-md); font-weight: 600; letter-spacing: 0;
}

/* ---------- Our Core Values ----------
   Desktop: the diagram is drawn on a 1124-unit canvas that scales with its container
   (--u = one design pixel), so the ring, icons and cards stay in proportion. */
.values-list { list-style: none; margin: 0; padding: 0; }
.value-card { background: var(--value-bg); border-radius: var(--radius); text-align: center; }
.value-card h3 { color: var(--green-dark); font-size: var(--fs-h4); font-weight: 600; line-height: var(--lh-heading); margin-bottom: 8px; }
.value-card p { font-size: 14px; line-height: 1.45; }
.value-icon { background: #fff; border-radius: 50%; }

.values-hub { position: relative; display: grid; place-items: center; border-radius: 50%; }
.values-hub::before {                                       /* pale inner disc */
  content: ""; position: absolute; inset: 4.85%; border-radius: 50%; background: var(--value-bg);
}
.values-ring {                                              /* thin green → blue ring */
  position: absolute; inset: 0; border-radius: 50%;
}
.values-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--value-ring);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}
.values-ring i {                                            /* small dots between the icon nodes */
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--value-ring);
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
}
.values-ring i:nth-child(1) { --a: 36deg; }
.values-ring i:nth-child(2) { --a: 108deg; }
.values-ring i:nth-child(3) { --a: 180deg; }
.values-ring i:nth-child(4) { --a: 252deg; }
.values-ring i:nth-child(5) { --a: 324deg; }

.values-core {
  position: relative; display: grid; place-items: center; text-align: center;
  border-radius: 50%; border: 2px solid var(--green);
  background: linear-gradient(180deg, #93c550 0%, #4aaae0 100%);
  color: #fff; font-size: var(--fs-h3); font-weight: 500; line-height: 1.15;
}

@media (min-width: 1100px) {
  .about-split { gap: 56px; }

  .values-wrap { container-type: inline-size; }
  .values-map { --u: calc(100cqw / 1124); position: relative; height: calc(790 * var(--u)); }

  /* hub: ring radius 206, centred at (562, 428) */
  .values-hub {
    position: absolute; left: calc(356 * var(--u)); top: calc(222 * var(--u));
    width: calc(412 * var(--u)); height: calc(412 * var(--u));
  }
  .values-ring i { --r: calc(206 * var(--u)); }
  .values-core { width: calc(230 * var(--u)); height: calc(230 * var(--u)); }

  /* icon nodes (96 across) sit on the ring every 72° */
  .value-icon { position: absolute; width: calc(96 * var(--u)); height: calc(96 * var(--u)); }
  .is-integrity       .value-icon { left: calc(514 * var(--u)); top: calc(174 * var(--u)); }
  .is-competence      .value-icon { left: calc(710 * var(--u)); top: calc(316 * var(--u)); }
  .is-transparency    .value-icon { left: calc(635 * var(--u)); top: calc(547 * var(--u)); }
  .is-confidentiality .value-icon { left: calc(393 * var(--u)); top: calc(547 * var(--u)); }
  .is-independence    .value-icon { left: calc(318 * var(--u)); top: calc(316 * var(--u)); }

  /* cards around the diagram */
  .value-card { position: absolute; width: calc(291 * var(--u)); padding: 22px 20px 24px; }
  .is-integrity       .value-card { left: calc(416 * var(--u)); bottom: calc(645 * var(--u)); }   /* grows upwards, away from the ring */
  .is-independence    .value-card { left: 0;                    top: calc(287 * var(--u)); }
  .is-competence      .value-card { right: 0;                   top: calc(287 * var(--u)); }
  .is-confidentiality .value-card { left: calc(39 * var(--u));  top: calc(597 * var(--u)); width: calc(311 * var(--u)); }
  .is-transparency    .value-card { left: calc(774 * var(--u)); top: calc(597 * var(--u)); width: calc(311 * var(--u)); }
}

/* =========================================================
   iPad (768 – 1099)
   ========================================================= */
@media (max-width: 1099px) {
  #evidence-title, #mv-title, #impartiality-title, #approach-title { font-size: var(--fs-h3); }   /* iPad 28px, mobile 24px */

  .evidence { grid-template-columns: 1fr; min-height: 0; }
  .evidence-photo { height: auto; aspect-ratio: 16 / 9; max-height: 440px; }
  .evidence-panel { padding: var(--about-sy) var(--gutter); }   /* same spacing as the other sections; watermark sits on the bottom edge */
  .evidence-copy { max-width: 620px; }
  .evidence-mark { --wm-w: 380px; }

  /* Core Values: smaller hub as the heading, then a grid of cards with the icon on the top edge */
  .values-hub { width: 240px; height: 240px; margin: 0 auto 52px; }
  .values-ring i { display: none; }
  .values-core { width: 156px; height: 156px; font-size: var(--fs-h4); }

  .values-list { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 24px; }
  .value { position: relative; display: flex; flex-direction: column; padding-top: 42px; }
  .value:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
  .value-icon { position: absolute; z-index: 1; top: 0; left: calc(50% - 42px); width: 84px; height: 84px; }
  .value-card { flex: 1; padding: 56px 24px 30px; }
  .value-card p { font-size: var(--fs-sm); line-height: 1.55; }
}

/* =========================================================
   Mobile (< 768)
   ========================================================= */
@media (max-width: 767px) {
  .evidence-photo { aspect-ratio: 4 / 3; }
  .evidence-copy h2 { margin-bottom: 24px; }
  .evidence-copy p + p { margin-top: 18px; }
  .evidence-mark { --wm-w: 270px; right: calc(14px - var(--wm-w) * .049); }

  .about-split .split-body h2 { margin-bottom: 24px; }
  .mv-item + .mv-item { margin-top: 24px; }
  .about-photo img { border-radius: 0 36px; }

  .values-hub { width: 200px; height: 200px; margin-bottom: 44px; }
  .values-core { width: 132px; height: 132px; }
  .values-list { grid-template-columns: 1fr; gap: 40px; }
  .value:last-child { grid-column: auto; width: auto; justify-self: stretch; }
  .value { padding-top: 38px; }
  .value-icon { left: calc(50% - 38px); width: 76px; height: 76px; }
  .value-card { padding: 50px 22px 26px; }
}

/* ---------- Core Values: desktop sequence (set up by the inline script in about.html) ----------
   Icon pops in, then its card, then the next value. --seq-d holds each element's delay. */
html.motion .values-map [data-seq] {
  opacity: 0;
  transition: opacity .45s ease var(--seq-d, 0s), transform .6s cubic-bezier(.34,1.56,.64,1) var(--seq-d, 0s);
}
html.motion .values-map [data-seq="hub"]  { transform: scale(.85); }
html.motion .values-map [data-seq="icon"] { transform: scale(.3) rotate(-90deg); }
html.motion .values-map [data-seq="card"] { transform: translateY(18px); transition-timing-function: ease, cubic-bezier(.2,.8,.2,1); }
html.motion .values-map.seq-in [data-seq] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.motion .values-map [data-seq] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
