/* =============================================================
   AJK Welfare — Homepage
   Layout mirrors Figma frame "Desktop - 6" (1440 × 5693)
   ============================================================= */

:root{
  --brand:#0071e3;
  --brand-deep:#0a2540;
  --ink:#1d1d1f;
  --muted:#6e6e73;
  --soft:#f5f5f7;
  --tertiary:#fbfbfd;
  --footer:#fafafb;
  --line:#e8e8ed;
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --font-display:'Inter Tight','Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --font-alt:'Poppins','Inter',sans-serif;
  --page:1309px;
  --ease:cubic-bezier(.22,.68,.18,1);
}

*,*::before,*::after{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  scroll-padding-top:132px;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:var(--font);
  font-size:17px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
h1,h2,h3,p{margin:0}

.container{
  width:min(var(--page),calc(100% - 132px));
  margin-inline:auto;
}

.skip-link{
  position:absolute;
  left:16px;top:-80px;
  z-index:300;
  padding:12px 20px;
  border-radius:10px;
  background:var(--brand);
  color:#fff;
  font-size:14px;
  font-weight:600;
  transition:top .2s;
}
.skip-link:focus{top:16px}

/* -------------------------------------------------------------
   Buttons
   ------------------------------------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid transparent;
  border-radius:80px;
  padding:15px 23px;
  font-size:17px;
  font-weight:500;
  line-height:22px;
  letter-spacing:-.002em;
  white-space:nowrap;
  cursor:pointer;
  transition:background .25s var(--ease),color .25s var(--ease),border-color .25s var(--ease),transform .25s var(--ease),box-shadow .25s var(--ease);
}
.btn-primary{
  background:var(--brand);
  color:#fff;
}
.btn-primary:hover{
  background:#0062c4;
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(0,113,227,.28);
}
.btn-outline{
  border-color:var(--brand-deep);
  color:var(--ink);
  background:transparent;
}
.btn-outline:hover{
  background:var(--brand-deep);
  color:#fff;
  transform:translateY(-1px);
}
.btn-header{
  font-size:14px;
  line-height:20px;
  padding:15px 18px;
}
.btn-ghost{
  border-color:rgba(255,255,255,.55);
  color:#fff;
  background:rgba(255,255,255,.04);
}
.btn-ghost:hover{
  background:#fff;
  color:var(--brand);
  border-color:#fff;
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:3px;
}

/* -------------------------------------------------------------
   Header
   ------------------------------------------------------------- */
.site-header{
  position:sticky;
  top:0;
  z-index:120;
  background:rgba(255,255,255,.86);
  -webkit-backdrop-filter:saturate(180%) blur(16px);
  backdrop-filter:saturate(180%) blur(16px);
  border-bottom:1px solid transparent;
  transition:border-color .3s,box-shadow .3s,background .3s;
}
.site-header.is-scrolled{
  border-bottom-color:rgba(0,0,0,.07);
  box-shadow:0 8px 30px rgba(10,37,64,.06);
}
.header-inner{
  display:flex;
  align-items:center;
  height:118px;
  transition:height .3s var(--ease);
}
.site-header.is-scrolled .header-inner{height:88px}

.brand{display:inline-flex;align-items:center;flex:none}
.brand img{width:166px;height:auto}

.main-nav{
  display:flex;
  align-items:center;
  gap:36px;
  margin:0 auto;
}
.main-nav a{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  font-weight:500;
  line-height:20px;
  color:var(--ink);
  letter-spacing:-.001em;
  padding:6px 0;
  transition:color .2s;
}
.main-nav a::after{display:none}
.main-nav a:hover{color:var(--brand)}
.main-nav a.is-active{color:var(--brand)}
.main-nav .has-caret img{width:12px;height:10px;margin-top:2px;opacity:.85}

.header-actions{display:flex;align-items:center;gap:12px;flex:none}
.header-actions .btn-primary{box-shadow:0 4px 21px rgba(0,0,0,.18)}

.menu-toggle{
  display:none;
  width:44px;height:44px;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  cursor:pointer;
  padding:0;
  place-items:center;
}
.menu-toggle span{
  display:block;
  width:18px;height:1.6px;
  background:var(--ink);
  border-radius:2px;
  margin:4px auto;
  transition:transform .25s,opacity .25s;
}

/* Mobile drawer */
.mobile-menu{
  position:fixed;
  inset:0;
  z-index:200;
  background:#fff;
  padding:26px 24px 40px;
  display:flex;
  flex-direction:column;
  transform:translateX(100%);
  visibility:hidden;
  transition:transform .42s var(--ease),visibility .42s;
  overflow-y:auto;
}
.mobile-menu.is-open{transform:none;visibility:visible}
body.menu-open{overflow:hidden}
.mobile-menu-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
.mobile-menu-head .brand img{width:150px}
.menu-close{
  width:44px;height:44px;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  display:grid;place-items:center;
  cursor:pointer;
}
.menu-close svg{width:20px;height:20px}
.mobile-nav{
  display:flex;
  flex-direction:column;
  margin-top:44px;
  border-top:1px solid var(--line);
}
.mobile-nav a{
  padding:20px 2px;
  border-bottom:1px solid var(--line);
  font-size:22px;
  font-weight:500;
  letter-spacing:-.02em;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.mobile-nav a::after{
  content:"→";
  color:var(--muted);
  font-size:18px;
}
.mobile-menu-foot{margin-top:auto;padding-top:40px;display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.mobile-menu-foot p{color:var(--muted);font-size:15px}

/* -------------------------------------------------------------
   Hero
   ------------------------------------------------------------- */
.hero{
  position:relative;
  padding:95px 0 88px;
  overflow:hidden;
}
.hero-grid{
  position:absolute;
  top:0;
  left:calc(25% + 83.9px);
  width:996px;
  height:619px;
  background:url("img/latest/grid.svg") no-repeat center/100% 100%;
  pointer-events:none;
  z-index:0;
}
.hero .container{position:relative;z-index:1}

.hero-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:48px;
}
.hero h1{
  font-family:var(--font-display);
  font-size:clamp(42px,5.28vw,76px);
  line-height:1.105;
  letter-spacing:-.032em;
  font-weight:600;
  color:var(--ink);
  max-width:700px;
}
.hero-copy{
  width:566px;
  flex:none;
  padding-top:5px;
}
.hero-copy p{
  font-size:clamp(16px,1.39vw,20px);
  line-height:1.5;
  letter-spacing:-.006em;
  color:var(--ink);
  max-width:566px;
}
.hero-actions{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:12px;
  flex-wrap:wrap;
}

.hero-media{
  position:relative;
  margin-top:65px;
  aspect-ratio:1309/728;
  border-radius:42px;
  overflow:hidden;
  background:#e9edf3;
  box-shadow:
    -12px 10px 33px rgba(0,0,0,.05),
    -47px 38px 60px rgba(0,0,0,.04),
    -105px 86px 81px rgba(0,0,0,.03);
  isolation:isolate;
}
.hero-slides{position:absolute;inset:0}
.hero-slide{
  position:absolute;
  left:50%;top:50%;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transform:translate(calc(-50% - 1.8%),calc(-50% - 4.4%)) scale(calc(var(--hero-zoom,1.2) * 1.04));
  transition:opacity .9s var(--ease),transform 6s linear;
  will-change:opacity,transform;
}
.hero-slide.is-active{
  opacity:1;
  transform:translate(calc(-50% - 1.8%),calc(-50% - 4.4%)) scale(var(--hero-zoom,1.2));
}
.hero-dots{
  position:absolute;
  right:30px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:6px;
  z-index:2;
}
.hero-dot{
  width:20px;height:20px;
  padding:0;
  border:1px solid transparent;
  border-radius:50%;
  background:transparent;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:border-color .25s;
}
.hero-dot span{
  width:6px;height:6px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 2px rgba(0,0,0,.35);
  transition:transform .25s;
}
.hero-dot:hover span{transform:scale(1.25)}
.hero-dot.is-active{border-color:#fff}
.hero-dot.is-active span{transform:scale(1.05)}

/* -------------------------------------------------------------
   Mission
   ------------------------------------------------------------- */
.mission{
  position:relative;
  padding-top:63px;
  background:#fafafb;
  overflow:hidden;
}
.mission-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:48px;
}
.eyebrow{
  font-size:14px;
  font-weight:600;
  line-height:18px;
  letter-spacing:1.12px;
  text-transform:uppercase;
  color:var(--brand);
}
.mission h2{
  margin-top:7px;
  font-family:var(--font-display);
  font-size:clamp(32px,3.9vw,56px);
  line-height:1.12;
  letter-spacing:-.028em;
  font-weight:600;
  max-width:560px;
}
.mission-copy{
  width:688px;
  flex:none;
  padding-top:26px;
  font-size:21.5px;
  line-height:31px;
  letter-spacing:-.006em;
  color:var(--muted);
}

.mission-collage{
  margin-top:-41px;
  position:relative;
  isolation:isolate;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  cursor:ew-resize;
}
.mission-collage::-webkit-scrollbar{display:none}
.mission-collage:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:-4px;
}
.collage-track{
  position:relative;
  width:125.08vw;
  aspect-ratio:1801.1/474;
  overflow:hidden;
}
.collage-item{
  position:absolute;
  margin:0;
}
.collage-item img{
  position:absolute;
  max-width:none;
  display:block;
  pointer-events:none;
}
.collage-item.is-flat{
  border:2px solid var(--brand);
  border-radius:13px;
  overflow:hidden;
  box-shadow:15px 19px 24px rgba(0,0,0,.03),4px 5px 13px rgba(0,0,0,.03);
}
.collage-item.is-flat img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Placement measured from the Figma artboard: each card's bounding box,
   a uniform 24.3-unit gap, in a 1801.1-unit strip (left edge to c7's right). */
.c1{left:0;top:10.127%;width:14.025%;height:86.920%}
.c2{left:15.385%;top:13.819%;width:13.825%;height:80.696%}
.c3{left:30.487%;top:19.515%;width:11.909%;height:69.304%}
.c4{left:43.757%;top:20.042%;width:11.798%;height:66.772%}
.c5{left:56.915%;top:18.249%;width:11.854%;height:68.565%}
.c6{left:70.074%;top:12.342%;width:14.630%;height:79.114%}
.c7{left:86.064%;top:8.333%;width:13.936%;height:85.759%}

/* the rotated artboard PNGs are scaled uniformly, so their baked
   borders and rounded corners keep their true proportions */
.c1 img{left:-3.103%;top:-1.691%;width:126.21%;height:117.77%}
.c2 img{left:-3.614%;top:-2.092%;width:130.52%;height:122.22%}
.c3 img{left:-4.190%;top:-2.430%;width:135.57%;height:125.78%}
.c5 img{left:-4.216%;top:-2.460%;width:135.78%;height:125.94%}
.c6 img{left:-3.410%;top:-2.130%;width:128.80%;height:122.45%}
.c7 img{left:-3.080%;top:-1.690%;width:126.02%;height:117.88%}

/* -------------------------------------------------------------
   Impact
   ------------------------------------------------------------- */
.impact{
  padding:51px 0 58px;
  text-align:center;
}
.impact h2{
  margin-top:4px;
  font-family:var(--font-display);
  font-size:clamp(32px,3.9vw,56px);
  line-height:1.07;
  letter-spacing:-.028em;
  font-weight:600;
  color:#000;
}
.impact-head > p:last-child{
  width:min(860px,100%);
  margin:4px auto 0;
  font-size:clamp(16px,1.39vw,20px);
  line-height:1.5;
  letter-spacing:-.006em;
  color:var(--muted);
}

.stat-grid{
  margin-top:34px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:11px;
  width:calc(100% + 2px);
  margin-left:-1px;
}
.stat-card{
  position:relative;
  aspect-ratio:317/412;
  border:2px solid var(--brand);
  border-radius:13px;
  overflow:hidden;
  background:#dfe5ec;
  text-align:left;
  isolation:isolate;
}
.stat-card > img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .8s var(--ease);
}
.stat-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,0) 55%,rgba(0,0,0,.15) 72%,rgba(0,0,0,.84) 100%);
  z-index:1;
}
.stat-card:hover > img{transform:scale(1.045)}
.stat-copy{
  position:absolute;
  left:15px;
  right:15px;
  bottom:10px;
  z-index:2;
  color:#fff;
}
.stat-copy strong{
  display:block;
  font-family:var(--font-display);
  font-size:clamp(26px,2.78vw,40px);
  line-height:1.15;
  letter-spacing:-.02em;
  font-weight:600;
}
.stat-copy span{
  display:block;
  margin-top:0;
  font-size:clamp(13px,1.18vw,17px);
  line-height:1.53;
  font-weight:500;
  letter-spacing:-.002em;
}

