/* =========================================================
   BRICS+ Inclusive Art — landing page
   ========================================================= */

:root {
  /* brand (logo wordmark) */
  --logo-green: #59a66e;
  --logo-blue: #3c6fa6;
  --logo-orange: #e49836;
  --logo-red: #d74339;
  --logo-yellow: #f7cd45;

  /* interface palette */
  --navy: #0b1a4e;
  --navy-2: #13246a;
  --text: #36405f;
  --muted: #646d8c;
  --line: #e3e7f2;
  --bg-soft: #f5f7fc;

  --green: #2f9a4e;
  --green-ink: #267f41;
  --blue: #2f6fe0;
  --blue-ink: #2557b8;
  --orange: #e07a12;
  --orange-ink: #c2570a;
  --red: #e53935;
  --red-ink: #c62828;
  --yellow: #f5c02f;
  --yellow-ink: #a86a00;
  --indigo: #2a36a8;

  --radius: 22px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p { margin: 0; }

ul, ol { list-style: none; margin: 0; padding: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* wordmark letters — same colours as the logo */
.wordmark { white-space: nowrap; }
.l-b { color: var(--logo-green); }
.l-r { color: var(--logo-blue); }
.l-i { color: var(--logo-orange); }
.l-c { color: var(--logo-red); }
.l-s { color: var(--logo-yellow); }
.l-plus { color: var(--navy); }

.section { padding-block: clamp(64px, 8vw, 104px); }

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section-lead {
  margin-top: 14px;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 500;
  color: var(--text);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 26, 78, .08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark { width: 60px; height: auto; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  line-height: 1;
}
.brand-text .wordmark { font-size: 25px; letter-spacing: .01em; }
.brand-sub {
  margin-top: 4px;
  font-size: 14.5px;
  letter-spacing: .015em;
  color: var(--navy);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}
.main-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color .2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--logo-green), var(--logo-blue), var(--logo-orange), var(--logo-red), var(--logo-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  margin-right: -8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 13px;
  width: 22px; height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s, opacity .2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); background: var(--navy); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); background: var(--navy); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 24px;
  min-height: clamp(560px, calc(100vh - var(--header-h) - 130px), 700px);
  padding-block: 56px 64px;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-ink);
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(54px, 8.2vw, 108px);
  line-height: .94;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.hero-title .wordmark,
.hero-title-sub { display: block; }
.hero-title-sub { text-transform: uppercase; }

.hero-tagline {
  margin-top: 26px;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
}

.hero-lead {
  max-width: 30ch;
  margin-top: 14px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--text);
}

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 420px;
}

.hero-ribbons {
  position: absolute;
  top: -56px;
  bottom: -64px;
  left: -14%;
  width: calc(100% + 14% + max(var(--gutter), (100vw - var(--container)) / 2));
  height: calc(100% + 120px);
  max-width: none;
  z-index: 0;
}
.hero-ribbons .ribbons {
  fill: none;
  stroke-linecap: round;
  mix-blend-mode: multiply;
}
.hero-ribbons path { mix-blend-mode: multiply; }

.hero-figures {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(118%, 700px);
  max-width: none;
  height: auto;
  transform: translate(-46%, -50%);
}

/* ---------- stats ---------- */
.stats {
  position: relative;
  z-index: 2;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 16px;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num {
  font-size: clamp(44px, 5.4vw, 66px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.25;
  font-weight: 600;
  color: var(--navy);
}
.stat--green .stat-num { color: var(--green); }
.stat--blue .stat-num { color: var(--blue); }
.stat--orange .stat-num { color: var(--orange); }

/* ---------- categories ---------- */
.categories { background: var(--bg-soft); }

.section-head { margin-bottom: clamp(32px, 4vw, 48px); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

.cat {
  --tint: #eef8f1;
  --accent: var(--green);
  position: relative;
  grid-column: span 3;
  min-height: 300px;
  padding: 24px 24px 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tint);
  isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
}
.cat--wide { grid-column: span 4; }
.cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11, 26, 78, .10);
}

