.team-page { background: var(--ink); }
.team-page .nav a[aria-current="page"] { color: var(--white); }
.team-page .nav a[aria-current="page"]::before { transform: scaleX(1); }

.team-hero {
  min-height: min(100svh, 980px);
  padding: 9rem 0 5rem;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 78% 46%, rgba(225, 29, 46, .16), transparent 27%), var(--ink);
}
.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .17;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 48%, #000);
}
.team-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: clamp(4rem, 8vw, 10rem); }
.team-hero__copy .kicker { display: flex; align-items: center; gap: .8rem; margin-bottom: 3rem; }
.team-hero__copy .kicker span { width: 35px; height: 1px; background: var(--red-hot); }
.team-hero h1 { color: var(--paper); font: 500 clamp(4.5rem, 8.2vw, 9.2rem)/.84 var(--display); letter-spacing: -.075em; }
.team-hero h1 em { color: var(--red-hot); font-style: normal; }
.team-hero__aside { position: relative; z-index: 3; padding: 2.5rem 0 1rem; }
.team-hero__aside > strong { display: block; color: transparent; font: 600 clamp(7rem, 14vw, 14rem)/.7 var(--display); letter-spacing: -.09em; -webkit-text-stroke: 1px rgba(255,255,255,.18); }
.team-hero__aside > p { max-width: 38ch; margin-top: 3rem; color: var(--gray); font-size: 1rem; line-height: 1.75; }
.team-hero__aside .text-link { margin-top: 2rem; }
.team-hero__orbit { position: absolute; z-index: 1; right: -7vw; top: 50%; width: min(49vw, 760px); aspect-ratio: 1; transform: translateY(-50%); border: 1px solid rgba(255,36,56,.22); border-radius: 50%; animation: team-orbit 34s linear infinite; }
.team-hero__orbit::before, .team-hero__orbit::after { content: ""; position: absolute; border-radius: inherit; border: 1px solid rgba(255,255,255,.08); }
.team-hero__orbit::before { inset: 15%; }
.team-hero__orbit::after { inset: 34%; border-style: dashed; }
.team-hero__orbit span { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 20px var(--red); }
.team-hero__orbit span:nth-child(1) { top: 8%; left: 27%; }
.team-hero__orbit span:nth-child(2) { right: 4%; top: 54%; }
.team-hero__orbit span:nth-child(3) { left: 20%; bottom: 5%; }
.team-hero__meta { position: absolute; z-index: 3; left: 1.5rem; bottom: 2rem; display: flex; gap: 2rem; color: var(--gray-dark); font: 700 .52rem var(--mono); letter-spacing: .1em; writing-mode: vertical-rl; transform: rotate(180deg); }

