:root {
  --ink: #172417;
  --muted: #68715e;
  --paper: #f8faf4;
  --surface: #ffffff;
  --soft: #eef6e7;
  --line: #dde7d4;
  --green: #b8dc86;
  --green-mid: #6f9d4e;
  --green-dark: #24391f;
  --teal: #79aebc;
  --gold: #d9bc73;
  --coral: #c78266;
  --shadow: 0 14px 34px rgba(38, 61, 31, 0.09);
  --shadow-lift: 0 20px 46px rgba(38, 61, 31, 0.14);
  --radius: 8px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(184, 220, 134, 0.16), rgba(248, 250, 244, 0) 34rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100% - 1120px) / 2));
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(220, 233, 223, 0.86);
  backdrop-filter: blur(18px) saturate(1.05);
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--teal), var(--gold));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(38, 61, 31, 0.09);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--green-dark);
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(111, 157, 78, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand:hover .brand-mark {
  transform: rotate(-3deg) scale(1.04);
  box-shadow: 0 14px 30px rgba(111, 157, 78, 0.24);
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1.2;
}

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

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

.primary-nav a {
  position: relative;
  padding: 10px 13px;
  color: #394d35;
  border-radius: 8px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 7px;
  height: 2px;
  background: var(--green-mid);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active {
  color: var(--green-dark);
  background: rgba(184, 220, 134, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--green-dark);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 660px;
  height: 82vh;
  height: 82svh;
  max-height: 780px;
  margin-top: calc(var(--header-height) * -1);
  padding-top: var(--header-height);
  overflow: hidden;
  display: grid;
  align-items: center;
  color: var(--ink);
}

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

.hero-media {
  background-image: url("assets/hero-energy-neuburg.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(248, 250, 244, 0.96), rgba(238, 246, 231, 0.76) 46%, rgba(183, 212, 228, 0.12) 78%),
    linear-gradient(180deg, rgba(184, 220, 134, 0.24), rgba(255, 255, 255, 0.03) 50%, rgba(111, 157, 78, 0.13));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 76px 0 54px;
}

.hero-content > * {
  animation: hero-rise 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-content > *:nth-child(2) {
  animation-delay: 90ms;
}

.hero-content > *:nth-child(3) {
  animation-delay: 170ms;
}

.hero-content > *:nth-child(4) {
  animation-delay: 250ms;
}

.hero-content > *:nth-child(5) {
  animation-delay: 330ms;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 12px;
  color: var(--green-mid);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 4.75rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.65rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 28px;
  color: #51614c;
  font-size: 1.24rem;
}

.hero-actions,
.focus-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: translateX(-130%);
  transition: transform 520ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(130%);
}

.button-primary {
  color: var(--green-dark);
  background: var(--green);
  box-shadow: 0 14px 28px rgba(111, 157, 78, 0.22);
}

.button-secondary {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(22, 76, 54, 0.14);
  backdrop-filter: blur(10px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 170px));
  gap: 12px;
  max-width: 620px;
  margin: 38px 0 0;
}

.hero-facts div {
  padding-top: 14px;
  border-top: 1px solid rgba(22, 76, 54, 0.18);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.section {
  position: relative;
  padding: 92px 0;
  scroll-margin-top: calc(var(--header-height) + 18px);
}

main > .section {
  border-top: 1px solid rgba(22, 76, 54, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

main > .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(20px, calc((100% - 1120px) / 2));
  right: max(20px, calc((100% - 1120px) / 2));
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(111, 157, 78, 0),
    rgba(111, 157, 78, 0.34),
    rgba(121, 174, 188, 0.24),
    rgba(111, 157, 78, 0)
  );
}

@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  html {
    scroll-snap-type: y proximity;
  }

  .hero,
  main > .section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

.section-soft {
  background: var(--soft);
}

.services-hub {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(238, 246, 231, 0.7)),
    var(--paper);
}

.intro-section {
  padding-top: 64px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 244, 0.96)),
    var(--paper);
}