/* -------------------------------------------------------------
   Projects
   ------------------------------------------------------------- */
.projects{
  background:#fafafb;
  padding:42px 0 44px;
}
.projects-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:48px;
}
.projects h2{
  margin-top:7px;
  font-family:var(--font-display);
  font-size:clamp(32px,3.9vw,56px);
  line-height:1.07;
  letter-spacing:-.028em;
  font-weight:600;
}
.projects-head > p{
  width:650px;
  flex:none;
  padding-top:25px;
  font-size:clamp(17px,1.39vw,20px);
  line-height:1.45;
  color:var(--muted);
  font-weight:500;
  letter-spacing:-.005em;
}

.project-grid{
  margin-top:40px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:17px;
}
.project-card{display:block;min-width:0}
.project-media{
  aspect-ratio:315.93/380.07;
  border:2px solid var(--brand);
  border-radius:3px;
  overflow:hidden;
  background:#dfe5ec;
}
.project-media img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .7s var(--ease);
}
.food-pack-img{object-position:12% 50%}
.project-card:hover .project-media img{transform:scale(1.04)}
.project-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:6px;
}
.project-label h3{
  font-size:clamp(15px,1.25vw,18px);
  font-weight:700;
  letter-spacing:-.01em;
  line-height:1.29;
  color:#000;
}
.project-label img{
  width:13.5px;height:13.5px;
  flex:none;
  transition:transform .35s var(--ease);
}
.project-card:hover .project-label img{transform:rotate(90deg)}
.center-cta{margin-top:42px;text-align:center}

