/*
 * Visual refresh for the Sustainable Development Goals site.
 * The original stylesheet remains in place for layout and legacy pages;
 * these focused overrides add motion, a more editorial visual system and
 * touch-friendly controls without introducing a framework dependency.
 */

:root {
  --ink: #13272a;
  --deep: #092326;
  --deep-soft: #123539;
  --paper: #f7f7f1;
  --paper-deep: #eeefe7;
  --white: #fff;
  --muted: #637477;
  --lime: #d9ed58;
  --teal: #14766e;
  --line: rgba(19, 39, 42, 0.11);
  --shadow-soft: 0 18px 48px rgba(20, 39, 41, 0.09);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: "Open Sans", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection {
  color: var(--deep);
  background: var(--lime);
}

a {
  color: var(--teal);
}

a:hover {
  color: #0d514c;
}

:focus-visible {
  outline: 3px solid #b4ca25;
  outline-offset: 4px;
}

/* ------------------------------------------------------------- Header */
#header {
  z-index: 1000;
  padding: 21px 0;
  background: transparent;
  transition: background-color 320ms ease, padding 320ms ease, box-shadow 320ms ease, backdrop-filter 320ms ease;
}

#header.header-scrolled,
#header.header-inner-pages {
  padding: 13px 0;
  background: rgba(7, 30, 33, 0.93);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#header .container {
  width: min(1320px, calc(100% - 52px));
  max-width: 1320px;
  padding-right: 0;
  padding-left: 0;
}

#header .logo {
  margin: 0;
}

#header .logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

#header .logo a:hover {
  color: #fff;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px 13px 13px 4px;
  background: var(--lime);
  color: var(--deep);
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.06em;
  box-shadow: 0 0 0 5px rgba(217, 237, 88, 0.13);
  transition: border-radius 280ms ease, transform 280ms ease;
}

#header .logo a:hover .brand-mark {
  border-radius: 50%;
  transform: rotate(-8deg);
}

.navbar {
  gap: 18px;
}

.navbar > ul > li {
  padding: 8px 12px;
}

.navbar a,
.navbar a:focus {
  color: rgba(255, 255, 255, 0.83);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.navbar > ul > li > a:before {
  bottom: -9px;
  height: 2px;
  background: var(--lime);
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: #fff;
}

.mobile-nav-toggle {
  display: none;
  color: #fff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  #navbar.navbar-mobile {
    z-index: 1002;
    padding: 0;
    background: rgba(4, 20, 22, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .navbar-mobile .mobile-nav-toggle {
    position: fixed;
    top: 18px;
    right: 24px;
    color: var(--deep);
    background: var(--lime);
    border-color: transparent;
  }

  .navbar-mobile ul {
    top: 82px;
    right: 20px;
    bottom: auto;
    left: 20px;
    width: auto;
    max-width: 560px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
  }

  .navbar-mobile > ul > li {
    padding: 0;
  }

  .navbar-mobile a,
  .navbar-mobile a:focus {
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--ink);
    font-size: 15px;
  }

  .navbar-mobile a:hover,
  .navbar-mobile .active,
  .navbar-mobile li:hover > a {
    color: var(--deep);
    background: var(--paper);
  }
}

/* --------------------------------------------------------------- Hero */
#hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  padding: 122px 0 96px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 13% 12%, rgba(43, 115, 96, 0.32), transparent 39%),
    radial-gradient(ellipse at 87% 76%, rgba(21, 87, 83, 0.34), transparent 38%),
    linear-gradient(135deg, #092326 0%, #0b2a2e 58%, #102d2c 100%);
}

#hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.28;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.7px, transparent 0.7px);
  background-size: 25px 25px;
  mask-image: linear-gradient(90deg, transparent 4%, #000 65%, transparent 100%);
}

#hero::after {
  position: absolute;
  z-index: -1;
  top: -25vw;
  right: -27vw;
  width: 75vw;
  height: 75vw;
  border: 1px solid rgba(217, 237, 88, 0.08);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 80px rgba(217, 237, 88, 0.025), 0 0 0 160px rgba(217, 237, 88, 0.018);
}

