/* ==========================================================================
   Space Renaissance International — "Renaissance × Space" design system
   Tokens follow the redesign proposal (Aug 2026), page 3.
   Rule: Renaissance Gold marks actions and highlights only.
   ========================================================================== */

:root {
  /* Palette */
  --ink: #0A0F2C;          /* primary background */
  --indigo: #14204A;       /* surfaces */
  --nebula: #1E2F6E;       /* gradients */
  --gold: #F2B33D;         /* actions */
  --gold-hi: #F7CB6B;
  --gold-lo: #E09A1F;
  --cyan: #57C7E3;         /* accents */
  --paper: #F7F5EF;        /* light sections */

  /* Text on dark */
  --text: #FFFFFF;
  --text-body: #C6CDE8;
  --text-muted: #939DC6;
  --text-ink: #0A0F2C;

  /* Surfaces */
  --card: rgba(255, 255, 255, .06);
  --card-hover: rgba(255, 255, 255, .09);
  --hairline: rgba(255, 255, 255, .14);
  --hairline-strong: rgba(255, 255, 255, .28);
  --gold-line: rgba(242, 179, 61, .45);
  --accent-text: var(--gold);   /* gold for text on dark; overridden on light surfaces */

  /* Type */
  --font-display: "Caladea", Cambria, Georgia, serif;
  --font-ui: "Carlito", Calibri, "Segoe UI", system-ui, sans-serif;
  --fs-display: clamp(2.375rem, 1.6rem + 3.4vw, 3.875rem);  /* 38 → 62 */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.375rem);        /* 28 → 38 */
  --fs-h3: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);          /* 20 → 24 */
  --fs-body: clamp(1rem, .95rem + .25vw, 1.125rem);         /* 16 → 18 */
  --fs-small: .9375rem;
  --fs-eyebrow: .75rem;

  /* Space & shape */
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --max: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --section: clamp(4rem, 3rem + 4vw, 7rem);
  --header-h: 76px;
  --bottom-nav-h: 64px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--ink);
  background-image:
    url("../img/stars-near.svg"),
    url("../img/stars-far.svg"),
    linear-gradient(180deg, var(--ink) 0%, #0F1840 45%, var(--indigo) 100%);
  background-size: 1100px 1100px, 640px 640px, 100% 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); line-height: 1.08; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { text-wrap: pretty; }
strong { color: var(--text); font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.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: 1rem; top: -100px; z-index: 100;
  padding: .75rem 1.25rem; border-radius: 999px;
  background: var(--gold); color: var(--text-ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

.section { padding-block: var(--section); position: relative; }

.eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn--primary {
  background: var(--gold);
  color: var(--text-ink);
}
.btn--primary:hover {
  background: var(--gold-hi);
  box-shadow: 0 6px 24px -6px rgba(242, 179, 61, .55);
  transform: translateY(-1px);
}
.btn--ghost {
  border-color: var(--hairline-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .06); }
.btn--sm { min-height: 40px; padding: .5rem 1.125rem; font-size: .9375rem; }
.btn--dark { background: var(--ink); color: var(--text); }
.btn--dark:hover { background: var(--indigo); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 700; font-size: var(--fs-small);
  color: var(--accent-text);
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

.chip {
  display: inline-flex; align-items: center;
  padding: .375rem .875rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-size: .875rem;
  color: var(--text-body);
}
.tag {
  display: inline-block;
  padding: .25rem .625rem;
  border-radius: 6px;
  background: rgba(242, 179, 61, .14);
  color: var(--accent-text);
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  backdrop-filter: blur(2px);
  transition: background-color .25s, border-color .25s, transform .25s;
}

.icon-badge {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--gold-line);
  background: rgba(242, 179, 61, .08);
  color: var(--accent-text);
  font-size: 1.125rem;
  line-height: 1;
}
.icon-badge--cyan {
  border-color: rgba(87, 199, 227, .5);
  background: rgba(87, 199, 227, .08);
  color: var(--cyan);
}

/* ---------- Announcement bar ---------- */
.announce {
  position: relative; z-index: 20;
  border-bottom: 1px solid var(--gold-line);
  background: rgba(10, 15, 44, .85);
  font-size: .875rem;
  text-align: center;
}
.announce a {
  display: block;
  padding: .625rem var(--gutter);
  color: var(--text-body);
  text-decoration: none;
}
.announce__label { letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }
.announce__hl { color: var(--gold); font-weight: 700; }
.announce a:hover .announce__cta { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 15, 44, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: .875rem;
  text-decoration: none; color: var(--text);
}
.brand__star { width: 22px; height: 22px; color: var(--gold); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.0625rem; letter-spacing: .14em;
}
.brand__sub {
  margin-top: .375rem;
  font-size: .625rem; letter-spacing: .46em;
  color: var(--text-muted);
}

.main-nav ul {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; padding: 0;
}
.main-nav a:not(.btn) {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 .875rem;
  font-size: .9375rem;
  color: var(--text-body);
  text-decoration: none;
  border-radius: 999px;
  transition: color .2s;
}
.main-nav a:not(.btn):hover { color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--gold); }
.main-nav li:last-child { margin-left: .75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  overflow-x: clip;   /* clip sideways only, so the glows fade out instead of ending in a hard edge */
}
.hero::before,
.hero::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(20px);
}
.hero::before {           /* cool nebula glow, top-left */
  width: 720px; height: 720px; left: -260px; top: -320px;
  background: radial-gradient(circle, rgba(87, 199, 227, .16), transparent 65%);
}
.hero::after {            /* warm glow, bottom-right */
  width: 640px; height: 640px; right: -200px; bottom: -260px;
  background: radial-gradient(circle, rgba(242, 179, 61, .10), transparent 65%);
}

.hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
.hero__lede {
  margin-top: 1.5rem;
  max-width: 36em;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2.25rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: .25rem .75rem;
  margin-top: 2rem; padding: 0; list-style: none;
  font-size: .875rem; color: var(--text-muted);
}
.hero__trust li + li::before { content: "·"; margin-right: .75rem; color: var(--gold); }

.orbit { position: relative; width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 1; }
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit__satellite { transform-origin: 220px 220px; animation: orbit 60s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orbit__satellite { animation: none; } }

.stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  list-style: none; padding-left: 0;
}
.stat__num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  line-height: 1;
  color: var(--accent-text);
}
.stat__label { display: block; margin-top: .625rem; font-size: .9375rem; color: var(--text-muted); line-height: 1.4; }

/* ---------- Commitments ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.pillar { padding: 2rem 1.75rem; }
.pillar h3 { margin-top: 1.5rem; margin-bottom: .75rem; }
.pillar p { font-size: var(--fs-small); color: var(--text-body); }

/* ---------- Flagship campaign ---------- */
.campaign {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  margin-top: 2rem;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border-color: var(--gold-line);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(242, 179, 61, .08), transparent 55%),
    var(--card);
}
.campaign h2 { margin-top: 1.25rem; }
.campaign p { margin-top: 1.25rem; font-size: 1.0625rem; }
.campaign__meta { font-size: .875rem !important; color: var(--text-muted); }
.campaign__actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2rem; }