/* -------------------------------------------------------------
   Gallery
   ------------------------------------------------------------- */
.gallery{
  background:#fafafb;
  padding:46px 0 49px;
}
.gallery-head{
  text-align:center;
  margin-bottom:30px;
}
.gallery h2{
  font-family:var(--font-display);
  font-size:clamp(38px,3.9vw,56px);
  line-height:1.07;
  letter-spacing:-.028em;
  font-weight:600;
}
.gallery-head p{
  margin-top:1px;
  font-size:clamp(16px,1.39vw,20px);
  line-height:1.5;
  letter-spacing:-.006em;
  color:#686868;
}

.gallery-rail{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:369px;
  overflow:hidden;
}
.gallery-shot{
  margin:0;
  position:relative;
  flex:none;
  overflow:hidden;
  background:#e4e8ed;
}
.gallery-shot img{
  position:absolute;
  inset:0;
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .9s var(--ease);
}
.shot-fade{opacity:0;transition:opacity .55s var(--ease)}
.shot-fade.is-in{opacity:1}
.gallery-shot:hover img{transform:scale(1.03)}
.g-left,.g-right{width:518px;height:368px}
.g-center{width:533px;height:329px}

.gallery-nav{
  position:absolute;
  top:50%;
  z-index:3;
  width:52px;height:52px;
  padding:0;
  border:1px solid rgba(0,0,0,.06);
  border-radius:50%;
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  color:var(--ink);
  display:grid;
  place-items:center;
  cursor:pointer;
  opacity:0;
  transform:translateY(-50%);
  transition:opacity .3s var(--ease),background .25s,transform .25s var(--ease),box-shadow .25s;
  box-shadow:0 6px 20px rgba(10,37,64,.10);
}
.gallery-nav svg{width:20px;height:20px}
.gallery-prev{left:28px}
.gallery-next{right:28px}
.gallery-rail:hover .gallery-nav,
.gallery-nav:focus-visible{opacity:1}
.gallery-nav:hover{background:#fff;transform:translateY(-50%) scale(1.06);box-shadow:0 10px 26px rgba(10,37,64,.16)}
.gallery-cta{margin-top:30px;text-align:center}

/* -------------------------------------------------------------
   Ways to help
   ------------------------------------------------------------- */
.involved{
  padding:144px 0 0;
}
.involved-head{text-align:center}
.involved h2{
  margin-top:6px;
  font-family:var(--font-display);
  font-size:clamp(32px,3.9vw,56px);
  line-height:1.07;
  letter-spacing:-.028em;
  font-weight:600;
}
.involved-head > p:last-child{
  width:min(1150px,100%);
  margin:12px auto 0;
  font-size:clamp(17px,1.46vw,21px);
  line-height:1.5;
  letter-spacing:-.006em;
  color:var(--muted);
}
.involved-grid{
  margin-top:48px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.involved-card{
  position:relative;
  background:var(--tertiary);
  border-radius:18px;
  min-height:167px;
  padding:29px 25px 58px;
  transition:background .3s var(--ease),transform .3s var(--ease),box-shadow .3s var(--ease);
}
.involved-card h3{
  font-size:20.5px;
  line-height:1.25;
  font-weight:600;
  color:var(--brand-deep);
  letter-spacing:-.01em;
}
.involved-card p{
  margin-top:9px;
  font-size:15.35px;
  line-height:1.4;
  color:#6e7078;
  max-width:358px;
}
.involved-card a{
  position:absolute;
  left:25px;
  bottom:19px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14.33px;
  font-weight:500;
  color:var(--brand);
}
.involved-card a span{
  display:inline-block;
  transition:transform .3s var(--ease);
}
.involved-card:hover{
  background:#f4f8ff;
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(10,37,64,.07);
}
.involved-card:hover a span{transform:translateX(4px)}

/* -------------------------------------------------------------
   CTA
   ------------------------------------------------------------- */
.cta{
  padding-top:78px;
  padding-bottom:118px;
  background:#fff;
  position:relative;
}
.cta-panel{
  position:relative;
  width:min(var(--page),calc(100% - 132px));
  margin-inline:auto;
  min-height:376px;
  border-radius:24px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:56px 60px;
  color:#fff;
  isolation:isolate;
}
.cta-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background:url("img/latest/cta-panel2.webp") center/cover no-repeat;
  z-index:-2;
}
.cta-panel::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(0,85,190,.25),rgba(0,113,227,.12) 50%,rgba(0,85,190,.25));
  z-index:-1;
}
.cta h2{
  font-family:var(--font-display);
  font-size:clamp(34px,3.9vw,56px);
  line-height:1.07;
  letter-spacing:-.028em;
  font-weight:600;
  color:#fff;
}
.cta-copy p{
  width:min(1140px,100%);
  margin:21px auto 0;
  font-size:clamp(16px,1.39vw,20px);
  line-height:1.5;
  letter-spacing:-.006em;
  color:#fff;
  font-weight:500;
}
.cta-copy .btn{margin-top:37px;padding:15px 20px}
.cta-rule{display:none}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.site-footer{
  background:var(--footer);
  padding-top:32px;
  overflow:hidden;
  position:relative;
}
.footer-inner{
  width:min(var(--page),calc(100% - 132px));
  margin-inline:auto;
  padding-left:36px;
}
.footer-grid{
  display:grid;
  grid-template-columns:335px 335px 335px 1fr;
  align-items:start;
}
.footer-brand img{width:143px;height:auto}
.footer-about p{
  margin-top:16px;
  width:259px;
  font-family:var(--font-alt);
  font-size:16px;
  line-height:1.5;
  color:var(--ink);
}
.footer-col{padding-top:24px;min-width:0}
.footer-col h3{
  font-size:16px;
  line-height:22px;
  font-weight:700;
  color:var(--brand);
  letter-spacing:-.005em;
}
.footer-socials h3{font-weight:400}
.contact-list{
  list-style:none;
  margin:26px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:23px;
}
.contact-list li{
  display:flex;
  align-items:center;
  gap:16px;
  font-family:var(--font-alt);
  font-size:16px;
  line-height:1.5;
  color:var(--ink);
}
.contact-list img{width:24px;height:24px;flex:none}
.contact-list a{transition:color .2s}
.contact-list a:hover{color:var(--brand)}
.social-row{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:26px;
}
.social-row a{
  display:block;
  width:40px;height:40px;
  border-radius:50%;
  transition:transform .28s var(--ease);
}
.social-row a:hover{transform:translateY(-3px)}.social-row img{width:40px;height:40px}
.social-tik{
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--brand);
  color:#fff;
  font-size:14px;
  font-weight:700;
  line-height:1;
  letter-spacing:.2px;
}
.social-row .social-tik{display:grid;place-items:center}
.footer-app .play-badge{display:inline-block;margin-top:5px}
.play-badge img{width:234px;height:70px;border-radius:9px}

