/* ==========================================================================
   Ion Exchange — Market Segments (standalone)
   Built to the Ion Exchange Design System v1.0 (source of truth: About Us page)
   Tokens + shared components inlined verbatim from the production stylesheet.
   ========================================================================== */

/* ---------- Design tokens ---------- */
#msl {
  --brand-primary:   #007CC3;
  --brand-secondary: #0284C7;
  --brand-accent:    #06B6D4;
  --brand-glow:      #2EA8FF;
  --state-hover-primary: #005A91;

  --surface-canvas:        #FAFAFA;
  --surface-card:          #FFFFFF;
  --surface-neutral-light: #F8FAFC;
  --surface-neutral-dark:  #0F172A;
  --surface-utility-dark:  #0A2740;
  --surface-industrial:    #03152F;
  --surface-dark:          #03152F;   /* alias, used by the hero banner */
  --ir-navy:               #0B1F3A;

  --border-light:  #E2E8F0;
  --border-medium: #CBD5E1;
  --text-primary:   #0F172A;
  --text-secondary: #64748B;
  --text-tertiary:  #94A3B8;
  --text-inverse:   #FFFFFF;

  --status-success: #14B8A6;
  --success-solid:  #16A34A;
  --success-text:   #15803D;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Plus Jakarta Sans', sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-mega: 32px;
  --radius-pill: 9999px;

  --elev-resting:  0px 1px 4px rgba(0,0,0,0.02);
  --elev-hover:    0px 3px 8px rgba(0,0,0,0.04), 0px 2px 12px rgba(0,0,0,0.03);
  --elev-floating: 0px 8px 20px rgba(15,23,42,0.15);
  --elev-megamenu: 0px 25px 60px rgba(0,124,195,0.18);

  --card-shadow-resting: 0px 1px 2px rgba(15,23,42,0.04), 0px 6px 16px rgba(15,23,42,0.05);
  --card-shadow-hover:   0px 4px 8px rgba(15,23,42,0.05), 0px 18px 36px rgba(15,23,42,0.10);
  --card-border:         var(--border-light);
  --card-border-hover:   var(--border-medium);
  --card-lift:           -4px;
  --card-transition:     300ms var(--ease-standard);

  --max-width: 1280px;
  --gutter:    clamp(16px, 4vw, 32px);

  --duration-micro:        150ms;
  --duration-standard:     250ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-organic:  cubic-bezier(0.16, 1, 0.3, 1);

  --type-hero:     clamp(32px, 4.8vw, 56px);
  --type-h2:       clamp(30px, 3.6vw, 44px);
  --type-h3:       clamp(28px, 3.2vw, 40px);
  --type-feature:  clamp(26px, 3vw, 34px);
  --type-card:     21px;
  --type-lead:     clamp(15px, 1.4vw, 17px);
  --type-body:     14px;
  --type-eyebrow:  11px;
  --type-label:    10px;
  --type-button:   12px;
  --track-display: -0.025em;
  --track-eyebrow: 0.22em;
  --track-label:   0.2em;
  --track-button:  0.05em;

  --space-2xs: 4px;   --space-xs: 8px;   --space-sm: 12px;
  --space-md:  16px;  --space-lg: 24px;  --space-xl: 32px;
  --space-2xl: 48px;  --space-3xl: 64px; --space-4xl: 96px;
  --section-pad:       clamp(40px, 4.5vw, 64px);
  --section-pad-tight: clamp(36px, 5vw, 72px);

  --grad-headline:      linear-gradient(90deg, #0284C7 0%, #007CC3 55%, #06B6D4 100%);
  --grad-headline-dark: linear-gradient(90deg, #2EA8FF 0%, #38BDF8 50%, #06B6D4 100%);
  --grad-progress:      linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
  --grad-active-card:   linear-gradient(135deg, #007CC3 0%, #0284C7 100%);

  --focus-ring: 0 0 0 3px rgba(14,165,233,0.3);
}

/* ---------- Reset & base ---------- */
#msl, #msl * { box-sizing: border-box; }
#msl html { scroll-behavior: smooth; }
#msl {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#msl a { color: inherit; text-decoration: none; }
#msl p { text-wrap: pretty; margin: 0; }
#msl h1, #msl h2, #msl h3, #msl h4, #msl h5 { margin: 0; }
#msl ol, #msl ul { margin: 0; padding: 0; list-style: none; }
#msl button { font: inherit; }
#msl ::selection { background: var(--brand-glow); color: var(--surface-industrial); }
#msl :focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

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

/* ---------- Section scaffold ---------- */
#msl .section { padding: var(--section-pad) 0; }
#msl .section--band { background: var(--surface-card); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
#msl .section--dark { background: var(--surface-industrial); position: relative; overflow: hidden; }

#msl .eyebrow-row { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
#msl .eyebrow {
  font-family: var(--font-display); font-size: var(--type-eyebrow); font-weight: 700;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: rgba(2,132,199,0.9);
}
#msl .eyebrow--on-dark { color: rgba(125,195,255,0.78); }

#msl .h2 {
  font-family: var(--font-display);
  font-size: var(--type-h2);
  font-weight: var(--weight-medium); line-height: 1.14; letter-spacing: var(--track-display);
  margin: 0 0 24px; max-width: 780px; text-wrap: balance;
}
#msl .h2--on-dark { color: var(--text-inverse); }
#msl .h2-accent {
  display: block; font-weight: 700;
  background: var(--grad-headline);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#msl .h2-accent-inline {
  font-weight: 700;
  background: var(--grad-headline);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#msl .h2-accent--on-dark, #msl .h2-accent-inline--on-dark { background-image: var(--grad-headline-dark); }
