/* ============================================================
   team.css — Team page phase 1 (founder spotlight + expandable tiles)
   Linked only from team.html. Behavior in js/team.js.
   ============================================================ */

/* 1. Intro: more breathing room top and bottom */
.team-hero {
  min-height: 60svh;
  padding-top: 160px;
  padding-bottom: 140px;
}
@media (max-width: 720px) {
  .team-hero { padding-top: 120px; padding-bottom: 96px; }
}

/* Section */
.ts-section { padding-top: 0; }
.ts-section .section-inner { padding-top: 120px; padding-bottom: 120px; }

/* Shared tile button reset */
.ts-tile {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  cursor: pointer;
  text-align: center;
  border-radius: 20px;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.ts-tile:focus-visible { outline: 2px solid rgba(255,255,255,.8); outline-offset: 4px; }

/* "More" affordance */
.ts-more {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.ts-more-icon {
  position: relative; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  transition: transform .4s var(--ease-out), background .3s;
}
.ts-more-icon::before, .ts-more-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 1px; background: currentColor; transform: translate(-50%,-50%);
}
.ts-more-icon::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .4s var(--ease-out); }
.ts-tile[aria-expanded="true"] .ts-more-icon { background: rgba(255,255,255,.12); }
.ts-tile[aria-expanded="true"] .ts-more-icon::after { transform: translate(-50%,-50%) rotate(0deg); }

/* 2. Founder spotlight */
.ts-founder { max-width: 760px; margin: 0 auto; text-align: center; }
.ts-founder-btn { padding: 8px 8px 28px; }
.ts-founder-photo {
  display: block;
  width: min(300px, 64vw); aspect-ratio: 1/1;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 0 10px rgba(255,255,255,.04), 0 30px 80px rgba(0,0,0,.55);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.ts-founder-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ts-founder-btn:hover .ts-founder-photo { transform: scale(1.02); box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 0 12px rgba(255,255,255,.06), 0 30px 80px rgba(0,0,0,.6); }
.ts-founder-name {
  display: block; margin-top: 40px;
  font-size: clamp(36px, 5vw, 56px); font-weight: 300; letter-spacing: -.02em; line-height: 1.05;
  color: var(--white);
}
.ts-founder-role {
  display: block; margin-top: 12px;
  font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.ts-founder-statement {
  display: block; max-width: 620px; margin: 28px auto 0;
  font-size: clamp(18px, 2vw, 21px); font-weight: 400; line-height: 1.6;
  color: rgba(255,255,255,.78);
}
.ts-quote { margin: 8px auto 0; max-width: 620px; }
.ts-quote p {
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 300; font-style: italic; line-height: 1.45;
  color: var(--white);
}
.ts-draft-flag {
  display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 500; letter-spacing: .06em;
  color: #1d1d1f; background: #f5d76e;
}

/* Team note + roles eyebrow */
.ts-team-note {
  max-width: 720px; margin: 88px auto 0; text-align: center;
  font-size: 18px; font-weight: 400; line-height: 1.7; color: rgba(255,255,255,.62);
}
.ts-roles-eyebrow { text-align: center; margin-top: 88px; }

/* 3. Role tiles */
.ts-roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.ts-role .ts-tile {
  height: 100%;
  padding: 36px 24px 30px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
}
.ts-role .ts-tile:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); transform: translateY(-2px); }
.ts-role .ts-tile[aria-expanded="true"] { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.35); }
.ts-avatar {
  display: flex; align-items: flex-end; justify-content: center;
  width: 128px; height: 128px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.12), rgba(255,255,255,.03));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.ts-sil { width: 100%; height: 100%; fill: rgba(255,255,255,.28); }
