/* ==========================================================
   Joshua Nkomo Legacy Restoration Project Trust
   Palette: gold · black · white
   ========================================================== */

:root {
  --gold: #b8862f;
  --gold-deep: #96681c;
  --gold-light: #d9b66a;
  --gold-pale: #f5ecda;
  --black: #0e0d0b;
  --ink: #1b1915;
  --ink-soft: #2a2620;
  --white: #ffffff;
  --cream: #fbf8f2;
  --text: #2b2823;
  --muted: #6d665a;
  --line: rgba(184, 134, 47, .28);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(14, 13, 11, .35);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .5em; color: var(--black); font-weight: 700; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
em { font-style: italic; font-weight: 500; }
.gold { color: var(--gold); }
.center { text-align: center; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 120px) 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--gold-deep); }
.eyebrow.center { display: flex; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.8rem;
  border-radius: 999px;
  font-weight: 600; font-size: .92rem; letter-spacing: .04em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s, background .25s, color .25s, border-color .25s, box-shadow .25s;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 10px 30px -10px rgba(184,134,47,.7); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--gold); }
.btn-sm { padding: .6rem 1.2rem; font-size: .82rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; color: var(--gold); }
.link-arrow::after { content: "→"; transition: transform .25s; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow.muted { color: var(--muted); }
.link-arrow.muted::after { content: none; }

/* ---------- Icons (shared line style) ---------- */
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .35s, box-shadow .35s, height .35s;
}
.site-header.scrolled {
  background: rgba(14, 13, 11, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  --header-h: 70px;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; transition: height .35s; }
.site-header.scrolled .brand img { height: 40px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) {
  color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500; position: relative; padding: 6px 0;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px;
  background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--white); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(184,134,47,.28), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(184,134,47,.10), transparent 70%),
    var(--black);
  color: var(--white);
  overflow: hidden;
  padding-top: var(--header-h);
  display: flex; flex-direction: column;
}
/* Faded portrait backdrop */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/statue-cutout.png") 62% 100% / auto 100% no-repeat;
  opacity: .22;
  transform: translateY(12%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent 98%);
          mask-image: linear-gradient(#000 55%, transparent 98%);
}
.hero-grid, .hero .zigzag { z-index: 1; }
.hero-rings { position: absolute; right: -10%; top: 50%; transform: translateY(-50%); width: 900px; aspect-ratio: 1; pointer-events: none; }
.hero-rings span { position: absolute; inset: 0; border: 1px solid rgba(217,182,106,.14); border-radius: 50%; }
.hero-rings span:nth-child(2) { inset: 12%; }
.hero-rings span:nth-child(3) { inset: 24%; border-style: dashed; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-grid { flex: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; position: relative; }
.hero h1 {
  color: var(--white);
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  font-weight: 600;
  line-height: .95;
  margin-bottom: .35em;
}
.hero h1 em { color: var(--gold-light); font-weight: 500; }
.stroke { position: relative; display: inline-block; }
.stroke::after {
  content: ""; position: absolute; left: -2%; right: -4%; bottom: .02em; height: .22em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16C60 6 140 4 296 12c-60 2-160 4-250 10' fill='none' stroke='%23b8862f' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero h1 .stroke { z-index: 0; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.78); max-width: 34rem; }
.hero .lead strong { color: var(--gold-light); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-dates { margin-top: 2.6rem; display: flex; align-items: center; gap: 16px; font-family: var(--serif); font-size: 1.15rem; color: var(--gold-light); letter-spacing: .04em; }
.hero-dates i { width: 60px; height: 1px; background: var(--gold); }

.hero-figure { position: relative; align-self: end; display: flex; justify-content: center; }
.figure-disc {
  position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
  width: min(460px, 90%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 0 14px rgba(184,134,47,.15), 0 0 0 30px rgba(184,134,47,.07);
}
.hero-figure img { position: relative; height: min(76vh, 720px); width: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.figure-tag {
  position: absolute; left: 0; bottom: 18%;
  background: var(--white); color: var(--black);
  padding: 14px 20px; border-radius: 10px; box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.tag-label { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.tag-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }

/* Ndebele-inspired zigzag divider (echoes the statue plinth) */
.zigzag {
  height: 18px; width: 100%; position: relative; z-index: 2;
  background:
    linear-gradient(135deg, var(--gold) 25%, transparent 25%) -9px 0 / 18px 18px,
    linear-gradient(225deg, var(--gold) 25%, transparent 25%) -9px 0 / 18px 18px;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 0;
  background:
    radial-gradient(50% 80% at 85% 30%, rgba(184,134,47,.25), transparent 70%),
    var(--black);
}
.page-hero-bg {
  position: absolute; top: 0; bottom: 0; right: 4%; width: min(420px, 45%); pointer-events: none;
  background: url("../assets/img/statue-cutout.png") right top / contain no-repeat;
  opacity: .16;
  transform: translateY(22%);
}
.page-hero .zigzag { z-index: 1; }
.page-hero-inner { position: relative; z-index: 1; padding-bottom: clamp(56px, 8vw, 96px); max-width: 1200px; }
.page-hero h1 { color: var(--white); font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 600; margin-bottom: .3em; }
.page-hero h1 em { color: var(--gold-light); }
.page-hero .lead { color: rgba(255,255,255,.75); font-size: 1.12rem; max-width: 36rem; margin: 0; }
.crumbs { font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 1.6rem; display: flex; gap: .6rem; }
.crumbs a:hover { color: var(--gold-light); }
.crumbs [aria-current] { color: var(--gold-light); }

.section-more { margin-top: 48px; }
.section-more.center { text-align: center; }

/* Home: Zimbabwe map */
.zim { background: radial-gradient(50% 60% at 70% 50%, rgba(184,134,47,.18), transparent 70%), var(--black); color: rgba(255,255,255,.75); overflow: hidden; }
.zim h2 { color: var(--white); }
.zim h2 em { color: var(--gold-light); }
.zim-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.zim-places { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.zim-places li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(217,182,106,.18); cursor: default; transition: background .3s, border-color .3s; }
.zim-places li.on, .zim-places li:hover { background: rgba(184,134,47,.12); border-color: var(--gold); }
.zim-places strong { display: block; font-family: "Marcellus", var(--serif); font-size: 1.35rem; font-weight: 400; color: var(--white); line-height: 1.15; margin-bottom: 4px; letter-spacing: .01em; }
.zim-places span { display: block; font-size: .84rem; line-height: 1.55; color: rgba(255,255,255,.62); letter-spacing: .01em; }
.zim-copy > p:not(.eyebrow) { font-size: 1.1rem; line-height: 1.75; color: rgba(255,255,255,.75); max-width: 30rem; }
.zim h2 { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -.01em; }
.zp-dot { flex: none; width: 12px; height: 12px; margin-top: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(184,134,47,.25); }

.zim-map { position: relative; }
.zim-map > svg:not(.zim-flag-bg) { width: 100%; height: auto; overflow: visible; }
.zim-map > svg:not(.zim-flag-bg) { position: relative; z-index: 1; }
/* Zimbabwe flag, softly faded behind the map */
.zim-flag-bg {
  position: absolute; z-index: 0; left: 50%; top: 50%; width: 130%; max-width: none; height: auto;
  transform: translate(-50%, -50%) rotate(-4deg);
  opacity: .4; pointer-events: none;
}
.zim-shadow { fill: rgba(0,0,0,.55); filter: blur(6px); }
.zim-fill { fill: #1d1a14; }

.zim-outline { fill: none; stroke: var(--gold-light); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 8px rgba(217,182,106,.6)); }
.zim-link { fill: none; stroke: var(--gold-light); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7; }
.zim-map.in .zim-outline { animation: zim-draw 2.4s ease forwards; }
.zim-map.in .zim-link { animation: zim-draw 1.6s ease 2s forwards; }
@keyframes zim-draw { to { stroke-dashoffset: 0; } }
.pin { cursor: pointer; }
.pin .core { fill: var(--gold); stroke: var(--black); stroke-width: 3; transition: r .3s; }
.pin .pulse { fill: none; stroke: var(--gold-light); stroke-width: 2; transform-origin: center; transform-box: fill-box; animation: zim-pulse 2.4s ease-out infinite; }
.pin[data-pin="byo"] .pulse { animation-delay: -.8s; }
.pin[data-pin="hre"] .pulse { animation-delay: -1.6s; }
.pin text { fill: var(--white); font-family: "Marcellus", var(--serif); font-size: 21px; font-weight: 400; letter-spacing: .08em; paint-order: stroke; stroke: rgba(14,13,11,.85); stroke-width: 7px; stroke-linejoin: round; transition: fill .3s; }
.pin.on text { fill: var(--gold-light); }
.pin.on .core { r: 10; fill: var(--gold-light); }
@keyframes zim-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.zim-label {
  z-index: 1;
  position: absolute; right: 0; bottom: 0; font-family: "Marcellus", var(--serif); font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: .35em; text-transform: uppercase; color: var(--gold-light);
  pointer-events: none;
}
@media (max-width: 940px) { .zim-grid { grid-template-columns: 1fr; } .zim-map { max-width: 560px; margin: 0 auto; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .zim-outline, .zim-link { stroke-dashoffset: 0; } .pin .pulse { animation: none; } }

/* ---------- Stats ---------- */
.stats { background: var(--gold); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.25); }
.stat:last-child { border-right: 0; }
.stat .num { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; line-height: 1; }
.stat .label { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; opacity: .9; }

/* ---------- About ---------- */
.about { background: var(--cream); position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 0; align-items: center; }
.about-media { position: relative; padding: 0 0 70px 0; }
.about-main { width: 88%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); box-shadow: var(--shadow); }
.about-inset { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); border: 8px solid var(--cream); box-shadow: var(--shadow); }
.about-card {
  background: var(--white); padding: clamp(28px, 4vw, 56px); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-left: -60px; position: relative; z-index: 1;
  border-top: 4px solid var(--gold);
}
.about-card::after { /* offset outline, nod to the inspiration's framed card */
  content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1.5px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.about-card p { color: var(--muted); }
.about-card .btn { margin-top: .5rem; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 100px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.trio-item { padding: clamp(28px, 3.5vw, 48px); }
.trio-item h3 { font-size: 1.9rem; }
.trio-black { background: var(--black); color: rgba(255,255,255,.8); }
.trio-black h3 { color: var(--gold-light); }
.trio-gold { background: var(--gold); color: var(--white); transform: scale(1.0); }
.trio-gold h3 { color: var(--white); }
.trio-white { background: var(--white); }
.trio-white ul { margin: 0; padding: 0; list-style: none; }
.trio-white li { padding-left: 1.4em; position: relative; margin-bottom: .6em; color: var(--muted); }
.trio-white li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

.values { margin-top: clamp(64px, 8vw, 100px); }
.values-title { text-align: center; font-size: 2.2rem; }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 28px; }
.value { text-align: center; padding: 28px 18px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value .ico {
  width: 68px; height: 68px; padding: 18px; margin: 0 auto 16px; border-radius: 50%;
  color: var(--gold-deep); background: var(--gold-pale);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 6px var(--white), 0 0 0 7px var(--line);
  transition: background .3s, color .3s;
}
.value:hover .ico { background: var(--gold); color: var(--white); }
.value h4 { font-size: 1.2rem; }
.value p { font-size: .88rem; color: var(--muted); margin: 0; }

.milestones { margin-top: clamp(56px, 7vw, 90px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.milestone { padding: 28px 28px 0 0; position: relative; }
.milestone::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.m-year { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--gold-deep); }
.milestone p { color: var(--muted); font-size: .92rem; margin-top: .3em; }

/* ---------- Legacy (dark) ---------- */
.section.dark { background: var(--black); color: rgba(255,255,255,.75); }
.section.dark h2, .section.dark h3, .section.dark h4 { color: var(--white); }
.section.dark h2 em { color: var(--gold-light); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p:last-child { font-size: 1.08rem; }

.heritage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.heritage-card {
  padding: 36px 32px; border: 1px solid rgba(217,182,106,.25); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(184,134,47,.10), transparent 60%);
  transition: border-color .3s, transform .3s;
}
.heritage-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.h-num { font-family: var(--serif); font-size: 3rem; color: var(--gold); line-height: 1; display: block; margin-bottom: 14px; }
.heritage-card p { margin: 0; }

.sub-head { font-size: 2rem; margin: 72px 0 28px; }
.sub-head.center { text-align: center; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 500px; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink); color: var(--white);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  transition: transform .4s, box-shadow .4s;
}
.project::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--gold); z-index: 3; }
.project:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(184,134,47,.45); }
.project-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .8s; }
.project:hover .project-bg { transform: scale(1.06); }
.project-flyer .project-bg { object-position: center 12%; }
.project-noimg .project-bg {
  background:
    radial-gradient(circle at 75% 25%, rgba(217,182,106,.55), transparent 55%),
    repeating-radial-gradient(circle at 75% 25%, transparent 0 22px, rgba(217,182,106,.12) 22px 23px),
    linear-gradient(160deg, var(--gold-deep), var(--black) 75%);
}
/* Frosted text panel over the image */
.project-body {
  position: relative; z-index: 2; margin: 14px; padding: 24px 24px 22px;
  border-radius: 12px;
  background: rgba(14,13,11,.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.12);
}
.project h4 { color: var(--white); font-size: 1.55rem; margin-bottom: .4em; }
.project p { color: rgba(255,255,255,.82); font-size: .93rem; margin-bottom: 1em; }
.project p strong { color: var(--gold-light); font-weight: 600; }
.project-tag {
  display: inline-block; margin-bottom: 12px; padding: .3rem .75rem; border-radius: 999px;
  background: var(--gold); color: var(--white);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700;
}
.project .link-arrow { color: var(--gold-light); }
.project .link-arrow.muted { color: rgba(255,255,255,.6); }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Pillars / timeline ---------- */
.pillars { background: var(--white); }
.timeline { position: relative; max-width: 980px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--gold), var(--gold-light)); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 0 56px 48px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 48px 56px; }
.tl-dot {
  position: absolute; top: 0; right: -24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--black); color: var(--gold-light); border: 3px solid var(--gold);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; z-index: 1;
}
.tl-item:nth-child(even) .tl-dot { right: auto; left: -24px; }
.tl-body { background: var(--cream); padding: 28px 30px; border-radius: var(--radius); border: 1px solid var(--line); }
.tl-item:nth-child(odd) .tl-body { text-align: right; }
.tl-body p { margin: 0; color: var(--muted); }

