:root {
  --ink: #111418;
  --muted: #68717d;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: rgba(17, 20, 24, 0.12);
  --green: #00856f;
  --green-dark: #005f51;
  --lime: #bddb36;
  --gold: #f4b63f;
  --coral: #ef5b45;
  --blue: #1546a0;
  --shadow: 0 24px 70px rgba(17, 20, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  color: #fff;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  color: var(--ink);
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 12px 34px rgba(17, 20, 24, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-logo {
  width: 4rem;
  height: 4rem;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 0.18rem;
  box-shadow: 0 8px 24px rgba(17, 20, 24, 0.14);
}

.site-header.is-scrolled .brand-logo,
.site-header.menu-active .brand-logo {
  border-color: rgba(17, 20, 24, 0.12);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  line-height: 1.15;
}

.brand small {
  color: currentColor;
  font-size: 0.76rem;
  opacity: 0.78;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.2rem);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  white-space: nowrap;
}

.main-nav a:not(.donate-button)::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 2px;
  background: var(--lime);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.donate-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  min-height: 3rem;
  border-radius: 999px;
  font-weight: 950;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: normal;
}

.donate-button,
.primary-button {
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, var(--lime), var(--gold));
  color: #141610;
  box-shadow: 0 14px 34px rgba(189, 219, 54, 0.28);
}

.secondary-button {
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #fff;
}

.donate-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: currentColor;
}

.menu-toggle span {
  display: block;
  width: 1.3rem;
  height: 2px;
  margin: 0.28rem auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 8rem clamp(1rem, 5vw, 5rem) 5rem;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
    url("https://images.unsplash.com/photo-1546519638-68e109498ffc?auto=format&fit=crop&w=1800&q=82") center / cover;
  transform: scale(1.05);
  animation: heroDrift 12s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    radial-gradient(circle at 15% 28%, rgba(189, 219, 54, 0.46), transparent 26rem),
    linear-gradient(90deg, rgba(0, 39, 33, 0.92), rgba(0, 39, 33, 0.58) 46%, rgba(0, 0, 0, 0.16));
}

.hero-content,
.hero-stats {
  position: relative;
  z-index: 2;
}

.hero-content {
  width: min(780px, 100%);
  max-width: 100%;
  min-width: 0;
}

.eyebrow,
.section-kicker,
.project-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lime);
}

.eyebrow::before,
.section-kicker::before,
.project-label::before {
  display: inline-block;
  width: 2.2rem;
  height: 2px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  width: min(100%, 900px);
  max-width: 100%;
  margin-top: 1rem;
  font-size: clamp(2.35rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: break-word;
  word-break: normal;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 4.8rem);
  font-weight: 1000;
}

h3 {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 950;
}

.hero p {
  max-width: 680px;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-actions > a {
  flex: 0 1 auto;
}

.hero-stats {
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  bottom: 5rem;
  width: min(260px, calc(100% - 2rem));
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(16px);
}

.hero-stats strong {
  display: block;
  color: var(--lime);
  font-size: 3.5rem;
  line-height: 0.9;
}

.section {
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem);
}

.split-grid,
.story-layout,
.action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: 1.4rem;
}

.section-copy p,
.purpose-intro p,
.section-heading p {
  max-width: 820px;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-panel {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.feature-panel span {
  padding: 1.2rem;
  border-left: 5px solid var(--lime);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.35rem;
  font-weight: 900;
}

.story-section {
  background: #eef3ed;
}

.story-image {
  min-height: 640px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)),
    url("assets/nossa-historia-01.jpg") center / cover;
  box-shadow: var(--shadow);
}