#hero .hero-container {
  position: relative;
  inset: auto;
  display: grid;
  width: min(1260px, calc(100% - 52px));
  max-width: 1260px;
  min-height: min(700px, calc(100svh - 218px));
  margin: auto;
  padding: 0;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  text-align: left;
}

#hero .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

#hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 25px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.87);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-kicker-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(217, 237, 88, 0.13);
  animation: kicker-pulse 2.2s ease-in-out infinite;
}

#hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: clamp(3.4rem, 6.4vw, 6.35rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.98;
  text-transform: none;
}

#hero h1 span {
  color: var(--lime);
}

#hero h1 em {
  color: #a9d5c7;
  font-style: normal;
}

#hero .hero-sub {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 400;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 23px;
  margin-top: 31px;
}

#hero .btn-get-started {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-height: 54px;
  padding: 0 20px 0 23px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: var(--lime);
  color: var(--deep);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  box-shadow: 0 10px 30px rgba(217, 237, 88, 0.14);
  transition: transform 260ms ease, box-shadow 260ms ease, background-color 260ms ease;
}

#hero .btn-get-started i {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(9, 35, 38, 0.1);
  font-size: 16px;
  transition: transform 260ms ease, background-color 260ms ease;
}

#hero .btn-get-started:hover {
  transform: translateY(-3px);
  background: #e4f578;
  border-color: #e4f578;
  color: var(--deep);
  box-shadow: 0 16px 38px rgba(217, 237, 88, 0.24);
}

#hero .btn-get-started:hover i {
  transform: rotate(45deg);
  background: rgba(9, 35, 38, 0.16);
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
  transition: color 200ms ease, gap 200ms ease;
}

.hero-secondary i {
  color: var(--lime);
  font-size: 14px;
}

.hero-secondary:hover {
  gap: 13px;
  color: #fff;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
}

.hero-art {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 0.98;
  justify-self: end;
  perspective: 1000px;
}

.hero-photo-frame {
  position: absolute;
  inset: 10% 11% 12% 9%;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 47% 53% 45% 55% / 42% 46% 54% 58%;
  background: var(--deep-soft);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
  animation: photo-float 8s ease-in-out infinite;
}

.hero-photo-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 29, 32, 0.02) 15%, rgba(6, 29, 32, 0.66) 100%);
  content: "";
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
}

.hero-orbit {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(217, 237, 88, 0.38);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit--outer {
  inset: 2% 0 3% 1%;
  transform: rotate(-22deg);
  animation: orbit-turn 34s linear infinite;
}

.hero-orbit--outer span {
  position: absolute;
  top: 11%;
  right: 13%;
  width: 13px;
  height: 13px;
  border: 3px solid var(--deep);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(217, 237, 88, 0.16), 0 0 28px rgba(217, 237, 88, 0.6);
}

.hero-orbit--inner {
  inset: 20% 17% 19% 18%;
  border-color: rgba(255, 255, 255, 0.32);
  border-style: dashed;
  animation: orbit-turn 50s linear infinite reverse;
}

.hero-orbit--inner span {
  position: absolute;
  right: 2%;
  bottom: 22%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9d5c7;
}

.hero-emblem {
  position: absolute;
  z-index: 3;
  bottom: 13%;
  left: 0;
  display: flex;
  width: 150px;
  height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 7px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--lime);
  color: var(--deep);
  text-align: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  animation: emblem-float 6s ease-in-out infinite;
}

.hero-emblem strong {
  margin-top: -5px;
  font-family: "Nunito", sans-serif;
  font-size: 62px;
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.95;
}

