/* ============================================================
   Team Flow — shared stylesheet
   ============================================================ */

:root{
  --white:#ffffff;
  --ink:#101418;
  --brand:#014668;         /* Flow logo blue */
  --muted:#5a6470;
  --bright:#263e5e;        /* hull blue band */
  --deep:#24395a;          /* blue base (was white) */
  --on-deep:#eaf1f8;
  --on-deep-soft:#a9c0d6;
  --on-bright:#ffffff;
  --on-bright-soft:#c7d7e8;
  --gutter:4vw;
  --max:1500px;
  --header-h:104px;
  --hero-dim:.58;          /* darkening over the hero render */
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
html,body{overflow-x:hidden;max-width:100%;}
body{
  margin:0;
  font-family:'Epilogue',system-ui,-apple-system,'Helvetica Neue',sans-serif;
  color:var(--on-deep);
  background:var(--deep);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%;}
a{color:inherit;}

h1,h2,h3{
  color:var(--white);
  font-family:'Anton',Impact,sans-serif;
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.01em;
  line-height:1.02;
  margin:0;
}
h1{font-size:clamp(2.6rem,6.2vw,5.6rem);}
h2{font-size:clamp(2rem,4.6vw,4rem);}
h3{font-size:clamp(1.4rem,2.2vw,2rem);}
h4{font-family:'Epilogue',sans-serif;font-weight:400;font-size:clamp(1rem,1.35vw,1.25rem);line-height:1.5;margin:0;}
p{margin:0 0 1em;}
p:last-child{margin-bottom:0;}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}

/* ============================ header ======================== */
.site-header{
  position:absolute;
  inset:0 0 auto 0;
  z-index:20;
}
body.home .site-header{
  background:linear-gradient(to bottom,rgba(0,0,0,.55),rgba(0,0,0,0));
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:var(--header-h);
}
.logo{display:block;line-height:0;}
.logo img{height:clamp(34px,4.4vw,56px);width:auto;}
.site-nav{display:flex;gap:2.2rem;}
.site-nav a{
  color:var(--white);
  text-decoration:none;
  font-size:1rem;
  padding:.25rem 0;
  border-bottom:1px solid transparent;
}
.site-nav a:hover,.site-nav a:focus-visible{border-bottom-color:currentColor;}

/* ============================ hero ========================== */
.hero{
  position:relative;
  min-height:92vh;
  min-height:92svh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:var(--white);
  background:#1a2e4b;
  overflow:hidden;
}
.hero-bg{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;object-position:50% 50%;
}
.hero::after{
  content:"";
  position:absolute;inset:0;
  background:rgba(0,0,0,var(--hero-dim));
}
.hero-content{
  position:relative;
  z-index:2;
  max-width:900px;
  padding:calc(var(--header-h) + 3rem) var(--gutter) 5rem;
}
.hero-content h1{font-size:clamp(2.3rem,5.4vw,4.8rem);}
.hero-content p{
  font-size:clamp(1rem,1.5vw,1.25rem);
  margin:1.6rem auto 2.4rem;
  max-width:62ch;
}

/* buttons ---------------------------------------------------- */
.btn{
  display:inline-block;
  padding:.85em 2.2em;
  border-radius:999px;
  background:var(--white);
  color:#000;
  text-decoration:none;
  font-weight:700;
  font-size:.95rem;
  border:1px solid var(--white);
  transition:background .15s ease,color .15s ease;
}
.btn:hover,.btn:focus-visible{background:transparent;color:var(--white);}
.btn-dark{
  display:inline-block;
  padding:.85em 2.2em;
  border-radius:999px;
  background:var(--white);
  color:var(--deep);
  border:1px solid var(--white);
  text-decoration:none;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.btn-dark:hover{background:transparent;color:var(--white);}

/* ====================== vision + about ====================== */
.vision{
  background:var(--bright);
  padding:clamp(3rem,7vw,6rem) 0 clamp(1.5rem,3vw,2.5rem);
}
.vision h1{max-width:16ch;color:var(--on-bright);}
.about{
  background:var(--bright);
  padding:0 0 clamp(3.5rem,7vw,6.5rem);
}
.about-grid{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:clamp(1.5rem,4vw,3.5rem);
  align-items:center;
}
.about-figure{border-radius:16px;overflow:hidden;}
.about-figure img{width:100%;aspect-ratio:3/2;object-fit:cover;}
.about-text{color:var(--on-bright);}
.about-text p{max-width:60ch;}
.about-text h4{margin-top:1.8rem;max-width:60ch;color:var(--on-bright-soft);}

/* ========================= projects ========================= */
.projects{
  background:var(--deep);
  overflow-x:clip;
  padding-bottom:clamp(3.5rem,7vw,6.5rem);
}
.marquee{
  overflow:hidden;
  padding:1.2% 0;
  border-block:1px solid rgba(255,255,255,.14);
  margin-bottom:clamp(.75rem,1.6vw,1.5rem);
}
.marquee-track{display:flex;width:max-content;will-change:transform;}
.marquee-track span{
  color:var(--white);
  font-family:'Anton',Impact,sans-serif;
  text-transform:uppercase;
  font-size:clamp(3rem,12vw,9rem);
  line-height:1;
  padding-right:.5em;
  white-space:nowrap;
}
.project{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 1.1fr;
  gap:clamp(1.5rem,4vw,3.5rem);
  align-items:center;
}
.project-figure{position:relative;}
.project-photo{
  width:100%;
  aspect-ratio:3/2;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
}
.project h3{margin-bottom:.8rem;}
.project p{max-width:62ch;color:var(--on-deep-soft);}

/* =========================== team =========================== */
.team{
  background:var(--deep);
  padding:clamp(3.5rem,6vw,5.5rem) 0 clamp(3rem,6vw,4.5rem);
}
.team-head{text-align:center;margin-bottom:clamp(2rem,4vw,3rem);}
.team-head h2{font-size:clamp(1.4rem,2.4vw,2.2rem);color:var(--on-deep-soft);margin-top:.6rem;}
.board{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(.8rem,1.6vw,1.2rem);
  max-width:780px;
  margin:0 auto;
}
.member{position:relative;margin:0;}
.member img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  object-position:50% 35%;
  border-radius:16px;
  background:#22374f;
}
.member--name::before{border-radius:16px;}

