/* ---- Team: the Golden Trio ----
   Base styles are the finished state (rings overlapping, center lit, photos clear), which is what
   browsers without scroll timelines and reduced-motion readers see. */
.team__top { display: grid; gap: 48px; align-items: center; margin-bottom: 64px; }
.team__top .section-head { margin-bottom: 0; }

/* Trio diagram: three glass rings on an equilateral triangle, centers one radius apart, so the
   shared center is wide enough for the "Cleared" badge. Geometry in units of the width W
   (box is 100 x 105): radius 27; centers (50, 41), (36.5, 64.4), (63.5, 64.4); triple-overlap
   center (50, 56.6). Labels sit outside the rings, icons in each ring's own lobe. */
.trio { position: relative; width: min(100%, 420px); aspect-ratio: 100 / 105; margin: 0 auto; view-timeline-name: --trio; }
.trio__ring {
  position: absolute; width: 54%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-2);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .75), rgba(11, 11, 11, .05) 72%);
  box-shadow: inset 0 1px 0 #fff, 0 24px 48px -34px rgba(11, 11, 11, .4);
  mix-blend-mode: multiply;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.trio__ring--1 { left: 23%;   top: 13.33%; }
.trio__ring--2 { left: 9.5%;  top: 35.62%; }
.trio__ring--3 { left: 36.5%; top: 35.62%; }
.trio__icon { position: absolute; transform: translate(-50%, -50%); color: var(--ink-2); line-height: 0; }
.trio__icon .icon { width: 22px; height: 22px; }
.trio__icon--1 { left: 50%;    top: 28.76%; }
.trio__icon--2 { left: 27.15%; top: 66.48%; }
.trio__icon--3 { left: 72.85%; top: 66.48%; }
.trio__label { position: absolute; display: grid; gap: 3px; text-align: center; white-space: nowrap; transform: translateX(-50%); }
.trio__label b { font-weight: 500; font-size: clamp(.95rem, .85rem + .4vw, 1.125rem); letter-spacing: -.02em; line-height: 1.1; }
.trio__label small { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.trio__label--1 { left: 50%;  top: 0; }
.trio__label--2 { left: 27%;  top: 89.5%; }
.trio__label--3 { left: 73%;  top: 89.5%; }
.trio__center {
  position: absolute; left: 50%; top: 53.9%; transform: translate(-50%, -50%); z-index: 2;
  display: grid; place-items: center; align-content: center; gap: 4px;
  width: 17%; aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--signal); font-size: clamp(.5rem, .45rem + .2vw, .6rem); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 0 0 5px rgba(124, 242, 193, .25), 0 12px 28px -10px rgba(11, 11, 11, .6);
}
.trio__center .glyph i { background: var(--signal); }

/* Hovering a founder lights their ring. */
.team:has(.founder:nth-child(1):hover) .trio__ring--1,
.team:has(.founder:nth-child(2):hover) .trio__ring--2,
.team:has(.founder:nth-child(3):hover) .trio__ring--3 {
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7), rgba(124, 242, 193, .55) 70%);
  border-color: var(--signal-deep);
}

/* ---- Founder cards ---- */
.team__grid { display: grid; gap: 48px; }
.founder { display: grid; gap: 24px; align-content: start; }
.founder__photo {
  view-timeline-name: --photo;
  position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--page-2);
  box-shadow: 0 30px 60px -40px rgba(11, 11, 11, .55);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.founder__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
/* The glass token that redacts the photo before it clears. Hidden in the finished state. */
.founder__token {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0;
  padding: 7px 14px; border-radius: 8px; white-space: nowrap;
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .45));
  border: 1px solid #fff;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(11, 11, 11, .08), 0 14px 30px -14px rgba(11, 11, 11, .5);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
}
.founder__domain {
  position: absolute; left: 14px; bottom: 14px;
  padding: 5px 10px; border-radius: 999px; background: rgba(11, 11, 11, .78); color: var(--signal);
  font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.founder__role { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--signal-deep); }
.founder__name { margin-top: 8px; font-size: var(--step-2); font-weight: 400; letter-spacing: -.035em; line-height: 1.1; }
.founder__power { display: grid; gap: 4px; margin-top: 16px; padding: 12px 14px; border-left: 2px solid var(--ink); background: var(--page-2); border-radius: 0 10px 10px 0; font-size: var(--step-1); letter-spacing: -.01em; }
.founder__power .mono { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.founder__bio { margin-top: 16px; color: var(--ink-2); line-height: 1.6; }
.founder__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.founder__facts li { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .68rem; letter-spacing: .04em; }
.founder__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .9rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.founder__link:hover { border-color: var(--ink); }

@media (hover: hover) {
  .founder:hover .founder__photo { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 40px 70px -40px rgba(11, 11, 11, .7); }
  .founder:nth-child(2):hover .founder__photo { transform: translateY(-6px) rotate(.6deg); }
  .founder:hover .founder__photo img { transform: scale(1.04); }
}

@media (min-width: 640px) and (max-width: 899px) {
  .founder { grid-template-columns: 240px 1fr; gap: 28px; }
}
@media (min-width: 900px) {
  .team__top { grid-template-columns: 7fr 5fr; gap: 64px; margin-bottom: 88px; }
  .team__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .founder:nth-child(2) { margin-top: 48px; }   /* a staggered row, not a flat one */
}

/* ---- Scroll-driven sequence ---- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .trio__ring, .trio__center {
      animation: linear both; animation-timeline: --trio; animation-range: entry 0% cover 50%;
    }
    .trio__ring--1 { animation-name: ring-in-1; }
    .trio__ring--2 { animation-name: ring-in-2; }
    .trio__ring--3 { animation-name: ring-in-3; }
    .trio__center { animation-name: center-on; }
    .trio__icon, .trio__label { animation: fade-late linear both; animation-timeline: --trio; animation-range: entry 0% cover 50%; }

    /* Photos clear on their own timeline and finish once the photo is fully on screen. */
    .founder__photo img, .founder__token {
      animation: linear both; animation-timeline: --photo;
      animation-range: entry calc(var(--i) * 8%) entry calc(80% + var(--i) * 8%);
    }
    .founder__body {
      animation: linear both; animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    .founder__photo img { animation-name: photo-clear; }
    .founder__token { animation-name: token-lift; }
    .founder__body { animation-name: body-rise; }
  }
}

@keyframes ring-in-1  { 0%, 15% { transform: translateY(-34%) scale(.9); opacity: .35; } 100% { transform: none; opacity: 1; } }
@keyframes ring-in-2  { 0%, 15% { transform: translate(-30%, 22%) scale(.9); opacity: .35; } 100% { transform: none; opacity: 1; } }
@keyframes ring-in-3  { 0%, 15% { transform: translate(30%, 22%) scale(.9); opacity: .35; } 100% { transform: none; opacity: 1; } }
@keyframes center-on  { 0%, 78% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes fade-late  { 0%, 55% { opacity: 0; } 100% { opacity: 1; } }
@keyframes photo-clear { 0%, 40% { filter: blur(18px) grayscale(1); scale: 1.12; } 100% { filter: none; scale: 1; } }
@keyframes token-lift { 0%, 45% { opacity: 1; clip-path: inset(0 0 0 0 round 8px); } 85%, 100% { opacity: 0; clip-path: inset(0 0 0 100% round 8px); } }
@keyframes body-rise  { 0%, 30% { opacity: 0; transform: translateY(24px); } 100% { opacity: 1; transform: none; } }
