/* About. Loaded after main.css, projects.css (tokens, hero, lightbox, .pd-link)
   and services.css (chapter nav, .sv-chapter, .sv-intro, .sv-label, reveal). Every class here is prefixed ab-. */

.ab-hero__names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 16px 0 0; font-size: clamp(1rem, .9rem + .4vw, 1.25rem); font-weight: 600; color: rgba(255,255,255,.85); }
.ab-hero__names span + span { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.35); font-size: 1.1em; }

/* Section heads that reuse the outlined chapter number without a photo */
.ab-head { margin-bottom: clamp(32px, 5vw, 56px); }
.ab-head .sv-intro__name { margin-top: 12px; }

/* The "who we are" rendering is pale grey: keep it on white, landscape, no dark overlay */
.ab-who__media { aspect-ratio: 4 / 3; background: #fff; }

/* ---------- 02 Mission: two full-bleed photo panels ---------- */
.ab-mission { background: var(--black); color: #fff; padding-top: var(--section-y); }
.ab-mission__head { margin-bottom: clamp(32px, 4vw, 48px); }
.ab-mission .sv-intro__num { -webkit-text-stroke-color: rgba(255,255,255,.55); }
.ab-mission .sv-intro__name { color: #fff; margin-top: 12px; }
.ab-mission__panels { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.ab-panel { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(440px, 46vw, 640px); display: flex; align-items: flex-end; }
.ab-panel > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--px-ease); }
.ab-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.88) 100%); }
.ab-panel + .ab-panel { border-left: 1px solid var(--rule-dark); }
.ab-panel__body { padding: clamp(28px, 4vw, 56px); max-width: 620px; }
.ab-panel .sv-label { color: rgba(255,255,255,.75); }
.ab-panel__text { margin: 0 0 24px; font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem); font-weight: 700; line-height: 1.3; }
.ab-panel .pd-link { color: #fff; }
@media (hover: hover) { .ab-panel:hover > img { transform: scale(1.05); } }

/* ---------- 03 Why TITCO: bento of heading + seven values ---------- */
.ab-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
/* 4 + 3: a 12-column grid where the first four values take 3 columns and the last three take 4 */
.ab-values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.ab-value { grid-column: span 3; }
.ab-value:nth-child(n+5) { grid-column: span 4; }
.ab-values__lede { margin: 0; max-width: 46ch; font-size: 1.0625rem; }
.ab-value {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 200px;
  padding: clamp(20px, 2vw, 28px); background: #fff; border: 1px solid var(--rule); border-radius: var(--px-radius); overflow: hidden;
  transition: border-color .3s, box-shadow .4s var(--px-ease), transform .4s var(--px-ease);
}
.ab-value::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--oxblood); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--px-ease); }
.ab-value__n { font-size: .75rem; font-weight: 700; letter-spacing: .14em; color: var(--oxblood); }
.ab-value img { width: 64px; height: 64px; object-fit: contain; }
.ab-value h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); font-weight: 800; line-height: 1.2; color: var(--black); }
@media (hover: hover) {
  .ab-value:hover { border-color: transparent; box-shadow: 0 24px 40px -28px rgba(0,0,0,.45); transform: translateY(-4px); }
  .ab-value:hover::after { transform: scaleX(1); }
}

/* ---------- 04 Board ---------- */
.ab-people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.ab-person { display: flex; flex-direction: column; }
/* Portrait box: keeps the live page's 3:4.8 frame so each photo's lift/zoom tuning still lands the same way;
   the lower part fades to white where the photos run out. */
.ab-person__photo { position: relative; isolation: isolate; aspect-ratio: 3 / 3.6; overflow: hidden; border-radius: var(--px-radius); background: var(--tone, var(--mist)); }
.ab-person__photo img { position: absolute; top: calc(var(--lift, -16%) * 4.8 / 3.6); left: 0; z-index: -1; width: 100%; height: calc(100% * 4.8 / 3.6); object-fit: cover; transform: scale(var(--zoom, 1)); transform-origin: var(--origin, 50% 0); transition: transform 1s var(--px-ease); }
.ab-person__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to top, rgba(255,255,255,.95), rgba(255,255,255,0)); }
.ab-person__body { padding: 18px 2px 0; }
.ab-person__role { margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); }
.ab-person__name { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 800; line-height: 1.15; color: var(--black); }
.ab-person__stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.ab-person__stats dt { font-size: .625rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.ab-person__stats dd { margin: 2px 0 0; font-size: .9375rem; font-weight: 700; color: var(--charcoal); }
.ab-person__in { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; font-size: .8125rem; font-weight: 700; color: var(--oxblood); text-decoration: none; }
.ab-person__in svg { width: 16px; height: 16px; }
.ab-person__in:hover { text-decoration: underline; }
@media (hover: hover) { .ab-person:hover .ab-person__photo img { transform: scale(calc(var(--zoom, 1) * 1.04)); } }

/* ---------- 05 Prequalification documents (dark chapter) ---------- */
.ab-docs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); grid-auto-flow: dense; }
.ab-doc { display: flex; flex-direction: column; background: #141414; border: 1px solid var(--rule-dark); border-radius: var(--px-radius); overflow: hidden; }
.ab-doc--key { grid-column: span 2; flex-direction: row; height: clamp(240px, 22vw, 300px); }
.ab-doc__thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden; background: #fff; cursor: zoom-in;
}
.ab-doc--key .ab-doc__thumb { width: 46%; flex: none; aspect-ratio: auto; height: 100%; }
.ab-doc--key .ab-doc__thumb img { position: absolute; inset: 0; }
.ab-doc__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1s var(--px-ease); }
.ab-doc__icon, .ab-iso__cert .ab-doc__icon, .ab-license .ab-doc__icon {
  position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; padding: 8px; border-radius: 50%;
  background: rgba(0,0,0,.72); color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--px-ease);
}
.ab-doc__body { padding: 16px 18px 18px; }
.ab-doc--key .ab-doc__body { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(18px, 2vw, 28px); }
.ab-doc h3 { font-size: 1rem; font-weight: 800; line-height: 1.2; }
.ab-doc--key h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.ab-doc__code { margin: 8px 0 0; font-size: .9375rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ab-doc__code + .ab-doc__code { margin-top: 2px; font-weight: 500; color: rgba(255,255,255,.75); font-size: .8125rem; }
.ab-doc__kind { margin: 8px 0 0; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ab-doc__thumb:focus-visible, .ab-iso__cert:focus-visible, .ab-license:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- 06 ISO certificates + licences ---------- */
.ab-iso { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px); }
.ab-iso__cert {
  position: relative; display: block; width: 100%; aspect-ratio: 892 / 1000; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--rule); border-radius: var(--px-radius); background: #fff;
}
.ab-iso__cert img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1s var(--px-ease); }
.ab-iso__std { margin: 18px 0 0; font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -.01em; color: var(--black); }
.ab-iso__scope { margin: 4px 0 0; font-size: .9375rem; color: var(--steel); }

