

:root {
  color-scheme: light;
  --navy: #07334d;
  --ink: #163c55;
  --muted: #4e6475;
  --orange: #ff842d;
  --orange-ink: #a94203;
  --cream: #fffaf4;
  --line: #dbe6ec;
  --teal: #207e79;
  --blue: #007caf;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}
body {
  margin: 0;
  padding: 0;
  font: 1rem/1.65 Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
body, main, section, article, figure, nav, div { min-width: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; }
h1 { font-size: clamp(2.15rem, 4.5vw, 4.25rem); letter-spacing: -.045em; overflow-wrap: break-word; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.9rem); letter-spacing: -.035em; overflow-wrap: break-word; }
h3 { font-size: 1.25rem; }
p, li, a, span { overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #0676ac; outline-offset: 5px; }

/* Responsive Container */
.container {
  width: min(76rem, calc(100% - clamp(1.25rem, 3.5vw, 3rem)));
  margin-inline: auto;
}
.section { padding-block: clamp(2.6rem, 5.5vw, 5rem); }
.eyebrow { display: block; margin-bottom: .85rem; color: var(--orange-ink); font-size: .76rem; font-weight: 800; line-height: 1.5; letter-spacing: .15em; text-transform: uppercase; }
.lead { margin-top: 1.3rem; max-width: 42rem; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.16rem); }

/* Buttons */
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.1rem;
  min-width: 0;
  max-width: 100%;
  padding: .85rem 1.3rem;
  border: 2px solid transparent;
  border-radius: .7rem;
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  transition: background .18s ease, transform .18s ease;
  cursor: pointer;
}
.button-primary { color: var(--navy); background: var(--orange); }
.button-secondary { color: var(--navy); border-color: var(--navy); background: #fff; }
.icon { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Hero Section */
.hero { background: linear-gradient(120deg, #fff 8%, #fff7ed 67%, #edf6fa); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.brand { max-width: 22rem; margin-bottom: 1.9rem; }
.brand img { width: 100%; height: auto; border-radius: .55rem; }
.hero h1 span { color: var(--orange-ink); }
.hero-visual { width: 100%; max-width: 33rem; justify-self: end; border-radius: 2rem; background: #fff; box-shadow: 0 1.5rem 4rem #07334d1a; }
.hero-visual img { width: 100%; height: auto; border-radius: inherit; }

/* Program Band */
.program-band { padding: .65rem 0; color: #fff; background: var(--navy); }
.program-nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .5rem clamp(.4rem, 2.5vw, 2.75rem); }
.program-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .4rem; font-size: 1rem; font-weight: 800; text-decoration: none; }
.program-nav i { width: 2px; height: 1.25rem; background: var(--orange); }
.program-nav a:hover { text-decoration: underline; text-underline-offset: .35rem; }
.program-nav a:focus-visible, .who a:focus-visible { outline-color: #fff; }

/* Programs Cards Section */
.heading { max-width: 48rem; margin-bottom: 2rem; }
.heading p { margin-top: 1rem; color: var(--muted); }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; align-items: stretch; }
.program { --accent: var(--teal); --tint: #f1faf8; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 1.1rem; background: #fff; box-shadow: 0 .6rem 1.75rem #07334d0b; scroll-margin-top: 1.25rem; }
.program.level { --accent: #a94203; --tint: #fff7ec; }
.program.phaze { --accent: var(--blue); --tint: #eff8fe; }
.phase-image { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: contain; border-radius: 1.05rem 1.05rem 0 0; background: #fff; }
.program-copy { display: flex; flex-direction: column; flex: 1; gap: 1rem; padding: clamp(1.2rem, 2vw, 1.7rem); border-top: .25rem solid var(--accent); background: var(--tint); border-radius: 0 0 1.05rem 1.05rem; }
.program-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.program-title h3 { font-size: 1.65rem; font-style: italic; letter-spacing: -.03em; }
.program-title h3 span { color: var(--orange-ink); }
.age { display: inline-flex; padding: .3rem .65rem; background: #fff; border: 1px solid var(--line); border-radius: 5rem; color: var(--accent); font-size: .8rem; font-weight: 800; }
.program-tag { color: var(--navy); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.program-description { color: #3f586b; font-size: 1rem; }
.program .button { margin-top: auto; align-self: stretch; padding-inline: .8rem; background: #fff; border-color: var(--accent); color: var(--navy); font-size: .88rem; }

/* Who We Serve */
.who { color: #e5f0f6; background: var(--navy); }
.who-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.who .eyebrow { color: #ffbc89; }
.who h2 { color: #fff; }
.who p { margin-top: 1.25rem; color: #d4e4ee; font-size: 1.05rem; }
.who-list { list-style: none; margin: 0; padding: 0; }
.who-list li { position: relative; padding: .9rem 0 .9rem 2rem; border-bottom: 1px solid #ffffff25; }
.who-list li::before { content: '✓'; position: absolute; left: 0; color: #ffbd87; font-weight: 900; }
.emblem { display: block; width: clamp(7rem, 11vw, 9rem); height: auto; margin-top: 1.75rem; border-radius: 50%; }

/* Support Grid */
.support { background: var(--cream); }
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.support-item { min-width: 0; padding: clamp(1.2rem, 2.5vw, 1.55rem); background: #fff; border: 1px solid #eedfd1; border-radius: 1rem; }
.support-item .icon { width: 1.8rem; height: 1.8rem; color: var(--orange-ink); margin-bottom: 1rem; }
.support-item h3 { font-size: 1.1rem; line-height: 1.4; }
.support-item p { margin-top: .65rem; color: var(--muted); font-size: .95rem; }

/* Campaign Partner Section */
.campaign { background: #fff; }
.campaign-visual { width: 100%; border-radius: clamp(.8rem, 2vw, 1.4rem); overflow: hidden; box-shadow: 0 .75rem 2.5rem #07334d12; }
.campaign-visual img { width: 100%; height: auto; object-fit: contain; }
.partner-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; margin-top: 2.5rem; }
.partner-copy { margin-top: 1.25rem; color: var(--muted); font-size: 1.05rem; }
.partner-message { padding: clamp(1.6rem, 4vw, 3rem); border-radius: 1.2rem; background: var(--orange); }
.partner-message p { color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.15; font-weight: 800; letter-spacing: -.035em; }
.partner-message span { display: block; margin-top: 1.4rem; color: var(--navy); font-size: .8rem; font-weight: 800; }
.brand-banner { margin-top: 2.5rem; }

/* Contact Section */
.contact { background: #edf5f8; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.contact-copy { margin-top: 1.15rem; color: var(--muted); }
.contact-card { min-width: 0; padding: clamp(1.2rem, 2.5vw, 1.6rem); border: 1px solid var(--line); border-radius: 1.1rem; background: #fff; }
.contact-card a { display: flex; align-items: center; gap: .8rem; min-height: 3rem; padding: .85rem 0; font-size: 1rem; font-weight: 700; text-decoration: none; }
.contact-card a + a { border-top: 1px solid var(--line); }
.contact-card a span { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.contact-card .icon { color: var(--orange-ink); }
.contact-card a:hover span { text-decoration: underline; text-underline-offset: .25rem; }
.closing { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid #cddce5; color: #38566c; font-size: .76rem; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; z-index: 100; left: 1rem; top: -6rem; padding: .7rem 1rem; background: #fff; color: var(--navy); border: 2px solid var(--navy); border-radius: .4rem; }
.skip:focus { top: .5rem; }

/* --- Responsive Media Queries for All Screen Sizes --- */
@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); }
  .button-primary:hover { background: #ff9b53; }
  .button-secondary:hover { background: #edf5f8; }
  .program .button:hover { background: #ffecd9; }
}

/* Laptops / Smaller Desktops */
@media (max-width: 66rem) {
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program:last-child { grid-column: 1 / -1; width: calc((100% - 1.4rem)/2); justify-self: center; }
  .hero-grid { gap: 2rem; }
}

/* Tablets (portrait & landscape) */
@media (max-width: 56rem) {
  .hero-grid, .who-grid, .partner-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 100%; }
  .hero-visual { justify-self: center; max-width: min(31rem, 100%); margin-inline: auto; }
  .brand { max-width: min(21rem, 85vw); }
  .emblem { width: clamp(6.5rem, 10vw, 8.5rem); }
  .who-grid { gap: 1.5rem; }
  .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-message { max-width: 100%; }
}

/* Small Tablets / Large Phones */
@media (max-width: 44rem) {
  .program-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .program, .program:last-child { grid-column: auto; width: 100%; max-width: 34rem; justify-self: center; }
  .program-copy { padding: 1.4rem; }
  .hero-visual { border-radius: 1.4rem; }
  .section { padding-block: clamp(2.4rem, 5vw, 3.5rem); }
  .program-nav { gap: .5rem .85rem; }
  .program-nav a { font-size: .92rem; }
  .campaign-visual { border-radius: .85rem; }
}

/* Phones (Vertical Button Stacking & Mobile Density) */
@media (max-width: 36rem) {
  .support-grid { grid-template-columns: 1fr; }
  .button-row { flex-direction: column; width: 100%; }
  .button-row .button { width: 100%; justify-content: center; }
  .brand { max-width: min(20rem, 85vw); }
  .contact-card { padding: 1.15rem; }
  .contact-card a { font-size: .92rem; min-height: 2.85rem; }
  .program-nav { gap: .4rem .6rem; }
  .program-nav a { font-size: .88rem; min-height: 2.5rem; }
  .closing { letter-spacing: .06em; }
}

/* Very Small Phones (e.g. 320px - 360px) */
@media (max-width: 24rem) {
  .program-nav i { display: none; }
  .program-nav a { padding: .35rem .6rem; font-size: .82rem; border: 1px solid rgba(255,255,255,0.22); border-radius: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .button:hover { transform: none; }
}

@media print {
  .section { padding-block: 1.5rem; }
  .hero-grid, .who-grid, .partner-grid, .contact-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .program, .program:last-child { width: 100%; max-width: 34rem; }
  .button-row, .program .button, .program-band, .skip, .modal-overlay { display: none !important; }
  .program, .support-item { break-inside: avoid; }
}

/* --- Universal Responsive Popup Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(0.75rem, 2.5vw, 2rem);
  background: rgba(7, 51, 77, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Fallback for Wix full-height expanded iframes */
.modal-overlay.is-iframe-expanded {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  height: auto;
  align-items: flex-start;
}

/* Compact / Short Viewport Support */
.modal-overlay.is-compact-viewport {
  align-items: flex-start;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 66rem;
  max-height: calc(100dvh - 2rem);
  max-height: calc(100vh - 2rem);
  background: #ffffff;
  border-radius: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--line);
  box-shadow: 0 1.5rem 4rem rgba(7, 51, 77, 0.35);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin-block: auto;
}

.modal-overlay.is-iframe-expanded .modal-container {
  max-height: 90vh;
  max-height: 90dvh;
}

.modal-overlay.is-active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.03em;
}

.modal-subtitle {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
  line-height: 1.5;
  max-width: 48rem;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.4rem, 5vw, 2.75rem);
  height: clamp(2.4rem, 5vw, 2.75rem);
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #f4f8fa;
  border-radius: 50%;
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.modal-close:hover {
  background: #e5eff5;
  color: var(--orange-ink);
  transform: scale(1.06);
}

/* Modal 3-Card Responsive Grid */
.modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.35rem);
  margin-block: 0.75rem 1.5rem;
}

.modal-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.15rem, 2vw, 1.4rem);
  border-radius: 1.05rem;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 0.5rem 1.5rem rgba(7, 51, 77, 0.04);
  min-width: 0;
}

.modal-card-nextup {
  border-top: 4px solid var(--teal);
  background: linear-gradient(180deg, #f2faf8 0%, #ffffff 32%);
}

.modal-card-levelup {
  border-top: 4px solid #a94203;
  background: linear-gradient(180deg, #fff7ee 0%, #ffffff 32%);
}

.modal-card-phazeup {
  border-top: 4px solid var(--blue);
  background: linear-gradient(180deg, #eff7fe 0%, #ffffff 32%);
}

.modal-card-badge-wrap {
  margin-bottom: 0.55rem;
}

.modal-age-teal { border-color: #bee3de; color: var(--teal); }
.modal-age-orange { border-color: #fbd6b8; color: #a94203; }
.modal-age-blue { border-color: #bce0f0; color: var(--blue); }

.modal-card-title {
  font-size: clamp(1.35rem, 2.2vw, 1.55rem);
  font-style: italic;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.modal-card-title span { color: var(--orange-ink); }

.modal-card-tag {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.modal-card-desc {
  margin-top: 0.7rem;
  font-size: clamp(0.88rem, 1.1vw, 0.94rem);
  line-height: 1.55;
  color: #38566c;
  flex: 1;
}

.modal-card-action {
  margin-top: 1.25rem;
}

.modal-card .button {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  background: #ffffff;
  justify-content: center;
}

.button-card-teal { border-color: var(--teal); color: var(--navy); }
.button-card-teal:hover { background: var(--teal) !important; color: #ffffff !important; }
.button-card-orange { border-color: #a94203; color: var(--navy); }
.button-card-orange:hover { background: #a94203 !important; color: #ffffff !important; }
.button-card-blue { border-color: var(--blue); color: var(--navy); }
.button-card-blue:hover { background: var(--blue) !important; color: #ffffff !important; }

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.modal-footer-info {
  color: var(--muted);
  font-size: clamp(0.88rem, 1.1vw, 0.94rem);
  min-width: 0;
}

.modal-footer-info strong { color: var(--navy); }

.modal-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Modal Breakpoint: Tablet & Below (< 62rem / 992px) */
@media (max-width: 62rem) {
  .modal-grid {
    grid-template-columns: 1fr;
    max-width: 36rem;
    margin-inline: auto;
    width: 100%;
    gap: 1rem;
  }
  .modal-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .modal-footer-btns {
    flex-direction: column;
    width: 100%;
  }
  .modal-footer-btns .button {
    width: 100%;
    justify-content: center;
  }
}

/* Modal Breakpoint: Mobile Phones (< 36rem / 576px) */
@media (max-width: 36rem) {
  .modal-overlay {
    padding: 0.5rem;
    align-items: flex-start;
  }
  .modal-container {
    padding: 1.15rem 0.9rem;
    border-radius: 1rem;
    margin-block: 0.5rem 1.5rem;
  }
  .modal-header {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
  }
  .modal-grid {
    margin-block: 0.5rem 1rem;
  }
  .modal-card {
    padding: 1rem;
  }
}

/* Responsive replacement: layouts follow the HTML embed's available width. */
*,*::before,*::after{box-sizing:border-box}
html,body{width:100%;min-width:0;max-width:100%;margin:0}
main,section,article,aside,figure,nav,header,footer,div{min-width:0}
img,video,iframe,svg{max-width:100%}
img,video{height:auto}
h1,h2,h3,p,li,a,button{overflow-wrap:break-word}
.shell,.container,.rh-container{width:min(calc(100% - 2rem),74rem);max-width:74rem;margin-inline:auto}
@media(max-width:900px){
 .hero-grid,.mission-grid,.action-grid,.subscribe-grid,.governance-grid,.fit-grid,.why-grid,.feature-panel,.path-panel,.support-panel,.section-head,.directory-head,.program,.program:nth-child(even){grid-template-columns:minmax(0,1fr)!important}
 .programs,.cards,.media-grid,.resource-grid,.impact-grid,.explore-grid,.ways-grid,.board-grid,.principles,.context-grid,.values,.support-path,.support-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .hero-visual,.hero-media,.feature-number,.path-symbol{max-width:100%}
}
@media(max-width:640px){
 .shell,.container,.rh-container{width:min(calc(100% - 1.25rem),74rem)}
 [class*="-grid"],.programs,.cards,.values,.principles,.support-path,.support-list{grid-template-columns:minmax(0,1fr)!important}
 .button-row,.path-actions,.resource-actions{flex-wrap:wrap}
 .button-row>.button,.path-actions>.path-link{max-width:100%}
 .media-card img,.media-card video,.resource img,.program img{max-width:100%;height:auto;object-fit:contain}
 h1{font-size:clamp(2rem,9vw,3.5rem)}
 h2{font-size:clamp(1.45rem,6vw,2.4rem)}
}
@media(max-width:360px){.shell,.container,.rh-container{width:calc(100% - 1rem)}.button,.path-link,.resource-link{max-width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}