.centres-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.centre { padding: 28px 24px; background: var(--black); border-radius: var(--radius); color: rgba(255,255,255,.72); position: relative; overflow: hidden; }
.centre::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 100px; height: 100px; border-radius: 50%; border: 1.5px solid rgba(217,182,106,.3); }
.centre h4 { color: var(--gold-light); font-size: 1.25rem; }
.centre p { font-size: .9rem; margin: 0; }

/* ---------- Youth ---------- */
.youth { background: linear-gradient(180deg, var(--ink) 0%, var(--black) 100%); color: rgba(255,255,255,.75); }
.youth h2 { color: var(--white); }
.youth h2 em { color: var(--gold-light); }
.youth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.youth-card { background: var(--ink-soft); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.youth-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.youth-card h3 { color: var(--white); }
.youth-card p { flex: 1; }
.yc-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 0 0 6px rgba(184,134,47,.18); }
.yc-icon .ico { width: 28px; height: 28px; color: var(--white); stroke-width: 1.8; }
.podcast { background: linear-gradient(160deg, var(--gold-deep), #5f4210); border-color: transparent; }
.podcast .yc-icon { background: var(--black); }
.podcast p { color: rgba(255,255,255,.88); }
.podcast .link-arrow.muted { color: rgba(255,255,255,.75); }
.wave { display: flex; align-items: center; gap: 4px; height: 36px; margin-bottom: 18px; }
.wave i { flex: 1; background: rgba(255,255,255,.7); border-radius: 2px; height: 30%; animation: wave 1.4s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.7s; } .wave i:nth-child(4n) { animation-delay: -1.1s; }
@keyframes wave { 50% { height: 100%; } }

.join { margin-top: 64px; display: grid; grid-template-columns: .8fr 1.2fr; background: var(--white); border-radius: var(--radius); overflow: hidden; color: var(--text); }
.join-copy { background: var(--gold-pale); padding: 40px; position: relative; display: flex; flex-direction: column; }
.join-copy h3 { font-size: 2rem; }
.join-copy p { color: var(--muted); }
.join-copy img { margin-top: auto; width: 140px; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 50%; border: 4px solid var(--gold); }

/* ---------- Forms ---------- */
.form { padding: 40px; display: grid; gap: 16px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: .95rem; color: var(--text);
  padding: .8rem 1rem; border: 1px solid #ddd5c6; border-radius: 10px; background: var(--white);
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184,134,47,.15); }
.form .invalid { border-color: #b3261e; }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note.is-error { color: #b3261e; }
.form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-note { margin: 0; font-size: .9rem; color: var(--gold-deep); font-weight: 600; min-height: 1.4em; }

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); }
.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.gallery-filters button {
  font: inherit; font-size: .85rem; font-weight: 600; padding: .55rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; transition: all .25s;
}
.gallery-filters button.active, .gallery-filters button:hover { background: var(--black); color: var(--gold-light); border-color: var(--black); }
.gallery-grid { columns: 3 280px; column-gap: 18px; }
.g-item { break-inside: avoid; margin-bottom: 18px; position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--black); display: block; width: 100%; border: 0; padding: 0; }
.g-item img { width: 100%; transition: transform .6s, opacity .3s; }
.g-item:hover img { transform: scale(1.05); opacity: .85; }
.g-item figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 18px 16px; text-align: left;
  background: linear-gradient(transparent, rgba(14,13,11,.88)); color: var(--white);
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  transform: translateY(8px); opacity: 0; transition: all .35s;
}
.g-item figcaption small { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.g-item:hover figcaption, .g-item:focus-visible figcaption { opacity: 1; transform: none; }
.g-item.hide { display: none; }
/* Placeholder tile shown until event photos are added */
.g-placeholder {
  aspect-ratio: 4/3; display: grid; place-items: center; padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(184,134,47,.35), transparent 70%), var(--black);
}
.g-placeholder img { width: 64px; opacity: .5; margin: 0 auto 10px; filter: none; }
.g-item:hover .g-placeholder img { transform: none; }
.g-placeholder span { color: var(--gold-light); font-family: var(--serif); font-size: 1.1rem; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,7,6,.94); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1000px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: var(--gold-light); font-family: var(--serif); font-size: 1.3rem; margin-top: 14px; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font-size: 3rem; cursor: pointer; line-height: 1; padding: 10px 16px; opacity: .8; }
.lightbox button:hover { opacity: 1; color: var(--gold-light); }
.lb-close { top: 12px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(90px, 12vw, 150px) 0; color: var(--white); overflow: hidden; background: var(--black); }
.cta-bg { position: absolute; inset: 0; background: url("../assets/img/statue.jpg") center 30% / cover; opacity: .32; filter: grayscale(.3); }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--black) 20%, rgba(14,13,11,.4)); }
.cta-inner { position: relative; z-index: 1; max-width: 1200px; }
.cta h2 { color: var(--white); max-width: 720px; }
.cta h2 em { color: var(--gold-light); }
.cta p { font-size: 1.15rem; max-width: 560px; color: rgba(255,255,255,.8); }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .ico { flex: none; width: 48px; height: 48px; padding: 13px; border-radius: 50%; background: var(--gold); color: var(--white); stroke-width: 1.8; }
.contact-list strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--black); }
.contact-list span { color: var(--muted); }
.contact-list a:hover { color: var(--gold); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--gold-pale); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) sepia(.25); }
.contact-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.contact-form h3 { font-size: 1.9rem; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.65); position: relative; padding-top: 18px; }
.zigzag-top { position: absolute; top: 0; left: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 48px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: var(--gold-light); font-size: 1.25rem; }
.site-footer a, .site-footer p { display: block; font-size: .92rem; margin-bottom: .55em; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { margin: 0; font-size: .82rem; }
.footer-bottom .motto { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-light); }