.cat-num {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
}
.cat-title {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  margin-top: 10px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--navy);
}
.cat-art {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 70%;
  object-fit: contain;
  object-position: right bottom;
  transition: transform .4s ease;
}
.cat:hover .cat-art { transform: scale(1.04); transform-origin: right bottom; }

.cat--green  { --tint: #e8f6ec; --accent: var(--green); }
.cat--blue   { --tint: #e6effe; --accent: var(--blue); }
.cat--orange { --tint: #fff1e0; --accent: var(--orange); }
.cat--red    { --tint: #fdeaea; --accent: var(--red); }
.cat--yellow { --tint: #fef5d8; --accent: #d98a06; }
.cat--indigo { --tint: #e9ebfc; --accent: var(--navy); }
.cat--mint   { --tint: #e6f5ec; --accent: var(--green); }

/* ---------- path (how it works) ---------- */
.path {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 7vw, 96px);
  background: var(--navy);
  color: #fff;
}
.path-deco {
  position: absolute;
  bottom: 0;
  pointer-events: none;
}
.path-deco--left { left: 0; width: clamp(220px, 30vw, 420px); }
.path-deco--right { right: 0; width: clamp(150px, 20vw, 300px); }

.path .container { position: relative; z-index: 1; }

.path-title {
  color: #fff;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1040px;
  margin: clamp(32px, 4vw, 48px) auto 0;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 8px clamp(16px, 3vw, 44px);
}
.step + .step { border-left: 1px solid rgba(255, 255, 255, .22); }

.step-num {
  flex-shrink: 0;
  font-size: clamp(64px, 7vw, 92px);
  line-height: .9;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 2px currentColor;
}
.step--green .step-num { -webkit-text-stroke-color: #4cc06a; }
.step--blue .step-num { -webkit-text-stroke-color: #4f95f5; }

.step-title {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
}
.step p {
  margin-top: 10px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .86);
}

/* ---------- programme ---------- */
.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(28px, 3.5vw, 44px);
}
.program-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px clamp(16px, 3vw, 40px);
}
.program-item:nth-child(odd) { padding-left: 0; }
.program-item:nth-child(even) { border-left: 1px solid var(--line); }
.program-item:nth-child(n + 3) { border-top: 1px solid var(--line); }

.program-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}
.program-title {
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.25;
  font-weight: 800;
  color: var(--navy);
}
.program-item p {
  max-width: 34ch;
  margin-top: 8px;
  font-size: 17px;
  color: var(--text);
}

/* ---------- timeline ---------- */
.program { padding-bottom: clamp(40px, 5vw, 64px); }
.timeline { padding-top: clamp(24px, 3vw, 40px); }

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}
.timeline-note {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(120px, auto);
  margin-top: clamp(32px, 4vw, 48px);
}
.tl {
  --dot: var(--green);
  --next: var(--yellow);
  --ink: var(--green-ink);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 44px 20px 0 0;
}
.tl::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 5px #fff;
}
.tl:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 11px;
  right: -11px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--dot), var(--next));
}
.tl-date {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 800;
  color: var(--ink);
}
.tl-text {
  max-width: 20ch;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text);
}