.hero-emblem > span {
  margin-top: 2px;
  font-family: "Poppins", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.hero-emblem small {
  display: block;
  margin-top: 8px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.25;
}

.hero-art-note {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 17%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(9, 35, 38, 0.75);
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  animation: note-float 7s ease-in-out infinite;
}

.hero-art-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.scroll-cue {
  position: absolute;
  bottom: -51px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue:hover {
  color: #fff;
}

.scroll-cue i {
  color: var(--lime);
  font-size: 14px;
  animation: scroll-bob 1.7s ease-in-out infinite;
}

#hero .hero-kicker,
#hero h1,
#hero .hero-sub,
#hero .hero-actions,
#hero .hero-meta {
  animation: rise-in 760ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

#hero h1 { animation-delay: 90ms; }
#hero .hero-sub { animation-delay: 180ms; }
#hero .hero-actions { animation-delay: 260ms; }
#hero .hero-meta { animation-delay: 340ms; }
.hero-art { animation: art-in 900ms 180ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }

/* -------------------------------------------------------- Mission strip */
.mission-strip {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.mission-strip-inner {
  display: grid;
  width: min(1260px, calc(100% - 52px));
  max-width: 1260px;
  min-height: 128px;
  padding: 23px 0;
  grid-template-columns: minmax(225px, 1.4fr) repeat(3, minmax(130px, 0.7fr));
  align-items: center;
  gap: 20px;
}

.mission-intro {
  display: flex;
  flex-direction: column;
  padding-right: 26px;
  border-right: 1px solid var(--line);
}

.mission-intro span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mission-intro strong {
  margin-top: 3px;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.mission-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mission-stat strong {
  color: var(--teal);
  font-family: "Nunito", sans-serif;
  font-size: clamp(27px, 3.2vw, 39px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
  white-space: nowrap;
}

.mission-stat span {
  max-width: 100px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.mission-stat--year strong {
  color: #d27631;
}

/* ------------------------------------------------------- Goals explorer */
#portfolio {
  padding: 104px 0 112px;
  background: var(--paper);
}

#portfolio > .container {
  width: min(1260px, calc(100% - 52px));
  max-width: 1260px;
  padding-right: 0;
  padding-left: 0;
}

#portfolio .section-title {
  max-width: 800px;
  margin: 0 auto 42px;
  padding-bottom: 0;
  text-align: center;
}

#portfolio .section-title h2,
#team .section-title h2,
#contact .section-title h2 {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border: 1px solid rgba(20, 118, 110, 0.13);
  border-radius: 999px;
  background: rgba(20, 118, 110, 0.08);
  color: var(--teal);
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

#portfolio .section-title h3,
#team .section-title h3,
#contact .section-title h3 {
  margin: 19px 0 0;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-size: clamp(2.4rem, 4.7vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

#portfolio .section-title h3 span,
#team .section-title h3 span {
  color: var(--teal);
}

#portfolio .section-title p,
#team .section-title p {
  max-width: 700px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

.goal-explorer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid rgba(19, 39, 42, 0.07);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 39, 41, 0.045);
}

.goal-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.goal-filter {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #526265;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.goal-filter:hover {
  transform: translateY(-1px);
  background: var(--paper);
  color: var(--ink);
}

.goal-filter.is-active {
  background: var(--deep);
  color: #fff;
}

.goal-filter > span {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  padding: 0 4px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 9px;
}

.filter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.filter-dot--people { background: #e64a61; }
.filter-dot--planet { background: #398344; }
.filter-dot--prosperity { background: #d1a12b; }
.filter-dot--peace { background: #2d9ab0; }
.filter-dot--partnership { background: #315b9d; }

.goal-search {
  display: flex;
  flex: 0 0 205px;
  height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 11px 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--paper);
  color: #839091;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.goal-search:focus-within {
  border-color: rgba(20, 118, 110, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 118, 110, 0.08);
}

.goal-search > i {
  font-size: 14px;
}

.goal-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
}

.goal-search input::placeholder {
  color: #839091;
  opacity: 1;
}

.goal-search input:focus-visible {
  outline: 0;
}

.search-hint {
  display: inline-grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(19, 39, 42, 0.12);
  border-radius: 6px;
  background: #fff;
  color: #738184;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.goal-result-status {
  min-height: 20px;
  margin: 0 0 15px;
  padding-left: 4px;
  color: #788587;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

#portfolio .portfolio-container {
  margin-right: -12px;
  margin-left: -12px;
}

#portfolio .portfolio-item {
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(19, 39, 42, 0.07);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 39, 41, 0.045);
  isolation: isolate;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 320ms ease, border-color 320ms ease;
}

#portfolio .portfolio-item::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--goal-color, var(--teal));
  content: "";
}

#portfolio .portfolio-item:hover,
#portfolio .portfolio-item:focus-within {
  transform: translateY(-7px);
  border-color: rgba(19, 39, 42, 0.13);
  box-shadow: 0 22px 50px rgba(20, 39, 41, 0.13);
}

