*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:82px}body{margin:0;color:#122d4d;font:16px/1.7 Inter,"PingFang HK","Microsoft JhengHei",sans-serif}a{color:inherit;text-decoration:none}header{display:flex;align-items:center;justify-content:space-between;padding:12px 6vw;background:#fff;position:sticky;top:0;z-index:5;border-bottom:1px solid #dce6f1}header img{width:100px;display:block;mix-blend-mode:multiply}nav{display:flex;gap:2.5vw;font-size:14px;font-weight:650}nav a:hover,article a:hover{color:#087bcf}.navcta,.btn,button{display:inline-flex;gap:22px;align-items:center;justify-content:center;background:#194581;color:white;padding:10px 20px;border-radius:5px;font-weight:700;border:0;cursor:pointer}.hero{min-height:570px;height:min(75vh,780px);position:relative;overflow:hidden;display:flex;align-items:center;color:white;background:#082549}.scene{position:absolute;inset:-3%;background:linear-gradient(90deg,#051932dc,transparent 89%),url(assets/harbour.webp) center/cover;transform:scale(var(--zoom,1))}.heroCopy{position:relative;padding:4vw 7vw;animation:rise .9s ease-out}.hero small:before{content:'';display:inline-block;width:34px;height:2px;background:#72d8ff;vertical-align:middle;margin-right:12px}small{font-size:12px;font-weight:750;letter-spacing:.17em}.hero .hero-title{font-size:clamp(46px,5.8vw,94px);line-height:1.15;letter-spacing:-.055em;margin:20px 0}.hero .hero-title span{color:#83d6ff}.hero h1{font-size:clamp(16px,1.4vw,24px);margin:0 0 30px}.btn{background:#fff;color:#133866;padding:14px 21px}.down{position:absolute;bottom:35px;right:6vw;border:1px solid #ffffff88;border-radius:50%;padding:7px 17px;color:white}.trail{position:absolute;bottom:0;height:3px;width:38%;background:linear-gradient(90deg,transparent,#61ccff,#fff,transparent);animation:travel 4s infinite ease-in-out}.wrap{width:min(1190px,88%);margin:auto}.feature{padding:84px 0;display:grid;grid-template-columns:1fr 1fr;gap:6vw;align-items:center}.photo{overflow:hidden;border-radius:4px}.photo img{display:block;width:100%;height:420px;object-fit:cover;transition:transform 1.5s}.photo:hover img{transform:scale(1.07)}small{color:#326598}.hero small,.case small,footer small{color:#badafa}h2{font-size:clamp(30px,3.3vw,56px);letter-spacing:-.05em;line-height:1.2;margin:14px 0 22px}p{color:#52667c}.hero .hero-title,.case p{color:inherit}summary{cursor:pointer;padding:12px 0;font-weight:700}details{border-top:1px solid #ccd8e4}details p{margin:0 0 14px}.case{background:linear-gradient(115deg,#0d284c,#154c8e);color:white;padding:64px 0}.case strong{display:block;font-size:clamp(54px,9.3vw,145px);line-height:1;letter-spacing:-.065em}.case em{font-size:.38em;letter-spacing:0;font-style:normal;margin-right:.25em}.case p{margin-bottom:12px}.casefoot{margin-top:27px;padding-top:19px;border-top:1px solid #ffffff42;display:flex;align-items:center;justify-content:space-between;gap:15px}.casefoot button{background:white;color:#153962}.clients,.funds{padding:66px 0}.logos{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid #d7e1ed;border-left:1px solid #d7e1ed}.logos figure{margin:0;padding:20px 10px 12px;text-align:center;border:solid #d7e1ed;border-width:0 1px 1px 0}.logos img{width:82%;height:54px;object-fit:contain;transition:transform .3s}.logos figure:hover img{transform:scale(1.07)}figcaption{font-size:12px;color:#425873;margin-top:10px}.funds{background:#eff5fa}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}article img{width:100%;aspect-ratio:1.6;object-fit:cover;border-radius:4px}article h3{margin:.6em 0 .25em}article p{font-size:15px;margin:.3em 0 1em}article a{font-weight:700;color:#194581}footer{background:#102e51;color:white;padding:46px 6%;display:flex;gap:18px;align-items:center;justify-content:space-between}footer h2{font-size:clamp(23px,2.5vw,38px);margin-bottom:0}dialog{border:0;border-radius:8px;padding:24px;width:min(920px,94vw)}dialog img{width:100%}dialog::backdrop{background:#071e39aa}body .enter{animation:rise .75s both}@keyframes rise{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}@keyframes travel{from{left:-40%}to{left:102%}}@media(max-width:800px){nav{display:none}.hero{min-height:480px;height:68vh}.feature{grid-template-columns:1fr;padding:48px 0}.photo img{height:240px}.logos{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:1fr 1fr}.casefoot,footer{align-items:flex-start;flex-direction:column}.clients,.funds{padding:44px 0}.heroCopy{padding:6vw}.case{padding:40px 0}.navcta{font-size:14px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important;transform:none!important}}

/* Shared navigation */
.site-header {
  gap: clamp(12px, 2vw, 32px);
  padding-inline: 4vw;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 24px);
  font-size: clamp(12px, 1vw, 15px);
}
.site-header a { white-space: nowrap; }
.site-header .primary-fund, .related-links .primary-fund {
  color: #153e79;
  font-weight: 900;
}
.site-header [aria-current="page"] {
  color: #0c65b5;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.menu-toggle { display: none; }
.reading-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: #43b7ff;
  transform: scaleX(var(--reading, 0));
  transform-origin: left;
  pointer-events: none;
}
:focus-visible { outline: 3px solid #28a0e6; outline-offset: 5px; }

/* Scroll-linked hero, light passes and section entrances */
.scene {
  inset: -7%;
  transform: translate3d(var(--scene-x, 0px), var(--scene-y, 0px), 0) scale(var(--zoom, 1));
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, #0519329c);
  pointer-events: none;
}
.heroCopy, .down { z-index: 2; }
.heroCopy { translate: 0 var(--copy-y, 0px); }
.trail { z-index: 3; }
.harbour-light {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 36%, #73d9ff18 46%, #b0ecff4d 49%, #2a9fff18 52%, transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: harbour-sweep 7s ease-in-out infinite;
}
.down { animation: guide 2.8s ease-in-out 3; }
@keyframes harbour-sweep {
  0%, 14% { transform: translateX(-95%); opacity: 0; }
  30%, 66% { opacity: 1; }
  86%, 100% { transform: translateX(95%); opacity: 0; }
}
@keyframes guide {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 6px; }
}
.photo img { object-position: center; }
.feature .photo img {
  transform: scale(calc(1.05 + var(--warehouse-scale, 0))) translateY(var(--warehouse-y, 0px));
}
.feature .photo:hover img { transform: scale(calc(1.09 + var(--warehouse-scale, 0))); }
.feature .photo img { transition: none; }
.case { position: relative; isolation: isolate; overflow: hidden; }
.case::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 83% 60%, #357fb97a 0%, transparent 55%);
  pointer-events: none;
}
.case strong.enter { animation: case-rise .8s cubic-bezier(.19, 1, .22, 1) both; }
@keyframes case-rise {
  from { opacity: .25; transform: translateY(16px); clip-path: inset(0 100% 0 0); }
  to { opacity: 1; transform: none; clip-path: inset(0); }
}
.reveal-ready .enter {
  animation: rise .72s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}