.crew { background: #0a0a0b; }
.crew-intro { display: grid; grid-template-columns: .55fr 1.15fr .75fr; align-items: end; gap: 3rem; margin-bottom: clamp(4rem, 8vw, 7.5rem); }
.crew-intro h2 { color: var(--paper); font: 500 clamp(3.2rem, 5.7vw, 6.2rem)/.93 var(--display); letter-spacing: -.065em; }
.crew-intro > p:last-child { max-width: 38ch; justify-self: end; color: var(--gray); line-height: 1.75; }
.crew-list { position: relative; border-top: 1px solid var(--line); }
.crew-list::before { content: ""; position: absolute; z-index: 3; top: 0; bottom: 0; left: 179px; width: 1px; background: linear-gradient(var(--red-hot), rgba(255,36,56,.12)); pointer-events: none; }
.crew-member {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 70px 230px 1fr 110px;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  min-height: 330px;
  padding: 2.5rem 1.5rem 2.5rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: padding .5s var(--ease), border-color .4s;
}
.crew-member::before { content: ""; position: absolute; z-index: -2; inset: 0; background: var(--red-dark); transform: translateY(101%); transition: transform .6s var(--ease); }
.crew-member::after { content: ""; position: absolute; z-index: -1; width: 38%; aspect-ratio: 1; right: 12%; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; transform: scale(.6); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.crew-member:hover { padding-left: 1.5rem; border-color: var(--red-dark); }
.crew-member:hover::before { transform: translateY(0); }
.crew-member:hover::after { transform: scale(1); opacity: 1; }
.crew-member__number { align-self: start; padding-top: .35rem; color: var(--gray-dark); font: 700 .58rem var(--mono); transition: color .4s; }
.crew-member__portrait { position: relative; z-index: 4; width: 210px; aspect-ratio: 1; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.crew-member__portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, transparent 56%, rgba(225,29,46,.35)); mix-blend-mode: screen; pointer-events: none; }
.crew-member__portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .6s var(--ease), transform .8s var(--ease); }
.crew-member__portrait > span { position: absolute; z-index: 2; left: .75rem; bottom: .65rem; display: flex; align-items: center; gap: .4rem; padding: .32rem .45rem; color: var(--paper); background: rgba(8,8,8,.72); backdrop-filter: blur(8px); font: 700 .45rem var(--mono); letter-spacing: .09em; }
.crew-member__portrait > span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 8px var(--red); }
.crew-member:hover .crew-member__portrait img { filter: grayscale(0) contrast(1.03); transform: scale(1.045); }
.crew-member__identity > p { color: var(--coral); font: 700 .58rem var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: color .4s; }
.crew-member__identity h3 { margin: 1rem 0 1.4rem; color: var(--paper); font: 500 clamp(2.8rem, 5vw, 5.6rem)/.87 var(--display); letter-spacing: -.065em; }
.crew-member__identity > span { color: var(--gray); font-size: .78rem; transition: color .4s; }
.crew-member__link { justify-self: end; display: grid; justify-items: end; gap: 1.8rem; color: var(--gray); font: 700 .57rem var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: color .4s; }
.crew-member__link i { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; color: var(--red-hot); font: 400 1rem var(--body); font-style: normal; transition: transform .5s var(--ease), background .4s, color .4s; }
.crew-member:hover .crew-member__number, .crew-member:hover .crew-member__identity > span, .crew-member:hover .crew-member__link { color: rgba(255,255,255,.7); }
.crew-member:hover .crew-member__identity > p { color: var(--white); }
.crew-member:hover .crew-member__link i { color: var(--ink); background: var(--paper); transform: rotate(45deg); }