.footer-gallery{
  margin-top:38px;
  height:218px;
  overflow:hidden;
  position:relative;
}
.footer-gallery-track{
  position:relative;
  left:-29px;
  display:flex;
  align-items:flex-start;
  gap:30px;
  width:max-content;
}
.fg{
  width:157px;
  height:189px;
  flex:none;
  object-fit:cover;
  border-radius:19px;
  transform:translateY(var(--fy,0));
}
.fg:nth-child(3n){height:198px}
.fg-1{--fy:69px}
.fg-2{--fy:16px}
.fg-3{--fy:109px}
.fg-4{--fy:55px}
.fg-5{--fy:87px}
.fg-6{--fy:10px}
.fg-7{--fy:84px}
.fg-8{--fy:72px}
.fg-9{--fy:93px}

/* -------------------------------------------------------------
   Reveal
   ------------------------------------------------------------- */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .8s var(--ease),transform .8s var(--ease);
}
.reveal[data-delay="1"]{transition-delay:.1s}
.reveal[data-delay="2"]{transition-delay:.2s}
.reveal[data-delay="3"]{transition-delay:.3s}
.reveal.is-visible{opacity:1;transform:none}

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */
@media (max-width:1240px){
  .container,
  .cta-panel,
  .footer-inner{width:calc(100% - 88px)}
  .main-nav{gap:26px}
  .hero-copy{width:46%}
  .mission-copy{width:52%}
  .projects-head > p{width:48%}
  .footer-grid{grid-template-columns:1.15fr 1fr 1fr 1fr}
  .footer-inner{padding-left:0}
  .hero-grid{left:32%;width:75%;height:auto;aspect-ratio:996/619}
  .mission-collage{margin-top:16px}
}

