/* ============================================================
   THE ENGINE v4 — Team page (Ember Ledger)
   Inherits every token from styles.css (warm charcoal #1D1A19 +
   burnt-orange accent + FH Total / Instrument Serif voice), so the
   team page reads as one system with the home page. This file only
   styles what's unique to the team page.
   ============================================================ */

/* The team page now shares the home's Ember Ledger tokens directly —
   no re-pin. Every shared component (nav, modal, footer, buttons)
   resolves to the warm-dark values from styles.css. */

/* nav active link — same muted tone as the hiring label; active state shown by
   the underline (keeps "Team" and "We're hiring" consistent in weight/size/color) */
.nav-links a.is-active { color: var(--mut); }
.nav-links a.is-active::after { right: 0; }

/* ---------- hero (fluted-glass 4K background, contained by composition) ---------- */
.team-hero {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(130px, 17vh, 180px) 0 clamp(48px, 7vh, 90px);
  /* flat warm charcoal — no blue video. Depth comes from the ember blooms. */
  background: var(--bg);
}
/* ember bloom ground — mirrors the home hero (.hero-bg / .hero-bloom):
   a warm orange breath rising from the bottom-center + a softer warm breath
   top-left, then a melt into the page floor so the deck reads continuous. */
.th-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.th-bloom {
  position: absolute;
  left: 50%; bottom: -30%; transform: translateX(-50%);
  width: 84vw; height: 64vh;
  background: radial-gradient(ellipse at center,
    rgba(242, 115, 26, 0.11), rgba(242, 115, 26, 0.04) 46%, transparent 72%);
  filter: blur(12px);
}
.th-bloom-warm {
  left: -14%; top: -18%; bottom: auto; transform: none;
  width: 54vw; height: 52vh;
  background: radial-gradient(ellipse at center,
    rgba(214, 143, 66, 0.05), rgba(214, 143, 66, 0.02) 48%, transparent 74%);
}
.th-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 82%, var(--bg) 100%);
}
/* width:100% stops the wrap from shrink-wrapping to its widest child inside the
   centered flex column — without it, a long headline line pushes the whole block
   wider than the viewport and the content clips off-screen at ~600-760px. */
.team-hero .wrap { position: relative; z-index: 2; width: 100%; }
/* Ember display headline — same FH Total / Instrument Serif voice as the home
   hero, so the two page heroes read as one system. The line reveal slides up
   from the bottom in the intro cascade. */
.team-h1 {
  /* standardized with the HOME hero headline (.hero-inner h1): identical
     family, size clamp, tracking + line-height, so the two page heroes read as
     one system (≈50px @1512, ≈47px @1440, 28px floor on phones) instead of the
     team hero towering a full tier larger than home. */
  font-family: var(--serif);
  font-weight: 400;   /* FH Total / Instrument Serif ship weight-400 only */
  /* identical to the home hero headline (.hero-inner h1) — same size clamp,
     tracking + line-height so the two page heroes read as one typeface */
  font-size: clamp(31px, 3.9vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-align: center;
  color: var(--ink);
}
/* each tier is its own centered row (line 1 widest, tapering down = downward
   triangle); text-wrap:balance keeps a tier that has to wrap from going lopsided.
   No nowrap -> a tier shrinks/wraps instead of overflowing the viewport. */
.team-h1 .t-line { display: block; text-wrap: balance; }
/* headline lines slide up from the bottom like the CTA/metrics/deck below.
   team-h1 has no background-clip:text, so the shared h1 fade-only guard
   (which exists to protect the gradient clip) isn't needed here. */
.team-h1 .line.intro {
  opacity: 0; transform: translateY(26px);
  animation: intro-up var(--dur-reveal) var(--ease-out) var(--d, 0s) forwards;
}
.team-h1 .line.intro > span { opacity: 1; animation: none; }
/* line 2 reads "and the numbers to prove it" on one line at desktop (2-line
   headline), but the break fires on phones so the tail tapers instead of
   becoming a wide bottom row — keeps the downward triangle on small screens */
.team-h1 .brk-sm { display: none; }
@media (max-width: 600px) { .team-h1 .brk-sm { display: inline; } }
/* hero CTAs sit just under the headline: blue primary + liquid-metal secondary */
.hero-cta {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 1.4vw, 18px);
  /* headline → CTA: generous step (≈52-64px), min stays comfortable on short viewports */
  margin-top: clamp(44px, 5.5vh, 66px);
}

