:root{
  --navy:#0A2342;
  --navy-deep:#061327;
  --teal:#009688;
  --amber:#FFB000;
  --charcoal:#444444;
  --light:#f6f7f9;
  --white:#ffffff;
  --greyline:#e8ebef;
  --light-grey:#d9dce0;
  --hint-green:#27ae60;
  --light-blue: #8faadc;
  --mid-blue: #1f3864;
  --sub-hero-h: 12px; }   /* try 64–88px */
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--charcoal);
  background:var(--white);
  line-height:1.6;
}

.container{max-width:1120px;margin:0 auto;padding:0 20px}
h1,h2,h3,h4{color:var(--navy);margin:0 0 .6rem}
h1{font-size:clamp(34px,5vw,48px);line-height:1.15;font-weight:800}
h2{font-size:clamp(24px,3.5vw,32px);font-weight:800}
h3{font-size:20px;font-weight:800}
h4{font-size:18px;font-weight:700}
p{margin:.3rem 0 1rem}
a{color:var(--teal);text-decoration:none}
a:hover{text-decoration:underline}

/* Header */
.site-header{
  position:sticky;top:0;z-index:10;background:var(--white);
  border-bottom:1px solid var(--greyline)
}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:block;height:32px;width:auto}
.logo-link{display:inline-flex;align-items:center}
.main-nav{display:flex;gap:20px;align-items:center}
.main-nav a{color:var(--navy);font-weight:600}
.main-nav .btn{margin-left:6px}
.nav-toggle{display:none;background:none;border:none;font-size:24px}

/* HERO */
.hero{position:relative;overflow:hidden;padding:78px 0 40px;color:var(--white)}
.hero .container{position:relative;z-index:1}
.hero h1{color:var(--white)}
.hero .accent{color:var(--amber)}
.hero .sub{max-width:880px;font-size:18px;opacity:.98}
.hero-bg{
  position:absolute;inset:0;
  background:
    radial-gradient(1200px 480px at 85% -15%, rgba(0,150,136,.40), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(255,176,0,.20), transparent 60%),
    linear-gradient(165deg, var(--navy-deep) 0%, #08142a 55%, #050d1d 100%);
}
.hero-sub{
  margin-top: 8px;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.45;
  color: #e9f1f8;              /* or a slightly lighter/darker shade to taste */
}

/* Inline logos */
.inline-logo--hero{height:22px;width:auto;vertical-align:-6px;margin-right:2px;display:inline-block}
.inline-logo--sm{height:18px;width:auto;vertical-align:-4px;margin-right:2px;display:inline-block;opacity:.95}

/* === Success Triad === */
.success-triad-container{max-width:900px;margin:0 auto;padding:20px 20px 10px 20px}

/* Layout wrapper for the 3 lozenges (desktop/tablet) */
.triad-grid{
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* first lozenge spans both; others sit side-by-side */
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
  overflow: visible;
}

/* first lozenge sits on its own row, centered */
.triad-item:first-child{
  grid-column: 1 / -1;
  justify-self: center;
}

.triad-prompt{text-align:center;color:rgba(255,255,255,.7);font-size:14px;margin-bottom:30px;font-style:italic}
.triad-item{position:relative;cursor:pointer;transition:transform .3s ease, opacity .3s ease}
.triad-item:hover{transform:scale(1.05);z-index:3}
.triad-item.active{z-index:1001}
.triad-grid.dimmed .triad-item:not(.active){opacity:.4;transform:scale(.97)}

/* Chevron shape */
.triad-shape{
  position:relative;height:140px;display:flex;align-items:center;justify-content:center;
  clip-path:polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0% 50%);
  transition:all .3s ease;box-shadow:0 4px 20px rgba(0,0,0,.3);width:280px
}
.triad-teal{background:var(--teal)}
.triad-amber{background:var(--amber);width:280px}
.triad-light{background:var(--mid-blue);width:280px}
.triad-item:hover .triad-shape, .triad-item.active .triad-shape{
  filter:brightness(1.1); box-shadow:0 8px 30px rgba(0,150,136,.4)
}
.triad-title{font-size:18px;font-weight:600;text-align:center;padding:0 30px;line-height:1.3; max-width: 20ch;}
.triad-teal .triad-title,.triad-amber .triad-title{color:#fff}
.triad-light .triad-title{color:#fff}

/* Backdrop for click state */
.triad-backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,.55);opacity:0;pointer-events:none;transition:opacity .3s ease;z-index:900;cursor:pointer
}
.triad-backdrop.active{opacity:1;pointer-events:auto}

