/* Additional styles for the public pages and mobile navigation. */

.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 2; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 12px var(--gutter) 18px; background: #fff; box-shadow: 0 12px 20px rgba(14, 36, 64, 0.12); }
.site-nav.is-open { display: flex; }
.site-nav a, .site-nav a:not(.nav-cta) { display: block; padding: 12px 10px; color: var(--navy); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 5px; }
/* Get involved: an outline button that keeps its contrast on any background.
   Navy outline on the white header and mobile menu; white outline over a
   light navy tint when the header sits on the hero photo. */
.site-header .site-nav .nav-cta { border: 1.5px solid var(--navy); background: transparent; color: var(--navy); font-weight: 600; text-align: center; margin-top: 4px; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.site-header .site-nav .nav-cta:is(:hover, :focus-visible), .site-header .site-nav .nav-cta[aria-current="page"] { background: var(--navy); color: #fff; text-decoration: none; }
.site-header .site-nav .nav-cta:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
@media (min-width: 64.01em) {
  .js .over-hero:not(.is-solid) .site-nav .nav-cta { border-color: rgba(255, 255, 255, 0.9); background: rgba(14, 36, 64, 0.3); color: #fff; }
  .js .over-hero:not(.is-solid) .site-nav .nav-cta:is(:hover, :focus-visible) { border-color: #fff; background: #fff; color: var(--navy-deep); }
}
.no-js .site-nav { position: static; display: flex; flex-direction: column; }
.no-js .menu-toggle { display: none; }
.menu-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 10px; border: 1px solid currentColor; border-radius: var(--radius); background: transparent; color: #fff; font: 600 0.9rem var(--sans); cursor: pointer; }
.is-solid .menu-toggle, .no-js .menu-toggle { color: var(--navy); }
.menu-toggle { transition: background-color var(--interaction-duration); }
.menu-toggle:is(:hover, :focus-visible, :active) { background-color: rgb(255 255 255 / 0.12); }
.is-solid .menu-toggle:is(:hover, :focus-visible, :active) { background-color: var(--mist); }
.menu-icon { display: grid; gap: 4px; width: 18px; }
.menu-icon span { height: 2px; background: currentColor; transition: transform 0.2s; }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (min-width: 700px) {
  .site-nav, .site-nav.is-open, .no-js .site-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 22px; padding: 0; background: transparent; box-shadow: none; }
  .site-nav a, .site-nav a:not(.nav-cta) { display: inline-block; padding: 5px 0; color: #fff; }
  .is-solid .site-nav a, .no-js .site-nav a { color: var(--navy); }
  .site-header .site-nav .nav-cta { padding: 9px 16px; margin: 0; }
  .menu-toggle { display: none; }
}

.section-pad { padding: clamp(56px, 8vw, 104px) 0; }
.mission-section.section-pad, .islands-section.section-pad, .story-section.section-pad, .founders-section.section-pad, .faq-section.section-pad { padding-block: clamp(48px, 6.8vw, 88px); }
.section-title { max-width: 19ch; margin-bottom: 18px; }
.page-hero { display: flex; align-items: end; min-height: 390px; padding: 132px 0 60px; background: var(--mist); }
.page-hero-inner { max-width: var(--max); }
.page-hero h1 { max-width: 16ch; margin-bottom: 18px; font-size: clamp(2.7rem, 7vw, 5.4rem); }
.page-deck { max-width: 58ch; margin: 0; color: var(--navy); font-size: clamp(1.1rem, 2.5vw, 1.35rem); line-height: 1.5; }
/* About header, "Sunrise": navy with the water-village photo faint behind.
   A thin horizon line draws first, the logo rises up from behind it like
   the sun, then "About us" and the description rise in below. Everything
   shows at once without JavaScript or for people who ask for reduced motion. */
.page-hero.about-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(440px, 62vh, 580px);
  padding: clamp(104px, 11vh, 124px) 0 clamp(48px, 6vh, 68px);
  background: var(--navy-deep);
  text-align: center;
}
.about-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; opacity: 0.22; }
.about-hero-inner { display: grid; justify-items: center; }
.about-hero-sky { overflow: hidden; padding-top: 8px; } /* the logo rises from behind its bottom edge */
.about-hero-logo { display: block; width: clamp(130px, 12vw, 170px); height: auto; }
.about-hero-horizon {
  display: block; width: min(520px, 80vw); height: 1.5px; margin-bottom: clamp(22px, 3.5vh, 30px);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}
.page-hero.about-hero h1 {
  max-width: none;
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.6rem + 2.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.about-hero .page-deck { max-width: 44ch; color: #cdd7e3; font-size: clamp(1rem, 0.92rem + 0.35vw, 1.15rem); line-height: 1.6; text-wrap: balance; }

@media (prefers-reduced-motion: no-preference) {
  .js .about-hero-horizon { animation: about-horizon 0.6s var(--ease) both; }
  .js .about-hero-logo { animation: about-sunrise 0.9s cubic-bezier(0.22, 0.65, 0.2, 1) 0.1s both; }
  .js .about-hero h1 { animation: about-rise 0.7s var(--ease) 0.25s both; }
  .js .about-hero .page-deck { animation: about-rise 0.7s var(--ease) 0.4s both; }
}
@keyframes about-horizon { from { opacity: 0; transform: scaleX(0); } }
@keyframes about-sunrise { from { opacity: 0; transform: translateY(70%); } }
@keyframes about-rise { from { opacity: 0; transform: translateY(14px); } }

.work-hero, .involved-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-deep); color: #fff; }
.work-hero::before, .involved-hero::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 29, 48, 0.84) 0%, rgba(12, 29, 48, 0.62) 52%, rgba(12, 29, 48, 0.2) 100%); content: ''; }
.work-hero-image, .involved-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.work-hero-image { object-position: center 40%; }
.involved-hero-image { object-position: center 54%; }
.work-hero .page-hero-inner, .involved-hero .page-hero-inner { position: relative; z-index: 1; }
.work-hero h1, .work-hero .page-deck, .involved-hero h1, .involved-hero .page-deck { color: #fff; }
.page-hero.work-hero { min-height: clamp(310px, 52vh, 460px); }
.work-hero h1 { max-width: 17ch; font-size: clamp(2.2rem, 1.35rem + 3vw, 4.25rem); text-wrap: balance; }
.work-hero .page-deck { max-width: 45ch; }
.inquiry-hero {
  display: grid;
  padding-top: 72px;
  background: var(--navy-deep);
  color: #fff;
}
.inquiry-hero-photo { position: relative; min-height: clamp(200px, 57vw, 320px); }
.inquiry-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.inquiry-hero-copy { padding: clamp(28px, 5vw, 72px) var(--gutter) clamp(36px, 6vw, 80px); }
.inquiry-hero-copy h1 {
  max-width: 15ch;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(2.35rem, 1.5rem + 2.7vw, 4.25rem);
  text-wrap: balance;
}
.inquiry-hero-copy > p { max-width: 42ch; color: #e7edf3; }
.inquiry-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.inquiry-hero-actions .link-light { font-size: 0.95rem; }

@media (min-width: 760px) {
  .inquiry-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); }
  .inquiry-hero-photo { min-height: clamp(360px, 40vw, 510px); }
  .inquiry-hero-photo::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 78%, var(--navy-deep) 100%);
    content: '';
  }
  .inquiry-hero-copy { align-self: center; padding-inline: clamp(32px, 5vw, 84px) var(--gutter); }
}
/* Arrow links ("Explore our programs ->"): bold navy text with a round sun
   arrow badge. On hover the badge slides and darkens and an underline draws in. */