.sdg-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.375rem, .25rem + .5vw, .625rem);
  list-style: none; padding: 0;
}
.sdg-grid li {
  position: relative;
  aspect-ratio: 1;
  border-radius: clamp(6px, 4px + .4vw, 10px);
  padding: .375rem .5rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(.8125rem, .7rem + .4vw, 1rem);
  color: #fff;
  line-height: 1;
}
.sdg-grid li:nth-child(1)  { background: #E5243B; }
.sdg-grid li:nth-child(2)  { background: #DDA63A; }
.sdg-grid li:nth-child(3)  { background: #4C9F38; }
.sdg-grid li:nth-child(4)  { background: #C5192D; }
.sdg-grid li:nth-child(5)  { background: #FF3A21; }
.sdg-grid li:nth-child(6)  { background: #26BDE2; }
.sdg-grid li:nth-child(7)  { background: #FCC30B; }
.sdg-grid li:nth-child(8)  { background: #A21942; }
.sdg-grid li:nth-child(9)  { background: #FD6925; }
.sdg-grid li:nth-child(10) { background: #DD1367; }
.sdg-grid li:nth-child(11) { background: #FD9D24; }
.sdg-grid li:nth-child(12) { background: #BF8B2E; }
.sdg-grid li:nth-child(13) { background: #3F7E44; }
.sdg-grid li:nth-child(14) { background: #0A97D9; }
.sdg-grid li:nth-child(15) { background: #56C02B; }
.sdg-grid li:nth-child(16) { background: #00689D; }
.sdg-grid li:nth-child(17) { background: #19486A; }
.sdg-grid li.is-18 {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo));
  color: var(--text-ink);
  box-shadow: 0 0 0 2px rgba(242, 179, 61, .35), 0 8px 28px -6px rgba(242, 179, 61, .6);
}
.sdg-grid li.is-18::after {
  content: "✦"; position: absolute; right: .4rem; bottom: .3rem; font-size: .75em;
}

/* ---------- Programs ---------- */
.programs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.program { display: flex; flex-direction: column; padding: 1.75rem 1.5rem; }
.program h3 { margin-top: 1.5rem; margin-bottom: .75rem; font-size: 1.25rem; }
.program p { flex: 1; font-size: var(--fs-small); color: var(--text-body); }
.program .link-arrow { margin-top: 1.25rem; }
.program .link-arrow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.program:hover, .news-card:hover { background: var(--card-hover); border-color: var(--hairline-strong); transform: translateY(-2px); }

/* ---------- News ---------- */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; list-style: none; padding: 0; }
.news-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.news-card__media {
  position: relative;
  aspect-ratio: 16 / 7;
  background:
    url("../img/stars-far.svg") center / 320px,
    linear-gradient(160deg, var(--nebula) 0%, #2F4AA0 100%);
}
.news-card__media .tag { position: absolute; left: 1rem; top: 1rem; background: rgba(10, 15, 44, .55); }
.news-card__body { display: flex; flex-direction: column; gap: .625rem; padding: 1.5rem; flex: 1; }
.news-card time {
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted);
}
.news-card h3 { font-size: 1.1875rem; line-height: 1.3; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-card p { font-size: var(--fs-small); color: var(--text-body); }

/* ---------- Footer ---------- */
.site-footer {
  background: rgba(6, 9, 28, .92);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem) 2rem;
  font-size: var(--fs-small);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 2.5rem;
}
.footer__about p { margin-top: 1.25rem; max-width: 28em; color: var(--text-muted); }
.footer__title {
  font-family: var(--font-ui); font-size: .8125rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text);
  margin-bottom: 1rem;
}
.footer__links { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer__links a { color: var(--text-muted); text-decoration: none; }
.footer__links a:hover { color: var(--text); text-decoration: underline; }
.footer__note { margin-bottom: 1rem; color: var(--text-muted); }
.footer__social { margin-top: 1rem; color: var(--text-muted); }
.footer__social a { color: var(--text-muted); }
.footer__social a:hover { color: var(--text); }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: .8125rem; color: var(--text-muted);
}

/* ---------- Mobile bottom nav ---------- */
.bottom-nav { display: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .main-nav a:not(.btn) { padding: 0 .625rem; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .orbit { max-width: 300px; order: -1; margin-bottom: -1rem; }
  .campaign { grid-template-columns: 1fr; }
  .sdg-grid { max-width: 440px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .orbit { display: none; }  /* mobile mockup leads with the headline */
  .site-header__inner { justify-content: center; min-height: 64px; }
  .announce__label, .announce__cta { display: none; }

  .pillars, .news { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }

  body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(8, 12, 36, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--hairline);
  }
  .bottom-nav ul {
    display: grid; grid-template-columns: repeat(5, 1fr);
    list-style: none; padding: 0; margin: 0;
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
    min-height: var(--bottom-nav-h);
    font-size: .75rem; color: var(--text-muted); text-decoration: none;
  }
  .bottom-nav svg { width: 20px; height: 20px; }
  .bottom-nav a[aria-current="page"] { color: var(--gold); }
}

@media (max-width: 560px) {
  .programs { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__trust li + li::before { display: none; }
  .hero__trust { flex-direction: column; }
  .brand__name { font-size: 1rem; }
}