.story-card {
  padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.story-card p {
  color: var(--muted);
}

.purpose-section {
  background: var(--ink);
  color: #fff;
}

.purpose-section .section-kicker,
.purpose-section .eyebrow {
  color: var(--lime);
}

.purpose-intro p {
  color: rgba(255, 255, 255, 0.76);
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.purpose-card,
.project-card,
.impact-box {
  position: relative;
  overflow: hidden;
}

.purpose-card {
  min-height: 300px;
  padding: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.purpose-card span {
  color: var(--lime);
  font-weight: 950;
}

.purpose-card p,
.purpose-card li {
  color: rgba(255, 255, 255, 0.76);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

.tag-list li,
.audience-wrap span {
  padding: 0.65rem 0.82rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.action-section {
  background: #fff;
}

.action-list h2 {
  margin-bottom: 1.5rem;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.area-grid span {
  padding: 1.1rem;
  background: #f2f5ee;
  border-left: 5px solid var(--green);
  font-weight: 900;
}

.image-slot,
.project-logo-slot,
.mini-logo-slot,
.gallery-item {
  display: grid;
  place-items: center;
  border: 2px dashed rgba(17, 20, 24, 0.22);
  color: rgba(17, 20, 24, 0.54);
  font-weight: 950;
}

.image-slot {
  min-height: 420px;
  background: url("assets/area-de-atuacao-01.jpg") center / cover;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.wide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.6rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--green-dark), var(--green) 55%, var(--lime));
  color: #fff;
}

.wide-cta .eyebrow {
  color: #fff;
}

.projects-section {
  background: #f5f1e7;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.2rem;
}

.featured-project {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.project-logo-slot {
  min-height: 250px;
  border-color: rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(189, 219, 54, 0.2));
}

.performance-logo-slot {
  border-style: solid;
  background: #fff;
  padding: 1rem;
}

.performance-logo-slot img {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: contain;
}

.featured-project h3 {
  margin: 0.5rem 0 0.8rem;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
}

.featured-project blockquote {
  margin: 0 0 1rem;
  color: var(--lime);
  font-size: 1.3rem;
  font-weight: 900;
}

.featured-project p {
  color: rgba(255, 255, 255, 0.76);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.project-card {
  min-height: 360px;
  padding: 1.4rem;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(17, 20, 24, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(17, 20, 24, 0.14);
}

.project-card h3 {
  margin-bottom: 0.8rem;
  color: var(--green-dark);
}

.project-card p,
.project-card li {
  color: var(--muted);
}

.project-card strong {
  display: block;
  margin-top: 1rem;
  color: var(--blue);
}

.project-card-wide {
  grid-column: span 2;
}

.mini-logo-slot {
  width: 5rem;
  height: 5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
}

.dolphins-logo {
  display: block;
  width: min(100%, 17rem);
  height: auto;
  margin: 0 0 1.2rem;
  aspect-ratio: 350 / 197;
  border-radius: 0.65rem;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(17, 20, 24, 0.1);
}

.impact-section {
  padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
  background:
    linear-gradient(rgba(0, 44, 37, 0.88), rgba(0, 44, 37, 0.9)),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1600&q=82") center / cover;
  color: #fff;
}

.impact-section .section-kicker {
  color: var(--lime);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.impact-box {
  min-height: 210px;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.impact-box strong {
  display: block;
  color: var(--lime);
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.95;
}

.impact-box span {
  display: block;
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 900;
}

.audience-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.audience-wrap span {
  color: var(--green-dark);
  font-weight: 900;
}

.transformation-cta {
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem);
  background: linear-gradient(135deg, var(--coral), var(--gold));
  color: #17130b;
}

.transformation-cta h2 {
  width: min(950px, 100%);
}

.transformation-cta p {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.gallery-item {
  position: relative;
  align-items: end;
  min-height: 240px;
  overflow: hidden;
  width: 100%;
  appearance: none;
  border: 0;
  background-position: center;
  background-size: cover;
  color: #fff;
  cursor: zoom-in;
  font: inherit;
  isolation: isolate;
  padding: 0;
}

.gallery-item span {
  display: grid;
  place-items: end start;
  width: 100%;
  min-height: 100%;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.78));
  opacity: 1;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
  transition: background 0.2s ease;
}

.gallery-item:hover span,
.gallery-item:focus-visible span {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.86));
}

.gallery-item:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 4px;
}

.partners-section {
  background: #fff;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.partner-box {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 1rem;
  background: linear-gradient(145deg, #f5f5f5, #d9dee3);
  color: #29313a;
  font-weight: 950;
  text-align: center;
}

.twg-section {
  background:
    linear-gradient(135deg, rgba(0, 133, 111, 0.08), rgba(21, 70, 160, 0.08)),
    #f7fafc;
}

.twg-header {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.twg-header img {
  display: block;
  width: 100%;
  max-height: 150px;
  border-radius: 1rem;
  background: #fff;
  object-fit: contain;
  padding: 1rem;
  box-shadow: 0 18px 44px rgba(17, 20, 24, 0.1);
}

.twg-header h2 {
  max-width: 980px;
  margin-top: 0.8rem;
}

.twg-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.twg-course-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17, 20, 24, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.twg-course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(17, 20, 24, 0.16);
}

.twg-course-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.twg-course-card > div {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 1.35rem;
}

.twg-course-card h3 {
  color: var(--green-dark);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.twg-course-card ol {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.4rem;
  padding-left: 1.3rem;
  color: var(--muted);
  font-weight: 800;
}

.course-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  margin-top: auto;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.course-button:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.transparency-section {
  background: #eef3ed;
  padding-bottom: clamp(6rem, 9vw, 9rem);
}

.transparency-card {
  max-width: 980px;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.transparency-card h2 {
  margin-top: 1rem;
}

.transparency-card p {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.8fr) minmax(300px, 1fr);
  align-items: start;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 5vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--ink);
  color: #fff;
}

.footer-column {
  min-width: 0;
}

.footer-brand {
  align-items: flex-start;
}

.footer-logo {
  width: 5.5rem;
  height: 5.5rem;
  border-color: rgba(255, 255, 255, 0.2);
}

.site-footer p {
  max-width: 340px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer address {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.site-footer address strong {
  display: block;
  margin-bottom: 0.6rem;
  color: #fff;
}

.site-footer a {
  color: #fff;
}

.contact-form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.8rem;
  margin-top: clamp(-18rem, -21vw, -13rem);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #171d22, #0f1317);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.contact-form strong {
  display: block;
  margin-bottom: 0.1rem;
  color: #fff;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  outline: 0;
  padding: 0.85rem 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--lime);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(189, 219, 54, 0.12);
}

.acceptance {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.acceptance input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.18rem;
  accent-color: var(--lime);
}

.contact-form .primary-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.contact-form .primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  display: none;
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: 0.85rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-weight: 850;
}

.form-status.is-visible {
  display: block;
  background: rgba(255, 255, 255, 0.09);
}

.form-status.is-success {
  background: rgba(189, 219, 54, 0.18);
  color: #f5ffd2;
}

.form-status.is-error {
  background: rgba(239, 91, 69, 0.18);
  color: #ffd8d2;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3, 8, 12, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  display: block;
  max-width: min(1100px, 100%);
  max-height: 86vh;
  border-radius: 1rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  object-fit: contain;
  transform: scale(0.96);
  transition: transform 0.22s ease;
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.05) translateX(-1%);
  }
  to {
    transform: scale(1.1) translateX(1%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 0.75rem;
    font-size: 0.76rem;
  }

  .purpose-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .twg-courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 61;
    display: block;
  }

  .main-nav {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
    height: 100dvh;
    overflow-y: auto;
    padding: 5.25rem 1rem 1.5rem;
    background: rgba(251, 250, 247, 0.98);
    color: var(--ink);
    font-size: clamp(1rem, 4.5vw, 1.22rem);
    transform: translateY(-100%);
    transition: transform 0.28s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
  }

  .main-nav a {
    padding: 0.62rem 0;
    white-space: normal;
  }

  .donate-button {
    width: 100%;
    min-height: 2.8rem;
    margin-top: 0.5rem;
    padding: 0.72rem 1rem;
    font-size: 0.92rem;
  }

  .hero {
    min-height: 92vh;
    padding: 7rem 1rem 2rem;
  }

  .hero-stats {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
  }

  .split-grid,
  .story-layout,
  .action-grid,
  .featured-project,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .transparency-section {
    padding-bottom: clamp(4.5rem, 8vw, 8rem);
  }

  .contact-form {
    margin-top: 0;
  }

  .story-image {
    min-height: 380px;
  }

  .section-heading,
  .wide-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .area-grid,
  .purpose-grid,
  .projects-grid,
  .impact-grid,
  .gallery-grid,
  .partners-grid,
  .twg-courses-grid {
    grid-template-columns: 1fr;
  }

  .twg-header {
    grid-template-columns: 1fr;
  }

  .twg-header img {
    max-width: 220px;
  }

  .image-slot {
    min-height: auto;
    aspect-ratio: 4 / 3;
    background-color: #eef3ed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .project-card-wide {
    grid-column: auto;
  }

  .gallery-item {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .brand-logo,
  .brand-mark {
    width: 2.8rem;
    height: 2.8rem;
  }

  h1 {
    max-width: calc(100vw - 2rem);
    font-size: clamp(1.95rem, 9vw, 2.7rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  h2 {
    font-size: clamp(1.75rem, 9vw, 2.65rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  h3 {
    font-size: clamp(1.18rem, 6.5vw, 1.75rem);
    line-height: 1.14;
    overflow-wrap: anywhere;
  }

  .featured-project h3 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.05;
  }

  .twg-course-card h3 {
    font-size: clamp(1.25rem, 7vw, 1.8rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: min(100%, calc(100vw - 2rem));
    padding: 0.72rem 0.82rem;
    font-size: 0.82rem;
    min-height: 2.7rem;
    overflow-wrap: anywhere;
  }
}
