/* =====================================================
   BKT IMPACT PORTAL — Black Kids Travel
   Gala edition: mobile-first, cinematic hero, editorial impact numbers,
   one primary giving action (General Operations).
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
  --cream:      #F5F0E8;
  --navy-deep:  #0D1B2A;
  --navy-mid:   #1A3040;
  --navy:       #0D1C2B;
  --soft-sky:   #4A9BAD;
  --warm-teal:  #2A6C7A;
  --warm-gold:  #D4A94B;
  --terracotta: #C4622D;
  --muted:      #5E564E;

  --heading: 'Cormorant Garamond', Georgia, serif;
  --body:    'Jost', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--navy-deep);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Primary button ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 2.2rem; border-radius: 999px;
  background: var(--warm-gold); color: var(--navy-deep);
  font-family: var(--body); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(212,169,75,0.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary:hover { background: #E0B85C; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(212,169,75,0.35); }
.btn-primary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn-block { display: flex; width: 100%; }

/* ── 1. Hero ── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
  padding: 4.5rem 1.5rem calc(3.5rem + env(safe-area-inset-bottom));
  background: var(--navy-deep);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video, .hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-slides img { opacity: 0; transform: scale(1.04); transition: opacity 2.2s ease; }
.hero-slides img.on { opacity: 1; animation: drift 9s ease-out forwards; }
/* keep the zoomed-in scale while the old slide fades out */
.hero-slides img.was { opacity: 0; transform: scale(1.14); }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .hero-slides img.on { animation: none; } }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(13,27,42,0.45) 0%, rgba(13,27,42,0.75) 70%),
    linear-gradient(180deg, rgba(13,27,42,0.55) 0%, rgba(13,27,42,0.35) 40%, rgba(13,27,42,0.92) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 34rem; }
.hero-logo-h1 { line-height: 0; }
.hero-logo { width: clamp(170px, 48vw, 250px); height: auto; margin: 0 auto; }
.hero .org-tag {
  margin-top: 1.4rem; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(255,255,255,0.88);
}
.hero .ein {
  margin-top: 0.35rem; font-size: 0.72rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.6);
}
.hero .mission {
  margin: 1.8rem auto 2.2rem; max-width: 30rem;
  font-family: var(--heading); font-weight: 500; font-size: clamp(1.35rem, 5.2vw, 1.75rem);
  line-height: 1.35; color: #fff;
}
.hero .mission::before {
  content: ''; display: block; width: 2.5rem; height: 1px; margin: 0 auto 1.8rem;
  background: var(--warm-gold);
}