.house-section {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 246, 231, 0.86)),
    var(--soft);
}

.house-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(300px, 0.66fr);
  gap: 28px;
  align-items: stretch;
}

.house-scene-wrap {
  position: relative;
  height: 520px;
  min-height: 520px;
}

.house-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(238, 246, 231, 0.34)),
    linear-gradient(135deg, rgba(184, 220, 134, 0.2), rgba(121, 174, 188, 0.1));
  border-radius: var(--radius);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.house-scene.has-hit {
  cursor: pointer;
}

.house-scene.is-dragging {
  cursor: grabbing;
}

.house-scene:focus-visible {
  outline: 3px solid rgba(121, 174, 188, 0.32);
  outline-offset: 4px;
}

.house-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.house-potential {
  align-self: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.house-potential h3 {
  font-size: 1.7rem;
}

.house-potential > p:not(.panel-label) {
  color: var(--muted);
}

.potential-meter {
  display: grid;
  gap: 9px;
  margin: 22px 0;
}

.potential-meter span {
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.potential-meter div {
  height: 10px;
  overflow: hidden;
  background: #e7efdf;
  border-radius: 999px;
}

.potential-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green-mid), var(--green), var(--teal));
  border-radius: inherit;
  transition: width 260ms ease;
}

.house-checks {
  color: var(--muted);
}

.house-parts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.house-part-button {
  min-height: 42px;
  flex: 1 1 128px;
  padding: 10px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.house-part-button:hover,
.house-part-button:focus-visible,
.house-part-button.is-active {
  color: var(--green-dark);
  background: var(--green);
  border-color: rgba(111, 157, 78, 0.46);
  box-shadow: 0 12px 26px rgba(111, 157, 78, 0.16);
  outline: none;
}

.house-part-button:hover,
.house-part-button:focus-visible {
  transform: translateY(-2px);
}

.intro-grid,
.two-column,
.region-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 54px;
  align-items: start;
}

.section-heading h2 {
  max-width: 720px;
}

.section-heading.compact {
  max-width: 760px;
  margin-bottom: 28px;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
}

.hub-stack {
  display: grid;
  gap: 52px;
}

.hub-block + .hub-block {
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.hub-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.hub-heading h3 {
  font-size: 1.85rem;
}

.hub-heading p:not(.section-kicker) {
  color: var(--muted);
}

.service-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.service-tab,
.focus-button {
  min-height: 44px;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.service-tab:hover,
.service-tab:focus-visible,
.focus-button:hover,
.focus-button:focus-visible {
  border-color: rgba(111, 157, 78, 0.48);
  box-shadow: 0 12px 26px rgba(111, 157, 78, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.service-tab.is-active,
.focus-button.is-active {
  color: var(--green-dark);
  background: var(--green);
  border-color: rgba(111, 157, 78, 0.48);
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 32px;
  margin-bottom: 24px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-panel h3 {
  font-size: 1.7rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 4px;
  transform: translateY(-50%);
}

.cards-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.process-grid article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.info-card {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--green);
}

.info-card::before,
.team-card::before,
.process-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(184, 220, 134, 0.16), rgba(121, 174, 188, 0.08));
  opacity: 0;
  transition: opacity 220ms ease;
}

.info-card:nth-child(2) {
  border-top-color: var(--teal);
}

.info-card:nth-child(3) {
  border-top-color: var(--gold);
}

.card-icon,
.process-grid strong {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green-mid);
  font-weight: 900;
}

.projects-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.88fr) minmax(0, 1.12fr);
  gap: 24px;
  align-items: stretch;
}

