/* ============================================================
   ABOUT — page-specific styles
   Prefix: .ab-
   ============================================================ */

/* HERO */
.ab-hero {
  position: relative;
  padding: 150px 0 56px;
  background: linear-gradient(180deg, #fff 0%, #FBF7FE 100%);
  overflow: hidden;
}
.ab-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ab-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #EC0677;
  background: rgba(236, 6, 119, 0.08);
  border: 1px solid rgba(236, 6, 119, 0.18);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.ab-hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #EC0677;
  box-shadow: 0 0 8px rgba(236,6,119,0.7);
}
.ab-hero-title {
  font-size: clamp(44px, 4.6vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #14111C;
  margin-bottom: 28px;
}
.ab-hero-title .accent {
  background: linear-gradient(90deg, #EC0677 0%, #8A2BE2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ab-hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: #4A4255;
  max-width: 540px;
}

/* Mascots cluster in hero */
.ab-hero-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  min-height: 420px;
}
.ab-hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(236,6,119,0.10) 0%, transparent 65%);
  z-index: 0;
}
.ab-mascot {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(20,17,28,0.18));
  transition: transform .4s var(--ease, cubic-bezier(0.4, 0, 0.2, 1));
}
.ab-mascot.liao { width: 150px; transform: translateY(-12px); }
.ab-mascot.bo   { width: 200px; }
.ab-mascot.jam  { width: 150px; transform: translateY(-8px); }
.ab-mascot:hover { transform: translateY(-20px); }