/* ---------- Reveal animation ---------- */
/* Uses an animation on `translate`/`scale` (not `transform`) so hover lifts and tilts still work */
.reveal { opacity: 0; }
.reveal.in { animation: revealIn .95s cubic-bezier(.16,1,.3,1) var(--d, 0s) both; }
.reveal-left { --from: -48px 0; }
.reveal-right { --from: 48px 0; }
.reveal-zoom { --from: 0 0; --scale-from: .88; }
@keyframes revealIn {
  from { opacity: 0; translate: var(--from, 0 32px); scale: var(--scale-from, 1); }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; animation: none; }
  .hero-rings span, .wave i { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 20px; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .centres-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  .nav-toggle { display: block; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; background: var(--black); flex-direction: column; justify-content: center; gap: 22px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .main-nav a:not(.btn) { font-family: var(--serif); font-size: 1.8rem; }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-open { overflow: hidden; }
  .brand { position: relative; z-index: 2; }

  .hero-grid { grid-template-columns: 1fr; text-align: left; padding-top: 32px; }
  .hero-figure img { height: 56vh; }
  .hero-rings { width: 600px; right: -40%; top: 70%; }
  .hero-bg { background-position: 50% 100%; background-size: auto 75%; opacity: .16; }

  .about-grid, .contact-grid, .join { grid-template-columns: 1fr; }
  .about-card { margin: -40px 12px 0; }
  .about-card::after { display: none; }
  .about-media { max-width: 560px; }
  .trio, .heritage-grid, .projects-grid, .youth-grid, .milestones { grid-template-columns: 1fr; }
  .milestone { padding-right: 0; }
  .timeline::before { left: 24px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 32px 72px; }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 0; right: auto; }
  .tl-item:nth-child(odd) .tl-body { text-align: left; }
  .join-copy img { display: none; }
}

