/* About page. Builds on theme.css: white sections, soft cards with 20px corners,
   the gradient kept for the accent words, the figures and the value numbers.
   Spacing follows the 8px step. */

/* The theme gradient with a deeper green end, so gradient text keeps 3:1 on white at large sizes. */
.ab-head, .ab-intro, .ab-values { --ab-grad-text: linear-gradient(95deg, var(--blue-600), var(--green-600)); }

/* ---------- Page head ---------- */
.ab-head h1 { max-width: 18ch; }
.ab-accent { background: var(--ab-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ab-head .lead { max-width: 68ch; }
.ab-head-actions { margin-top: 32px; }
@media (min-width: 480px) { .ab-accent { white-space: nowrap; } }
/* The head is light now, so the focus ring has to be dark enough to see. */
.ab-head :focus-visible { outline-color: var(--blue-500); }

/* ---------- Who we are, with the figures ---------- */
.ab-intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ab-intro-grid.is-single { grid-template-columns: minmax(0, 760px); }
.ab-intro h2 { margin-bottom: 16px; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.ab-intro .lead { margin: 0; }
.ab-kicker { margin: 0 0 16px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ab-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ab-stats li { position: relative; display: grid; align-content: start; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--grad-soft); }
.ab-stats b { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: var(--ab-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ab-stat-label { color: var(--ink); font-size: .96rem; font-weight: 700; }
.ab-stat-note { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.ab-stat-icon { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--green-700); box-shadow: 0 1px 2px rgba(11, 27, 49, .06); }
.ab-stat-icon .icon { width: 20px; height: 20px; }
/* An odd number of figures: the last one spans the row instead of leaving a gap. */
.ab-stats li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Vision and mission ---------- */
.ab-vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ab-vm-card { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; box-shadow: var(--card-shadow); }
.ab-vm-card .card-icon { margin-bottom: 24px; }
.ab-vm-card h3 { margin-bottom: 8px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ab-statement { margin: 0; max-width: 36ch; color: var(--ink); font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); font-weight: 600; line-height: 1.4; text-wrap: pretty; }

/* ---------- Values: heading on the left, a numbered list on the right ---------- */
.ab-values-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ab-values-head { margin-bottom: 0; }
.ab-values { margin: 0; padding: 0 clamp(16px, 2.5vw, 32px); list-style: none; border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; box-shadow: var(--card-shadow); }
.ab-value { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding-block: 24px; }
.ab-value + .ab-value { border-top: 1px solid var(--line); }
.ab-value-num { font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: var(--ab-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ab-value h3 { margin-bottom: 4px; font-size: 1.12rem; }
.ab-value p { margin: 0; color: var(--muted); }
@media (min-width: 961px) { .ab-values-head { position: sticky; top: 104px; } }

/* ---------- Approach ---------- */
.ab-approach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ab-approach .card { padding: clamp(24px, 2.6vw, 32px); }
.ab-approach .card p { font-size: .98rem; line-height: 1.6; }

/* ---------- Where to find us ---------- */
.ab-where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ab-where h2 { margin-bottom: 16px; letter-spacing: -.025em; }
.ab-where .lead { margin: 0; }
.ab-where-actions { margin-top: 32px; }
.ab-sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ab-sectors .card { padding: 24px; }
.ab-sectors .card-icon { margin-bottom: 16px; }
.ab-sectors h3 { font-size: 1.08rem; }
.ab-sectors p { font-size: .94rem; }

/* ---------- Year book link and closing call to action ---------- */
.ab-close { padding-top: 0; }
.ab-close .yb-promo { margin-bottom: 24px; padding: clamp(24px, 3vw, 32px); border-radius: var(--card-radius); background: var(--grad-soft); }
.ab-close .yb-promo .card-icon { background: #fff; }

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {
  .ab-intro-grid, .ab-values-grid, .ab-where { grid-template-columns: 1fr; }
  .ab-approach { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ab-vm { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .ab-sectors { grid-template-columns: 1fr; }
  .ab-stats { gap: 12px; }
  .ab-stats li { padding: 16px; }
  .ab-stat-icon { display: none; }
  .ab-value { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .ab-head-actions .btn, .ab-where-actions .btn { flex: 1 1 100%; }
}

/* Windows high-contrast mode drops background-clip text; give the words a real colour. */
@media (forced-colors: active) {
  .ab-accent, .ab-stats b, .ab-value-num { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
}


/* ---------- The Team: portrait cards ----------
   A portrait fills each card. On hover, keyboard focus or tap, a panel rises
   over the portrait with the full role, a short bio and skills. The name and
   short role stay visible below. No movement under reduced motion. */
.ab-team { background: var(--tint, #f1f6fd); overflow: hidden; }
.tm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; margin: 48px 0 0; padding: 0; list-style: none; }
.tm-slot { --tm: #1677cc; --tm-soft: #dcecfb; min-width: 0; container-type: inline-size; }
.tm-sky { --tm: #1aa7ec; --tm-soft: #d8f0fd; }
.tm-green { --tm: #0c9a50; --tm-soft: #dcf5e7; }
.tm-sand { --tm: #b7791f; --tm-soft: #fbefd6; }
.tm-card { display: flex; flex-direction: column; height: 100%; padding: 10px 10px 16px; border: 1px solid var(--card-line, #dbe6f4); border-radius: 26px; background: #fff; box-shadow: 0 18px 40px -28px rgba(7, 29, 56, .45); outline: none; cursor: pointer; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease; }
.tm-card:hover, .tm-card:focus, .tm-card:focus-within { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tm) 45%, #fff); box-shadow: 0 30px 54px -28px rgba(7, 29, 56, .55); }
.tm-card:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 4px; }
.tm-photo { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 18px; background: var(--tm-soft); overflow: hidden; isolation: isolate; }
.tm-photo > svg, .tm-photo > img, .tm-photo > picture, .tm-photo > picture img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.tm-photo > svg { fill: color-mix(in srgb, var(--tm) 62%, #fff); }
.tm-card:hover .tm-photo > img, .tm-card:hover .tm-photo > picture, .tm-card:focus .tm-photo > img, .tm-card:focus .tm-photo > picture { transform: scale(1.05); }
.tm-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--tm); z-index: 1; }
.tm-shape-arch { border-radius: 999px 999px 18px 18px; }
.tm-shape-oval { border-radius: 46% 46% 18px 18px / 34% 34% 18px 18px; }
.tm-shape-soft { border-radius: 18px; }
.tm-shape-pills { border-radius: 18px 64px 18px 18px; }
.tm-over { position: absolute; inset: auto 0 0 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; max-height: 100%; padding: 56px 16px 18px; background: linear-gradient(180deg, rgba(7, 29, 56, 0) 0%, rgba(7, 29, 56, .9) 26%, rgba(7, 29, 56, .97) 100%); color: #fff; opacity: 0; transform: translateY(18px); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.tm-card:hover .tm-over, .tm-card:focus .tm-over, .tm-card:focus-within .tm-over { opacity: 1; transform: none; }
.tm-over-role { margin: 0; color: #bfe0ff; font-size: .74rem; font-weight: 700; line-height: 1.35; letter-spacing: .02em; }
.tm-bio { margin: 8px 0 0; color: #fff; font-size: .82rem; line-height: 1.5; }
.tm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.tm-tags li { padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: .7rem; font-weight: 600; }
.tm-meta { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 16px 6px 0; text-align: center; }
.tm-meta h3 { margin: 0; color: var(--ink); font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; overflow-wrap: break-word; }
.tm-role { margin: 6px 0 0; padding: 4px 12px; border-radius: 999px; background: var(--tm-soft); color: color-mix(in srgb, var(--tm) 62%, #071d38); font-size: .78rem; font-weight: 700; line-height: 1.35; }
.tm-draft { margin: 10px 0 0; padding: 3px 10px; border-radius: 999px; background: #fff4d6; color: #7a5200; font-size: .68rem; font-weight: 700; }
.tm-links { display: flex; gap: 8px; margin: 12px 0 0; }
.tm-links:empty { display: none; }
.tm-links a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--card-line, #dbe6f4); border-radius: 50%; color: var(--ink); }
.tm-links a:hover { border-color: var(--tm); color: var(--tm); }
.tm-links .icon { width: 18px; height: 18px; }
.tm-cta { display: flex; justify-content: center; margin: 48px 0 0; }
/* Narrow cards: the panel keeps the role and bio and drops the skill chips, so it never outgrows the portrait. */
@container (max-width: 262px) { .tm-tags { display: none; } .tm-bio { font-size: .76rem; line-height: 1.45; } .tm-over { padding: 44px 12px 14px; } }
@media (max-width: 1040px) { .tm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } .tm-card { padding: 8px 8px 14px; border-radius: 22px; } .tm-meta h3 { font-size: 1rem; } .tm-bio { font-size: .76rem; } .tm-over { padding: 40px 12px 14px; } }
@media (max-width: 540px) { .tm-grid { grid-template-columns: minmax(0, 1fr); max-width: 320px; margin-inline: auto; gap: 22px; } }
@media (prefers-reduced-motion: reduce) { .tm-card, .tm-over, .tm-photo > img, .tm-photo > picture { transition: none; } .tm-card:hover, .tm-card:focus, .tm-card:focus-within { transform: none; } .tm-card:hover .tm-photo > img, .tm-card:hover .tm-photo > picture, .tm-card:focus .tm-photo > img, .tm-card:focus .tm-photo > picture { transform: none; } .tm-over { transform: none; } }
.tm-note { margin: 40px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.tm-note + .tm-cta { margin-top: 20px; }