@supports not (background-clip: text) {
  #msl .h2-accent, #msl .h2-accent-inline { background: none; color: var(--brand-primary); }
  #msl .h2-accent--on-dark, #msl .h2-accent-inline--on-dark { color: var(--brand-glow); }
}

#msl .lead {
  font-size: var(--type-lead); font-weight: 400; line-height: 1.6;
  color: var(--text-secondary); max-width: 560px;
}
#msl .lead--on-dark { color: rgba(255,255,255,0.72); }
#msl .section-intro { margin-bottom: 48px; }
#msl .section-intro--wide .h2 { max-width: 860px; }
@media (min-width: 981px) { #msl .section-intro--wide .lead { max-width: 720px; } }

/* ---------- Buttons ---------- */
#msl .btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: var(--type-button); font-weight: 600;
  letter-spacing: var(--track-button); text-transform: uppercase;
  cursor: pointer; transition: all 150ms ease; white-space: nowrap;
  border: none; background: none; color: inherit;
}
#msl .btn:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-pill); }
#msl .btn--primary { padding: 12px 24px; border-radius: var(--radius-pill); background: var(--surface-neutral-dark); color: var(--text-inverse); border: 1px solid transparent; }
#msl .btn--primary:hover { background: var(--state-hover-primary); transform: translateY(-2px); box-shadow: var(--elev-hover); }
#msl .btn--glass { padding: 12px 24px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.24); color: var(--text-inverse); }
#msl .btn--glass:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }
#msl .btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }

/* ---------- Reveal motion ---------- */
#msl .reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-organic), transform 700ms var(--ease-organic); transition-delay: calc(var(--i, 0) * 90ms); }
#msl .reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Blueprint whisper ---------- */
#msl .blueprint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,124,195,0.04) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(0,124,195,0.04) 0 1px, transparent 1px 32px);
}
#msl .blueprint--dark::before {
  background:
    repeating-linear-gradient(0deg, rgba(127,183,232,0.04) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(127,183,232,0.04) 0 1px, transparent 1px 32px);
}

/* ---------- Utility bar + header ---------- */
#msl .utility { background: var(--surface-utility-dark); padding: 8px 0; }
#msl .utility__inner { display: flex; justify-content: space-between; gap: 16px; }
#msl .utility span, #msl .utility a {
  font-family: var(--font-display); font-size: 10px; font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase; color: rgba(255,255,255,0.8);
}
#msl .utility a { transition: color 150ms ease; }
#msl .utility a:hover { color: var(--brand-glow); }
#msl .utility__links { display: flex; gap: 20px; }

#msl .header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,23,42,0.1);
  padding: 16px 0;
  transition: padding 300ms var(--ease-standard), box-shadow 300ms var(--ease-standard), background 300ms var(--ease-standard);
}
#msl .header.is-scrolled { background: #FFFFFF; box-shadow: var(--elev-hover); padding: 10px 0; }
#msl .header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
#msl .brand { display: flex; align-items: baseline; gap: 10px; }
#msl .brand:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
#msl .brand__mark { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
#msl .brand__since { font-family: var(--font-display); font-size: 9px; font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-secondary); }

#msl .nav { display: flex; align-items: center; gap: 28px; }
#msl .nav a { font-size: 13.5px; font-weight: 500; color: var(--text-primary); transition: color 150ms ease; padding: 4px 0; }
#msl .nav a:hover { color: var(--brand-secondary); }
#msl .nav a.is-active { font-weight: 600; color: var(--brand-primary); border-bottom: 2px solid var(--brand-primary); }
#msl .header__cta { flex-shrink: 0; }

