:root {
  --bg: #fbf5e8;
  --bg-soft: #fffaf0;
  --surface: #ffffff;
  --ink: #10261f;
  --muted: #60706a;
  --green: #0c6b49;
  --green-dark: #082f22;
  --green-soft: #d9f0ca;
  --blue: #147b9a;
  --blue-soft: #cdeafa;
  --orange: #c7713a;
  --orange-soft: #ffe3b8;
  --navy: #0e1d2b;
  --line: rgba(8, 47, 34, 0.14);
  --shadow: 0 22px 60px rgba(8, 47, 34, 0.13);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(12, 107, 73, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 14%, rgba(199, 113, 58, 0.15), transparent 22rem),
    linear-gradient(180deg, var(--bg) 0%, #fff 58%, #f6fbf7 100%);
  line-height: 1.5;
}

img, svg, object { max-width: 100%; }

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  transform: translateY(-150%);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.8rem clamp(1rem, 4vw, 2rem);
  background: rgba(251, 245, 232, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(8, 47, 34, 0.08);
}

.nav-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green-dark);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.12);
  font-size: 1.6rem;
  line-height: 1;
}

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

.brand strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 750;
  font-size: 0.9rem;
}

.nav-actions > a {
  display: none;
  text-decoration: none;
  color: var(--green-dark);
}

.language-toggle {
  display: inline-flex;
  padding: 0.22rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(8, 47, 34, 0.08);
}

.lang-button {
  min-width: 2.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.52rem 0.7rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.lang-button[aria-pressed="true"] {
  background: var(--green-dark);
  color: #fff;
}

.section-pad {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  min-height: calc(100svh - 5.2rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3.25rem, 15vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
}

h1 span { display: block; }

.text-green { color: var(--green); }
.text-orange { color: var(--orange); }

.hero-lead {
  max-width: 720px;
  margin: 1.25rem 0 0;
  color: #45554f;
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  font-weight: 650;
}

.cta-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cta-row { margin-top: 1.6rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.015em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(8, 47, 34, 0.16);
}

.button:focus-visible,
.lang-button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(20, 123, 154, 0.45);
  outline-offset: 3px;
}

.button-primary {
  background: var(--green-dark);
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: var(--green-dark);
  border-color: rgba(8, 47, 34, 0.18);
}

.button-small {
  min-height: 2.6rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  color: var(--green-dark);
  font-weight: 850;
  font-size: 0.86rem;
}

.hero-visual {
  min-height: 340px;
  display: grid;
  place-items: center;
}

.garden-card {
  position: relative;
  width: min(560px, 100%);
  min-height: 350px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,250,240,0.82));
  border: 2px solid rgba(8, 47, 34, 0.13);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.garden-card::before {
  content: "";
  position: absolute;
  inset: 17% 10% 16%;
  background: linear-gradient(160deg, #d7f3c4, #b9dfa9);
  transform: skewY(-9deg) rotate(-2deg);
  border: 3px solid rgba(12, 107, 73, 0.16);
  box-shadow: 0 18px 0 rgba(67, 146, 62, 0.3);
}

.wifi-panel {
  position: absolute;
  left: 8%;
  top: 17%;
  padding: 0.9rem 0.75rem;
  border-radius: 1rem;
  background: #143026;
  color: #e9fff5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 900;
  box-shadow: 0 8px 0 rgba(8, 47, 34, 0.16);
}

.hub-house {
  position: absolute;
  left: 51%;
  top: 28%;
  transform: translateX(-50%);
  width: 96px;
  height: 88px;
}

.roof {
  position: absolute;
  left: 8px;
  top: 0;
  width: 80px;
  height: 80px;
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 48%, 50% 72%, 0 48%);
  box-shadow: inset -28px 0 rgba(121, 63, 30, 0.18);
}

.house-body {
  position: absolute;
  left: 21px;
  top: 48px;
  width: 58px;
  padding: 0.45rem 0.3rem;
  text-align: center;
  background: #d59a52;
  color: #4a2b13;
  font-weight: 1000;
  transform: skewY(14deg);
  border-radius: 0 0 0.35rem 0.35rem;
}

