/* =========================
   RESET + ANCHOR OFFSET
========================= */
html, body{
  margin: 0;
  padding: 0;
}

section{
  scroll-margin-top: 64px;
}

/* =========================
   BASE TYPOGRAPHY
========================= */
body{
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 0.02em;
  color: #302144;
}

h1, h2{
  font-weight: 300;
  font-size: 44px;
  line-height: 52px;
  letter-spacing: 0.02em;
  margin: 0;
}

h3{
  margin: 0;
  font-weight: 500;
}

/* =========================
   TOP BAR
========================= */
.top-ombre{
  background: linear-gradient(#ef5966, #a53f5b);
  padding: 10px 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-left{
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-primary,
.logo-secondary{
  height: 45px;
  width: auto;
}

.top-right a{
  color: #1f1529;
  text-decoration: none;
  margin-left: 14px;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 12px; /* needed so box has space */
  border-radius: 8px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.top-right a:hover{
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* =========================
   HERO
========================= */
.hero{
  min-height: 34vh;
  background-image: url("assets/images/PsycheTinted.png");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  position: relative;
}

.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-wrap{
  padding: 20px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-kicker{
  font-size: 20px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.82);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-title{
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.06;
  color: #f5f5f5;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}


/* =========================
   SECTIONS
========================= */
.white-section{
  padding: 54px 20px;
  background: #fff;
  color: #302144;
}

.ombre-section{
  padding: 54px 20px;
  color: white;
  background: linear-gradient(#302144, #592651);
}

.about-wrap,
.system-wrap,
.team-wrap,
.footer-wrap{
  max-width: 900px;
  margin: 0 auto;
}

.white-section p{
  max-width: 750px;
  margin: 12px auto 0;
}

/* =========================
   ABOUT
========================= */
.about-wrap{
  max-width: 900px;
  margin: 0 auto;
}

.about-wrap p{
  max-width: none;
  margin: 12px 0 0;
}

.about-img{
  float: right;
  width: 420px;
  border-radius: 10px;
  margin: -50px 0 12px 30px;
}

.about-wrap::after{
  content: "";
  display: block;
  clear: both;
}

/* control spacing BELOW about */
#about{
  padding: 54px 0 10px;   /* bottom reduced */
}


/* =========================
   ABSTRACT
========================= */

.ombre-section h2{
  font-weight: 600;
  color: white;
  text-align: left;
}

.abstract-wrap{
  max-width: 900px;
  margin: 0 auto;   /* removed extra bottom margin */
}

.abstract-wrap p{
  margin: 12px 0 0;
  color: rgba(255,255,255,0.85);
}

/* control spacing ABOVE abstract */
#abstract{
  padding: 10px 0 60px;   /* top reduced */
}


/* =========================
   TIMELINE (EXACTLY AS YOU SENT)
========================= */

/* TIMELINE */
.timeline{
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 25px;
  padding-top: 25px;
  overflow: hidden;
  z-index: 1;
}

.timeline::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 25px;
  height: 2px;
  background: rgba(255,255,255,0.65);
}

.timeline::after{
  content:"";
  position:absolute;
  top:25px;
  height:2px;
  width:140px;
  background: rgba(239,89,102,.95);
  animation: stepSweep 10s ease-in-out infinite;
}

@keyframes stepSweep{
  0%,10%   { left:-140px; }
  25%,35%  { left:calc(15% - 70px); }   /* SAMPLE */
  50%,60%  { left:calc(50% - 70px); }   /* CACHE */
  75%,85%  { left:calc(85% - 70px); }   /* TRANSFER */
  100%     { left:calc(100% + 140px); }
}

.step{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.95);
  margin-top: 18px;
}

.label{
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* DOT GLOW (synced) — uses nth-of-type so it won't break */
.timeline .step:nth-of-type(1) .dot{ animation: dotGlow1 10s linear infinite; }
.timeline .step:nth-of-type(2) .dot{ animation: dotGlow2 10s linear infinite; }
.timeline .step:nth-of-type(3) .dot{ animation: dotGlow3 10s linear infinite; }

@keyframes dotGlow1{
  0%,19.999%  { background-color: rgba(255,255,255,0.95); }
  20%,40%     { background-color: rgba(239,89,102,0.95); }
  40.001%,100%{ background-color: rgba(255,255,255,0.95); }
}
@keyframes dotGlow2{
  0%,44.999%  { background-color: rgba(255,255,255,0.95); }
  45%,65%     { background-color: rgba(239,89,102,0.95); }
  65.001%,100%{ background-color: rgba(255,255,255,0.95); }
}
@keyframes dotGlow3{
  0%,69.999%  { background-color: rgba(255,255,255,0.95); }
  70%,90%     { background-color: rgba(239,89,102,0.95); }
  90.001%,100%{ background-color: rgba(255,255,255,0.95); }
}

/* =========================
   DELIVERABLES BUTTON ROW
========================= */
.deliverables-cta{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;

  margin-top: 28px;   /* pushes it down from the dots */
  margin-bottom: 14px;
}

.deliverables-btn{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(239,89,102,.95);
  border: 2px solid rgba(239,89,102,.95);
  transition: transform 0.18s ease, background 0.18s ease;
}

.deliverables-btn:hover{
  transform: scale(1.04);
}

.deliverables-btn.ghost{
  background: transparent;
  border: 2px solid rgba(255,255,255,0.65);
}

/* =========================
   SYSTEM OVERVIEW CLICKER
========================= */

/* wrapper just controls width + spacing */
.overview-switcher{
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 44px auto 36px;
  padding: 0 72px;           /* creates room INSIDE for the arrows */
  box-sizing: border-box;
}

/* card layout */
.ov-card{
  position: relative;
  display: grid;
  grid-template-columns: 440px 1fr;   /* wider image column */
  gap: 32px;

  width: 100%;
  padding: 28px;

  min-height: 360px;         /* slightly taller */
  align-items: center;       /* removes "dead space" under image */

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  box-sizing: border-box;
}

/* fixed image frame that does NOT change with image size */
.ov-img-wrap{
  width: 100%;
  height: 300px;             /* taller so wide images aren’t tiny */
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* always show whole image */
.ov-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* arrows are anchored to the WRAPPER (so both are symmetric) */
.ov-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: none;
  border: none;
  padding: 0;

  color: rgba(255,255,255,0.9);
  font-size: 44px;
  cursor: pointer;

  opacity: 0.75;
  transition: opacity .18s ease, transform .18s ease;
}

.ov-arrow:hover{
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
}

.ov-arrow[data-dir="-1"]{
  left: 18px;                /* INSIDE padding area */
}

.ov-arrow[data-dir="1"]{
  right: 18px;               /* INSIDE padding area */
}

/* text */
.ov-title{
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.ov-text{
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 22px;
  max-width: 60ch;
}

/* dots */
.ov-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  position: relative;
  z-index: 2;
}

.ov-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.ov-dot.is-active{
  background: rgba(239,89,102,.95);
  border-color: rgba(239,89,102,.95);
}

/* =========================
   PROJECT GALLERY
========================= */

.photo-gallery-block{
  width: 100%;
  margin-top: 24px;
}

.photo-gallery-block h2{
  margin: 0 0 24px;
}

/* wrapper */
.gallery-switcher{
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 36px auto 24px;
  padding: 0 72px;
  box-sizing: border-box;
}

/* single-column layout */
.gallery-card{
  position: relative;
  width: 100%;
  padding: 28px;
  box-sizing: border-box;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
}

/* image takes the whole top area */
.gallery-img-wrap{
  width: 100%;
  height: 500px;
  background: rgba(0,0,0,0.18);

  border-radius: 14px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* change to contain if needed */
  display: block;
  transition: opacity 0.25s ease;
}

/* caption below image */
.gallery-copy{
  padding-top: 20px;
  text-align: left;
}

.gallery-title{
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}

.photo-gallery-anchor{
  position: relative;
  top: -70px;
}

.gallery-text{
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 24px;
  max-width: 70ch;
}

/* arrows */
.gallery-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: none;
  border: none;
  padding: 0;

  color: rgba(255,255,255,0.9);
  font-size: 48px;
  cursor: pointer;

  opacity: 0.75;
  transition: opacity .18s ease, transform .18s ease;
}

.gallery-arrow:hover{
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
}

.gallery-arrow[data-gallery-dir="-1"]{
  left: 18px;
}

.gallery-arrow[data-gallery-dir="1"]{
  right: 18px;
}

/* dots */
.gallery-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  position: relative;
  z-index: 2;
}

.gallery-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.gallery-dot.is-active{
  background: rgba(239,89,102,.95);
  border-color: rgba(239,89,102,.95);
}

@media (max-width: 900px){
  .gallery-switcher{
    padding: 0 56px;
  }

  .gallery-img-wrap{
    height: 320px;
  }

  .gallery-copy{
    padding-top: 16px;
  }

  .gallery-title{
    font-size: 22px;
  }
}
/* =========================
   TEAM GRID
========================= */

#team .team-wrap{
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

#team .team-subtext{
  margin: 8px auto 0;
  font-size: 16px;
  color: rgba(40, 30, 70, 0.75);
}

#team .team-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 30px;
  margin-top: 35px;
  justify-items: center;
}

#team .team-member{
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  background: #f4f4f6;
  border-radius: 16px;
  padding: 14px 14px 18px;
  box-sizing: border-box;
}

