@property --quick-frame-progress {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

@keyframes quick-contact-frame-build {
  0% {
    --quick-frame-progress: 0deg;
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  60%,
  78% {
    --quick-frame-progress: 360deg;
    opacity: 1;
  }

  100% {
    --quick-frame-progress: 360deg;
    opacity: 0;
  }
}

@keyframes quick-contact-rm-reveal {
  0%,
  54% {
    opacity: 0;
    transform: translateY(-50%) scale(0.94);
  }

  64%,
  80% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes quick-contact-buttons-expand {
  0% {
    transform: translateY(var(--quick-dot-offset)) scale(0.24);
  }

  30% {
    transform: translateY(0) scale(0.24);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

:root {
  --ink: #15321f;
  --ink-soft: #314b38;
  --green: #40a348;
  --green-deep: #2f7f38;
  --rm-logo-green: #0daa4c;
  --rm-logo-red: #ed1c24;
  --rm-logo-gray: #7b7979;
  --paper: #ffffff;
  --mist: #f3f6fa;
  --line: #dce4ee;
  --muted: #66758a;
  --max: 1240px;
  --radius: 2px;
  --shadow: 0 20px 70px rgba(21, 50, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.shell {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

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

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

.quick-contact {
  --quick-frame-progress: 0deg;
  position: fixed;
  top: 50%;
  left: 4px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(21, 50, 31, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(21, 50, 31, 0.14);
  backdrop-filter: blur(14px);
  isolation: isolate;
  transform: translateY(-50%);
  transition:
    border-color 160ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    --quick-frame-progress 360ms ease;
  -webkit-backdrop-filter: blur(14px);
}

.quick-contact::before {
  position: absolute;
  top: 50%;
  left: 9px;
  z-index: 1;
  box-sizing: border-box;
  width: 96px;
  height: 96px;
  border-radius: 2px;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    var(--rm-logo-gray) var(--quick-frame-progress),
    transparent 0deg
  );
  content: "";
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 120ms ease;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}

.quick-contact::after {
  position: absolute;
  top: 50%;
  left: 9px;
  z-index: 2;
  width: 96px;
  height: 96px;
  background: url("assets/rm-monogram.svg") center / contain no-repeat;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.94);
  transform-origin: center;
  transition: opacity 200ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quick-contact-item {
  --quick-dot-offset: 0px;
  position: relative;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 3px;
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform-origin: left center;
  will-change: transform;
  transition:
    border-radius 240ms ease,
    box-shadow 240ms ease,
    filter 240ms ease,
    transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quick-contact-green {
  background: var(--rm-logo-green);
}

.quick-contact-red {
  background: var(--rm-logo-red);
}

.quick-contact-item svg {
  width: 20px;
  height: 20px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
  transition: opacity 210ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quick-contact-item .quick-contact-play {
  fill: currentColor;
  stroke: none;
}

.quick-contact-item:hover,
.quick-contact-item:focus-visible {
  filter: brightness(1.08);
  transform: translateX(2px);
}

.quick-contact-item:focus-visible {
  outline: 3px solid white;
  outline-offset: -4px;
}

.quick-contact-label {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .quick-contact {
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .quick-contact .quick-contact-item {
    border-radius: 0;
    box-shadow: none;
    filter: none;
    transform: translateY(var(--quick-dot-offset)) scale(0.24);
  }

  .quick-contact .quick-contact-item:nth-of-type(1) {
    --quick-dot-offset: 53px;
  }

  .quick-contact .quick-contact-item:nth-of-type(2) {
    --quick-dot-offset: 21px;
  }

  .quick-contact .quick-contact-item:nth-of-type(3) {
    --quick-dot-offset: -11px;
  }

  .quick-contact .quick-contact-item svg {
    opacity: 0;
    transform: scale(0.55);
  }

  .quick-contact:hover {
    border-color: rgba(21, 50, 31, 0.08);
    background-color: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 34px rgba(21, 50, 31, 0.14);
    backdrop-filter: blur(14px);
    transition:
      border-color 280ms ease 1950ms,
      background-color 280ms ease 1950ms,
      box-shadow 300ms ease 1950ms;
    -webkit-backdrop-filter: blur(14px);
  }

  .quick-contact:hover::before {
    animation: quick-contact-frame-build 1800ms cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  .quick-contact:hover::after {
    animation: quick-contact-rm-reveal 1800ms cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  .quick-contact:hover .quick-contact-item {
    animation: quick-contact-buttons-expand 800ms cubic-bezier(0.65, 0, 0.35, 1) 1800ms both;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: none;
    transition-delay: 2020ms;
  }

  .quick-contact:hover .quick-contact-item:nth-of-type(1) {
    transform: none;
  }

  .quick-contact:hover .quick-contact-item:nth-of-type(2) {
    transform: none;
  }

  .quick-contact:hover .quick-contact-item:nth-of-type(3) {
    transform: none;
  }

  .quick-contact:hover .quick-contact-item svg {
    opacity: 1;
    transform: none;
    transition-delay: 2250ms;
  }

  .quick-contact:focus-within:not(:hover) {
    border-color: rgba(21, 50, 31, 0.08);
    background-color: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 34px rgba(21, 50, 31, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .quick-contact:focus-within:not(:hover) .quick-contact-item {
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: none;
  }

  .quick-contact:focus-within:not(:hover) .quick-contact-item svg {
    opacity: 1;
    transform: none;
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(21, 50, 31, 0.06);
}

.nav-wrap {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand-logo-link {
  line-height: 0;
}

.brand-logo {
  width: 196px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.9rem;
  font-weight: 600;
}

.main-nav > a:not(.nav-cta) {
  position: relative;
}

.main-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav > a:hover::after,
.main-nav > a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 12px 18px;
  color: white;
  background: var(--ink);
}

.nav-cta-green {
  background: var(--green);
}

.nav-cta-green:hover,
.nav-cta-green:focus-visible {
  background: var(--green-deep);
}

.menu-toggle {
  display: none;
}

.hero {
  min-height: 760px;
  padding: 138px 0 72px;
  background:
    linear-gradient(90deg, rgba(64, 163, 72, 0.06) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(rgba(64, 163, 72, 0.06) 1px, transparent 1px) 0 0 / 76px 76px,
    #fff;
}

.hero-grid {
  display: grid;
  min-height: 580px;
  align-items: center;
  gap: clamp(38px, 6vw, 88px);
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #93d099;
}

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

h1,
h2,
h3 {
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 6.4vw, 6.4rem);
  font-weight: 650;
  letter-spacing: -0.066em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 4.3vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 18px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  color: white;
  background: var(--green);
}

.button-primary:hover {
  background: var(--green-deep);
}

.text-link {
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid currentColor;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-facts {
  display: grid;
  margin: 58px 0 0;
  grid-template-columns: repeat(3, 1fr);
}

.hero-facts div {
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.hero-facts div + div {
  padding-left: 20px;
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts dt {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-visual {
  position: relative;
  margin: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  content: "";
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  min-height: 580px;
  object-fit: cover;
  object-position: 61% center;
}

.hero-visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  color: white;
  background: rgba(64, 163, 72, 0.94);
  backdrop-filter: blur(12px);
  font-size: 0.84rem;
}

.signal-bar {
  color: white;
  background: var(--green);
}

.signal-track {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.signal-track i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
}

.section {
  padding: clamp(96px, 12vw, 164px) 0;
}

.section-intro {
  display: grid;
  align-items: end;
  margin-bottom: 66px;
  column-gap: 60px;
  grid-template-columns: 1fr 0.75fr;
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
}

.section-intro h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.section-intro > p:last-child {
  max-width: 520px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.04rem;
}

.services {
  background: var(--mist);
}

.service-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  position: relative;
  min-height: 380px;
  padding: clamp(30px, 4vw, 54px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.service-card-accent {
  color: white;
  background: var(--green);
}

.service-card h3 {
  max-width: 430px;
}

.service-card p {
  max-width: 520px;
  color: var(--muted);
}

.service-card-accent p {
  color: rgba(255, 255, 255, 0.78);
}

.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.service-card-accent li {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.approach {
  color: white;
  background: var(--ink);
}

.approach-grid {
  display: grid;
  gap: clamp(60px, 9vw, 140px);
  grid-template-columns: 0.84fr 1.16fr;
}

.approach-title {
  position: sticky;
  top: 132px;
  align-self: start;
}

.approach-title p:last-child {
  max-width: 440px;
  color: #afbdd0;
  font-size: 1.08rem;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  padding: 42px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  grid-template-columns: 1fr;
}

.process-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.process-list h3 {
  margin-bottom: 10px;
}

.process-list p {
  max-width: 520px;
  margin: 0;
  color: #afbdd0;
}

.expertise {
  background: white;
}

.expertise-grid {
  display: grid;
  align-items: stretch;
  gap: clamp(50px, 8vw, 120px);
  grid-template-columns: 1.08fr 0.92fr;
}

.expertise-copy {
  padding: 42px 0;
}

.expertise-copy p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.08rem;
}

.expertise-panel {
  padding: clamp(34px, 5vw, 62px);
  color: white;
  background: var(--green);
}

.expertise-panel > p {
  max-width: 260px;
  color: #d1ead3;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.expertise-panel ul {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.expertise-panel li {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.expertise-panel li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

.locations {
  background: var(--mist);
}

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

.location-card {
  padding: clamp(34px, 5vw, 60px);
  border: 1px solid var(--line);
  background: white;
}

.location-label {
  display: block;
  margin-bottom: 64px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location-card h3 {
  margin-bottom: 32px;
}

.location-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 42px;
  color: var(--muted);
}

.location-links a:hover {
  color: var(--green);
}

.button-outline {
  border-color: var(--ink);
}

.button-outline:hover {
  color: white;
  background: var(--ink);
}

.contact-section {
  padding: clamp(80px, 10vw, 130px) 0;
  color: white;
  background: var(--green);
}

.contact-grid {
  display: grid;
  align-items: end;
  gap: 50px;
  grid-template-columns: 1fr auto;
}

.contact-grid h2 {
  max-width: 760px;
  margin: 0;
}

.contact-action {
  max-width: 320px;
}

.contact-action p {
  color: #dceede;
}

.button-light {
  color: var(--ink);
  background: white;
}

.button-light:hover {
  color: white;
  background: var(--ink);
}

.site-footer {
  padding: 76px 0 34px;
  color: #c7d1df;
  background: #0c2013;
  font-size: 0.87rem;
}

.footer-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1.2fr 0.9fr 0.6fr;
}

.brand-footer {
  margin-bottom: 20px;
  color: white;
}

.brand-footer-logo {
  background: transparent;
}

.brand-footer-logo .brand-logo {
  width: 210px;
}

.footer-contact,
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact strong {
  color: white;
}

.footer-meta a:hover,
.footer-contact a:hover {
  color: white;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-delay {
  transition-delay: 120ms;
}

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

:focus-visible {
  outline: 3px solid #83c88a;
  outline-offset: 4px;
}

@media (min-width: 981px) and (max-width: 1360px) {
  .shell {
    width: min(calc(100% - 144px), var(--max));
  }
}

@media (max-width: 980px) {
  .quick-contact {
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 8px;
    gap: 4px;
    padding: 4px;
    transform: none;
  }

  .quick-contact-item {
    width: 40px;
    height: 40px;
  }

  .quick-contact-item svg {
    width: 19px;
    height: 19px;
  }

  .quick-contact-label {
    display: none;
  }
}

@media (max-width: 1040px) {
  .main-nav {
    gap: 20px;
  }

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

  .hero-visual img {
    min-height: 480px;
  }

  .section-intro,
  .expertise-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .section-intro > p:last-child {
    margin-top: 24px;
  }

  .approach-title {
    position: static;
  }
}

@media (max-width: 780px) {
  .shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .nav-wrap {
    min-height: 70px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
  }

  .menu-icon,
  .menu-icon::before {
    display: block;
    width: 20px;
    height: 1px;
    background: currentColor;
    content: "";
    transition: transform 180ms ease;
  }

  .menu-icon::before {
    transform: translateY(-6px);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::before {
    transform: rotate(-90deg);
  }

  .main-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 18px 30px rgba(21, 50, 31, 0.1);
    flex-direction: column;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 10px;
  }

  .main-nav > a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 118px 0 54px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-facts {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .hero-facts div,
  .hero-facts div + div {
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-visual img {
    min-height: 390px;
  }

  .signal-track {
    display: grid;
    padding: 25px 0;
    grid-template-columns: 1fr 1fr;
  }

  .signal-track i {
    display: none;
  }

  .section-intro {
    margin-bottom: 46px;
  }

  .service-grid,
  .location-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .location-label {
    margin-bottom: 48px;
  }

  .contact-action {
    max-width: none;
  }
}

@media (max-width: 460px) {
  .brand-logo {
    width: 172px;
  }

  .brand-footer-logo .brand-logo {
    width: 190px;
  }

  .hero-visual img {
    min-height: 330px;
  }

  .hero-visual figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

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

/* Contact page */

.contact-page {
  background: var(--mist);
}

.contact-main {
  min-height: 100vh;
}

.contact-hero {
  padding: 132px 0 92px;
  background:
    linear-gradient(90deg, rgba(64, 163, 72, 0.055) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(rgba(64, 163, 72, 0.055) 1px, transparent 1px) 0 0 / 76px 76px,
    var(--mist);
}

.contact-page-grid {
  display: grid;
  align-items: start;
  gap: clamp(44px, 7vw, 94px);
  grid-template-columns: minmax(0, 0.78fr) minmax(540px, 1.22fr);
}

.contact-page-intro {
  position: sticky;
  top: 130px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 48px;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-page-intro h1 {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 6vw, 5.7rem);
}

.contact-lead {
  max-width: 600px;
  margin-bottom: 46px;
  color: var(--muted);
  font-size: 1.08rem;
}

.direct-contact {
  display: grid;
  margin-bottom: 42px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.direct-contact div {
  padding: 20px 18px 20px 0;
  border-bottom: 1px solid var(--line);
}

.direct-contact div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.direct-contact span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.direct-contact a {
  font-weight: 700;
}

.direct-contact a:hover {
  color: var(--green);
}

.contact-locations {
  display: grid;
  gap: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-locations p {
  margin: 0;
}

.contact-locations strong {
  color: var(--ink);
}

.form-panel {
  padding: clamp(30px, 4.5vw, 58px);
  border-top: 5px solid var(--green);
  background: white;
  box-shadow: var(--shadow);
}

.form-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.form-heading > span {
  font-size: 1.22rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.form-heading p {
  max-width: 250px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
}

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

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #b9c5bc;
  border-radius: 0;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field textarea {
  min-height: 152px;
  resize: vertical;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #76947d;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(64, 163, 72, 0.15);
}

.field-error {
  display: none;
  margin-top: 6px;
  color: #a13232;
  font-size: 0.78rem;
  font-weight: 650;
}

.was-validated .form-field input:invalid,
.was-validated .form-field select:invalid,
.was-validated .form-field textarea:invalid {
  border-color: #b53a3a;
  background: #fffafa;
}

.was-validated .form-field input:invalid + .field-error,
.was-validated .form-field select:invalid + .field-error,
.was-validated .form-field textarea:invalid + .field-error,
.was-validated .consent-field:has(input:invalid) + .privacy-error {
  display: block;
}

.consent-field {
  display: grid;
  align-items: start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.79rem;
  grid-template-columns: 20px 1fr;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.consent-field a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-error {
  margin-bottom: 8px;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.form-submit-row .button {
  flex: none;
  border: 0;
  cursor: pointer;
}

.form-submit-row p {
  max-width: 270px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.form-status {
  min-height: 25px;
  margin: 18px 0 0;
  color: var(--green-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-footer {
  padding-top: 64px;
}

@media (max-width: 1080px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .contact-page-intro {
    position: static;
  }
}

@media (max-width: 660px) {
  .contact-hero {
    padding: 112px 0 72px;
  }

  .contact-page-intro h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .direct-contact,
  .contact-locations,
  .form-row {
    grid-template-columns: 1fr;
  }

  .direct-contact div + div {
    padding-left: 0;
    border-left: 0;
  }

  .form-heading,
  .form-submit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-heading p {
    max-width: none;
    text-align: left;
  }
}

/* Team page */

.team-page {
  background: var(--mist);
}

.team-hero {
  padding: 134px 0 88px;
  background:
    linear-gradient(90deg, rgba(64, 163, 72, 0.055) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(rgba(64, 163, 72, 0.055) 1px, transparent 1px) 0 0 / 76px 76px,
    white;
}

.team-hero .back-link {
  margin-bottom: 56px;
}

.team-hero-grid {
  display: grid;
  align-items: end;
  gap: clamp(42px, 8vw, 118px);
  grid-template-columns: 1.35fr 0.65fr;
}

.team-hero h1 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(3.5rem, 6.8vw, 6.7rem);
}

.team-hero-copy > p {
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 1.05rem;
}

.team-summary {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-summary span {
  padding: 18px 18px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.team-summary span + span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.team-summary strong {
  display: block;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1.2;
}

.team-directory {
  padding: 88px 0 clamp(100px, 12vw, 160px);
}

.directory-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 24px;
}

.directory-header .eyebrow {
  margin-bottom: 8px;
}

.directory-note {
  margin: 0;
  color: var(--muted);
}

.team-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.filter-button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #bdc9c0;
  color: var(--ink-soft);
  background: white;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--green);
  color: white;
  background: var(--green);
}

.filter-status {
  min-height: 22px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.78rem;
}

.team-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card {
  display: flex;
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
  flex-direction: column;
}

.team-card[hidden] {
  display: none;
}

@media (min-width: 1121px) {
  .team-card.is-centered-last {
    grid-column: 2;
  }
}

.team-portrait {
  position: relative;
  display: block;
  aspect-ratio: 1066 / 650;
  min-height: 210px;
  background: #f2f5f2;
  overflow: hidden;
}

.team-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-portrait--lower {
  background: #fff;
}

.team-portrait--lower img {
  transform: translateY(var(--portrait-shift, 32px)) scale(var(--portrait-scale, 1));
  transform-origin: center bottom;
}

.team-portrait--official {
  display: grid;
  place-items: center;
  background: #eef2ee;
}

.team-portrait--official img {
  width: min(58%, 210px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.team-card-body {
  display: flex;
  height: 100%;
  padding: 28px 30px 32px;
  flex-direction: column;
}

.team-role {
  min-height: 38px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
}

.team-focus {
  margin-bottom: 20px;
  color: var(--green-deep);
  font-weight: 750;
}

.team-description {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 26px;
  padding: 0;
  list-style: none;
}

.team-tags li {
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.71rem;
  font-weight: 700;
}

.team-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
}

.team-contact a:last-child {
  color: var(--green-deep);
  border-bottom: 1px solid currentColor;
}

.team-contact a:hover {
  color: var(--green);
}

.team-cta {
  padding: clamp(80px, 10vw, 126px) 0;
  color: white;
  background: var(--green);
}

.team-cta-grid {
  display: grid;
  align-items: end;
  gap: 50px;
  grid-template-columns: 1fr auto;
}

.team-cta h2 {
  max-width: 890px;
  margin: 0;
}

.team-footer {
  padding-top: 64px;
}

@media (max-width: 1040px) {
  .team-hero-grid {
    grid-template-columns: 1fr;
  }

  .team-hero-copy {
    max-width: 620px;
  }

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

}

@media (max-width: 780px) {
  .directory-header,
  .team-cta-grid {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }

  .team-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .team-hero {
    padding: 112px 0 70px;
  }

  .team-hero h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

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

  .team-contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Rechtliche Seiten */
.legal-page {
  background: #f7f9f7;
}

.legal-hero {
  padding: 150px 0 78px;
  color: white;
  background:
    radial-gradient(circle at 78% 28%, rgba(64, 163, 72, 0.3), transparent 30%),
    linear-gradient(130deg, #102a1a 0%, var(--ink) 58%, #1f4c2a 100%);
}

.legal-hero-inner {
  max-width: 960px;
  margin-left: max(24px, calc((100% - var(--max)) / 2));
}

.legal-hero .back-link {
  color: rgba(255, 255, 255, 0.74);
}

.legal-hero .back-link::before {
  background: currentColor;
}

.legal-hero .eyebrow {
  margin-top: 54px;
  color: #8bd592;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 10px 0 22px;
  font-size: clamp(3.4rem, 8vw, 7.5rem);
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.legal-hero p:last-child {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.legal-section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.legal-layout {
  display: grid;
  align-items: start;
  gap: clamp(40px, 7vw, 100px);
  grid-template-columns: 190px minmax(0, 820px);
  justify-content: center;
}

.legal-aside {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 4px;
  padding-top: 6px;
}

.legal-aside span {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-aside a {
  padding: 10px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.legal-aside a:hover,
.legal-aside a.is-active {
  border-left-color: var(--green);
  color: var(--ink);
  background: rgba(64, 163, 72, 0.07);
}

.legal-content {
  min-width: 0;
  padding: clamp(30px, 5.5vw, 68px);
  border-top: 5px solid var(--green);
  background: white;
  box-shadow: 0 22px 70px rgba(21, 50, 31, 0.09);
}

.legal-content > :first-child {
  margin-top: 0;
}

.legal-content h2 {
  margin: 54px 0 18px;
  padding-top: 7px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.legal-content h3 {
  margin: 36px 0 14px;
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.legal-content p,
.legal-content li,
.legal-content address {
  color: #4e6054;
  font-size: 0.94rem;
  line-height: 1.78;
}

.legal-content p {
  margin: 0 0 20px;
}

.legal-content address {
  margin-bottom: 28px;
  padding: 22px 24px;
  border-left: 3px solid var(--green);
  background: #f3f7f3;
  font-style: normal;
}

.legal-content ul,
.legal-content ol {
  display: grid;
  gap: 9px;
  margin: 0 0 26px;
  padding-left: 24px;
}

.legal-content li::marker {
  color: var(--green);
  font-weight: 800;
}

.legal-content a {
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--green);
}

.legal-contact-list {
  display: grid;
  gap: 1px;
  margin: 28px 0 44px;
  border: 1px solid var(--line);
  background: var(--line);
}

.legal-contact-list p {
  margin: 0;
  padding: 22px 24px;
  background: white;
}

.legal-contact-list strong {
  color: var(--ink);
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .legal-aside span {
    flex-basis: 100%;
  }

  .legal-aside a {
    border: 1px solid var(--line);
  }

  .legal-aside a:hover,
  .legal-aside a.is-active {
    border-color: var(--green);
  }
}

@media (max-width: 620px) {
  .legal-hero {
    padding: 112px 0 64px;
  }

  .legal-hero .eyebrow {
    margin-top: 40px;
  }

  .legal-hero h1 {
    font-size: clamp(2.55rem, 12vw, 4.8rem);
    hyphens: manual;
  }

  .legal-content {
    padding: 28px 22px 34px;
  }

  .legal-content h2 {
    margin-top: 42px;
  }
}
