:root {
  --teal: #0d5c75;
  --teal-dark: #0a4d68;
  --teal-light: #147694;
  --green: #008060;
  --green-soft: #e8f4ef;
  --green-lime: #6faf3a;
  --green-lime-hover: #5e9a2f;
  --orange: #f5a623;
  --cream: #faf8f5;
  --ink: #1c1917;
  --muted: #5f5a55;
  --line: #e7e2db;
  --white: #ffffff;
  --header-h: 84px;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(13, 92, 117, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-hero {
  background: transparent;
}

.site-header.is-solid,
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

.logo-text {
  display: none;
}

.nav {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 6px;
}

.nav a {
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.site-header.is-hero:not(.scrolled) .nav a {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.site-header.is-hero:not(.scrolled) .nav a:hover,
.site-header.is-hero:not(.scrolled) .nav a.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.site-header.is-solid .nav a,
.site-header.scrolled .nav a,
.site-header.is-light .nav a {
  color: #4b5563;
}

.site-header.is-solid .nav a:hover,
.site-header.scrolled .nav a:hover,
.site-header.is-light .nav a:hover,
.site-header.is-solid .nav a.is-active,
.site-header.scrolled .nav a.is-active,
.site-header.is-light .nav a.is-active {
  background: var(--green-soft);
  color: var(--teal-dark);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.88);
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.lang .fa-globe {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.lang-opt {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
  line-height: 1;
}

.lang-opt:hover {
  color: rgba(255, 255, 255, 0.75);
}

.lang-opt.is-active {
  color: #f3f1ee;
}

.lang-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.site-header.is-solid .lang,
.site-header.scrolled .lang,
.site-header.is-light .lang {
  background: rgba(28, 25, 23, 0.92);
}

.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-lime);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.btn-donate:hover {
  background: var(--green-lime-hover);
  transform: translateY(-1px);
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  font-size: 22px;
}

.site-header.is-hero:not(.scrolled) .menu-toggle {
  color: var(--white);
}

.site-header.is-solid .menu-toggle,
.site-header.scrolled .menu-toggle,
.site-header.is-light .menu-toggle {
  color: var(--ink);
}

.mobile-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--white);
  padding: 12px 24px 24px;
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--muted);
}

.mobile-nav a.is-active {
  color: var(--teal);
}

.mobile-nav .btn-donate {
  margin-top: 16px;
  justify-content: center;
}

@media (min-width: 980px) {
  .logo-text {
    display: block;
  }

  .logo-text strong {
    display: block;
    font-size: 18px;
    letter-spacing: 0.04em;
    color: var(--teal);
    line-height: 1;
  }

  .site-header.is-hero:not(.scrolled) .logo-text strong {
    color: var(--white);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  }

  .logo-text span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9ca3af;
  }

  .site-header.is-hero:not(.scrolled) .logo-text span {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  }

  .nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 22, 28, 0.72) 0%,
    rgba(8, 22, 28, 0.45) 28%,
    rgba(8, 22, 28, 0.55) 55%,
    rgba(8, 22, 28, 0.68) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 48px) 24px 96px;
  max-width: 860px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-kicker {
  margin-top: 14px;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-style: italic;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.hero p {
  margin-top: 16px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin-inline: auto;
}

.breadcrumb {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  bottom: 28px;
  z-index: 1;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}

.section-cream {
  background: var(--cream);
}

.section-muted {
  background: #f7f6f3;
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a847c;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  color: var(--green);
}

.leaf-divider::before,
.leaf-divider::after {
  content: "";
  height: 1px;
  width: 72px;
  background: #cde3d8;
}

.prose {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
}

.prose p + p {
  margin-top: 16px;
}

.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

.split-start {
  align-items: start;
}

.who-split {
  margin-top: 20px;
}

.who-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 9;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .split.reverse {
    direction: rtl;
  }

  .split.reverse > * {
    direction: ltr;
  }
}

.rounded-photo {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rounded-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 4;
}

/* Quote */
.quote-card {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 20px 20px 20px 18px;
  border-left: 3px solid #b7d4c4;
  background: var(--white);
  border-radius: 0 16px 16px 0;
}

.quote-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.quote-mark {
  color: var(--green);
  font-family: var(--serif);
  font-size: 42px;
  line-height: 0.6;
  margin-bottom: 8px;
}

.quote-card blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: #3f3a36;
  line-height: 1.45;
}

.quote-card cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

.quote-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.quote-panel blockquote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-style: italic;
  line-height: 1.45;
  color: #2d2a27;
}

.quote-panel cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 700;
  color: var(--green);
}

/* Cards */
.cards {
  display: grid;
  gap: 22px;
}

.cards-3 {
  grid-template-columns: 1fr;
}

.cards-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .cards-3,
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.04);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 18px;
  margin-bottom: 16px;
}

.icon-box.circle {
  border-radius: 50%;
}

.icon-box.teal {
  background: #e6f3f6;
  color: var(--teal);
}

.icon-box.orange {
  background: #fff4e0;
  color: #c47b08;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Project partners */
.partner-grid {
  display: grid;
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px 32px;
  box-shadow: 0 10px 30px rgba(13, 92, 117, 0.07);
}

.partner-logo {
  width: 100%;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.partner-logo img {
  width: auto;
  max-width: 230px;
  max-height: 86px;
  object-fit: contain;
}

.partner-logo-ayni img {
  max-width: 94px;
}

.partner-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.partner-card p {
  max-width: 340px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

@media (min-width: 720px) {
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Founders */
.founders-grid {
  display: grid;
  gap: 28px;
  max-width: 1080px;
  margin-inline: auto;
}

.founder-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.founder-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--teal), var(--green));
  z-index: 1;
}

.founder-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.founder-meta {
  padding: 24px 24px 28px;
}

.founder-card h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 14px;
}

.founder-role {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.founder-meta > p:last-child {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.75;
}

@media (min-width: 700px) {
  .founder-card {
    display: grid;
    grid-template-columns: minmax(230px, 43%) 1fr;
    min-height: 430px;
  }

  .founder-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .founder-meta {
    align-self: start;
    padding: 44px 30px 34px;
  }
}

@media (min-width: 1080px) {
  .founders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .founder-card {
    grid-template-columns: minmax(200px, 44%) 1fr;
  }

  .founder-meta {
    padding: 46px 26px 30px;
  }
}

/* Filters + projects */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 40px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: #4b5563;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.project-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 760px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card .thumb {
  position: relative;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--white);
}

.badge.curso {
  background: var(--green-lime);
}

.badge.realizado {
  background: #7b8ea3;
}

.badge.prep {
  background: var(--teal);
}

.project-card .body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 18px 18px 20px;
}

.project-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.project-card time {
  color: #8a847c;
  font-size: 13px;
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

/* Lists */
.checklist {
  margin-top: 18px;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  margin-top: 10px;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Contact */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 700px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #f7f6f3;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  background: var(--white);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 92, 117, 0.12);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal);
  color: var(--white);
  border: 0;
  border-radius: 14px;
  padding: 14px 28px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-orange {
  background: var(--orange);
  color: var(--ink);
}

.btn-orange:hover {
  filter: brightness(0.95);
  background: var(--orange);
}

/* Footer */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding-bottom: 36px;
  border-bottom: 1px solid #1f2937;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 12px;
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1f2937;
  display: grid;
  place-items: center;
  color: var(--white);
}

.socials a:hover {
  background: var(--teal);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 12px;
}

.footer-bottom a:hover {
  color: var(--white);
}

.page-light {
  padding-top: var(--header-h);
}

.success {
  background: var(--green) !important;
}