.text-link, .card-link, .work-more {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px;
  color: var(--navy); font-weight: 700; text-decoration: none;
  background: linear-gradient(var(--sun), var(--sun)) no-repeat left calc(100% - 4px) / 0 2px;
  transition: background-size 0.35s var(--ease), color 0.25s;
}
.text-link > [aria-hidden], .card-link > [aria-hidden], .work-more > [aria-hidden] {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sun); color: #fff; font-size: 1.05rem; line-height: 1;
  transition: transform 0.3s var(--ease), background-color 0.25s;
}
.card-link > [aria-hidden] { width: 30px; height: 30px; font-size: 0.95rem; }
:is(.text-link, .card-link, .work-more):is(:hover, :focus-visible) { background-size: calc(100% - 50px) 2px; }
.card-link:is(:hover, :focus-visible) { background-size: calc(100% - 44px) 2px; }
:is(.text-link, .card-link, .work-more):is(:hover, :focus-visible) > [aria-hidden] { transform: translateX(5px); background: var(--navy); }
:is(.text-link, .card-link, .work-more):focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  :is(.text-link, .card-link, .work-more), :is(.text-link, .card-link, .work-more) > [aria-hidden] { transition: none; }
  :is(.text-link, .card-link, .work-more):is(:hover, :focus-visible) > [aria-hidden] { transform: none; }
}
.source-note, .demo-note { color: #637083; font-size: 0.84rem; line-height: 1.5; }
.demo-note { margin: 22px 0 0; }

.home-intro-grid, .home-work-grid, .mission-grid, .islands-grid, .story-grid, .faq-grid, .jobs-model-grid, .in-kind-inner, .page-cta-inner, .home-cta-inner { display: grid; gap: 28px; align-items: center; }
.home-intro-copy { max-width: 58ch; }
.home-impact { background: var(--mist); }
.section-heading-row { display: flex; flex-direction: column; gap: 8px; }
.section-heading-row .source-note { margin: 0 0 18px; }
.impact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.impact-card { display: flex; min-height: 150px; flex-direction: column; justify-content: space-between; gap: 16px; padding: 18px; background: #fff; border-top: 3px solid var(--sun); }
.impact-card strong { color: var(--navy); font: 500 clamp(2.3rem, 8vw, 3.3rem)/1 var(--serif); }
.impact-card span { font-size: 0.9rem; line-height: 1.45; }
.home-work-photo { max-width: 680px; }
.feature-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-work-photo .feature-photo { max-height: 470px; aspect-ratio: 4 / 3; }
.photo-caption { margin: 10px 0 0; color: #637083; font-size: 0.85rem; }
.home-cta, .page-cta { color: #e6ebf1; background: var(--navy-deep); }
.home-cta .section-title, .page-cta .section-title { color: #fff; margin-bottom: 0; }
.home-cta-inner, .page-cta-inner { justify-content: space-between; }
.home-cta .btn, .page-cta .btn { justify-self: start; }

.mission-section { background: #fff; }
.mission-quote { margin: 0; padding: 26px 24px; border-left: 3px solid var(--sun); background: var(--mist); color: var(--navy); font: 400 clamp(1.4rem, 3vw, 2rem)/1.45 var(--serif); }
.mission-quote p { margin-bottom: 18px; }
.mission-quote footer { color: var(--text); font: 600 0.82rem var(--sans); }
.mission-pillars { display: grid; gap: 18px; margin-top: 44px; }
.mission-pillars > div { padding-top: 18px; border-top: 1px solid var(--line); }
.number-label { display: block; margin-bottom: 12px; color: var(--sun-text); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; }
.mission-pillars h3, .work-detail-card h3, .involvement-card h3 { margin-bottom: 10px; font-size: 1.65rem; }
.mission-pillars p { margin: 0; }
.islands-section { background: var(--mist); }
.islands-art { margin: 0; }
.islands-art img { width: 100%; height: auto; }
.story-photo { width: 100%; margin: 0; }
.story-photo img { width: 100%; height: auto; }
.story-grid { justify-items: start; }
.founders-grid { display: grid; gap: 28px; align-items: start; }
.founders-photo { margin: 0; }
.founders-photo img { width: 100%; height: auto; }
.founders-intro { max-width: 58ch; }
.founder-cards { display: grid; gap: 14px; margin-top: 28px; }
.founder-card { padding: 22px; border: 1px solid var(--line); background: #fff; }
.founder-card h3 { margin: 0 0 8px; font-size: 1.5rem; }
.founder-card p { margin: 0; }
.founder-note { margin: 18px 0 0; color: #637083; font-size: 0.9rem; }
.faq-section { background: var(--mist); }
.faq-list details { border-top: 1px solid #cbd2db; }
.faq-list details:last-child { border-bottom: 1px solid #cbd2db; }
.faq-list summary { position: relative; padding: 18px 34px 18px 0; color: var(--navy); font-family: var(--serif); font-size: 1.25rem; cursor: pointer; list-style: none; }
.faq-list summary, .project-more summary { transition: color var(--interaction-duration); }
:is(.faq-list, .project-more) summary:is(:hover, :focus-visible, :active) { color: var(--sun-text); }
@media (prefers-reduced-motion: no-preference) {
  .faq-list details[open] > :not(summary),
  .project-more[open] > :not(summary) { animation: disclosure-in var(--interaction-duration) ease-out; }

  @keyframes disclosure-in { from { opacity: 0.55; } }
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 13px; color: var(--sun-text); font: 400 1.6rem var(--sans); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { max-width: 60ch; padding: 0 20px 14px 0; }

.work-pillars { background: #fff; }
.work-detail-grid { display: grid; gap: 24px; margin-top: 28px; }
.work-detail-card { position: relative; display: flex; flex-direction: column; padding: 20px; border: 1px solid #e4dccb; background: #fffaf0; box-shadow: 0 5px 14px rgb(37 45 54 / 0.08); }
.work-detail-card::before { position: absolute; top: -8px; left: calc(50% - 30px); width: 60px; height: 16px; background: rgb(244 162 97 / 0.5); content: ''; transform: rotate(-3deg); }
.work-detail-card p { margin: 0 0 18px; }
.work-card-photo, .work-card-photo-pair { aspect-ratio: 4 / 3; margin: 0 0 18px; }
.work-card-photo-image { width: 100%; height: 100%; padding: 7px; border: 1px solid #e7e1d5; background: #fff; box-shadow: 0 4px 11px rgba(37, 45, 54, 0.14); object-fit: cover; transition: transform 0.45s cubic-bezier(0.22, 0.72, 0.28, 1.22), box-shadow 0.3s var(--ease); }
.work-card-photo-pair { position: relative; }
.work-card-photo-pair-image { position: absolute; top: 3%; width: 50%; height: 94%; padding: 7px; border: 1px solid #e7e1d5; background: #fff; box-shadow: 0 4px 11px rgba(37, 45, 54, 0.17); object-fit: cover; transition: transform 0.45s cubic-bezier(0.22, 0.72, 0.28, 1.22), box-shadow 0.3s var(--ease); }
.work-card-photo-pair-image--wash { left: 1%; }
.work-card-photo-pair-image--home { right: 1%; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .work-card-photo-image:hover { transform: scale(1.025); box-shadow: 0 10px 24px rgba(37, 45, 54, 0.22); }
  .work-card-photo-pair-image:hover { z-index: 3; transform: scale(1.025); box-shadow: 0 10px 24px rgba(37, 45, 54, 0.24); }
}
.work-detail-card h3 { margin-bottom: 10px; }
.work-detail-card .work-stat { display: flex; align-items: baseline; gap: 9px; margin: auto 0 0; padding: 10px 0 0; border-top: 1px solid #e4dccb; color: var(--navy); font-size: 0.9rem; line-height: 1.4; }
.work-detail-card .work-stat + .work-stat { margin-top: 8px; border-top: 0; padding-top: 0; }
.work-stat strong { flex-shrink: 0; color: var(--sun-text); font: 500 1.65rem/1 var(--serif); }
.work-pillars .demo-note { margin: 20px 0 0; max-width: 78ch; }
.before-after-section { padding-block: clamp(24px, 4vw, 48px); background: #f6f4ef; }
.before-after-layout { display: grid; gap: 20px; justify-items: center; }
.before-after-copy { width: 100%; max-width: 640px; }
.before-after-layout .section-title { max-width: 15ch; margin: 0; text-wrap: balance; }
.before-after-copy .section-title + p { max-width: 48ch; margin: 12px 0 0; }
.before-after { width: 100%; max-width: 640px; }
@media (min-width: 900px) {
  .before-after-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: clamp(32px, 5vw, 64px);
  }
  .before-after-copy { grid-column: 2; grid-row: 1; }
  .before-after-layout .before-after { grid-column: 1; grid-row: 1; }
}
.before-after-grid { display: grid; gap: 18px; }
.before-after-card { overflow: hidden; background: #fff; }
.before-after-image { position: relative; aspect-ratio: 4 / 3; background: #d9dee5; }
.image-label { position: absolute; left: 14px; top: 14px; padding: 7px 12px; background: rgba(20, 48, 79, 0.92); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.before-after-card figcaption { margin: 0; padding: 12px 16px; border: 0; color: var(--navy); font-weight: 600; }
.before-after.is-comparison {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.is-comparison .before-after-grid {
  --split: 75%;
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
}
.is-comparison .before-after-card { grid-area: 1 / 1; }
.is-comparison .before-after-before { z-index: 1; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.is-comparison .image-label { display: none; }
.is-comparison .before-after-after .feature-photo { transform: scale(1.12); transform-origin: 55% 55%; }
.is-comparison .before-after-card figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.before-after-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  appearance: none;
}
.before-after-range::-webkit-slider-thumb { appearance: none; width: 1px; height: 1px; }
.before-after-range::-moz-range-thumb { width: 1px; height: 1px; border: 0; }
.before-after-divider:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-items: center;
  pointer-events: none;
}
.before-after-divider::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 var(--split);
  width: 2px;
  translate: -50% 0;
  background: #fff;
}
.before-after-divider span {
  position: absolute;
  left: clamp(23px, var(--split), calc(100% - 23px));
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 6px rgb(14 36 64 / 0.22);
  color: var(--navy);
  font: 600 1.3rem/1 var(--sans);
}
.before-after-hint {
  position: absolute;
  z-index: 2;
  top: calc(50% + 30px);
  left: clamp(68px, var(--split), calc(100% - 68px));
  translate: -50% 0;
  margin: 0;
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--paper);
  color: var(--navy);
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}
.before-after-range:focus-visible + .before-after-divider span { outline: 3px solid var(--sun-soft); outline-offset: 3px; }
.is-comparison .before-after-grid:has(.before-after-range:focus-visible) { outline: 2px solid var(--navy); outline-offset: 3px; }
.jobs-model { background: #fff; }
.jobs-model .section-title { margin: 0; }
.jobs-model-grid > div { max-width: 52ch; }
.support-list { display: grid; gap: 0; }
.support-list li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--navy); }
.support-list li::before { content: '—'; margin-right: 12px; color: var(--sun-text); }

.involvement-section { background: #fff; }
.no-cost-section { padding: 22px 0; background: var(--mist); }
.share-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.share-copy .eyebrow { margin-bottom: 3px; }
.share-copy h2 { margin: 0; color: var(--navy); font: 500 clamp(1.45rem, 3vw, 2rem)/1.2 var(--serif); }
.share-actions { display: flex; align-items: center; gap: 9px; }
.share-button { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid #c7d0da; border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s; }
.share-button:hover { transform: translateY(-2px); border-color: var(--navy); background: var(--navy); color: #fff; }
.share-button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.share-button svg { width: 20px; height: 20px; fill: currentColor; }
.share-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.involvement-grid { display: grid; gap: 14px; margin-top: 30px; }
.involvement-card { display: flex; flex-direction: column; min-height: 290px; padding: 22px; border: 1px solid var(--line); }
.involvement-card, .project-card {
  transition: border-color var(--interaction-duration), box-shadow var(--interaction-duration);
}
.involvement-card:focus-within, .project-card:focus-within {
  border-color: #b8c2ce;
  box-shadow: 0 3px 12px rgb(14 36 64 / 0.08);
}
@media (hover: hover) {
  .involvement-card:hover, .project-card:hover {
    border-color: #b8c2ce;
    box-shadow: 0 3px 12px rgb(14 36 64 / 0.08);
  }
}
.involvement-card p { margin: 0 0 22px; }
.involvement-card .card-link { margin-top: auto; }
.involvement-card .card-link-more + .card-link { margin-top: 10px; }
.in-kind-section { background: var(--mist); }
.in-kind-inner { align-items: start; }

.inquiry-section { background: #f8f7f3; }
.inquiry-layout { display: grid; gap: 36px; align-items: start; }
.inquiry-aside { padding: 22px; background: var(--navy); color: #e7edf3; }
.inquiry-aside h2 { color: #fff; font-size: 1.7rem; }
.inquiry-aside a { color: var(--sun-soft); }
.inquiry-form-wrap { min-width: 0; }
.inquiry-form-intro h2 { margin-bottom: 8px; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.inquiry-form-intro p { margin: 0; }
.inquiry-form { display: grid; gap: 22px; padding: clamp(18px, 4vw, 34px); background: #fff; border: 1px solid var(--line); }
.form-two-col { display: grid; gap: 18px; }
.form-field { display: grid; gap: 8px; color: var(--navy); font-size: 0.9rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #b8c2ce; border-radius: 3px; background: #fff; color: var(--navy); font: 400 1rem var(--sans); }
.form-field textarea { resize: vertical; }
.form-field :is(input, select, textarea), .filter-select select {
  transition: border-color var(--interaction-duration), box-shadow var(--interaction-duration);
}
.form-field :is(input, select, textarea):focus, .filter-select select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgb(20 48 79 / 0.1);
}
@media (hover: hover) {
  .form-field :is(input, select, textarea):not(:disabled):hover, .filter-select select:not(:disabled):hover {
    border-color: var(--navy);
  }
}
.form-fieldset { margin: 0; padding: 0; border: 0; }
.form-fieldset legend { margin-bottom: 10px; color: var(--navy); font-size: 0.9rem; font-weight: 700; }
.checkbox-grid { display: grid; gap: 10px; }
.checkbox-grid label, .consent-check { display: flex; gap: 10px; align-items: flex-start; color: var(--navy); font-size: 0.9rem; }
.checkbox-grid input, .consent-check input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--navy); }
.consent-check { align-items: flex-start; }
.newsletter-check { margin-top: -12px; }
.inquiry-form .btn { justify-self: start; border: 0; cursor: pointer; }
.form-demo-note { margin: -12px 0 0; color: #637083; font-size: 0.82rem; }
.form-error { padding: 12px 14px; border-left: 3px solid #9d341f; background: #fff0eb; color: #762b1b; }
.form-success { padding: clamp(24px, 5vw, 44px); background: #fff; border: 1px solid var(--line); }
.form-success h2 { margin: 12px 0; font-size: 2rem; }
.form-success p { max-width: 56ch; }
.success-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #e4eee8; color: #1e6043; font-weight: 700; }

/* Footer, compact: logo and a short mission line, three link columns,
   then a one-line legal bar. */
.site-footer { padding-top: 36px; padding-bottom: 76px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.88rem; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; padding-bottom: 24px; }
.footer-brand-col { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.site-footer .footer-logo { width: 140px; height: auto; }
.site-footer .footer-mission { max-width: 30ch; margin: 0; color: #c9d3de; font-size: 1rem; line-height: 1.4; }
.footer-heading { margin: 0 0 8px; color: var(--sun-soft); font: 700 0.7rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.footer-links li { margin-bottom: 4px; line-height: 1.5; }
.site-footer .footer-links a {
  color: #dbe3ec;
  text-decoration: underline transparent;
  overflow-wrap: anywhere;
  transition: color var(--interaction-duration), text-decoration-color var(--interaction-duration);
}
.site-footer .footer-links a:is(:hover, :focus-visible) { color: #fff; text-decoration-color: var(--sun-soft); }
.footer-contact { grid-column: 1 / -1; }
.footer-address { color: #9fb0c3; }
.footer-bottom { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #8fa0b5; font-size: 0.76rem; }
.footer-bottom p { margin: 0; }

@media (min-width: 900px) {
  .site-footer { padding-top: 44px; padding-bottom: 64px; }
  .footer-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 32px; padding-bottom: 28px; }
  .footer-brand-col { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .footer-contact { grid-column: auto; }
}

@media (min-width: 700px) {
  .page-hero { min-height: 450px; padding-bottom: 76px; }
  .home-intro-grid, .home-work-grid, .mission-grid, .islands-grid, .story-grid, .faq-grid, .jobs-model-grid, .in-kind-inner, .page-cta-inner, .home-cta-inner { grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 78px); }
  .story-grid { grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr); }
  .founders-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 78px); align-items: center; }
  .mission-pillars { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .section-heading-row { flex-direction: row; justify-content: space-between; align-items: end; }
  .impact-cards { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .impact-card { min-height: 180px; padding: 22px; }
  .work-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .work-detail-card:nth-child(1) { transform: rotate(-0.8deg); }
  .work-detail-card:nth-child(2) { transform: rotate(0.9deg); }
  .work-detail-card:nth-child(3) { grid-column: 1 / -1; width: calc(50% - 14px); justify-self: center; transform: rotate(-0.5deg); }
  .work-card-photo-image { transform: rotate(-1.2deg); }
  .work-card-photo-pair-image--wash { transform: rotate(-3deg); }
  .work-card-photo-pair-image--home { transform: rotate(3deg); }
  .before-after-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .involvement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .inquiry-layout { grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr); gap: 40px; }
  .inquiry-aside { position: sticky; top: 100px; }
  .form-two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cta .btn, .page-cta .btn { justify-self: end; }
}

@media (min-width: 700px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .work-card-photo-image:hover { transform: rotate(-1.2deg) scale(1.025); }
  .work-card-photo-pair-image--wash:hover { transform: rotate(-3deg) scale(1.025); }
  .work-card-photo-pair-image--home:hover { transform: rotate(3deg) scale(1.025); }
}

@media (min-width: 1000px) {
  .work-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-detail-card:nth-child(3) { grid-column: auto; width: auto; }
  .work-detail-card { padding-top: 18px; padding-bottom: 18px; }
  .work-card-photo, .work-card-photo-pair { margin-bottom: 16px; }
  .work-detail-card h3 { margin-bottom: 8px; }
  .work-detail-card > p:not(.work-stat) { margin-bottom: 12px; font-size: 0.96rem; line-height: 1.5; }
  .involvement-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
  .involved-hero-image { object-position: 0% 58%; }
}

@media (max-width: 500px) {
  .share-banner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .share-button { flex: 0 0 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-icon span { transition: none; }
}


/* ---------- Inquiry contact details ---------- */

.inquiry-contact {
  margin: 20px 0 0;
  overflow-wrap: anywhere;
}

.inquiry-contact > div {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.inquiry-contact dt {
  font-weight: 700;
  color: #fff;
}

.inquiry-contact dd {
  margin: 4px 0 0;
}


/* ========================================
   SOLOMON ISLANDS PAGE
   ======================================== */


/* Homepage teaser */

.island-teaser {
  padding: clamp(40px, 6vw, 72px) 0;
  background: var(--mist);
}

.island-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.island-teaser-map { display: grid; place-items: center; }

/* Homepage graphic. The islands rise in order of distance from Honiara. */
.islands {
  position: relative;
  width: 100%;
  max-width: 560px;
}
.islands-shape { display: block; width: 100%; height: auto; overflow: visible; }
.islands-shape-land path {
  fill: var(--navy);
  stroke: var(--navy);
  stroke-width: 1.5;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 0.2s, stroke 0.2s;
  cursor: pointer;
}
.islands-shape-land path:is(:hover, :focus-visible, .is-active) { fill: var(--sun); stroke: var(--sun); }
.islands-shape-land path:focus-visible { stroke: var(--sun-text); stroke-width: 3; }
.islands-shape-pin { fill: var(--sun); stroke: #fff; stroke-width: 2; }
.islands-shape-pulse { fill: none; stroke: var(--sun); stroke-width: 1.5; opacity: 0.55; }
.islands-shape-label {
  fill: var(--navy);
  font: 700 17px var(--sans);
  paint-order: stroke;
  stroke: var(--mist);
  stroke-width: 4;
  stroke-linejoin: round;
}
.islands-shape-pin, .islands-shape-pulse, .islands-shape-label { pointer-events: none; }
.islands-tip {
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: min(240px, 100%);
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.4;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
}
.islands-tip.is-below { transform: translate(-50%, 10px); }
.islands-tip strong, .islands-tip span { display: block; }
.islands-tip-note { margin-top: 4px; color: #dbe3ec; }

@media (prefers-reduced-motion: no-preference) {
  .islands.is-waiting .islands-shape-land path { opacity: 0; transform: translateY(6px) scale(0.92); }
  .islands.is-risen .islands-shape-land path {
    transition: opacity 0.7s var(--ease) var(--rise), transform 0.9s var(--ease) var(--rise), fill 0.2s, stroke 0.2s;
  }
  .islands.is-waiting :is(.islands-shape-pin, .islands-shape-pulse, .islands-shape-label) { opacity: 0; }
  .islands.is-risen :is(.islands-shape-pin, .islands-shape-label) { transition: opacity 0.45s; }
  .islands.is-risen .islands-shape-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: islands-pulse 2.6s ease-out infinite;
  }
  @keyframes islands-pulse {
    from { opacity: 0.7; transform: scale(0.55); }
    to { opacity: 0; transform: scale(1.2); }
  }
}


/* Page hero */

/* Photo: a village path outside Honiara (srca-village, from SRCA's approved
   images). Small screens get the 720px copy; larger ones the 1200px and
   1920px copies so the full-width banner stays sharp. */
.island-hero {
  --island-photo: url('/img/photos/srca-village-720.webp');
  min-height: clamp(380px, 52vw, 540px);

  background:
    linear-gradient(
      90deg,
      rgba(14, 36, 64, 0.88) 0%,
      rgba(14, 36, 64, 0.55) 55%,
      rgba(14, 36, 64, 0.2) 100%
    ),
    var(--island-photo);

  background-size: cover;
  background-position: center 40%;
}

@media (min-width: 700px) {
  .island-hero { --island-photo: url('/img/photos/srca-village-full.webp'); }
}

@media (min-width: 1200px) {
  .island-hero { --island-photo: url('/img/photos/srca-village-1920.webp'); }
}

.island-hero h1 {
  color: #fff;
}

.island-hero .page-deck {
  color: #fff;
}


/* Shared section styling */

.island-geography,
.island-origin,
.island-programs,
.island-community {
  padding: clamp(40px, 6vw, 76px) 0;
}

.island-intro {
  max-width: 75ch;
  margin-bottom: 28px;
}

.island-geography .section-title,
.island-programs .section-title,
.island-community .section-title {
  max-width: 28ch;
}

.island-geography,
.island-programs {
  background: var(--mist);
}

.island-origin,
.island-community {
  background: #fff;
}


/* Country statistics */

.island-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.island-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 16px;
  text-align: center;
}

.island-fact + .island-fact {
  border-left: 1px solid var(--line);
}

.island-fact strong {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--sun-text);
  line-height: 1;
}

.island-fact span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}


/* Interactive map */

.island-map-card {
  padding: clamp(14px, 3vw, 24px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.island-map-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.island-map-header h3 {
  margin: 0;
}

.island-map {
  width: 100%;
  aspect-ratio: auto;
  height: clamp(300px, 42vw, 490px);
}

.island-map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.island-map-button {
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: #fff;
  font: 600 0.85rem var(--sans);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.island-map-button:not(:disabled):hover {
  background: var(--mist);
}

.island-map-button.is-active,
.island-map-button.is-active:not(:disabled):hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.island-map-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.island-map-description {
  padding: 20px 0 0;
}

.island-map-description h3 {
  margin-bottom: 8px;
}

.island-map-description p:last-child {
  margin-bottom: 0;
}

.island-marker {
  display: block;
  width: 16px;
  height: 16px;
  padding: 0;
  background: var(--navy);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(14, 36, 64, 0.35);
}

.island-marker:hover,
.island-marker:focus-visible {
  background: var(--sun);
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.island-marker-presence {
  width: 30px;
  height: 30px;
  background: var(--sun-text);
  color: #fff;
  font: 700 10px var(--sans);
}


/* Founding story */

.island-origin-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
}

.island-origin-figure {
  margin: 0;
}

.island-origin-figure img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}


/* Program cards */

.island-program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.island-program-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.island-program-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.island-program-copy {
  padding: 20px;
}

.island-program-copy h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.island-program-copy p {
  margin: 0;
  font-size: 0.92rem;
}

.island-program-link {
  margin-top: 28px;
}


/* Community approach */

.island-community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.island-community-grid article {
  padding-top: 20px;
  border-top: 2px solid var(--sun);
}

.island-community-grid h3 {
  margin-bottom: 8px;
}

.island-community-grid p {
  margin-bottom: 0;
}


/* Closing CTA */

.island-cta {
  background: var(--navy-deep);
  color: #fff;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 0;
}

.island-cta h2 {
  margin-bottom: 12px;
  color: #fff;
}

.island-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}


/* Navigation spacing */

@media (min-width: 700px) and (max-width: 1000px) {
  .site-nav,
  .site-nav.is-open {
    gap: 12px;
    font-size: 0.8rem;
  }
}


/* Tablet */

@media (max-width: 900px) {
  .island-program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Mobile */

@media (max-width: 699px) {

  .island-teaser-inner,
  .island-origin-grid {
    grid-template-columns: 1fr;
  }

  .island-teaser-map { width: 100%; max-width: 420px; justify-self: center; }

  .island-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .island-fact:nth-child(3) {
    border-left: 0;
  }

  .island-fact:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .island-map-controls {
    width: 100%;
  }

  .island-map-button {
    flex: 1;
  }

  .island-community-grid {
    gap: 18px;
  }

  .island-community-grid h3 {
    font-size: 1.25rem;
  }

  .island-community-grid p {
    font-size: 0.85rem;
  }

}

@media (max-width: 400px) {

  .island-program-grid,
  .island-community-grid {
    grid-template-columns: 1fr;
  }

}

/* ---------- University projects board (/university-projects) ---------- */

.board-title { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }

.board-hero { padding: 112px 0 40px; border-bottom: 1px solid var(--line); background: var(--mist); }
.board-hero-inner { display: grid; gap: 28px; }
.board-hero h1 { margin-bottom: 14px; font-size: clamp(2.3rem, 5vw, 3.5rem); }
.board-hero-deck { max-width: 54ch; margin: 0; color: var(--navy); font-size: 1.08rem; line-height: 1.55; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 0; }
.hero-facts div { padding: 0 22px; border-left: 1px solid #c6ced8; }
.hero-facts div:first-child { padding-left: 0; border-left: 0; }
.hero-facts dt { color: #637083; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-facts dd { margin: 2px 0 0; color: var(--navy); font: 500 2rem/1.1 var(--serif); }

.board-section { padding: 48px 0 64px; background: #fff; }
.board-top { display: grid; gap: 12px; margin-bottom: 24px; }
.example-flag { max-width: 52ch; margin: 0; color: #637083; font-size: 0.88rem; line-height: 1.5; }

.board-filters { display: grid; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seg-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.seg-group legend, .filter-select > span { display: block; margin: 0 0 8px; padding: 0; color: var(--navy); font-size: 0.8rem; font-weight: 700; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.seg span { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 14px; border: 1px solid #c6ced8; border-radius: var(--radius); background: #fff; color: var(--navy); font-size: 0.88rem; font-weight: 600; transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
.seg small { color: #637083; font-size: 0.8rem; font-weight: 500; }
.seg label:hover span { border-color: var(--navy); }
.seg input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.seg input:checked + span small { color: #c9d3de; }
.seg input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 18px; }
.filter-select select { min-width: 220px; min-height: 40px; padding: 8px 12px; border: 1px solid #c6ced8; border-radius: var(--radius); background: #fff; color: var(--navy); font: 600 0.88rem var(--sans); cursor: pointer; }
.filter-submit { min-height: 40px; padding: 8px 18px; background: #fff; font-size: 0.9rem; cursor: pointer; }
.js .filter-submit { display: none; }
.filter-clear { padding-bottom: 9px; color: var(--navy); font-size: 0.88rem; font-weight: 600; text-decoration-color: var(--sun); }
.filter-clear[hidden], .board-empty[hidden], .project-card[hidden] { display: none; }

.board-count { margin: 18px 0 16px; color: #637083; font-size: 0.85rem; }

.project-grid { display: grid; gap: 16px; }
.project-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-top: 2px solid var(--navy); background: #fff; }
.project-card:is(:hover, :focus-within) { border-top-color: var(--sun); }
.project-card.is-entering { animation: board-card-in 0.3s ease both; }
@keyframes board-card-in { from { opacity: 0; } }
.project-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.project-pillar, .project-status { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase; }
.project-pillar { color: var(--sun-text); }
.project-status { color: #637083; }
.status-open { color: #1e6043; }
.status-in-progress { color: var(--sun-text); }
.status-completed { color: var(--navy); }
.project-card h3 { margin-bottom: 10px; font-size: 1.5rem; }
.project-problem { margin: 0 0 18px; font-size: 0.95rem; line-height: 1.55; }
.project-meta, .project-facts { display: grid; gap: 10px; margin: 0 0 16px; font-size: 0.86rem; }
.project-meta dt, .project-facts dt { color: var(--navy); font-weight: 700; }
.project-meta dd, .project-facts dd { margin: 0; }
.discipline-tags a { color: var(--text); text-decoration: underline; text-decoration-color: #c6ced8; text-underline-offset: 3px; }
.discipline-tags a + a::before { content: ', '; display: inline-block; white-space: pre; color: var(--text); text-decoration: none; }
.discipline-tags a:hover, .discipline-tags a[aria-pressed="true"] { color: var(--navy); text-decoration-color: var(--sun); }
.discipline-tags a[aria-pressed="true"] { font-weight: 700; }
.project-more { margin-top: auto; border-top: 1px solid var(--line); }
.project-more summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding-top: 6px; color: var(--navy); font-size: 0.88rem; font-weight: 700; cursor: pointer; list-style: none; }
.project-more summary::-webkit-details-marker { display: none; }
.project-more summary::after { content: ''; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--sun-text); border-bottom: 2px solid var(--sun-text); transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.project-more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.project-more .project-facts { margin-top: 8px; }
.project-more .card-link { margin-bottom: 6px; font-size: 0.9rem; }
.board-empty { margin: 0; padding: 20px; border: 1px solid var(--line); color: var(--navy); }

.steps-section { background: #fff; border-top: 1px solid var(--line); }
.partner-steps { display: grid; margin-top: 28px; }
.partner-steps li { padding: 18px 0; border-top: 1px solid var(--line); }
.partner-steps h3 { margin-bottom: 6px; font-size: 1.35rem; }
.partner-steps p { max-width: 44ch; margin: 0; font-size: 0.94rem; line-height: 1.55; }

@media (min-width: 700px) {
  .board-hero { padding: 132px 0 52px; }
  .board-top { grid-template-columns: 1fr minmax(0, 0.9fr); gap: 40px; align-items: end; }
  .board-filters { grid-template-columns: auto 1fr; gap: 18px 36px; }
  .filter-row { grid-column: 1 / -1; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .partner-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .partner-steps li { border-top: 2px solid var(--navy); }
}

@media (min-width: 1000px) {
  .board-hero-inner { grid-template-columns: 1fr auto; align-items: end; gap: 60px; }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .seg span, .project-card, .project-more summary::after { transition: none; }
  .project-card.is-entering { animation: none; }
}


/* ---------- Home hero, option A "clean overlay" (views/pages/home.ejs) ---------- */

.hero-clean .hero-img { object-position: 74% 20%; }
.hero-clean .hero-media::after {
  background:
    linear-gradient(0deg, rgba(10, 26, 46, 0.94) 0%, rgba(10, 26, 46, 0.55) 42%, rgba(10, 26, 46, 0.1) 68%, rgba(10, 26, 46, 0.5) 100%);
}
@media (min-width: 900px) {
  .hero-clean .hero-img { object-position: 90% 30%; }
  .hero-clean .hero-media::after {
    background:
      linear-gradient(90deg, rgba(10, 26, 46, 0.9) 0%, rgba(10, 26, 46, 0.6) 38%, rgba(10, 26, 46, 0) 62%),
      linear-gradient(0deg, rgba(10, 26, 46, 0.55) 0%, rgba(10, 26, 46, 0) 35%),
      linear-gradient(180deg, rgba(10, 26, 46, 0.45) 0%, rgba(10, 26, 46, 0) 20%);
  }
}

/* The intro logo lands where the header logo sits (same height and width),
   so the page shows one logo, not two. */
.hero-brand-bar { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; min-height: 68px; }
.hero-clean .hero-brand { margin: 0; }
.hero-clean .hero-logo { width: 150px; }
@media (min-width: 700px) { .hero-clean .hero-logo { width: 190px; } }
.no-js .hero-brand-bar { display: none; }
.no-js .over-hero .brand { visibility: visible; }

.hero-clean h1 { max-width: 14ch; font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.06; }
.hero-clean h1 em { color: var(--sun-soft); }
.hero-clean .hero-info { max-width: 42ch; margin: 16px 0 0; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.hero-clean .hero-actions { gap: 12px; margin-top: 28px; }
.hero-btn-line { gap: 10px; border: 1.5px solid rgba(255, 255, 255, 0.7); color: #fff; }
.hero-btn-line:is(:hover, :focus-visible) { background: #fff; color: var(--navy); }

/* Small text labels above headings were removed site-wide (client feedback:
   they read as filler). These two carry real content, so they stay, in a
   plainer voice: the motto as italic serif, and a back link. */
.motto { margin: 0 0 10px; color: var(--sun-soft); font: italic 400 1.2rem/1.4 var(--serif); }
.back-link { display: inline-flex; gap: 6px; margin-bottom: 14px; color: var(--navy); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--sun-text); }
