/* =====================================================
   HOME.CSS — new homepage structure (default.php)
   Load AFTER /css/style-N.css (uses its colour variables,
   header, drawer, footer, video + legal-card styles).
   ===================================================== */

/* ---------- shared section scaffolding ---------- */
.hx-sec { padding: 96px 6%; }
.hx-sec.mint { background: var(--mint); }
.hx-wrap { max-width: 1180px; margin: 0 auto; }
.hx-head { max-width: 640px; margin-bottom: 44px; }
.hx-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.15; color: var(--ink); margin-bottom: 12px; }
.hx-head p { color: var(--muted); font-size: 1.03rem; }
.hx-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.hx-head.row > div { max-width: 640px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px; font-weight: 700; text-decoration: none;
  color: #fff; border: 2px solid rgba(255, 255, 255, .5); transition: background .25s, border-color .25s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn-line { border-color: var(--green); color: var(--green-dark); }
.btn-line:hover { background: var(--mint); border-color: var(--green-dark); }
.hx-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- HERO: full-screen slider ---------- */
.hx-hero.slider-container { height: 680px; }
.hx-hero .slide-text { left: 8%; max-width: 640px; }
.hx-hero .slide-text h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.hx-hero .slide-text p { margin-bottom: 28px; }
.hx-hero .slide-text .btn-filled { padding: 14px 30px; }

/* ---------- WHAT WE DO: bento ---------- */
.bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: 270px 270px; gap: 18px; }
.b-card {
  position: relative; isolation: isolate; border-radius: 24px; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; text-decoration: none;
}
.b-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.b-card.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 31, 26, .88) 0%, rgba(7, 31, 26, .25) 60%, transparent 100%); }
.b-card:hover > img { transform: scale(1.06); }
.b-edu { grid-row: 1 / 3; }
.b-health { grid-column: 2 / 4; }
.b-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.b-card p { font-size: .93rem; color: #e3f0e9; max-width: 420px; }
.b-more { margin-top: 12px; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; transition: gap .25s; }
.b-card:hover .b-more { gap: 14px; }
.b-ico {
  width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 14px;
}
.b-tile.green { background: linear-gradient(145deg, var(--green-dark), var(--green)); }
.b-tile.teal { background: linear-gradient(145deg, var(--teal-dark), var(--teal)); }
.b-tile::before {
  content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px;
  border-radius: 50%; border: 22px solid rgba(255, 255, 255, .1); z-index: -1;
}
.b-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.b-tile { transition: transform .3s, box-shadow .3s; }

/* ---------- ABOUT: arch photo inside gradient frame ---------- */
.hx-about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.ab-vis { position: relative; max-width: 440px; width: 100%; margin: 0 auto; padding-bottom: 40px; }
.ab-frame { padding: 9px; border-radius: 240px 240px 30px 30px; background: linear-gradient(160deg, var(--red), var(--orange) 28%, var(--green) 62%, var(--teal)); }
.ab-frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 232px 232px 22px 22px; border: 5px solid #fff; }
.ab-sub {
  position: absolute; right: -22px; bottom: 0; width: 40%; aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.ab-est {
  position: absolute; left: -18px; bottom: 70px; width: 96px; height: 96px; border-radius: 50%;
  background: var(--deep); border: 3px solid var(--gold-light); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
}
.ab-est b { font-family: var(--font-head); font-size: 1.2rem; color: var(--gold-light); line-height: 1.1; }
.ab-est span { font-size: .72rem; }
.hx-about .about-content { max-width: none; }

/* ---------- TRUST BAND (dark) ---------- */
.hx-trust {
  color: #fff;
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(18, 163, 201, .22), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(31, 157, 58, .25), transparent 70%),
    var(--deep);
}
.hx-trust .hx-head h2 { color: #fff; }
.hx-trust .hx-head p { color: #b7d0c3; }
.hx-trust .section-tag { background: rgba(255, 255, 255, .12); color: #bff0c8; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.trust-grid .hx-head { margin-bottom: 26px; }
.trust-list { display: grid; gap: 14px; }
.hx-trust .t-point { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.hx-trust .t-point:hover { background: rgba(255, 255, 255, .1); border-color: var(--teal); }
.hx-trust .t-point h4 { color: #fff; }
.hx-trust .t-point p { color: #b7d0c3; }
.hx-trust .legal-card { margin: 0; max-width: none; }

/* ---------- JOURNEY: horizontal line ---------- */
.jr { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; }
.jr::before { content: ""; position: absolute; top: 21px; left: 0; right: 0; height: 4px; background: var(--ring); border-radius: 3px; }
.jr-item { position: relative; padding-top: 58px; }
.jr-dot {
  position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-size: .95rem; box-shadow: var(--shadow);
}
.jr-item:nth-child(even) .jr-dot { border-color: var(--teal); color: var(--teal-dark); }
.jr-item.now .jr-dot { background: var(--brand); border-color: transparent; color: #fff; }
.jr-year { display: inline-block; font-weight: 800; color: var(--gold); font-family: var(--font-head); margin-bottom: 4px; }
.jr-item h3 { font-size: 1.02rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; line-height: 1.3; }
.jr-item p { font-size: .87rem; color: var(--muted); line-height: 1.6; }

/* ---------- CTA ---------- */
.hx-cta { padding: 0 6% 96px; }
.cta-card {
  position: relative; overflow: hidden; max-width: 1180px; margin: 0 auto; border-radius: 30px;
  padding: 56px 56px; color: #fff; background: linear-gradient(120deg, var(--green-dark), var(--green) 45%, var(--teal));
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-card::before, .cta-card::after {
  content: ""; position: absolute; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .09); pointer-events: none;
}
.cta-card::before { width: 320px; height: 320px; right: -80px; top: -120px; }
.cta-card::after { width: 200px; height: 200px; left: 38%; bottom: -110px; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
.cta-card p { max-width: 520px; color: #e6f6ec; }
.cta-card .btn-white { background: #fff; color: var(--green-dark); padding: 14px 30px; border-radius: 50px; font-weight: 800; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; transition: transform .25s, box-shadow .25s; }
.cta-card .btn-white:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 0, 0, .22); }
.cta-card .btn-white i { color: var(--red); }

/* ---------- Flood popup (disabled by default) ---------- */
.popup { position: fixed; inset: 0; background: rgba(7, 31, 26, .85); display: none; justify-content: center; align-items: center; padding: 20px; z-index: 9999; }
.popup-content { background: #fff; width: 100%; max-width: 700px; border-radius: 20px; overflow: hidden; position: relative; box-shadow: 0 10px 35px rgba(0, 0, 0, .3); max-height: 92vh; overflow-y: auto; }
.close-btn { position: absolute; top: 12px; right: 18px; font-size: 28px; color: #555; cursor: pointer; z-index: 5; }
.close-btn:hover { color: #000; }
.collage { display: grid; grid-template-areas: "a b" "c b" "c d"; grid-template-columns: 1fr 1fr; gap: 10px; padding: 25px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.img-a { grid-area: a; } .img-b { grid-area: b; } .img-c { grid-area: c; } .img-d { grid-area: d; }
.popup-body { text-align: center; padding: 0 22px 26px; }
.popup-body h2 { font-size: 26px; color: var(--ink); margin-bottom: 10px; }
.popup-body p { color: var(--muted); margin-bottom: 20px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .jr { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .jr::before { top: 0; bottom: 0; left: 21px; right: auto; width: 4px; height: auto; }
  .jr-item { padding: 0 0 30px 68px; }
  .jr-dot { top: 0; }
}
@media (max-width: 960px) {
  .hx-sec { padding: 72px 6%; }
  .hx-about, .trust-grid { grid-template-columns: 1fr; gap: 48px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 250px; }
  .b-edu { grid-row: auto; grid-column: 1 / 3; }
  .b-health { grid-column: 1 / 3; }
  .cta-card { padding: 44px 30px; }
}
@media (max-width: 600px) {
  .hx-hero.slider-container { height: max(680px, calc(100svh - 40px)); min-height: 680px; }
  .hx-hero .slide-text h1 { font-size: 1.9rem; }
  .bento { grid-template-columns: 1fr; }
  .b-edu, .b-health { grid-column: auto; }
  .ab-est { left: 0; }
  .ab-sub { right: -6px; }
  .collage { padding: 16px; }
}


/* =====================================================
   HERO UPGRADE — tabbed slide navigator + donate card
   ===================================================== */
.hx-hero.slider-container::before {
  display: block;
  background:
    linear-gradient(95deg, rgba(7, 31, 26, .93) 0%, rgba(7, 31, 26, .72) 40%, rgba(7, 31, 26, .1) 78%),
    linear-gradient(0deg, rgba(7, 31, 26, .85) 0%, transparent 38%);
}
.hx-hero .slide-text { top: 48%; }
.hx-hero .hero-eyebrow { background: rgba(201, 167, 74, .18); border-color: rgba(201, 167, 74, .75); color: #fff; }
.hx-hero .slide-text h1 { text-shadow: 0 4px 24px rgba(0, 0, 0, .45); }
.hx-hero .slide-text h1::after { content: ""; display: block; width: 92px; height: 5px; margin-top: 18px; border-radius: 3px; background: var(--ring); }

.hx-hero .slider-dots { left: 8%; right: 8%; bottom: 92px; max-width: 880px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; transform: none; }
.hx-hero .slider-dots .dot {
  position: relative; width: auto; height: auto; border-radius: 0; background: none; border: 0;
  padding-top: 14px; color: #fff; opacity: .6; font-weight: 600; font-size: .95rem; line-height: 1.3; transition: opacity .3s;
}
.hx-hero .slider-dots .dot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.hx-hero .slider-dots .dot.active { opacity: 1; width: auto; background: none; border-radius: 0; }
.hx-hero .slider-dots .dot.active::before { background: var(--ring); }
.hx-hero .slider-dots .dot i { font-style: normal; font-family: var(--font-head); font-weight: 800; color: var(--gold-light); margin-right: 8px; }
.hx-hero .slider-controls { right: 8%; bottom: 86px; }

/* =====================================================
   IMAGE SECTION 1 — campaign rail (scroll-snap)
   ===================================================== */
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: .25s; }
.rail-nav button:hover { background: var(--green); border-color: var(--green); color: #fff; }
.rail {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px max(6%, calc((100vw - 1180px) / 2)) 24px; scroll-padding-left: max(6%, calc((100vw - 1180px) / 2));
}
.rail::-webkit-scrollbar { display: none; }
.rail-card {
  flex: 0 0 clamp(250px, 26vw, 310px); height: 430px; scroll-snap-align: start; position: relative; isolation: isolate;
  border-radius: 24px; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; text-decoration: none;
}
.rail-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.rail-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 31, 26, .9), rgba(7, 31, 26, .08) 62%); }
.rail-card:hover img { transform: scale(1.07); }
.rail-chip { position: absolute; top: 18px; left: 18px; padding: 6px 14px; border-radius: 30px; font-size: .78rem; font-weight: 700; background: var(--green); }
.rail-chip.t { background: var(--teal-dark); }
.rail-chip.g { background: var(--gold); }
.rail-card h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.rail-go { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--green-dark); display: flex; align-items: center; justify-content: center; transition: transform .3s; }
.rail-card:hover .rail-go { transform: translateX(6px); }

/* =====================================================
   IMAGE SECTION 2 — masonry + lightbox
   ===================================================== */
.masonry { column-count: 4; column-gap: 14px; }
.masonry figure { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--line); }
.masonry img { width: 100%; display: block; transition: transform .6s ease; }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 14px 12px; color: #fff; font-weight: 700; font-size: .85rem;
  background: linear-gradient(0deg, rgba(7, 31, 26, .88), transparent); display: flex; justify-content: space-between; align-items: center;
  transform: translateY(100%); transition: transform .3s ease;
}
.masonry figure:hover figcaption { transform: translateY(0); }
.lb { position: fixed; inset: 0; background: rgba(7, 31, 26, .93); display: none; align-items: center; justify-content: center; z-index: 10000; padding: 20px; }
.lb.open { display: flex; }
.lb img { max-width: min(1100px, 94vw); max-height: 88vh; border-radius: 14px; }
.lb button { position: absolute; top: 14px; right: 22px; background: none; border: 0; color: #fff; font-size: 38px; cursor: pointer; line-height: 1; }

/* =====================================================
   IMAGE SECTION 3 — film strip (two auto-scrolling rows)
   ===================================================== */
.film { background: var(--deep); padding: 80px 0 70px; overflow: hidden; }
.film-head { text-align: center; color: #fff; margin-bottom: 36px; padding: 0 6%; }
.film-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 8px; }
.film-head p { color: #b7d0c3; }
.film .section-tag { background: rgba(255, 255, 255, .12); color: #bff0c8; }
.film-row { display: flex; gap: 14px; width: max-content; margin-bottom: 14px; animation: hxmarq 70s linear infinite; }
.film-row.rev { animation-direction: reverse; animation-duration: 80s; }
.film:hover .film-row { animation-play-state: paused; }
.film-row img { height: 170px; width: auto; border-radius: 16px; display: block; }
@keyframes hxmarq { to { transform: translateX(-50%); } }

@media (max-width: 1100px) {
  .masonry { column-count: 3; }
}
@media (max-width: 768px) {
  .hx-hero .slider-dots { left: 6%; right: 6%; gap: 10px; bottom: 64px; }
  .hx-hero .slider-dots .dot { font-size: .8rem; }
  .hx-hero .slider-dots .dot em { display: none; }
  .rail-card { height: 380px; }
  .film-row img { height: 130px; }
}
@media (max-width: 700px) { .masonry { column-count: 2; } }

/* Slide text: outgoing text fades fast, incoming waits a moment — no overlap while changing */
.hx-hero .slide-text { transition: opacity .3s ease, transform .3s ease; }
.hx-hero .slide-text.active { transition: opacity .7s ease .3s, transform .7s ease .3s; }


/* =====================================================
   CAMPAIGNS — pinned section, sideways on vertical scroll
   ===================================================== */
/* body must not be a scroll container, or position:sticky stops working */
html { overflow-x: hidden; }
body { overflow-x: clip; }

.hs { position: relative; background: #fff; }
.hs-sticky {
  position: sticky; top: 84px; height: calc(100svh - 84px); min-height: 600px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px; overflow: hidden;
}
.hs .rail { overflow: visible; scroll-snap-type: none; width: max-content; will-change: transform; padding-bottom: 10px; }
.hs .hx-head { margin-bottom: 26px; }
.hs-bar { width: 200px; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 10px; }
.hs-bar span { display: block; height: 100%; width: 100%; background: var(--ring); border-radius: 4px; transform: scaleX(0); transform-origin: left; will-change: transform; }
.hs-native .hs-sticky { position: static; height: auto; min-height: 0; padding: 70px 0; }
.hs-native .rail { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; }
.hs-native .hs-bar { display: none; }
@media (max-width: 768px) {
  .hs-sticky { top: 70px; height: calc(100svh - 70px); min-height: 560px; }
  .hs .hx-head p { display: none; }
}


/* =====================================================
   SMOOTHNESS
   ===================================================== */
/* blur filters over moving photos = repaint every frame -> removed */
.hx-hero .hero-eyebrow, .hx-hero .slider-controls button { backdrop-filter: none; -webkit-backdrop-filter: none; }
.hx-hero .hero-eyebrow { background: rgba(7, 31, 26, .55); }
.hx-hero .slider-controls button { background: rgba(7, 31, 26, .5); }
/* lighter, GPU-only Ken Burns */
@keyframes kenBurns {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-.8%, -.6%, 0); }
}
.hx-hero .slide { will-change: transform, opacity; backface-visibility: hidden; }
.film-row { will-change: transform; }
.hs .rail-card img, .rail-card, .b-card, .masonry figure { backface-visibility: hidden; }
/* one calm easing for every hover */
.b-card > img, .rail-card img, .masonry img { transition: transform .9s cubic-bezier(.22, .61, .36, 1); }
.b-card, .b-tile, .video-card, .btn-filled, .btn-red, .btn-ghost, .view-more { transition-timing-function: cubic-bezier(.22, .61, .36, 1); }
/* lightbox fades instead of popping */
.lb { display: flex; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.lb.open { opacity: 1; visibility: visible; }

/* =====================================================
   BACKGROUND DESIGN — soft colour glow + dot grid + logo-ring motif
   ===================================================== */
.hx-sec, .where-we-work, .video-gallery, .hs-sticky { position: relative; isolation: isolate; --dotc: rgba(31, 157, 58, .2); }
.hx-sec, .where-we-work, .video-gallery { overflow: clip; }

/* dot grid (top right, fades out) */
.hx-sec::before, .where-we-work::before, .video-gallery::before, .hs-sticky::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 380px; height: 280px; right: 3%; top: 36px;
  background-image: radial-gradient(var(--dotc) 1.7px, transparent 1.8px); background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
/* the logo's ring, as a faint outline */
.hx-sec::after, .where-we-work::after, .video-gallery::after, .hs-sticky::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; border-radius: 50%; left: -200px; bottom: -240px; opacity: .13;
  background: conic-gradient(var(--red), var(--orange), var(--green), var(--teal), var(--red));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 26px), #000 calc(100% - 25px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 26px), #000 calc(100% - 25px));
}
/* alternate sides so it never looks repeated */
.hx-sec:nth-of-type(even)::before, .video-gallery::before { right: auto; left: 3%; }
.hx-sec:nth-of-type(even)::after, .video-gallery::after { left: auto; right: -210px; bottom: auto; top: -250px; }
.where-we-work::before { top: auto; bottom: 30px; }

/* soft colour glows behind content */
.hx-sec:not(.mint):not(.hx-trust) {
  background:
    radial-gradient(42% 38% at 0% 0%, rgba(18, 163, 201, .08), transparent 70%),
    radial-gradient(40% 40% at 100% 100%, rgba(31, 157, 58, .09), transparent 70%), #fff;
}
.hx-sec.mint {
  background:
    radial-gradient(40% 45% at 100% 0%, rgba(18, 163, 201, .13), transparent 70%),
    radial-gradient(40% 45% at 0% 100%, rgba(31, 157, 58, .13), transparent 70%), var(--mint);
}
.where-we-work, .video-gallery { background: radial-gradient(40% 45% at 100% 0%, rgba(18, 163, 201, .12), transparent 70%), radial-gradient(40% 45% at 0% 100%, rgba(31, 157, 58, .12), transparent 70%), var(--mint); }
.hs { background: linear-gradient(180deg, #fff, var(--mint) 55%, #fff); }
/* dark sections: light dots, brighter ring */
.hx-trust { --dotc: rgba(255, 255, 255, .16); }
.hx-trust::after { opacity: .28; }
.film { position: relative; isolation: isolate; }
.film::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; border-radius: 50%; right: -160px; top: -200px; opacity: .22; pointer-events: none;
  background: conic-gradient(var(--red), var(--orange), var(--green), var(--teal), var(--red));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 24px), #000 calc(100% - 23px)); mask: radial-gradient(farthest-side, transparent calc(100% - 24px), #000 calc(100% - 23px)); }
@media (max-width: 768px) {
  .hx-sec::before, .where-we-work::before, .video-gallery::before, .hs-sticky::before { width: 240px; height: 180px; }
  .hx-sec::after, .where-we-work::after, .video-gallery::after, .hs-sticky::after { width: 340px; height: 340px; }
}


/* =====================================================
   CAMPAIGNS — JS pins the block (position:fixed), so extra blank space can not appear
   ===================================================== */
.hs { background: #fff; }
.hs-sticky {
  --pin: 84px;
  position: absolute; top: 0; left: 0; right: 0;
  height: calc(100svh - var(--pin)); min-height: 600px;
  background: linear-gradient(180deg, #fff 0%, var(--mint) 55%, #fff 100%);
}
.hs-native .hs-sticky { position: static; height: auto; min-height: 0; }
@media (max-width: 768px) { .hs-sticky { --pin: 70px; height: calc(100svh - var(--pin)); min-height: 560px; } }


/* =====================================================
   VIDEOS — big player + playlist (dark, cinematic)
   ===================================================== */
.vid {
  position: relative; isolation: isolate; overflow: clip; padding: 96px 6%; color: #fff;
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(18, 163, 201, .22), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(31, 157, 58, .25), transparent 70%), var(--deep);
}
.vid::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 480px; height: 480px; border-radius: 50%;
  left: -190px; top: -220px; opacity: .22;
  background: conic-gradient(var(--red), var(--orange), var(--green), var(--teal), var(--red));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 24px), #000 calc(100% - 23px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 24px), #000 calc(100% - 23px));
}
.vid .hx-head h2 { color: #fff; }
.vid .hx-head p { color: #b7d0c3; }
.vid .section-tag { background: rgba(255, 255, 255, .12); color: #bff0c8; }
.vid-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.vid-main { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); cursor: pointer; }
.vid-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.22, .61, .36, 1); }
.vid-main:hover img { transform: scale(1.04); }
.vid-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 31, 26, .55), transparent 55%); pointer-events: none; }
.vid-main iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.vid-main:has(iframe)::after { display: none; }
.vid-play {
  position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%;
  border: 0; background: var(--brand); color: #fff; font-size: 1.6rem; cursor: pointer; padding-left: 5px;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .15), 0 14px 34px rgba(0, 0, 0, .4); transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
.vid-main:hover .vid-play { transform: translate(-50%, -50%) scale(1.08); }
.vid-info { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vid-info h3 { font-size: 1.4rem; font-weight: 800; }
.vid-tag { background: var(--green); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 14px; border-radius: 30px; }
.vid-list { display: flex; flex-direction: column; gap: 12px; max-height: 480px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.vid-list-h { font-weight: 800; font-size: 1.05rem; color: #bff0c8; }
.vid-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px; border-radius: 16px; text-align: left; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-family: inherit; transition: background .3s ease, border-color .3s ease;
}
.vid-item img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.vid-item b { display: block; font-size: .98rem; line-height: 1.3; margin-bottom: 3px; }
.vid-item span { font-size: .78rem; color: #b7d0c3; }
.vid-item:hover { background: rgba(255, 255, 255, .11); }
.vid-item.on { background: rgba(255, 255, 255, .15); border-color: var(--teal); box-shadow: inset 4px 0 0 var(--green); }
@media (max-width: 960px) {
  .vid { padding: 72px 6%; }
  .vid-grid { grid-template-columns: 1fr; }
  .vid-list { max-height: none; overflow: visible; padding-right: 0; }
}
@media (max-width: 480px) { .vid-item img { width: 104px; } .vid-play { width: 70px; height: 70px; font-size: 1.3rem; } }

/* =====================================================
   FILM STRIP — light "photo wall" so it differs from the dark video section
   ===================================================== */
.film {
  background:
    radial-gradient(40% 60% at 0% 0%, rgba(18, 163, 201, .14), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(31, 157, 58, .14), transparent 70%), var(--mint);
  padding: 90px 0 80px;
}
.film::before { opacity: .13; right: auto; left: -170px; top: auto; bottom: -230px; }
.film::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 380px; height: 260px; right: 3%; top: 30px;
  background-image: radial-gradient(rgba(31, 157, 58, .22) 1.7px, transparent 1.8px); background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
.film-head h2 { color: var(--ink); }
.film-head p { color: var(--muted); }
.film .section-tag { background: rgba(31, 157, 58, .1); color: var(--green-dark); }
.film-row { padding: 10px 0; }
.film-row img {
  height: 180px; border: 6px solid #fff; border-radius: 14px; box-shadow: 0 10px 26px rgba(16, 32, 26, .14);
}
.film-row img:nth-child(odd) { transform: rotate(-1.6deg); }
.film-row img:nth-child(even) { transform: rotate(1.6deg) translateY(6px); }
@media (max-width: 768px) { .film-row img { height: 140px; border-width: 5px; } }