#msl .hamburger {
  display: none; width: 40px; height: 40px; border-radius: var(--radius-md);
  border: 1px solid var(--border-light); background: #FFFFFF; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
#msl .hamburger:focus-visible { outline: none; box-shadow: var(--focus-ring); }
#msl .hamburger span { display: block; width: 16px; height: 1.5px; background: var(--text-primary); border-radius: 2px; transition: transform 300ms var(--ease-standard), opacity 300ms; }
#msl .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
#msl .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#msl .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 980px) {
  #msl .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #FFFFFF; border-bottom: 1px solid var(--border-light);
    overflow: hidden; max-height: 0; transition: max-height 300ms var(--ease-standard);
  }
  #msl .nav.is-open { max-height: 460px; box-shadow: var(--elev-hover); }
  #msl .nav a { padding: 10px var(--gutter); border-bottom: 1px solid var(--surface-neutral-light); }
  #msl .nav a.is-active { border-bottom: 1px solid var(--surface-neutral-light); }
  #msl .header__cta { display: none; }
  #msl .hamburger { display: inline-flex; }
  #msl .utility__links { display: none; }
}

/* ---------- Hero ---------- */
/* ---------- Hero banner — identical to the Sustainability page ---------- */
#msl .hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* The photograph is 1920 x 861, a 2.23 ratio. Holding the band near that
     ratio is what keeps it from being cropped: at 2.6 with a 600px ceiling the
     band kept widening while its height stopped, so by 1920px of viewport it
     was discarding 30% of the picture. At 2.35 with a 720px ceiling the crop
     stays at 5% all the way to 1690px. Beyond that the source runs out of
     pixels; a wider master is the only real fix for ultra-wide displays. */
  aspect-ratio: 2.35 / 1;
  min-height: 520px;
  max-height: 720px;
  background: var(--surface-dark);
}
#msl .hero-banner__media {
  position: absolute; inset: 0;
  /* blueprint whisper backdrop — visible if the photo fails to load */
  background-image:
    linear-gradient(rgba(46,168,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,168,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
#msl .hero-banner__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  display: block;
}
/* frosted-glass panel — blurs the image on the left, fading to crisp before
   the focal point. Masked so the blur itself tapers off toward the middle. */
#msl .hero-banner__frost {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
          backdrop-filter: blur(10px) saturate(1.05);
  -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 26%, rgba(0,0,0,0.55) 44%, rgba(0,0,0,0) 62%);
          mask-image: linear-gradient(100deg, #000 0%, #000 26%, rgba(0,0,0,0.55) 44%, rgba(0,0,0,0) 62%);
}
/* deep-navy tint over the frost — opaque behind the copy, fading to reveal
   the crisp image on the right. */
#msl .hero-banner__overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(9,24,39,0.94) 0%, rgba(11,30,49,0.86) 24%, rgba(11,30,49,0.55) 44%, rgba(11,30,49,0.20) 60%, rgba(11,30,49,0) 76%),
    linear-gradient(0deg, rgba(6,18,32,0.30) 0%, rgba(6,18,32,0) 32%);
}
#msl .hero-banner__inner {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; align-items: center;
  padding-top: 32px; padding-bottom: 32px;
}
#msl .hero-banner__copy { max-width: 620px; }
#msl .hero-banner__lead { margin-bottom: 0; }
#msl .hero-banner .lead { max-width: 620px; }
#msl .hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 56px);
  font-weight: var(--weight-medium); line-height: 1.1; letter-spacing: -0.025em;
  color: var(--text-inverse);
  margin: 0 0 24px; text-wrap: balance;
}
#msl .hero-banner .eyebrow-row { margin-bottom: 20px; }

/* below 860px the banner reads portrait: copy anchors to the bottom and both
   the frost mask and tint rotate to a top→bottom fade. */
@media (max-width: 860px) {
  #msl .hero-banner { aspect-ratio: 4 / 5; min-height: 560px; max-height: 760px; }
  #msl .hero-banner__frost {
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 24%, rgba(0,0,0,0.5) 46%, #000 72%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,0) 24%, rgba(0,0,0,0.5) 46%, #000 72%);
  }
  #msl .hero-banner__overlay {
    background:
      linear-gradient(180deg, rgba(9,24,39,0.55) 0%, rgba(9,24,39,0.35) 30%, rgba(11,30,49,0.78) 66%, rgba(11,30,49,0.96) 100%);
  }
  #msl .hero-banner__inner { align-items: flex-end; padding-bottom: 48px; }
  #msl .hero-banner__copy { max-width: 100%; }
}

