/* ════════════════════════════════════════════════════════════════════
   About page (about.html)
   Sits on the site-wide page ground (styles.css PAGE GROUND). The hero
   chat is the shared chat figure (chat.css / chat.js). Then our story, the
   team (founder featured, everyone else as smaller cards, after 21st.dev
   shadcnspace/team-01) and the logo rows (after ruixen.ui/integration-hero).
   Tokens: styles.css + tokens.css.
   ════════════════════════════════════════════════════════════════════ */

/* ── hero ─────────────────────────────────────────────────────────── */
.ab-hero { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: start; }
.ab-hero .phero__copy { padding-top: clamp(8px, 2vw, 28px); }
.ab-hero .phero__title { max-width: 15ch; text-wrap: balance; }
.ab-hero .phero__sub { max-width: 54ch; }
.ab-hero .phero__meta { padding-left: 0; margin-bottom: 0; }
.ab-hero .phero__meta b { font-size: 19px; }

/* ── our story ───────────────────────────────────────────────────── */
.ab-note { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
.ab-note__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ab-note__t {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--x-text-h2); line-height: var(--x-lh-h2); letter-spacing: var(--x-ls-h2);
  margin: 18px 0 0; text-wrap: balance;
}
.ab-note__t em { font-style: normal; color: var(--accent); }
.ab-note__body { max-width: 64ch; }
.ab-note__body p { margin: 0 0 1.15em; font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }
.ab-pull { margin: 32px 0 0; }
.ab-pull::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 18px; border-radius: 2px; background: var(--orange); }
.ab-note__body .ab-pull p {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -.015em; color: var(--ink);
  text-wrap: balance;
}
.ab-pull figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-label); }

/* ── team: a port of 21st.dev shadcnspace/team-01 ─────────────────
   Centred head that drops in, portraits on a shaped backdrop (no card),
   centred name and role, round icon links, grayscale on hover, staggered
   rise on first view (about.js). Fonts and colours are ours.            */
.ab-team { padding: clamp(32px, 6vw, 80px) var(--gutter); max-width: var(--container); margin: 0 auto; }
.ab-team__in { display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 5vw, 64px); }
.ab-team__head { max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.ab-team__t {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.03em; color: var(--ink); text-wrap: balance;
}
.ab-team__t em { font-style: normal; color: var(--accent); }
.ab-team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; max-width: 1080px; }
.ab-card-surface { background: rgba(255,255,255,.78); border: 1px solid rgba(10,10,35,.07); border-radius: 24px; }

/* the founder: featured across two columns, portrait beside the story */
.ab-founder {
  grid-column: span 2; display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 22px 28px 22px 22px;
}
.ab-founder__tx { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ab-founder__k { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--accent-label); }
.ab-founder__name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.ab-founder__bio { margin: 2px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-3); max-width: 52ch; }
.ab-founder__creds { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; }
.ab-founder__creds li {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--x-radius-pill);
  background: var(--x-paper); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--ink-2);
}
.ab-founder__creds img { width: 12px; height: 12px; }
.ab-founder__creds img.ab-cred--roche { width: auto; height: 13px; }
.ab-founder .ab-member__soc { margin: 2px 0 0 -6px; }

/* everyone else: smaller cards, three to a row next to the founder */
.ab-member--sm { padding: 20px 16px; gap: 16px; justify-content: center; }
.ab-member--sm .ab-member__pic { max-width: 220px; }
.ab-member--sm .ab-member__name { font-size: 20px; }

.ab-member { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.ab-member__pic { position: relative; width: 100%; max-width: 100%; aspect-ratio: 270 / 336; transition: filter .3s ease; }
.ab-member:hover .ab-member__pic, .ab-founder:hover .ab-member__pic { filter: grayscale(1); }
.ab-member__blob { position: absolute; inset: 0; width: 100%; height: 100%; }
.ab-member__pic picture, .ab-member__pic > img { position: absolute; inset: 0; display: block; }
.ab-member__pic img {
  width: 100%; height: 100%; object-fit: cover; object-position: bottom center;
  /* a white shirt on paper: fade the cut edge so the shape's lower lobe reads */
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
  filter: drop-shadow(0 6px 18px rgba(15,15,40,.12));
}
.ab-member__mono {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(72px, 9vw, 112px); letter-spacing: -.04em; color: var(--ink-2);
}
.ab-member__tx { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ab-member__name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.ab-member__role { margin: 0; font-size: 14px; color: var(--ink-3); }
.ab-member__soc { display: flex; gap: 8px; margin-top: -8px; }
.ab-member__soc a {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-2);
  transition: background .2s ease, color .2s ease;
}
.ab-member__soc a:hover { background: var(--blue-soft); color: var(--blue); }
.ab-member__soc a:focus-visible, .ab-int a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ab-member__soc svg { width: 16px; height: 16px; }
.ab-member__draft {
  margin: -8px 0 0; padding: 6px 10px; border: 1px dashed var(--x-warning-500); border-radius: var(--x-radius-sm);
  background: var(--x-warning-50); color: var(--x-warning-700); font-family: var(--font-mono); font-size: 11px; text-align: center;
}

/* first-view motion, as in the component: head drops 40px, members rise
   40px, .8s cubic-bezier(.21,.47,.32,.98), .1s stagger. about.js arms only
   what starts off screen, so nothing that is already visible hides.      */
[data-rise].is-armed { opacity: 0; transform: translateY(40px); }
[data-rise="down"].is-armed { transform: translateY(-40px); }
[data-rise].is-armed.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.21,.47,.32,.98) var(--d, 0s), transform .8s cubic-bezier(.21,.47,.32,.98) var(--d, 0s);
}