.logos figure {
  min-height: 117px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: white;
  transition: background .25s;
}
.logos figure:hover { background: #f5f9fd; }
.logos img { width: 100%; max-width: 180px; height: 72px; }
.logos figure:last-child img { mix-blend-mode: multiply; }
.card-photo { overflow: hidden; border-radius: 5px; }
.card-photo img {
  display: block;
  transition: transform .52s cubic-bezier(.22, 1, .36, 1);
}
.fund-card { display: block; height: 100%; }
.fund-card:hover img, .fund-card:focus-visible img { transform: scale(1.08); }
.fund-card p { min-height: 3.3em; }
.fund-link { font-weight: 750; color: #194581; }
.fund-link span { display: inline-block; transition: transform .25s; }
.fund-card:hover .fund-link span { transform: translate(3px, -3px); }

/* Fund detail pages */
.fund-hero {
  background: #0c2848;
  color: white;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.fund-hero-image {
  position: absolute;
  inset: 0 0 0 40%;
  z-index: -1;
}
.fund-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom, 1));
}
.fund-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0c2848, #0c284860 43%, #0c284810);
}
.fund-hero-content { padding-block: clamp(44px, 7vw, 105px); }
.fund-hero h1 {
  font-size: clamp(34px, 5.3vw, 78px);
  letter-spacing: -.06em;
  line-height: 1.12;
  margin: 22px 0 16px;
}
.breadcrumb { color: #b8dcfb; font-size: 14px; font-weight: 700; }
.fund-hero p { max-width: 37ch; color: #e0ebf8; margin: 0 0 22px; }
.fund-hero .fund-tagline {
  font-size: clamp(20px, 2.2vw, 30px);
  color: white;
  font-weight: 700;
  margin-bottom: 8px;
}
.fund-audience, .fund-projects, .fund-prep, .related-funds { padding-block: clamp(38px, 5vw, 72px); }
.fund-audience p { max-width: 65ch; margin: 0; }
.fund-page h2 { font-size: clamp(27px, 3vw, 44px); }
.fund-projects, .related-funds { background: #eff5fa; }
.project-grid, .fund-prep { display: grid; gap: 20px; }
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card {
  padding: 22px;
  background: white;
  border-top: 3px solid #2465a6;
  border-radius: 4px;
}
.project-card h3 { margin-top: 0; }
.project-card p { margin-bottom: 0; }
.fund-prep { grid-template-columns: 1fr 1fr; align-items: center; }
.fund-prep ul { padding-left: 1.25em; }
.fund-prep li { margin: .4em 0; }
.fund-action { padding: 24px; background: #e9f4ff; border-radius: 6px; }
.fund-action h3 { margin: 0; }
.fund-references { font-size: 14px; padding: 0 0 40px; }
.fund-references p { margin-bottom: 4px; }
.fund-references a { text-decoration: underline; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a {
  padding: 9px 14px;
  background: white;
  border-radius: 4px;
  border: 1px solid #cfdeed;
}

@media (max-width: 1080px) {
  .site-header { justify-content: flex-start; }
  .site-header .navcta { margin-left: auto; }
  .menu-toggle {
    display: inline-flex;
    background: #edf4fb;
    color: #123f79;
    padding: 8px 12px;
    gap: 8px;
  }
  .site-header nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: 14px 4vw;
    background: white;
    flex-wrap: wrap;
    box-shadow: 0 12px 20px #0a234b1f;
    justify-content: flex-start;
    gap: 3px 20px;
    font-size: 15px;
  }
  .site-header nav[data-open] { display: flex; }
  .site-header nav a { padding: 9px 0; }
}
@media (max-width: 620px) {
  .site-header { gap: 8px; }
  .site-header img { width: 80px; }
  .site-header .navcta { padding: 8px 10px; font-size: 12px; }
  .fund-hero-image { inset: 0; }
  .fund-hero-image::after { background: linear-gradient(90deg, #0c2848ee, #0c2848a3); }
  .project-grid, .fund-prep { grid-template-columns: 1fr; }
  .logos figure { min-height: 90px; padding: 12px; }
  .logos img { height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .heroCopy, .down { translate: none; }
  .reading-progress { display: none; }
}

@media (max-width: 620px) {
  .funds .cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    padding: 4px 4px 16px;
    scrollbar-color: #3d7fb7 #dce8f3;
    scrollbar-width: thin;
  }
  .funds .cards article {
    flex: 0 0 76%;
    scroll-snap-align: start;
  }
  .fund-card p { min-height: 0; }
}
@media (max-width: 620px) {
  .hero .hero-title { font-size: clamp(33px, 9.6vw, 46px); }
}

.hero h1 { font-weight: 500; line-height: 1.55; }
.hero .hero-title { font-weight: 750; }
.site-header img, .card-photo img, dialog img { height: auto; }
.funding-faq { padding-block: clamp(42px, 6vw, 76px); }
.funding-faq details p { max-width: 66ch; }
.funding-faq a { color: #194581; text-decoration: underline; text-underline-offset: 3px; }
