/* =====================================================
   OUR TEAM — CLICK-TO-EXPAND LINEUP
   Palette: charcoal stage + gold accent
===================================================== */

:root{
  --bg:#05070c;
  --panel-bg:#111827;

  --gold:#00eaff;
  --gold-soft:rgba(0,234,255,.15);

  --text:#f4f8ff;
  --text-muted:#93a8bd;
  --border:rgba(0,234,255,.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;

  /* Dark cyber background */
  background:
      radial-gradient(circle at top, rgba(0,255,255,.08), transparent 40%),
      radial-gradient(circle at bottom right, rgba(0,150,255,.06), transparent 35%),
      linear-gradient(180deg, #05070c 0%, #0a101b 50%, #05070c 100%);
}

/* =========================
   CYBER GRID
========================= */

body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;

    background:
        linear-gradient(rgba(0,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,255,.05) 1px, transparent 1px);

    background-size:60px 60px;

    mask-image:linear-gradient(to bottom,
    rgba(255,255,255,.15),
    rgba(255,255,255,.7));

    z-index:-2;
}

/* =========================
   CYBER GLOW
========================= */

body::after{
    content:"";
    position:fixed;
    width:900px;
    height:900px;
    left:50%;
    top:-250px;
    transform:translateX(-50%);
    border-radius:50%;

    background:radial-gradient(circle,
        rgba(0,255,255,.18),
        rgba(0,180,255,.05),
        transparent 70%);

    filter:blur(70px);

    pointer-events:none;
    z-index:-3;
}



/* =========================
   HERO
========================= */

.hero {
  text-align: center;
  padding: 50px 5% 50px;
}

.hero{
    position:relative;
    text-align:center;
    padding:50px 5% 50px;
}

.hero::after{
    content:"";
    display:block;
    width:120px;
    height:3px;
    margin:20px auto 0;

    background:linear-gradient(
        90deg,
        transparent,
        #00eaff,
        transparent
    );

    box-shadow:0 0 12px #00eaff;
}


.eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 6px;
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 10px;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 7vw, 68px);
  letter-spacing: 2px;
  line-height: 1.05;
}

.subtitle {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

/* =========================
   ACCORDION ROW
========================= */

.picture {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 1500px;
  height: 72vh;
  min-height: 460px;
  max-height: 680px;
  margin: 0 auto;
  padding: 0 4% 90px;
}

/* =========================
   PANEL
========================= */

.img-box {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  box-shadow: 0 15px 30px rgba(0, 0, 0, .35);
  transition: flex-grow .65s cubic-bezier(.4, 0, .2, 1);
}

.img-box.active {
  flex-grow: 7;
}

.img-box:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* =========================
   PHOTO (with crossfade for the click transition)
========================= */

.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .7s ease, transform 8s linear;
}

.photo-front {
  opacity: 1;
  z-index: 1;
}

.photo-back {
  opacity: 0;
  z-index: 2;
}

.img-box.active .photo-front {
  opacity: 0;
}

.img-box.active .photo-back {
  opacity: 1;
}

.img-box.active .photo {
  transform: scale(1.06);
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1b1e28, #0f1015);
}

.photo-placeholder span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  letter-spacing: 1px;
  color: var(--gold);
  border: 2px dashed var(--border);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* darken the photo a touch so the name plate always reads clearly */
.panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
}

/* =========================
   NUMBER BADGE
========================= */

.panel-number {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--bg);
  background: var(--gold);
  padding: 3px 9px;
  border-radius: 5px;
  opacity: .9;
}

/* =========================
   NAME TAG — vertical spine label that
   unfurls to a horizontal card when clicked
========================= */

.name-tag {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 22px 16px;
  pointer-events: none;
}

.name-tag h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: .5px;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: writing-mode 0s .3s, transform .5s ease, font-size .5s ease;
}

.role-tag {
  display: none;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--gold);
}

.profile-link {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  width: fit-content;
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--gold);
  padding: 17px 33px;
  border-radius: 30px;
  text-decoration: none;
  pointer-events: auto;
  transition: transform .3s, background .3s;
}

.profile-link:hover {
  background: #ffd75e;
  transform: translateY(-2px);
}

/* expanded state: name lays down flat and details appear */
.img-box.active .name-tag h3 {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 26px;
  transition: writing-mode 0s, transform .5s ease, font-size .5s ease .15s;
}

.img-box.active .role-tag,
.img-box.active .profile-link {
  display: inline-flex;
  animation: fadeUp .5s ease .2s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 820px) {
  .picture {
    flex-direction: column;
    height: auto;
    max-height: none;
    gap: 12px;
  }

  .img-box {
    height: 90px;
    flex: none;
    transition: height .6s cubic-bezier(.4, 0, .2, 1);
  }

  .img-box.active {
    height: 340px;
  }

  .name-tag {
    flex-direction: row;
    align-items: center;
    padding: 0 18px;
  }

  .name-tag h3 {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 18px;
  }

  .img-box.active .name-tag {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
  }

  .img-box.active .name-tag h3 {
    font-size: 24px;
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  .img-box,
  .photo,
  .name-tag h3 {
    transition: none;
  }
}


.img-box.active{
    flex-grow:7;
    border:1px solid #00eaff;
    box-shadow:
        0 0 15px rgba(0,234,255,.5),
        0 0 35px rgba(0,234,255,.3),
        0 20px 40px rgba(0,0,0,.45);
}
.img-box::after{
    content:"";
    position:absolute;
    left:0;
    top:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(
        transparent,
        rgba(0,234,255,.4),
        transparent
    );
    opacity:0;
    pointer-events:none;
}

.img-box.active::after{
    opacity:1;
    animation:scan 1s ease;
}

@keyframes scan{
    from{
        top:-100%;
    }
    to{
        top:100%;
    }
}
.img-box.active::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:18px;
    border:2px solid #00eaff;
    animation:pulse .8s ease;
}

@keyframes pulse{

    0%{
        transform:scale(.9);
        opacity:0;
    }

    50%{
        opacity:1;
    }

    100%{
        transform:scale(1.05);
        opacity:0;
    }

}

.img-box.active .photo{
    transform:scale(1.12) rotate(-1deg);
}

.img-box.active h3{

    animation:titleReveal .6s ease;

}

@keyframes titleReveal{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.click-flash{
    position:absolute;
    width:15px;
    height:15px;
    background:#00eaff;
    border-radius:50%;
    pointer-events:none;

    transform:translate(-50%,-50%);
    animation:flash .6s ease forwards;
}

@keyframes flash{

    from{
        opacity:1;
        transform:translate(-50%,-50%) scale(.2);
        box-shadow:0 0 0 0 rgba(0,234,255,.8);
    }

    to{
        opacity:0;
        transform:translate(-50%,-50%) scale(18);
        box-shadow:0 0 50px 30px rgba(0,234,255,0);
    }

}