#portfolio .portfolio-item img {
  display: block;
  width: 100%;
  height: 235px;
  object-fit: cover;
  transition: transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 400ms ease;
}

#portfolio .portfolio-item:hover img,
#portfolio .portfolio-item:focus-within img {
  top: 0;
  filter: saturate(1.05);
  transform: scale(1.055);
}

#portfolio .portfolio-item .portfolio-info {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  display: grid;
  min-height: 94px;
  padding: 15px 14px 15px 17px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  opacity: 1;
  background: #fff;
  transition: background-color 220ms ease;
}

#portfolio .portfolio-item:hover .portfolio-info,
#portfolio .portfolio-item:focus-within .portfolio-info {
  bottom: auto;
  background: #fff;
}

#portfolio .portfolio-item .portfolio-info h4 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  transition: color 220ms ease;
}

#portfolio .portfolio-item:hover .portfolio-info h4 {
  color: var(--teal);
}

#portfolio .portfolio-item .portfolio-info .goal-number {
  display: block;
  margin: 0 0 5px;
  color: var(--goal-color, var(--teal));
  font-family: "Poppins", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.2;
}

#portfolio .portfolio-item .portfolio-info .preview-link,
#portfolio .portfolio-item .portfolio-info .details-link {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

#portfolio .portfolio-item .portfolio-info .preview-link {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(19, 39, 42, 0.12);
  border-radius: 50%;
  background: #fff;
  font-size: 15px;
}

#portfolio .portfolio-item .portfolio-info .details-link {
  gap: 6px;
  min-height: 35px;
  padding: 0 11px;
  border: 1px solid rgba(19, 39, 42, 0.1);
  border-radius: 999px;
  background: var(--paper);
  font-size: 16px;
}

#portfolio .portfolio-item .portfolio-info .details-link::after {
  content: "Explore";
  font-family: "Poppins", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#portfolio .portfolio-item .portfolio-info .preview-link:hover,
#portfolio .portfolio-item .portfolio-info .details-link:hover {
  transform: translateY(-2px);
  border-color: var(--goal-color, var(--teal));
  background: var(--goal-color, var(--teal));
  color: #fff;
}

#portfolio .portfolio-item.is-filtered-out {
  display: none !important;
}

