@font-face {
    font-family: "Acumin-Light";
    src: url('./fonts/Acumin-Pro/Acumin-Pro-Light.otf') ;

  }
  
  @font-face {
    font-family: "Acumin-Regular";
    src: url('./fonts/Acumin-Pro/Acumin-Pro-Book.otf') ;
  
  }
  canvas, #sketch, .p5Canvas {
    touch-action: none;          /* prevent browser gestures */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

 
  
:root{
  --grid-max: 2080px;
    --brand-blue:#0e50c8;
    --ink:#0a1a2b;
    --paper:#ffffff;
    --muted:rgba(10,26,43,.65);
    --highlight:#EBF21B;
  
    --gutter:20px;
    --columns:12;
    --page-pad: 20px; /* NEW */
  }
  
  .main{ flex:1 0 auto; }

  *{box-sizing:border-box}
  html,body{height:100%;}
  body{
    background: var(--brand-blue);
    min-height:100dvh;       
    margin:0;
    color:var(--ink);
    background:var(--paper);
    display:flex;                    
    flex-direction:column;
    line-height:1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  img{max-width:100%;height:auto;display:block}
  
  a{color:inherit;text-decoration:none}
 
  .container{
    width:100%;
    margin-inline:0;                         /* no auto-centering */
    padding-inline:var(--page-pad);          /* 20px gutters */
    display:grid;
    grid-template-columns:repeat(var(--columns), minmax(0,1fr));
    gap:var(--gutter);
    align-items:start;
  }
  
  /* section.panel{
    min-height:100svh;
    display:grid;
    align-content:start;
    margin:0} */
  

  .panel.hero{
    font-family: "Acumin-Light";
    background:var(--brand-blue);
    color:#fff}
  .hero .headline{
    grid-column:1/-1;
    padding-top: 0;
    line-height: 104.5%;
    font-size:clamp(50px,5.55vw,120px);
    font-weight:500}
  .hero .headline .hl{
    background:var(--highlight);
    color:#0e50c8;
    padding:.006em .05em;
}
  .hero .aside{
    font-family: "Acumin-Light";
    grid-column:5/-3;
    margin-top:0.5rem;
    color:rgba(255,255,255,.85);
    font-size:clamp(24px,1.3vw,40px);}
  

  .kicker{grid-column:1/4;
    font-size:clamp(20px,1.3vw,36px);
    font-family: "Acumin-Light";
    letter-spacing:.05em;
    text-transform:uppercase;
    color:var(--brand-blue);
    align-self:start;margin:0}
  .section-copy{
    grid-column:5/-2;
    color:var(--brand-blue);
    font-family: "Acumin-Light";
    font-size:clamp(24px,1.3vw,40px);
    margin:0}
  .objective-copy,.team-intro,.address{
    grid-column:5/-2
}





.venn{
    grid-column: 2 / -2;   /* span all 12 columns */
    margin-top: 24px;
  }
  
  .venn img{
    align-items: center;
    align-content: center;
    width: 70%;           
    height: auto;         
    display: block;
    margin-inline: auto;  
    margin-top: 100px;
    margin-bottom: 30px;

  }
  


 
  .section-copy>p{margin:0 0 1em}
  .section-copy>p:first-child{margin-top:0}
  
  /* Team */
  .team-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,1fr);gap:20px;margin-top:28px}
  .member{
    text-align:center
}