/* MANIFESTO */
.ab-manifesto {
  padding: 100px 0 130px;
  background: #fff;
  overflow: hidden;
}
.ab-manifesto-grid {
  display: block;
  max-width: 880px;
  margin: 0 auto;
}
.ab-manifesto-head {
  position: relative;
  text-align: center;
  padding: 40px 0 64px;
  overflow: visible;
}
.ab-manifesto-watermark {
  position: absolute;
  top: 65%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  width: 780px;
  height: auto;
  aspect-ratio: 1328 / 1302;
  object-fit: contain;
  opacity: 0.14;
  filter: saturate(1.2);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.ab-manifesto-head .ab-eyebrow {
  position: relative;
  z-index: 1;
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #EC0677;
  margin-bottom: 20px;
}
.ab-manifesto-head h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #2A2434;
}
.ab-manifesto-head h2 .ab-manifesto-dot {
  background: linear-gradient(135deg, #EC0677 0%, #8A2BE2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ab-manifesto-body {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 0;
  color: #14111C;
}
.ab-manifesto-body::before {
  display: none;
}
.ab-manifesto-body p {
  font-size: 19px;
  line-height: 1.9;
  margin: 0 0 22px;
  color: #2A2434;
  position: relative;
  z-index: 1;
  letter-spacing: 0.005em;
}
.ab-manifesto-body p:last-child {
  margin-bottom: 0;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(20,17,28,0.10);
  font-weight: 800;
  font-size: 20px;
  color: #14111C;
  background: linear-gradient(135deg, #EC0677 0%, #8A2BE2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* STATS BAND */
.ab-stats {
  padding: 100px 0;
  background: #FBF7FE;
}
/* Variant: stats attached right under hero — tight top, bg matches hero's bottom gradient stop. */
.ab-stats.ab-stats-attached {
  padding: 0 0 80px;
  margin-top: 0;
  background: #FBF7FE;
  position: relative;
  z-index: 2;
}
.ab-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ab-stat {
  background: #fff;
  border: 1px solid #ECE0F5;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  transition: transform .3s var(--ease, cubic-bezier(0.4, 0, 0.2, 1)), box-shadow .3s var(--ease, cubic-bezier(0.4, 0, 0.2, 1));
}
.ab-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(138,43,226,0.25);
}
.ab-stat-num {
  font-family: var(--font-en);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(110deg, #8A2BE2, #EC0677 55%, #FF9F1C);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.ab-stat-suffix {
  font-family: var(--font-en);
  font-size: 0.55em;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(110deg, #8A2BE2, #EC0677 55%, #FF9F1C);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ab-stat-label {
  font-size: 14px;
  color: #6B6377;
  font-weight: 500;
  line-height: 1.5;
}

/* TIMELINE */
.ab-timeline {
  padding: 130px 0;
  background: #fff;
}
.ab-timeline-head {
  text-align: center;
  margin-bottom: 72px;
}
.ab-timeline-head .ab-eyebrow {
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #EC0677;
  margin-bottom: 16px;
}
.ab-timeline-head h2 {
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #14111C;
}
.ab-timeline-list {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding-left: 170px;
  list-style: none;
}
.ab-timeline-list::before {
  content: "";
  position: absolute;
  left: 155px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, #EC0677 0%, #8A2BE2 100%);
  border-radius: 2px;
  opacity: 0.35;
}
.ab-tl-item {
  position: relative;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}
.ab-tl-year {
  position: absolute;
  left: -170px;
  top: 50%;
  transform: translateY(-50%);
  width: 112px;
  text-align: right;
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 800;
  color: #EC0677;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ab-tl-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #EC0677;
  box-shadow: 0 0 0 4px rgba(236,6,119,0.12);
  z-index: 2;
  transform: translateY(-50%);
  transform-origin: center center;
  transition: transform .3s var(--ease, cubic-bezier(0.4,0,0.2,1)), box-shadow .3s var(--ease, cubic-bezier(0.4,0,0.2,1));
}
.ab-tl-item:hover::before {
  transform: translateY(-50%) scale(1.25);
  box-shadow: 0 0 0 6px rgba(236,6,119,0.18);
}
/* Pulsing dot for the most recent milestone */
.ab-tl-item[data-current="true"]::after {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #EC0677;
  z-index: 1;
  transform-origin: center center;
  animation: ab-tl-pulse 2s ease-out infinite;
}
@keyframes ab-tl-pulse {
  0%   { transform: translateY(-50%) scale(1);   opacity: 0.7; }
  100% { transform: translateY(-50%) scale(3.2); opacity: 0; }
}
/* Card */
.ab-tl-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid #ECE0F5;
  border-radius: 16px;
  padding: 24px 36px;
  margin-left: 36px;
  transition: transform .35s var(--ease, cubic-bezier(0.4,0,0.2,1)),
              box-shadow .35s var(--ease, cubic-bezier(0.4,0,0.2,1)),
              border-color .35s var(--ease, cubic-bezier(0.4,0,0.2,1));
}
.ab-tl-item:hover .ab-tl-card {
  transform: translateX(6px);
  box-shadow: 0 18px 36px -18px rgba(138,43,226,0.30);
  border-color: rgba(236,6,119,0.30);
}
/* Icon badge — gradient bg differs per category */
.ab-tl-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #EC0677 0%, #8A2BE2 100%);
  flex-shrink: 0;
}
.ab-tl-icon svg { width: 26px; height: 26px; }
/* Variant: real brand/award logo on white background */
.ab-tl-icon.ab-tl-icon--logo {
  background: #fff;
  border: 1px solid rgba(20,17,28,0.08);
  box-shadow: 0 4px 10px -4px rgba(20,17,28,0.10);
  padding: 8px;
}
.ab-tl-icon.ab-tl-icon--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Full-bleed variant: logo image already has its own background, so no card padding or white fill */
.ab-tl-icon.ab-tl-icon--logo.ab-tl-icon--bleed {
  background: transparent;
  border: none;
  padding: 0;
  overflow: hidden;
}
.ab-tl-icon.ab-tl-icon--logo.ab-tl-icon--bleed img {
  object-fit: cover;
}
/* Unified brand palette — only 2 gradients to keep the timeline cohesive.
   Pink = celebration (awards, milestones, founding moments).
   Purple = building / scaling (cert, partner, expansion, launch). */
.ab-tl-item[data-cat="award"]     .ab-tl-icon:not(.ab-tl-icon--logo),
.ab-tl-item[data-cat="milestone"] .ab-tl-icon:not(.ab-tl-icon--logo),
.ab-tl-item[data-cat="founding"]  .ab-tl-icon:not(.ab-tl-icon--logo) {
  background: linear-gradient(135deg, #EC0677 0%, #8A2BE2 100%);
}
.ab-tl-item[data-cat="cert"]      .ab-tl-icon:not(.ab-tl-icon--logo),
.ab-tl-item[data-cat="partner"]   .ab-tl-icon:not(.ab-tl-icon--logo),
.ab-tl-item[data-cat="expansion"] .ab-tl-icon:not(.ab-tl-icon--logo),
.ab-tl-item[data-cat="launch"]    .ab-tl-icon:not(.ab-tl-icon--logo) {
  background: linear-gradient(135deg, #8A2BE2 0%, #4F46E5 100%);
}
/* Body */
.ab-tl-body {
  min-width: 0;
}
.ab-tl-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #EC0677;
  background: rgba(236,6,119,0.08);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.ab-tl-event {
  font-size: 16px;
  line-height: 1.55;
  color: #14111C;
  letter-spacing: -0.005em;
}

/* GLOBAL FOOTPRINT */
.ab-global {
  padding: 130px 0;
  background: linear-gradient(180deg, #fff 0%, #FBF7FE 100%);
}
.ab-global-head {
  text-align: center;
  margin-bottom: 56px;
}
.ab-global-head .ab-eyebrow {
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #EC0677;
  margin-bottom: 16px;
}
.ab-global-head h2 {
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #14111C;
  margin-bottom: 16px;
}
.ab-global-head p {
  font-size: 17px;
  color: #4A4255;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.ab-markets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto 40px;
}
.ab-market {
  position: relative;
  background: #fff;
  border: 1px solid #ECE0F5;
  border-radius: 20px;
  padding: 40px 28px 32px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease, cubic-bezier(0.4, 0, 0.2, 1)),
              box-shadow .35s var(--ease, cubic-bezier(0.4, 0, 0.2, 1)),
              border-color .35s var(--ease, cubic-bezier(0.4, 0, 0.2, 1));
}
/* Semi-transparent map silhouette as a watermark on the right side of card.
   Maps are placed via an ::after layer with very low opacity + soft radial
   fade from bottom-right corner — avoids hard edges from clipping. */
.ab-market[data-map] {
  --map-url: none;
  --map-pos: right -20px bottom -10px;
  --map-size: auto 130%;
}
.ab-market[data-map="taiwan"]   { --map-url: url("assets/maps/taiwan.svg");   --map-pos: right -50px center;       --map-size: auto 150%; }
.ab-market[data-map="thailand"] { --map-url: url("assets/maps/thailand.svg"); --map-pos: right -10px bottom -20px; --map-size: auto 170%; }
.ab-market[data-map="johor"]    { --map-url: url("assets/maps/johor.svg");    --map-pos: right -40px center;       --map-size: 200% auto; }
.ab-market[data-map]::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--map-url);
  background-repeat: no-repeat;
  background-position: var(--map-pos);
  background-size: var(--map-size);
  opacity: 0.09;
  filter: saturate(0) brightness(0.5);
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(120% 120% at 100% 100%, #000 0%, #000 40%, transparent 95%);
          mask-image: radial-gradient(120% 120% at 100% 100%, #000 0%, #000 40%, transparent 95%);
}
.ab-market::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(236,6,119,0) 0%, rgba(236,6,119,0) 60%, rgba(138,43,226,0.4) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s var(--ease, cubic-bezier(0.4, 0, 0.2, 1));
  pointer-events: none;
}
.ab-market:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(138,43,226,0.30);
  border-color: rgba(236,6,119,0.25);
}
.ab-market:hover::before { opacity: 1; }
/* Watermark giant order number — placed ABOVE the white overlay so it stays visible. */
.ab-market-num {
  position: absolute;
  right: 18px;
  bottom: 4px;
  font-family: var(--font-en);
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  background: linear-gradient(135deg, rgba(236,6,119,0.20) 0%, rgba(138,43,226,0.28) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  z-index: 1;
}
/* Country chip top-right */
.ab-market-chip {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #6B6377;
  background: rgba(20,17,28,0.04);
  border: 1px solid rgba(20,17,28,0.08);
  border-radius: 999px;
  padding: 4px 10px;
  z-index: 2;
}
.ab-market.is-hq .ab-market-chip {
  color: #EC0677;
  background: rgba(236,6,119,0.08);
  border-color: rgba(236,6,119,0.20);
}
/* Pin icon — uses brand gradient (defs declared at top of body) */
.ab-market-pin {
  display: block;
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: #EC0677;
  filter: drop-shadow(0 6px 10px rgba(236,6,119,0.22));
}
.ab-market-pin path:first-of-type {
  fill: url(#abMarketGrad);
  fill-opacity: 0.18;
  stroke: #EC0677;
  stroke-width: 1.5;
}
.ab-market-city {
  position: relative;
  z-index: 2;
  font-size: 24px;
  font-weight: 800;
  color: #14111C;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.ab-market-country {
  position: relative;
  z-index: 2;
  font-size: 12.5px;
  color: #6B6377;
  font-family: var(--font-en);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
}
.ab-global-link {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.ab-global-link a.btn {
  /* now uses .btn .btn-primary .btn-lg from styles.css — keep the icon spacing */
  gap: 8px;
}
.ab-global-link a.btn:hover svg { transform: translateX(3px); }
.ab-global-link a.btn svg { transition: transform .2s ease; }

/* CTA */
.ab-cta {
  padding: 80px 0 120px;
  background: #FBF7FE;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .ab-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .ab-hero-art { min-height: 320px; }
  .ab-manifesto-grid { max-width: 100%; }
  .ab-manifesto-head { padding: 20px 0 40px; }
  .ab-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-markets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ab-hero { padding: 110px 0 56px; }
  .ab-hero-art { min-height: 280px; }
  .ab-manifesto { padding: 64px 0 80px; }
  .ab-stats.ab-stats-attached { padding: 0 0 56px; }
  .ab-timeline { padding: 80px 0; }
  .ab-global { padding: 80px 0; }
  .ab-cta { padding: 56px 0 80px; }

  .ab-manifesto-body { padding: 16px 0 0; max-width: 100%; }
  .ab-manifesto-body p { font-size: 16px; line-height: 1.85; margin-bottom: 18px; }
  .ab-manifesto-body p:last-child { font-size: 17px; margin-top: 24px; padding-top: 22px; }
  .ab-manifesto-head { min-height: 280px; }
  .ab-manifesto-watermark { width: 380px; height: auto; top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); opacity: 0.12; }

  .ab-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ab-stat { padding: 24px 16px; }

  /* Timeline: year inline on top of card; line + dot tight on the left */
  .ab-timeline-head { margin-bottom: 48px; }
  .ab-timeline-list { padding-left: 32px; max-width: 100%; }
  .ab-timeline-list::before { left: 7px; top: 22px; bottom: 22px; }
  .ab-tl-item { padding: 10px 0; }
  .ab-tl-item::before { left: -26px; top: 22px; width: 17px; height: 17px; border-width: 2.5px; }
  .ab-tl-item[data-current="true"]::after { left: -26px; top: 22px; width: 17px; height: 17px; }
  .ab-tl-year {
    position: static;
    text-align: left;
    width: auto;
    font-size: 13px;
    margin-bottom: 6px;
    padding-left: 4px;
  }
  .ab-tl-card { grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; border-radius: 14px; margin-left: 0; }
  .ab-tl-icon { width: 44px; height: 44px; border-radius: 12px; }
  .ab-tl-icon svg { width: 22px; height: 22px; }
  .ab-tl-icon.ab-tl-icon--logo { padding: 6px; }
  .ab-tl-tag { font-size: 10px; padding: 2px 8px; margin-bottom: 4px; }
  .ab-tl-event { font-size: 14.5px; }
  .ab-tl-item:hover .ab-tl-card { transform: none; }
  .ab-tl-item:hover::before { transform: none; }

  .ab-markets { grid-template-columns: 1fr; }
  .ab-mascot.liao { width: 110px; }
  .ab-mascot.bo   { width: 150px; }
  .ab-mascot.jam  { width: 110px; }
}

/* ============================================================
   ABOUT — Mobile: tighten hero → mascots gap (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .ab-hero { padding-top: 88px !important; padding-bottom: 24px !important; }
  .ab-hero-inner { gap: 16px !important; }
  .ab-hero-copy { margin-bottom: 0 !important; }
  .ab-hero-art { margin-top: 0 !important; }
  .ab-stats.ab-stats-attached { padding: 0 0 32px !important; }
}

/* About stat labels — fit on one line on mobile */
@media (max-width: 640px) {
  .ab-stat { padding: 22px 12px !important; }
  .ab-stat-label {
    font-size: 12px;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }
  .ab-stat-num { font-size: 36px !important; }
  .ab-stat-num .ab-stat-suffix { font-size: 0.5em; }
}

/* About — tighten gap between manifesto → timeline on mobile */
@media (max-width: 640px) {
  .ab-manifesto { padding: 32px 0 32px !important; }
  .ab-manifesto-body p:last-child {
    margin-top: 20px !important;
    padding-top: 16px !important;
  }
  .ab-timeline { padding: 32px 0 40px !important; }
  .ab-timeline-head { margin-bottom: 28px !important; }
  .ab-timeline-head .ab-eyebrow { margin-bottom: 10px !important; }
}