.team-principle { background: var(--paper); color: var(--ink); }
.team-principle__grid { display: grid; grid-template-columns: .5fr 1.25fr .75fr; align-items: end; gap: 3rem; }
.team-principle .kicker { color: var(--red); }
.team-principle h2 { font: 500 clamp(3rem, 5.6vw, 6.2rem)/.94 var(--display); letter-spacing: -.065em; }
.team-principle h2 span { color: var(--red); }
.team-principle__grid > p:last-child { max-width: 38ch; color: #625c5e; line-height: 1.75; }

.team-contact { background: linear-gradient(120deg, var(--red-deep), var(--red-dark)); overflow: hidden; }
.team-contact::before { content: "03"; position: absolute; right: -2vw; top: 50%; color: rgba(255,255,255,.04); font: 600 32vw/.6 var(--display); letter-spacing: -.1em; transform: translateY(-50%); }
.team-contact__inner { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.team-contact .kicker { color: rgba(255,255,255,.65); margin-bottom: 1.8rem; }
.team-contact h2 { color: var(--paper); font: 500 clamp(3.4rem, 7vw, 7.5rem)/.88 var(--display); letter-spacing: -.07em; }
.team-contact .button { flex-shrink: 0; background: var(--paper); border-color: var(--paper); color: var(--ink); }
.team-contact .button::before { background: var(--ink); }
.team-contact .button i { border-color: rgba(0,0,0,.2); }
.team-contact .button:hover { color: var(--white); border-color: var(--ink); }

@keyframes team-orbit { to { transform: translateY(-50%) rotate(360deg); } }

@media (max-width: 1100px) {
  .team-hero__inner { grid-template-columns: 1fr .65fr; gap: 3rem; }
  .crew-list::before { left: 143px; }
  .crew-member { grid-template-columns: 50px 185px 1fr 80px; gap: 2rem; }
  .crew-member__portrait { width: 175px; }
}

@media (max-width: 900px) {
  .team-hero { min-height: auto; padding: 10rem 0 7rem; }
  .team-hero__inner { grid-template-columns: 1fr; }
  .team-hero__aside { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 2rem; }
  .team-hero__aside > strong { grid-row: span 2; }
  .team-hero__aside > p { margin-top: 0; }
  .team-hero__aside .text-link { margin-top: 0; width: fit-content; }
  .team-hero__orbit { width: 82vw; right: -38vw; opacity: .7; }
  .crew-intro, .team-principle__grid { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
  .crew-intro > p:last-child { justify-self: start; }
  .crew-list::before { left: 115px; }
  .crew-member { grid-template-columns: 38px 155px 1fr 55px; gap: 1.3rem; min-height: 260px; }
  .crew-member__portrait { width: 145px; }
  .crew-member__identity h3 { font-size: clamp(2.2rem, 7vw, 4rem); }
  .crew-member__link > span { display: none; }
}

@media (max-width: 620px) {
  .team-hero { padding: 7.5rem 0 4.5rem; }
  .team-hero__copy .kicker { margin-bottom: 2rem; }
  .team-hero h1 { font-size: clamp(3.3rem, 16vw, 4.8rem); line-height: .88; }
  .team-hero__aside { grid-template-columns: 82px 1fr; gap: 1.25rem; padding-top: 1.5rem; }
  .team-hero__aside > strong { font-size: 5.2rem; }
  .team-hero__aside > p { font-size: .9rem; }
  .team-hero__aside .text-link { grid-column: 1 / -1; }
  .team-hero__orbit { width: 96vw; right: -55vw; opacity: .48; }
  .team-hero__meta { display: none; }
  .crew-intro h2 { font-size: clamp(2.8rem, 13.5vw, 4.1rem); }
  .crew-list::before { display: none; }
  .crew-member { grid-template-columns: 24px minmax(0, 1fr) 35px; gap: .85rem; min-height: 0; padding: 1.25rem 0 2.25rem; }
  .crew-member:hover { padding-left: 0; }
  .crew-member__number { grid-column: 1; grid-row: 1; }
  .crew-member__portrait { grid-column: 2 / 4; grid-row: 1; width: 100%; max-width: none; aspect-ratio: 1.35; }
  .crew-member__identity { grid-column: 2; grid-row: 2; padding-top: .7rem; }
  .crew-member__identity h3 { margin: .8rem 0 1rem; font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .crew-member__link { grid-column: 3; grid-row: 2; align-self: center; }
  .crew-member__link i { width: 35px; height: 35px; }
  .team-principle h2 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .team-contact__inner { align-items: stretch; flex-direction: column; }
  .team-contact h2 { font-size: clamp(3.4rem, 17vw, 5rem); }
  .team-contact .button { width: 100%; }
}

@media (max-width: 390px) {
  .team-hero { padding-top: 6.75rem; }
  .team-hero__copy .kicker { font-size: .54rem; }
  .team-hero__copy .kicker span { width: 24px; }
  .team-hero h1 { font-size: clamp(2.9rem, 15vw, 3.65rem); }
  .team-hero__aside { grid-template-columns: 68px minmax(0, 1fr); gap: 1rem; }
  .team-hero__aside > strong { font-size: 4.4rem; }
  .team-hero__aside > p { font-size: .84rem; line-height: 1.65; }
  .crew-intro h2 { font-size: clamp(2.5rem, 12.8vw, 3.2rem); }
  .crew-intro > p:last-child { font-size: .9rem; }
  .crew-member { grid-template-columns: 20px minmax(0, 1fr) 32px; gap: .7rem; }
  .crew-member__portrait { aspect-ratio: 1.2; }
  .crew-member__identity > p { font-size: .5rem; }
  .crew-member__identity h3 { font-size: clamp(2.15rem, 11.5vw, 2.85rem); }
  .crew-member__identity > span { display: block; max-width: 24ch; overflow-wrap: anywhere; font-size: .68rem; }
  .crew-member__link i { width: 32px; height: 32px; }
  .team-principle h2 { font-size: clamp(2.5rem, 12.8vw, 3.25rem); }
  .team-contact h2 { font-size: clamp(3rem, 15.5vw, 3.9rem); }
}

@media (hover: none), (pointer: coarse) {
  .crew-member__portrait img { filter: grayscale(.18) contrast(1.04); }
  .crew-member::before, .crew-member::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .team-hero__orbit { animation: none; }
}
