:root {
  --forest: #173f2b;
  --forest-dark: #0d291d;
  --forest-soft: #2f6041;
  --sage: #b9c9b7;
  --paper: #f5f4ef;
  --paper-bright: #fbfaf6;
  --ink: #111712;
  --muted: #677068;
  --line: rgba(23, 63, 43, 0.16);
  --shadow: 0 40px 100px rgba(0, 18, 10, 0.36);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--forest-dark);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.backdrop {
  position: fixed;
  inset: -4%;
  z-index: -3;
  background-image: linear-gradient(rgba(2, 26, 16, 0.1), rgba(2, 26, 16, 0.25)), url("assets/leaf-bg.svg");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: backdrop-breathe 18s ease-in-out infinite alternate;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 25%, rgba(0, 18, 10, 0.32) 100%);
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 44vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
}

.ambient-one { left: -15vw; top: -18vw; background: #8fb981; }
.ambient-two { right: -16vw; bottom: -22vw; background: #55875b; }

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 64px);
}

.card {
  position: relative;
  width: min(1380px, 94vw);
  min-height: min(790px, 86vh);
  padding: clamp(28px, 4.2vw, 68px) clamp(46px, 6.2vw, 96px) clamp(26px, 3.4vw, 54px);
  padding-right: clamp(72px, 8.4vw, 128px);
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 71%, rgba(23, 63, 43, 0.035) 71% 100%),
    var(--paper-bright);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 48%;
  height: clamp(96px, 11vw, 170px);
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 52, 33, 0.12), rgba(12, 52, 33, 0.28)),
    url("assets/leaf-bg.svg") center 63% / 120% auto;
}

.card-header,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.card-header { min-height: 98px; }

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: clamp(112px, 10vw, 164px);
  max-height: 96px;
  display: block;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #9da59e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.lang-button {
  border: 0;
  padding: 8px 1px;
  background: transparent;
  color: #9da59e;
  cursor: pointer;
  font: inherit;
  transition: color 180ms ease;
}

.lang-button:hover,
.lang-button:focus-visible,
.lang-button.is-active { color: var(--forest); }

.lang-button:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }

.hero-grid {
  min-height: clamp(480px, 55vh, 565px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.62fr);
  align-items: end;
  gap: clamp(36px, 6vw, 96px);
  padding: clamp(30px, 4vh, 60px) 0 clamp(44px, 5vh, 72px);
}

.hero-copy { align-self: center; max-width: 860px; }

.eyebrow {
  margin: 0 0 22px;
  color: var(--forest);
  font-size: clamp(10px, 0.85vw, 13px);
  font-weight: 800;
  letter-spacing: 0.24em;
}

h1 {
  margin: 0;
  text-wrap: balance;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7.6vw, 128px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.055em;
}

h1 span { display: block; }

.foliage-text {
  padding: 0.06em 0 0.12em;
  color: transparent;
  background-image:
    linear-gradient(90deg, rgba(246, 248, 240, 0.06), rgba(246, 248, 240, 0.08)),
    url("assets/leaf-bg.svg");
  background-position: center 65%;
  background-size: 125% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(23, 63, 43, 0.08);
}

.intro {
  width: min(590px, 88%);
  margin: clamp(28px, 3.3vw, 50px) 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.75;
}

.status-panel {
  align-self: end;
  padding: 32px 0 22px;
}

.status-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #53805c;
  box-shadow: 0 0 0 0 rgba(83, 128, 92, 0.5);
  animation: pulse 2.4s infinite;
}

.status-title {
  margin: 24px 0 18px;
  font-size: clamp(26px, 2.25vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.growth-line {
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.growth-line span {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--forest);
  animation: grow 3.8s ease-in-out infinite;
}

.status-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-style: italic;
}

.card-footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: #778078;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.card-footer p { margin: 0; }
.footer-mark { color: var(--forest); }

.side-rail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(48px, 4.8vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-left: 1px solid var(--line);
  background: rgba(245, 244, 239, 0.72);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #778078;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.side-rail span:first-child { color: var(--forest); }
.side-rail i { width: 1px; height: 58px; background: var(--line); }

@keyframes backdrop-breathe {
  from { transform: scale(1.05) translate3d(-0.3%, -0.2%, 0); }
  to { transform: scale(1.1) translate3d(0.4%, 0.3%, 0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(83, 128, 92, 0); }
  45% { box-shadow: 0 0 0 9px rgba(83, 128, 92, 0.14); }
}

@keyframes grow {
  0% { transform: translateX(-110%); width: 36%; }
  50% { transform: translateX(95%); width: 54%; }
  100% { transform: translateX(310%); width: 36%; }
}

@media (max-width: 980px) {
  .card {
    min-height: auto;
    padding-left: clamp(28px, 5.5vw, 58px);
    padding-right: clamp(72px, 9vw, 96px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    padding-top: 54px;
  }

  .status-panel {
    width: min(460px, 90%);
    padding-top: 8px;
  }

  .card::before { top: 42%; }
}

@media (max-width: 640px) {
  .page-shell { padding: 12px; }

  .card {
    width: 100%;
    min-height: calc(100vh - 24px);
    padding: 26px 24px 26px;
    background: var(--paper-bright);
  }

  .card::before {
    top: 38%;
    height: 110px;
    opacity: 0.9;
  }

  .card-header { min-height: 72px; }
  .brand img { width: 106px; max-height: 74px; }

  .hero-grid {
    min-height: 0;
    padding: 72px 0 48px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 72px);
    line-height: 0.9;
  }

  .eyebrow { line-height: 1.6; }
  .intro { width: 100%; font-size: 15px; line-height: 1.65; }
  .status-panel { width: 100%; }

  .card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    line-height: 1.5;
  }

  .side-rail { display: none; }
}

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