/* ── who we work with: a port of 21st.dev ruixen.ui/integration-hero ──
   Dotted paper, centred badge + headline + button, then two rows of round
   white bubbles scrolling in opposite directions (30s, linear) with white
   edge fades. Pills hold the partner wordmarks; circles hold the marks.  */
.ab-int {
  position: relative; overflow: hidden; padding: clamp(80px, 10vw, 128px) 0;
}
.ab-int__in { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.ab-int__in > .eyebrow { margin: 0 auto 16px; }
.ab-int__t {
  margin: 0 auto; max-width: 18ch; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.035em; color: var(--ink); text-wrap: balance;
}
.ab-int__t em { font-style: normal; color: var(--accent); }
.ab-int__lede { margin: 16px auto 0; max-width: 36rem; font-size: 18px; line-height: 1.55; color: var(--ink-3); }
.ab-int__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }


/* ── responsive ──────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .ab-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-founder { grid-column: 1 / -1; }
  .ab-hero { grid-template-columns: minmax(0, 1fr); }
  .ab-note__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ab-team__grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .ab-founder { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 22px; }
  .ab-founder__tx { padding: 0 6px; }
  .ab-founder__pic { max-width: 250px; justify-self: center; }
  .ab-member--sm .ab-member__pic { max-width: 220px; }
  .ab-note__body p { font-size: 16.5px; }
}

/* reduced motion: rows hold still, nothing rises */
@media (prefers-reduced-motion: reduce) {
  .ab-member__pic { transition: none; }
}

/* section openers: the eyebrow pill is for the hero; every other section
   opens with a // kicker (DESIGN.md) */
main > section:not(.ab-hero) .eyebrow {
  gap: 0; padding: 0; border: 0; border-radius: 0; background: none;
  font-size: 13px; letter-spacing: 0; text-transform: lowercase; color: var(--accent-label);
}
main > section:not(.ab-hero) .eyebrow::before { content: "// "; white-space: pre; }
main > section:not(.ab-hero) .eyebrow__dot { display: none; }
.ab-hero .eyebrow { color: var(--accent-label); }
.btn--primary:hover { background: var(--x-blue-700); box-shadow: 0 10px 24px rgba(46,46,255,.26); }

/* ════════════════════════════════════════════════════════════════════
   RECOMMENDATIONS (2026-10-19): what people who worked with Amro said on
   LinkedIn, word for word, as a colourful bento after uilayout
   "testimonial". Built by scratchpad recs/about_recs.py from LinkedIn's
   export. Tones in turn: glossy black, the wash, white glass, warm, cool.
   ════════════════════════════════════════════════════════════════════ */
.recs { padding: clamp(44px, 4.4vw, 60px) var(--gutter); }
.recs__in { max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; }
.recs__head { text-align: center; margin-bottom: clamp(32px, 3.4vw, 44px); }
.recs__head .eyebrow { margin-inline: auto; }
.recs__t { margin: 8px auto 0; max-width: 22ch; font: 800 clamp(34px, 4.2vw, 56px)/1.05 var(--font-display); letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.recs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; }
/* the quote card itself (.rec) lives in styles.css QUOTE CARDS, shared with the homepage */
.recs__src { margin: 16px 0 0; text-align: center; font: 500 12px/1.4 var(--font-mono); color: var(--ink-3); }
@media (max-width: 900px) { .recs__grid { grid-template-columns: minmax(0, 1fr); } }
.recs__src a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(46,46,255,.3); text-underline-offset: 3px; }

/* ON STAGE (2026-10-22): talks, newest first. A date block, the conference,
   the title, one line of context and a link to the session page. */
.talks { padding: clamp(44px, 4.4vw, 60px) var(--gutter); }
.talks__in { max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; }
.talks__head { text-align: center; margin-bottom: clamp(28px, 3vw, 40px); }
.talks__head .eyebrow { margin-inline: auto; }
.talks__t { margin: 8px auto 0; max-width: 22ch; font: 800 clamp(34px, 4.2vw, 56px)/1.05 var(--font-display); letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.talks__sub { margin: 12px auto 0; max-width: 56ch; font-size: 17px; line-height: 1.55; color: var(--ink-3); }
