/* Untangling People Flow Consortium — rebuilt static site */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --ink:#132229;
  --ink-soft:#3d5058;
  --paper:#faf9f5;
  --paper-dim:#f0efe9;
  --line:#dcdad2;
  --flow-yellow:#e0ac3f;
  --flow-green:#4c8c6b;
  --flow-blue:#3b6ea5;
  --flow-purple:#7a5ca8;
  --max:1120px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter',system-ui,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--flow-blue); text-decoration:none;}
a:hover{text-decoration:underline;}
a:focus-visible, button:focus-visible{outline:2px solid var(--flow-blue); outline-offset:3px;}

h1,h2,h3,h4{
  font-family:'Space Grotesk',sans-serif;
  font-weight:600;
  line-height:1.15;
  margin:0 0 .5em;
  color:var(--ink);
}
h1{font-size:clamp(2.1rem,4.5vw,3.4rem); font-weight:700; letter-spacing:-.01em;}
h2{font-size:clamp(1.5rem,3vw,2.1rem);}
h3{font-size:1.3rem;}
p{margin:0 0 1em;}

.eyebrow{
  font-family:'IBM Plex Mono',monospace;
  font-size:.75rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ink-soft);
  display:block;
  text-align:left;
  margin-bottom:.6em;
}

.wrap{width:100%; max-width:var(--max); margin:0 auto; padding:0 24px;}

/* Flow bar — signature element: a stream of the four consortium colors,
   echoing the site's original yellow/green/blue/purple divider panels. */
.flowbar{
  height:6px;
  width:100%;
  background:linear-gradient(90deg,
    var(--flow-yellow) 0 25%,
    var(--flow-green) 25% 50%,
    var(--flow-blue) 50% 75%,
    var(--flow-purple) 75% 100%);
}

/* Header */
.site-header{
  border-bottom:1px solid var(--line);
  background:var(--paper);
  position:sticky; top:0; z-index:20;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 24px 14px;
  max-width:var(--max); margin:0 auto;
  gap:24px; flex-wrap:wrap;
}
.brand{
  display:inline-flex; align-items:center; justify-content:center;
  color:var(--ink);
  text-decoration:none;
  flex:none;
}
.brand-mark{
  width:220px; height:150px; flex:none;
  display:block;
  background:url('../assets/peopleflow_logo_and_text.png') center center / contain no-repeat;
  background-size:contain;
}
.brand:hover .brand-mark, .brand:focus-visible .brand-mark{
  transform:translateY(-1px);
  transition:transform .15s ease;
}
.brand-footer{
  margin-bottom:12px;
}

nav.main-nav ul{
  list-style:none; display:flex; gap:36px; margin:0; padding:0; flex-wrap:wrap;
}
nav.main-nav a{
  color:var(--ink); font-weight:600; font-size:1.05rem;
  padding:8px 0 6px; border-bottom:2px solid transparent;
  line-height:1.2;
}
nav.main-nav a:hover, nav.main-nav a.active{
  color:var(--flow-blue); text-decoration:none; border-bottom-color:var(--flow-blue);
}

/* Breadcrumb / sub-nav strip used on interior pages */
.subnav{
  background:var(--paper-dim);
  border-bottom:1px solid var(--line);
}
.subnav ul{
  list-style:none; display:flex; gap:6px; margin:0; padding:10px 0;
  max-width:var(--max); margin:0 auto; padding-left:24px; padding-right:24px;
  font-family:'IBM Plex Mono',monospace; font-size:.9rem; flex-wrap:wrap;
}
.subnav li:not(:last-child)::after{content:"/"; margin-left:10px; color:var(--line);}
.subnav a{color:var(--ink-soft);}
.subnav .current{color:var(--flow-blue); font-weight:600;}

/* Hero */
section.hero.wrap,
.hero{
  padding:64px 0 40px; border-bottom:1px solid var(--line);
  text-align:left;
}
section.hero.wrap .eyebrow,
section.hero.wrap h1,
section.hero.wrap .lede,
.hero .eyebrow,
.hero h1,
.hero .lede{
  text-align:left;
  margin-left:0;
}
.hero-media{
  margin-top:28px; border-radius:14px; overflow:hidden; border:1px solid var(--line);
  background:var(--paper-dim);
}
.hero-media img{display:block; width:100%; height:auto;}
.hero p.lede{font-size:1.15rem; color:var(--ink-soft); max-width:60ch;}

/* Full-bleed hero banner with overlaid heading */
.hero-banner{padding:0; width:100%;}
.hero-banner-media{
  position:relative; width:100%; overflow:hidden;
  min-height:420px;
  max-height:560px;
  border-radius:0;
}
.hero-banner-media img{
  display:block; width:100%; height:100%;
  min-height:420px; max-height:560px;
  object-fit:cover; object-position:center;
}
.hero-banner-media::after{
  content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(100deg, rgba(10,14,18,.72) 0%, rgba(10,14,18,.45) 45%, rgba(10,14,18,0) 75%);
}
.hero-banner-text{
  position:absolute; inset:0; z-index:2; display:flex; align-items:center;
  padding:0 32px;
}
.hero-banner-text h1{
  color:#fff; margin:0; max-width:24ch;
  font-size:clamp(1.5rem,2vw,3rem);
  line-height:1.04;
}