/* Official SDG colours lend each card its own identity. */
#portfolio .portfolio-item:nth-child(1)  { --goal-color: #e5243b; }
#portfolio .portfolio-item:nth-child(2)  { --goal-color: #dda63a; }
#portfolio .portfolio-item:nth-child(3)  { --goal-color: #4c9f38; }
#portfolio .portfolio-item:nth-child(4)  { --goal-color: #c5192d; }
#portfolio .portfolio-item:nth-child(5)  { --goal-color: #ff3a21; }
#portfolio .portfolio-item:nth-child(6)  { --goal-color: #26bde2; }
#portfolio .portfolio-item:nth-child(7)  { --goal-color: #fcc30b; }
#portfolio .portfolio-item:nth-child(8)  { --goal-color: #a21942; }
#portfolio .portfolio-item:nth-child(9)  { --goal-color: #fd6925; }
#portfolio .portfolio-item:nth-child(10) { --goal-color: #dd1367; }
#portfolio .portfolio-item:nth-child(11) { --goal-color: #fd9d24; }
#portfolio .portfolio-item:nth-child(12) { --goal-color: #bf8b2e; }
#portfolio .portfolio-item:nth-child(13) { --goal-color: #3f7e44; }
#portfolio .portfolio-item:nth-child(14) { --goal-color: #0a97d9; }
#portfolio .portfolio-item:nth-child(15) { --goal-color: #56c02b; }
#portfolio .portfolio-item:nth-child(16) { --goal-color: #00689d; }
#portfolio .portfolio-item:nth-child(17) { --goal-color: #19486a; }

/* --------------------------------------------------------------- Team */
#team {
  padding: 104px 0 112px;
  background: #fff;
}

#team > .container {
  width: min(1130px, calc(100% - 52px));
  max-width: 1130px;
  padding-right: 0;
  padding-left: 0;
}

#team .section-title {
  margin-bottom: 39px;
  padding-bottom: 0;
}

#team .member {
  width: 100%;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(19, 39, 42, 0.07);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(20, 39, 41, 0.07);
  transition: transform 320ms ease, box-shadow 320ms ease;
}

#team .member:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 46px rgba(20, 39, 41, 0.14);
}

#team .member .member-img {
  overflow: hidden;
  background: var(--paper-deep);
}

#team .member .member-img img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#team .member:hover .member-img img {
  transform: scale(1.045);
}

#team .member .member-info {
  padding: 22px 20px 24px;
  text-align: left;
}

#team .member .member-info h4 {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

/* ------------------------------------------------------------- Contact */
#contact {
  position: relative;
  padding: 103px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 3% 92%, rgba(42, 120, 104, 0.23), transparent 35%),
    linear-gradient(135deg, #0a272b 0%, #102f32 100%);
  color: #fff;
}

#contact::before {
  position: absolute;
  top: -210px;
  right: -170px;
  width: 490px;
  height: 490px;
  border: 1px solid rgba(217, 237, 88, 0.11);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 52px rgba(217, 237, 88, 0.025), 0 0 0 104px rgba(217, 237, 88, 0.02);
  pointer-events: none;
}

#contact > .container {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 52px));
  max-width: 1160px;
  padding-right: 0;
  padding-left: 0;
}

#contact .section-title {
  margin-bottom: 35px;
  padding-bottom: 0;
}

#contact .section-title h2 {
  border-color: rgba(217, 237, 88, 0.2);
  background: rgba(217, 237, 88, 0.1);
  color: var(--lime);
}

#contact .section-title h3 {
  color: #fff;
}

#contact .section-title h3 span {
  color: var(--lime);
}

#contact .section-title p {
  max-width: 660px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

#contact .info {
  height: 100%;
  padding: 13px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

#contact .info > div {
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#contact .info > div:last-child {
  border-bottom: 0;
}

#contact .info i {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(217, 237, 88, 0.12);
  color: var(--lime);
  transition: transform 220ms ease, background-color 220ms ease;
}

#contact .info > div:hover i {
  transform: rotate(-7deg) scale(1.04);
  background: rgba(217, 237, 88, 0.2);
}

#contact .info h4 {
  margin-bottom: 6px;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 17px;
  font-weight: 800;
}

#contact .info p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.6;
}

#contact .info p a {
  color: var(--lime);
}

#contact .contact-form {
  height: 100%;
  padding: 29px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

#contact .contact-form .form-group {
  padding: 0 7px;
}

#contact .contact-form input,
#contact .contact-form textarea,
#contact .contact-form .form-control {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  box-shadow: none;
}

#contact .contact-form input {
  height: 49px;
}

#contact .contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

