/* =========================
   PROJECT PAGE (Shortcode builder)
   ========================= */

.ss-project-wrap{
  display:flex;
  flex-direction:column;
  gap: 18px;
}

/* Mission landing pages (students/sustainability/innovation) */
.ss-mission-page{padding:22px;}
.ss-mission-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;}
.ss-mission-back{font-weight:600;text-decoration:none;opacity:.85;}
.ss-mission-back:hover{opacity:1;}
.ss-mission-body{font-size:16px;line-height:1.55;}

/* =========================
   PROJECT PAGE: Tighter global glass spacing
   (Match the "Our Mission" feel across all sections)
   ========================= */

body.page-id-1845 .home-block.ss-glass{
  padding: 18px;
  margin: 0 0 14px;
}

body.page-id-1845 .home-block.ss-glass .home-block__title{
  margin-bottom: 6px;
}

/* Keep spacing inside glass cards tight/consistent */
.ss-glass__body > :first-child{ margin-top:0; }
.ss-glass__body > :last-child{ margin-bottom:0; }

.ss-glass__body p{
  margin: 0 0 12px;
  line-height: 1.55;
}

/* Tighter title/body spacing + less "dead" padding for zigzag sections */
body.page-id-1845 .ss-glass:has(.ssz),
body.page-id-1845 .ss-glass--zigzag{
  /* Default home-block padding is 22px; this is a touch tighter */
  padding-top: 16px;
  padding-bottom: 12px;
}

body.page-id-1845 .ss-glass:has(.ssz) .home-block__title.ss-orbitron-italic,
body.page-id-1845 .ss-glass--zigzag .home-block__title.ss-orbitron-italic{
  margin-bottom: 6px;
}

/* Gutenberg can inject empty paragraphs/BRs; hide them to avoid big vertical gaps */
body.page-id-1845 .ss-glass__body > p:empty,
body.page-id-1845 .ss-glass__body > br{
  display:none !important;
  margin:0 !important;
}

/* Two-column layout */
.ss-cols{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: var(--ss-cols-gap, 24px);
  align-items:start;
}

.ss-cols--1{ grid-template-columns: 1fr; }
.ss-cols--3{ grid-template-columns: 1fr 1fr 1fr; }

/* Ensure media sits neatly and aligns to top */
.ss-col{ min-width:0; }

.ss-col figure,
.ss-col .wp-video,
.ss-col .wp-block-video{
  width:100%;
  max-width:100%;
  margin:0;
}

.ss-col video{
  width:100% !important;
  height:auto !important;
  border-radius: 18px;
  overflow:hidden;
  display:block;
}

/* Robust two-column split (avoids nested shortcode parsing issues) */
.sss-split{
  width:100%;
}
.sss-split__left,
.sss-split__right{ min-width:0; }

.sss-split__right video,
.sss-split__right iframe,
.sss-split__right .wp-video,
.sss-split__right .mejs-container{
  width:100% !important;
  max-width:100% !important;
}

.sss-split__right img,
.sss-split__left img{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  border-radius:18px;
}

/* Single-shortcode 2-col text + media */
.ss-glass-video__grid{
  width:100%;
  display:grid;
  grid-template-columns: minmax(0, var(--ss-split-left, 1fr)) minmax(0, var(--ss-split-right, 1fr));
  gap: var(--ss-split-gap, 28px);
  align-items: start;
}
.ss-glass-video__left,
.ss-glass-video__right{ min-width:0; }

/* Keep right column content aligned + remove default WP media margins */
.ss-glass-video__right{
  display:flex;
  flex-direction:column;
  gap: 10px;
  justify-content:flex-start;
}

.ss-glass-video__right-inner{ min-width:0; }