/* ---------- Hero entrance after the journey ---------- */
.hero.hero-enter .hero-bg { animation: heroFade 2.4s ease both; }
.hero.hero-enter .figure-disc { animation: heroDisc 1.4s cubic-bezier(.16,1,.3,1) .15s both; }
.hero.hero-enter .hero-figure img { animation: heroRise 1.5s cubic-bezier(.16,1,.3,1) .3s both; }
.hero.hero-enter .figure-tag { animation: jRise .9s cubic-bezier(.16,1,.3,1) 1.1s both, tagFloat 5s ease-in-out 2s infinite alternate; }
@keyframes heroFade { from { opacity: 0; } }
@keyframes heroDisc { from { transform: translateX(-50%) scale(.4); opacity: 0; } }
@keyframes heroRise { from { transform: translateY(90px) scale(.96); opacity: 0; } }
@keyframes heroStroke { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .hero.hero-enter *, .hero.hero-play *, .hero.hero-play .stroke::after { animation: none !important; }
}

/* ---------- Opening journey ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
#hero-title:focus { outline: none; }
html.journey-on, html.journey-leaving { overflow: hidden; height: 100%; }

.journey {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: var(--black); color: var(--white);
  overflow: hidden;
}
html.journey-on .journey,
html.journey-leaving .journey { display: block; }
.journey.is-leaving {
  animation: journeyOut 1.1s cubic-bezier(.65, 0, .35, 1) forwards;
  pointer-events: none;
}
/* Step "through" the final print into the website */
@keyframes journeyOut {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.12); filter: blur(10px); }
}
.journey.is-leaving .j-scene.is-active .j-print { animation: jPrintThrough 1.1s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes jPrintThrough { to { transform: rotate(0deg) scale(1.5); } }

.j-grain {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: .05;
  background-image: radial-gradient(rgba(255,255,255,.35) .5px, transparent .5px);
  background-size: 3px 3px;
}
.j-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 7;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px 36px;
  background: linear-gradient(to bottom, rgba(14,13,11,.72), rgba(14,13,11,0));
}
.j-brand {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-light);
}
.j-brand span { width: 36px; height: 1px; background: var(--gold); }
.j-skip {
  font: inherit; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--white); background: transparent; cursor: pointer;
  border: 1px solid rgba(255,255,255,.38); border-radius: 999px; padding: .55rem 1.15rem;
  transition: color .25s, border-color .25s, background .25s;
}
.j-skip:hover { color: var(--gold-light); border-color: var(--gold-light); }
.j-skip:focus-visible, .j-enter:focus-visible, .j-rail button:focus-visible {
  outline: 2px solid var(--gold-light); outline-offset: 3px;
}

