/* Reference teams layout, scoped to this page so shared event pages stay intact. */
.teams-page { background: #000; }
.teams-page #main-content { overflow: hidden; }
.teams-page #main-content, .teams-page #main-content button,
.teams-page #main-content h1, .teams-page #main-content h2,
.teams-page #main-content h3 { font-family: ui-sans-serif, system-ui, sans-serif; }
.teams-page #main-content { line-height: 1.5; color: #fff; }
.teams-hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(#000, #111827cc, #000); }
.teams-waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.teams-hero-shade { position: absolute; inset: 0; background: linear-gradient(#0009, transparent, #000e); pointer-events: none; }
.teams-hero-copy { position: relative; z-index: 2; text-align: center; padding: 0 32px; margin-top: -32px; pointer-events: none; }
.teams-hero-copy h1 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.teams-hero-copy h1 span { display: block; color: transparent; -webkit-text-stroke: 3px #fff; }
.teams-head { font-size: 128px; margin-bottom: 24px; filter: drop-shadow(0 0 20px #fff); }
.teams-coordinators { font-size: 96px; filter: drop-shadow(0 0 30px #8b5cf6); }
.teams-light-line { position: relative; height: 4px; max-width: 896px; width: 80%; margin: 32px auto 0; background: linear-gradient(90deg, transparent, #fffc, transparent); border-radius: 100%; box-shadow: 0 0 12px #ffffff70, 0 0 28px #ffffff40; animation: teams-line-pulse 2s ease-in-out infinite; }
.teams-lanyard { position: absolute; z-index: 3; top: calc(50% - 180px); left: 25%; width: 100%; height: 100svh; }
.teams-lanyard canvas { touch-action: pan-y; }
.teams-page .teams-lanyard[data-hovered="true"] * { cursor: grab; }
.teams-page .teams-lanyard[data-dragging="true"] * { cursor: grabbing; }
.teams-badge-loading { position: absolute; top: 40%; left: 35%; width: 30%; text-align: center; color: #d1d5db; font-size: 14px; }
.teams-filter-section { padding: 48px 32px; }
.teams-filters { max-width: 1280px; margin: 0 auto 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.teams-filter { border: 1px solid #6b72804d; border-radius: 8px; background: #0006; color: #d1d5db; padding: 12px 24px; font-size: 16px; font-weight: 500; line-height: 1.5; white-space: nowrap; transition: transform .3s, background .3s, border-color .3s; }
.teams-filter:hover { transform: scale(1.05); border-color: #9ca3af80; background: #0009; }
.teams-filter[aria-pressed="true"] { background: #fff3; border-color: #fff6; color: #fff; box-shadow: 0 10px 15px -3px #0002; }
.teams-roster { padding: 96px 32px; max-width: 1536px; margin: auto; }
.teams-section-title { text-align: center; margin-bottom: 64px; }
.teams-section-title h2 { font-size: 72px; font-weight: 700; line-height: 1; margin-bottom: 24px; color: #fff; }
.teams-section-line { height: 4px; width: 128px; background: linear-gradient(90deg, #9ca3af, #d1d5db); margin: auto; }
.teams-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1024px; gap: 32px; margin: 0 auto 64px; }
.teams-developer-grid { max-width: 512px; margin: auto; }
.team-reveal { display: flex; justify-content: center; min-width: 0; }
.teams-page .team-card { position: relative; width: 100%; max-width: 384px; aspect-ratio: 1; margin: 0; perspective: 800px; }
.team-card-tilt { width: 100%; height: 100%; transform-style: preserve-3d; transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--card-scale, 1)); transition: transform .3s ease-out; }
.team-card:hover, .team-card:focus-within, .team-card.is-open { --card-scale: 1.05; }
.team-card-face { position: relative; height: 100%; overflow: hidden; border-radius: 24px; border: 1px solid #9ca3af33; background: #0006; backdrop-filter: blur(4px); transition: border-color .5s, box-shadow .5s; transform: translateZ(0); }
.team-card:hover .team-card-face, .team-card:focus-within .team-card-face, .team-card.is-open .team-card-face { border-color: #d1d5dbcc; box-shadow: inset 0 0 20px #9ca3af4d, 0 0 30px #9ca3af60, 0 0 60px #9ca3af25; }
.team-card.is-developer .team-card-face { border-color: #fff3; }
.team-card.is-developer:hover .team-card-face { border-color: #fffc; box-shadow: inset 0 0 20px #ffffff4d, 0 0 30px #ffffff60, 0 0 60px #ffffff25; }
.team-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: filter .5s; }
.team-initials { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, #ffffff0d, transparent), linear-gradient(135deg, #1f2937, #374151, #111827); }
.team-initials span { width: 128px; height: 128px; border: 2px solid #d1d5db4d; background: #ffffff1a; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 36px; }
.team-portrait:not([hidden]) + .team-initials { display: none; }
.team-card.is-open .team-portrait { filter: brightness(.7) blur(2px); }
.team-photo-shade { position: absolute; inset: 0; background: linear-gradient(#0006, #0005, #0008); opacity: 0; transition: opacity .5s; }
.team-gloss { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#ffffff1a, transparent 33%), linear-gradient(90deg, #ffffff0d, transparent 33%); }
.team-shine { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #d1d5db40, transparent); transform: translateX(-100%); opacity: 0; transition: transform 1s ease-in-out, opacity .5s; pointer-events: none; }
.team-card:hover .team-shine, .team-card:focus-within .team-shine, .team-card.is-open .team-shine { transform: translateX(200%); opacity: 1; }
.team-role { position: absolute; z-index: 2; right: 16px; top: 16px; padding: 4px 12px; color: #e5e7eb; font-size: 12px; font-weight: 600; border-radius: 999px; background: #0006; border: 1px solid #6b728066; backdrop-filter: blur(12px); }
.team-card.is-developer .team-role { right: auto; left: 16px; border-color: #ffffff4d; }
.team-name { position: absolute; z-index: 4; bottom: 16px; left: 16px; right: 16px; text-align: center; border: 1px solid #fff3; border-radius: 8px; background: #0008; backdrop-filter: blur(12px); padding: 8px 12px; pointer-events: none; }
.teams-page .team-name h3 { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: .025em; margin: 0; }
.team-details-toggle { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 24px; background: transparent; }
.team-details { position: absolute; z-index: 3; inset: 24px 24px 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.team-event-name { color: #67e8f9; font-size: 16px; font-weight: 700; text-shadow: 0 2px 4px #0006; }
.team-description { color: #fff; background: #0009; backdrop-filter: blur(12px); border-radius: 8px; padding: 16px; border: 1px solid #fff3; font-size: 14px; line-height: 1.375; }
.team-description-copy { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.team-card.is-developer .team-description-copy { -webkit-line-clamp: 3; }
.team-socials { display: flex; align-items: center; justify-content: center; gap: 16px; }
.team-social { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid #fff6; border-radius: 50%; background: #0009; backdrop-filter: blur(12px); color: #fff; transition: transform .3s, background .3s; }
.team-social svg { width: 20px; height: 20px; }
.team-social:hover { background: #000c; transform: scale(1.1); }
.team-card.is-open .team-details,
.team-card.is-open .team-photo-shade { opacity: 1; }
.team-card.is-open .team-social { pointer-events: auto; }
.teams-page #main-content :focus-visible { outline: 2px solid #67e8f9; outline-offset: 5px; }
.teams-page .nav-item[aria-current="page"] { color: var(--color-cyan); }
.teams-page #teams-developers[hidden] { display: none; }
.teams-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@keyframes teams-line-pulse { 50% { opacity: .5; } }
@media (min-width: 1280px) { .teams-roster { padding: 112px 48px; } .teams-grid { gap: 40px; } .teams-developer-grid { max-width: 576px; } }
@media (min-width: 1536px) { .teams-roster { max-width: none; padding-inline: 64px; } }
@media (max-width: 1279px) {
    .teams-head { font-size: 96px; } .teams-coordinators { font-size: 72px; }
    .teams-roster { padding: 96px 32px; }
}
@media (max-width: 1023px) {
    .teams-head { font-size: 72px; } .teams-coordinators { font-size: 60px; }
    .teams-hero-copy { margin-top: -48px; }
    .teams-lanyard { left: 22%; top: calc(50% - 160px); }
    .teams-filter-section { padding: 40px 24px; }
    .teams-filters { gap: 16px; }
    .teams-filter { padding: 12px 20px; }
    .teams-roster { padding: 80px 24px; }
    .teams-section-title h2 { font-size: 60px; }
    .teams-grid { grid-template-columns: 1fr; gap: 24px; }
    .teams-developer-grid { max-width: 448px; }
}
@media (max-width: 767px) {
    .teams-hero-copy { padding-inline: 24px; margin-top: -64px; }
    .teams-head { font-size: 60px; } .teams-coordinators { font-size: 48px; }
    .teams-lanyard { left: 12%; top: calc(50% - 145px); }
    .teams-section-title h2 { font-size: 48px; }
    .teams-filter-section { padding: 32px 16px; }
    .teams-filter { padding: 10px 16px; font-size: 14px; }
    .teams-filters { gap: 12px; margin-bottom: 40px; }
    .teams-roster { padding: 64px 24px; }
}
@media (max-width: 639px) {
    .teams-hero-copy { padding-inline: 16px; margin-top: -80px; }
    .teams-hero-copy h1 span { -webkit-text-stroke-width: 2px; }
    .teams-head { margin-bottom: 16px; } .teams-coordinators { font-size: clamp(28px, 9.7vw, 36px); }
    .teams-lanyard { left: 0; top: calc(50% - 240px); }
    .teams-light-line { margin-top: 24px; }
    .teams-section-title h2 { font-size: 36px; }
    .teams-filter-section { padding: 24px 12px; }
    .teams-filters { gap: 8px; margin-bottom: 32px; }
    .teams-filter { padding: 8px 12px; font-size: 12px; }
    .teams-roster { padding: 48px 16px; }
    .teams-grid { gap: 16px; }
    .teams-page .team-name h3 { font-size: 16px; }
    .team-description { font-size: 12px; padding: 12px; }
    .team-event-name { font-size: 14px; } .team-details { gap: 8px; }
    .team-social { width: 36px; height: 36px; } .team-social svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .team-card-tilt { transform: none; }
    .team-shine { display: none; }
}

/* Keep a single coordinator centered across the full roster grid. */
.teams-grid > .team-reveal:only-child { grid-column: 1 / -1; }

/* The homepage badge introduces the roster without a separate page jump. */
.teams-page.home-coordinators {
    background: radial-gradient(ellipse at 84% 16%, #35337a1f, transparent 35%), linear-gradient(180deg, transparent, #080c17b3 18%, #080c1780 80%, transparent);
    overflow: hidden;
    scroll-margin-top: calc(var(--header-height, 100px) + 16px);
}
.coordinator-intro { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; margin-bottom: 72px; }
.coordinator-intro-copy { min-width: 0; }
.coordinator-intro-copy .section-title { font-size: clamp(2.1rem, 4.1vw, 4rem); line-height: 1.18; margin-bottom: 24px; }
.coordinator-intro-copy > p { max-width: 460px; color: var(--text-secondary); font-size: 1rem; line-height: 1.8; }
.coordinator-intro-link { display: inline-flex; gap: 20px; align-items: center; padding-block: 18px; margin-top: 18px; font: 600 .75rem/1.6 var(--font-mono); letter-spacing: .08em; color: var(--color-cyan); }
.coordinator-intro-link span { font-size: 1.35rem; transition: transform .25s ease; }
.coordinator-intro-link:hover span { transform: translateY(4px); }
.coordinator-badge-stage { position: relative; min-width: 0; }
.home-coordinators .teams-lanyard { position: relative; top: auto; left: auto; width: 100%; height: 520px; height: clamp(400px, 42vw, 520px); }
.coordinator-badge-hint { color: var(--text-muted); text-align: center; font: .7rem/1.6 var(--font-mono); letter-spacing: .04em; padding: 4px 12px; }
.coordinator-roster-heading { padding-top: 20px; }
#teams-roster-title, #teams-developers { scroll-margin-top: calc(var(--header-height, 100px) + 28px); }
.teams-grid.is-transitioning { overflow: clip; }
.teams-badge-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.teams-badge-strap { position: absolute; top: 0; bottom: 65%; left: calc(50% - 9px); width: 18px; background: repeating-linear-gradient(90deg, #262935 0 3px, #9aa1b5 3px 4px, #262935 4px 6px); border-inline: 1px solid #adb6d533; }
.teams-badge-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-around; width: 210px; height: 276px; padding: 30px 16px 20px; border-radius: 15px; border: 1px solid #bdc9e47a; background: linear-gradient(135deg, #303643, #090d16 30%, #131927 80%, #3e4551); box-shadow: 0 24px 60px #0008, inset 0 0 22px #ffffff0a; transform: rotate(-8deg); }
.teams-badge-card::before { content: ''; position: absolute; width: 46px; height: 8px; top: 10px; left: calc(50% - 23px); border-radius: 8px; border: 1px solid #9ca3af88; background: #000a; }
.teams-badge-card img { width: 100%; height: 74px; object-fit: contain; }
.teams-badge-card strong { color: #e5eefc; text-align: center; font: 600 .8rem/1.5 var(--font-mono); }
.teams-badge-card span { color: #9aaac2; font: .55rem/1.5 var(--font-mono); letter-spacing: .1em; }
.teams-badge-status { position: absolute; left: 12px; right: 12px; bottom: 22px; color: var(--text-muted); font: .65rem/1.5 var(--font-mono); text-align: center; }
.website-developers { margin-top: 96px; padding-top: 64px; border-top: 1px solid #ffffff12; }
.website-developers .section-title { margin-bottom: 32px; }
.developer-reserved { display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 720px; margin-inline: auto; padding: 40px 24px; border: 1px dashed #8aa4c833; border-radius: 16px; background: radial-gradient(ellipse at 50% 0, #3b588a1f, transparent 80%), #0b112080; }
.developer-reserved[hidden] { display: none; }
.developer-reserved-icon { color: #76d9eb; font: 500 2rem/1.5 var(--font-mono); }
.developer-reserved h3 { color: #dee8fa; font-size: 1rem; font-weight: 500; }
.developer-reserved p { margin: 0; color: #97a6bf; font-size: .9rem; line-height: 1.7; }
.teams-developer-grid:not(:empty) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; max-width: 1024px; }
@media (max-width: 900px) {
    .coordinator-intro { grid-template-columns: 1fr; gap: 8px; margin-bottom: 44px; }
    .coordinator-intro-copy { max-width: 620px; text-align: center; margin-inline: auto; }
    .coordinator-intro-copy > p { margin-inline: auto; }
    .coordinator-intro-copy .section-label { justify-content: center; }
    .home-coordinators .teams-lanyard { height: 440px; }
}
@media (max-width: 600px) {
    .coordinator-intro-copy .section-title { font-size: clamp(1.8rem, 7.5vw, 2.5rem) !important; }
    .coordinator-intro-copy > p { font-size: .9rem; }
    .coordinator-intro-link { gap: 12px; font-size: .65rem; }
    .home-coordinators .teams-lanyard { height: 370px; }
    .website-developers { margin-top: 64px; padding-top: 44px; }
    .developer-reserved { padding: 28px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .coordinator-intro-link span { transition: none; }
}

/* Consistent, readable typography and gentler interaction across team views. */
.home-coordinators, .teams-page #main-content { font-family: 'Inter', system-ui, sans-serif; }
.home-coordinators :is(.section-title, .teams-section-title h2),
.teams-page .teams-section-title h2 { font-family: 'Inter', system-ui, sans-serif; font-weight: 600; letter-spacing: -.035em !important; line-height: 1.18; text-transform: none; }
.coordinator-intro-copy .section-title { font-size: clamp(2.2rem, 4.4vw, 4rem); max-width: 600px; }
.home-coordinators :is(.teams-filter, .team-name h3, .team-description, .developer-reserved h3, .developer-reserved p) { font-family: 'Inter', system-ui, sans-serif; }
.teams-filter { font-size: .875rem; letter-spacing: 0; transition: background .25s ease, border-color .25s ease, color .25s ease; }
.teams-filter:hover { transform: none; }
.teams-page .team-name h3 { font-weight: 600; letter-spacing: -.015em; }
.team-card:hover, .team-card:focus-within, .team-card.is-open { --card-scale: 1.015; }
.team-card-tilt { transition: transform .45s cubic-bezier(.2,.65,.25,1); }
.team-card-face { border-radius: 18px; }
.team-description { line-height: 1.65; }
.coordinator-badge-stage { border-radius: 24px; background: radial-gradient(ellipse, #435d8912, transparent 70%); }
.home-coordinators .teams-lanyard { overflow: visible; }
.coordinator-badge-hint { color: #99a8bc; font-family: 'Inter', system-ui, sans-serif; letter-spacing: 0; font-size: .75rem; }
@media (max-width:600px) { .teams-filter { font-size:.75rem; } }

/* Shared coordinator and developer cards, with department labels always visible. */
.team-department { margin: 4px 0 0; color: #b8e8ef; font: 500 .75rem/1.45 'Inter', system-ui, sans-serif; overflow-wrap: anywhere; }
.team-name h3 { overflow-wrap: anywhere; }
.team-details { inset: 48px 20px 116px; }
.team-social { width: 44px; height: 44px; }
.team-social:focus-visible { outline: 2px solid #8ce8ef; outline-offset: 4px; }
.teams-developer-grid:not(:empty), .website-developers .teams-developer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 1024px; }
@media (max-width: 1023px) {
    .teams-developer-grid:not(:empty), .website-developers .teams-developer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 639px) {
    .team-department { font-size: .6875rem; }
    .team-name { left: 12px; right: 12px; bottom: 12px; padding: 8px; }
    .team-details { inset: 48px 16px 112px; }
    .team-description { padding: 8px; line-height: 1.4; }
}

/* Mechanical coordinator role appears only when the card is opened. */
.team-position-title { position:absolute; z-index:3; top:18%; left:18px; right:18px; margin:0; padding:12px; border:1px solid #67e8f955; border-radius:8px; background:#080c1de8; color:#9cecff; text-align:center; font:600 1rem/1.5 'Inter',system-ui,sans-serif; opacity:0; pointer-events:none; transition:opacity .25s; }
.team-card.is-open .team-position-title { opacity:1; }
@media(prefers-reduced-motion:reduce) { .team-position-title { transition:none; } }