/* hr {
    grid-column:5/-2;
    border-top: 1.5px solid var(--brand-blue);
    color:var(--brand-blue);
    padding: 20px 20px;
    width: 97vw;
    margin-top: 30px;
    margin: 20px;
    padding-top: 20px;
    margin:auto;
  } */

  .member .avatar{
    width:200px;
    aspect-ratio:1;
    border:2px solid rgba(0,0,0,.2);
    border-radius:50%;
    margin:auto;
    display:grid;
    place-items:center}
  .member .name{margin-top: 20px;font-size:14px;color:var(--brand-blue)}
  .member .role{font-size:12px;color:var(--brand-blue)}
  
  /* Space */
  .address{justify-self:start;margin:0}
  .space-grid{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:20px}
  .space-grid img{
    position: static;      
    display: block;
    object-fit:cover;
    width:100%;
    height:clamp(600px,55vh,920px)}
  
  /* Quote + CTAs */
  .quote{
    grid-column:1/9;
    font-size:clamp(30px,3.2vw,50px);
    line-height: 120%;
    font-weight: 10;
    font-family: "Acumin-Regular";
    letter-spacing: 2%;
    margin: 0;
    color:var(--brand-blue)}


  .ctas{
    grid-column:1/-1;
    display:flex;
    gap:80px;
    margin-top:50px;
    flex-wrap:wrap
  }
  .btn{    
    font-family: "Acumin-Light";
    padding:10px 14px;
    border:1px solid var(--brand-blue);
    font-size:20px;
    color:var(--brand-blue);background:transparent;cursor:pointer}
  .btn:hover{background:rgba(27,92,255,.08)}
  
  /* Responsive */
  @media (max-width:1024px){
    .hero .aside{grid-column:7/-1}
    .team-grid{grid-template-columns:repeat(4,1fr)}
  }
  @media (max-width:860px){
    .kicker{grid-column:1/4}
    .section-copy,.objective-copy,.team-intro,.address{grid-column:4/-1}
    .space-grid{grid-template-columns:1fr}
    .team-grid{grid-template-columns:repeat(3,1fr)}
  }
  @media (max-width:640px){
    .hero .aside{grid-column:1/-1}
    .team-grid{grid-template-columns:repeat(2,1fr)}
    .hero .headline{margin-top: 0px};
  }
  @media (max-width:640px){
    .kicker,
    .section-copy,
    .objective-copy,
    .team-intro,
    .address,
    .quote,
    .ctas,
    hr{
      margin-top: 20px;
      grid-column: 1 / -1;
      gap:40px;
    }
    .quote{margin-bottom: 30px;}
  }
  

  @media (max-width:640px){
    /* Put the kicker on its own full-width row */
    .kicker{
      grid-column: 1 / -1;
      margin-bottom: .5rem; /* small gap before the text */
    }
  
    /* Make the copy follow underneath, also full width */
    .section-copy,
    .objective-copy,
    .team-intro,
    .address{
      grid-column: 1 / -1;
    }
  }
  


  /* Header overlays page */
  .header{
    position: fixed;
    inset: 0 0 auto 0;           /* top:0;left:0;right:0 */
    z-index: 1000;
    padding-inline: var(--page-pad, 20px);
    background: transparent;
    transition:
      transform .28s ease,
      background-color .24s ease,
      backdrop-filter .24s ease,
      box-shadow .24s ease;
  }
  

  /* Hidden state */
  .header.is-hidden{ transform: translateY(-100%); }
  
  @media (prefers-reduced-motion: reduce){
    .header{ transition: none; }
    .header.is-hidden{ transform: none; }
  }

/* Default header text & icons on hero (blue background) */
/* .header { color: #fff; } */
.mobile-overlay { color: #fff; }

/* When scrolled onto white background */
.header.on-white { color: var(--brand-blue); }

/* Hamburger lines follow text color */
.hamburger path {
  stroke: currentColor;
  stroke-width: 2;
}

/* 1) Make the button inherit the header's color */
.header .mobile { 
  color: inherit;            /* <- crucial */
}

/* 2) Ensure the SVG resolves currentColor from the button */
.header .mobile .hamburger { 
  color: inherit; 
}

/* 3) Actually draw the lines in that color */
.hamburger path {
  stroke: currentColor !important;
  stroke-width: 2;
  fill: none;
}

  /* ================= TEAM GRID (About page) ================= */


.is-hidden { display: none; }

/* Make the description block align with your grid if it's inside .container */
.container .description-text { grid-column: 1 / -1; }

/* Responsive card sizing */
.team-grid_inner{
  --card-min: 12rem;     /* min card width */
  --card-max: 15.5rem;   /* max card width */
  color:var(--brand-blue);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min)), 1fr));
  column-gap: 0.4rem;
  row-gap: 1.65rem;
  justify-items: stretch;     /* stretch cells; cards self-limit via max width */
}