.j-scenes { position: absolute; inset: 0; }
.j-scene {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: minmax(380px, 48%) 1fr;
  padding: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
  background: var(--black);
}
.j-scene.is-active { opacity: 1; visibility: visible; z-index: 2; }
.j-frame {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(380px, 48%) 1fr;
  align-items: center; justify-items: center;
  overflow: hidden; background: #16130f;
}
/* Blurred copy of the photo fills the screen as atmosphere */
.j-ambient {
  position: absolute; inset: -40px;
  width: calc(100% + 80px); height: calc(100% + 80px); max-width: none;
  object-fit: cover; object-position: var(--face, center 25%);
  filter: blur(3px) grayscale(1) sepia(.45) brightness(.4) contrast(1.1);
  transform: scale(1.1);
}
.j-scene.is-active .j-ambient { animation: jAmbient 14s ease-out forwards; }
@keyframes jAmbient { from { transform: scale(1.22); } to { transform: scale(1.08); } }
.j-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,13,11,.94) 0%, rgba(14,13,11,.7) 38%, rgba(14,13,11,.25) 62%),
    radial-gradient(70% 70% at 68% 50%, transparent 40%, rgba(14,13,11,.55) 100%);
}

/* The archive print: whole photo, never cropped */
.j-print {
  --tilt: -2.2deg;
  position: relative; z-index: 2; grid-column: 2; margin: 0;
  padding: 12px 12px 0; background: #f4eee2;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(184,134,47,.5), 0 0 0 9px rgba(14,13,11,.0);
  transform: rotate(var(--tilt));
}
.j-scene:nth-child(even) .j-print { --tilt: 1.8deg; }
.j-print::before { /* gold corner mounts */
  content: ""; position: absolute; inset: -7px; pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 26px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left top / 2px 26px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 26px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 2px 26px no-repeat;
}
.j-print-img { display: block; position: relative; overflow: hidden; background: #111; }
.j-print-img::after { /* light sweep as the print arrives */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%);
}
.j-photo {
  display: block; width: auto; height: auto; max-width: min(38vw, 600px); max-height: 62vh;
  filter: contrast(1.05);
}
.j-print figcaption {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: #4a4238;
  text-align: center; padding: .55rem .5rem .7rem; letter-spacing: .02em;
}
.j-scene.is-active .j-print { animation: jPrintIn 1.2s cubic-bezier(.16,1,.3,1) both, jFloat 7s ease-in-out 1.2s infinite alternate; }
.j-scene.is-active .j-print-img::after { animation: jSweep 1.4s ease .55s both; }
.j-scene.is-active .j-photo { animation: jKen 14s ease-out forwards; }
.j-scene.was-active .j-print { animation: jPrintOut .8s cubic-bezier(.7,0,.84,0) both; }
@keyframes jPrintIn {
  from { opacity: 0; transform: translate(90px, 60px) rotate(calc(var(--tilt) * -4)) scale(.86); filter: blur(8px); }
  to   { opacity: 1; transform: rotate(var(--tilt)); filter: blur(0); }
}
@keyframes jPrintOut {
  to { opacity: 0; transform: translate(-140px, -40px) rotate(calc(var(--tilt) * 5)) scale(.9); filter: blur(6px); }
}
@keyframes jFloat { to { transform: rotate(var(--tilt)) translateY(-8px); } }
@keyframes jSweep { to { transform: translateX(120%); } }
@keyframes jKen { from { transform: scale(1.08); } to { transform: scale(1); } }