.member figcaption{
  position:absolute;
  left:8%;right:8%;bottom:6%;
  text-align:center;
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--brand);
  padding:.45rem .6rem;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(6px);
  box-shadow:0 2px 10px -6px rgba(16,30,50,.5);
}

/* ======================== subteams ========================== */
.subteams{
  background:var(--deep);
  padding:0 0 clamp(3rem,6vw,5rem);
}
.subteams-toggle-row{display:flex;justify-content:center;}
.subteams-toggle{
  display:inline-flex;
  -webkit-tap-highlight-color:transparent;
  align-items:center;
  gap:.7rem;
  background:none;
  border:0;
  padding:.4rem 0;
  margin:0 auto;
  font-family:'Anton',Impact,sans-serif;
  font-size:clamp(1.1rem,2vw,1.6rem);
  text-transform:uppercase;
  letter-spacing:.01em;
  color:var(--white);
  cursor:pointer;
}
.subteams-toggle .chev{
  width:1.5em;height:1.5em;
  border-radius:999px;
  border:1px solid currentColor;
  display:grid;place-items:center;
  font-size:.7em;
  transition:transform .3s cubic-bezier(.22,.61,.36,1),background .2s ease,color .2s ease;
}
.subteams-toggle:hover .chev{background:var(--white);color:var(--deep);}

.subteams-details{max-width:100%;}
.subteams-details > summary{
  display:inline-flex;
  align-items:center;
  gap:.7rem;
  margin:0 auto;
  width:max-content;
  list-style:none;
  cursor:pointer;
}
.subteams-details > summary::-webkit-details-marker{display:none;}
.subteams-details > summary::marker{content:"";}
.subteams-toggle-row{display:flex;justify-content:center;}
.subteams-details{display:flex;flex-direction:column;align-items:center;}
.subteams-body{width:100%;}
.subteams-details[open] > summary .chev{transform:rotate(180deg);}

.subteam{margin-top:clamp(2rem,4vw,3.2rem);}
.subteam-head{margin-bottom:.9rem;border-bottom:1px solid rgba(255,255,255,.12);padding-bottom:.5rem;}
.subteam-head h3{font-size:clamp(1.1rem,1.8vw,1.6rem);}
.people-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(.7rem,1.4vw,1.1rem);
}
.person{margin:0;}
.person .portrait{
  width:100%;
  aspect-ratio:4/3;
  border-radius:16px;
  background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.03));
  border:1px dashed rgba(255,255,255,.16);
  display:flex;align-items:center;justify-content:center;
  color:#7d97b1;
  font-size:.8rem;
}
.person img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  object-position:50% 35%;
  border-radius:16px;
}
.person,.member{min-width:0;}
.person--name::before,
.member--name::before{
  content:"";
  display:block;
  width:100%;
  aspect-ratio:4/3;
  border-radius:14px;
  background:rgba(255,255,255,.05) url("images/logo-watermark.png") center/58% auto no-repeat;
  border:1px solid rgba(255,255,255,.14);
}
.person figcaption{margin-top:.6rem;font-size:.9rem;color:var(--on-deep);}