#contact .contact-form input::placeholder,
#contact .contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.53);
  opacity: 1;
}

#contact .contact-form input:focus,
#contact .contact-form textarea:focus,
#contact .contact-form .form-control:focus {
  border-color: rgba(217, 237, 88, 0.75);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(217, 237, 88, 0.08);
}

#contact .contact-form .form-status {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
}

#contact .contact-form .form-status.sent {
  background: rgba(116, 212, 162, 0.16);
  color: #b9f1d2;
}

#contact .contact-form .form-status.error {
  background: rgba(247, 110, 119, 0.15);
  color: #ffc3c5;
}

#contact .contact-form button[type="submit"] {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: var(--lime);
  color: var(--deep);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 800;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

#contact .contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  background: #e6f57b;
  color: var(--deep);
  box-shadow: 0 10px 28px rgba(217, 237, 88, 0.18);
}

/* --------------------------------------------------------------- Footer */
#footer {
  position: relative;
  background: #061d20;
  color: rgba(255, 255, 255, 0.65);
  box-shadow: none;
}

#footer .footer-top {
  padding: 58px 0 27px;
  background: transparent;
}

#footer .footer-top .container,
#footer > .container {
  width: min(1260px, calc(100% - 52px));
  max-width: 1260px;
  padding-right: 0;
  padding-left: 0;
}

#footer .footer-top h4,
#footer .footer-top .footer-contact h4 {
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

#footer .footer-top .footer-contact h4 {
  font-size: 20px;
  letter-spacing: 0.03em;
}

#footer .footer-top .footer-contact p,
#footer .footer-top .footer-links ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.8;
}

#footer .footer-top .footer-links ul i {
  color: var(--lime);
}

#footer .footer-top .footer-links ul a:hover,
#footer .footer-top .footer-links ul li:hover > a {
  color: var(--lime);
}

#footer > .container {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .credits {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

#footer .credits a {
  color: var(--lime);
}

#footer .footer-nav a {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 600;
}

#footer .footer-nav a:hover {
  color: var(--lime);
}

/* ----------------------------------------------------- Goal detail pages */
#breadcrumbs {
  margin-top: 64px;
  padding: 38px 0 32px;
  background:
    radial-gradient(ellipse at 93% 20%, rgba(217, 237, 88, 0.11), transparent 32%),
    #eef0e8;
}

#breadcrumbs .container,
.portfolio-details > .container {
  width: min(1160px, calc(100% - 52px));
  max-width: 1160px;
  padding-right: 0;
  padding-left: 0;
}

#breadcrumbs ol {
  gap: 4px;
  padding: 0 0 10px;
  color: #6e7e7d;
  font-size: 11px;
  font-weight: 600;
}

#breadcrumbs ol li + li {
  padding-left: 7px;
}

#breadcrumbs ol li + li::before {
  padding-right: 8px;
  color: #a0aaa5;
}

#breadcrumbs ol a {
  color: var(--teal);
}

#breadcrumbs h1 {
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.portfolio-details {
  min-height: 54vh;
  padding: 50px 0 86px;
  background: var(--paper);
}

.goal-figure {
  overflow: hidden;
  border: 1px solid rgba(19, 39, 42, 0.08);
  border-radius: 22px;
  background: var(--paper-deep);
  box-shadow: var(--shadow-soft);
}