.ts-role-own .ts-avatar { overflow: visible; }
.ts-role-own .ts-sil { fill: rgba(255,255,255,.2); overflow: visible; }
.ts-plus circle { fill: #f5f5f7; }
.ts-plus path { stroke: #1d1d1f; stroke-width: 3; stroke-linecap: round; fill: none; }
.ts-open {
  margin-top: 22px;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.ts-role-own .ts-open { color: rgba(255,255,255,.85); }
.ts-title { margin-top: 8px; font-size: 20px; font-weight: 400; line-height: 1.3; color: var(--white); }
.ts-dept {
  margin-top: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.ts-role .ts-more { margin-top: auto; padding-top: 22px; }
.ts-role-own .ts-tile { border-style: dashed; border-color: rgba(255,255,255,.28); }

/* 4. Expanding panels */
.ts-panel {
  overflow: hidden;
  height: 0;
  transition: height .45s var(--ease-out);
}
.ts-panel.is-open { height: auto; }
.ts-roles .ts-panel { grid-column: 1 / -1; }
.ts-panel-inner {
  margin-top: 28px;
  padding: 40px 44px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  text-align: left;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .35s var(--ease-out) .05s, transform .45s var(--ease-out);
}
.ts-panel.is-open .ts-panel-inner, .ts-panel.is-opening .ts-panel-inner { opacity: 1; transform: none; }
.ts-panel p { font-size: 16px; font-weight: 400; line-height: 1.7; color: rgba(255,255,255,.72); }
.ts-panel p + p { margin-top: 16px; }
.ts-panel-h {
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 10px;
}
.ts-role-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
.ts-panel-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ts-role-detail .ts-panel-actions { grid-column: 1 / -1; margin-top: 4px; }

/* Founder panel */
.ts-panel-founder { max-width: 1000px; margin: 0 auto; }
.ts-founder-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; }
.ts-award-slot { margin: 0; }
.ts-award-frame {
  aspect-ratio: 4/3; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px dashed rgba(255,255,255,.25);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
}
.ts-award-label { font-size: 20px; font-weight: 300; color: var(--white); }
.ts-award-sub { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ts-award-slot figcaption { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.4); text-align: center; }
.ts-facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.ts-facts li { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
.ts-fact-num { font-size: 30px; font-weight: 300; color: var(--white); min-width: 72px; }
.ts-fact-label { font-size: 14px; color: rgba(255,255,255,.6); }

/* Join CTA */
.ts-join-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 44px; }

/* Responsive */
@media (max-width: 1080px) {
  .ts-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ts-section .section-inner { padding-top: 80px; padding-bottom: 80px; }
  .ts-roles { grid-template-columns: 1fr; gap: 16px; }
  .ts-role .ts-tile { padding: 28px 20px 24px; }
  .ts-role .ts-avatar { width: 96px; height: 96px; }
  .ts-panel-inner { padding: 28px 22px; margin-top: 12px; }
  .ts-role-detail, .ts-founder-detail { grid-template-columns: 1fr; gap: 24px; }
  .ts-team-note { margin-top: 64px; font-size: 17px; }
  .ts-roles-eyebrow { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-panel, .ts-panel-inner, .ts-tile, .ts-founder-photo, .ts-more-icon, .ts-more-icon::after { transition: none !important; }
}

/* ============================================================
   Phase 2: founder bio + career timeline
   ============================================================ */
.ts-founder-bio { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; }
.ts-founder-bio .ts-facts { margin-top: 0; }
.ts-career { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.1); }
.ts-career-h { margin-bottom: 6px; }
.ts-bio-h { margin-bottom: 18px; }
.ts-career-intro { font-size: 22px !important; font-weight: 300 !important; color: var(--white) !important; }
.ts-tl { list-style: none; margin: 32px 0 0; padding: 0 0 0 28px; position: relative; }
.ts-tl::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,.08)); }
.ts-tl-item { position: relative; display: grid; grid-template-columns: 64px 280px 1fr; gap: 28px; align-items: start; padding: 0 0 40px; }
.ts-tl-item::before { content: ''; position: absolute; left: -28px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: #1d1d1f; border: 1px solid rgba(255,255,255,.55); }
.ts-tl-year { font-size: 15px; font-weight: 500; letter-spacing: .04em; color: rgba(255,255,255,.55); padding-top: 2px; }
.ts-tl-photo { margin: 0; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.04); aspect-ratio: 4/3; }
.ts-tl-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ts-tl-photo-portrait img { object-position: 50% 22%; }
.ts-tl-photo-contain { background: #111; }
.ts-tl-photo-contain img { object-fit: contain; }
.ts-tl-photo figcaption { font-size: 11px; color: rgba(255,255,255,.4); padding: 6px 2px 0; background: #000; }
.ts-tl-photo:has(figcaption) { aspect-ratio: auto; background: none; }
.ts-tl-photo:has(figcaption) picture { display: block; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; }
.ts-tl-title { font-size: 19px; font-weight: 400; color: var(--white); margin: 0 0 8px; line-height: 1.35; }
.ts-tl-body p { font-size: 15px !important; }
.ts-draft { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 7px; border-radius: 100px; font-size: 10px; font-weight: 500; letter-spacing: .06em; color: #1d1d1f; background: #f5d76e; }
.ts-tl-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px !important; }
.ts-tl-links a { font-size: 14px; color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.ts-tl-links a[data-todo] { color: rgba(255,255,255,.5); text-decoration-style: dashed; }
.ts-tl-links a[data-todo]::after { content: ' (link TBD)'; font-size: 11px; color: #f5d76e; }
.ts-tl-line { grid-template-columns: 64px 1fr; padding-bottom: 32px; }
.ts-tl-line .ts-tl-body p { color: rgba(255,255,255,.6) !important; padding-top: 1px; }
.ts-trophy-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px dashed rgba(255,255,255,.25); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.ts-trophy-slot svg { width: 56px; height: 56px; fill: none; stroke: rgba(255,255,255,.6); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ts-trophy-slot figcaption { background: none; padding: 0; font-size: 12px; }
.ts-tl-award .ts-tl-photo:has(figcaption) { aspect-ratio: 4/3; }
.ts-tl-award::before { background: #f5f5f7; border-color: #f5f5f7; }
.ts-career-note { font-size: 13px !important; font-style: italic; color: rgba(255,255,255,.4) !important; margin-top: 4px; }
@media (max-width: 900px) {
  .ts-founder-bio { grid-template-columns: 1fr; gap: 28px; }
  .ts-tl-item { grid-template-columns: 1fr; gap: 12px; }
  .ts-tl-photo { max-width: 420px; }
}
@media (max-width: 720px) {
  .ts-tl { padding-left: 22px; }
  .ts-tl-item::before { left: -22px; }
  .ts-career-intro { font-size: 19px !important; }
}

/* Phase 2b: real photos */
.ts-tl-photo-tall, .ts-tl-award .ts-tl-photo-tall { aspect-ratio: 4/5; }
.ts-tl-photo-tall img { object-position: 50% 15%; }
.ts-tl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: none; }
.ts-tl-pair picture { display: block; overflow: hidden; border-radius: 12px; }
.ts-tl-pair img { object-position: 30% 35%; }
.ts-confirm { font-size: 10px; font-weight: 500; letter-spacing: .06em; color: #1d1d1f; background: #f5d76e; padding: 1px 7px; border-radius: 100px; }

/* Phase 2c: folder-only photos, text cards */
.ts-tl-text { grid-template-columns: 64px 1fr; }
.ts-tl-media { display: grid; gap: 10px; }
.ts-tl-photo:has(figcaption) picture { aspect-ratio: 4/3; }
.ts-tl-neutral .ts-tl-photo img { object-position: 70% 30%; }
.ts-tl-neutral .ts-tl-body p { color: rgba(255,255,255,.6) !important; padding-top: 1px; }
@media (max-width: 900px) { .ts-tl-text { grid-template-columns: 1fr; } .ts-tl-media { max-width: 420px; } }

/* Phase 2d: graduation pair */
.ts-tl-pair-grad { aspect-ratio: auto; }
.ts-tl-pair-grad picture { aspect-ratio: 3/4; }
.ts-tl-pair-grad img { object-position: 50% 30%; }
.ts-tl-pair-grad figcaption { grid-column: 1 / -1; }
.ts-tl-photo.ts-tl-pair-grad picture { aspect-ratio: 3/4; }