/* Home feature row — minimal icon + link */
.feature-row{
  display:grid; grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:48px; align-items:center; padding:80px 0;
}
.feature-link{
  display:flex; align-items:center; gap:9px;
  color:var(--ink); text-decoration:none;
  width:max-content; max-width:100%;
}
.feature-link:first-child{justify-self:start; margin-left:-12px;}
.feature-link:last-child{justify-self:end; margin-right:-12px;}
.feature-link img{width:220px; height:220px; object-fit:contain; flex:none;}
.feature-link span{
  font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:1.15rem;
  text-decoration:underline; color:var(--ink);
}
.feature-link:hover span{color:var(--flow-blue);}

/* Generic section */
.section{padding:52px 0;}
.section + .section{border-top:1px solid var(--line);}
.section-head{max-width:70ch; margin-bottom:28px;}

/* Content blocks (research / testbeds style: heading, text, image) */
.block{
  display:grid; grid-template-columns:1fr 1fr; gap:36px; align-items:center;
  padding:36px 0;
}
.block:not(:last-child){border-bottom:1px solid var(--line);}
.block img{width:100%; border-radius:12px; border:1px solid var(--line); display:block;}
.block.reverse .block-media{order:2;}
.block.reverse .block-text{order:1;}

/* News list */
.news-item{
  display:grid; grid-template-columns:360px minmax(0, 1fr); gap:32px;
  padding:30px 0; border-bottom:1px solid var(--line);
  align-items:start;
}
.news-item img{
  width:100%; max-width:360px; border-radius:10px; border:1px solid var(--line);
  display:block; margin-left:0; object-fit:cover;
}
.news-item > div{
  min-width:0; padding-left:8px;
}
.news-date{
  font-family:'IBM Plex Mono',monospace; font-size:.78rem; color:var(--flow-blue);
  margin-bottom:.4em; display:block;
}
.news-item h3{font-size:1.15rem; margin-bottom:.35em;}

/* Partner logo grid */
.logo-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:14px; overflow:hidden;
}
.logo-cell{
  background:#fff; display:flex; align-items:center; justify-content:center;
  padding:28px 20px; min-height:120px;
}
.logo-cell img{max-width:100%; max-height:60px; object-fit:contain;}

/* People / contact list (who we are) */
.people-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:14px; overflow:hidden;
}
.person{background:#fff; padding:22px 24px;}
.person .name{font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:1.02rem;}
.person .org{color:var(--flow-green); font-size:.9rem; font-weight:500; margin:.15em 0;}
.person .email{font-family:'IBM Plex Mono',monospace; font-size:.82rem; color:var(--ink-soft); word-break:break-all;}

/* Case study card */
.case-card{
  display:flex; gap:28px; align-items:center; border:1px solid var(--line);
  border-radius:14px; overflow:hidden; background:#fff;
}
.case-card img{width:45%; height:100%; object-fit:cover;}
.case-card .case-body{padding:28px;}

/* Workshop / event timeline */
.timeline{border-left:2px solid var(--line); margin-left:6px; padding-left:28px;}
.timeline-item{position:relative; padding:0 0 32px;}
.timeline-item::before{
  content:""; position:absolute; left:-33px; top:6px; width:10px; height:10px;
  border-radius:50%; background:var(--flow-purple);
}
.timeline-item .when{font-family:'IBM Plex Mono',monospace; font-size:.78rem; color:var(--flow-purple);}

/* Publication entry */
.pub{border-left:3px solid var(--flow-blue); padding:4px 0 4px 18px; margin-bottom:18px;}

/* Buttons */
.btn{
  display:inline-block; padding:11px 22px; border-radius:8px;
  background:var(--ink); color:#fff !important; font-weight:600; font-size:.92rem;
  text-decoration:none !important;
}
.btn:hover{background:var(--flow-blue);}

/* Footer */
footer.site-footer{
  background:var(--ink); color:#e9ece9; padding:44px 0 28px; margin-top:auto;
}
footer.site-footer a{color:#e9ece9;}
.footer-inner{display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px;}
.footer-note{font-size:.82rem; color:#9fb0ab; max-width:60ch; margin-top:18px;}
.footer-social{display:flex; flex-direction:column; align-items:flex-start; gap:10px;}
.linkedin-link{
  display:inline-flex; align-items:center; gap:10px;
  font-family:'Space Grotesk',sans-serif;
  font-size:1.2rem;
  font-weight:700;
  letter-spacing:-.03em;
  color:#fff;
  text-decoration:none;
}
.linkedin-link:hover{opacity:.9; text-decoration:none;}
.linkedin-logo{width:22px; height:22px; display:block; flex:none;}

@media (max-width: 860px){
  .feature-row{grid-template-columns:1fr;}
  .block{grid-template-columns:1fr;}
  .block.reverse .block-media, .block.reverse .block-text{order:0;}
  .news-item{grid-template-columns:1fr;}
  .logo-grid{grid-template-columns:repeat(2,1fr);}
  .people-grid{grid-template-columns:1fr;}
  .case-card{flex-direction:column;}
  .case-card img{width:100%; height:220px;}
}
