﻿/* =========================================================
   ABS Global — About page (about.html)
   Page-specific styles. Builds on assets/css/style.css
   ========================================================= */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(104px, 10vw, 156px) 0 clamp(126px, 13vw, 158px);
  background: #0c2540;
  color: #fff;
  text-align: center;
}
.page-hero__bg {
  position: absolute;
  inset: -2%;
  z-index: -3;
  background: url('../img/about-hero.webp') center 40% / cover no-repeat;
  transform: scale(1.03);
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 16, 28, .78) 0%, rgba(4, 16, 28, .35) 42%, rgba(4, 16, 28, 0) 62%),
    linear-gradient(112deg, rgba(5, 20, 36, .95) 0%, rgba(10, 38, 66, .89) 38%, rgba(22, 64, 105, .74) 70%, rgba(41, 94, 148, .62) 100%),
    radial-gradient(720px 400px at 84% 6%, rgba(223, 6, 34, .15), transparent 70%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, transparent 78%);
  opacity: .45;
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 940px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero h1 {
  max-width: 860px;
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.05rem, 3.9vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: .002em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 6px 40px rgba(2, 12, 24, .35);
}
.page-hero__lead {
  max-width: 700px;
  margin: 20px auto 0;
  font-size: clamp(.95rem, 1.1vw, 1.04rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, .82);
  text-wrap: pretty;
}
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* breadcrumbs */
.crumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .62);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .75);
  transition: color .2s;
}
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 13px; height: 13px; }
.crumbs__sep { color: rgba(255, 255, 255, .32); display: inline-flex; }
.crumbs [aria-current="page"] { color: #fff; font-weight: 600; }

/* ---------- Stats overlapping the hero ---------- */
.hero-stats-wrap {
  position: relative;
  z-index: 5;
  margin-top: -66px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 40px 80px -44px rgba(13, 35, 58, .55);
}
.hero-stat {
  position: relative;
  padding: 24px 18px;
  text-align: center;
}
.hero-stat + .hero-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26%;
  bottom: 26%;
  width: 1px;
  background: var(--line);
}
.hero-stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}
.hero-stat__label {
  display: block;
  margin-top: 9px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Intro ---------- */
.intro { overflow: hidden; padding: clamp(56px, 6vw, 86px) 0 clamp(64px, 7.5vw, 104px); }
.intro__grid {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: clamp(38px, 5.2vw, 76px);
}
.intro__content .pill { margin-bottom: 20px; }
.intro__content h2 { margin-bottom: 18px; }
.intro__content .lead { margin-bottom: 14px; }
.intro__content > p { max-width: 580px; }
.intro__content .checklist { margin: 26px 0 30px; }
.intro__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.intro__media { position: relative; }
.intro__figure {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 44px 80px -48px rgba(13, 35, 58, .65);
}
.intro__figure img {
  width: 100%;
  aspect-ratio: 1 / 1.02;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.intro__media:hover .intro__figure img { transform: scale(1.04); }
.intro__frame {
  position: absolute;
  z-index: 1;
  inset: 26px -26px 30px 32px;
  border: 1px solid var(--brand-200);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(238, 245, 252, .9), rgba(238, 245, 252, 0));
}

.cred-card {
  position: absolute;
  z-index: 3;
  left: -20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px 13px 13px;
  border: 1px solid #eef3f9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 26px 50px -26px rgba(13, 35, 58, .5);
}
.cred-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
}
.cred-card__icon svg { width: 22px; height: 22px; }
.cred-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.cred-card small { font-size: .74rem; color: var(--muted); }

/* ---------- Corporate identity timeline ---------- */
.identity {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.identity .section-head { margin-bottom: clamp(30px, 3.6vw, 44px); }

.tl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  height: 158px;
  margin: 0 0 28px;
}
.tl::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 2px;
  transform: translateY(-1px);
  background: #d7e3f0;
}
.tl__progress {
  position: absolute;
  left: 10%;
  top: 50%;
  width: 0;
  height: 2px;
  transform: translateY(-1px);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-200), var(--brand));
  transition: width .45s var(--ease);
  z-index: 0;
}
.tl__step {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tl__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--brand-200);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease);
}
.tl__dot svg { width: 15px; height: 15px; stroke-width: 2.6; }
.tl__step:hover .tl__dot { border-color: var(--brand); transform: scale(1.06); }
.tl__step.is-active .tl__dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 7px rgba(55, 118, 189, .13);
}
.tl__label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 220px;
  white-space: nowrap;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: color .25s, border-color .25s, box-shadow .25s;
}
.tl__step--above .tl__label { bottom: calc(50% + 30px); }
.tl__step--below .tl__label { top: calc(50% + 30px); }
.tl__step:hover .tl__label { border-color: var(--brand-200); color: var(--brand-700); }
.tl__step.is-active .tl__label {
  border-color: var(--brand-200);
  color: var(--brand-700);
  box-shadow: 0 12px 24px -18px rgba(13, 35, 58, .5);
}