/* nav CTA hand-off AND the whole liquid-metal (.lqm) button system are now
   shared — they live in styles.css so home + team stay identical. The old .lqm
   copy here was overriding the shared nav-lqm height (46px vs 40px) and made the
   team nav taller than home; removed so both pages match exactly. */

/* second line — standardized with the home hero's promise line (.hl-dim):
   same upright Instrument Serif voice at half volume (NOT italic, no colour),
   so the team hero reads as one typeface with the home hero. */
.team-h1 .t-line > span { display: block; }
.team-h1 .hl {
  font-family: inherit; font-style: normal; font-weight: 400;
  color: color-mix(in srgb, var(--ink) 42%, transparent);
  text-shadow: none;
}

/* ---------- hero proof band — the receipts, visible at first glance ----------
   Four figures from the team document sit right under the hero CTA, before the
   photo deck, sized to live inside the hero (a clear tier below the headline). */
.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: center;
  /* top-align each cell so the figures line up across a row even when one label
     wraps to more lines than another (e.g. 2-up on mobile) */
  align-items: start;
  gap: clamp(22px, 3.4vw, 54px);
  /* CTA → metrics: a big step so the receipts read as their own band (≈76-100px) */
  margin-top: clamp(64px, 8vh, 100px);
}
.hp-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hp-item + .hp-item {
  border-left: 1px solid rgba(240, 239, 232, 0.14);
  padding-left: clamp(22px, 3.4vw, 54px);
}
.hp-fig {
  /* standardized with the home metrics figures (.stat-num): Hanken, not Cormorant */
  font-family: var(--font);
  font-weight: 700; letter-spacing: -0.03em;
  /* sized a clear tier below the hero headline (clamp 27/3vw/56) so the
     receipts read as support, not as the loudest thing in the hero */
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1;
  color: var(--ink);   /* bone, not pure white — avoids halation on the big figures */
  text-shadow: 0 1px 16px rgba(242, 115, 26, 0.20);
}
.hp-label {
  margin-top: 9px;
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--ink);
}
.hp-src {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--mut);
}
@media (max-width: 900px) {
  .hero-proof { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
  .hp-item + .hp-item { border-left: 0; padding-left: 0; }
}

/* ---------- photo deck (now part of the hero section) ---------- */
.deck-wrap {
  position: relative; z-index: 2;   /* above the video/scrim */
  width: 100%;
  max-width: var(--container);
  /* metrics → photo deck: the largest step, so the deck reads as its own beat (≈84-112px) */
  margin: clamp(72px, 9vh, 112px) auto 0;
  padding: 0 var(--gutter);
}
/* premium touch: a soft ember glow spilling from just above the photo frame —
   brightest right at the frame's top edge, fading up into the charcoal. Sits
   behind the frame in the gap above it. */
.deck-wrap::before {
  content: ""; position: absolute; pointer-events: none; z-index: -1;
  left: 50%; transform: translateX(-50%);
  bottom: 100%;                      /* directly above the frame's top edge */
  width: min(66%, 860px); height: 160px;
  background: radial-gradient(ellipse 60% 120% at 50% 108%,
    rgba(242, 115, 26, 0.20), rgba(242, 115, 26, 0.06) 44%, transparent 72%);
  filter: blur(20px);
}
.deck {
  position: relative;
  aspect-ratio: 21 / 9;          /* cinematic banner — full-width but not too tall */
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.deck-card {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.1s var(--ease-out);
  pointer-events: none;
}
.deck-card.on { opacity: 1; transform: scale(1); pointer-events: auto; }
.deck-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  user-select: none; -webkit-user-drag: none;
}
/* per-card wash: darken the bottom-left so the story caption stays legible.
   Lives on the card (not the deck) so it cross-fades with each slide, and the
   caption below sits above it via z-index. */
.deck-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 50%, rgba(15, 12, 10, 0.72)),
    linear-gradient(72deg, rgba(15, 12, 10, 0.5) 0%, transparent 46%);
}
/* story caption — a small glass plate inside the image, bottom-left */
.deck-cap {
  position: absolute; z-index: 2;
  left: clamp(14px, 1.7vw, 28px);
  bottom: clamp(14px, 1.7vw, 28px);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 15px 9px 13px;
  border-radius: 12px;
  background: rgba(29, 26, 25, 0.5);
  border: 1px solid rgba(243, 239, 231, 0.14);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}
