/* ==========================================================================
   GEBI — Team page
   Loaded after css/styles.css (shared palette, header, sections, contact, footer).

   The reference artwork is Desktop/TeamPage.png (1024 x 1536). As on the landing
   page the artwork is used as the page itself, in aspect-ratio-locked crops with
   every word rebuilt as real HTML:

     assets/team-hero.webp  2089 x 753   supplied landscape (replaced the mockup's
                                         hikers crop; see README section 13)
     assets/team-ahmed.png    810 x 480   card portrait, white background (see below)

   The three card portraits (team-antoniya / team-ahmed / team-carolina) are the
   original photographs cut out of their studio backdrops and composited on plain
   white by _qa/_team_white_bg.py at 3x the 270 x 160 layout box. They are written
   at that size so the ~404px-wide cards stay sharp on retina screens. The earlier
   tiles, whose watercolour washes and leaves came from the mockup, are retired in
   _qa/team-tiles-original/.
   ========================================================================== */

/* The landing page redraws the artwork's sun inside the fixed header
   (.site-header::before). The team hero is a different artwork whose own sun sits
   at its top-left, so that disc is switched off here. */
.t-page .site-header::before{display:none}

/* ---------- hero: the supplied landscape, with the words as real text ---------- */
/* The hero block is the advisory-board / join-us block (.ab-hero / .jn-hero) with a
   picture in it instead of clouds: the same --t-head drop below the fixed bar, the same
   clamp() min-height, the same --pad / --max-w column, and the same cream fade at the
   foot - so all three heroes are the same height and the heading starts at the same
   place. --t-head clears the fixed bar (~66 px: .4rem padding x2 + 52 px bar + 1 px
   border). */
.t-hero{
  --t-head:3.8rem;
  position:relative;isolation:isolate;overflow:hidden;
  min-height:clamp(22rem,34vw,30rem);
  background:var(--cream);
  padding:calc(var(--t-head) + clamp(2.5rem,6vw,4.5rem)) var(--pad) clamp(1.5rem,3vw,2.5rem);
}
/* The picture is the backdrop, cropped to the block the way the clouds are on the other
   two pages (object-fit:cover, anchored to the top so the sun and the peaks stay in
   frame). It starts half a rem above the bar's clearance, so the opaque bar always
   overlaps its top edge - a hard picture edge must never show as a strip of cream under
   the bar - and it is still low enough to leave the artwork's sun below the bar. */
.t-hero-art{
  position:absolute;left:0;right:0;top:calc(var(--t-head) - .5rem);bottom:0;z-index:-1;
  width:100%;height:auto;object-fit:cover;object-position:center top;
}
/* the cream fade at the foot: identical to .ab-hero::after / .jn-hero::after, so the
   picture meets the cream page below without a seam */
.t-hero::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:clamp(3rem,9vw,8rem);z-index:-1;
  pointer-events:none;background:linear-gradient(180deg,rgba(244,241,234,0),var(--cream));
}
/* The heading block is deliberately identical to the advisory-board and join-us heroes:
   the inner box is the same --max-w column centred in the same --pad gutter, and the
   h1 / lede carry the same clamps, so the three pages set their heading at the same x/y
   and in the same size. */
.t-hero-inner{max-width:var(--max-w);margin:0 auto}
.t-hero-h1{margin:0;font-size:clamp(2.4rem,6vw,4rem);line-height:1.04;letter-spacing:-.02em;max-width:22ch;color:var(--ink)}
.t-hero-lede{margin:clamp(1rem,2vw,1.4rem) 0 0;max-width:56ch;font-size:clamp(1rem,1.35vw,1.15rem);line-height:1.6;color:var(--ink-copy)}

/* ---------- shared bits ---------- */
.hint{text-align:center;font-size:.9rem;color:var(--ink-soft);margin:.5rem auto 0}
.t-eyebrow{
  margin:0 0 .6rem;font-size:.8rem;font-weight:600;letter-spacing:.18em;
  text-transform:uppercase;color:var(--ink-soft);
}
.t-rule{display:block;width:4.5rem;height:3px;border-radius:2px;background:var(--green-deep);margin:1.1rem 0 0}
.ghost{border:1px solid var(--line);background:none;border-radius:999px;padding:.5rem 1.1rem;font-weight:500;font-size:.95rem}
.ghost:hover{border-color:var(--navy)}