.goal-figure img {
  display: block;
  max-height: 590px;
  object-fit: cover;
  border-radius: 0;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.goal-figure:hover img {
  transform: scale(1.025);
}

.portfolio-description {
  margin-top: 0;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(19, 39, 42, 0.07);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(20, 39, 41, 0.065);
}

.portfolio-description .goal-tagline {
  margin-bottom: 22px;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.4;
}

.portfolio-description .goal-tagline .goal-number {
  margin-bottom: 8px;
  color: var(--teal);
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.portfolio-description > p:not(.goal-tagline):not(.goal-source) {
  color: #5f6d6e;
  font-size: 13px;
  line-height: 1.8;
}

.portfolio-description .goal-source {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #768382;
  line-height: 1.7;
}

.portfolio-description .goal-source a,
.portfolio-description .back-to-goals {
  color: var(--teal);
  font-weight: 700;
}

.portfolio-description .back-to-goals {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 12px;
  transition: gap 200ms ease;
}

.portfolio-description .back-to-goals:hover {
  gap: 12px;
}

/* -------------------------------------------------------------- 404 etc */
#main > .portfolio-details:not(#portfolio-details) .portfolio-description {
  max-width: 760px;
}

.back-to-top {
  right: 25px;
  bottom: 24px;
  z-index: 996;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  box-shadow: 0 8px 24px rgba(9, 35, 38, 0.2);
  transition: opacity 250ms ease, transform 250ms ease, background-color 250ms ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--teal);
  color: #fff;
}

/* Motion is progressive enhancement: without JS or IntersectionObserver content stays visible. */
.motion-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes art-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes photo-float {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(0deg) translateY(-9px); }
}

@keyframes emblem-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-11px) rotate(1deg); }
}

@keyframes note-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@keyframes orbit-turn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes kicker-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(217, 237, 88, 0.13); }
  50% { box-shadow: 0 0 0 8px rgba(217, 237, 88, 0.06); }
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1199px) {
  #hero .hero-container {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 30px;
  }

  .hero-emblem {
    width: 132px;
    height: 132px;
  }

  .hero-emblem strong {
    font-size: 54px;
  }

  #portfolio .portfolio-item img {
    height: 215px;
  }
}

@media (max-width: 991px) {
  #hero {
    min-height: 0;
    padding: 122px 0 74px;
  }

  #hero .hero-container {
    min-height: 0;
    grid-template-columns: minmax(0, 1.05fr) minmax(270px, 0.85fr);
    gap: 22px;
  }

  #hero h1 {
    font-size: clamp(3.1rem, 7.2vw, 5.4rem);
  }

  .hero-art {
    width: 100%;
  }

  .hero-emblem {
    width: 116px;
    height: 116px;
    border-width: 5px;
  }

  .hero-emblem strong {
    font-size: 47px;
  }

  .hero-art-note {
    right: -8px;
    font-size: 9px;
  }

  .mission-strip-inner {
    grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(112px, 0.7fr));
    gap: 12px;
  }

  .mission-intro strong {
    font-size: 16px;
  }

  .mission-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .goal-explorer {
    flex-direction: column;
    align-items: stretch;
  }

  .goal-filters {
    justify-content: center;
  }

  .goal-search {
    flex-basis: auto;
    width: 100%;
  }

  #team .member .member-img img {
    height: 320px;
  }
}