/* ---------- Hero stats strip (below the banner) ---------- */
#msl .hero-stats { padding-top: clamp(40px, 4.5vw, 64px); padding-bottom: clamp(40px, 4.5vw, 64px); }
#msl .hero-stats .metric-strip { margin-top: 0; }

#msl .metric-strip {
  margin-top: var(--space-3xl);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--border-light);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--elev-resting);
}
#msl .metric { background: var(--surface-card); padding: 32px 24px; }
#msl .metric__value {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
#msl .metric__value .suffix { color: var(--brand-primary); }
#msl .metric__label {
  margin-top: 12px;
  font-family: var(--font-display); font-size: var(--type-label); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-secondary);
}
@media (max-width: 720px) { #msl .metric { padding: 24px 20px; } }

#msl .metric-strip {
  margin-top: var(--space-3xl);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--border-light);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--elev-resting);
}
#msl .metric { background: var(--surface-card); padding: 32px 24px; }
#msl .metric__value {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
#msl .metric__value .suffix { color: var(--brand-primary); }
#msl .metric__label {
  margin-top: 12px;
  font-family: var(--font-display); font-size: var(--type-label); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-secondary);
}
@media (max-width: 720px) { #msl .metric { padding: 24px 20px; } }

/* ---------- 01 · Industry Explorer ----------
   One large visual, one active industry, and a compact eight-item index, replacing
   the previous grid of equal cards. The stage is built to take photography:
   drop <img class="indx__photo"> into a slide and it sits under the caption. */
#msl .indx { position: relative; }
#msl .indx__layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
  gap: clamp(32px, 4vw, 72px); align-items: start;
}
#msl .indx__col { min-width: 0; }
#msl .indx__title { margin-bottom: 18px; }
#msl .indx__lead { max-width: 560px; margin-bottom: clamp(28px, 3vw, 44px); }
#msl .indx__label {
  display: block; margin-bottom: 14px;
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-primary);
}

/* ---- the index: two columns of lightweight rows ----
   One grid holds all ten rows, flowing column-first into five explicit
   rows (Data Centres and Photovoltaic joined the eight on 31 Oct 2026).
   Because both columns share the same row tracks, a name that wraps to
   two lines lifts its neighbour to match, so the rules across the two columns
   always line up with each other. */
#msl .indxnav {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(46px, auto));
  grid-auto-flow: column;
  column-gap: clamp(20px, 2.4vw, 40px);
}
#msl .indxnav > li { display: grid; }          /* let the button fill its row */
#msl .indxnav__btn {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px;
  align-items: center; gap: 10px; width: 100%; height: 100%;
  padding: 11px 0 11px 10px; margin: 0;
  background: none; border: none; border-bottom: 1px solid var(--border-light);
  cursor: pointer; text-align: left; position: relative;
  transition: background var(--duration-standard) var(--ease-standard);
}
/* the active indicator: a filled blue chip behind the number */
#msl .indxnav__btn::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  background: var(--brand-primary); border-radius: 2px;
  opacity: 0; transform: scaleY(0.4); transform-origin: center;
  transition: opacity var(--duration-standard) var(--ease-standard),
              transform var(--duration-standard) var(--ease-organic);
}
#msl .indxnav__btn:hover { background: rgba(0,124,195,0.04); }
#msl .indxnav__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
#msl .indxnav__btn.is-active::before { opacity: 1; transform: scaleY(1); }
#msl .indxnav__btn.is-active { border-bottom-color: var(--brand-primary); }

#msl .indxnav__no {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  transition: color var(--duration-standard) var(--ease-standard);
}
#msl .indxnav__name {
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-primary);
  transition: color var(--duration-standard) var(--ease-standard);
}
#msl .indxnav__arrow {
  line-height: 0; color: var(--text-secondary); opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--duration-standard) var(--ease-standard),
              transform var(--duration-standard) var(--ease-organic),
              color var(--duration-standard) var(--ease-standard);
}
#msl .indxnav__btn:hover .indxnav__arrow { opacity: 1; transform: translateX(0); }
#msl .indxnav__btn.is-active .indxnav__no,
#msl .indxnav__btn.is-active .indxnav__name { color: var(--brand-primary); }
#msl .indxnav__btn.is-active .indxnav__name { font-weight: 600; }
#msl .indxnav__btn.is-active .indxnav__arrow { opacity: 1; transform: translateX(0); color: var(--brand-primary); }