.deck-cap-idx {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--link);
  padding-right: 12px;
  border-right: 1px solid rgba(240, 239, 232, 0.18);
}
.deck-cap-title {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(14px, 1.15vw, 18px); font-weight: 500;
  letter-spacing: 0.01em; color: var(--ink);
  white-space: nowrap;
}
/* controls sit BELOW the deck, pushed to the right edge (outside the frame) */
.deck-controls {
  display: flex; align-items: center; justify-content: flex-end;
  gap: clamp(10px, 1.2vw, 16px);
  margin: clamp(14px, 2vh, 20px) 0 0;
}
.deck-arrow {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(240, 239, 232, 0.16);
  background: rgba(240, 239, 232, 0.02);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 150ms var(--ease-out);
}
.deck-arrow svg { width: 14px; }
.deck-arrow:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .deck-arrow:hover { background: rgba(240, 239, 232, 0.08); border-color: rgba(240, 239, 232, 0.32); }
}
.deck-bars {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
/* deck + crew share ONE progress-line language: short + dim by default, and
   the active one morphs long + bright. Thick lines, smooth width transition,
   no loading fill. (See the shared rule under the crew section.) */
.deck-bar i { display: none; }   /* retire the old loading fill */

/* the posed founders shot is portrait — keep the faces in the cinematic frame */
.deck-card img.pos-faces { object-position: center 58%; }

/* ---------- not a pitch deck — live-product proof statement ---------- */
.proof-section { padding: clamp(56px, 8vh, 96px) 0; }
.proof-section .wrap { max-width: 980px; }

/* ---------- leadership — second founders-style tier ---------- */
.leaders-head { margin-top: clamp(60px, 8.5vh, 100px); }

/* ---------- numbers we're proud of (echoes the hero treatment) ---------- */
.stats-section { padding: clamp(52px, 7vh, 88px) 0; }
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
  max-width: var(--container);
  margin: var(--section-head-gap) auto 0;
  padding: 0 var(--gutter);
}
.stat { text-align: left; transition-delay: calc(var(--i, 0) * 90ms); }
.stat-fig {
  display: block;
  font-family: var(--serif);
  font-weight: 600; font-style: italic;
  font-size: clamp(52px, 6.4vw, 92px);
  line-height: 0.98; letter-spacing: 0;
  /* same diagonal fill as the hero, per-figure */
  background: linear-gradient(133deg, var(--ink) 0%, var(--ink) 26%, rgba(240, 239, 232, 0.58) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.stat-label {
  display: block;
  margin-top: 14px;
  max-width: 24ch;
  color: var(--mut);
  font-size: 14.5px; line-height: 1.55;
}

/* ---------- founders ---------- */
.founders {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  max-width: var(--container);          /* align to the heading + home rhythm */
  margin: var(--section-head-gap) auto 0;
  padding: 0 var(--gutter);
}
/* horizontal card (portrait beside copy) so 2-up at full width reads like the
   home feature frames rather than two towering columns */
.founder-card {
  display: grid;
  grid-template-columns: minmax(180px, 36%) 1fr;
  gap: clamp(20px, 2.2vw, 34px);
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(20px, 1.9vw, 30px);
  background: linear-gradient(180deg, rgba(240, 239, 232, 0.025), transparent);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  margin-bottom: 0;              /* horizontal layout — no bottom gap */
  overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid rgba(155, 175, 246, 0.20);
  background:
    radial-gradient(circle at 30% 22%, rgba(61, 91, 224, 0.30), transparent 70%),
    var(--raised);
}
.portrait-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
/* soft grounding vignette on the portrait image */
.portrait::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(4, 5, 10, 0.42));
}
.monogram b {          /* fallback behind the image when it fails to load */
  font-size: clamp(38px, 6vw, 58px); font-weight: 800; letter-spacing: 0.02em;
  color: var(--link);
}
.fc-name { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.fc-role {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--link);
  margin: 6px 0 14px;
}
.fc-note { color: var(--mut); font-size: 15px; line-height: 1.65; }
.fc-note strong { color: var(--ink); font-weight: 650; }

