/* =========================================================
   Team overview page (template: team)
   Loaded after the global CSS. Sections below the member grid
   use their own class names (team-journey, team-textbox, ...).
   ========================================================= */

/* --- Profiles & Roles --- */
.section--team-profiles { padding: 3.5rem 0 3rem; }
.section--team-profiles .section__title { color: #333; }
.section--team-profiles .section__text { color: #333; font-weight: 300; max-width: 26rem; }
.section--team-profiles .section__footer { margin-top: 3.5rem; }
.team-alumni__toggle { background: #fff; color: #213342; border-color: #5b14b8; border-width: 2px; }
.team-alumni__toggle:hover { background: #5b14b8; color: #fff; }
.team-alumni { margin-top: 3rem; text-align: left; }
.team-alumni[hidden] { display: none; }
.team-alumni__title { font-size: var(--fs-h3); font-weight: 600; color: #333; text-align: center; margin: 0; }

/* member cards: text colours of the mockup */
.section--team-profiles .member-card__name { color: #213342; }
.section--team-profiles .member-card__role { font-size: var(--fs-small); color: #333; }
.section--team-profiles .member-card__more { color: #5b14b8; }
/* regular photos (not cut-outs) get the same frame line as the silhouette cards */
.section--team-profiles .member-card__frame--photo { border-color: #64748b; }

/* Students, Alumni ... below the cards: headings and Markdown text from the Panel (feedback 28.10.). Headings like the
   bands of the profile pages, lists with the same dash; names run in two columns on wide screens */
.team-people { margin-top: 4.5rem; text-align: left; color: #333; }
.team-people > :first-child { margin-top: 0; }
.team-people h2,
.team-people h3 { margin: 2.6rem 0 1rem; font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; color: #333; }
.team-people h4,
.team-people h5,
.team-people h6 { margin: 1.8rem 0 0.6rem; font-size: var(--fs-body); font-weight: 600; line-height: 1.3; color: #333; }
.team-people p { margin: 0 0 1rem; font-size: var(--fs-small); font-weight: 300; line-height: 1.6; }   /* (feedback 30.10.: names always smaller than the headings) */
.team-people ul,
.team-people ol { margin: 0 0 1rem; padding: 0; }
.team-people ol { padding-left: 1.3rem; list-style: decimal; }
.team-people li { margin: 0 0 0.5rem; font-size: var(--fs-small); font-weight: 300; line-height: 1.55; break-inside: avoid; }
.team-people ul > li { position: relative; padding-left: 0.9rem; }
.team-people ul > li::before { content: "-"; position: absolute; left: 0; top: 0; }
.team-people a { color: #5b14b8; text-decoration: underline; text-underline-offset: 3px; }
.team-people a:hover { color: #4a0f98; }
@media (max-width: 768px) { .team-people { margin-top: 3.5rem; } }

/* --- Our Journey ------------------------------------------------------- */
.team-journey {
  position: relative;
  padding: calc(90px + 3.5rem) 0 calc(90px + 4.5rem);
  background: var(--journey-bg, none) center / 100% 100% no-repeat, var(--grad-dark);
  overflow-x: clip;                    /* (the milestones travel sideways) - up and down the curves may reach 2px out */
  overflow-y: visible;
  text-align: left;
}
.team-journey__wave { position: absolute; left: 0; right: 0; z-index: 1; margin: 0; background: transparent; pointer-events: none; }
.team-journey__wave--top { top: -2px; }                      /* 2px into the white areas: no seam at zoom levels */
.team-journey__wave--bottom { bottom: -2px; }
.team-journey .section__title { color: #fff; text-align: center; margin-bottom: 3.25rem; }
.team-journey .section__text { color: rgba(255, 255, 255, 0.85); text-align: center; margin-bottom: 2.5rem; }

.team-journey .journey-timeline { display: block; position: relative; max-width: none; margin: 0; padding: 0; }
.team-journey .journey-timeline__track { display: grid; min-height: 12.5rem; padding: 0 3.4rem; }
/* all entries stay in the same grid cell (invisible) so the block keeps the height of the longest entry and never jumps */
.team-journey .journey-timeline__item { display: block; grid-area: 1 / 1; max-width: none; margin: 0; padding: 0; background: none; border: 0; visibility: hidden; pointer-events: none; }
.team-journey .journey-timeline__item.is-active,
.team-journey .journey-timeline__item.is-leaving { visibility: visible; pointer-events: auto; }
.team-journey .journey-timeline__title { margin: 0 0 1.4rem; font-size: var(--fs-h3); font-weight: 400; line-height: 1.3; color: #fff; }
.team-journey .journey-timeline__year { display: inline; margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: 0; color: inherit; }
.team-journey .journey-timeline__text { font-size: var(--fs-small); font-weight: 300; line-height: 1.9; color: #fff; }
.team-journey .journey-timeline__text p { margin: 0 0 0.35rem; }
.team-journey .journey-timeline__quote {
  margin: 0.6rem 0 0;
  padding: 0;
  border: 0;
  font-size: var(--fs-small);
  line-height: 1.9;
  color: #fff;
}
.journey-timeline__quote-text { font-style: italic; font-weight: 400; }
.journey-timeline__quote-author { font-style: normal; font-weight: 500; }

/* plain chevrons left / right of the slide */
.team-journey .journey-timeline__arrow {
  position: absolute;
  top: 6rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.team-journey .journey-timeline__arrow svg { stroke-width: 1.3; }
.team-journey .journey-timeline__arrow--prev { left: max(1rem, 5.2vw); }
.team-journey .journey-timeline__arrow--next { right: max(1rem, 5.2vw); }
.team-journey .journey-timeline__arrow:hover { background: none; transform: scale(1.15); }
.team-journey .journey-timeline__arrow.is-disabled { opacity: 0.4; cursor: default; transform: none; }

/* dashed gradient timeline with the icon of the current station */
.team-journey .journey-timeline__steps { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: stretch; margin-top: 2.2rem; overflow: hidden; }
.team-journey .journey-timeline__step {
  display: none;
  grid-template-columns: calc(max((100% - 1000px) / 2, 0px) + 1.5rem + 2.6rem) auto 1fr;
  align-items: center;
  column-gap: 1.6rem;
  flex: none;
  grid-area: 1 / 1;
  padding: 0;
  cursor: default;
  will-change: transform;
}
.team-journey .journey-timeline__step::before { display: none; }
.team-journey .journey-timeline__step.is-active,
.team-journey .journey-timeline__step.is-leaving { display: grid; }
.journey-timeline__line {
  display: block;
  height: 3px;
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 1.7rem, transparent 1.7rem 3.4rem);
  mask-image: repeating-linear-gradient(90deg, #000 0 1.7rem, transparent 1.7rem 3.4rem);
}
.journey-timeline__line--before {
  margin-left: max(1rem, 4.4vw);
  background: linear-gradient(90deg, var(--c-prev), var(--c-cur));
  -webkit-mask-position: right center;
  mask-position: right center;
}
.journey-timeline__line--after { margin-right: max(1rem, 2.5vw); background: linear-gradient(90deg, var(--c-cur), var(--c-next)); }
.journey-timeline__step.is-first .journey-timeline__line--before,
.journey-timeline__step.is-last .journey-timeline__line--after { visibility: hidden; }
.journey-timeline__icon { display: flex; align-items: flex-end; justify-content: center; width: 5.2rem; height: 5.2rem; }
.journey-timeline__icon-shape { display: block; width: 100%; height: 100%; background: var(--c-cur, #2ea3f2); }
.journey-timeline__dot { width: 1.4rem; height: 1.4rem; margin: auto; border-radius: 50%; border: 3px solid var(--c-cur); }

/* --- Text section with outlined quote box ------------------------------ */
.team-textbox { padding: 1.5rem 0 5.5rem; text-align: center; }
.team-textbox .section__title { color: #333; margin-bottom: 1.6rem; }
.team-textbox__intro { color: #333; font-weight: 300; font-size: var(--fs-body); margin-bottom: 2.4rem; }
.team-textbox__intro p { margin: 0 0 0.6rem; }
.team-textbox__box {
  position: relative;
  margin: 0;
  padding: 2.6rem 2.5rem 3.2rem;
  border: 1px solid #a9a9a9;
  border-radius: 8px;
  background: #fff;
}
.team-textbox__quote { font-size: var(--fs-body); font-weight: 400; line-height: 1.6; color: #000; }
.team-textbox__quote p { margin: 0 0 0.6rem; }
.team-textbox__quote p:last-child { margin-bottom: 0; }
.team-textbox__author { margin-top: 1rem; font-size: var(--fs-small); font-weight: 500; color: #333; }
.team-textbox__mark {
  position: absolute;
  left: 2.4rem;
  bottom: -2.1rem;
  display: block;
  padding: 0 0.6rem;
  background: #fff;
  line-height: 0;
}
.team-textbox__mark img,
.team-textbox__mark svg { display: block; width: 3.9rem; height: auto; }

/* --- Key Achievements -------------------------------------------------- */
.team-achievements {
  padding: 5.5rem 0 5rem;
  background-color: #12162e;
  background-image: url("../../img/hero-glow.webp");
  background-size: cover;
  background-position: center;
  text-align: center;
}
.team-achievements .section__title { max-width: 12em; margin: 0 auto 4rem; color: #fff; }
.team-achievements__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 3.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.team-achievement { display: flex; flex-direction: column; align-items: center; }
.team-achievement__icon { display: block; width: 6rem; height: 6rem; margin-bottom: 1rem; }
.team-achievement__icon img,
.team-achievement__icon svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.team-achievement__icon svg { padding: 0.9rem; }
.team-achievement__icon-shape { display: block; width: 100%; height: 100%; background: #fff; }
.team-achievement__title { margin: 0 0 0.5rem; font-size: var(--fs-h3); font-weight: 600; color: #fff; }
.team-achievement__text { margin: 0; max-width: 23rem; font-size: var(--fs-small); font-weight: 300; line-height: 1.55; color: #fff; }

/* --- Ready to become a SPECTRE yourself? (icon tabs) ------------------- */
.team-join { padding: 6rem 0 5rem; background: #fff; text-align: center; }
.team-join .section__title { max-width: 11em; margin: 0 auto 2.2rem; color: #333; }
.team-join .section__text { color: #333; font-weight: 300; margin-bottom: 3.2rem; }
.team-join__tabs { max-width: 900px; margin: 0 auto; text-align: left; }
.team-join__tablist { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 1.2rem; margin-bottom: -1px; }
.team-join__tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9.2rem;
  height: 7rem;
  padding: 0.75rem;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: #fdfdfd;
  font-size: var(--fs-body);
  font-weight: 500;
  color: #333;
  cursor: pointer;
}
/* tab outline fades out towards the panel */
.team-join__tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #7d848c;
  border-bottom: 0;
  border-radius: inherit;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 95%);
  pointer-events: none;
}
.team-join__tab-icon { display: block; width: 4.2rem; height: 4.2rem; background: #7d848c; transition: transform 0.2s ease, background 0.2s ease; }
.team-join__tab:hover .team-join__tab-icon { transform: scale(1.06); }
.team-join__tab.is-active .team-join__tab-icon { background: #5b14b8; }
.team-join__tab:not(.is-active) { height: calc(7rem - 3px); background: linear-gradient(to bottom, #fcfcfc 40%, #fff 95%); }
.team-join__tab.is-active { background: #fff; cursor: default; }
.team-join__tab.is-active::before { border-color: #5b14b8; -webkit-mask-image: none; mask-image: none; }
.team-join__tab.is-active::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: -1px; height: 3px; background: #fff; }
.team-join__tab:focus-visible { outline: 2px solid #5b14b8; outline-offset: 2px; }
.team-join__tab-label--hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.team-join__panel { position: relative; display: none; padding: 2.6rem 2.75rem 2.75rem; }
.team-join__panel.is-active { display: block; animation: teamTabFade 0.3s ease; }
.team-join__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #5b14b8;
  border-radius: 10px;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 96%);
  pointer-events: none;
}
.team-join__tabs[data-active="1"] .team-join__panel::before { border-top-left-radius: 0; }
@keyframes teamTabFade { from { opacity: 0; } to { opacity: 1; } }
.team-join__panel-title { margin: 0 0 1.6rem; font-size: var(--fs-h3); font-weight: 500; color: #333; }
.team-join__list { list-style: none; margin: 0 0 2rem; padding: 0; max-width: 34rem; }
.team-join__list li { position: relative; margin: 0 0 1rem; padding-left: 0.9rem; font-size: var(--fs-small); font-weight: 300; line-height: 1.5; color: #333; }
.team-join__list li::before { content: "\2022"; position: absolute; left: 0; top: 0; }
.team-join__btn { position: relative; }
.team-join__note { position: relative; margin: 0.9rem 0 0; font-size: var(--fs-small); font-weight: 300; line-height: 1.5; color: #555; }

/* --- Teaching teaser ---------------------------------------------------- */
.team-teach {
  padding: 5.5rem 0;
  background-color: #12162e;
  background-image: url("../../img/hero-glow.webp");
  background-size: cover;
  background-position: center;
  text-align: center;
}
.team-teach .section__title { max-width: 13em; margin: 0 auto 2.2rem; color: #fff; }
.team-teach .section__text { max-width: 47rem; margin-bottom: 0; font-weight: 300; color: #fff; }
.team-teach .section__text p { margin: 0; }
.team-teach .section__footer { margin-top: 2.8rem; }
.team-teach__btn { gap: 0.5rem; background: #fff; border-color: #fff; color: #5b14b8; }
.team-teach__btn:hover { background: #efe7fb; border-color: #efe7fb; color: #5b14b8; }

/* --- Tools & Resources -------------------------------------------------- */
.team-tools { padding: 5.5rem 0 5.5rem; background: #f0f0f0; text-align: left; }
.team-tools__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.team-tools__intro { grid-row: span 2; padding-right: 2rem; }
.team-tools__intro .section__title { max-width: 8em; margin: 0 0 2rem; text-align: left; color: #333; }
.team-tools__intro .section__text { margin: 0 0 2rem; max-width: 24rem; text-align: left; font-weight: 300; color: #333; }
.tool-card {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  column-gap: 2.6rem;
  align-items: start;
  min-height: 12.8rem;
  padding: 1.7rem 2rem 1.6rem 2.4rem;
  border-radius: 6px;
  background: var(--grad-dark, linear-gradient(90deg, #1a3560 0%, #122649 45%, #0a1730 100%));
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: none; color: #fff; }
.tool-card__side { display: flex; flex-direction: column; align-items: center; gap: 1.7rem; }
.tool-card__icon { display: block; width: 5rem; height: 5rem; }
.tool-card__icon-shape { display: block; width: 100%; height: 100%; background: #fff; }
.tool-card__pill {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: #fff;
  font-size: var(--fs-small);
  font-weight: 500;
  color: #5b14b8;
}
.tool-card__body { display: block; }
.tool-card__title { display: block; margin-bottom: 0.8rem; max-width: 11em; font-size: var(--fs-h3); font-weight: 400; line-height: 1.3; color: #fff; }
.tool-card__text { display: block; max-width: 15em; font-size: var(--fs-small); font-weight: 300; line-height: 1.55; color: #fff; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .team-journey .journey-timeline__track { padding: 0 3.6rem; }
  .team-journey .journey-timeline__arrow--prev { left: 0.4rem; }
  .team-journey .journey-timeline__arrow--next { right: 0.4rem; }
}
@media (max-width: 900px) {
  .team-journey { padding: calc(60px + 2.5rem) 0 calc(60px + 3rem); background-size: cover; background-position: left center; }
  .team-journey__wave { height: 60px; }
  .team-journey .journey-timeline__track { min-height: 17rem; padding: 0 2.4rem; }
  .team-journey .journey-timeline__step { grid-template-columns: 3.9rem auto 1fr; column-gap: 1rem; }
  .journey-timeline__line--before { margin-left: 0.5rem; }
  .journey-timeline__icon { width: 4.2rem; height: 4.2rem; }
  .team-achievements__grid { gap: 2.5rem 2rem; }
  .team-achievement__icon { width: 5rem; height: 5rem; }
  .team-tools__grid { grid-template-columns: 1fr; }
  .team-tools__intro { grid-row: auto; padding: 0 0 1.5rem; }
  .team-tools__intro .section__title { max-width: none; }
  .tool-card { min-height: 0; }
}
@media (max-width: 600px) {
  .team-journey .section__title { margin-bottom: 2rem; }
  .team-journey .journey-timeline__track { min-height: 21rem; padding: 0 1.6rem; }
  .team-journey .journey-timeline__arrow { top: auto; bottom: 0.6rem; width: 2.6rem; height: 2.6rem; background: rgba(10, 23, 48, 0.75); border-radius: 50%; }
  .team-journey .journey-timeline__arrow svg { width: 28px; height: 28px; }
  .team-journey .journey-timeline__arrow--prev { left: auto; right: 4rem; }
  .team-journey .journey-timeline__arrow--next { right: 0.9rem; }
  .team-journey .journey-timeline__step { grid-template-columns: 1.2rem auto 1fr; }
  .journey-timeline__line--before { margin-left: 0; }
  .journey-timeline__line--after { margin-right: 7.5rem; }
  .team-textbox { padding-bottom: 4.5rem; }
  .team-textbox__box { padding: 1.8rem 1.25rem 2.6rem; }
  .team-textbox__mark { left: 1.2rem; }
  .team-achievements { padding: 4rem 0; }
  .team-achievements .section__title { margin-bottom: 2.5rem; }
  .team-achievements__grid { grid-template-columns: 1fr; }
  .team-join { padding: 4rem 0 3.5rem; }
  .team-join__tablist { gap: 0.6rem; }
  .team-join__tab { flex: 1 1 0; width: auto; height: 5.4rem; }
  .team-join__tab:not(.is-active) { height: calc(5.4rem - 3px); }
  .team-join__tab-icon { width: 3.2rem; height: 3.2rem; }
  .team-join__panel { padding: 1.8rem 1.4rem 2rem; }
  .team-teach { padding: 4rem 0; }
  .team-tools { padding: 4rem 0; }
  .tool-card { grid-template-columns: 4rem 1fr; column-gap: 1.3rem; padding: 1.4rem 1.25rem; }
  .tool-card__icon { width: 3.8rem; height: 3.8rem; }
  .tool-card__side { gap: 1.1rem; }
}

/* hero subtitle must stay clear of the overlapping group photo on small screens (the room below it: components.css
   "Team page: group photo") */
@media (max-width: 768px) {
  .hero--team .hero__subtitle { margin-bottom: 0; }
}
@media (max-width: 480px) { :root { --team-photo-w: calc(100vw - 1.5rem); } }   /* (container padding 0.75rem) */

/* =========================================================
   FEEDBACK ROUND 1 (22.09.2026)
   ========================================================= */

/* icon masks: any uploaded PNG/SVG is rendered as a flat single-colour shape (no gradients). The image is used four
   times as mask: semi-transparent parts of an icon (many carry their gradient in the transparency) add up to nearly
   full cover (50 % -> 94 %), so no gradient shows through - the edges stay smooth (feedback 27.09.) */
.icon-mask {
  --mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--mask), var(--mask), var(--mask), var(--mask);
  mask: var(--mask), var(--mask), var(--mask), var(--mask);
}

/* SPECTREs banner: label and the two flanking strokes share one height, one slant and one thickness */
.team-banner {
  --banner-h: 3.4rem;
  display: flex;
  justify-content: center;
  margin: 1.4rem 0 0;
}
/* the banner is the original artwork from the mockup (black shape with the two cut-out slashes) */
.team-banner::before, .team-banner::after { content: none; }
.team-banner span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--banner-h);
  aspect-ratio: 535 / 61;
  padding: 0;
  clip-path: none;
  background: url("../../img/team-banner.svg") center / 100% 100% no-repeat;
  color: #fff;
  line-height: 1;
}
@media (max-width: 768px) { .team-banner { --banner-h: 2.4rem; } .team-banner span { font-size: var(--fs-body); } }

/* more room between the banner and "Profiles & Roles" */
.section--team-profiles { padding-top: 6.5rem; }
/* without that heading, phones and tablets keep only the room the heads need above their frames (feedback 28.10.:
   the first person, Frederic, came after a white gap of about 140 px below the banner) */
@media (max-width: 768px) { .section--team-profiles--no-heading { padding-top: 1rem; } }

/* (member cards: the figure tweens back cleanly - now for all pages in components.css) */
.member-card:hover .member-card__more,
.member-card--small:hover .member-card__more { text-decoration: none; }
.member-card--small .member-card__more { font-size: var(--fs-ui); font-weight: 500; }
.section--team-profiles .member-card__name { font-size: var(--fs-h3); }

/* journey: reduced motion = instant swap (the JS also checks the media query) */
@media (prefers-reduced-motion: reduce) {
  .team-journey .journey-timeline__step,
  .team-journey .journey-timeline__item { transition: none !important; animation: none !important; }
}

/* achievements: violet bloom hugging the white strokes (filter on the parent, after the mask is applied) */
.team-achievement__icon { filter: drop-shadow(0 0 2px rgba(190, 120, 255, 1)) drop-shadow(0 0 6px rgba(160, 80, 255, 0.9)) drop-shadow(0 0 16px rgba(130, 60, 240, 0.7)); }