/* ---- the closing note under the index ---- */
#msl .indx__foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: clamp(24px, 2.6vw, 34px); padding-top: clamp(20px, 2.2vw, 28px);
  border-top: 1px solid var(--border-light);
}
#msl .indx__foot-icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,124,195,0.06); border: 1px solid rgba(0,124,195,0.16);
  color: var(--brand-primary);
}
#msl .indx__foot-text { flex: 1 1 200px; font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
#msl .indx__foot-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand-primary);
  padding-bottom: 2px; border-bottom: 1px solid rgba(0,124,195,0.3);
  transition: color var(--duration-standard) var(--ease-standard),
              border-color var(--duration-standard) var(--ease-standard);
}
#msl .indx__foot-link:hover { color: var(--state-hover-primary); border-color: var(--state-hover-primary); }
#msl .indx__foot-link:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
#msl .indx__foot-link .arrow { transition: transform var(--duration-standard) var(--ease-standard); }
#msl .indx__foot-link:hover .arrow { transform: translateX(4px); }

/* ---- the stage ---- */
#msl .indx__stage {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 5; max-height: 900px;
  background:
    radial-gradient(120% 90% at 76% 14%, #14406E 0%, #0A2745 46%, #061A31 100%);
  box-shadow: 0 2px 8px rgba(3,21,47,0.06), 0 40px 80px -48px rgba(3,21,47,0.6);
}
#msl .indx__grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    repeating-linear-gradient(0deg, rgba(127,183,232,0.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(127,183,232,0.05) 0 1px, transparent 1px 46px);
}
/* every slide is stacked; only the active one is painted */
#msl .indx__slide {
  position: absolute; inset: 0; margin: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(26px, 3vw, 48px);
  opacity: 0; visibility: hidden;
  transition: opacity 460ms var(--ease-standard), visibility 0s linear 460ms;
}
#msl .indx__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }
/* PHOTO SLOT. The panel takes one photograph per industry, sitting under the
   caption. Drop <img class="indx__photo" src="..." alt="..."> in as the first
   child of the slide; nothing else in the section needs to change. */
#msl .indx__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
#msl .indx__caption { position: relative; z-index: 2; max-width: 460px; }
#msl .indx__slide.is-active .indx__caption { animation: indx-cap 520ms var(--ease-organic) both 60ms; }
@keyframes indx-cap {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
#msl .indx__no {
  display: block;
  font-family: var(--font-display); font-size: clamp(20px, 1.9vw, 26px); font-weight: 700;
  letter-spacing: 0.04em; color: var(--brand-glow); font-variant-numeric: tabular-nums;
}
#msl .indx__name {
  font-family: var(--font-display); font-size: clamp(26px, 3.1vw, 44px); font-weight: 700;
  line-height: 1.06; letter-spacing: -0.03em; text-transform: uppercase;
  color: var(--text-inverse); margin: 10px 0 0;
}
#msl .indx__rule {
  display: block; width: 64px; height: 2px; border-radius: 1px;
  background: var(--brand-glow); margin: clamp(16px, 1.6vw, 22px) 0;
}
#msl .indx__body {
  font-size: 14px; font-weight: 300; line-height: 1.68; color: rgba(255,255,255,0.72);
}
#msl .indx__cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: clamp(20px, 2.2vw, 30px);
  font-size: 13.5px; font-weight: 600; color: var(--text-inverse);
  transition: color var(--duration-standard) var(--ease-standard);
}
#msl .indx__cta-dot {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-primary); color: #FFFFFF;
  transition: transform var(--duration-standard) var(--ease-organic),
              background var(--duration-standard) var(--ease-standard);
}
#msl .indx__cta:hover { color: var(--brand-glow); }
#msl .indx__cta:hover .indx__cta-dot { transform: translateX(3px); background: var(--state-hover-primary); }
#msl .indx__cta:focus-visible { outline: none; }
#msl .indx__cta:focus-visible .indx__cta-dot { box-shadow: var(--focus-ring); }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  /* tablet: the visual sits above the index */
  #msl .indx__layout { grid-template-columns: 1fr; gap: 36px; }
  #msl .indx__stage { order: -1; aspect-ratio: 16 / 10; max-height: 520px; }
  #msl .indx__lead { max-width: none; }
}
@media (max-width: 620px) {
  #msl .indx__stage { aspect-ratio: 3 / 4; max-height: none; }
  #msl .indxnav { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  #msl .indx__foot { gap: 12px; }
  #msl .indx__foot-link { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #msl .indx__slide { transition: none; }
  #msl .indx__slide.is-active .indx__caption { animation: none; }
  #msl .indxnav__btn, #msl .indxnav__btn::before, #msl .indxnav__no, #msl .indxnav__name, #msl .indxnav__arrow, #msl .indx__cta-dot { transition: none; }
}

