/* Team / About page — the "About Team" frame from the design file.
   Layers on tech.css, which already provides .sec, .wrap and the contact block.

   Everything here resolves to the design-system tokens in base.css: type comes
   from the --fs, --fw and --lh scale, colour from the palette, and the two
   breakpoints are the ones the rest of the site already uses (940 / 680). The
   one value the global scale has no step for — the 64px figure on the story
   cards — is a local token rather than a number repeated inline, the same way
   ai.css declares --ai-bg. Headings carry no tracking, per base.css. */
:root { --tm-fig: 64px; --tm-fig-md: 54px; --tm-fig-sm: 48px;
  /* eight-pointed star from the design, masked so it inherits the amber */
  --tm-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l1.9 7.1 6.6-3.8-3.8 6.6 7.1 1.9-7.1 1.9 3.8 6.6-6.6-3.8L12 24l-1.9-7.1-6.6 3.8 3.8-6.6L.2 12.2l7.1-1.9-3.8-6.6 6.6 3.8z'/%3E%3C/svg%3E"); }

.tm-hero { padding: 190px 0 0;
  /* the frame washes the whole opening band — hero and story cards — in
     #EEF1F5 fading in downwards (1460:10545) */
  background: linear-gradient(180deg, rgba(238,241,245,0) 0%, rgba(238,241,245,0.4) 100%); }
.tm-hero h1 { font-size: var(--fs-h1-hero); font-weight: var(--fw-h1-hero); line-height: var(--lh-h1-hero); }
/* the frame runs the first sentence bold and the second regular (1460:10553) */
.tm-hero h1 b { font-weight: 700; }

/* The rule that dates the story, a label at each end. Tracking matches .cs-tag. */
.tm-rule { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 64px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--card-border); }
.tm-rule span { font-size: var(--fs-h6); line-height: 1; text-transform: uppercase; color: var(--ink); }

/* Four cards: a dark one, the team photo, and two figures. */
.tm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.tm-card { position: relative; display: flex; flex-direction: column; min-height: 432px; padding: 32px 32px;
  border: 1px solid transparent; border-radius: var(--r-lg); background: var(--card); }
/* the frame strokes its cards with a gradient rather than a flat line — #D9DBE1 at the
   top fading to nothing at the bottom, top to bottom (handles 0.5,0 -> 0.5,1). The
   border stays in the box at 1px transparent so nothing shifts; the ring is a masked
   pseudo-element, which is the only way to stroke a rounded box with a gradient. */