/* ======================== partners ========================== */
.sponsors{
  background:var(--bright);
  color:var(--white);
  padding:clamp(3rem,6vw,5rem) 0 clamp(3.5rem,7vw,6rem);
}
.sponsors h2{
  font-family:'Epilogue',sans-serif;
  font-weight:700;
  text-transform:none;
  letter-spacing:0;
  font-size:clamp(1.7rem,3.2vw,2.4rem);
  text-align:center;
  color:var(--white);
}
.tier{margin-top:clamp(1.6rem,3vw,2.4rem);}
.tier-label{
  text-align:center;
  font-weight:700;
  font-size:.9rem;
  color:var(--white);
  margin:0 0 .9rem;
}
.tier-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:flex-start;
  gap:clamp(.9rem,1.8vw,1.6rem);
}
.sponsor-slot{
  width:var(--card,190px);
  max-width:100%;
  background:var(--white);
  border-radius:14px;
  padding:clamp(.9rem,1.6vw,1.4rem);
  display:flex;align-items:center;justify-content:center;
}
.tier-emerald .sponsor-slot{--card:310px;}
.tier-gold .sponsor-slot{--card:250px;}
.tier-silver .sponsor-slot{--card:190px;}
.tier-bronze .sponsor-slot{--card:170px;}
.sponsor-slot img{width:100%;height:auto;display:block;}
.row-break{display:none;flex-basis:100%;height:0;}
@media (min-width:760px){ .row-break{display:block;} }

/* ===================== inner pages ========================== */
.page-hero{
  background:var(--bright);
  color:var(--on-bright);
  padding:calc(var(--header-h) + clamp(3rem,7vw,6rem)) 0 clamp(2.5rem,6vw,5rem);
}
.page-hero h1{max-width:18ch;}
.page-hero p{margin-top:1.2rem;max-width:60ch;color:var(--on-bright-soft);font-size:clamp(1rem,1.4vw,1.15rem);}

.prose{padding:clamp(3rem,6vw,5rem) 0;background:var(--deep);}
.prose-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:start;}
.prose h2{margin-bottom:.8rem;}
.prose h3{margin:2rem 0 .6rem;}
.prose p{max-width:62ch;color:var(--on-deep-soft);}
.prose[style*="--bright"] p{color:var(--on-bright-soft);}

/* centred single-column reading width */
.prose--centered .wrap{max-width:1100px;}
.prose--centered h2{text-align:center;margin-bottom:1.6rem;}
.prose--centered h3{margin:2.2rem 0 .6rem;}
.prose--centered p{max-width:none;}
.prose img{width:100%;border-radius:16px;aspect-ratio:3/2;object-fit:cover;border:1px solid rgba(255,255,255,.12);}

.facts{list-style:none;padding:0;margin:1.6rem 0 0;display:grid;gap:.6rem;}
.facts li{display:flex;gap:1rem;padding:.7rem 0;border-top:1px solid rgba(255,255,255,.14);}
.facts span:first-child{min-width:9ch;color:var(--on-deep-soft);font-size:.85rem;}

/* ========================= contact ========================== */
.apply-note{color:var(--on-deep-soft);max-width:48ch;margin-top:1.4rem;}