/* Card */
.team-grid_item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10rem;
  width: 100%;
  max-width: var(--card-max);   /* prevents overly wide cards on large screens */
  margin-inline: auto;          /* centers the card within a wide cell */
}

/* Circular image wrapper */
.team-grid_image-wrapper{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
}

/* Optional subtle outline ring */
.team-grid_outline{
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0,0,0,.15);
  border-radius: 50%;
  pointer-events: none;
}

/* Images fill the circle */
.team-grid_image-wrapper img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stack two images; fade the top one on hover */
.team-grid_image-up,
.team-grid_image-down{
  position: absolute;
  inset: 0;
}
.team-grid_image-up{
  z-index: 1;
  opacity: 1;
  transition: opacity .18s ease-in-out;
}
.team-grid_image-wrapper:hover .team-grid_image-up{
  opacity: 0;
}

/* Text */
.team-grid_info{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.team-grid_name{
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  margin: 0;
}
.team-grid_post{
  margin: 5px 0 0 0;
  text-align: center;
  color: var(--muted);
  font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1rem);
}

/* Spacing for the paragraph above the grid */
.description-text > p{
  margin: 0 0 1rem 0;
}

/* Motion preference */
@media (prefers-reduced-motion: reduce){
  .team-grid_image-up{ transition: none; }
}

.team-grid{ grid-column: 1 / -1; }


.team-grid_inner{
    grid-column: 1 / -1;       
  }
  
  .container > .team-grid{
    grid-column: 1 / -1;   
    display: block;      
    width: 100%;
  }
  

  .team-grid_inner {
    --card-min: 8rem;
    --card-max: 15.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr));
    gap: 1rem 10rem;

    }
  
  /* 3) Cards — keep your look, but don't block wrapping */
  .team-grid_item{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem 1.5rem;
    width: 100%;
    max-width: var(--card-max);  /* optional; centers inside wide tracks */
    margin-inline: auto;
  }

  .mobile-overlay a { display:inline-block; padding:12px 8px; color:#fff; text-decoration:none; }

/* Make all header nav text follow the header's color */
.header a,
.header .button-header a,
.header .nav-text a,
.header .nav-arrow a {
  color: inherit !important;      /* override any older hard-coded colors */
  text-decoration: none;
}

/* Optional hover */
.header a:hover,
.header a:focus { text-decoration: underline; }

/* Ensure the hamburger lines follow the color too */
.header .hamburger path { stroke: currentColor; }

/* (If you had any old hard-coded white…) neutralize them */
.button_header1 a,
.nav-text a,
.nav-arrow a { color: inherit !important; }


@media (max-width: 640px){
  /* force two columns */
  .team-grid_inner{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;            /* tighter spacing so two fit comfortably */
    --card-min: 8rem;     /* optional: allow smaller cards */
    --card-max: none;     /* optional: don't cap width per card */
  }

  /* let each card stretch to its column */
  .team-grid_item{
    max-width: none;      /* remove the 15.5rem cap on mobile */
    width: 100%;
  }

  /* ensure the circular image fills its column */
  .team-grid_image-wrapper{
    width: 100%;
  }
}

/* existing kept; only changing max values via a desktop-specific bump */
@media (min-width: 1366px){
  .hero .headline{
    /* was clamp(50px, 5.55vw, 120px) */
    font-size: clamp(50px, 5.55vw, 150px);
  }
  .hero .aside{
    /* was clamp(24px, 1.3vw, 40px) */
    font-size: clamp(24px, 1.4vw, 48px);
  }
  .section-copy{
    /* was clamp(24px, 1.3vw, 40px) */
    font-size: clamp(22px, 1.25vw, 44px);
  }
  .kicker{
    /* subtle lift so it doesn’t look tiny next to larger headline */
    font-size: clamp(18px, 1.1vw, 28px);
  }
}

@media (min-width: 1700px){
  .hero .headline{ font-size: clamp(60px, 5.2vw, 180px); }
  .hero .aside{    font-size: clamp(26px, 1.5vw, 70px); }
  .section-copy{   font-size: clamp(24px, 1.2vw, 50px); }
}





@media (min-width: 1366px){
  body .container .panel.hero .headline{
    font-size: clamp(50px, 5.4vw, 150px) !important;
  }
  body .container .panel.hero .aside{
    font-size: clamp(24px, 1.35vw, 48px) !important;
  }
  body .container .section-copy{
    font-size: clamp(22px, 1.2vw, 44px) !important;
  }
}

/* ===== FINAL OVERRIDES: place LAST in your CSS ===== */

/* 0) Fix the grid ceiling: keep the big one */
:root{
  --grid-max: 2080px;              /* keep the larger cap */
  --card-min: 12rem;               /* sensible defaults */
  --card-max: 22rem;               /* base desktop card size */
  --avatar-max: clamp(14rem, 22vw, 22rem);
}

/* Make the main grid actually use the big cap if you center anywhere */
@media (min-width: 1200px){
  .container{
    max-width: var(--grid-max);
    margin-inline: auto;
  }
}

/* ==== TEAM GRID SIZING BY VIEWPORT RANGE (place LAST) ==== */

/* Base: compact (phones/tablets/smaller laptops) */
.team-grid_item{ gap: 1.5rem !important; }
.team-grid_inner{
  grid-template-columns: repeat(auto-fit, minmax(var(--card-min, 14rem), 1fr)) !important;
  column-gap: 1rem !important;
  row-gap: 1.5rem !important;
  --card-min: 14rem;                 /* base compact card */
}
.team-grid_item{
  max-width: none !important;        /* let the grid track set the width */
  width: 100% !important;
}
.team-grid_image-wrapper{
  width: 100% !important;
  max-width: clamp(12rem, 22vw, 18rem) !important; /* compact avatar */
}

/* ≤ 1440px (typical 14″): stay compact */
@media (max-width: 1600px){
  .team-grid_inner{
    --card-min: 7.5rem !important;  /* small bump, still compact */
    column-gap: 5.25rem !important;
    row-gap: 1rem !important;
  }
  .team-grid_image-wrapper{
    max-width: clamp(12rem, 20vw, 18rem) !important;
  }
}

/* 1441–1599px: medium */
@media (min-width: 1600px) and (max-width: 1800px){
  .team-grid_inner{
    --card-min: 18rem !important;
    column-gap: 1.5rem !important;
    row-gap: 2rem !important;
  }
  .team-grid_image-wrapper{
    max-width: clamp(14rem, 21vw, 22rem) !important;
  }
}

/* ≥ 1600px (27″ etc.): large */
@media (min-width: 1600px){
  .team-grid_inner{
    --card-min: 10rem !important;   
    column-gap: 8rem !important;
    row-gap: 2.25rem !important;
  }
  .team-grid_image-wrapper{
    max-width: clamp(18rem, 20vw, 28rem) !important;
  }
  .team-grid_name{ font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.5rem) !important; }
  .team-grid_post{ font-size: clamp(1rem, 0.8rem + 0.4vw, 1.2rem) !important; }
}