/* ==========================================================================
   02 · INSTITUTIONS — editorial image grid
   Deliberately the quiet section. Type, photography and whitespace do the
   work: an intro, three restrained capability notes, six image tiles and one
   closing line. No tabs, no carousel, no state.
   ========================================================================== */
#msl .inst { position: relative; }
#msl .inst__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
  margin-bottom: clamp(40px, 4.4vw, 64px);
}
#msl .inst__intro { max-width: 520px; }
#msl .inst__title { margin-bottom: 18px; }
#msl .inst__lead { margin: 0; }

/* three capability notes, separated by hairlines rather than cards */
#msl .inst__caps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
  padding-top: clamp(8px, 1.4vw, 22px);
}
#msl .instcap + .instcap {
  border-left: 1px solid var(--border-light);
  padding-left: clamp(18px, 2.2vw, 30px);
}
#msl .instcap__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(0,124,195,0.07); color: var(--brand-primary);
  margin-bottom: 16px;
}
#msl .instcap__name {
  display: block; font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em; color: var(--text-primary); margin-bottom: 7px;
}
#msl .instcap__body {
  display: block; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary);
}

/* ---- the six tiles ---- */
#msl .insttiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 0.9vw, 12px);
}
#msl .insttile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--surface-industrial);
  aspect-ratio: 2 / 1; min-height: 0;
  text-decoration: none; color: var(--text-inverse);
}
/* The photograph fills the tile and scales a touch on hover. */
#msl .insttile__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transform: scale(1);
  transition: transform 620ms var(--ease-organic);
}
#msl .insttile:hover .insttile__photo { transform: scale(1.025); }

/* one gradient, only as deep as the text needs */
#msl .insttile__scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 58%;
  background: linear-gradient(to top,
              rgba(3,21,47,0.86) 0%, rgba(3,21,47,0.42) 44%, rgba(3,21,47,0) 100%);
  pointer-events: none;
}
#msl .insttile__cap {
  position: absolute; left: clamp(16px, 1.7vw, 24px); right: clamp(46px, 4vw, 58px);
  bottom: clamp(14px, 1.5vw, 20px);
}
#msl .insttile__name {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(19px, 1.7vw, 23px); line-height: 1.16;
  letter-spacing: var(--track-display); color: #FFFFFF;
  transition: transform var(--duration-standard) var(--ease-organic);
}
#msl .insttile:hover .insttile__name { transform: translateY(-1px); }
#msl .insttile__arrow {
  position: absolute; right: clamp(16px, 1.7vw, 24px); bottom: clamp(16px, 1.6vw, 22px);
  line-height: 0; color: rgba(255,255,255,0.55);
  transform: translateX(-3px); opacity: 0;
  transition: opacity var(--duration-standard) var(--ease-standard),
              transform var(--duration-standard) var(--ease-organic),
              color var(--duration-standard) var(--ease-standard);
}
#msl .insttile:hover .insttile__arrow,
#msl .insttile:focus-visible .insttile__arrow { opacity: 1; transform: translateX(0); color: #FFFFFF; }
#msl .insttile:focus-visible { outline: none; box-shadow: var(--focus-ring); }


/* ---- the closing line ---- */
#msl .inst__close {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: clamp(32px, 3.6vw, 52px) 0 0;
}
#msl .inst__close-rule { flex: 0 1 132px; height: 1px; background: var(--border-light); }
#msl .inst__close-icon { line-height: 0; color: var(--brand-primary); }
#msl .inst__close-text { font-size: 14px; color: var(--text-secondary); margin: 0; }

@media (max-width: 1080px) {
  #msl .inst__head { grid-template-columns: 1fr; gap: 34px; }
  #msl .inst__intro { max-width: none; }
  #msl .insttiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  #msl .inst__caps { grid-template-columns: 1fr; gap: 20px; }
  #msl .instcap + .instcap {
    border-left: none; padding-left: 0;
    border-top: 1px solid var(--border-light); padding-top: 20px;
  }
  #msl .instcap__icon { margin-bottom: 12px; }
  #msl .insttiles { grid-template-columns: 1fr; gap: 10px; }
  #msl .insttile { aspect-ratio: 16 / 10; }
  #msl .inst__close-rule { display: none; }
  #msl .inst__close { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #msl .insttile__photo, #msl .insttile__name, #msl .insttile__arrow { transition: none; }
  #msl .insttile:hover .insttile__photo { transform: none; }
}