/* Overlay (popover / modal) */
.triad-overlay{
  position:absolute;background:rgba(255,255,255,.98);border:2px solid var(--teal);border-radius:12px;
  padding:18px 20px;box-shadow:0 8px 32px rgba(0,0,0,.2);opacity:0;pointer-events:none;
  transition:opacity .25s ease, transform .25s ease;transform:translateY(8px) scale(.98);
  width:420px;max-width:calc(100vw - 40px);max-height:320px;overflow:hidden;
  font-size:15px;line-height:1.55
}
.overlay-title{font-size:18px;font-weight:600;color:var(--navy);margin:0 0 10px}
.overlay-list{margin:0;padding-left:20px;color:#2b2b2b}
.overlay-list li{margin:8px 0}
.close-overlay{
  position:absolute;top:10px;right:10px;background:none;border:none;font-size:24px;color:var(--navy);
  cursor:pointer;opacity:.6;transition:opacity .2s;width:28px;height:28px;display:flex;align-items:center;justify-content:center
}
.close-overlay:hover{opacity:1}

/* Hover positions (desktop/tablet) */
.triad-item:first-child .triad-overlay{bottom:100%; left:50%; transform:translate(-50%, -8px) scale(.98); margin-bottom:14px}
.triad-item:nth-child(2) .triad-overlay{top:50%; left:100%; transform:translate(14px, -50%) scale(.98)}
.triad-item:nth-child(3) .triad-overlay{top:50%; right:100%; transform:translate(-14px, -50%) scale(.98)}

/* show hover popovers on true hover devices only */
@media (hover: hover) and (pointer: fine){
  .triad-item:hover .triad-overlay{
    opacity:1;
    transform:translate(0,0) scale(1);
    pointer-events:auto;
  }
}

/* Modal (active) – used on click for all screens */
.triad-item.active .triad-overlay{
  position:fixed; top:50%; left:50%; transform:translate(-50%,-50%) scale(1);
  width:min(560px, calc(100vw - 40px)); max-height:min(70vh, 560px);
  overflow:auto; pointer-events:auto; z-index:1000; opacity:1
}

/* Ensure first item promotes to centered modal on click */
.triad-item.active:first-child .triad-overlay{
  bottom:auto !important; left:50% !important; top:50% !important;
  transform:translate(-50%,-50%) scale(1) !important;
}

/* Suppress hover popups on non-active items while one is open */
.triad-grid.dimmed .triad-item:not(.active) .triad-overlay{
  opacity:0; pointer-events:none;
}

/* Stack triad vertically and resolve touch hover conflicts */
@media (max-width: 900px){
  .triad-grid{
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 14px;
  }
  .triad-shape{ width:100%; max-width:520px; }

  /* On small screens, ignore hover popovers unless item is active */
  .triad-item:not(.active):hover .triad-overlay{
    opacity:0;
    pointer-events:none;
  }

  /* Ensure the clicked/tapped (active) modal is always visible */
  .triad-item.active .triad-overlay{
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: min(560px, calc(100vw - 40px));
    max-height: min(70vh, 560px);
    overflow: auto; z-index: 1000; opacity: 1;
  }

  /* For completeness, default “hover positions” render above if ever triggered */
  .triad-item:first-child .triad-overlay,
  .triad-item:nth-child(2) .triad-overlay,
  .triad-item:nth-child(3) .triad-overlay{
    top:auto; bottom:100%; left:50%; right:auto;
    transform: translate(-50%, -8px) scale(.98);
    margin-bottom:14px;
  }
}
/* Normalize Success Triad lozenge widths */
.triad-shape { width: 320px; }  /* single source of truth */
.triad-shape.triad-amber,
.triad-shape.triad-light { width: 320px; }  /* kill the narrower overrides */

/* Optional: harmonize heights too if needed */
.triad-shape { height: 140px; }

/* Mobile: shrink all three equally so they fit */
@media (max-width: 560px){
  .triad-shape { width: 280px; height: 130px; }
}


/* Hero CTAs */
.hero-ctas{display:flex;gap:12px;margin-top:12px}
.btn{display:inline-block;padding:.85rem 1.1rem;border-radius:12px;font-weight:700;border:1px solid transparent}
.btn-small{padding:.55rem .9rem;border-radius:10px}
.btn-primary{background:var(--teal);color:var(--white)}
.btn-primary:hover{filter:brightness(0.96)}
.btn-secondary{border-color:var(--teal);color:var(--teal)}
.btn-secondary:hover{background:rgba(0,150,136,.06)}

/* CONTEXT */
.case{padding:64px 0;background:var(--light)}
.case .lead{max-width:900px}
.factors{margin-top:18px;display:grid;gap:20px;grid-template-columns:1fr 1fr}
.factor{
  background:#fff;border:1px solid var(--greyline);border-radius:16px;padding:18px;
  box-shadow:0 2px 8px rgba(0,0,0,.04)
}
.factor h3{display:flex;align-items:center;gap:8px}
.factor h3::before{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--teal)}
.factor:nth-child(2) h3::before{background:var(--amber)}
.factor ul{margin:.4rem 0 0;padding-left:18px}
.factor li{margin:6px 0}

