:root {
  --sand: #f7f0e3;
  --cream: #fffaf1;
  --navy: #073f6d;
  --navy-deep: #052f50;
  --teal: #55bcae;
  --teal-dark: #0d716b;
  --coral: #ff765d;
  --yellow: #ffe25f;
  --ink-soft: #315b70;
  --line: rgba(7, 63, 109, .16);
  --shadow: 0 24px 70px rgba(7, 63, 109, .16);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--navy);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  width: min(calc(100% - 56px), var(--max));
  margin: auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { width: 270px; line-height: 0; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.nav-cta)::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width .2s ease;
}
.site-nav a:hover::after { width: 100%; }
.nav-cta { border: 1.5px solid var(--navy); border-radius: 999px; padding: 11px 18px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span:not(.sr-only) { display: block; width: 26px; height: 2px; margin: 6px; background: currentColor; }

.hero {
  position: relative;
  min-height: 860px;
  padding: 154px max(28px, calc((100vw - var(--max)) / 2)) 96px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 5%, rgba(85, 188, 174, .34), transparent 27%),
    linear-gradient(145deg, var(--cream) 0%, var(--sand) 56%, #e6f4ed 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .25;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}
.hero-copy, .reef-art, .scroll-cue { position: relative; z-index: 1; }
.eyebrow, .kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before, .kicker::before { content: ""; width: 34px; height: 2px; background: var(--coral); }
h1, h2, h3 { font-family: "Manrope", sans-serif; }
h1 {
  max-width: 790px;
  margin: 22px 0 26px;
  font-size: clamp(58px, 7.2vw, 104px);
  line-height: .93;
  letter-spacing: -.07em;
}
h1 span { position: relative; color: var(--teal); white-space: nowrap; }
h1 span::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 0;
  bottom: -5px;
  height: 11px;
  border-top: 4px solid var(--coral);
  border-radius: 50%;
  transform: rotate(-2deg);
}
.hero-lede { max-width: 590px; margin: 0 0 34px; color: var(--ink-soft); font-size: 19px; line-height: 1.58; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-actions p { max-width: 210px; margin: 0; color: #567381; font-size: 13px; line-height: 1.4; }
.hero-actions strong { display: block; color: var(--navy); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 999px;
  padding: 16px 22px 16px 25px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--navy); box-shadow: 0 12px 30px rgba(7, 63, 109, .2); }
.button-primary span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  font-size: 18px;
}
.reef-art { position: relative; min-height: 560px; margin: 0; }
.reef-image {
  position: absolute;
  inset: 0 34px 0 10px;
  border-radius: 190px 190px 42px 42px;
  background: var(--navy) url("assets/reef-hero.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}
.reef-stat {
  position: absolute;
  z-index: 2;
  width: 180px;
  margin: 0;
  padding: 13px 15px;
  border-radius: 17px;
  background: rgba(255, 250, 241, .94);
  box-shadow: 0 12px 28px rgba(7, 63, 109, .18);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.3;
  backdrop-filter: blur(6px);
}
.reef-stat strong { display: block; margin-bottom: 4px; color: var(--navy); font: 800 24px/1 "Manrope", sans-serif; }
.reef-stat small { display: block; margin-top: 5px; color: #687f88; font-weight: 700; }
.reef-stat-life { left: -7px; top: 110px; }
.reef-stat-waves { right: -10px; top: 250px; }
.reef-stat-loss { left: 8px; bottom: 18px; }
.reef-stat-loss strong { color: var(--coral); }
.reef-sun { position: absolute; right: -10px; top: 8px; width: 390px; height: 390px; border-radius: 50%; background: var(--coral); }
.reef-window {
  position: absolute;
  right: 35px;
  top: 50px;
  width: 370px;
  height: 455px;
  overflow: hidden;
  border-radius: 185px 185px 42px 42px;
  background: linear-gradient(#4ab9b2 0 35%, #0c5077 35% 100%);
  box-shadow: var(--shadow);
}
.waterline { position: absolute; left: -12%; top: 29%; width: 125%; height: 70px; background: #d9f2e7; border-radius: 50%; transform: rotate(-4deg); }
.waterline::after { content: ""; position: absolute; left: 12%; top: 28px; width: 90%; height: 54px; border-radius: 50%; background: #0c5077; }
.coral { position: absolute; background: var(--coral); border-radius: 12px; }
.coral-main { bottom: 35px; left: 50%; width: 12px; height: 180px; transform: translateX(-50%); }
.branch { width: 11px; transform-origin: bottom; }
.branch-one { height: 120px; bottom: 74px; left: 45%; transform: rotate(-43deg); }
.branch-two { height: 98px; bottom: 115px; left: 48%; transform: rotate(-64deg); }
.branch-three { height: 115px; bottom: 82px; left: 55%; transform: rotate(45deg); }
.branch-four { height: 85px; bottom: 131px; left: 53%; transform: rotate(67deg); }
.bubble { position: absolute; border: 2px solid rgba(255, 255, 255, .75); border-radius: 50%; }
.bubble-one { width: 22px; height: 22px; right: 62px; top: 160px; }
.bubble-two { width: 11px; height: 11px; right: 102px; top: 130px; }
.reef-sticker {
  position: absolute;
  left: 8px;
  bottom: 25px;
  width: 126px;
  height: 126px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 12px 30px rgba(7, 63, 109, .16);
  font: 800 14px/1.15 "Manrope", sans-serif;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-9deg);
}
.reef-sticker span { display: block; margin-top: 5px; font-size: 24px; }
.reef-note { position: absolute; right: 6px; bottom: 0; max-width: 190px; margin: 0; padding: 14px 17px; border-radius: 18px; background: var(--cream); box-shadow: 0 12px 30px rgba(7, 63, 109, .12); color: var(--ink-soft); font-size: 13px; }
.reef-note strong { display: block; color: var(--navy); font-size: 21px; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.section-shell { width: min(calc(100% - 56px), var(--max)); margin-inline: auto; }
.mission { padding: 130px 0 145px; }
.section-heading { max-width: 900px; margin-bottom: 64px; }
.section-heading h2, .learn-copy h2, .contact-copy h2 {
  margin: 20px 0;
  font-size: clamp(46px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
h2 em { color: var(--teal); font-style: normal; }
.section-heading > p:last-child, .learn-copy > p, .contact-copy > p { max-width: 660px; color: var(--ink-soft); font-size: 18px; }
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pillar {
  position: relative;
  min-height: 410px;
  padding: 42px;
  overflow: hidden;
  border-radius: 32px;
  transition: transform .25s ease;
}
.pillar:hover { transform: translateY(-6px); }
.pillar-restoration { background: var(--navy); color: white; }
.pillar-education { background: var(--teal); color: var(--navy-deep); }
.pillar-number { margin: 0; opacity: .65; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.pillar-icon { position: absolute; right: 34px; top: 24px; font: 800 90px/1 "Manrope"; opacity: .18; }
.pillar h3 { max-width: 420px; margin: 90px 0 18px; font-size: clamp(30px, 3vw, 45px); line-height: 1.08; letter-spacing: -.04em; }
.pillar > p:not(.pillar-number) { max-width: 520px; opacity: .82; }
.pillar a { position: absolute; left: 42px; bottom: 40px; font-weight: 800; text-decoration: none; }

.learn { padding: 135px 0; background: var(--navy); color: white; overflow: hidden; }
.learn-inner { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 80px; }
.kicker-light { color: #8edbd0; }
.learn-copy h2 em { color: var(--coral); }
.learn-copy > p { color: rgba(255, 255, 255, .72); }
.learn-visual { position: relative; min-height: 580px; margin: 0; }
.learn-image {
  overflow: hidden;
  border-radius: 42px 190px 42px 42px;
  background: var(--navy-deep) url("assets/reef-learn.png") center / cover no-repeat;
  box-shadow: 0 26px 70px rgba(5, 47, 80, .34);
}
.learn-image::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: inherit; pointer-events: none; }
.learn-badge {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 28px;
  width: 112px;
  height: 112px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 12px 28px rgba(5, 47, 80, .3);
  color: var(--navy);
  font: 800 12px/1.2 "Manrope", sans-serif;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(8deg);
}
.orbit { position: absolute; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; }
.orbit-one { inset: 30px; }
.orbit-two { inset: 100px; }
.learn-coral { position: absolute; left: 50%; bottom: 70px; width: 15px; height: 260px; border-radius: 18px; background: var(--coral); transform: translateX(-50%); }
.learn-coral i { position: absolute; bottom: 38px; width: 13px; height: 170px; border-radius: 14px; background: var(--coral); transform-origin: bottom; }
.learn-coral i:nth-child(1) { transform: rotate(-58deg); }
.learn-coral i:nth-child(2) { height: 135px; transform: rotate(-34deg); }
.learn-coral i:nth-child(3) { height: 150px; transform: rotate(35deg); }
.learn-coral i:nth-child(4) { height: 190px; transform: rotate(56deg); }
.learn-coral i:nth-child(5) { bottom: 120px; height: 80px; transform: rotate(76deg); }
.fish { position: absolute; color: var(--yellow); font-size: 24px; }
.fish-one { left: 12%; top: 30%; }
.fish-two { right: 8%; top: 20%; font-size: 16px; }
.fish-three { right: 15%; bottom: 25%; color: var(--teal); }
.reef-facts { margin: 42px 0 0; }
.reef-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.reef-facts dt { color: var(--teal); font-weight: 800; }
.reef-facts dd { margin: 0; color: rgba(255, 255, 255, .75); }

.manifesto { padding: 120px max(28px, calc((100vw - var(--max)) / 2)); background: var(--coral); color: var(--navy-deep); overflow: hidden; }
.manifesto-small { margin: 0 0 32px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.manifesto-line { margin: 0; font: 800 clamp(48px, 7vw, 104px)/1.04 "Manrope"; letter-spacing: -.06em; white-space: nowrap; }
.manifesto-line span { color: var(--cream); }
.manifesto-line.offset { margin-left: 10%; }

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding: 140px 0; }
.contact-copy { align-self: center; }
.contact-tag { display: inline-block; margin-top: 26px; padding: 11px 16px; border: 1px solid var(--teal); border-radius: 999px; color: var(--teal-dark); font-size: 13px; font-weight: 800; }
.contact-form { padding: 38px; border-radius: 28px; background: var(--cream); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--navy);
  padding: 14px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(85, 188, 174, .18); outline: 0; }
.field [aria-invalid="true"] { border-color: #c33e2c; }
.field-error { display: block; min-height: 18px; margin-top: 4px; color: #a52f22; font-size: 12px; }
.form-note { margin: 18px 0 0; color: #647b86; font-size: 12px; }
.form-status { margin-top: 18px; color: var(--navy); font-size: 14px; }
.prepared-message { width: 100%; min-height: 160px; margin-top: 12px; padding: 14px; border: 1px solid var(--teal); border-radius: 12px; background: #edf8f5; color: var(--navy); }
.copy-button { margin-top: 10px; border: 1px solid var(--navy); border-radius: 999px; background: transparent; padding: 9px 15px; font-weight: 800; cursor: pointer; }

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 58px max(28px, calc((100vw - var(--max)) / 2));
  background: var(--navy-deep);
  color: white;
}
.footer-brand { width: 220px; }
.site-footer > p { margin: 0; color: rgba(255, 255, 255, .65); font-size: 13px; }
.site-footer nav { display: flex; gap: 18px; font-size: 13px; }
.site-footer nav a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 145px; }
  .hero-copy { max-width: 780px; }
  .reef-art { width: min(100%, 600px); margin: 0 auto; }
  .learn-inner, .contact { grid-template-columns: 1fr; }
  .learn-visual { min-height: 450px; }
  .contact { gap: 48px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 850px) {
  .site-header { width: calc(100% - 36px); padding-top: 18px; }
  .brand { width: 220px; }
  .menu-toggle { display: block; position: relative; z-index: 12; }
  .site-nav {
    position: absolute;
    top: 12px;
    right: 0;
    width: min(310px, calc(100vw - 36px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 74px 22px 22px;
    border-radius: 24px;
    background: var(--cream);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s, transform .2s;
  }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .site-nav a { padding: 11px 8px; }
  .nav-cta { text-align: center; }
  .hero { padding-inline: 20px; }
  h1 { font-size: clamp(54px, 13vw, 82px); }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { min-height: 380px; }
  .manifesto-line { white-space: normal; }
  .manifesto-line.offset { margin-left: 0; }
}

@media (max-width: 600px) {
  .brand { width: 195px; }
  .hero { padding-top: 130px; }
  .hero-actions p { display: none; }
  .reef-art { min-height: 440px; }
  .reef-image { inset: 0 20px; border-radius: 145px 145px 30px 30px; }
  .reef-stat { width: 145px; padding: 10px 12px; }
  .reef-stat-life { left: 0; top: 74px; }
  .reef-stat-waves { right: 0; top: 210px; }
  .reef-stat-loss { left: 0; bottom: 10px; }
  .scroll-cue { display: none; }
  .section-shell { width: calc(100% - 36px); }
  .mission, .contact { padding-block: 90px; }
  .section-heading h2, .learn-copy h2, .contact-copy h2 { font-size: 44px; }
  .pillar { padding: 30px; }
  .pillar h3 { margin-top: 70px; }
  .pillar a { left: 30px; bottom: 28px; }
  .learn { padding-block: 90px; }
  .learn-visual { min-height: 360px; }
  .learn-image { border-radius: 28px 120px 28px 28px; }
  .learn-badge { width: 90px; height: 90px; right: 14px; bottom: 16px; font-size: 10px; }
  .orbit-one { inset: 20px; }
  .orbit-two { inset: 75px; }
  .learn-coral { height: 190px; }
  .manifesto { padding-block: 90px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; }
}

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