.j-year {
  position: relative; z-index: 1; margin: 0 0 .25em;
  font-family: var(--serif); font-weight: 600; letter-spacing: .02em; line-height: 1;
  font-size: clamp(4.4rem, min(10vw, 15vh), 9rem);
  font-variant-numeric: lining-nums;
  color: var(--gold-light);
  text-shadow: 0 10px 40px rgba(0,0,0,.5); pointer-events: none;
}
.j-scene.is-active .j-year { animation: jYear .9s cubic-bezier(.16,1,.3,1) both; }
@keyframes jYear {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.j-finale .j-year { display: none; }

.j-copy {
  position: relative; z-index: 3;
  grid-column: 1; grid-row: 1;
  align-self: center;
  max-width: 44rem;
  padding: 110px 48px 120px 56px;
}
.j-meta {
  display: flex; align-items: center; gap: 20px; margin: 0 0 1.1rem;
  font-size: .86rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-light);
}
.j-count i { font-style: normal; opacity: .5; letter-spacing: .08em; }
.j-copy h2 {
  color: var(--white); font-weight: 600;
  font-size: clamp(2.4rem, min(5vw, 7.5vh), 4.8rem);
  line-height: 1.08; letter-spacing: .005em;
  margin: 0 0 .5em;
}
.j-text { margin: 0; max-width: 40rem; color: rgba(255,255,255,.88); font-size: clamp(1.08rem, min(1.6vw, 2.4vh), 1.35rem); line-height: 1.75; letter-spacing: .01em; }
.j-scene.is-active .j-meta,
.j-scene.is-active h2,
.j-scene.is-active .j-text,
.j-scene.is-active .j-logo,
.j-scene.is-active .j-enter { animation: jRise .9s cubic-bezier(.16,1,.3,1) both; }
.j-scene.is-active h2 { animation-delay: .1s; }
.j-scene.is-active .j-text { animation-delay: .2s; }
.j-scene.is-active .j-logo { animation-delay: .05s; }
.j-scene.is-active .j-enter { animation-delay: .32s; }
@keyframes jRise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* Finale: the statue rises in a burst of gold */
.j-frame-statue { align-items: end; }
.j-frame-statue .j-ambient { filter: blur(6px) grayscale(.6) sepia(.6) brightness(.32); }
.j-statue {
  position: relative; z-index: 2; grid-column: 2; align-self: end;
  height: 94vh; width: auto; max-width: 46vw; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 0 40px rgba(217,182,106,.35)) drop-shadow(0 30px 40px rgba(0,0,0,.7));
  -webkit-mask-image: linear-gradient(#000 78%, transparent 100%);
          mask-image: linear-gradient(#000 78%, transparent 100%);
}
.j-burst, .j-rays {
  position: absolute; z-index: 1; left: 72%; top: 42%;
  width: 150vmax; height: 150vmax; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
}
.j-burst { background: radial-gradient(circle, rgba(255,226,160,.95) 0%, rgba(217,182,106,.55) 8%, rgba(184,134,47,.18) 22%, transparent 42%); }
.j-rays {
  background: repeating-conic-gradient(from 0deg, rgba(217,182,106,.22) 0deg 4deg, transparent 4deg 16deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 40%);
          mask-image: radial-gradient(circle, #000 0%, transparent 40%);
  opacity: 0;
}
.j-finale.is-active .j-burst { animation: jBurst 2.2s cubic-bezier(.16,1,.3,1) both; }
.j-finale.is-active .j-rays { animation: jRaysIn 1.6s ease .5s both, jRaysSpin 60s linear infinite; }
.j-finale.is-active .j-statue { animation: jStatue 2s cubic-bezier(.16,1,.3,1) .25s both; }
.j-finale.is-active .j-ambient { animation: jAmbient 14s ease-out forwards, heroFade 2s ease both; }
@keyframes jBurst {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: .75; }
}
@keyframes jRaysIn { to { opacity: 1; } }
@keyframes jRaysSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes jStatue {
  from { transform: translateY(28%) scale(.92); opacity: 0; filter: brightness(.2) blur(10px) drop-shadow(0 0 0 rgba(217,182,106,0)); }
  60%  { filter: brightness(1.35) blur(0) drop-shadow(0 0 70px rgba(217,182,106,.8)); }
  to   { transform: none; opacity: 1; }
}
.journey.is-leaving .j-finale .j-statue { animation: jStatueOut 1.1s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes jStatueOut { to { transform: scale(1.35) translateY(-6%); filter: brightness(1.6) blur(4px); } }
.j-finale { text-align: left; }
.j-finale .j-copy { display: flex; flex-direction: column; align-items: flex-start; max-width: none; margin-inline: 0; }
.j-finale .j-meta { justify-content: center; }
.j-finale .j-text { margin-inline: auto; }
.j-logo { width: min(340px, 100%); height: auto; margin: 0 0 1rem; filter: drop-shadow(0 12px 24px rgba(0,0,0,.45)); }
.j-enter { margin-top: 1.7rem; gap: 12px; }
.j-ring { width: 22px; height: 22px; flex: none; }
.j-ring circle {
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-dasharray: 138.2; stroke-dashoffset: 138.2;
  transform: rotate(-90deg); transform-origin: center;
}
.j-finale.is-active .j-ring circle { animation: jRing var(--j-finale, 6.2s) linear forwards; }
.journey.is-held .j-ring circle,
.journey.is-reduced .j-ring circle { animation: none; stroke-dashoffset: 0; }
@keyframes jRing { to { stroke-dashoffset: 0; } }

.j-rail {
  --rail-p: 0%;
  position: absolute; z-index: 7; left: 44px; bottom: 26px;
  width: min(460px, 36vw);
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between;
}
.j-rail::before, .j-rail::after {
  content: ""; position: absolute; left: 0; top: 12px; height: 1px;
}
.j-rail::before { right: 0; background: rgba(217,182,106,.25); }
.j-rail::after {
  width: var(--rail-p); background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  box-shadow: 0 0 10px rgba(217,182,106,.6); transition: width 1s cubic-bezier(.16,1,.3,1);
}
.j-rail li { position: relative; z-index: 1; }
.j-rail button {
  position: relative; display: block; padding: 26px 2px 4px; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .08em;
  color: rgba(255,255,255,.38); transition: color .4s;
}
.j-rail button::before {
  content: ""; position: absolute; left: 50%; top: 12px; width: 9px; height: 9px;
  border-radius: 50%; border: 1px solid rgba(217,182,106,.55); background: var(--black);
  transform: translate(-50%, -50%); transition: background .4s, box-shadow .4s, transform .4s;
}
.j-rail li.is-done button { color: rgba(255,255,255,.65); }
.j-rail li.is-done button::before { background: var(--gold-deep); border-color: var(--gold); }
.j-rail li.is-on button { color: var(--gold-light); }
.j-rail li.is-on button::before {
  background: var(--gold); border-color: var(--gold-light);
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 0 5px rgba(184,134,47,.22), 0 0 16px rgba(217,182,106,.8);
}
.j-rail button:hover { color: var(--white); }

.journey-zig { position: absolute; left: 0; bottom: 3px; z-index: 5; }
.j-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 6; background: rgba(255,255,255,.1); }
.j-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); transform: scaleX(0); transform-origin: left; }