.header,
.index-outer,
.search-filter,
.list-projects,
.site-footer,
.footer-legal{
  /* keep full width backgrounds; move content inward as screens grow */
  padding-left:  max(var(--page-pad), calc((100vw - var(--grid-max)) / 2)) !important;
  padding-right: max(var(--page-pad), calc((100vw - var(--grid-max)) / 2)) !important;
}


.site-footer,
.footer-legal { 
  font-family: "Acumin-Light" !important;
  color: #fff !important;
}

/* break .mainbody font-size inheritance */
.site-footer { 
  padding-top:20%;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  margin-top: auto !important;              /* push to end */
  background: var(--brand-blue) !important;

  display: grid !important;
  grid-template-columns: repeat(var(--columns), minmax(0,1fr)) !important;
  gap: var(--gutter) !important;
  align-items: center !important;
}

.site-footer a{ 
 
  color: rgba(255,255,255,.95) !important; 
  text-decoration: none !important; 
}
.site-footer a:hover{ text-decoration: underline !important; }

/* left column content (3 blocks + privacy link row) */
.footer-meta{
  grid-column: 1 / 9 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: clamp(12px, 3vw, 36px) !important;
}
.footer-meta p{
  margin: 0 !important; 
  line-height: 1.35 !important; 
  font-size: clamp(14px, 1.1vw, 18px) !important; 
  color: rgba(255,255,255,.95) !important; 
}

