:root {
  --ink: #10231e;
  --forest: #173e34;
  --moss: #557a4d;
  --leaf: #82a65f;
  --sprout: #b7d47f;
  --cream: #f2efd9;
  --paper: #faf8e9;
  --clay: #ba7051;
  --gold: #d8b85d;
  --water: #74aeb0;
  --line: rgba(16, 35, 30, 0.16);
  --shadow: 0 24px 80px rgba(16, 35, 30, 0.16);
  --radius: 22px;
  --display: Georgia, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 5%, rgba(183, 212, 127, 0.24), transparent 24rem),
    var(--cream);
  font-family: var(--body);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--forest);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 12px 14px 12px 18px;
  background: rgba(250, 248, 233, 0.88);
  border: 1px solid rgba(16, 35, 30, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 36px rgba(16, 35, 30, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  padding: 9px 13px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
}

nav a:hover {
  background: rgba(85, 122, 77, 0.1);
}

nav .nav-cta {
  color: white;
  background: var(--forest);
}

nav .nav-cta:hover {
  background: #205346;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
  width: min(1180px, calc(100% - 36px));
  min-height: 760px;
  margin: 0 auto;
  padding: 92px 0 74px;
}

.hero h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4.1rem, 8vw, 7.6rem);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--moss);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 650px;
  margin: 28px 0 0;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--forest);
  border-radius: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--forest);
  box-shadow: 0 10px 22px rgba(23, 62, 52, 0.18);
}

.button-primary:hover {
  background: #205346;
  box-shadow: 0 14px 28px rgba(23, 62, 52, 0.24);
}

.button-quiet {
  background: transparent;
}