/* ── 2. Impact ── */
.impact {
  background: var(--navy-deep); color: #fff;
  padding: 4.5rem 1.5rem 4rem;
  border-top: 1px solid rgba(212,169,75,0.18);
}
.impact-inner { max-width: 68rem; margin: 0 auto; }
.eyebrow {
  text-align: center; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--warm-gold); margin-bottom: 2.6rem;
}
.metrics { display: grid; grid-template-columns: 1fr; }
.metric { padding: 2rem 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.metric:first-child { border-top: none; padding-top: 0; }
.metric .num {
  font-family: var(--heading); font-weight: 600; line-height: 1;
  font-size: clamp(4rem, 19vw, 5.6rem); letter-spacing: -0.01em; color: #fff;
  font-variant-numeric: lining-nums;
}
.metric .num span { color: var(--warm-gold); font-weight: 500; }
.metric .rule { width: 2rem; height: 1px; background: var(--warm-gold); margin: 1.1rem auto 0.9rem; opacity: 0.8; }
.metric .label {
  max-width: 19rem; margin: 0 auto;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; line-height: 1.6;
  text-transform: uppercase; color: rgba(255,255,255,0.78);
}
.metric .note {
  max-width: 20rem; margin: 1rem auto 0;
  font-size: 0.82rem; font-style: italic; line-height: 1.55; color: rgba(255,255,255,0.55);
}

/* well infographic: three completed wells, labelled by country */
.wells { list-style: none; display: flex; justify-content: center; gap: 1.4rem; margin-top: 1.3rem; }
.wells li { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.wells svg { width: 18px; height: 24px; fill: var(--warm-gold); }
.wells span { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* passport infographic: one mark per sponsored passport */
.passports {
  display: grid; grid-template-columns: repeat(13, 12px); gap: 6px 6px;
  justify-content: center; margin-top: 1.3rem;
}
.passports i {
  display: block; width: 12px; height: 16px; border-radius: 2px;
  background: var(--warm-gold); opacity: 0.9;
  box-shadow: inset 0 0 0 1px rgba(13,27,42,0.15);
}

@media (min-width: 760px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: 2.6rem 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
  .metric:nth-child(-n+2) { border-top: none; padding-top: 0.5rem; }
  .metric:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.1); }
}
@media (min-width: 1100px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .metric, .metric:nth-child(-n+2) { border-top: none; padding: 0.5rem 1.6rem 0; }
  .metric:nth-child(n+2) { border-left: 1px solid rgba(255,255,255,0.1); }
  .metric .num { font-size: 4.6rem; }
}

/* ── The work, in pictures ── */
.field { background: var(--navy-deep); padding: 0 0.75rem 0.75rem; }
.mosaic {
  max-width: 68rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
  grid-auto-rows: 150px;
}
@media (min-width: 640px) { .mosaic { grid-auto-rows: 220px; gap: 0.75rem; } }
@media (min-width: 1024px) { .mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; } }
.mosaic .wide-only { display: none; }
@media (min-width: 1024px) { .mosaic .wide-only { display: block; } }
.mosaic figure { position: relative; overflow: hidden; border-radius: 10px; }
.mosaic figure.tall { grid-row: span 2; }
.mosaic figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s ease; }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption {
  position: absolute; left: 0.7rem; bottom: 0.55rem;
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* ── 3. Support ── */
.support { background: var(--cream); padding: 4.5rem 1.25rem 4.5rem; }
.support-inner { max-width: 32rem; margin: 0 auto; }
.support h2 {
  font-family: var(--heading); font-weight: 700; color: var(--navy-deep); text-align: center;
  font-size: clamp(2.1rem, 8.5vw, 2.8rem); line-height: 1.08; letter-spacing: -0.01em;
}
.support-lede {
  margin: 1.2rem auto 2.2rem; max-width: 28rem; text-align: center;
  font-size: 1rem; line-height: 1.65; color: var(--muted);
}
.primary-give {
  background: var(--navy-deep); color: #fff; border-radius: 18px;
  padding: 1.9rem 1.5rem 1.5rem; text-align: center;
  box-shadow: 0 18px 40px rgba(13,27,42,0.18);
}
.pg-kicker { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--warm-gold); }
.pg-text {
  margin: 0.7rem auto 1.5rem; max-width: 22rem;
  font-family: var(--heading); font-weight: 500; font-size: 1.3rem; line-height: 1.35; color: #fff;
}
.pg-fine { margin-top: 0.9rem; font-size: 0.74rem; color: rgba(255,255,255,0.5); }

.other-give { margin-top: 2.6rem; }
.og-title {
  text-align: center; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem;
}
.fund-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.05rem 0.2rem; border-top: 1px solid rgba(13,27,42,0.12);
  transition: color .2s ease;
}
.fund-link:last-child { border-bottom: 1px solid rgba(13,27,42,0.12); }
.fl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fl-name { font-family: var(--heading); font-weight: 700; font-size: 1.2rem; color: var(--navy-deep); }
.fl-desc { font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.fund-link svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--warm-teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.fund-link:hover .fl-name { color: var(--warm-teal); }
.fund-link:hover svg { transform: translateX(3px); }

/* ── Footer ── */
footer { background: var(--navy); padding: 2.4rem 1.25rem calc(2.4rem + env(safe-area-inset-bottom)); text-align: center; }
.footer-inner { max-width: 32rem; margin: 0 auto; }
.footer-inner .org { font-family: var(--heading); font-weight: 600; font-size: 1rem; color: rgba(255,255,255,0.9); }
.footer-inner .legal { margin-top: 0.6rem; font-size: 0.74rem; line-height: 1.6; color: rgba(255,255,255,0.55); }
.footer-divider { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding-top: 1rem; }
.footer-divider span.line { display: block; height: 1px; width: 2rem; background: rgba(212,169,75,0.25); }
.footer-divider span.dot { display: block; width: 4px; height: 4px; border-radius: 50%; background: rgba(212,169,75,0.4); }
.footer-inner .tagline { margin-top: 0.4rem; font-size: 0.78rem; font-style: italic; color: rgba(212,169,75,0.75); }

.footer-socials { margin-top: 1.3rem; }
.social-row { display: flex; justify-content: center; gap: 10px; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cream); border: 2px solid rgba(212,169,75,0.35); color: #6B4A2E;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.social-row a:hover { border-color: var(--warm-gold); background: #fff; transform: translateY(-2px); }
.social-row svg { width: 15px; height: 15px; fill: currentColor; }
.geo-link {
  display: inline-block; margin-top: 0.8rem;
  font-size: 0.68rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.55);
}
.geo-link:hover { color: var(--warm-gold); }