@media (max-width: 767px) {
  #header {
    padding: 14px 0;
  }

  #header .container,
  #hero .hero-container,
  .mission-strip-inner,
  #portfolio > .container,
  #team > .container,
  #contact > .container,
  #footer .footer-top .container,
  #footer > .container,
  #breadcrumbs .container,
  .portfolio-details > .container {
    width: min(100% - 36px, 620px);
  }

  #hero {
    padding: 110px 0 67px;
  }

  #hero .hero-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #hero .hero-copy {
    max-width: 620px;
  }

  #hero .hero-kicker {
    margin-bottom: 21px;
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  #hero h1 {
    font-size: clamp(3.05rem, 11.4vw, 5.2rem);
    line-height: 0.98;
  }

  #hero .hero-sub {
    max-width: 490px;
    margin-top: 18px;
    font-size: 14px;
  }

  .hero-actions {
    gap: 17px;
    margin-top: 24px;
  }

  #hero .btn-get-started {
    min-height: 49px;
    gap: 12px;
    padding: 0 13px 0 17px;
    font-size: 10px;
  }

  .hero-secondary {
    font-size: 10px;
  }

  .hero-meta {
    margin-top: 25px;
    font-size: 8px;
  }

  .hero-art {
    width: min(350px, 78vw);
    margin: 17px auto 5px;
    justify-self: center;
  }

  .hero-photo-frame {
    inset: 9% 11% 11% 9%;
  }

  .hero-emblem {
    bottom: 10%;
    left: -1%;
    width: 106px;
    height: 106px;
  }

  .hero-emblem strong {
    font-size: 44px;
  }

  .hero-emblem small {
    margin-top: 5px;
  }

  .hero-art-note {
    right: -10px;
    bottom: 13%;
    padding: 9px 11px;
    font-size: 8px;
  }

  .scroll-cue {
    position: relative;
    bottom: auto;
    left: auto;
    grid-column: 1;
    justify-self: center;
    margin-top: 4px;
  }

  .mission-strip-inner {
    min-height: 0;
    padding: 23px 0;
    grid-template-columns: 1fr repeat(3, auto);
    gap: 14px;
  }

  .mission-intro {
    grid-column: 1 / -1;
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mission-intro strong {
    font-size: 16px;
  }

  .mission-stat {
    align-items: flex-start;
  }

  .mission-stat strong {
    font-size: 29px;
  }

  .mission-stat span {
    max-width: 78px;
    font-size: 9px;
  }

  #portfolio,
  #team {
    padding: 78px 0 82px;
  }

  #portfolio .section-title,
  #team .section-title {
    margin-bottom: 31px;
  }

  #portfolio .section-title h3,
  #team .section-title h3,
  #contact .section-title h3 {
    font-size: clamp(2.35rem, 9vw, 3.5rem);
  }

  #portfolio .section-title p,
  #team .section-title p,
  #contact .section-title p {
    font-size: 13px;
  }

  .goal-filters {
    justify-content: flex-start;
    gap: 5px;
  }

  .goal-filter {
    min-height: 36px;
    padding: 0 10px;
    font-size: 10px;
  }

  #portfolio .portfolio-item img {
    height: 240px;
  }

  #team .member .member-img img {
    height: 360px;
  }

  #contact {
    padding: 78px 0 82px;
  }

  #contact .contact-form {
    padding: 21px 15px;
  }

  #contact .contact-form .form-group {
    padding: 0;
  }

  #contact .info {
    margin-bottom: 22px;
  }

  #footer .footer-top {
    padding-top: 45px;
  }

  #footer > .container {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  #breadcrumbs {
    margin-top: 56px;
    padding: 30px 0 26px;
  }

  .portfolio-details {
    padding: 34px 0 64px;
  }

  .portfolio-description {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  #header .container,
  #hero .hero-container,
  .mission-strip-inner,
  #portfolio > .container,
  #team > .container,
  #contact > .container,
  #footer .footer-top .container,
  #footer > .container,
  #breadcrumbs .container,
  .portfolio-details > .container {
    width: calc(100% - 30px);
  }

  #hero .hero-kicker {
    font-size: 7px;
    padding: 8px 10px;
  }

  #hero h1 {
    font-size: clamp(2.7rem, 12vw, 3.6rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero-art {
    width: min(320px, 81vw);
  }

  .hero-meta {
    gap: 8px;
    letter-spacing: 0.11em;
  }

  .mission-strip-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .mission-stat {
    gap: 6px;
  }

  .mission-stat strong {
    font-size: 27px;
  }

  .mission-stat--year strong {
    font-size: 25px;
  }

  .goal-filter {
    gap: 6px;
    padding: 0 9px;
    font-size: 9px;
  }

  .filter-dot {
    width: 6px;
    height: 6px;
  }

  #portfolio .portfolio-item img {
    height: 220px;
  }

  #portfolio .portfolio-item .portfolio-info h4 {
    font-size: 15px;
  }

  #team .member .member-img img {
    height: 315px;
  }

  .back-to-top {
    right: 15px;
    bottom: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-reveal {
    opacity: 1;
    transform: none;
  }
}
