/* Full-bleed hero image with bottom overlay CTAs */
.hero-full {
  /* Set the background image via inline style on the section:
     style="--hero-img: url('assets/img/group.jpg')" */
  --overlay-bg: rgba(22, 27, 34, 0.55);  /* dark translucent */
  --overlay-border: rgba(255, 255, 255, 0.16);

  position: relative;
  width: 100%;
  min-height: clamp(360px, 60vh, 720px);
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 16px;               /* soften edges within container */
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

/* optional gradient at the bottom for legibility */
.hero-full::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent 35%);
  pointer-events: none;
}

/* Bottom overlay bar */
.hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  display: flex;
  justify-content: center;
}

.hero-overlay .overlay-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  background: var(--overlay-bg);
  border: 1px solid var(--overlay-border);
  border-radius: 12px;
  padding: 10px 12px;

  /* subtle glass effect when supported */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Buttons (inherits your existing .btn styles if present) */
.hero-cta {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-cta .btn,
.hero-cta .btn-ghost {
  height: 40px;
  line-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--overlay-border);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  color: #fff;
  text-decoration: none;
}

.hero-cta .btn {
  background: color-mix(in srgb, var(--brand) 75%, #111 25%);
}

.hero-cta .btn-ghost {
  background: transparent;
}

.hero-cta .btn:hover,
.hero-cta .btn-ghost:hover {
  transform: translateY(-1px);
}

/* Space for the content below the image */
.home-intro {
  margin-top: 18px;
}

.home-intro .lead {
  font-size: 1.05rem;
  color: var(--muted);
}

/* Make the hero edges flush on very small screens */
@media (max-width: 680px){
  .hero-full { border-radius: 12px; min-height: 50vh; }
}

/* Full-bleed hero image with an actual <img> */
.hero-full{
  position: relative;
  width: 100%;
  height: clamp(320px, 55vh, 520px); /* min 320px, usually ~55% viewport, max 520px */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  background: none !important;
}

.hero-full .hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* scale to fill, crop excess */
  object-position: center;    /* focus center of image */
  border-radius: inherit;
  z-index: 0;
}
/* optional gradient at the bottom for legibility */
.hero-full::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent 35%);
  pointer-events: none;
  z-index: 1;
}

/* Bottom overlay bar (stays above the image) */
.hero-overlay{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px; display: flex; justify-content: center;
  z-index: 2;  /* above image and gradient */
}