/* right column: logo */
.footer-brand{
  grid-column: 9 / -1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  align-self: start !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}
.footer-logo{ 
  display:block !important; 
  width: clamp(110px, 12vw, 200px) !important; 
  height:auto !important; 
}

/* newsletter directly under logo, full width of right column */
.footer-newsletter{
  grid-column: 9 / -1 !important;
  grid-row: 2 !important;
  width: 100% !important;
  max-width: 960px !important;         /* long line like your mock */
}
.newsletter-title{
  margin: 0 0 .5rem 0 !important;
  font-weight: 400 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  font-size: .95rem !important;
  opacity: .9 !important;
}
.newsletter-row{
  display: flex !important;
  align-items: center !important;
  gap: .75rem !important;
  width: 100% !important;
  border-bottom: 1px solid rgba(255,255,255,.75) !important;
  padding: .35rem 0 !important;
}
.newsletter input{
  flex: 1 !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  color: #fff !important;
  font: inherit !important;
  padding: .35rem 0 !important;
}
.newsletter input::placeholder{ color: rgba(255,255,255,.7) !important; }
.newsletter-submit{
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  font: inherit !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  padding: .35rem 0 !important;
}
.newsletter-submit:hover{ text-decoration: underline !important; }

/* social row matches About look */
.footer-social{
  grid-column: 1 / 9 !important;
  display: flex !important;
  gap: clamp(20px, 6vw, 80px) !important;
  margin: 0 !important;
}

/* thin separator + legal strip exactly like About */
.footer-legal{
  background: var(--brand-blue) !important;
  color: rgba(255,255,255,.9) !important;
  border-top: 1px solid rgba(255,255,255,.25) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1rem !important;
  font-size: .85rem !important;
  padding-block: clamp(12px, 2.6vh, 24px) !important;
}
.footer-legal a{ color: inherit !important; text-decoration: none !important; }
.footer-legal a:hover{ text-decoration: underline !important; }

/* responsive matches About */
@media (max-width:1024px){
  .footer-meta{ grid-column: 1 / 10 !important; }
}
@media (max-width:860px){
  .footer-meta{
    grid-column: 1 / -1 !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .footer-brand{
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    margin-top: 6px !important;
  }
  .footer-social{ grid-column: 1 / -1 !important; gap: 16px !important; }
  .footer-newsletter{
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    max-width: none !important;
    padding-top: 4% !important;
  }
  .footer-legal{ font-size: .8rem !important; }
}

/* keep footer pinned at the end of the page */
body{ display:flex; flex-direction:column; min-height:100dvh; }
.mainbody{ flex:1 0 auto; }        /* content area */


/* =========================================
   SECTION RHYTHM + SEPARATORS (About only)
   ========================================= */

/* Responsive rhythm: ≈ 90px on typical laptop, breathes on big/small screens */
:root{
  --section-gap: clamp(56px, 6vh, 112px);  /* ~90px middle */
  --rule-color: rgba(14,80,200,.2);        /* soft blue line */
}

/* Panel base (no forced viewport height) */
section.panel{
  display: grid;
  align-content: start;
  margin: 0;
  /* give text and media some air */
  padding-block: var(--section-gap);
}

/* Keep only the first panel full-viewport */
.panel.hero{
  min-height: 100svh;
  padding-block: clamp(24px, 6vh, 64px); /* small inner breathing */
}

/* Draw a separator before every panel after the hero */
.panel + .panel{
  position: relative;
}
.panel + .panel::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;      /* top rule */
  height: 1px;
  background: var(--rule-color);
  /* align the rule to the same rails as .container */
  left: 0; right: 0;
}
@media (min-width: 1200px){
  .panel + .panel::before{
    max-width: var(--grid-max);
    margin-inline: auto;
  }
}

/* Container: keep your cap & center on wide screens */
@media (min-width: 1200px){
  .container{
    max-width: var(--grid-max);
    margin-inline: auto;
  }
}

/* Headline/aside already good; just ensure the aside never collides with the rule */
.hero .aside{ margin-top: clamp(8px, 1.5vh, 20px); }