.button-quiet:hover {
  background: rgba(23, 62, 52, 0.06);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 28px 0 0;
  padding: 0;
  color: rgba(16, 35, 30, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
}

.trust-list li::before {
  margin-right: 8px;
  color: var(--moss);
  content: "✓";
}

.hero-scene {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(#c9dca5 0 45%, #9fba7b 45% 58%, #6d8358 58%);
  border: 10px solid var(--paper);
  border-radius: 40px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-scene::after {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(250, 248, 233, 0.75) 50%, transparent 50.3%),
    linear-gradient(transparent 96%, rgba(16, 35, 30, 0.12) 96%);
  background-size: 100% 100%, 100% 12px;
  mix-blend-mode: soft-light;
}

.sun {
  position: absolute;
  top: 56px;
  right: 56px;
  width: 90px;
  height: 90px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(216, 184, 93, 0.14);
}

.cloud {
  position: absolute;
  height: 22px;
  background: rgba(250, 248, 233, 0.72);
  border-radius: 6px;
}

.cloud::before,
.cloud::after {
  position: absolute;
  bottom: 0;
  content: "";
  background: inherit;
  border-radius: inherit;
}

.cloud-one {
  top: 98px;
  left: 54px;
  width: 94px;
}

.cloud-one::before {
  left: 18px;
  width: 34px;
  height: 38px;
}

.cloud-one::after {
  right: 16px;
  width: 28px;
  height: 30px;
}

.cloud-two {
  top: 170px;
  right: 120px;
  width: 66px;
  opacity: 0.55;
}

.cloud-two::before {
  left: 14px;
  width: 26px;
  height: 30px;
}

.ridge {
  position: absolute;
  right: -10%;
  bottom: 36%;
  left: -10%;
  height: 34%;
  clip-path: polygon(0 78%, 16% 32%, 30% 68%, 48% 6%, 62% 58%, 78% 18%, 100% 75%, 100% 100%, 0 100%);
}

.ridge-back {
  background: #789267;
  opacity: 0.55;
}

.ridge-front {
  bottom: 28%;
  background: #526d51;
  clip-path: polygon(0 74%, 20% 28%, 37% 80%, 55% 20%, 72% 66%, 88% 30%, 100% 70%, 100% 100%, 0 100%);
}

.habitat {
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 47%;
}

.habitat-damaged {
  left: 0;
  background: linear-gradient(165deg, #7f7452, #62583e);
}

.habitat-restored {
  right: 0;
  background: linear-gradient(165deg, #6d9255, #426741);
}

.dead-tree,
.tree {
  position: absolute;
  bottom: 56px;
  width: 18px;
  background: #4f4331;
  border-radius: 3px;
}

.dead-tree {
  left: 50%;
  height: 110px;
}

.dead-tree::before,
.dead-tree::after {
  position: absolute;
  width: 10px;
  height: 70px;
  content: "";
  background: inherit;
  border-radius: 3px;
  transform-origin: bottom;
}

.dead-tree::before {
  bottom: 62px;
  left: -22px;
  transform: rotate(-48deg);
}

.dead-tree::after {
  right: -22px;
  bottom: 48px;
  transform: rotate(52deg);
}

.stone {
  position: absolute;
  bottom: 36px;
  width: 44px;
  height: 30px;
  background: #857d65;
  border-radius: 6px 6px 3px 3px;
}

.stone-one {
  left: 16%;
}

.stone-two {
  right: 14%;
  width: 32px;
  height: 22px;
}

.tree {
  bottom: 42px;
  height: 96px;
}

.tree::before,
.tree::after {
  position: absolute;
  left: 50%;
  content: "";
  background: #2e563b;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.tree::before {
  bottom: 38px;
  width: 100px;
  height: 118px;
}

.tree::after {
  bottom: 82px;
  width: 72px;
  height: 90px;
  background: #3c7149;
}

.tree-one {
  left: 33%;
}

.tree-two {
  right: 22%;
  height: 76px;
  transform: scale(0.74);
}

.flower {
  position: absolute;
  bottom: 40px;
  width: 8px;
  height: 8px;
  background: #efcf77;
  border-radius: 50%;
  box-shadow: 9px 4px #e6a57b, -7px 8px #f2d48a, 18px 12px #d9db9a;
}

.flower-one {
  left: 12%;
}

.flower-two {
  right: 12%;
  bottom: 76px;
}

.water {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72%;
  height: 34px;
  background: var(--water);
  clip-path: polygon(0 36%, 14% 20%, 29% 48%, 46% 24%, 60% 50%, 76% 16%, 100% 35%, 100% 100%, 0 100%);
}

.restoration-line {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  color: var(--paper);
  background: rgba(16, 35, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.mission {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  padding: 100px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mission p:last-child {
  margin: 0;
  font-size: 1.08rem;
}

.loop,
.alpha,
.principles {
  padding: 128px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 50px;
}

.section-heading > p:last-child {
  max-width: 690px;
  margin: 24px 0 0;
  font-size: 1.08rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.step-grid li {
  min-height: 290px;
  padding: 26px 22px;
  background: rgba(250, 248, 233, 0.58);
  border-right: 1px solid var(--line);
}

.step-grid li:last-child {
  border-right: 0;
}

.step-grid li:hover {
  background: var(--paper);
}

.step-number,
.feature-icon {
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.step-grid h3,
.alpha-grid h3 {
  margin: 80px 0 10px;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.05;
}

.step-grid p,
.alpha-grid p {
  margin: 0;
  color: rgba(16, 35, 30, 0.72);
  font-size: 0.93rem;
}

.expedition {
  padding: 40px 0 128px;
}

.expedition-card {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 60px;
  align-items: center;
  padding: clamp(32px, 6vw, 76px);
  color: var(--cream);
  background:
    radial-gradient(circle at 80% 15%, rgba(183, 212, 127, 0.16), transparent 18rem),
    var(--forest);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.expedition-copy > p:not(.eyebrow) {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(242, 239, 217, 0.8);
  font-size: 1.06rem;
}

.expedition-copy .eyebrow {
  color: var(--sprout);
}

.mission-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 38px;
}

.mission-data div {
  padding: 14px;
  border: 1px solid rgba(242, 239, 217, 0.18);
  border-radius: 12px;
}

.mission-data span,
.mission-data strong {
  display: block;
}

.mission-data span {
  color: rgba(242, 239, 217, 0.6);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mission-data strong {
  margin-top: 4px;
}

.contract-board {
  position: relative;
  justify-self: center;
  width: min(100%, 330px);
  padding: 44px 34px 32px;
  color: #33271d;
  background: #d2ad72;
  border: 8px solid #67472f;
  border-radius: 4px;
  box-shadow: 14px 18px 0 rgba(6, 20, 16, 0.25);
  text-align: center;
  transform: rotate(1.6deg);
}

.contract-board::before,
.contract-board::after {
  position: absolute;
  right: 32px;
  left: 32px;
  height: 4px;
  content: "";
  background: rgba(92, 61, 38, 0.12);
}

.contract-board::before {
  top: 25%;
}

.contract-board::after {
  bottom: 27%;
}

.board-pin {
  position: absolute;
  top: 14px;
  width: 12px;
  height: 12px;
  background: #67472f;
  border-radius: 50%;
}

.pin-left {
  left: 16px;
}

.pin-right {
  right: 16px;
}

.contract-board small {
  display: block;
  margin-bottom: 18px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.contract-board > strong {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 0.94;
}

.contract-board hr {
  width: 46px;
  margin: 24px auto;
  border: 0;
  border-top: 3px solid rgba(51, 39, 29, 0.7);
}

.contract-board p {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.7;
}

.board-stamp {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 9px;
  color: #70412f;
  border: 2px solid #9a553a;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  transform: rotate(-4deg);
}

.alpha-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.alpha-grid article {
  min-height: 260px;
  padding: 30px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.alpha-grid article:first-child {
  border-left: 1px solid var(--line);
}

.alpha-grid h3 {
  margin-top: 76px;
}

.apply {
  padding: 40px 0 128px;
}

.apply-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  padding: clamp(34px, 6vw, 74px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
}

.apply-card h2 {
  max-width: 720px;
}

.apply-card p {
  max-width: 630px;
  margin: 24px 0 30px;
}

.privacy-summary {
  color: rgba(16, 35, 30, 0.65);
  font-size: 0.9rem;
}

.application-form {
  display: grid;
  gap: 16px;
}

.application-form label {
  display: grid;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.application-form input,
.application-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(16, 35, 30, 0.24);
  border-radius: 10px;
  font: inherit;
  letter-spacing: normal;
}

.application-form textarea {
  resize: vertical;
}

.application-form input:focus,
.application-form textarea:focus {
  border-color: var(--moss);
  outline: 3px solid rgba(85, 122, 77, 0.16);
}

.form-row {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 12px;
}

.application-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(16, 35, 30, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: normal;
}

.checkbox-label input {
  width: auto;
  margin-top: 4px;
}

.application-form .button {
  width: fit-content;
  font: inherit;
  cursor: pointer;
}

.application-form .button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.form-status,
.email-fallback {
  margin: 0 !important;
  font-size: 0.82rem;
}

.form-status.success {
  color: #27633d;
  font-weight: 800;
}

.form-status.error {
  color: #93452f;
  font-weight: 800;
}

.email-fallback {
  color: rgba(16, 35, 30, 0.62);
}

.connection-card {
  display: grid;
  grid-template-columns: 0.75fr 1.35fr;
  gap: 26px 42px;
  align-items: center;
  margin-top: 18px;
  padding: 24px;
  color: var(--cream);
  background: var(--forest);
  border-radius: 20px;
}

.connection-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.connection-card small,
.connection-card strong {
  display: block;
}

.connection-card small {
  color: rgba(242, 239, 217, 0.58);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: var(--sprout);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(183, 212, 127, 0.12);
}

.status-dot.offline {
  background: var(--clay);
  box-shadow: 0 0 0 6px rgba(191, 100, 64, 0.14);
}

.connection-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.copy-button {
  min-width: 0;
  padding: 12px 14px;
  color: inherit;
  background: rgba(242, 239, 217, 0.08);
  border: 1px solid rgba(242, 239, 217, 0.16);
  border-radius: 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(242, 239, 217, 0.13);
}

.copy-button strong {
  overflow: hidden;
  margin-top: 3px;
  font-size: 0.74rem;
  text-overflow: ellipsis;
}

.connection-card > p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(242, 239, 217, 0.66);
  font-size: 0.82rem;
}

.principles {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}

.principle-list p {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 40px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0 54px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

.footer-brand {
  grid-row: 1 / span 2;
}

.footer-small {
  color: rgba(16, 35, 30, 0.6);
  font-size: 0.8rem;
  text-align: right;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  padding: 12px 16px;
  color: white;
  background: var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-scene {
    min-height: 500px;
  }

  .mission,
  .principles {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-grid li {
    border-bottom: 1px solid var(--line);
  }

  .step-grid li:nth-child(2n) {
    border-right: 0;
  }

  .expedition-card,
  .apply-card {
    grid-template-columns: 1fr;
  }

  .alpha-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .alpha-grid article:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .connection-card {
    grid-template-columns: 1fr;
  }

  .connection-card > p {
    grid-column: 1;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 10px 12px;
  }

  .brand span {
    display: none;
  }

  nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }

  .hero-scene {
    min-height: 410px;
    border-width: 7px;
    border-radius: 26px;
  }

  .trust-list {
    display: grid;
  }

  .mission,
  .loop,
  .alpha,
  .principles {
    padding: 82px 0;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .step-grid li,
  .step-grid li:nth-child(2n) {
    min-height: 220px;
    border-right: 0;
  }

  .step-grid h3 {
    margin-top: 42px;
  }

  .expedition-card {
    gap: 48px;
    padding: 34px 24px 44px;
    border-radius: 24px;
  }

  .mission-data {
    grid-template-columns: 1fr;
  }

  .alpha-grid {
    grid-template-columns: 1fr;
  }

  .alpha-grid article,
  .alpha-grid article:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .apply-card {
    padding: 34px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .connection-actions {
    grid-template-columns: 1fr;
  }

  footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand span {
    display: inline;
  }

  .footer-small {
    text-align: left;
  }
}

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

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