/* ==========================================================================
   03 · COMMUNITIES & MUNICIPALITIES — one panorama, three editorial columns
   The section carries scale: a single wide infrastructure image, then the
   three categories set as plain columns divided by hairlines. No cards.
   ========================================================================== */
#msl .civ, #msl .res { position: relative; }
#msl .res__copy { min-width: 0; }
#msl .civ__pano {
  position: relative; margin: clamp(34px, 4vw, 54px) 0 0;
  overflow: hidden; border-radius: var(--radius-sm);
  background: var(--surface-industrial);
  aspect-ratio: 16 / 6; min-height: 0;
}
#msl .civ__photo { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; }
#msl .civ__pano::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,21,47,0.18) 0%, rgba(3,21,47,0) 42%, rgba(3,21,47,0.34) 100%);
}

#msl .civcols {
  --civ-gap: clamp(28px, 3.4vw, 56px);
  list-style: none; margin: clamp(30px, 3.4vw, 46px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--civ-gap);
}
/* the rule sits in the middle of the gutter, so all three measures stay equal */
#msl .civcol { position: relative; }
#msl .civcol + .civcol::before {
  content: ""; position: absolute; top: 2px; bottom: 2px;
  left: calc(var(--civ-gap) / -2); width: 1px; background: var(--border-light);
}
#msl .civcol__link { display: block; text-decoration: none; color: inherit; }
#msl .civcol__link:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
#msl .civcol__no {
  display: block; font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--brand-primary); margin-bottom: 14px;
}
#msl .civcol__title {
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(19px, 1.6vw, 21px); line-height: 1.25;
  letter-spacing: var(--track-display); color: var(--text-primary);
  transition: color var(--duration-standard) var(--ease-standard);
}
#msl .civcol__arrow {
  display: inline-block; margin-left: 8px; line-height: 0;
  color: var(--brand-primary); opacity: 0; transform: translateX(-4px);
  transition: opacity var(--duration-standard) var(--ease-standard),
              transform var(--duration-standard) var(--ease-organic);
}
#msl .civcol__link:hover .civcol__title,
#msl .civcol__link:focus-visible .civcol__title { color: var(--brand-primary); }
#msl .civcol__link:hover .civcol__arrow,
#msl .civcol__link:focus-visible .civcol__arrow { opacity: 1; transform: translateX(0); }
#msl .civcol__body { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-secondary); }

@media (max-width: 900px) {
  #msl .civ__pano { aspect-ratio: 16 / 8; }
  #msl .civcols { grid-template-columns: 1fr; gap: 0; }
  #msl .civcol + .civcol::before { display: none; }
  #msl .civcol + .civcol {
    border-top: 1px solid var(--border-light); padding-top: 24px; margin-top: 24px;
  }
}
@media (max-width: 620px) { #msl .civ__pano { aspect-ratio: 4 / 3; } }

/* ==========================================================================
   04 · RESIDENTIAL & COMMERCIAL — the human end of the same system
   A split introduction, then the three categories as a plain list of rules.
   ========================================================================== */
#msl .res__split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4.4vw, 72px); align-items: center;
}
#msl .res__title { margin-bottom: 18px; }
#msl .res__lead { margin: 0; }
#msl .res__points { list-style: none; margin: clamp(22px, 2.4vw, 30px) 0 0; padding: 0; }
#msl .res__points li {
  padding: 12px 0; border-top: 1px solid var(--border-light);
  font-size: 14px; line-height: 1.6; color: var(--text-secondary);
}
#msl .res__points li:last-child { border-bottom: 1px solid var(--border-light); }

#msl .res__visual {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--surface-industrial);
  aspect-ratio: 4 / 3; min-height: 0;
}
#msl .res__photo { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; }
#msl .res__visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,21,47,0.16) 0%, rgba(3,21,47,0) 46%, rgba(3,21,47,0.30) 100%);
}

#msl .reslist { list-style: none; margin: clamp(38px, 4.2vw, 62px) 0 0; padding: 0; }
#msl .resrow__link {
  display: grid; grid-template-columns: 46px minmax(0, 0.82fr) minmax(0, 1.6fr) 24px;
  align-items: center; gap: clamp(14px, 1.9vw, 28px);
  padding: clamp(18px, 2vw, 26px) 0;
  border-top: 1px solid var(--border-light);
  text-decoration: none; color: inherit;
}
#msl .reslist li:last-child .resrow__link { border-bottom: 1px solid var(--border-light); }
#msl .resrow__link:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
#msl .resrow__no {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--brand-primary);
}
#msl .resrow__title {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(18px, 1.5vw, 20px); line-height: 1.25;
  letter-spacing: var(--track-display); color: var(--text-primary);
  transition: color var(--duration-standard) var(--ease-standard);
}
#msl .resrow__body { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-secondary); }
#msl .resrow__arrow {
  justify-self: end; line-height: 0; color: var(--brand-primary);
  opacity: 0; transform: translateX(-4px);
  transition: opacity var(--duration-standard) var(--ease-standard),
              transform var(--duration-standard) var(--ease-organic);
}
#msl .resrow__link:hover .resrow__title,
#msl .resrow__link:focus-visible .resrow__title { color: var(--brand-primary); }
#msl .resrow__link:hover .resrow__arrow,
#msl .resrow__link:focus-visible .resrow__arrow { opacity: 1; transform: translateX(0); }