#team .team-photo{
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

#team .team-photo > img{
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* linkedin icon overlay on photo */
#team .linkedin-overlay{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
  z-index: 2;
}

#team .linkedin-overlay img{
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

#team .linkedin-overlay:hover{
  transform: scale(1.08);
}

/* name */
#team .team-member .name{
  margin: 4px 0 10px;
  font-weight: 600;
  font-size: 18px;
  color: #281e46;
  text-align: center;
}

/* remove role spacing if role is still in HTML for now */
#team .team-member .role{
  display: none;
}

/* bio */
#team .team-member .bio{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(40, 30, 70, 0.82);
  text-align: left;
  max-width: 100%;
}

/* remove this old rule if you keep the photo inside .team-photo */
#team .team-member > img{
  display: none;
}

/* responsive */
@media (max-width: 900px){
  #team .team-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px){
  #team .team-grid{
    grid-template-columns: 1fr;
  }
}

/* =========================
   PROJECT SPONSOR SECTION
========================= */

#sponsor .sponsor-wrap{
  max-width: 900px;
  margin: 0 auto;
}

#sponsor .sponsor-layout.sponsor-layout-top{
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 48px;
  align-items: start;
}

/* LEFT */
#sponsor .sponsor-left{
  text-align: left;
}

/* HEADER BLOCK */
#sponsor .sponsor-header{
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 30px;
}