.project-menu {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.project-button {
  position: relative;
  min-height: 54px;
  padding: 13px 16px;
  color: #394d35;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-button::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 4px;
  height: 0;
  background: var(--green-mid);
  border-radius: 999px;
  transform: translateY(-50%);
  transition: height 180ms ease;
}

.project-button:hover,
.project-button:focus-visible {
  color: var(--green-dark);
  background: rgba(184, 220, 134, 0.16);
  border-color: rgba(111, 157, 78, 0.2);
  outline: none;
  transform: translateX(3px);
}

.project-button.is-active {
  color: var(--green-dark);
  background: var(--green);
  box-shadow: 0 12px 26px rgba(111, 157, 78, 0.14);
}

.project-button.is-active::before {
  height: 28px;
}

.project-detail {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 32px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(238, 246, 231, 0.98), rgba(255, 255, 255, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.project-detail::before {
  content: "";
  position: absolute;
  inset: auto -15% -45% 24%;
  height: 260px;
  background: radial-gradient(circle, rgba(184, 220, 134, 0.34), transparent 65%);
}

.project-detail > * {
  position: relative;
}

.project-detail h3 {
  font-size: 2rem;
}

.project-detail p:not(.panel-label),
.project-detail .check-list {
  color: var(--muted);
}

.project-checks li::before {
  background: var(--green-mid);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.market-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.market-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(184, 220, 134, 0.16), rgba(121, 174, 188, 0.08));
  opacity: 0;
  transition: opacity 220ms ease;
}

.market-card > * {
  position: relative;
}

.market-card span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--green-mid);
  font-weight: 900;
}

.funding-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 54px;
  align-items: start;
}

.funding-box {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(135deg, rgba(184, 220, 134, 0.7), rgba(255, 255, 255, 0.92));
  color: var(--ink);
  border: 1px solid rgba(111, 157, 78, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.funding-box::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto 45%;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.54), transparent 62%);
  transform: rotate(18deg);
}

.funding-box > * {
  position: relative;
}

.funding-box .focus-button {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(111, 157, 78, 0.2);
}

.funding-box .focus-button.is-active {
  color: var(--green-dark);
  background: var(--green);
  border-color: rgba(111, 157, 78, 0.42);
}

.focus-result {
  margin-top: 24px;
}

.focus-result p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.process-grid article {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.region-section {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(184, 220, 134, 0.5), rgba(238, 246, 231, 0.9));
}

.region-section .lead {
  color: #51614c;
}

.region-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.region-list li {
  padding: 16px;
  color: var(--ink);
  background: #ffffff;
  border-left: 4px solid var(--green-mid);
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.team-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(248, 250, 244, 0.96)),
    var(--paper);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.team-card:nth-child(2) {
  border-top-color: var(--teal);
}

.team-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  color: var(--green-dark);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  transition: transform 220ms ease, background 220ms ease;
}

.team-role {
  margin-bottom: 8px;
  color: var(--green-mid);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.qualification-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.qualification-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-weight: 700;
}

.qualification-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 3px;
  transform: translateY(-50%);
}

.directions-section {
  background: #f2f7ed;
}

.directions-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 44px;
  align-items: center;
}

.directions-copy .button {
  margin-top: 22px;
}