/* ---------- crew carousel — quieter tier right below the founders ---------- */
.crew {
  max-width: var(--container);     /* aligns with the founders block + heading */
  margin: var(--grid-gap) auto 0;  /* continues the founders grid rhythm */
  padding: 0 var(--gutter);
}
.crew-track {
  display: flex; gap: clamp(24px, 2.6vw, 38px);   /* roomier between pictures */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.crew-track::-webkit-scrollbar { display: none; }
.crew-card {
  flex: 0 0 clamp(190px, 16.5vw, 236px);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 12px 12px 16px;
  background: linear-gradient(180deg, rgba(240, 239, 232, 0.015), transparent);
}
.crew-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-panel);
  overflow: hidden;
  margin-bottom: 13px;
  background: var(--raised);
}
.crew-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  filter: saturate(0.85);          /* a notch quieter than the founders */
}
.crew-name { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; }
.crew-role {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--mut);
  margin-top: 4px;
}
.crew-arrow { flex: 0 0 auto; }

/* crew controls at the bottom: arrows flank expanding/contracting page lines */
.crew-controls {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 2vw, 22px);
  margin: clamp(24px, 3.4vh, 38px) auto 0;
}
.crew-bars {
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
/* ===== shared progress-line language (photo deck + crew) =====
   short + dim by default; the active line morphs long + bright. Thick lines,
   smooth width + colour transition on switch, no loading fill. */
.deck-bar, .crew-bar {
  flex: 0 0 auto;
  width: 20px; height: 22px;              /* short (passive) by default */
  padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);   /* smart, springy */
}
.deck-bar::before, .crew-bar::before {    /* the line itself */
  content: ""; width: 100%; height: 5px;  /* thick */
  border-radius: 5px;
  background: rgba(240, 239, 232, 0.16);  /* dim */
  transition: background 0.4s ease;
}
.deck-bar.is-active, .crew-bar.is-active { width: 58px; }   /* stretches long */
.deck-bar.is-active::before, .crew-bar.is-active::before { background: var(--link); }  /* brightens */
@media (hover: hover) and (pointer: fine) {
  .deck-bar:not(.is-active):hover::before,
  .crew-bar:not(.is-active):hover::before { background: rgba(240, 239, 232, 0.3); }
}

/* ---------- how we work ---------- */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  max-width: var(--container);          /* full container, like home's grids */
  margin: var(--section-head-gap) auto 0;
  padding: 0 var(--gutter);
}
.how-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--sp-6);
  background: linear-gradient(180deg, rgba(240, 239, 232, 0.02), transparent);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.how-card .hi {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-field);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--link);
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.how-card .hi svg { width: 19px; }
.how-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.how-card p { color: var(--mut); font-size: 14.5px; line-height: 1.65; }

/* ---------- quote ---------- */
.quote-section .wrap { max-width: 820px; }
.team-quote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.32; letter-spacing: -0.01em;
}
.quote-attr { margin-top: 30px; }
.quote-attr b { display: block; font-size: 15px; font-weight: 700; }
.quote-attr span {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mut);
}

/* ---------- join CTA ---------- */
.join-actions {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.copy-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mut);
  font-family: var(--mono); font-size: 13px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.copy-chip svg { width: 15px; }