.ab-licenses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ab-license {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 12px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--rule); border-radius: var(--px-radius); background: #fff;
}
.ab-license img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .8s var(--px-ease); }

@media (hover: hover) {
  .ab-doc__thumb:hover img, .ab-iso__cert:hover img { transform: scale(1.04); }
  .ab-license:hover img { transform: scale(1.06); }
  .ab-doc__thumb:hover .ab-doc__icon, .ab-iso__cert:hover .ab-doc__icon, .ab-license:hover .ab-doc__icon { opacity: 1; transform: none; }
}
.ab-doc__thumb:focus-visible .ab-doc__icon, .ab-iso__cert:focus-visible .ab-doc__icon, .ab-license:focus-visible .ab-doc__icon { opacity: 1; transform: none; }
/* Documents are paper: show them on a light ground in the viewer */
#prequalifications .pd-lightbox__img, #certifications .pd-lightbox__img { background: #fff; }

/* ---------- Onward links ---------- */
.ab-onward { display: grid; grid-template-columns: 1fr 1fr; background: var(--black); }
.ab-onward__link { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(280px, 30vw, 420px); padding: clamp(28px, 4vw, 56px); color: #fff; text-decoration: none; }
.ab-onward__link + .ab-onward__link { border-left: 1px solid var(--rule-dark); }
.ab-onward__link > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform 1.2s var(--px-ease), opacity .6s; }
.ab-onward__link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(66,5,0,.7) 0%, rgba(0,0,0,.15) 75%); }
.ab-onward__link .px-eyebrow { margin: 0 0 10px; }
.ab-onward__name { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.ab-onward__arrow { position: absolute; right: clamp(28px, 4vw, 56px); bottom: clamp(28px, 4vw, 56px); width: 60px; height: 60px; padding: 17px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; transition: background .3s, color .3s, transform .4s var(--px-ease); }
.ab-onward__link:hover > img { transform: scale(1.04); opacity: .7; }
.ab-onward__link:hover .ab-onward__arrow { background: #fff; color: var(--oxblood); transform: translateX(6px); }
.ab-onward__link:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .ab-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-value, .ab-value:nth-child(n+5) { grid-column: auto; }
  .ab-value:last-child { grid-column: 1 / -1; }
  .ab-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-licenses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .ab-hero__names span + span { padding-left: 0; border-left: 0; flex-basis: 100%; text-align: left; }
  .ab-mission__panels, .ab-onward { grid-template-columns: 1fr; }
  .ab-panel { min-height: 420px; }
  .ab-panel + .ab-panel, .ab-onward__link + .ab-onward__link { border-left: 0; border-top: 1px solid var(--rule-dark); }

  .ab-values { gap: 10px; }
  .ab-value { min-height: 168px; gap: 14px; padding: 18px; }
  .ab-value img { width: 48px; height: 48px; }

  /* Board becomes a swipe strip so each portrait stays large */
  .ab-people { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
  .ab-people::-webkit-scrollbar { display: none; }
  .ab-person { flex: 0 0 78%; scroll-snap-align: start; }

  .ab-docs { gap: 10px; }
  .ab-doc--key { flex-direction: column; height: auto; }
  .ab-doc--key .ab-doc__thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .ab-doc__body { padding: 12px 14px 14px; }
  .ab-doc h3 { font-size: .9375rem; }
  .ab-doc__icon, .ab-iso__cert .ab-doc__icon, .ab-license .ab-doc__icon { opacity: 1; transform: none; width: 30px; height: 30px; padding: 7px; }

  .ab-iso { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
  .ab-iso::-webkit-scrollbar { display: none; }
  .ab-iso > li { flex: 0 0 72%; scroll-snap-align: start; }
  .ab-licenses { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ab-onward__arrow { width: 48px; height: 48px; padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-panel > img, .ab-value, .ab-value::after, .ab-person__photo img, .ab-doc__thumb img, .ab-iso__cert img, .ab-license img, .ab-onward__link > img, .ab-onward__arrow, .ab-doc__icon { transition: none; }
}