.tm-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.5px; pointer-events: none;
  background: linear-gradient(180deg, var(--card-border) 0%, var(--card-border-0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude; }

.tm-card h2 { font-size: var(--fs-p); font-weight: 500; line-height: 1.3; color: var(--ink); margin-bottom: 16px; }
.tm-card p { font-size: var(--fs-descriptor); line-height: 1.55; color: var(--text); margin: 0; }
.tm-num { margin-top: auto; display: flex; align-items: center; gap: 16px;
  font-size: var(--tm-fig); font-weight: 600; line-height: 1.15; color: var(--ink); }
.tm-num i { flex-shrink: 0; width: 22px; height: 22px; background: var(--amber);
  -webkit-mask: var(--tm-star) center / contain no-repeat; mask: var(--tm-star) center / contain no-repeat; }

.tm-card-dark { background: var(--navy); border-color: var(--navy); }
.tm-card-dark h2, .tm-card-dark .tm-num { color: #fff; }
.tm-card-dark p { color: #aeb8d4; }              /* the palette's text tone on navy, as in .mega-promo-ai */

/* The photo card is all image; the padding lives in the artwork. */
/* The design's second story card (1460:10569) stacks three fills: the team cut out
   filling the card, and then — painted ON TOP of it — a fade from transparent at
   15% to solid #EEF1F5 at 75%. That overlay is what dissolves the group's legs into
   the card and leaves the wordmark a clean ground to sit on. Putting the same
   gradient behind the photo, as this rule first did, gets none of that. */
.tm-card-logo { position: relative; overflow: hidden; padding: var(--s-4); background: #fff; }
.tm-card-logo .tm-group {
  /* The frame crops the photo into the card rather than fitting it: full card width,
     nudged 2.6% left, and lifted 17.205% of the photo's own height so the studio
     headroom is cut off the top and the feet stop short of the bottom, where the fade
     takes over. height:auto keeps the 2:3 source undistorted — our card is 302 wide
     against the frame's 312, so a fixed height percentage would squeeze it — and the
     lift is a translate because that is the one percentage measured against the
     element's own height rather than the card's. The source is the cut-out on
     transparency; the frame's other image layer, the studio original, is visible:false
     and must stay out, which is what makes the card's ground white. */
  position: absolute; left: -2.6046%; top: 0; width: 100%; height: auto;
  transform: translateY(-17.2050%); }
.tm-card-logo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 15%, #eef1f5 75%); }
.tm-card-logo .tm-mark { position: relative; z-index: 1; display: block; width: 100%;
  max-width: 232px; height: auto; margin: auto auto 0; }

/* ── What we stand for ─────────────────────────────────────────────────────── */
.tm-values-head { text-align: center; margin-bottom: 64px; }
.tm-values-head h2 { font-size: var(--fs-h1-big); font-weight: var(--fw-h1-big); line-height: var(--lh-h1-big); color: var(--ink); }
.tm-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tm-value { padding: 32px 32px 48px; border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--card-border); }
.tm-value .tm-ic { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 32px;
  border: 1.5px solid var(--amber); border-radius: 50%; color: var(--amber); }
.tm-value h3 { font-size: var(--fs-h3); font-weight: 400; line-height: var(--lh-h3); color: var(--ink); margin-bottom: 16px; }
.tm-value p { font-size: var(--fs-descriptor); line-height: 1.55; color: var(--text); margin: 0; }

/* ── Founder panel ─────────────────────────────────────────────────────────── */
.tm-founder { text-align: center; border-radius: var(--r-lg); padding: 64px 48px 64px;
  background: var(--grad-card); border: 1px solid var(--card-border); }
/* the design draws this plate at 279 (1481:14 / 1432:3971), not 240 */
.tm-founder img { display: block; width: 279px; height: 279px; margin: 0 auto 32px; border-radius: 50%; object-fit: cover; }
.tm-founder h2 { font-size: var(--fs-h1-hero); font-weight: var(--fw-h1-hero); line-height: var(--lh-h1-hero); color: var(--ink); margin-bottom: 16px; }
.tm-founder p { font-size: var(--fs-h5); font-weight: var(--fw-p); line-height: 1.4; color: var(--ink); margin: 0 0 32px; }

@media (max-width: 940px) {
  .tm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-card { min-height: 360px; }
  /* The photo is absolutely positioned, so it lends the card no height — the four-up
     row's min-height was the only thing holding this card's shape. Below that the row
     narrows and then stacks, min-height goes to 0, and the card shrank to its wordmark:
     99px on a phone, with the group reduced to a grey sliver behind the logo. The
     frame's own 312x432 keeps the proportion at any column width. */
  .tm-card-logo { aspect-ratio: 312 / 432; }
  .tm-num { font-size: var(--tm-fig-md); }
}
@media (max-width: 680px) {
  .tm-hero { padding-top: 150px; }
  .tm-rule { margin-top: 48px; flex-wrap: wrap; gap: 8px; }
  .tm-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .tm-card { min-height: 0; padding: 24px 24px 32px; }
  .tm-card .tm-num { margin-top: 32px; font-size: var(--tm-fig-sm); }
  .tm-values-head { margin-bottom: 32px; }
  .tm-values { grid-template-columns: 1fr; gap: 16px; }
  .tm-value { padding: 32px 24px 32px; }
  .tm-value .tm-ic { width: 64px; height: 64px; margin-bottom: 24px; }
  .tm-founder { padding: 48px 24px 48px; }
  .tm-founder img { width: 200px; height: 200px; margin-bottom: 24px; }
}