.contact-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:start;}
.field{display:grid;gap:.35rem;margin-bottom:1rem;}
.field label{font-size:.85rem;color:var(--on-deep-soft);}
.field input,.field textarea{
  font:inherit;
  color:var(--white);
  padding:.7rem .9rem;
  border:1px solid rgba(255,255,255,.22);
  border-radius:12px;
  background:rgba(255,255,255,.06);
}
.field textarea{min-height:150px;resize:vertical;}
.field input:focus,.field textarea:focus{outline:2px solid #9ed0e8;outline-offset:1px;}
.form-status{margin-top:.9rem;font-size:.9rem;min-height:1.4em;}
.form-status.err{color:#ff9b9b;}
.form-status.ok{color:#9ed0e8;}
.contact-card{
  background:var(--bright);
  color:var(--on-bright);
  border-radius:16px;
  padding:clamp(1.4rem,3vw,2.2rem);
}
.contact-card a{color:var(--white);}
.contact-card p{color:var(--on-bright-soft);}
.contact-card h3{color:var(--white);margin-bottom:.6rem;}


/* ======================== progress ========================== */
.progress{
  background:var(--bright);
  color:var(--on-bright);
  padding:clamp(3rem,6vw,5rem) 0 clamp(3.5rem,7vw,5.5rem);
}
.progress h2{color:var(--on-bright);}
.progress-lead{
  margin-top:1rem;
  max-width:62ch;
  color:var(--on-bright-soft);
  font-size:clamp(1rem,1.35vw,1.15rem);
}
.timeline{
  list-style:none;
  margin:clamp(2rem,4vw,3rem) 0 0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:clamp(1rem,2vw,1.6rem);
}
.timeline li{
  position:relative;
  padding-top:1.9rem;
  border-top:1px solid rgba(255,255,255,.28);
  opacity:.72;
}
.timeline li::before{                 /* marker on the rule */
  content:"";
  position:absolute;
  top:-6px;left:0;
  width:11px;height:11px;
  border-radius:50%;
  background:var(--bright);
  border:1px solid rgba(255,255,255,.55);
}
.timeline li.done{opacity:1;}
.timeline li.done::before{background:var(--on-bright-soft);border-color:var(--on-bright-soft);}
.timeline li.now{opacity:1;}
.timeline li.now{border-top-color:var(--white);}
.timeline li.now::before{
  background:var(--white);
  border-color:var(--white);
  box-shadow:0 0 0 5px rgba(255,255,255,.22);
}
.timeline li.now h3::after{
  content:"now";
  display:inline-block;
  margin-left:.6em;
  padding:.15em .6em;
  border:1px solid rgba(255,255,255,.6);
  border-radius:999px;
  font-family:'Epilogue',sans-serif;
  font-size:.6rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  vertical-align:middle;
}
.timeline h3{
  font-size:clamp(1rem,1.35vw,1.2rem);
  color:var(--white);
  margin-bottom:.55rem;
}
.timeline p{
  font-size:.92rem;
  color:var(--on-bright-soft);
  line-height:1.55;
}

@media (max-width:1100px){
  .timeline{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:640px){
  .timeline{grid-template-columns:1fr;}
}

/* ========================= footer =========================== */
.site-footer{
  background:#1e3049;
  border-top:1px solid rgba(255,255,255,.10);
  padding:clamp(2.5rem,5vw,4rem) 0;
}
.footer-grid{display:flex;flex-wrap:wrap;gap:1.5rem 2rem;align-items:flex-end;justify-content:space-between;}
.footer-grid h2{font-size:clamp(1.5rem,2.6vw,2.4rem);color:var(--white);}
.footer-logo{height:clamp(32px,4vw,50px);width:auto;filter:brightness(0) invert(1) opacity(.92);}
.footer-meta{font-size:.9rem;color:var(--on-deep-soft);margin-top:.6rem;}
.footer-contact{text-align:left;max-width:46ch;}
.footer-contact h2{margin-bottom:.8rem;}
.footer-contact p{margin:0 0 .5rem;font-size:.92rem;}
.footer-contact p span{font-weight:700;color:var(--white);}
.footer-contact a{color:#9ed0e8;text-decoration:none;}
.footer-contact a:hover{text-decoration:underline;}

.social{
  display:flex;
  gap:1rem;
  list-style:none;
  margin:1rem 0 0;
  padding:0;
}
.social a{
  display:grid;
  place-items:center;
  color:var(--white);
  transition:color .2s ease,transform .2s ease;
}
.social a:hover{color:#9ed0e8;transform:translateY(-2px);}
.social svg{width:24px;height:24px;fill:currentColor;display:block;}

/* ========================= motion =========================== */
.js .reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s cubic-bezier(.22,.61,.36,1),transform .7s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.in{opacity:1;transform:none;}
@media (prefers-reduced-motion:reduce){
  .js .reveal{opacity:1;transform:none;transition:none;}
  .js .subteams-panel{transition:none;}
}

a:focus-visible,button:focus-visible,.btn:focus-visible{outline:2px solid #7fb2e5;outline-offset:3px;}

/* ======================= responsive ========================= */
@media (max-width:900px){
  :root{--gutter:6vw;}
  .about-grid,.project,.prose-grid,.contact-grid{grid-template-columns:1fr;}
  .board{grid-template-columns:repeat(2,1fr);}
  .people-grid{grid-template-columns:repeat(3,1fr);}
  .site-nav{gap:1.4rem;}
  .footer-contact{text-align:left;}

}
@media (max-width:560px){
  .people-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .board{grid-template-columns:repeat(2,minmax(0,1fr));}
  .hero-content{padding:calc(var(--header-h) + 1.5rem) var(--gutter) 3.5rem;}
  .hero-content p{margin:1.2rem auto 1.8rem;}

.member figcaption{font-size:.6rem;letter-spacing:.06em;left:5%;right:5%;}
  .tier-emerald .sponsor-slot{--card:260px;}
  .tier-gold .sponsor-slot{--card:230px;}
  .tier-silver .sponsor-slot{--card:150px;}
  .tier-bronze .sponsor-slot{--card:140px;}

  .subteam-head h3{font-size:1.05rem;}
  .footer-grid{gap:1.2rem;}
}