@media (max-width: 1000px) {
  #msl .res__split { grid-template-columns: 1fr; gap: 34px; }
  #msl .res__visual { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  #msl .resrow__link {
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    align-items: start; gap: 12px 14px;
  }
  #msl .resrow__body { grid-column: 2 / 4; }
}
@media (prefers-reduced-motion: reduce) {
  #msl .civcol__title, #msl .civcol__arrow, #msl .resrow__title, #msl .resrow__arrow { transition: none; }
}

/* ---------- Closing CTA band ---------- */
#msl .cta { text-align: center; }
#msl .cta::after {
  content: ""; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46,168,255,0.16), transparent);
  pointer-events: none;
}
#msl .cta .h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
#msl .cta .lead { max-width: 560px; margin: 0 auto 40px; }
#msl .cta .btn-row { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
#msl .footer { background: var(--surface-utility-dark); color: var(--text-inverse); padding: var(--section-pad-tight) 0 0; }
#msl .footer__grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 64px; padding-bottom: 48px; }
@media (max-width: 720px) { #msl .footer__grid { grid-template-columns: 1fr; gap: 40px; } }
#msl .footer__blurb { margin-top: 14px; font-size: 13.5px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.62); max-width: 340px; }
#msl .footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
#msl .footer__col h3 {
  font-family: var(--font-display); font-size: 10px; font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin: 0 0 16px;
}
#msl .footer__col a, #msl .footer__col span { display: block; font-size: 13.5px; font-weight: 300; color: rgba(255,255,255,0.78); margin-bottom: 12px; transition: color 150ms ease; }
#msl .footer__col a:hover { color: var(--brand-glow); }
#msl .footer .brand__mark { color: #FFFFFF; }
#msl .footer .brand__since { color: rgba(255,255,255,0.55); }
#msl .footer__legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
}
#msl .footer__legal span {
  font-family: var(--font-display); font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #msl html { scroll-behavior: auto; }
  #msl, #msl * { transition: none !important; animation: none !important; }
  #msl .reveal { opacity: 1; transform: none; }
}


/* The baseline the handoff inherited from the browser as a standalone document.
   Inside our shell it would inherit ours instead — our body is 14px/1.65 at
   weight 300, and the lighter weight alone re-wrapped a Communities column from
   four lines to three. Measured off the handoff's own computed body style. */
#msl {
  font-size: 16px; line-height: normal; letter-spacing: normal;
  font-weight: 400; font-style: normal; font-variant: normal; font-stretch: 100%;
  text-align: start; text-transform: none; text-indent: 0; word-spacing: 0; white-space: normal;
}


/* Destinations that do not exist on v3 yet — see PENDING in the build note.
   Only the hover response and the pointer are suppressed. Nothing here removes
   an element or changes a box: hiding the arrows cost these sections up to 71px
   of height against the handoff, which is a design change, and the point is to
   ship the design as drawn. Restoring an href is all that is needed later. */
#msl [aria-disabled="true"] { cursor: default; }
#msl [aria-disabled="true"]:hover .insttile__photo { transform: scale(1); }
#msl [aria-disabled="true"]:hover .insttile__name,
#msl [aria-disabled="true"]:hover .civcol__title,
#msl [aria-disabled="true"]:hover .resrow__title { transform: none; color: inherit; }


/* Industry photography, added after the handoff: the explorer panel shipped as
   a blueprint backdrop with no image slot. Each slide now carries the same
   photograph the Home page uses for that industry. Laid out exactly like the
   institution tiles — the handoff's own idiom for a photograph under a caption
   — so the caption keeps its white-on-dark reading. The photo sits below the
   caption in the stack; the caption already carries z-index 2. */
#msl .indx__photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
#msl .indx__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(3,21,47,0.94) 0%, rgba(3,21,47,0.72) 38%, rgba(3,21,47,0.34) 66%, rgba(3,21,47,0.20) 100%);
}