.signal {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid rgba(12, 107, 73, 0.28);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.signal-1 { top: -40px; width: 98px; height: 48px; }
.signal-2 { top: -62px; width: 150px; height: 72px; }

.zone,
.valve {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 1000;
}

.zone {
  width: 96px;
  height: 56px;
  transform: rotate(-7deg) skewX(-20deg);
  border: 2px solid currentColor;
  background: rgba(255,255,255,0.28);
}

.zone-one { color: #14905f; left: 22%; top: 55%; background: #bcefd1; }
.zone-two { color: #147b9a; left: 46%; top: 61%; background: #bfe8f5; }
.zone-three { color: #ec9c35; right: 17%; top: 53%; background: #ffe7b7; }

.valve {
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  background: #fff;
  transform: rotate(45deg);
}

.valve::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
}

.valve-one { color: #14905f; left: 17%; bottom: 13%; }
.valve-two { color: #147b9a; left: 55%; bottom: 8%; }
.valve-three { color: #ec9c35; right: 15%; bottom: 14%; }

.section-heading {
  max-width: 780px;
  margin-bottom: 1.6rem;
}

.section-heading.compact { margin-bottom: 1rem; }

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-grid,
.poster-grid,
.resource-grid {
  display: grid;
  gap: 1rem;
}

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

.feature-card,
.poster-card,
.resource-card {
  background: rgba(255,255,255,0.82);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(8, 47, 34, 0.08);
}

.feature-card {
  padding: 1.2rem;
}

.feature-card.green { border-color: rgba(12,107,73,0.45); }
.feature-card.blue { border-color: rgba(20,123,154,0.5); }
.feature-card.orange { border-color: rgba(236,156,53,0.55); }
.feature-card.dark { border-color: rgba(8,47,34,0.38); }

.feature-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 1000;
}

.feature-card.blue .feature-icon { background: var(--blue); }
.feature-card.orange .feature-icon { background: #f5a33b; }
.feature-card.dark .feature-icon { background: var(--green-dark); }

.feature-card h3,
.poster-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.feature-card p,
.poster-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.workflow {
  width: min(1180px, calc(100% - 1rem));
}

.steps {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding: 1rem 1rem 1rem 3.4rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 0 10px 28px rgba(8,47,34,0.06);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 1000;
}

.steps strong,
.steps span { display: block; }
.steps span { color: var(--muted); font-size: 0.9rem; font-weight: 650; }

.posters { width: min(1280px, calc(100% - 1rem)); }
.poster-grid { grid-template-columns: 1fr; }

.poster-card {
  overflow: hidden;
  background: #fff;
}

.pdf-preview {
  background: linear-gradient(135deg, rgba(12,107,73,0.08), rgba(199,113,58,0.08));
  border-bottom: 1px solid var(--line);
  min-height: 330px;
}

.poster-preview-link {
  display: block;
  width: 100%;
  height: 430px;
  padding: 0.75rem;
}

.poster-preview-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(8,47,34,0.08);
}

.research-preview .poster-preview-link { height: 330px; }

.poster-body {
  padding: 1.15rem;
}

.poster-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.36rem 0.65rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--green-dark);
  font-weight: 1000;
  font-size: 0.78rem;
}

.poster-body .button-row { margin-top: 1rem; }

.resources {
  width: min(1180px, calc(100% - 2rem));
}

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

.resource-card {
  display: block;
  padding: 1.1rem;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.resource-card:hover,
.resource-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(12,107,73,0.42);
  background: #fff;
}

.resource-card span,
.resource-card small { display: block; }

.resource-card span {
  color: var(--green-dark);
  font-size: 1.1rem;
  font-weight: 1000;
}

.resource-card small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 650;
}

.is-placeholder {
  background-image: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(251,245,232,0.78));
}


.site-footer {
  padding: 2rem 1rem 2.5rem;
  text-align: center;
  color: var(--muted);
}

.site-footer p { margin: 0.25rem 0; }

@media (min-width: 560px) {
  .nav-actions > a { display: inline-flex; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.8fr);
    gap: clamp(2rem, 5vw, 4rem);
  }

  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { padding: 3.4rem 1rem 1rem; }
  .steps li::before { left: 1rem; top: 1rem; transform: none; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poster-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); }
  .poster-card-wide .pdf-preview { border-bottom: 0; border-right: 1px solid var(--line); }
  .poster-card-wide .poster-body { align-self: center; }
  .resource-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .poster-preview-link { height: 520px; }
  .research-preview .poster-preview-link { height: 440px; }
}

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