@media (max-width:1100px){
  .main-nav{display:none}
  .menu-toggle{display:grid}
  .header-inner{height:92px}
  .site-header.is-scrolled .header-inner{height:76px}
  .header-actions{margin-left:auto;gap:14px}
  .hero{padding-top:64px;padding-bottom:64px}
  .hero-grid{left:40%;width:70%}
  .mission{padding-top:52px}
  .mission-collage{margin-top:64px}
  .impact{padding:44px 0 48px}
  .projects{padding:38px 0 40px}
  .project-grid{margin-top:56px}
  .involved{padding-top:96px}
  .involved-head > p:last-child{width:min(820px,100%)}
  .footer-grid{grid-template-columns:1.2fr 1fr 1fr;gap:0}
  .footer-app{grid-column:1/-1;padding-top:36px}
}

@media (max-width:860px){
  .container,
  .cta-panel,
  .footer-inner{width:calc(100% - 48px)}

  .hero-top{flex-direction:column;gap:28px}
  .hero h1{max-width:100%}
  .hero-copy{width:100%;max-width:620px;padding-top:0}
  .hero-media{margin-top:40px;aspect-ratio:4/3;border-radius:28px}
  .hero-dots{right:16px}
  .hero-grid{display:none}

  .mission-head{flex-direction:column;gap:24px}
  .mission-copy{width:100%;max-width:700px;padding-top:0}
  .mission h2{max-width:560px}
  .mission-collage{margin-top:48px}
  .collage-track{width:237.5vw;aspect-ratio:1801.1/474}

  .stat-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .stat-copy strong{font-size:30px}
  .stat-copy span{font-size:14px}

  .projects-head{flex-direction:column;gap:16px}
  .projects-head > p{width:100%;max-width:640px;padding-top:0;font-size:17px}
  .project-grid{grid-template-columns:repeat(2,1fr);gap:18px;margin-top:36px}
  .project-label h3{font-size:16px}

  .gallery-rail{
    justify-content:center;
    height:auto;
    gap:12px;
    overflow:hidden;
  }
  .gallery-shot{height:auto}
  .g-left,.g-right{width:78vw;aspect-ratio:518/368}
  .g-center{width:86vw;aspect-ratio:533/329}
  .gallery-nav{opacity:1;width:42px;height:42px}
  .gallery-nav svg{width:17px;height:17px}
  .gallery-prev{left:10px}
  .gallery-next{right:10px}

  .involved{padding-top:80px}
  .involved-grid{grid-template-columns:1fr;gap:12px;margin-top:32px}
  .involved-card{min-height:160px}

  .cta{padding-top:56px}
  .cta-panel{min-height:0;padding:48px 24px;border-radius:20px}
  .cta-copy p{font-size:16px;margin-top:16px}
  .cta-copy .btn{margin-top:26px}

  .footer-grid{grid-template-columns:1fr 1fr;gap:8px 24px}
  .footer-col{padding-top:8px}
  .footer-about p{width:min(290px,100%);margin-bottom:20px}
  .footer-brand img{width:150px}
  .footer-app{grid-column:auto;padding-top:8px}
  .footer-gallery{margin-top:44px;height:180px}
  .footer-gallery-track{gap:18px}
  .fg{width:128px;height:160px}
  .fg:nth-child(3n){height:168px}
}

