/* ── ABOUT ZEN (#about) ─────────────────────────
   App-style profile: blue cover, portrait overlapping it, greeting, bio and
   numbers, then tabs. Cerita = swipeable story cards (one big number each),
   Mitra = wordmark grid, Kontak = social logos. Shares the detail shell. */
.about { background: var(--white); color: var(--navy); }
.ab-scroll {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
}
.ab-scroll::-webkit-scrollbar { display: none; }
.about .detail-back { background: rgba(255, 255, 255, .22); }

/* hero, as in the first version */
.ab-hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: calc(var(--top-pad) + 76px) 28px 34px;
  border-radius: 0 0 0 var(--curve);
  background: var(--blue-bg); color: var(--white);
}
.ab-ghost {
  position: absolute; right: -10px; bottom: -.16em;
  font-size: 150px; font-weight: 800; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .3); pointer-events: none;
}
.ab-photo {
  position: relative; width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .28), 0 20px 34px -18px rgba(0, 60, 100, .6);
}
.ab-photo--mark {
  display: grid; place-items: center; background: var(--white); color: var(--blue);
  font-family: var(--font-accent); font-style: italic; font-size: 64px; line-height: 1;
}
.ab-name { position: relative; margin-top: 18px; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.ab-role { position: relative; margin-top: 6px; font-family: var(--font-accent); font-style: italic; font-size: 24px; color: var(--soft); }
.ab-roles { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ab-roles li {
  padding: 7px 12px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .6);
  font-size: 12px; font-weight: 700;
}
.ab-roles li:first-child { background: var(--white); border-color: var(--white); color: var(--blue-deep); }

/* bio and numbers under the hero */
.ab-intro { padding: 22px 24px 0; }
.ab-bio { max-width: 34ch; font-size: 15px; font-weight: 500; line-height: 1.55; color: #3d5f6d; }
.ab-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); text-align: center;
  margin-top: 16px; padding: 12px 0;
  border-top: 1.5px solid #e3ecf0; border-bottom: 1.5px solid #e3ecf0;
}
.ab-stats dt { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--navy); }
.ab-stats dd { margin-top: 4px; font-size: 12px; font-weight: 700; color: #5c7885; }

/* tabs: segmented control, the white pill slides to the chosen tab */
.ab-tabs {
  --tab: 0;
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 18px 24px 0; padding: 4px; border-radius: 999px; background: var(--dock-pill);
}
.ab-tabs::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 999px; background: var(--white); box-shadow: 0 4px 12px -6px rgba(26, 74, 94, .35);
  transform: translateX(calc(var(--tab) * 100%)); transition: transform .4s var(--ease);
}
.ab-tabs button {
  position: relative; min-height: 44px; border-radius: 999px;
  font-size: 14px; font-weight: 800; color: #5c7885; transition: color .3s var(--ease);
}
.ab-tabs button[aria-selected="true"] { color: var(--blue-deep); }
.ab-panel { padding-top: 18px; animation: st-rise .45s var(--ease) both; }
.ab-panel[hidden] { display: none; }