@media (max-width: 800px) {
  /* Stack: top bar → photo (fills spare space) → text → year rail. Nothing overlaps. */
  .j-top { padding: 12px 16px 20px; }
  .j-brand { font-size: .62rem; letter-spacing: .18em; white-space: nowrap; gap: 8px; }
  .j-brand span { width: 20px; }
  .j-skip { font-size: .66rem; letter-spacing: .12em; padding: .45rem .9rem; white-space: nowrap; }
  .j-scene {
    display: flex; flex-direction: column; justify-content: center; gap: 10px;
    padding: 62px 0 76px;
  }
  .j-frame {
    position: static; display: flex; align-items: center; justify-content: center;
    flex: 0 100 auto; height: 44vh; height: 44svh; min-height: 90px; padding: 4px 22px 6px;
    background: transparent; overflow: visible; container-type: size;
  }
  .j-ambient, .j-frame::after { position: absolute; }
  .j-frame::after { background: linear-gradient(to top, rgba(14,13,11,.97) 0%, rgba(14,13,11,.88) 42%, rgba(14,13,11,.45) 75%, rgba(14,13,11,.55) 100%); }
  .j-print { padding: 7px 7px 0; }
  /* size the photo to the space left for it, so the print hugs the photo with no bars */
  .j-photo { max-width: calc(100cqw - 58px); max-height: calc(100cqh - 52px); width: auto; height: auto; }
  /* caption follows the photo width instead of stretching the print */
  .j-print figcaption { width: 0; min-width: 100%; box-sizing: border-box; font-size: .8rem; line-height: 1.25; padding: .3rem .3rem .45rem; }
  .j-print::before { inset: -5px; }

  .j-frame-statue { align-items: flex-end; padding-bottom: 0; height: 40vh; height: 40svh; }
  .j-statue { height: 100%; max-height: 100%; max-width: 78vw; align-self: flex-end; }
  .j-burst, .j-rays { left: 50%; top: 32%; }

  /* year and place share one line to save height */
  .j-copy {
    flex: none; align-self: stretch; max-width: none; padding: 6px 22px 0;
    display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px;
  }
  .j-copy > * { flex: 0 0 100%; }
  .j-copy > .j-year, .j-copy > .j-meta { flex: 0 1 auto; }
  .j-year { font-size: clamp(2.8rem, 13vw, 3.8rem); margin: 0 0 .15em; }
  .j-meta { font-size: .68rem; letter-spacing: .14em; gap: 10px; margin: 0 0 .7rem; flex-wrap: wrap; }
  .j-copy h2 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); margin-bottom: .4em; }
  .j-text { font-size: 1rem; line-height: 1.6; }

  .j-finale { text-align: center; }
  .j-finale .j-copy { flex-direction: row; justify-content: center; }
  .j-finale .j-copy > .j-meta { flex: 0 0 100%; }
  .j-finale .j-copy > .j-enter { flex: 0 0 auto; }
  .j-finale .j-meta { justify-content: center; }
  .j-logo { display: none; }
  .j-enter { margin-top: 1rem; }

  /* Bottom of screen kept simple: dots only (the big year already shows the date), no zigzag */
  .journey-zig { display: none; }
  .j-rail { left: 22px; right: 22px; width: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .j-rail::before, .j-rail::after { top: 50%; }
  .j-rail button { font-size: 0; padding: 14px 10px; }
  .j-rail button::before { top: 50%; }
}
/* Shorter phones (e.g. iPhone SE): trim the text block further */
@media (max-width: 800px) and (max-height: 700px) {
  .j-scene { padding: 56px 0 68px; gap: 6px; }
  .j-frame { height: 36vh; height: 36svh; }
  .j-frame-statue { height: 32vh; height: 32svh; }
  .j-year { font-size: 2.6rem; }
  .j-copy h2 { font-size: 1.7rem; }
  .j-text { font-size: .9rem; line-height: 1.5; }
  .j-meta { margin-bottom: .4rem; }
}
@media (min-width: 801px) and (max-height: 700px) {
  .j-scene { grid-template-rows: minmax(42vh, 1fr) auto; }
  .j-photo { max-height: 54vh; }
  .j-year { font-size: 3.6rem; }
  .j-copy h2 { font-size: 2.3rem; }
  .j-logo { width: min(220px, 70vw); margin-bottom: .25rem; }
  .j-text { font-size: 1rem; }
  .j-copy { padding-bottom: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .j-finale.is-active .j-burst, .j-finale.is-active .j-rays, .j-finale.is-active .j-statue, .journey.is-leaving .j-finale .j-statue,
  .j-scene.is-active .j-print, .j-scene.was-active .j-print, .j-scene.is-active .j-ambient,
  .j-scene.is-active .j-print-img::after, .journey.is-leaving .j-scene.is-active .j-print,
  .j-scene, .j-scene.is-active .j-photo, .j-scene.is-active .j-year,
  .j-scene.is-active .j-meta, .j-scene.is-active h2, .j-scene.is-active .j-text,
  .j-scene.is-active .j-logo, .j-scene.is-active .j-enter, .j-finale.is-active .j-ring circle {
    animation: none;
  }
  .j-photo { transform: none; }
  .j-rail::after { transition: none; }
  .j-rays { opacity: 1; }
  .journey.is-leaving { animation: none; }
}

@media (max-width: 600px) {
  :root { --header-h: 72px; }
  .page-hero-bg { opacity: .1; }
  .brand img { height: 36px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.25); }
  .values-grid, .centres-grid, .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form, .join-copy { padding: 28px 22px; }
  .figure-tag { left: 50%; transform: translateX(-50%); bottom: 6%; white-space: nowrap; }
}

/* ---------- Phone layout refinements ---------- */
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .sub-head { margin: 48px 0 20px; font-size: 1.7rem; }

  /* Hero: tighter, buttons side by side */
  .hero-grid { gap: 8px; padding-top: 20px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4rem); }
  .hero .lead { font-size: 1rem; }
  .hero-actions { gap: 10px; margin-top: 1.5rem; }
  .hero-actions .btn { flex: 1 1 auto; padding: .8rem 1.1rem; font-size: .85rem; }
  .hero-dates { margin-top: 1.6rem; font-size: 1rem; }
  .hero-dates i { width: 36px; }
  .hero-figure img { height: 46vh; }
  .figure-disc { width: 78%; }
  .figure-tag { padding: 10px 16px; bottom: 8%; }
  .tag-name { font-size: 1.05rem; }

  /* Stats strip: compact labels */
  .stat { padding: 24px 10px; }
  .stat .num { font-size: 2.3rem; margin-bottom: 6px; }
  .stat .label { display: block; font-size: .68rem; letter-spacing: .12em; line-height: 1.35; }

  /* About */
  .about-media { padding-bottom: 50px; }
  .about-card { margin: -30px 0 0; padding: 28px 22px; }
  .trio { margin-top: 48px; }
  .trio-item { padding: 26px 22px; }
  .trio-item h3 { font-size: 1.6rem; }

  /* Core values: two per row */
  .values { margin-top: 56px; }
  .values-title { font-size: 1.9rem; }
  .values-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .value { padding: 20px 12px; }
  .value:last-child { grid-column: span 2; }
  .value .ico { width: 54px; height: 54px; padding: 14px; margin-bottom: 12px; box-shadow: 0 0 0 1px var(--line); }
  .value h4 { font-size: 1.05rem; }
  .value p { font-size: .8rem; line-height: 1.5; }

  /* Milestones: simple vertical line */
  .milestones { margin-top: 48px; border-top: 0; border-left: 1px solid var(--line); padding-left: 24px; gap: 28px; }
  .milestone { padding: 0; }
  .milestone::before { top: 10px; left: -30px; }
  .m-year { font-size: 1.5rem; }

  /* Programmes timeline: more room for text */
  .timeline::before { left: 19px; }
  .tl-item, .tl-item:nth-child(even) { padding: 0 0 22px 54px; }
  .tl-dot { width: 40px; height: 40px; font-size: 1.15rem; }
  .tl-body { padding: 20px; }
  .tl-body h3 { font-size: 1.4rem; }
  .tl-body p { font-size: .92rem; }
  .centres-grid { gap: 12px; }
  .centre { padding: 22px 20px; }

  /* Cards */
  .heritage-card { padding: 26px 22px; }
  .h-num { font-size: 2.4rem; }
  .project { min-height: 440px; }
  .project-body { margin: 10px; padding: 20px; }
  .project h4 { font-size: 1.35rem; }
  .youth-card { padding: 26px 22px; }
  .join { margin-top: 40px; }
  .join-copy h3 { font-size: 1.7rem; }

  /* Map */
  .zim-places li { padding: 12px 14px; }
  .zim-places strong { font-size: 1.2rem; }

  /* CTA */
  .cta { padding: 72px 0; }
  .cta p { font-size: 1rem; }

  /* Inner page banners */
  .page-hero { padding-top: calc(var(--header-h) + 36px); }
  .page-hero-inner { padding-bottom: 48px; }
  .page-hero h1 { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .page-hero .lead { font-size: 1rem; }
  .crumbs { margin-bottom: 1rem; }

  /* Contact */
  .contact-grid { gap: 32px; }
  .contact-form h3 { font-size: 1.6rem; }

  /* Footer: links side by side */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 56px 0 32px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: span 2; }
  .footer-brand img { height: 44px; }
  .site-footer a, .site-footer p { font-size: .88rem; }
  .footer-bottom { flex-direction: column; }
}