.address-card {
  display: grid;
  gap: 4px;
  margin-top: 26px;
  padding: 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  font-style: normal;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.address-card strong {
  color: var(--green-mid);
}

.map-frame {
  position: relative;
  display: grid;
  place-items: stretch;
  min-height: 360px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.map-consent {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 360px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(184, 220, 134, 0.18), rgba(255, 255, 255, 0.86)),
    var(--surface);
}

.map-consent h3,
.map-consent p {
  max-width: 520px;
}

.map-consent p:not(.panel-label) {
  color: var(--muted);
}

.map-consent-actions,
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-section {
  background: linear-gradient(180deg, #f7faf2, #eef6e7);
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.contact-details a,
.contact-details span {
  color: var(--green-dark);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.turnstile-field {
  display: grid;
  gap: 8px;
  min-height: 84px;
}

.turnstile-widget {
  min-height: 65px;
}

.turnstile-field p {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: #ffffff;
  border-color: var(--green-mid);
  outline: 3px solid rgba(184, 220, 134, 0.28);
  box-shadow: 0 10px 24px rgba(38, 61, 31, 0.09);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.legal-header {
  margin: 0;
}

.legal-page {
  padding: 72px 0 90px;
}

.legal-content {
  max-width: 900px;
}

.legal-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section:first-child {
  padding-top: 0;
}

.legal-section h1 {
  max-width: 820px;
  font-size: 3.2rem;
}

.legal-section h2 {
  font-size: 1.68rem;
}

.legal-section p,
.legal-section li,
.legal-section dd {
  color: var(--muted);
}

.legal-section a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-updated {
  font-weight: 800;
}

.legal-rows {
  display: grid;
  gap: 12px;
  margin: 0;
}

.legal-rows div {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.legal-rows dt {
  color: var(--ink);
  font-weight: 900;
}

.legal-rows dd {
  margin: 0;
}

.legal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.site-footer {
  padding: 26px 0;
  color: #cfe2d6;
  background: #123728;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer-content p {
  margin: 0;
}

.footer-content a,
.footer-content button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.footer-content p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-content a:hover,
.footer-content button:hover,
.footer-content a:focus-visible,
.footer-content button:focus-visible {
  color: #ffffff;
  outline: none;
}

.consent-banner {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 18px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(920px, calc(100% - 28px));
  padding: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  transform: translateX(-50%);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner h2 {
  margin-bottom: 6px;
  font-size: 1.32rem;
}

.consent-banner p:not(.panel-label) {
  margin-bottom: 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

@media (hover: hover) {
  .service-panel:hover,
  .contact-form:hover,
  .map-frame:hover,
  .address-card:hover,
  .info-card:hover,
  .market-card:hover,
  .team-card:hover,
  .process-grid article:hover,
  .region-list li:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
  }

  .info-card:hover,
  .market-card:hover,
  .team-card:hover,
  .process-grid article:hover,
  .region-list li:hover {
    border-color: rgba(111, 157, 78, 0.38);
  }

  .info-card:hover::before,
  .market-card:hover::before,
  .team-card:hover::before,
  .process-grid article:hover::before {
    opacity: 1;
  }

  .team-card:hover .team-avatar {
    background: #e9f3dc;
    transform: rotate(-3deg) scale(1.04);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.03) translate3d(-0.6%, -0.3%, 0);
  }

  to {
    transform: scale(1.08) translate3d(0.7%, 0.4%, 0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 14px auto;
    display: none;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    padding: 13px;
  }

  .hero {
    min-height: 620px;
    height: 78vh;
    height: 78svh;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-text {
    font-size: 1.08rem;
  }

  .intro-grid,
  .two-column,
  .region-layout,
  .house-explorer,
  .projects-layout,
  .funding-layout,
  .directions-layout,
  .contact-layout,
  .legal-rows div,
  .service-panel,
  .consent-banner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cards-grid,
  .process-grid,
  .market-grid {
    grid-template-columns: 1fr 1fr;
  }

  .house-scene-wrap,
  .house-scene {
    height: 430px;
    min-height: 430px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 590px;
    height: 76vh;
    height: 76svh;
  }

  .hero-content {
    padding-top: 54px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .legal-section h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.82rem;
  }

  .hero-actions,
  .focus-controls,
  .service-switch,
  .map-consent-actions,
  .consent-actions {
    flex-direction: column;
  }

  .button,
  .service-tab,
  .project-button,
  .focus-button,
  .map-consent-actions .button,
  .consent-actions .button {
    width: 100%;
  }

  .house-scene-wrap,
  .house-scene {
    height: 360px;
    min-height: 360px;
  }

  .house-potential {
    padding: 22px;
  }

  .house-part-button {
    flex-basis: calc(50% - 10px);
  }

  .hero-facts,
  .cards-grid,
  .process-grid,
  .market-grid,
  .team-grid,
  .region-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .footer-content {
    display: grid;
  }
}