/* ---------- the team ---------- */
.t-team{padding-top:clamp(3rem,6vw,5rem)}
.t-team-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:start}
.t-team-top h2{margin-bottom:0;max-width:24ch}
.t-intro{color:var(--ink-copy);margin:0;max-width:38ch}
@media (max-width:860px){.t-team-top{grid-template-columns:1fr;gap:1.1rem}.t-intro{max-width:62ch}}

.people{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.9rem,2vw,2rem);margin:clamp(1.75rem,3.5vw,2.75rem) 0 clamp(1.5rem,3vw,2.25rem)}
/* the river: a decorative watercolour layer that runs behind the row of cards.
   It sits under the grid (z-index -1 inside an isolated stacking context) and is
   full-bleed: 100vw wide, centred on the row, so it spans the whole browser with
   no side padding (the row is centred, so its centre is the viewport centre). */
.people::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  left:50%;right:auto;width:100vw;margin-left:-50vw;top:-16%;bottom:-16%;
  background:url(../assets/team-river.png) center/100% auto no-repeat;
}
@media (max-width:860px){
  .people{grid-template-columns:1fr;max-width:30rem}
  /* stacked: the wave would sit awkwardly between cards, so thin it right down */
  .people::before{top:-3%;bottom:-3%;opacity:.5}
}
.pcard{
  display:flex;flex-direction:column;padding:0;overflow:hidden;text-align:left;
  background:var(--cream-hi);border:1px solid var(--line);border-radius:26px;
  box-shadow:0 10px 30px rgba(24,48,70,.08);
  transition:transform .22s,box-shadow .22s,border-color .22s;
}
.pcard:hover{transform:translateY(-4px);box-shadow:0 18px 44px rgba(24,48,70,.16)}
.pcard[aria-pressed="true"]{border-color:var(--c);box-shadow:0 0 0 2px var(--c),0 18px 44px rgba(24,48,70,.16)}
.pcard-media{display:block;position:relative}
.pcard-media img{display:block;width:100%;height:auto}
.pcard-body{display:flex;flex-direction:column;flex:1;padding:1.15rem clamp(1rem,1.6vw,1.4rem) 1.35rem}
.pcard-name{font-family:var(--head);font-weight:600;font-size:1.22rem;line-height:1.2;letter-spacing:-.01em;color:var(--ink)}
.pcard-role{margin-top:.55rem;font-size:.73rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-soft)}
.pcard-blurb{margin-top:.6rem;font-size:.97rem;line-height:1.55;color:var(--ink-copy)}
.pcard-more{margin-top:auto;padding-top:1.1rem;font-weight:600;color:var(--navy);font-size:.97rem}
.pcard-more span{display:inline-block;transition:transform .2s}
.pcard:hover .pcard-more{color:var(--ink)}
.pcard:hover .pcard-more span{transform:translateX(3px)}

.detail{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(1.5rem,4vw,3rem)}
@media (max-width:860px){.detail{grid-template-columns:1fr}}
.detail[hidden]{display:none}
.detail h3{font-size:clamp(1.7rem,3vw,2.2rem);margin-bottom:.2rem}
.detail .role{color:var(--ink-soft);margin:0 0 1.2rem}
.facts{margin:0 0 1.4rem;display:grid;gap:.8rem}
.facts dt{font-size:.9rem;color:var(--ink-soft)}
.facts dd{margin:0;font-weight:600}
.detail h4{font:700 1rem var(--body);margin:1.2rem 0 .3rem;color:var(--ink)}
.detail h4:first-child{margin-top:0}
.detail p{max-width:56ch}
.detail .actions{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;margin-top:1.2rem}
/* the outlined companions to the solid email pill: same pill, ink-coloured ring */
.detail .btn-outline{background:transparent;border:1.5px solid currentColor;color:var(--ink)}
/* the glyph-only pills (email, LinkedIn, Substack): round buttons, one button height */
.detail .actions .btn{display:inline-flex;align-items:center;justify-content:center;height:2.7rem}
.detail .btn-icon{width:2.7rem;padding:0}
.detail .btn-icon svg{width:1.15rem;height:1.15rem;display:block}