/* ==========================================================
   Home page motion
   ========================================================== */

/* Reading progress along the top edge */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress i {
  display: block; height: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  box-shadow: 0 0 10px rgba(217,182,106,.6);
}

/* Hero title: words rise in one after another */
.hero h1 .w { display: inline-block; }
.hero.hero-play h1 .w { animation: heroWord 1.1s cubic-bezier(.16,1,.3,1) calc(.15s + var(--i) * .16s) both; }
.hero.hero-play .stroke::after { animation: heroStroke .9s ease 1s both; }
@keyframes heroWord { from { opacity: 0; transform: translateY(.45em) rotate(4deg); filter: blur(6px); } }

/* Hero figure follows the pointer at different depths */
.hero { --mx: 0; --my: 0; }
.hero-figure .figure-disc { translate: calc(var(--mx) * 18px) calc(var(--my) * 14px); transition: translate .6s cubic-bezier(.16,1,.3,1); }
.hero-figure img { translate: calc(var(--mx) * -10px) calc(var(--my) * -6px); transition: translate .6s cubic-bezier(.16,1,.3,1); }
.hero-rings { translate: calc(var(--mx) * -30px) calc(var(--my) * -24px); transition: translate .9s cubic-bezier(.16,1,.3,1); }
.figure-tag { animation: tagFloat 5s ease-in-out infinite alternate; }
@keyframes tagFloat { to { translate: 0 -10px; } }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 40px; z-index: 2; translate: -50% 0;
  width: 26px; height: 42px; border: 1.5px solid rgba(217,182,106,.6); border-radius: 14px;
  transition: border-color .3s, opacity .4s;
}
.scroll-cue:hover { border-color: var(--gold-light); }
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--gold-light); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.scrolled-past .scroll-cue { opacity: 0; pointer-events: none; }
@media (max-width: 940px) { .scroll-cue { display: none; } }

/* Gold underline draws under the accent word of each heading */
.reveal h2 em, .reveal h2 .gold {
  background: linear-gradient(var(--gold), var(--gold)) left 96% / 0 2px no-repeat;
  transition: background-size 1s cubic-bezier(.16,1,.3,1) .55s;
}
.reveal.in h2 em, .reveal.in h2 .gold { background-size: 100% 2px; }

/* Gold buttons: light sweep on hover */
.btn-gold { position: relative; overflow: hidden; isolation: isolate; }
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-gold:hover::after { transform: translateX(120%); transition: transform .8s ease; }

/* Stats: number pops when its count lands */
.stat .num.done { animation: statPop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes statPop { 50% { transform: scale(1.12); } }

/* Project cards: 3D tilt with a glare that follows the pointer */
.project { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; transform-style: preserve-3d; }
.project.tilting { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px); transition: transform .12s linear, box-shadow .4s; }
.project::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,236,190,.22), transparent 45%);
}
.project.tilting::after { opacity: 1; }

/* About images drift at different speeds while scrolling */
.about-main, .about-inset { translate: 0 var(--py, 0px); }

/* Gallery film strip */
.marquee {
  overflow: hidden; margin-inline: calc(50% - 50vw); padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; align-items: flex-start; gap: 18px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
.m-item {
  position: relative; flex: none; height: clamp(240px, 26vw, 340px);
  border-radius: 12px; overflow: hidden; background: var(--black);
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s;
}
.m-item img { width: auto; height: 100%; max-width: none; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.m-item span {
  position: absolute; inset: auto 0 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(14,13,11,.88));
  color: var(--white); font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s;
}
.m-item:hover, .m-item:focus-visible { transform: translateY(-8px); box-shadow: var(--shadow); }
.m-item:hover img { transform: scale(1.07); }
.m-item:hover span, .m-item:focus-visible span { opacity: 1; transform: none; }
@media (max-width: 600px) { .m-item { height: 220px; } .m-item span { opacity: 1; transform: none; font-size: 1rem; } }

/* CTA backdrop breathes slowly */
.cta-bg { animation: kenBurns 26s ease-in-out infinite alternate; }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.12) translateX(-2%); } }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress, .scroll-cue { display: none; }
  .figure-tag, .cta-bg, .stat .num.done, .scroll-cue span { animation: none; }
  .hero-figure .figure-disc, .hero-figure img, .hero-rings, .about-main, .about-inset { translate: none; }
  .project.tilting { transform: none; }
  .reveal h2 em, .reveal h2 .gold { transition: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
}