/* WHY / ABOUT US */
.why{padding:64px 0;background:#fff}
.why-wrap{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:center}
.why-text p{font-size:16.5px}
.triad-graphic{display:flex;justify-content:center}
.triad-graphic img{max-width:520px;width:100%;height:auto;border-radius:8px}

/* CHALLENGES */
.challenges{padding:60px 0;background:#fff}
.challenges .lead{max-width:900px}
.all-leaders{
  margin:16px 0 18px;background:#fff;border:1px solid var(--greyline);
  border-radius:16px;box-shadow:0 2px 8px rgba(0,0,0,.04);cursor:pointer;transition:all .3s ease;overflow:hidden
}
.all-leaders:not(.collapsed){background:#fafbfc;opacity:.88}
.all-leaders:not(.collapsed):hover{opacity:1;transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.08);border-color:#d0d4d9}
.all-leaders.dim{background:#fafbfc;opacity:.88;border-color:#c9cdd4}
.all-leaders.collapsed{border-color:var(--teal);opacity:1;box-shadow:0 8px 24px rgba(0,150,136,.12)}
.all-header{padding:16px 18px;display:flex;align-items:center;gap:12px;min-height:70px}
.all-icon{
  width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;
  background:linear-gradient(135deg,#0A2342 0%,#051429 100%);color:#fff;transition:transform .3s ease
}
.all-leaders.collapsed .all-icon{transform:scale(1.1)}
.all-info{flex:1}
.all-header h3{margin:0 0 4px 0;color:var(--navy);font-size:17px;font-weight:700;line-height:1.3}
.all-header small{color:var(--teal);font-size:13px;font-weight:600;opacity:.85;display:block;margin:4px 0 0 0;line-height:1.4;transition:opacity .2s}
.all-leaders:hover .all-header small{opacity:1}
.all-leaders.collapsed .all-header small{display:none}
.all-chevron{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--charcoal);opacity:.5;transition:transform .3s ease,opacity .3s ease;flex-shrink:0}
.all-leaders:hover .all-chevron{opacity:.8}
.all-leaders.collapsed .all-chevron{transform:rotate(180deg);opacity:1;color:var(--teal)}
.all-columns{max-height:0;overflow:hidden;transition:max-height .4s ease,padding .2s ease;padding:0 18px}
.all-leaders.collapsed .all-columns{max-height:400px;padding:0 18px 16px 18px}
.all-columns-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.all-columns ul{margin:0;padding-left:20px;color:#2b2b2b;font-size:15px;line-height:1.5}
.all-columns li{margin:8px 0}

.role-grid{margin-top:20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.role-card{
  position:relative;background:#fff;border:1px solid var(--greyline);border-radius:16px;box-shadow:0 2px 8px rgba(0,0,0,.04);cursor:pointer;transition:all .3s ease;overflow:hidden
}
.role-card:not(.expanded){background:#fafbfc;opacity:.88}
.role-card:not(.expanded):hover{opacity:1;transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.08);border-color:#d0d4d9}
.role-card.expanded{border-color:var(--teal);opacity:1;box-shadow:0 8px 24px rgba(0,150,136,.12)}
.role-header{padding:16px 18px;display:flex;align-items:center;gap:12px;min-height:70px}
.role-icon{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;transition:transform .3s ease}
.role-card.expanded .role-icon{transform:scale(1.1)}
.role-card:nth-child(1) .role-icon{background:linear-gradient(135deg,#009688 0%,#00796b 100%);color:#fff}
.role-card:nth-child(2) .role-icon{background:linear-gradient(135deg,#FFB000 0%,#f59e0b 100%);color:#fff}
.role-card:nth-child(3) .role-icon{background:linear-gradient(135deg,#0A2342 0%,#051429 100%);color:#fff}
.role-card:nth-child(4) .role-icon{background:linear-gradient(135deg,#009688 0%,#00796b 100%);color:#fff}
.role-card:nth-child(5) .role-icon{background:linear-gradient(135deg,#FFB000 0%,#f59e0b 100%);color:#fff}
.role-card:nth-child(6) .role-icon{background:linear-gradient(135deg,#0A2342 0%,#051429 100%);color:#fff}
.role-card:nth-child(7) .role-icon{background:linear-gradient(135deg,#009688 0%,#00796b 100%);color:#fff}
.role-info{flex:1}
.role-title{font-size:17px;font-weight:700;color:var(--navy);margin:0 0 4px 0;line-height:1.3}
.role-preview{font-size:14px;color:#5a6c7d;margin:0;line-height:1.4;opacity:.9}
.role-card.expanded .role-preview{display:none}
.expand-hint{font-size:13px;color:var(--teal);margin:4px 0 0 0;font-weight:600;opacity:.85;transition:opacity .2s}
.role-card:hover .expand-hint{opacity:1}
.role-card.expanded .expand-hint{display:none}
.role-details{max-height:0;overflow:hidden;transition:max-height .4s ease,padding .2s ease;padding:0 18px}
.role-card.expanded .role-details{max-height:400px;padding:0 18px 16px 18px}
.role-details ul{margin:0;padding-left:20px;color:#2b2b2b;font-size:15px;line-height:1.5}
.role-details li{margin:8px 0}
.role-chevron{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#444;opacity:.5;transition:transform .3s ease,opacity .3s ease;flex-shrink:0}
.role-card:hover .role-chevron{opacity:.8}
.role-card.expanded .role-chevron{transform:rotate(180deg);opacity:1;color:var(--teal)}

/* SERVICES */
.services{padding:64px 0;background:var(--light)}
.services-intro{width:100%;margin:0 0 3rem 0;text-align:left;color:var(--navy);font-size:1.05rem;line-height:1.6}
.services-intro p{margin-bottom:1.2rem}

.service-grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.service-card{
  background:#fff;border:1px solid var(--greyline);border-radius:16px;box-shadow:0 2px 8px rgba(0,0,0,.04);
  cursor:pointer;transition:all .3s ease;overflow:hidden
}
.service-card:not(.expanded){background:#fafbfc;opacity:.95}
.service-card:not(.expanded):hover{opacity:1;transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.08);border-color:#d0d4d9}
.service-card.expanded{border-color:var(--teal);opacity:1;box-shadow:0 8px 24px rgba(0,150,136,.12)}

.service-header{padding:16px 18px}
.service-header h3{margin:0 0 6px 0}
.service-preview{margin:0;color:#5a6c7d}
.service-card.expanded .service-preview{display:none}
.service-details{max-height:0;overflow:hidden;transition:max-height .4s ease,padding .2s ease;padding:0 18px}
.service-card.expanded .service-details{max-height:520px;padding:0 18px 16px 18px}
.expand-hint{font-size:13px;color:var(--hint-green);margin:8px 0 0 0;font-weight:700}
.service-card.expanded .expand-hint{display:none}

/* INSIGHTS */
.insights{padding:60px 0;background:var(--light)}
.insights .section-intro{color:#334e68;margin-bottom:18px}
.cards.vertical{display:grid;grid-template-columns:1fr;gap:14px}
.insight{
  display:block;width:100%;text-align:left;background:#F2F2F2;color:var(--navy);
  border:1px solid var(--greyline);border-radius:12px;padding:16px 18px;cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease
}
.insight:hover,.insight:focus{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.06);border-color:#d7dbe2;background:#F7F7F7}
.insight h4{margin:0 0 4px;font-size:18px;font-weight:800}
.insight p{margin:0;color:#2c3e50}
.insight-details{display:none;background:#fff;border:1px solid var(--greyline);border-radius:12px;padding:18px;margin:14px 0 22px;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.insight-details.open{display:block}

/* Side-by-side layout for insight body (text left, image right) */
.insight-body{display:flex;align-items:flex-start;gap:18px;flex-wrap:nowrap}
.insight-copy{flex:1;min-width:0}
.insight-details img{
  display:block;
  max-width:260px;
  width:100%;
  height:auto;
  border-radius:8px;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}
@media (max-width:900px){
  .insight-body{flex-direction:column}
  .insight-details img{max-width:100%;box-shadow:none;margin-top:8px}
}

.cta-link{color:var(--amber);font-weight:700;text-decoration:none}
.cta-link:hover{text-decoration:underline}
.collapse-link{display:inline-block;margin-top:10px;color:var(--navy);font-weight:600;text-decoration:none;opacity:.8}
.collapse-link:hover{opacity:1}

/* CONTACT */
.contact{padding:60px 0;background:#fff}
.form{background:#fff;border:1px solid var(--greyline);border-radius:16px;padding:20px;max-width:760px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field{display:flex;flex-direction:column}
label{font-weight:600;color:var(--navy);margin-bottom:6px}
input,textarea{padding:12px;border:1px solid #d9dde3;border-radius:10px;font-size:16px}
.consent{display:flex;align-items:center;gap:10px;margin:12px 0}
.direct{margin-top:12px}

/* FOOTER */
.site-footer{background:var(--navy-deep);color:#e6eef5;padding:28px 0}
.footer{display:flex;align-items:center;justify-content:space-between;gap:18px}
.foot-brand img{height:28px;width:auto;display:block}
.legal p{margin:.2rem 0;color:#c9d6e2}
.legal a{color:#c9d6e2}

/* RESPONSIVE */
@media (max-width: 960px){
  .service-grid{grid-template-columns:1fr}
  .row{grid-template-columns:1fr}
  .factors{grid-template-columns:1fr}
  .why-wrap{grid-template-columns:1fr}
  .all-columns-grid{grid-template-columns:1fr}
  .role-grid{grid-template-columns:1fr}
}
@media (max-width: 800px){
  .main-nav{display:none}
  .main-nav.open{
    display:flex;flex-direction:column;gap:12px;position:absolute;top:64px;right:20px;
    background:#fff;padding:16px;border:1px solid var(--greyline);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.08)
  }
  .nav-toggle{display:block}
}
@media (max-width: 560px){
  .hero-ctas{flex-direction:column;align-items:flex-start}
}

/* Scroll offset so sticky header doesn't hide content */
.triad-item,
#all-leaders,
.role-card,
.service-card,
.insight-details { scroll-margin-top: 120px; }

/* FORMSPREE NICETY */
.form-success {
  border: 1px solid #e8ebef;
  background: #f9fbfc;
  border-radius: 12px;
  padding: 18px;
  color: #0A2342;
}
.form-success h3 { margin-top: 0; }

/* === Sub-hero logo & text alignment (baseline) === */
.sub-hero .sub-hero-text{
  display: inline-flex;
  align-items: baseline;   /* align logo with first line of text */
  gap: 8px;
  line-height: 1.25;
}
.sub-hero .inline-logo--hero{
  height: 20px;
  width: auto;
  vertical-align: baseline;
  align-self: baseline;    /* ensure baseline alignment in flex */
  margin-top: 0;           /* cancel any offsets */
}


/* Sub-hero logo & text baseline alignment (surgical) */
.sub-hero .sub-hero-text{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.25;
}
.sub-hero .inline-logo--hero{
  height: 20px;
  width: auto;
  vertical-align: baseline;
  align-self: baseline;
  margin-top: 0;
}


/* === Context image: respect intro height, preserve ratio (surgical) === */
@media (min-width: 960px){
  .context-right{ display:flex; align-items:flex-start; justify-content:flex-start; }
  .context-graphic{
    width: auto !important;     /* don't stretch */
    height: auto !important;    /* keep aspect ratio */
    max-width: 100% !important; /* never overflow column */
    object-fit: contain;
  }
}
@media (max-width: 959.98px){
  .context-graphic{ max-width: 300px; height:auto; } /* smaller on mobile */
}


/* === Sub-hero: logo baseline-align with text (surgical) === */
.sub-hero .sub-hero-text{
  display:inline-flex;
  align-items:baseline;   /* align to first text baseline */
  gap:10px;
  line-height:1.25;
}
.sub-hero .inline-logo--hero{
  height:20px;
  width:auto;
  vertical-align:baseline;
  align-self:baseline;
  position:relative;
  top:0.10em;  /* tiny tweak; adjust 0.05–0.15em if needed */
}

/* === Slim hero: restore dark gradient + perfect logo alignment === */
.sub-hero{ position:relative; padding:18px 0; color:#fff; }
.sub-hero::before{
  content:""; position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(1200px 480px at 85% -15%, rgba(0,150,136,.40), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(255,176,0,.20), transparent 60%),
    linear-gradient(165deg, var(--navy-deep) 0%, #08142a 55%, #050d1d 100%);
}
.sub-hero .container{ position:relative; z-index:1; }
.sub-hero .sub-hero-text{
  display:inline-flex;               /* keep logo + text on same baseline */
  align-items:baseline;
  gap:10px;
  line-height:1.25;
}
.sub-hero .inline-logo--hero{
  height:20px; width:auto;
  vertical-align:baseline; align-self:baseline;
  transform: translateY(0.06em);     /* tiny visual nudge; tweak 0.04–0.10em if needed */
}

/* === Context section: force image in top-right; factors full-width below === */
.context-grid{ display:grid; gap:28px; }
@media (min-width: 960px){
  .context-grid{
    /* text column + a fixed image column keeps layout stable */
    grid-template-columns: minmax(0,1fr) 380px;
    grid-template-areas:
      "intro image"
      "factors factors";
    align-items:start;
  }
  .context-intro{  grid-area:intro;  }
  .context-right{  grid-area:image; display:flex; align-items:flex-start; justify-content:flex-start; }
  .context-left{   grid-area:factors; }
  .factors{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
}

/* Image sizing: preserve ratio and cap to intro height (height lock applied via JS) */
@media (min-width: 960px){
  .context-graphic{
    width:auto !important; height:auto !important;
    max-width:100% !important; object-fit:contain;
  }
}
/* Mobile/tablet: smaller image and centered */
@media (max-width: 959.98px){
  .context-right{ display:flex; justify-content:center; }
  .context-graphic{ max-width:300px; height:auto; }
}

/* Slim hero — micro-align the logo with the text baseline */
.sub-hero .sub-hero-text{
  display: inline-flex;
  align-items: baseline;
  gap: 3px;                 /* tweak spacing between logo and text */
  line-height: 1.25;
}

.sub-hero .inline-logo--hero{
  height: 19.5px;            /* fine-tune logo size */
  width: auto;
  vertical-align: baseline;
  align-self: baseline;
  transform: translateY(0.15em);  /* nudge DOWN slightly; adjust ±0.01–0.02em */
  /* optional: use margin-right instead of gap if you prefer */
  /* margin-right: 10px; */
}

/* If it sits a touch different on wide screens, add this tiny breakpoint tweak */
@media (min-width: 1200px){
  .sub-hero .inline-logo--hero{ transform: translateY(0.08em); }
}

/* Triad — center ALL lozenges when stacked (narrow screens) */
@media (max-width: 900px){
  .triad-grid{
    grid-template-columns: 1fr;   /* stacked */
    justify-items: center;        /* center every item */
  }
  .triad-item{ justify-self: center; }  /* #2 and #3 match #1 */
  .triad-item:first-child{ grid-column: auto; } /* neutralize desktop span */
}

/* Keep the 'first lozenge spans full width' rule ONLY for wider screens */
@media (min-width: 901px){
  .triad-item:first-child{
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* Triad — force identical width for ALL three on very narrow screens */
@media (max-width: 480px){
  .triad-shape{ width: 240px !important; }   /* pick 220–260px to taste */
  .triad-shape.triad-amber,
  .triad-shape.triad-light{ width: 240px !important; }  /* neutralize older per-color widths */
}

/* If your smallest breakpoint is different, mirror it here */
@media (max-width: 560px){
  .triad-shape{ width: 280px; }
  .triad-shape.triad-amber,
  .triad-shape.triad-light{ width: 280px; }
}

/* Slim hero — center copy and make height adjustable */
.sub-hero {
  position: relative;
}

.sub-hero .container{
  display: flex;
  align-items: center;         /* vertical centering */
  justify-content: center;     /* horizontal centering */
  min-height: var(--sub-hero-h, 64px);  /* adjustable height */
  text-align: center;
  padding: 10px 20px;          /* small breathing room */
}

.sub-hero .sub-hero-text{
  margin: 0;
  text-indent: 0;              /* in case an old indent rule is lingering */
  font-weight: 600;   /* try 600–700 */
}

/* Tighten top whitespace ONLY for the Human Factor Challenges section */
#challenges{
  padding-top: 16px;             /* was larger via global section spacing */
}

/* Remove default top margins on the first heading/lead inside */
#challenges .container > h2:first-child{ margin-top: 0; }
#challenges .container > p.lead:first-of-type{ margin-top: 8px; }

/* Keep good anchor behavior without adding visible gap */
#challenges{ scroll-margin-top: 80px; }  /* match your fixed header height */

/* About — shrink blend.png image */
#about img[src*="blend"]{
  max-width: 350px;   /* tweak: 360–480px */
  width: 100%;
  height: auto;       /* preserve aspect ratio */
  display: block;
  margin-inline: auto;/* center if it’s in its own column */
}

/* Phone: slightly smaller cap */
@media (max-width: 600px){
  #about img[src*="blend"]{ max-width: 300px; }
}

/* Space between CTA block and site footer */
.footer-cta-bar { margin-bottom: 16px; }

@media (min-width: 960px){
  .footer-cta-bar { margin-bottom: 24px; } /* a touch more on desktop */
}