.copy-chip .lbl-copied { display: none; color: var(--link); }
.copy-chip.copied .lbl-default { display: none; }
.copy-chip.copied .lbl-copied { display: inline; }
@media (hover: hover) and (pointer: fine) {
  .copy-chip:hover { color: var(--ink); border-color: rgba(240, 239, 232, 0.26); }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .founders { grid-template-columns: 1fr; max-width: 620px; }
  .how-grid { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 760px) {
  .stat-row { grid-template-columns: 1fr; gap: 30px; max-width: 460px; }
  .stat-label { max-width: none; }
}
@media (max-width: 600px) {
  /* matches the home hero on phones (clamp 26px floor); a hair more
     line-height so the centered multi-line headline breathes */
  .team-h1 { font-size: clamp(26px, 5.7vw, 46px); line-height: 1.16; }
}
@media (max-width: 560px) {
  .founder-card { grid-template-columns: 1fr; }   /* portrait back on top */
  .portrait { margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .deck-wrap { padding: 0 18px; }
  .deck { border-radius: var(--r-inset); aspect-ratio: 4 / 3; }
  .founders, .how-grid { padding: 0 18px; }
  .crew { padding: 0 18px; }
  .crew-arrow { display: none; }   /* swipe natively on touch */
  .crew-card { flex-basis: 64vw; }
}

/* ============================================================
   TEAM CARDS — clean vertical layout (photo · name · role · bio · socials).
   No card frame, no inner portrait frame — the photo IS the element.
   ============================================================ */
/* heading → first grid uses the same token as every other section (.how-grid,
   etc.) so the section-head rhythm is identical page-wide */
.team-section .team-grid { display: grid; gap: clamp(20px, 2.4vw, 34px); margin-top: var(--section-head-gap); }
/* founders sit as a primary 2-up (big vertical photos); the wider team + placeholders run 4-up */
.team-grid--founders { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-inline: auto; }
.team-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(26px, 3vh, 40px); }

.tm-card { text-align: left; }
.tm-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 26%, rgba(242, 115, 26, 0.14), transparent 68%),
    var(--raised);
}
.tm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.tm-name { margin-top: 16px; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
/* founders have room on the right — socials ride up beside the name */
.tm-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.tm-head .tm-name { margin-top: 0; }
.tm-head .tm-socials { margin-top: 0; flex-shrink: 0; }
.tm-role { margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--link); }
.tm-bio  { margin-top: 9px; font-size: 13.5px; line-height: 1.5; color: var(--mut); max-width: 34ch; }
/* founders are wider — let the bio use the full card width so it fits in ~2 lines
   and fills the space under the socials instead of leaving a void */
.team-grid--founders .tm-bio { max-width: none; }
/* wide cards: reserve two lines for the bio so a 1-line and a 2-line bio both push
   their social icons to the same height — even rows across the team */
.team-grid--wide .tm-bio { min-height: 3em; }
.tm-socials { display: flex; gap: 9px; margin-top: 14px; }
.tm-ico {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px;
  color: var(--mut); border: 1px solid var(--line); background: rgba(240, 239, 232, 0.02);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .15s var(--ease-out);
}
.tm-ico svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .tm-ico:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); transform: translateY(-1px); }
}
/* reserved placeholder — image slot only, no details */
.tm-card--placeholder .tm-photo--empty {
  display: grid; place-items: center; color: rgba(240, 239, 232, 0.20);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 30%, rgba(155, 175, 246, 0.08), transparent 62%),
    linear-gradient(180deg, var(--raised), #0c0f15);
}
.tm-card--placeholder .tm-photo--empty svg { width: 30%; height: auto; }

@media (max-width: 900px) {
  .team-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .team-grid--founders, .team-grid--wide { grid-template-columns: 1fr; max-width: 360px; }
  .team-section .team-grid { padding: 0 18px; }
}

/* footer mail button — swap the address for a copied confirmation on click */
.foot-lqm .mail-copied { display: none; }
.foot-lqm.copied .mail-default { display: none; }
.foot-lqm.copied .mail-copied { display: inline; color: var(--link); }

/* ---------- footer — warm, blue-free (team page only) ----------
   The shared `.footer` in styles.css is a deliberately COOL dark bookend
   (near-black #05070D + a blue fluted-glass video + blue hairline/glow/accent)
   for the home page. The team page dropped the video (removed from team.html)
   and warms every cool literal here, scoped to `.team-page` so the home footer
   is untouched. */
.team-page .footer { background: var(--bg); }
/* warm the hairline separator (was blue rgba(155,175,246,.22)) */
.team-page .footer::after {
  background: linear-gradient(90deg, transparent,
    color-mix(in srgb, var(--ink) 16%, transparent) 30%,
    color-mix(in srgb, var(--ink) 16%, transparent) 70%, transparent);
}
/* warm the behind-the-logo lift (was cool blue) → a soft ember breath */
.team-page .footer::before {
  background: radial-gradient(ellipse 46% 40% at 50% 92%,
    rgba(242, 115, 26, 0.08), transparent 70%);
}
/* footer accent → warm orange (the shared rule pins it blue #9BAFF6) */
.team-page .footer .hl { color: var(--link); }