/* ── Hero video ── */
.hero-bg video { background: var(--navy-deep); }

/* ── The Work: scroll-turned cube (ported from the Momi Studios site, BKT palette) ── */
.cube-sec { height: 340vh; position: relative; background: var(--navy-deep); padding: 0 12px; }
.cube-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.cube-frame {
  position: relative; width: 100%; max-width: 72rem; margin: 0 auto;
  height: calc(100svh - 32px); border: 1px solid rgba(212,169,75,0.22); border-radius: 22px;
  display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr auto; align-items: center;
  overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #1C3346, #0D1B2A 72%);
}
.cube-frame .tl, .cube-frame .tr {
  position: absolute; top: 18px; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.cube-frame .tl { left: 20px; color: var(--warm-gold); } .cube-frame .tr { right: 20px; }
.scene { --s: min(68vw, 40svh, 440px); width: var(--s); height: var(--s); perspective: 1500px; justify-self: center; margin-top: 3.4rem; }
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: translateZ(calc(var(--s) / -2)) rotateX(-9deg) rotateY(var(--ry, 0deg)); }
.face { position: absolute; inset: 0; overflow: hidden; border: 1px solid rgba(212,169,75,0.4); background: #111; backface-visibility: hidden; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent 55%); }
.face span { position: absolute; z-index: 1; left: 18px; bottom: 16px; color: #fff; text-align: left; }
.face span small { display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; }
.face span b { font-family: var(--heading); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.f1 { transform: rotateY(0deg) translateZ(calc(var(--s) / 2)); }
.f2 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.f3 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.f4 { transform: rotateY(270deg) translateZ(calc(var(--s) / 2)); }
.cube-card {
  margin: 0 12px 12px; border: 1px solid rgba(212,169,75,0.28); border-radius: 14px; padding: 1.1rem 1.2rem;
  background: rgba(13,27,42,0.78); color: #fff; display: flex; flex-direction: column; text-align: left;
}
.cube-card .c-ey { color: var(--warm-gold); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 0.5rem; }
.cube-card h3 { font-family: var(--heading); font-weight: 600; font-size: 1.6rem; line-height: 1.1; margin-bottom: 0.4rem; }
.cube-card p#cP { font-size: 0.9rem; line-height: 1.5; color: rgba(255,255,255,0.78); margin-bottom: 0.8rem; }
.cube-card .row { display: flex; justify-content: space-between; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.cube-card .row a { color: var(--warm-gold); border-bottom: 1px solid var(--warm-gold); padding-bottom: 2px; }
.cube-meta { position: absolute; left: 0; right: 0; top: 44px; text-align: center; color: rgba(255,255,255,0.7); font-size: 0.66rem; letter-spacing: 0.2em; }
.dots { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: background .3s, transform .3s; }
.dots i.on { background: var(--warm-gold); transform: scale(1.5); }
/* phones: cube centred in the frame, caption card underneath */
.scene { grid-row: 1; align-self: center; }
.cube-card { grid-row: 2; }
@media (min-width: 900px) {
  .cube-sec { height: 400vh; padding: 0 18px; }
  .cube-frame { grid-template-columns: 340px 1fr; grid-template-rows: 1fr; height: calc(100vh - 60px); }
  .cube-card { grid-column: 1; grid-row: 1; align-self: end; margin: 0 0 24px 24px; padding: 1.4rem; min-height: 230px; }
  .cube-card h3 { font-size: 1.9rem; }
  .scene { grid-column: 2; grid-row: 1; --s: min(32vw, 52vh, 440px); margin-top: 0; }
  .cube-meta { left: 340px; top: auto; bottom: 26px; }
}