/* Cerita: swipeable story cards */
.ab-seg { display: flex; gap: 4px; margin: 0 24px 12px; }
.ab-seg i { flex: 1; height: 3px; border-radius: 2px; background: #d6e4ea; transition: background .3s var(--ease); }
.ab-seg i.is-on { background: var(--blue); }
.ab-cards {
  display: flex; gap: 10px; padding: 0 24px 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px;
  scrollbar-width: none; outline: none; overscroll-behavior-x: contain;
}
.ab-cards::-webkit-scrollbar { display: none; }
.ab-cards > * {
  position: relative; flex: 0 0 82%; min-height: 330px; scroll-snap-align: start;
  display: flex; flex-direction: column; padding: 20px; overflow: hidden;
  border-radius: 26px 26px 26px 8px;
}
.ab-quote {
  justify-content: flex-end;
  background: var(--blue-bg); color: var(--white);
  font-family: var(--font-accent); font-style: italic; font-size: 34px; line-height: 1.08;
}
.ab-quote::before {
  content: "\201C"; position: absolute; top: 4px; left: 16px;
  font-size: 110px; line-height: 1; color: rgba(255, 255, 255, .3);
}
.ab-card { background: var(--blue-bg); color: var(--white); }
.ab-card:nth-child(even) { background: var(--dock-pill); color: var(--navy); }
.ab-card-k { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; opacity: .9; }
.ab-card:nth-child(even) .ab-card-k { color: var(--blue-deep); }
.ab-card-big { margin-top: 12px; font-size: 56px; font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.ab-card:nth-child(even) .ab-card-big { color: var(--blue); }
.ab-card-big small { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0; opacity: .85; }
.ab-card-title { margin-top: auto; padding-top: 18px; font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.ab-card-text { margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 1.55; opacity: .88; }
.ab-card-num {
  position: absolute; right: 14px; top: 12px;
  font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.3px currentColor; opacity: .3;
}
.ab-hint { margin: 10px 24px 0; font-size: 12px; font-weight: 700; color: #5c7885; }

/* Mitra: a contact list. Filter chips, one rounded card per group, a coloured
   mark per kind of work (Tech, Web, Talk, Logo); every row opens its porto page. */
.ab-partners { padding: 0 24px; }
.ab-chips {
  display: flex; gap: 6px; margin: 0 -24px 6px; padding: 0 24px 4px;
  overflow-x: auto; scrollbar-width: none;
}
.ab-chips::-webkit-scrollbar { display: none; }
.ab-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 8px 0 14px; border-radius: 999px;
  background: var(--dock-pill); font-size: 13px; font-weight: 800; color: #3d5f6d;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.ab-chip span {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: var(--white); color: var(--blue-deep); font-size: 11.5px;
}
.ab-chip[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.ab-chip[aria-pressed="true"] span { background: rgba(255, 255, 255, .22); color: var(--white); }

.ab-pgroup { margin-top: 18px; animation: st-rise .45s var(--ease) both; }
.ab-pgroup[hidden] { display: none; }
.ab-pgroup-name {
  display: flex; align-items: center; gap: 8px; margin: 0 4px 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-deep);
}
.ab-pgroup-name::after { content: ""; flex: 1; height: 1.5px; background: #e3ecf0; }
.ab-pgroup-name span { order: 2; color: #5c7885; letter-spacing: 0; }
.ab-list {
  border-radius: 22px; overflow: hidden; background: var(--white);
  box-shadow: 0 0 0 1.5px #e3ecf0, 0 16px 30px -24px rgba(26, 74, 94, .5);
}
.ab-list li + li .ab-row { border-top: 1px solid #edf2f5; }
.ab-row {
  --mark: var(--blue); --mark-ink: var(--white);
  display: grid; grid-template-columns: 44px 1fr auto 18px; align-items: center; gap: 12px;
  min-height: 68px; padding: 10px 12px 10px 12px;
  transition: background .25s var(--ease);
}
.ab-row:hover { background: #f5fafc; }
.ab-row:active { background: var(--dock-pill); }
.ab-row.is-web { --mark: var(--navy); }
.ab-row.is-talk { --mark: #e5f5fd; --mark-ink: var(--blue-deep); }
.ab-row.is-logo { --mark: var(--white); --mark-ink: var(--blue); }
.ab-row-mark {
  width: 44px; height: 44px; border-radius: 14px 14px 14px 5px;
  display: grid; place-items: center;
  background: var(--mark); color: var(--mark-ink);
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
}
.ab-row.is-logo .ab-row-mark { box-shadow: inset 0 0 0 1.5px #cfe3ec; font-family: var(--font-accent); font-style: italic; font-weight: 400; font-size: 19px; }
.ab-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ab-row-text b { font-size: 14.5px; font-weight: 800; line-height: 1.25; color: var(--navy); }
.ab-row-text small { font-size: 12.5px; font-weight: 500; line-height: 1.35; color: #5c7885; }
.ab-row-kind {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border-radius: 999px;
  background: var(--dock-pill); font-size: 11.5px; font-weight: 800; color: var(--blue-deep);
}
.ab-row-kind .i { font-size: 13px; }
.ab-row-go { font-size: 16px; color: #9ab0bb; transition: transform .3s var(--ease), color .3s var(--ease); }
.ab-row:hover .ab-row-go { transform: translateX(3px); color: var(--blue); }

/* Kontak: three logos side by side */
.ab-socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 24px; }
.ab-socials a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 108px; padding: 12px 6px; border-radius: 22px;
  background: var(--dock-pill); font-size: 13px; font-weight: 800; color: var(--navy);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.ab-socials-logo { font-size: 34px; color: var(--blue); transition: color .3s var(--ease); }
.ab-socials a:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.ab-socials a:hover .ab-socials-logo { color: var(--white); }

/* entrance */
.about:not([hidden]) :is(.ab-hero > *, .ab-intro, .ab-tabs) { animation: st-rise .6s var(--ease) both; }
.about:not([hidden]) .ab-intro { animation-delay: .06s; }
.about:not([hidden]) .ab-tabs { animation-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  .about :is(.ab-hero > *, .ab-intro, .ab-tabs, .ab-panel, .ab-pgroup) { animation: none; }
  .ab-tabs::before { transition: none; }
}