@media (max-width:560px){
  body{font-size:16px}
  .container,
  .cta-panel,
  .footer-inner{width:calc(100% - 40px)}

  .brand img{width:138px}
  .header-actions .btn-outline{display:none}
  .header-actions .btn-header{padding:12px 16px;font-size:13px}
  .header-inner{height:80px}
  .site-header.is-scrolled .header-inner{height:68px}

  .hero{padding-top:44px;padding-bottom:52px}
  .hero h1{font-size:clamp(36px,10.5vw,48px)}
  .hero-copy p{font-size:16px}
  .hero-actions{gap:10px}
  .hero-actions .btn{padding:13px 18px;font-size:15px}
  .hero-media{border-radius:20px;margin-top:32px;aspect-ratio:5/4}

  .eyebrow{font-size:12px}
  .mission{padding-top:44px}
  .mission h2,
  .impact h2,
  .projects h2,
  .gallery h2,
  .involved h2,
  .cta h2{font-size:clamp(28px,8.2vw,36px);line-height:1.1}
  .mission-copy{font-size:16px;line-height:1.6}
  .collage-track{width:287.6vw}
  .mission-collage{margin-top:36px}

  .impact{padding:40px 0}
  .impact-head > p:last-child{font-size:15px}
  .stat-grid{margin-top:26px}
  .stat-copy{left:12px;right:12px;bottom:14px}
  .stat-copy strong{font-size:22px}
  .stat-copy span{font-size:11.5px;line-height:1.4;margin-top:3px}

  .projects{padding:34px 0}
  .project-grid{gap:14px;margin-top:28px}
  .project-label h3{font-size:14px}
  .center-cta{margin-top:30px}

  .gallery{padding:36px 0}
  .g-left,.g-right{width:82vw}
  .g-center{width:88vw}

  .involved{padding-top:64px}
  .involved-head > p:last-child{font-size:16px;line-height:1.55}
  .involved-card{padding:22px 22px 56px;border-radius:16px}
  .involved-card h3{font-size:18px}
  .involved-card a{left:22px;bottom:18px}

  .cta{padding-top:44px}
  .cta-panel{padding:38px 20px}

  .footer-grid{grid-template-columns:1fr;gap:0}
  .footer-col{padding-top:20px}
  .footer-about p{margin-bottom:8px}
  .footer-gallery{margin-top:36px;height:150px}
  .fg{width:108px;height:140px}
  .fg:nth-child(3n){height:150px}
}

/* Very small screens: keep the logo and menu button cleanly spaced
   instead of squeezing a third control into the header. */
@media (max-width:380px){
  .header-actions .btn-primary{display:none}
  .header-actions{gap:0}
  .brand img{width:132px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
  .reveal{opacity:1;transform:none}
}