.tl--green  { --dot: #3fa55b; --next: #f5c02f; --ink: var(--green-ink); }
.tl--yellow { --dot: #f5c02f; --next: #f08a24; --ink: var(--yellow-ink); }
.tl--orange { --dot: #f08a24; --next: #e53935; --ink: var(--orange-ink); }
.tl--red    { --dot: #e53935; --next: #0b1a4e; --ink: var(--red-ink); }
.tl--navy   { --dot: #0b1a4e; --next: #0b1a4e; --ink: var(--navy); }

/* ---------- organisers ---------- */
.organisers { padding-top: clamp(16px, 2vw, 24px); }

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(24px, 3vw, 36px);
}

.org-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  padding: 32px 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.org-card:hover {
  border-color: #cdd5ea;
  box-shadow: 0 16px 36px rgba(11, 26, 78, .09);
  transform: translateY(-3px);
}
.org-logo { width: auto; height: auto; }
.org-logo--wba { height: 128px; }
.org-logo--megastar { width: min(100%, 360px); }

.org-arrow {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: var(--navy);
  transition: transform .25s;
}
.org-card:hover .org-arrow { transform: translateX(4px); }

/* ---------- contacts / footer ---------- */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(48px, 6vw, 72px) 40px;
}

.contact {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  gap: 24px clamp(32px, 6vw, 72px);
}
.contact-title {
  padding-right: clamp(32px, 6vw, 72px);
  border-right: 1px solid rgba(255, 255, 255, .25);
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
}

.contact-list { margin: 0; }
.contact-row {
  display: grid;
  grid-template-columns: 130px auto;
  align-items: center;
  gap: 16px;
  padding-block: 6px;
}
.contact-row dt {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.contact-row dd {
  margin: 0;
  font-weight: 500;
  color: rgba(255, 255, 255, .86);
}
.contact-row a { color: #fff; text-underline-offset: 4px; }

.footer-bottom {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.footer-brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
}

/* ---------- reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .cat { grid-column: span 6; }
  .cat--wide { grid-column: span 4; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }

  .brand-mark { width: 50px; }
  .brand-text .wordmark { font-size: 22px; }
  .brand-sub { font-size: 13px; }

  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(11, 26, 78, .12);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s, transform .2s;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .main-nav li + li { border-top: 1px solid var(--line); }
  .main-nav a {
    display: block;
    padding: 16px 0;
    font-size: 19px;
  }
  .main-nav a::after { bottom: 10px; right: auto; width: 48px; }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 40px 0;
  }
  .hero-art {
    min-height: 0;
    height: clamp(300px, 70vw, 520px);
    margin-inline: calc(var(--gutter) * -1);
  }
  .hero-ribbons {
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .hero-figures {
    width: min(86%, 560px);
    transform: translate(-50%, -50%);
  }
  .hero-lead { max-width: 36ch; }

  .program-grid { grid-template-columns: 1fr; }
  .program-item,
  .program-item:nth-child(odd) { padding-inline: 0; }
  .program-item:nth-child(even) { border-left: 0; }
  .program-item + .program-item { border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .cat,
  .cat--wide { grid-column: span 6; }
  .cat:last-child { grid-column: 1 / -1; }

  .steps { grid-template-columns: 1fr; }
  .step { padding-inline: 0; }
  .step + .step {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .22);
    margin-top: 24px;
    padding-top: 32px;
  }

  /* vertical timeline */
  .timeline-list { grid-template-columns: 1fr; }
  .tl { padding: 0 0 32px 48px; }
  .tl:last-child { padding-bottom: 0; }
  .tl::before { top: 2px; }
  .tl:not(:last-child)::after {
    top: 13px;
    bottom: -13px;
    left: 8px;
    right: auto;
    width: 6px;
    height: auto;
    background: linear-gradient(180deg, var(--dot), var(--next));
  }
  .tl-text { max-width: none; }

  .contact { grid-template-columns: 1fr; }
  .contact-title {
    padding-right: 0;
    padding-bottom: 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
  }
}

@media (max-width: 640px) {
  body { font-size: 17px; }

  .stats-list { grid-template-columns: 1fr; }
  .stat {
    justify-content: flex-start;
    padding: 18px 4px;
  }
  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .stat-num { min-width: 3.1ch; }
  .stat-label br { display: none; }

  .cat-grid { grid-template-columns: 1fr; }
  .cat,
  .cat--wide,
  .cat:last-child { grid-column: auto; min-height: 196px; padding: 22px 20px 0; }
  .cat-title { max-width: 11ch; font-size: 20px; }
  .cat-art { width: 72%; height: 84%; }

  .step { flex-direction: column; gap: 14px; }

  .program-item { gap: 18px; padding-block: 24px; }
  .program-icon { width: 52px; height: 52px; }

  .org-card { min-height: 170px; }
  .org-logo--wba { height: 104px; }

  .contact-row { grid-template-columns: 110px auto; }
}

@media (max-width: 380px) {
  .brand-mark { width: 42px; }
  .brand-text .wordmark { font-size: 19px; }
  .brand-sub { font-size: 11.5px; }
}