/* TEAM — keep your styling, just use the new vertical rhythm */
.team-grid{ margin-top: clamp(24px, 3vh, 40px); }

/* SPACE — let images scale with content without huge fixed heights */
.space-grid{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.space-grid img{
  width: 100%;
  height: auto;        /* was clamp(600px,55vh,920px) */
  aspect-ratio: 4 / 3; /* keep a pleasant shape */
  object-fit: cover;
}

/* QUOTE + CTAs — consistent spacing */
.quote{ margin-top: 0; }
.ctas{ margin-top: clamp(28px, 4vh, 56px);margin-bottom: clamp(70px, 10vh, 140px);}

/* Replace wide <hr> with the new separators; keep <hr> minimal if used */
hr{
  grid-column: 1 / -1;
  border: 0;
  height: 1px;
  background: var(--rule-color);
  width: 100%;
  margin: var(--section-gap) 0;
}

/* Rails parity: align header/footer content to rails on ultra-wide screens */
.header,
.site-footer,
.footer-legal{
  padding-left:  max(var(--page-pad), calc((100vw - var(--grid-max))/2));
  padding-right: max(var(--page-pad), calc((100vw - var(--grid-max))/2));
}

/* Footer spacing matches the new rhythm (content-height page, sticky at end) */
.site-footer{ padding-block: clamp(16px, 3vh, 36px); }
.footer-legal{ padding-block: clamp(12px, 2.6vh, 24px); }

/* Swirl sits to the left of the aside on large screens; stacks on small */
.hero-swirl{
  grid-column: 4 / 5;                 /* adjust to taste; pairs with your grid */
  align-self: start;
  width: clamp(60px, 6vw, 110px);
  height: auto;
  margin-top: clamp(8px, 1.4vh, 16px);
  filter: brightness(0) invert(1);    /* white on blue; remove if your SVG is already white */
}
@media (max-width: 1024px){
  .hero-swirl{ grid-column: 1 / -1; margin-bottom: 8px; }
}


/* ============ ALIGN TO TEXT RAILS (DESKTOP) ============ */
/* Text already uses grid-column: 5 / -2 */
.team-grid{ grid-column: 5 / -2 !important; }    
.space-grid{ grid-column: 5 / -2 !important; }  

.team-grid_inner{
  grid-template-columns: repeat(auto-fit, minmax(var(--card-min, 12rem), 1fr)) !important;
}

/* ============ HR LINES ON CONTAINER RAILS ============ */
.container > hr{
  grid-column: 1 / -1 !important; 
  width: 100% !important;
  margin: 40px 0 !important;        
  border: 0 !important;
  border-top: 1.5px solid var(--brand-blue) !important;

}

/* Remove previous viewport-wide hr sizing if present */
hr{ width: auto !important; margin-inline: 0 !important; }

/* ============ RESPONSIVE: FULL WIDTH ON SMALL SCREENS ============ */
@media (max-width: 860px){
  .team-grid,
  .space-grid{ grid-column: 1 / -1 !important; }  /* follow your mobile pattern */
  .container > hr{ margin: 28px 0 !important; }
}

/* ===== Team grid: keep 2-up, just tighter gaps on small screens ===== */

/* phones & small tablets */
@media (max-width: 860px){
  .team-grid_inner{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* stay 2-up */
    column-gap: 1rem !important;   /* tighter left/right gap */
    row-gap: 1rem !important;         /* tighter top/bottom gap */
  }

  /* let cards breathe but fit the tighter grid */
  .team-grid_item{ max-width: none !important; width: 100% !important; }
  .team-grid_image-wrapper{ max-width: none !important; }
  .team-grid_name{ font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); }
  .team-grid_post{ font-size: clamp(.85rem, .8rem + .2vw, .95rem); }
}

/* extra-tight on very small phones, still 2-up */
@media (max-width: 420px){
  .team-grid_inner{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 1rem !important;
    row-gap: 0.75rem !important;
  }
}
/* Space: stack images on mobile */
@media (max-width: 860px){
  .space-grid{
    grid-template-columns: 1fr !important;  /* one per row */
    gap: 16px !important;
  }
  .space-grid img{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
  }
}