.ss-glass-video__missing{
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

.ss-glass-video__right .wp-video,
.ss-glass-video__right figure,
.ss-glass-video__right .wp-block-video,
.ss-glass-video__right .mejs-container{
  margin: 0 !important;
}

.ss-glass-video__right-title{
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.92;
}

.ss-glass-video__right video,
.ss-glass-video__right iframe,
.ss-glass-video__right .wp-video,
.ss-glass-video__right .mejs-container{
  width:100% !important;
  max-width:100% !important;
}

.ss-glass-video__player{
  width: 100% !important;
  height: auto !important;
  display:block;
  border-radius: 18px;
  overflow:hidden;
}

/* =========================
   Zigzag rows (text/media alternating)
   ========================= */

.ssz{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ssz-row{
  width: 100%;
  display: flex;
  gap: var(--ssz-gap, 28px);
  align-items: stretch;
}

/* Even rows (media left, text right) */
.ssz-row--flip{
  flex-direction: row-reverse;
}

.ssz-text,
.ssz-media{
  flex: 1 1 0;
  min-width: 0;
}

.ssz-text > :first-child{ margin-top: 0; }
.ssz-text > :last-child{ margin-bottom: 0; }
.ssz-text > h1,
.ssz-text > h2,
.ssz-text > h3,
.ssz-text > h4,
.ssz-text > h5,
.ssz-text > h6{ margin: 0 0 5px; }
.ssz-text > p{ margin: 0 0 5px; }
.ssz-text > .ss-zig-button-wrap{ margin: 10px 0 0; }
.ssz-text > ul,
.ssz-text > ol{
  margin: 0 0 5px 1.2em;
}

.ssz-media{
  display: block;
}

.ssz-media__title{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  pointer-events: none;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);

  font-weight: 1000;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: rgba(255,255,255,0.95);
}

.ssz-media__box{
  flex: 1 1 auto;
  min-height: 160px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.ssz-media__box > .ssz-media__missing{
  height: 100%;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

.ssz-media__box > img.ssz-media__el,
.ssz-media__box > video.ssz-media__el,
.ssz-media__box > iframe,
.ssz-media__box > .wp-video,
.ssz-media__box > figure,
.ssz-media__box > .wp-block-video,
.ssz-media__box > .mejs-container{
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  display: block;
}

/* Fit behavior */
.ssz-row[data-fit="cover"] .ssz-media__box > img.ssz-media__el,
.ssz-row[data-fit="cover"] .ssz-media__box > video.ssz-media__el{
  object-fit: cover;
}

.ssz-row[data-fit="contain"] .ssz-media__box > img.ssz-media__el,
.ssz-row[data-fit="contain"] .ssz-media__box > video.ssz-media__el{
  object-fit: contain;
  background: rgba(0,0,0,0.35);
}

.ss-zig-button-wrap{
  width: 100%;
  max-width: 100%;
}

.ss-zig-button-wrap--text,
.ss-zig-button-wrap--full{
  width: 100%;
}

.ss-zig-button-wrap--align-left{
  margin-left: 0;
  margin-right: auto;
}

.ss-zig-button-wrap--align-center{
  margin-left: auto;
  margin-right: auto;
}

.ss-zig-button-wrap--align-right{
  margin-left: auto;
  margin-right: 0;
}

.ss-zig-button{
  --ss-zig-btn-bg: linear-gradient(180deg, #1f8ae6 0%, #1277d1 100%);
  --ss-zig-btn-color: #ffffff;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: var(--ss-zig-btn-bg);
  color: var(--ss-zig-btn-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.ss-zig-button:hover,
.ss-zig-button:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.2);
  filter: brightness(1.03);
}

.ss-zig-button__text{
  flex: 1 1 auto;
  font-weight: 800;
}

.ss-zig-button__arrow{
  flex: 0 0 auto;
  line-height: 1;
}

.ss-zig-button--ghost{
  background: rgba(255,255,255,0.06);
}

html[data-theme="light"] .ss-zig-button--ghost{
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
}

.ssz-text .ss-orbitron-italic{
  display: block;
}

@media (max-width: 760px){
  /* Override inline 2-col layout on mobile */
  .sss-split{ grid-template-columns: 1fr !important; }
  .ss-glass-video__grid{ grid-template-columns: 1fr !important; }
  .ssz-row,
  .ssz-row--flip{
    flex-direction: column;
  }
}

/* If Gutenberg wraps with <figure class="wp-block-video"> */
.ss-col .wp-block-video video{
  border-radius: 18px;
}

/* A slightly larger lead paragraph (optional) */
.ss-lead{
  font-size: 1.05rem;
  opacity: 0.95;
}

@media (max-width: 760px){
  .ss-cols{ grid-template-columns: 1fr; }
}

/* Ensure builder content doesn't get centered by theme rules */
body.page-id-1845 .ss-glass__body,
body.page-id-1845 .ss-cols,
body.page-id-1845 .ss-col{
  width: 100%;
  text-align: left;
}

/* =========================
   PROJECT PAGE: JUSTIFIED LEFT COLUMN TEXT
   ========================= */

/* Justify body text only (keep headings left-aligned) */
body.page-id-1845 .sss-split__left p,
body.page-id-1845 .ss-glass-video__left p,
body.page-id-1845 .ssz-text p{
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

body.page-id-1845 .sss-split__left h1,
body.page-id-1845 .sss-split__left h2,
body.page-id-1845 .sss-split__left h3,
body.page-id-1845 .sss-split__left h4,
body.page-id-1845 .sss-split__left h5,
body.page-id-1845 .sss-split__left h6,
body.page-id-1845 .ss-glass-video__left h1,
body.page-id-1845 .ss-glass-video__left h2,
body.page-id-1845 .ss-glass-video__left h3,
body.page-id-1845 .ss-glass-video__left h4,
body.page-id-1845 .ss-glass-video__left h5,
body.page-id-1845 .ss-glass-video__left h6,
body.page-id-1845 .ssz-text h1,
body.page-id-1845 .ssz-text h2,
body.page-id-1845 .ssz-text h3,
body.page-id-1845 .ssz-text h4,
body.page-id-1845 .ssz-text h5,
body.page-id-1845 .ssz-text h6{
  text-align: left;
  hyphens: none;
}

@media (max-width: 760px){
  body.page-id-1845 .sss-split__left p,
  body.page-id-1845 .ss-glass-video__left p,
  body.page-id-1845 .ssz-text p{
    text-align: left;
    hyphens: none;
  }
}

/* =========================
   OUR MISSION (3 cards)
   ========================= */

.ssm-grid{
  width: 100%;
  display: grid;
  /* Auto-fit so you always get 3 columns when there is room, without forcing tiny cards */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  /* A touch of breathing room from the mission statement above */
  margin-top: 3px;
  align-items: start;
}

/* If the editor injects any stray nodes (p/div/etc) inside the grid, hide them so they can't steal a column */
.ssm-grid > *:not(.ssm-card){
  display:none !important;
}

@media (max-width: 640px){
  .ssm-grid{ grid-template-columns: 1fr; }
}

.ssm-card{
  /* JS can override per card */
  --ssm-desc-height: 86px;
  --ssm-title-gap: 10px;

  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;

  border-radius: 18px;
  overflow: hidden;

  /* Remove outer border so it can't appear "raw" against the overlay */
  border: none !important;
  background: transparent;

  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ssm-card:hover,
.ssm-card:focus-visible{
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.ssm-card__media{
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Draw the border INSIDE the card so it gets visually blended by the overlay */
.ssm-card__media::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:18px;
  pointer-events:none;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
}

html:not([data-theme="dark"]) .ssm-card__media::after{
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10);
}

/* Background image layer */
.ssm-card__img{
  position: absolute;
  inset: 0;
  z-index: 0;

  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 220ms ease;
}

.ssm-card:hover .ssm-card__img,
.ssm-card:focus-visible .ssm-card__img{
  transform: scale(1.08);
}

.ssm-card__img--placeholder{
  background: linear-gradient(135deg, rgba(0,0,0,0.10), rgba(0,0,0,0.04));
}

html[data-theme="dark"] .ssm-card__img--placeholder{
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
}

/* One full-card overlay (prevents any visible "seam" during hover) */
.ssm-card__overlay{
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: flex-end;
  padding: 18px 16px 14px;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.62) 28%,
    rgba(0,0,0,0.30) 58%,
    rgba(0,0,0,0.00) 90%
  );
}

/* Keep Orbitron italic skew, but allow hover shift by combining transforms */
.ssm-card__title.ss-orbitron-italic{
  font-size: 17px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 8px 18px rgba(0,0,0,0.55);
  /* IMPORTANT: order matters.
     If skew happens after translateY, the Y translation becomes an X shift (looks like it moves right).
     So we translate first (left-most) and skew last (right-most). */
  transform: translateY(0) skewX(-12deg);
  transition: transform 220ms ease;
}

/* Hover description slides up (transparent background, text sits on the same overlay) */
.ssm-card__desc{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: var(--ssm-desc-height);
  padding: 14px 16px 16px;

  font-size: 14px;
  line-height: 1.45;

  z-index: 3;
  overflow: hidden;

  background: transparent !important;
  color: #fff;
  text-shadow: 0 8px 18px rgba(0,0,0,0.55);

  transform: translateY(var(--ssm-desc-height));
  transition: transform 220ms ease;
}

.ssm-card__desc .ssm-readmore{
  font: inherit;
  color: inherit;
  white-space: nowrap;
  opacity: 0.92;
}

/* Hover behavior */
.ssm-card:hover .ssm-card__desc,
.ssm-card:focus-visible .ssm-card__desc{
  transform: translateY(0);
}

.ssm-card:hover .ssm-card__title.ss-orbitron-italic,
.ssm-card:focus-visible .ssm-card__title.ss-orbitron-italic{
  transform: translateY(calc(-1 * var(--ssm-desc-height) + var(--ssm-title-gap))) skewX(-12deg);
}

/* =========================
   Glass image (single image in a glass section)
   ========================= */

.ss-glass-image__figure{
  margin: 0;
}

.ss-glass-image__link{
  display:block;
  text-decoration:none;
}

.ss-glass-image__img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}


/* =========================
   CTA / registration block
   ========================= */

.ss-cta{
  margin: 10px 0 18px;
}

.ss-cta__inner{
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    linear-gradient(90deg, rgba(4,15,29,0.96), rgba(14,18,26,0.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 16px 40px rgba(0,0,0,0.28);
}

.ss-cta__glow{
  position:absolute;
  border-radius:999px;
  pointer-events:none;
  filter: blur(10px);
  opacity:.55;
}

.ss-cta__glow--1{
  width: 180px;
  height: 180px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, rgba(0,157,255,.25) 0%, rgba(0,157,255,0) 72%);
}

.ss-cta__glow--2{
  width: 140px;
  height: 140px;
  bottom: -50px;
  left: -30px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 72%);
}

.ss-cta--center .ss-cta__inner{
  text-align:center;
}

.ss-cta--left .ss-cta__inner{
  text-align:left;
}

.ss-cta__eyebrow{
  position: relative;
  z-index: 1;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ss-cta__title{
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  line-height: 1.05;
}

.ss-cta__text{
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 16px auto 0;
}

.ss-cta--left .ss-cta__text{
  margin-left: 0;
  margin-right: 0;
}

.ss-cta__text p{
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
}

.ss-cta__actions{
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.ss-cta__button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  min-width: 240px;
  padding: 16px 24px;
  border-radius: 18px;
  text-decoration:none;
  color: #fff;
  font-weight: 900;
  letter-spacing: .02em;
  background: linear-gradient(135deg, rgba(0,129,215,0.98), rgba(10,93,168,0.98));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 14px 30px rgba(0,77,133,0.38),
    inset 0 1px 0 rgba(255,255,255,0.14);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, color .18s ease;
}

.ss-cta__button:hover,
.ss-cta__button:focus-visible{
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px rgba(0,103,177,0.44),
    inset 0 1px 0 rgba(255,255,255,0.18);
  filter: brightness(1.05);
  color: #fff;
}

.ss-cta__button-text{
  font-family: var(--font-body, inherit);
  font-size: 1.05rem;
}

.ss-cta__button-arrow{
  font-size: 1.1rem;
  line-height: 1;
}

.ss-cta__note{
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: .92rem;
  color: rgba(255,255,255,0.72);
}

@media (max-width: 760px){
  .ss-cta__inner{
    padding: 22px 18px;
    border-radius: 22px;
  }

  .ss-cta__button{
    width: 100%;
    min-width: 0;
  }
}


.ss-cta__inner > :first-child{
  margin-top: 0;
}

.ss-cta__inner > :last-child{
  margin-bottom: 0;
}

.ss-cta__eyebrow + .ss-cta__title{
  margin-top: 2px;
}

.ss-cta__title + .ss-cta__text,
.ss-cta__title + .ss-cta__actions,
.ss-cta__text + .ss-cta__actions,
.ss-cta__actions + .ss-cta__note{
  margin-top: 18px;
}

.ss-cta__button--ghost{
  background: rgba(255,255,255,0.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 24px rgba(0,0,0,0.20);
}

.ss-cta__button--ghost:hover,
.ss-cta__button--ghost:focus-visible{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 14px 28px rgba(0,0,0,0.28);
}


/* =========================
   Glass ambient color treatment
   Applies the CTA-style depth to all ss_glass cards with subtle variation.
   Optional shortcode controls:
   [ss_glass color1="#0B2D55" color2="#2EA9FF" color3="#125CAA" opacity="0.7"]
   ========================= */

.home-block.ss-glass{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --ss-ambient-opacity: .72;
}

.home-block.ss-glass::before,
.home-block.ss-glass::after,
.home-block.ss-glass .ss-glass__body::before{
  content:"";
  position:absolute;
  inset:auto;
  border-radius:999px;
  pointer-events:none;
  z-index:0;
  filter: blur(14px);
  opacity: var(--ss-ambient-opacity);
  transition: opacity .2s ease, transform .25s ease;
}

.home-block.ss-glass > *,
.home-block.ss-glass .ss-glass__body,
.home-block.ss-glass .ss-glass__body > *{
  position:relative;
  z-index:1;
}

.home-block.ss-glass .ss-glass__body::before{
  z-index:0;
}

/* Dark mode: deep blue variations inspired by the HydroTeam palette */
html[data-theme="dark"] .home-block.ss-glass{
  --ss-ambient-color-1: rgba(18,92,170,.30);
  --ss-ambient-color-2: rgba(46,169,255,.14);
  --ss-ambient-color-3: rgba(11,45,85,.24);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    linear-gradient(90deg, rgba(6,14,27,0.96), rgba(13,18,26,0.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 14px 34px rgba(0,0,0,0.22);
}

html[data-theme="dark"] .home-block.ss-glass::before{
  width: 240px;
  height: 240px;
  top: -84px;
  right: -64px;
  background: radial-gradient(circle, var(--ss-ambient-color-1) 0%, rgba(18,92,170,0) 72%);
}

html[data-theme="dark"] .home-block.ss-glass::after{
  width: 190px;
  height: 190px;
  bottom: -74px;
  left: -46px;
  background: radial-gradient(circle, var(--ss-ambient-color-2) 0%, rgba(46,169,255,0) 72%);
}

html[data-theme="dark"] .home-block.ss-glass .ss-glass__body::before{
  width: 220px;
  height: 150px;
  top: -40px;
  left: 10%;
  background: radial-gradient(circle, var(--ss-ambient-color-3) 0%, rgba(11,45,85,0) 72%);
}

html[data-theme="dark"] .home-block.ss-glass:nth-of-type(3n+1){
  --ss-ambient-color-1: rgba(11,45,85,.34);
  --ss-ambient-color-2: rgba(46,169,255,.12);
  --ss-ambient-color-3: rgba(18,92,170,.16);
}
html[data-theme="dark"] .home-block.ss-glass:nth-of-type(3n+2){
  --ss-ambient-color-1: rgba(16,84,150,.24);
  --ss-ambient-color-2: rgba(9,50,102,.22);
  --ss-ambient-color-3: rgba(46,169,255,.10);
}
html[data-theme="dark"] .home-block.ss-glass:nth-of-type(3n+3){
  --ss-ambient-color-1: rgba(35,120,214,.16);
  --ss-ambient-color-2: rgba(11,45,85,.26);
  --ss-ambient-color-3: rgba(18,92,170,.12);
}

html[data-theme="dark"] .home-block.ss-glass:nth-of-type(3n+2)::before{
  width: 270px;
  height: 270px;
  top: -96px;
  left: -74px;
  right: auto;
}
html[data-theme="dark"] .home-block.ss-glass:nth-of-type(3n+2)::after{
  width: 210px;
  height: 210px;
  left: auto;
  right: -40px;
  bottom: -54px;
}
html[data-theme="dark"] .home-block.ss-glass:nth-of-type(3n+2) .ss-glass__body::before{
  width: 170px;
  height: 170px;
  top: auto;
  bottom: -55px;
  left: 24%;
}
html[data-theme="dark"] .home-block.ss-glass:nth-of-type(3n+3)::before{
  width: 300px;
  height: 180px;
  top: 50%;
  right: -110px;
  left: auto;
  transform: translateY(-50%);
}
html[data-theme="dark"] .home-block.ss-glass:nth-of-type(3n+3)::after{
  width: 240px;
  height: 150px;
  bottom: auto;
  top: -40px;
  left: 10%;
  right: auto;
}
html[data-theme="dark"] .home-block.ss-glass:nth-of-type(3n+3) .ss-glass__body::before{
  width: 180px;
  height: 180px;
  bottom: -70px;
  top: auto;
  left: -40px;
}

/* Light mode: visible but still soft orange glow across all ss_glass cards */
html[data-theme="light"] .home-block.ss-glass,
body.light-mode .home-block.ss-glass,
html:not([data-theme="dark"]):not([data-theme="light"]) .home-block.ss-glass{
  --ss-ambient-opacity: 1;
  --ss-ambient-color-1: rgba(240,90,40,.30);
  --ss-ambient-color-2: rgba(255,150,90,.22);
  --ss-ambient-color-3: rgba(255,184,120,.18);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.975), rgba(255,255,255,0.94)),
    linear-gradient(90deg, rgba(240,90,40,0.10), rgba(255,170,120,0.14));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 12px 28px rgba(16,24,40,0.07);
}

html[data-theme="light"] .home-block.ss-glass::before,
body.light-mode .home-block.ss-glass::before,
html:not([data-theme="dark"]):not([data-theme="light"]) .home-block.ss-glass::before{
  width: 240px;
  height: 240px;
  top: -92px;
  right: -72px;
  background: radial-gradient(circle, var(--ss-ambient-color-1) 0%, rgba(240,90,40,0) 72%);
}

html[data-theme="light"] .home-block.ss-glass::after,
body.light-mode .home-block.ss-glass::after,
html:not([data-theme="dark"]):not([data-theme="light"]) .home-block.ss-glass::after{
  width: 180px;
  height: 180px;
  bottom: -62px;
  left: -34px;
  background: radial-gradient(circle, var(--ss-ambient-color-2) 0%, rgba(240,90,40,0) 72%);
}

html[data-theme="light"] .home-block.ss-glass .ss-glass__body::before,
body.light-mode .home-block.ss-glass .ss-glass__body::before,
html:not([data-theme="dark"]):not([data-theme="light"]) .home-block.ss-glass .ss-glass__body::before{
  width: 150px;
  height: 150px;
  left: auto;
  right: 8%;
  top: -40px;
  bottom: auto;
  background: radial-gradient(circle, var(--ss-ambient-color-3) 0%, rgba(240,90,40,0) 70%);
}

html[data-theme="light"] .home-block.ss-glass:nth-of-type(3n+2),
body.light-mode .home-block.ss-glass:nth-of-type(3n+2),
html:not([data-theme="dark"]):not([data-theme="light"]) .home-block.ss-glass:nth-of-type(3n+2){
  --ss-ambient-color-1: rgba(240,90,40,.10);
  --ss-ambient-color-2: rgba(255,150,90,.07);
  --ss-ambient-color-3: rgba(255,184,120,.08);
}
html[data-theme="light"] .home-block.ss-glass:nth-of-type(3n+3),
body.light-mode .home-block.ss-glass:nth-of-type(3n+3),
html:not([data-theme="dark"]):not([data-theme="light"]) .home-block.ss-glass:nth-of-type(3n+3){
  --ss-ambient-color-1: rgba(240,90,40,.09);
  --ss-ambient-color-2: rgba(255,150,90,.06);
  --ss-ambient-color-3: rgba(255,184,120,.07);
}

html[data-theme="light"] .home-block.ss-glass:nth-of-type(3n+2)::before,
body.light-mode .home-block.ss-glass:nth-of-type(3n+2)::before,
html:not([data-theme="dark"]):not([data-theme="light"]) .home-block.ss-glass:nth-of-type(3n+2)::before{
  width: 260px;
  height: 180px;
  top: auto;
  bottom: -50px;
  left: 14%;
  right: auto;
}

html[data-theme="light"] .home-block.ss-glass:nth-of-type(3n+2)::after,
body.light-mode .home-block.ss-glass:nth-of-type(3n+2)::after,
html:not([data-theme="dark"]):not([data-theme="light"]) .home-block.ss-glass:nth-of-type(3n+2)::after{
  width: 150px;
  height: 150px;
  left: auto;
  right: 8%;
  top: -40px;
  bottom: auto;
}

html[data-theme="light"] .home-block.ss-glass:nth-of-type(3n+2) .ss-glass__body::before,
body.light-mode .home-block.ss-glass:nth-of-type(3n+2) .ss-glass__body::before,
html:not([data-theme="dark"]):not([data-theme="light"]) .home-block.ss-glass:nth-of-type(3n+2) .ss-glass__body::before{
  width: 190px;
  height: 190px;
  bottom: -50px;
  top: auto;
  left: -35px;
  right: auto;
}

html[data-theme="light"] .home-block.ss-glass:nth-of-type(3n+3)::before,
body.light-mode .home-block.ss-glass:nth-of-type(3n+3)::before,
html:not([data-theme="dark"]):not([data-theme="light"]) .home-block.ss-glass:nth-of-type(3n+3)::before{
  width: 280px;
  height: 160px;
  top: 50%;
  left: -90px;
  right: auto;
  transform: translateY(-50%);
}

html[data-theme="light"] .home-block.ss-glass:nth-of-type(3n+3)::after,
body.light-mode .home-block.ss-glass:nth-of-type(3n+3)::after,
html:not([data-theme="dark"]):not([data-theme="light"]) .home-block.ss-glass:nth-of-type(3n+3)::after{
  width: 220px;
  height: 220px;
  bottom: -95px;
  right: -70px;
  left: auto;
}

html[data-theme="light"] .home-block.ss-glass:nth-of-type(3n+3) .ss-glass__body::before,
body.light-mode .home-block.ss-glass:nth-of-type(3n+3) .ss-glass__body::before,
html:not([data-theme="dark"]):not([data-theme="light"]) .home-block.ss-glass:nth-of-type(3n+3) .ss-glass__body::before{
  width: 180px;
  height: 120px;
  top: -25px;
  left: 20%;
  right: auto;
}

/* =========================
   CTA layout + theme refinement
   Desktop: content left, action stack right
   Mobile: stacked
   ========================= */
.ss-cta__inner{
  display:grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .78fr);
  column-gap: 36px;
  row-gap: 12px;
  align-items:center;
  text-align:left;
}

.ss-cta__eyebrow{
  grid-column: 1 / -1;
  justify-self:start;
}

.ss-cta__title{
  grid-column: 1 / -1;
  justify-self:start;
}

.ss-cta__text{
  grid-column: 1;
  justify-self:start;
}

.ss-cta__actions,
.ss-cta__note{
  grid-column: 2;
  width: min(100%, 320px);
  justify-self:end;
  text-align:center;
}

.ss-cta__actions{
  align-self:end;
  margin-top: 0;
}

.ss-cta__note{
  align-self:start;
  margin-top: 0;
}

.ss-cta__text{
  max-width: 100%;
  margin: 10px 0 0;
}

.ss-cta__title{
  grid-row:auto;
  max-width: none;
  width: 100%;
  margin-bottom: 4px;
}

.ss-cta__button{
  width: 100%;
  min-width: 0;
}

.ss-cta--center .ss-cta__inner,
.ss-cta--left .ss-cta__inner{
  text-align:left;
}

html[data-theme="dark"] .ss-cta__inner{
  border-color: rgba(255,255,255,0.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    linear-gradient(90deg, rgba(4,15,29,0.96), rgba(14,18,26,0.92));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 16px 40px rgba(0,0,0,0.28);
}

html[data-theme="dark"] .ss-cta__eyebrow{
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.95);
}

html[data-theme="dark"] .ss-cta__title,
html[data-theme="dark"] .ss-cta__text p{
  color: #fff;
}

html[data-theme="dark"] .ss-cta__note{
  color: rgba(255,255,255,0.72);
}

html[data-theme="dark"] .ss-cta__glow--1{
  background: radial-gradient(circle, rgba(0,157,255,.22) 0%, rgba(0,157,255,0) 72%);
}

html[data-theme="dark"] .ss-cta__glow--2{
  background: radial-gradient(circle, rgba(46,169,255,.10) 0%, rgba(46,169,255,0) 72%);
}

html:not([data-theme="dark"]) .ss-cta__inner,
:root .ss-cta__inner{
  border-color: rgba(15,23,42,0.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95)),
    linear-gradient(90deg, rgba(240,90,40,0.02), rgba(240,90,40,0.045));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 12px 30px rgba(16,24,40,0.08);
}

html:not([data-theme="dark"]) .ss-cta__eyebrow,
:root .ss-cta__eyebrow{
  background: rgba(255,255,255,0.72);
  border-color: rgba(15,23,42,0.09);
  color: #0f172a;
}

html:not([data-theme="dark"]) .ss-cta__title,
:root .ss-cta__title{
  color: #0f172a;
}

html:not([data-theme="dark"]) .ss-cta__text p,
:root .ss-cta__text p{
  color: rgba(15,23,42,0.88);
}

html:not([data-theme="dark"]) .ss-cta__note,
:root .ss-cta__note{
  color: rgba(15,23,42,0.62);
}

html:not([data-theme="dark"]) .ss-cta__glow--1,
:root .ss-cta__glow--1{
  background: radial-gradient(circle, rgba(240,90,40,.10) 0%, rgba(240,90,40,0) 72%);
}

html:not([data-theme="dark"]) .ss-cta__glow--2,
:root .ss-cta__glow--2{
  background: radial-gradient(circle, rgba(255,170,120,.12) 0%, rgba(255,170,120,0) 72%);
}

@media (max-width: 760px){
  .ss-cta__inner{
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .ss-cta__eyebrow,
  .ss-cta__title,
  .ss-cta__text,
  .ss-cta__actions,
  .ss-cta__note{
    grid-column: 1;
    width: 100%;
    justify-self:start;
    text-align:left;
  }

  .ss-cta__title{
    max-width: none;
    width: 100%;
  }

  .ss-cta__button{
    width: 100%;
  }

  .ss-cta__note{
    text-align:left;
  }
}


/* =========================================
   Ambient variation refinement (macro diversity)
   ========================================= */
.home-block.ss-glass{
  --ss-ambient-p1-x: 12%;
  --ss-ambient-p1-y: 22%;
  --ss-ambient-p2-x: 86%;
  --ss-ambient-p2-y: 18%;
  --ss-ambient-p3-x: 58%;
  --ss-ambient-p3-y: 82%;
  --ss-ambient-s1: 420px;
  --ss-ambient-s2: 360px;
  --ss-ambient-s3: 400px;
  --ss-ambient-rotate: 0deg;
}
.home-block.ss-glass::before{
  left: var(--ss-ambient-p1-x);
  top: var(--ss-ambient-p1-y);
  width: var(--ss-ambient-s1);
  height: var(--ss-ambient-s1);
  transform: translate(-50%, -50%) rotate(var(--ss-ambient-rotate));
}
.home-block.ss-glass::after{
  left: var(--ss-ambient-p2-x);
  top: var(--ss-ambient-p2-y);
  width: var(--ss-ambient-s2);
  height: var(--ss-ambient-s2);
  transform: translate(-50%, -50%) rotate(calc(var(--ss-ambient-rotate) * -0.7));
}
.home-block.ss-glass .ss-glass__body::before{
  left: var(--ss-ambient-p3-x);
  top: var(--ss-ambient-p3-y);
  width: var(--ss-ambient-s3);
  height: var(--ss-ambient-s3);
  transform: translate(-50%, -50%) rotate(calc(var(--ss-ambient-rotate) * 0.45));
}

@media (max-width: 900px){
  .home-block.ss-glass{
    --ss-ambient-s1: min(60vw, var(--ss-ambient-s1));
    --ss-ambient-s2: min(54vw, var(--ss-ambient-s2));
    --ss-ambient-s3: min(62vw, var(--ss-ambient-s3));
  }
}



/* =========================
   Page cards (generic linked department/function cards)
   Styled like the mission/building-block cards
   ========================= */
.ss-page-cards{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--ssp-cols, 3), minmax(0, 1fr));
  gap: 18px;
  margin-top: 3px;
  align-items: start;
}
.ss-page-cards > *:not(.ssm-card){
  display:none !important;
}


/* Page-card specific tuning */
.ss-page-cards{
  justify-items: center;
}
.ss-page-cards .ssp-card{
  width: 60%;
  max-width: 60%;
  justify-self: center;
}
.ss-page-cards .ssp-card .ssm-card__media{
  aspect-ratio: 3 / 4;
}
.ss-page-cards .ssp-card .ssm-card__overlay{
  justify-content: center;
  align-items: flex-end;
  padding: 0 12px 12px;
  background: none !important;
}
.ss-page-cards .ssp-card .ssm-card__title.ss-orbitron-italic{
  width: 100%;
  text-align: center;
  color: #000;
  text-shadow: none;
  font-size: 16px;
  transform: translateY(0) skewX(-12deg);
}
html[data-theme="dark"] .ss-page-cards .ssp-card .ssm-card__title.ss-orbitron-italic{
  color: #fff;
}
html[data-theme="light"] .ss-page-cards .ssp-card .ssm-card__img,
body.light-mode .ss-page-cards .ssp-card .ssm-card__img,
html:not([data-theme="dark"]):not([data-theme="light"]) .ss-page-cards .ssp-card .ssm-card__img{
  filter: brightness(0) saturate(100%);
}
.ss-page-cards .ssp-card .ssm-card__desc{
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: none !important;
  background: none !important;
}
.ss-page-cards .ssp-card:hover .ssm-card__desc,
.ss-page-cards .ssp-card:focus-visible .ssm-card__desc{
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: none !important;
}
.ss-page-cards .ssp-card:hover .ssm-card__title.ss-orbitron-italic,
.ss-page-cards .ssp-card:focus-visible .ssm-card__title.ss-orbitron-italic{
  transform: translateY(0) skewX(-12deg);
}
@media (max-width: 980px){
  .ss-page-cards .ssp-card{
    width: 70%;
    max-width: 70%;
  }
}
@media (max-width: 640px){
  .ss-page-cards .ssp-card{
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 980px){
  .ss-page-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .ss-page-cards{ grid-template-columns: 1fr; }
}


/* Light-mode visibility boost for all glass cards */
html[data-theme="light"] .home-block.ss-glass::before,
html[data-theme="light"] .home-block.ss-glass::after,
html[data-theme="light"] .home-block.ss-glass .ss-glass__body::before,
body.light-mode .home-block.ss-glass::before,
body.light-mode .home-block.ss-glass::after,
body.light-mode .home-block.ss-glass .ss-glass__body::before{
  filter: blur(18px);
}


/* Final light-mode glass ambient: visible warm glow on all glass cards */
html[data-theme="light"] .home-block.ss-glass,
body.light-mode .home-block.ss-glass,
html:not([data-theme="dark"]):not([data-theme="light"]) .home-block.ss-glass{
  background:
    radial-gradient(540px 320px at var(--ss-ambient-p1-x) var(--ss-ambient-p1-y), rgba(240,90,40,.14) 0%, rgba(240,90,40,0) 52%),
    radial-gradient(420px 280px at var(--ss-ambient-p2-x) var(--ss-ambient-p2-y), rgba(255,150,90,.11) 0%, rgba(255,150,90,0) 50%),
    radial-gradient(360px 240px at var(--ss-ambient-p3-x) var(--ss-ambient-p3-y), rgba(255,184,120,.09) 0%, rgba(255,184,120,0) 48%),
    linear-gradient(135deg, rgba(255,255,255,0.975), rgba(255,255,255,0.94));
}

html[data-theme="light"] .home-block.ss-glass::before,
html[data-theme="light"] .home-block.ss-glass::after,
html[data-theme="light"] .home-block.ss-glass .ss-glass__body::before,
body.light-mode .home-block.ss-glass::before,
body.light-mode .home-block.ss-glass::after,
body.light-mode .home-block.ss-glass .ss-glass__body::before{
  opacity: .95;
  filter: blur(22px);
}

/* =========================
   Scroll image shortcode
   ========================= */
.ss-scroll-image{
  position: relative;
  height: var(--ss-scroll-height, 520px);
  overflow: hidden;
  border-radius: var(--ss-scroll-radius, 28px);
  isolation: isolate;
  background: #0e1420;
}
.ss-scroll-image__media{
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ss-scroll-image__img{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: calc(100% + var(--ss-scroll-overscan, 220px));
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  will-change: transform;
  max-width: none;
}
.ss-scroll-image::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.ss-scroll-image--dark::after{
  background: linear-gradient(180deg, rgba(5,9,16,.26) 0%, rgba(5,9,16,.14) 24%, rgba(5,9,16,0) 56%, rgba(5,9,16,.1) 100%);
}
.ss-scroll-image--light::after{
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.1) 22%, rgba(255,255,255,0) 58%, rgba(255,255,255,.08) 100%);
}
.ss-scroll-image--none::after{
  background: none;
}
.ss-scroll-image__title{
  position: absolute;
  top: clamp(18px, 3vw, 34px);
  left: 50%;
  transform: translateX(-50%) skewX(-12deg);
  transform-origin: center center;
  z-index: 2;
  margin: 0;
  width: calc(100% - 40px);
  text-align: center;
  font-family:"Orbitron", system-ui, sans-serif;
  font-style: italic;
  font-weight:800;
  font-size: clamp(24px, var(--ss-scroll-title-size, 56px), 72px);
  line-height: .94;
  letter-spacing: .04em;
  text-wrap: balance;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 10px 28px rgba(0,0,0,.28);
}
html[data-theme="light"] .ss-scroll-image__title,
body.light-mode .ss-scroll-image__title{
  color: #101826;
  text-shadow: 0 8px 20px rgba(255,255,255,.18);
}
@media (max-width: 980px){
  .ss-scroll-image{
    height: min(var(--ss-scroll-height, 520px), 62vw);
  }
}
@media (max-width: 640px){
  .ss-scroll-image{
    height: min(var(--ss-scroll-height, 520px), 72vw);
  }
  .ss-scroll-image__title{
    width: calc(100% - 24px);
    top: 16px;
    transform: translateX(-50%) skewX(-12deg);
  }
}

/* =========================
   Zigzag title hierarchy + button overrides
   ========================= */
.home-block__title.ss-orbitron-italic.ss-glass__title--h1,
.home-block__title.ss-glass__title--h1{
  font-size: clamp(2.15rem, 4vw, 3.1rem);
  line-height: 1.02;
}
.home-block__title.ss-orbitron-italic.ss-glass__title--h2,
.home-block__title.ss-glass__title--h2{
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.05;
}
.home-block__title.ss-orbitron-italic.ss-glass__title--h3,
.home-block__title.ss-glass__title--h3{
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.08;
}
.home-block__title.ss-orbitron-italic.ss-glass__title--h4,
.home-block__title.ss-glass__title--h4,
.home-block__title.ss-orbitron-italic.ss-glass__title--h5,
.home-block__title.ss-glass__title--h5,
.home-block__title.ss-orbitron-italic.ss-glass__title--h6,
.home-block__title.ss-glass__title--h6{
  font-size: var(--ss-home-title-size);
}

.ssz-text > .ss-orbitron-italic,
.ssz-text > h1,
.ssz-text > h2,
.ssz-text > h3,
.ssz-text > h4,
.ssz-text > h5,
.ssz-text > h6{
  margin: 0 0 5px !important;
}

.ss-zig-button[style]{
  background-image: none !important;
}