.identity__panels { position: relative; }
.id-panel {
  display: none;
  align-items: flex-start;
  gap: clamp(18px, 2.4vw, 26px);
  min-height: 268px;
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 26px 60px -46px rgba(13, 35, 58, .45);
  position: relative;
}
.id-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}
.id-panel.is-active { display: flex; animation: panelIn .45s var(--ease) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.id-panel__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid var(--brand-100);
  border-radius: 15px;
  background: var(--brand-50);
  color: var(--brand);
}
.id-panel__icon svg { width: 24px; height: 24px; }
.id-panel__body { min-width: 0; }
.id-panel__eyebrow {
  display: block;
  margin-bottom: 2px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.id-panel h3 {
  margin: 4px 0 10px;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1.7vw, 1.38rem);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
}
.id-panel p {
  margin: 0;
  max-width: 84ch;
  font-size: .93rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- The ABS Global Difference ---------- */
.difference { background: #fff; }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.diff-card {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.diff-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
.diff-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-200);
  box-shadow: 0 30px 54px -34px rgba(13, 35, 58, .45);
}
.diff-card:hover::after { transform: scaleX(1); }
.diff-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.diff-card__num {
  font-family: var(--font-head);
  font-size: 2.55rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--brand-200);
  transition: color .3s;
}
.diff-card:hover .diff-card__num { color: var(--brand); }
.diff-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--brand-100);
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  transition: background .3s, color .3s, border-color .3s;
}
.diff-card__icon svg { width: 20px; height: 20px; }
.diff-card:hover .diff-card__icon { background: var(--brand); border-color: var(--brand); color: #fff; }
.diff-card h3 {
  margin: 16px 0 8px;
  font-family: var(--font-head);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.diff-card p { margin: 0; font-size: .86rem; line-height: 1.7; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl__label { font-size: .72rem; max-width: 170px; padding: 7px 12px; white-space: normal; }
}

@media (max-width: 980px) {
  .intro__grid { grid-template-columns: 1fr; gap: 42px; }
  .intro__media { max-width: 540px; margin-inline: auto; }
  .id-panel { min-height: 0; }
}

@media (max-width: 860px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stat:nth-child(3)::before { display: none; }
  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) { border-top: 1px solid var(--line); }

  /* timeline becomes a scrollable chip strip */
  .tl {
    display: flex;
    height: auto;
    gap: 8px;
    margin: 0 0 20px;
    padding: 4px 2px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .tl::-webkit-scrollbar { display: none; }
  .tl {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent 100%);
  }
  .tl::before,
  .tl__progress { display: none; }
  .tl__step {
    flex: 0 0 auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px 9px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    scroll-snap-align: start;
  }
  .tl__step.is-active { border-color: var(--brand-200); background: var(--brand-50); }
  .tl__dot { width: 24px; height: 24px; border-width: 1.5px; }
  .tl__dot svg { width: 11px; height: 11px; }
  .tl__step.is-active .tl__dot { box-shadow: none; }
  .tl__label {
    position: static;
    transform: none;
    max-width: none;
    padding: 0;
    border: 0;
    background: none;
    font-size: .8rem;
    white-space: nowrap;
  }
  .tl__step.is-active .tl__label { box-shadow: none; background: none; }
  .id-panel { flex-direction: column; gap: 16px; }
  .id-panel__icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 13px; }
  .id-panel__icon svg { width: 21px; height: 21px; }
}

@media (max-width: 760px) {
  .page-hero { padding-bottom: 118px; }
  .page-hero__inner { width: calc(100% - 36px); }
  .hero-stats-wrap { margin-top: -56px; }
  .intro__frame { display: none; }
  .cred-card { left: 12px; bottom: -14px; }
  .intro__media { padding-bottom: 12px; }
}

@media (max-width: 560px) {
  .hero-stat { padding: 20px 10px; }
  .hero-stat__label { font-size: .6rem; letter-spacing: .1em; }
  .diff-grid { grid-template-columns: 1fr; }
  .page-hero__actions .btn { width: 100%; }
  .intro__actions .btn { width: 100%; }
  .intro__actions { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .id-panel.is-active { animation: none; }
}