#sponsor .sponsor-header-text{
  display: flex;
  flex-direction: column;
}

#sponsor .sponsor-section-title{
  margin: 0 0 6px;
  font-weight: 700;
  color: #fff;
}

#sponsor .sponsor-section-subtitle{
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  color: rgba(255,255,255,0.96);
  line-height: 1.1;
}

#sponsor .sponsor-inline-logos{
  display: flex;
  align-items: center;
  gap: 16px;
}

#sponsor .sponsor-inline-logos img{
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
  transform: translateY(3px);
}

#sponsor .sponsor-mission-text.sponsor-first{
  margin-top: 0;
}

#sponsor .sponsor-mission-text{
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.87);
}

/* BUTTON */
#sponsor .btn-psyche{
  display: inline-block;
  margin-top: 18px;
  padding: 12px 26px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  background: rgba(239,89,102,0.95);
  border-radius: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#sponsor .btn-psyche:hover{
  transform: scale(1.04); /* your original effect */
}

/* RIGHT */
#sponsor .sponsor-right{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 32px;
}

#sponsor .sponsor-person-card{
  text-align: center;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

#sponsor .sponsor-person-card img{
  width: 240px;
  aspect-ratio: 3 / 4;   /* rectangular portrait */
  object-fit: cover;     /* fills without distortion */
  border-radius: 6px;
  display: block;
  margin: 0 auto 12px;
}

#sponsor .sponsor-person-card .name{
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
}

#sponsor .sponsor-person-card .role{
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
}



/* =========================
   ADVISOR
========================= */
#advisor .sponsor-wrap{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

#advisor .sponsor-grid{
  display: grid;
  grid-template-columns: repeat(2, 220px); /* fixed card width */
  justify-content: center;                 /* centers the group */
  gap: 60px;                               /* space between the two */
  margin-top: 26px;
}

#advisor .team-member img{
  width: 220px;
  border-radius: 6px;
}

/* =========================
   FOOTER
========================= */
.footer-section{
  padding: 24px 20px;
}

.footer-wrap{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-logos{
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 12px;
}

.footer-logos img{
  height: 100px;
}

.disclaimer-title{
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.disclaimer{
  font-size: 12px;
  line-height: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 900px;
  margin: 0 auto;
}

/* =========================
   DELIVERABLES PAGE ONLY
========================= */

.deliverables-page .hero{
  min-height: 44vh;
}

.deliverables-page .hero-wrap{
  padding: 34px 24px 30px;
}

.deliverables-page .hero-kicker{
  font-size: 20px;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.deliverables-page .hero-title{
  font-size: 64px;
  line-height: 1.02;
  margin-bottom: 40px;
}

.deliverables-page .back-home{
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 6px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.deliverables-page .back-home:hover{
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.75);
  transform: scale(1.04);   /* SAME behavior as index */
}

/* =========================
   MOBILE
========================= */
@media (max-width:700px){

  .top-ombre{
    padding:10px 18px;
  }

  .hero-title{
    font-size:38px;
  }

  .about-img{
    float:none;
    width:100%;
    margin-bottom:14px;
  }

  .team-grid{
    grid-template-columns:1fr;
  }

  .sponsor-layout{
    grid-template-columns:1fr;
    gap:26px;
    text-align:center;
  }

  .sponsor-mission{
    text-align:center;
  }

  .sponsor-mission-logo{
    height:90px;
    margin:0 auto 12px;
  }

  #advisor .sponsor-grid{
    grid-template-columns:1fr;
  }

  /* clicker mobile */
  .overview-switcher{
    grid-template-columns: 46px 1fr 46px;
  }

  .ov-arrow{
    height: 46px;
    width: 46px;
    border-radius: 12px;
  }

  .ov-card{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ov-img{
    height: 220px;
    max-width: 360px;
    margin: 0 auto;
  }
}