.hero-overlay .overlay-inner{
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center;
  background: rgba(22, 27, 34, 0.55);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: 10px 12px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.hero-cta .btn,
.hero-cta .btn-ghost{
  height: 40px; line-height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 2px 6px rgba(0,0,0,.18);
  color: #fff; text-decoration: none;
}
.hero-cta .btn{ background: color-mix(in srgb, var(--brand) 75%, #111 25%); }
.hero-cta .btn-ghost{ background: transparent; }
.hero-cta .btn:hover, .hero-cta .btn-ghost:hover{ transform: translateY(-1px); }

@media (max-width: 680px){
  .hero-full{ border-radius: 12px; min-height: 50vh; }
}

/* ---------- Home: Intro Band ---------- */

.intro-band{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: linear-gradient(180deg, rgba(241,245,249,0.60), rgba(241,245,249,0.38));
  box-shadow: 0 12px 32px rgba(15,23,42,0.06);
  margin-bottom: 28px;
}

.intro-kicker{
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 2px 0 12px 0;
}
.intro-kicker span{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2,132,199,0.10);
  color: #065f46; /* teal-ish accent */
  border: 1px solid rgba(2,132,199,0.28);
  font-weight: 600;
  font-size: .92rem;
}

.intro-lede {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155; /* slate-700 */
  margin: 6px 0 14px 0;

  /* New justification settings */
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  hanging-punctuation: first;
}


.intro-points{
  display: grid; gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin: 0; padding: 0; list-style: none;
}
.intro-points li{
  position: relative;
  padding: 8px 12px 8px 28px;
  border: 1px solid rgba(15,23,42,0.10);
  background: #fff;
  color: #0f172a; /* slate-900 */
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(15,23,42,0.05);
}
.intro-points li::before{
  content: ""; position: absolute; left: 10px; top: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 30% 30%, #0ea5e9 0%, #06b6d4 60%, #0891b2 100%);
  box-shadow: 0 0 0 2px rgba(14,165,233,0.18);
}


/* ---------- /* Right side / Aside */ ---------- */


.intro-aside{
  display: grid; gap: 12px;
  align-content: start;
}

.stat{
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(15,23,42,0.05);
}
.stat strong{
  font-size: 1.6rem; line-height: 1; color: #0f766e; /* teal-700 */
}
.stat span{
  color: #475569; /* slate-600 */
}

.intro-quicklinks{
  display:flex; flex-wrap:wrap; gap:10px; margin-top: 4px;
}
.intro-quicklinks .chip{
  display:inline-block; padding: 8px 12px;
  border-radius: 999px;
  background: #0f172a;
  color:#fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 8px 18px rgba(15,23,42,0.20);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.intro-quicklinks .chip:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15,23,42,0.24);
  background:#111827;
}

/* Cards under the intro: add a little space on small screens */
.home-intro .cards{ margin-top: 18px; }

/* Responsive */
@media (max-width: 980px){
  .intro-band{
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .intro-points{
    grid-template-columns: 1fr;
  }
}


/* === Intro readability refinements === */


.intro-band .intro-left{
  max-width: 68ch;              /* ~60–72 characters per line */
}

/* 2) Lede paragraph: size/line-height tuned for Inter */
.intro-band .intro-lede{
  font-size: 1.05rem;           /* was 1.125rem */
  line-height: 1.75;            /* was 1.8 (keeps block tighter) */
  letter-spacing: -0.005em;     /* subtle optical tightening */
  color: #334155;               /* slate-700 */
  text-wrap: pretty;            /* better line breaks (modern browsers) */
  hyphens: auto;                /* allow hyphenation on narrow widths */
  font-feature-settings: "liga","kern","onum";
}

/* 3) Capability pills: a touch lighter and airier */
.intro-band .intro-points li{
  font-size: 0.975rem;          /* was default */
  line-height: 1.55;
  font-weight: 500;
  padding: 10px 14px 10px 30px; /* a bit more breathing room */
}

/* 4) Kicker pills aren’t louder than the body text */
.intro-band .intro-kicker span{
  font-size: 0.9rem;            /* was .92rem */
  padding: 6px 10px;
}

/* 5) Right-column stats balanced with copy */
.intro-band .stat strong{ font-size: 1.35rem; }  /* was 1.6rem */
.intro-band .stat span{   font-size: 0.9rem;  }

/* 6) Panel feel: a hair softer */
.intro-band{
  gap: 24px;                    /* was 28px */
  padding: 20px;                /* was 22px */
  background: linear-gradient(180deg, rgba(241,245,249,0.50), rgba(241,245,249,0.32));
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 10px 28px rgba(15,23,42,0.06);
  border-radius: 16px;          /* was 18px */
}

/* 7) Responsive: slightly narrower column & size on small screens */
@media (max-width: 980px){
  .intro-band .intro-left{ max-width: 64ch; }
  .intro-band .intro-lede{ font-size: 1rem; line-height: 1.7; }
}
@media (max-width: 680px){
  .intro-band .intro-left{ max-width: 60ch; }
  .intro-band .intro-lede{ font-size: 0.975rem; line-height: 1.65; }
  .intro-band{ padding: 18px; gap: 18px; }
}


/* Small “card” look to match your stat tiles */
.cardish{
  background:#fff;
  border:1px solid rgba(15,23,42,0.10);
  border-radius:12px;
  padding:14px;                           /* a bit more padding */
  box-shadow:0 6px 16px rgba(15,23,42,0.05);
}

/* Collaborators title */
.partners h4{
  margin:0 0 8px 0;
  font-size:.98rem;
  color:#0f172a;
}

/* Grid of logos – bigger, centered */

.logo-grid{
  display:grid;
  gap:10px;                               /* was 14px */
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));  /* was 110px */
  align-items:center;
  justify-items:center;
  min-height:110px;                        /* gives the card some breathing room */ /* was 88px */
}

/* Logo sizing & visibility */

.logo{
  display:block;
  max-width: 160px;        /* allow wider logos */
  max-height: 80px;        /* much taller than before (was 32/56px) */
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 6px 8px;        /* spacing around the mark */
  filter: grayscale(60%) opacity(.95);
  transition: filter .18s ease, transform .18s ease;
}

.logo:hover{
  filter:none;
  transform: translateY(-2px);
}

/* Helper classes */
.logo--light{                              /* for white/very light logos */
  filter: drop-shadow(0 0 1px rgba(0,0,0,.25)) drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
.logo--wide{                               /* for extra wide, short logos */
  max-height:64px;
}

/* Optional: horizontal strip if you have many logos */
.logo-strip{
  display:flex; gap:16px;
  overflow:auto; scroll-snap-type:x mandatory;
  padding:6px 2px; scrollbar-width:none; -ms-overflow-style:none;
}
.logo-strip::-webkit-scrollbar{ display:none; }
.logo-strip .logo{ scroll-snap-align:center; flex:0 0 auto; }

.strip-controls{ display:flex; gap:6px; justify-content:flex-end; margin-top:8px; }
.strip-btn{
  width:28px; height:28px; border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:#f1f5f9; cursor:pointer; font-weight:700;
}
.strip-btn:hover{ background:#e2e8f0; }



/* Scope logo sizing to the collaborators card only, override any global .logo */
.partners .logo {
  height: 80px !important;     /* force an actual size */
  width: auto !important;
  max-height: none !important;
  max-width: 180px;
  object-fit: contain;
  padding: 6px 8px;
  filter: grayscale(60%) opacity(.95);
}

.partners .logo-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  align-items: center;
  justify-items: center;
  min-height: 120px;
}

/* helpers */
.partners .logo--light { filter: drop-shadow(0 0 1px rgba(0,0,0,.35)) drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.partners .logo--wide  { height: 90px !important; max-width: 220px; }
