*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0d0d0b;
  --white: #ffffff;
  --off-white: #f8f8f6;
  --light-gray: #eaeae8;
  --mid-gray: #8c8c88;
  --dark-gray: #2e2e2c;
  --accent: #cfffea;
  --accent-strong: #53c5be;
  --accent-light: #effff8;
  --link-light: #245f66;
  --link-light-hover: #194f56;
  --link-light-active: #153f45;
  --link-dark: #9fe8e1;
  --link-dark-hover: #c7fbf6;
  --link-dark-active: #87d8d2;
  --scroll-progress: 0;
  --leist-carousel-duration: 980ms;
  --leist-carousel-ease: cubic-bezier(0.22, 1.12, 0.36, 1);
  --radius: 6px;
  --serif: "AbhayaLocal", "Abhaya Libre", Georgia, serif;
  --sans: "OutfitLocal", "Outfit", "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--black);
  background: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  transition: background-color 1700ms cubic-bezier(0.22, 1, 0.36, 1), color 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}

h1, h2, h3 {
  text-wrap: balance;
  font-weight: 700;
}

a,
a:link,
a:visited {
  color: var(--link-light);
  text-decoration-color: rgba(36, 95, 102, 0.4);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  -webkit-text-fill-color: currentColor;
  transition: color 0.22s ease, text-decoration-color 0.22s ease;
}

a:hover,
a:focus-visible {
  color: var(--link-light-hover);
  text-decoration-color: currentColor;
}

a:active {
  color: var(--link-light-active);
}

body.darkmode a,
body.darkmode a:link,
body.darkmode a:visited {
  color: var(--link-dark);
  text-decoration-color: rgba(159, 232, 225, 0.45);
}

body.darkmode a:hover,
body.darkmode a:focus-visible {
  color: var(--link-dark-hover);
}

body.darkmode a:active {
  color: var(--link-dark-active);
}

a,
button {
  -webkit-tap-highlight-color: rgba(83, 197, 190, 0.22);
}

a[x-apple-data-detectors],
a[x-apple-data-detectors]:link,
a[x-apple-data-detectors]:visited {
  color: inherit !important;
  text-decoration: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

.hero-content,
.intro-grid > *,
.pillar-content,
.leist-panel-body,
.leist-acc-content,
.highlight-content,
.contact-box {
  min-width: 0;
}

sup {
  font-size: 0.62em;
  line-height: 0;
  position: relative;
  top: -0.45em;
}

body.nav-light {
  --nav-fg: var(--black);
  --nav-muted: var(--mid-gray);
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-shadow-soft: rgba(0, 0, 0, 0.04);
  --header-shadow-strong: rgba(0, 0, 0, 0.09);
}

body.nav-dark {
  --nav-fg: var(--off-white);
  --nav-muted: rgba(248, 248, 246, 0.74);
  --header-bg: rgba(13, 13, 11, 0.48);
  --header-shadow-soft: rgba(0, 0, 0, 0.16);
  --header-shadow-strong: rgba(0, 0, 0, 0.28);
}

body.darkmode {
  --black: #eef4fb;
  --white: #243647;
  --off-white: #1b2836;
  --light-gray: #223445;
  --mid-gray: #9fb0c1;
  --dark-gray: #d4deea;
  --accent: #53c5be;
  --accent-strong: #86ece5;
  --accent-light: #274355;
  --nav-fg: #eef4fb;
  --nav-muted: rgba(238, 244, 251, 0.72);
  --header-bg: rgba(12, 22, 32, 0.82);
  --header-shadow-soft: rgba(0, 0, 0, 0.28);
  --header-shadow-strong: rgba(0, 0, 0, 0.44);
}

.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(83, 197, 190, 0.22);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1400;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(83, 197, 190, 0.34);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 23px;
  height: 23px;
  display: block;
}

.theme-toggle .icon-sun,
.mobile-theme-toggle .icon-sun {
  display: none;
}

body.darkmode .theme-toggle .icon-sun,
body.darkmode .mobile-theme-toggle .icon-sun {
  display: block;
}

body.darkmode .theme-toggle .icon-moon,
body.darkmode .mobile-theme-toggle .icon-moon {
  display: none;
}

body.darkmode footer {
  background:
    radial-gradient(1100px 520px at -12% -20%, rgba(83, 197, 190, 0.24), transparent 62%),
    radial-gradient(860px 420px at 115% 0%, rgba(83, 197, 190, 0.18), transparent 66%),
    #101923;
  color: #eef4fb;
}

body.darkmode .footer-brand,
body.darkmode .footer-col {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

body.darkmode .footer-brand p,
body.darkmode .footer-col a,
body.darkmode .footer-col a:visited,
body.darkmode .footer-copy,
body.darkmode .footer-links a,
body.darkmode .footer-links a:visited {
  color: rgba(238, 244, 251, 0.72);
}

body.darkmode .footer-bottom {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

body.darkmode .footer-col h4 {
  color: rgba(238, 244, 251, 0.58);
}

body.darkmode .footer-col a:hover,
body.darkmode .footer-col a:focus-visible,
body.darkmode .footer-links a:hover,
body.darkmode .footer-links a:focus-visible {
  color: var(--accent-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.container {
  width: min(1340px, 100% - 124px);
  margin: 0 auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  pointer-events: none;
  z-index: 1800;
}

.scroll-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(83, 197, 190, 0.7), rgba(83, 197, 190, 1));
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress));
  transition: transform 0.12s linear;
}

body.darkmode .scroll-progress::before {
  background: linear-gradient(90deg, rgba(134, 236, 229, 0.76), rgba(134, 236, 229, 1));
}

.section-pad {
  padding: 102px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-strong);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-strong);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.eyebrow + h2 {
  color: var(--black);
}

h2 em {
  color: var(--mid-gray);
  font-style: italic;
  font-weight: 500;
}

.lead {
  font-size: 18px;
  line-height: 1.66;
  color: var(--dark-gray);
  max-width: 820px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 60px;
  background: var(--header-bg, rgba(255, 255, 255, 0.88));
  box-shadow: 0 6px 20px var(--header-shadow-soft, rgba(0, 0, 0, 0.04));
  backdrop-filter: blur(14px);
  transition: box-shadow 1200ms cubic-bezier(0.22, 1, 0.36, 1), background-color 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.scrolled {
  box-shadow: 0 10px 26px var(--header-shadow-strong, rgba(0, 0, 0, 0.09));
}

.header-inner {
  width: calc(100% - 60px);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner {
  --header-axis-size: 40px;
}

.header-inner > .brand,
.header-inner > .nav-main,
.header-inner > .header-cta {
  align-self: center;
}

.brand,
.brand:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
  height: var(--header-axis-size);
  color: var(--nav-fg, var(--black));
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sans);
  font-size: clamp(14px, 1.35vw, 19px);
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--nav-fg, var(--black));
  transition: color 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-name-strong {
  font-weight: 500;
}

.brand-name-light {
  font-weight: 400;
  color: var(--nav-muted, var(--mid-gray));
  transition: color 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-day,
.brand-dark {
  transition: opacity 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-dark {
  display: none;
}

body.nav-dark .site-header .brand-day,
body.darkmode .site-header .brand-day {
  display: none;
}

body.nav-dark .site-header .brand-dark,
body.darkmode .site-header .brand-dark {
  display: block;
}

.nav-main ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-axis-size);
}

.nav-main {
  height: var(--header-axis-size);
  display: flex;
  align-items: center;
}

.nav-main li {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-main a,
.nav-main a:visited {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font: 500 12px/1 var(--sans);
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none;
  padding: 0;
  flex-shrink: 0;
  color: var(--nav-fg, var(--dark-gray));
  font-weight: 500;
  position: relative;
  transition: color 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-main .nav-link-text {
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
  transform: none;
  transition: font-weight 0.2s ease;
}

.nav-main a:hover .nav-link-text,
.nav-main a:focus-visible .nav-link-text {
  font-weight: 700;
}

.header-cta:link,
.header-cta:visited {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  color: #123452;
  background: rgba(207, 255, 234, 0.84);
  border-radius: var(--radius);
  height: var(--header-axis-size);
  padding: 0 22px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: rgba(13, 13, 11, 0.84);
  color: #d8fffb;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
}

body.darkmode .header-cta,
body.darkmode .header-cta:visited {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  opacity: 1;
  background: rgba(83, 197, 190, 0.85);
}

body.darkmode .header-cta:hover,
body.darkmode .header-cta:focus-visible {
  background: rgba(248, 251, 255, 0.86);
  color: #0d4e55;
  -webkit-text-fill-color: #0d4e55;
}

.burger {
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius);
}

.burger-lines {
  width: 22px;
  height: 15px;
  position: relative;
}

.burger-lines::before,
.burger-lines::after,
.burger-lines span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--nav-fg, var(--black));
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger-lines::before { top: 0; }
.burger-lines span { top: 6.5px; }
.burger-lines::after { bottom: 0; }

body.menu-open .burger-lines::before {
  transform: translateY(6.5px) rotate(45deg);
}

body.menu-open .burger-lines span {
  opacity: 0;
}

body.menu-open .burger-lines::after {
  transform: translateY(-6.5px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .theme-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 940;
  background: rgba(11, 18, 24, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1), visibility 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.darkmode .mobile-menu-backdrop {
  background: rgba(0, 0, 0, 0.44);
}

body.menu-open .mobile-menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  inset: 86px 18px 18px;
  z-index: 960;
  background: linear-gradient(162deg, rgba(248, 248, 246, 0.99) 0%, rgba(239, 255, 248, 0.96) 100%);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  padding: 16px;
  transform: translateY(-18px) scale(0.985);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: auto;
  box-shadow: 0 22px 48px rgba(8, 13, 19, 0.15);
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 420ms cubic-bezier(0.22, 1, 0.36, 1), visibility 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.darkmode .mobile-menu {
  background: linear-gradient(165deg, rgba(28, 44, 59, 0.98) 0%, rgba(33, 53, 72, 0.98) 100%);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.48);
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.mobile-theme-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(83, 197, 190, 0.22);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.mobile-theme-toggle:hover,
.mobile-theme-toggle:focus-visible {
  transform: translateY(-1px);
  background: rgba(83, 197, 190, 0.34);
}

.mobile-theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

body.darkmode .mobile-theme-toggle {
  color: #eef4fb;
  background: rgba(83, 197, 190, 0.26);
}

.mobile-nav {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 4px 0 0;
}

.mobile-nav-link,
.mobile-nav-link:visited {
  text-decoration: none;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 14px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  color: var(--black);
  transition: transform 0.26s ease, background-color 0.26s ease, color 0.26s ease;
  min-width: 0;
}

body.darkmode .mobile-nav-link,
body.darkmode .mobile-nav-link:visited {
  background: rgba(255, 255, 255, 0.06);
  color: #eff4fb;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  transform: translateX(4px);
  background: rgba(207, 255, 234, 0.66);
}

body.darkmode .mobile-nav-link:hover,
body.darkmode .mobile-nav-link:focus-visible {
  background: rgba(83, 197, 190, 0.22);
}

.mobile-nav-index {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--accent-strong);
  margin-top: 6px;
  white-space: nowrap;
}

.mobile-nav-text {
  font-family: var(--serif);
  font-size: clamp(22px, 7.4vw, 34px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.mobile-menu-bottom {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.mobile-menu-contact {
  display: grid;
  gap: 6px;
  padding: 0 4px 2px;
}

.mobile-menu-contact a,
.mobile-menu-contact a:visited {
  text-decoration: none;
  color: var(--dark-gray);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

body.darkmode .mobile-menu-contact a,
body.darkmode .mobile-menu-contact a:visited {
  color: rgba(238, 244, 251, 0.9);
}

.mobile-menu .mobile-cta,
.mobile-menu .mobile-cta:visited {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  box-shadow: 0 10px 22px rgba(6, 10, 15, 0.12);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

:where(body:not(.darkmode)) .mobile-menu .mobile-cta:any-link {
  color: #123452;
}

.mobile-menu .mobile-cta:hover,
.mobile-menu .mobile-cta:focus-visible {
  transform: translateY(-1px);
  background: #53c5be;
  color: #07221f;
}

body.darkmode .mobile-menu .mobile-cta,
body.darkmode .mobile-menu .mobile-cta:visited {
  color: #07221f;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: end;
  position: relative;
  overflow: hidden;
  padding-top: 0;
  background: transparent;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #181816;
  border-radius: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.63;
  --parallax-shift: 0px;
  transform: translate3d(0, var(--parallax-shift), 0) scale(1.08);
  transition: transform 220ms linear;
  will-change: transform;
  border-radius: inherit;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 6, 0.86) 0%, rgba(8, 8, 6, 0.24) 55%, rgba(8, 8, 6, 0.06) 100%);
  border-radius: inherit;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 100px));
  margin: 0 0 50px 50px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 600;
}

.hero-tag::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--white);
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

body.darkmode .hero-bg {
  background: #0f1d2a;
}

body.darkmode .hero-bg::after {
  background: linear-gradient(to top, rgba(8, 16, 24, 0.86) 0%, rgba(8, 16, 24, 0.28) 55%, rgba(8, 16, 24, 0.08) 100%);
}

body.darkmode .hero h1,
body.darkmode .hero-copy,
body.darkmode .btn-secondary,
body.darkmode .btn-secondary:visited {
  color: #f4f8fd;
}

.hero-copy {
  max-width: 550px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.57;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn,
.btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  font-weight: 600;
  padding: 15px 24px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: #07363c;
  background: var(--accent);
}

.btn-primary:visited {
  color: #07363c;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--white);
  color: #0f5258;
  transform: translateY(-1px);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.btn-secondary:visited {
  color: #ffffff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: #0d0d0b;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  text-shadow: none;
}

body.darkmode .btn-primary,
body.darkmode .btn-primary:visited {
  color: #06262b;
  background: #53c5be;
}

body.darkmode .btn-primary:hover,
body.darkmode .btn-primary:focus-visible {
  color: #0d4c52;
  background: #e9f7f5;
}

body.darkmode .btn-secondary,
body.darkmode .btn-secondary:visited {
  color: #f7fbff;
  background: rgba(8, 16, 24, 0.46);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

body.darkmode .btn-secondary:hover,
body.darkmode .btn-secondary:focus-visible {
  color: #062a2f;
  background: rgba(234, 245, 255, 0.92);
  text-shadow: none;
}

/* Hero buttons need stronger separation from the image background in every state. */
.hero .btn-primary,
.hero .btn-primary:visited {
  color: #052e34;
  background: rgba(83, 197, 190, 0.84);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.hero .btn-primary:hover,
.hero .btn-primary:focus-visible {
  color: #0c4a50;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.hero .btn-secondary,
.hero .btn-secondary:visited {
  color: #0f1412;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
  text-shadow: none;
}

.hero .btn-secondary:hover,
.hero .btn-secondary:focus-visible {
  color: #052f35;
  background: rgba(207, 255, 234, 0.84);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

body.darkmode .hero .btn-primary,
body.darkmode .hero .btn-primary:visited {
  color: #052e34;
  background: rgba(83, 197, 190, 0.84);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

body.darkmode .hero .btn-primary:hover,
body.darkmode .hero .btn-primary:focus-visible {
  color: #0c4a50;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

body.darkmode .hero .btn-secondary,
body.darkmode .hero .btn-secondary:visited {
  color: #0f1412;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
  text-shadow: none;
}

body.darkmode .hero .btn-secondary:hover,
body.darkmode .hero .btn-secondary:focus-visible {
  color: #052f35;
  background: rgba(207, 255, 234, 0.84);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.intro-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.intro-media img {
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  --media-shift: 0px;
  --media-scale: 1.04;
  transform: translate3d(0, var(--media-shift), 0) scale(var(--media-scale));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.service-pillar {
  background: transparent;
}

.pillar-top {
  max-width: 900px;
}

.pillar-top h2 {
  max-width: 18ch;
}

.pillar-top .lead {
  max-width: 820px;
  font-size: 17px;
  margin-top: 10px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 60px;
}

.pillar-card {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: stretch;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07);
}

.pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.07);
}

.pillar-card:hover .pillar-media img {
  --media-scale: 1.07;
}

.pillar-media {
  aspect-ratio: 4 / 3;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--light-gray);
  border-radius: var(--radius) 0 0 var(--radius);
}

.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  --media-shift: 0px;
  --media-scale: 1.04;
  transform: translate3d(0, var(--media-shift), 0) scale(var(--media-scale));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  border-radius: inherit;
}

.pillar-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 30px 34px 32px;
}

.pillar-kicker {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  box-shadow: none;
}

.pillar-kicker::before,
.leist-panel-kicker::before,
.leist-acc-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.pillar-card h3 {
  font-family: var(--serif);
  font-size: clamp(30px, 2.55vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--black);
}

.pillar-card p {
  color: var(--dark-gray);
  font-size: 16px;
  line-height: 1.56;
  max-width: 62ch;
}

@media (min-width: 1025px) {
  .pillar-card.desktop-text-left {
    grid-template-columns: 60% 40%;
  }

  .pillar-card.desktop-text-left .pillar-content {
    order: 1;
  }

  .pillar-card.desktop-text-left .pillar-media {
    order: 2;
    border-radius: 0 var(--radius) var(--radius) 0;
  }
}

#leistungen {
  background: transparent;
}

.leist-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 42px;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.leist-tabs::-webkit-scrollbar {
  display: none;
}

.leist-tab-btn {
  flex: 1 0 auto;
  border: 0;
  background: transparent;
  padding: 13px 18px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--mid-gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.leist-tab-num {
  color: var(--accent-strong);
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  display: inline-block;
  transform: translateY(0);
}

.leist-tab-label {
  display: inline-block;
  line-height: 1;
  transform: translateY(0);
}

.leist-tab-btn.active {
  color: var(--black);
  background: transparent;
  box-shadow: none;
}

.leist-tab-btn:hover {
  color: var(--dark-gray);
}

.leist-tab-btn:hover .leist-tab-num,
.leist-tab-btn:focus-visible .leist-tab-num,
.leist-tab-btn.active .leist-tab-num {
  color: var(--accent-strong);
}

.leist-panels {
  margin-top: 16px;
}

.leist-tab-nav {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.leist-tab-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.leist-tab-dot {
  border: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(46, 46, 44, 0.28);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.leist-tab-dot.active {
  width: 28px;
  background: var(--accent-strong);
}

.leist-tab-arrows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.leist-tab-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(83, 197, 190, 0.24);
  color: #0b3835;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.leist-tab-arrow svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leist-tab-arrow:hover,
.leist-tab-arrow:focus-visible {
  transform: translateY(-1px);
  background: rgba(83, 197, 190, 0.38);
}

body.darkmode .leist-tab-dot {
  background: rgba(238, 244, 251, 0.34);
}

body.darkmode .leist-tab-dot.active {
  background: var(--accent-strong);
}

body.darkmode .leist-tab-arrow {
  background: rgba(83, 197, 190, 0.3);
  color: #eef4fb;
}

body.darkmode .leist-tab-arrow:hover,
body.darkmode .leist-tab-arrow:focus-visible {
  background: rgba(83, 197, 190, 0.45);
}

.leist-panel {
  display: none;
  grid-template-columns: 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--off-white);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.leist-panel.active {
  display: grid;
}

.leist-panel-media {
  aspect-ratio: 4 / 3;
  min-height: 0;
  background: var(--light-gray);
  overflow: hidden;
  border-radius: var(--radius) 0 0 var(--radius);
}

.leist-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  --media-shift: 0px;
  --media-scale: 1.04;
  transform: translate3d(0, var(--media-shift), 0) scale(var(--media-scale));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  border-radius: inherit;
}

.leist-panel:hover .leist-panel-media img {
  --media-scale: 1.06;
}

.leist-panel-body {
  align-items: center;
  text-align: center;
  padding: 38px 38px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.leist-panel-kicker {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: var(--accent-strong);
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  box-shadow: none;
}

.leist-panel-body h3 {
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
}

.leist-panel-body p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--dark-gray);
  max-width: 42ch;
}

.leist-accordion {
  display: none;
  margin-top: 34px;
}

.leist-acc-item {
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: var(--off-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.leist-acc-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--black);
  text-align: left;
  cursor: pointer;
}

.leist-acc-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.leist-acc-icon::before,
.leist-acc-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.6px;
  background: var(--black);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.leist-acc-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.leist-acc-item.open .leist-acc-icon::after {
  opacity: 0;
}

.leist-acc-body {
  display: none;
  padding: 0 14px 14px;
}

.leist-acc-item.open .leist-acc-body {
  display: block;
}

.leist-acc-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--off-white);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.leist-acc-media {
  aspect-ratio: 4 / 3;
  background: var(--light-gray);
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.leist-acc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  --media-shift: 0px;
  --media-scale: 1.04;
  transform: translate3d(0, var(--media-shift), 0) scale(var(--media-scale));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  border-radius: inherit;
}

.leist-acc-content {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leist-acc-item.open .leist-acc-trigger {
  color: var(--black);
}

.highlight-media img {
  --media-shift: 0px;
  --media-scale: 1.04;
  transform: translate3d(0, var(--media-shift), 0) scale(var(--media-scale));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  border-radius: inherit;
}

.leist-acc-kicker {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: var(--accent-strong);
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  box-shadow: none;
}

.leist-acc-content h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.12;
  color: var(--black);
  letter-spacing: -0.02em;
}

.leist-acc-content p {
  color: var(--dark-gray);
  font-size: 15px;
  line-height: 1.49;
}

.highlight {
  background: transparent;
  color: var(--black);
}

.highlight-head {
  margin-bottom: 34px;
}

.highlight-head h2 {
  max-width: 14ch;
  margin-bottom: 18px;
}

.highlight-head .lead {
  max-width: 880px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.highlight-media {
  aspect-ratio: auto;
  min-height: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
}

.highlight-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-content {
  padding: 56px 50px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.highlight-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dark-gray);
}

.highlight-content h2 {
  margin-bottom: 0;
  color: var(--black);
}

.highlight-sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--mid-gray);
  font-size: 22px;
}

.highlight-content p {
  color: var(--dark-gray);
  line-height: 1.57;
  font-size: 16px;
}

.highlight-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding-top: 16px;
  box-shadow: none;
}

.highlight-meta div {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--off-white);
  border: none;
  padding: 12px 12px 11px;
}

.highlight-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--black);
  margin-bottom: 3.5px;
}

.highlight-meta span {
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
}

.highlight-link {
  justify-self: stretch;
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-top: 8px;
}

.highlight-link:hover,
.highlight-link:focus-visible {
  background: var(--off-white);
  color: var(--accent-strong);
}

.contact {
  background: transparent;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  align-items: start;
}

.contact-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.contact-box h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 16px;
}

.contact-box p {
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 1.53;
  margin-bottom: 14px;
}

footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at -12% -20%, rgba(83, 197, 190, 0.22), transparent 62%),
    radial-gradient(860px 420px at 115% 0%, rgba(83, 197, 190, 0.16), transparent 66%),
    #0d0d0b;
  color: var(--white);
  padding: 84px 0 34px;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  pointer-events: none;
}

footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 24px;
}

.footer-brand,
.footer-col {
  background: rgba(255, 255, 255, 0.055);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  padding: 22px 22px 20px;
}

.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .brand-day {
  display: none;
}

.footer-brand .brand-dark {
  display: block;
}

.footer-brand-lockup .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.footer-brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sans);
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.footer-brand-name-strong {
  font-weight: 500;
}

.footer-brand-name-light {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.56);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.58;
  margin: 0 0 14px;
}

.footer-brand p:last-child {
  margin-bottom: 0;
}

.footer-col h4 {
  margin-bottom: 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.52);
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.footer-col a,
.footer-col a:visited {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent-strong);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-links a:visited {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-strong);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.66s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity, filter;
}

.reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

/* Apple-inspired spatial rhythm and stage composition */
.section-pad {
  padding: clamp(104px, 13vh, 164px) 0;
}

h2 {
  font-size: clamp(38px, 4.9vw, 74px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.lead {
  max-width: 70ch;
  font-size: clamp(18px, 1.28vw, 21px);
  line-height: 1.62;
}

.hero {
  height: 100svh;
  min-height: 100svh;
  align-items: flex-end;
}

.hero-content {
  width: min(1320px, calc(100% - 120px));
  margin: 0 0 clamp(62px, 10vh, 118px) clamp(48px, 6vw, 108px);
}

.hero h1 {
  font-size: clamp(54px, 8.2vw, 112px);
  line-height: 1.01;
  max-width: 18ch;
}

.hero-copy {
  max-width: 66ch;
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.52;
  margin-bottom: clamp(30px, 5vh, 52px);
}

.hero .btn,
.hero .btn:visited {
  padding: 16px 30px;
  letter-spacing: 0.085em;
}

#unternehmen .intro-grid {
  --unternehmen-text-height: 520px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(74px, 8.5vw, 152px);
  align-items: start;
}

#unternehmen .intro-grid > .reveal:first-child {
  padding-top: clamp(14px, 3vh, 58px);
  max-width: 62ch;
  position: relative;
  z-index: 2;
}

#unternehmen .intro-media {
  justify-self: end;
  align-self: start;
  width: calc((var(--unternehmen-text-height) + 40px) * 0.75);
  max-width: 100%;
  height: calc(var(--unternehmen-text-height) + 40px);
  aspect-ratio: 3 / 4;
  margin-top: -20px;
  margin-bottom: -20px;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.service-pillar .pillar-top {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.service-pillar .pillar-top .eyebrow {
  justify-content: center;
}

.service-pillar .pillar-top .eyebrow::before {
  width: 32px;
}

.service-pillar .pillar-top h2,
.service-pillar .pillar-top .lead {
  margin-inline: auto;
  max-width: 22ch;
}

.service-pillar .pillar-top .lead {
  max-width: 64ch;
}

.pillar-grid {
  --pillar-offset: clamp(0px, 5vw, 84px);
  gap: clamp(34px, 4.2vw, 64px);
  margin-top: clamp(66px, 9vh, 112px);
}

.pillar-card {
  position: relative;
  grid-template-columns: 42% 58%;
  width: calc(100% - var(--pillar-offset));
  min-height: clamp(350px, 41vw, 480px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.09);
  isolation: isolate;
}

.pillar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(83, 197, 190, 0.08), transparent 44%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.1);
}

.pillar-card:hover::after {
  opacity: 1;
}

.pillar-card:nth-child(odd) {
  margin-right: auto;
}

.pillar-card:nth-child(even) {
  margin-left: auto;
}

.pillar-content {
  padding: clamp(30px, 4vw, 48px);
  gap: 16px;
  background: var(--white);
  position: relative;
  z-index: 2;
}

.pillar-media {
  position: relative;
  z-index: 1;
}

.pillar-card h3 {
  font-size: clamp(33px, 2.9vw, 47px);
  line-height: 1.08;
}

#leistungen .lead {
  max-width: 64ch;
}

.leist-tabs {
  margin-top: clamp(44px, 6vh, 70px);
  padding: 8px;
  border-radius: var(--radius);
  background: rgba(248, 248, 246, 0.8);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  gap: 2px;
}

.leist-tab-btn {
  padding: 14px 20px;
  border-radius: 999px;
  letter-spacing: 0.085em;
  transition: color 0.24s ease, background 0.24s ease;
}

.leist-tab-btn.active {
  background: rgba(83, 197, 190, 0.16);
}

.leist-panels {
  margin-top: clamp(8px, 1.2vh, 14px);
  position: relative;
  z-index: 3;
}

.leist-panel,
.leist-carousel {
  min-height: clamp(360px, 40vw, 500px);
  background: var(--white);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.09);
  isolation: isolate;
}

.leist-carousel {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  height: clamp(360px, 40vw, 500px);
  min-height: 0;
}

.leist-panels.carousel-ready > .leist-panel {
  display: none !important;
}

.leist-carousel-viewport {
  position: relative;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.leist-carousel-media-viewport {
  background: var(--light-gray);
}

.leist-carousel-text-viewport {
  background: var(--white);
}

.leist-carousel-track {
  display: flex;
  flex-direction: column;
  height: 300%;
  transform: translateY(-33.333333%);
  will-change: transform;
}

.leist-carousel-track.is-animating {
  transition: transform var(--leist-carousel-duration) var(--leist-carousel-ease);
}

.leist-carousel-slide {
  flex: 0 0 33.333333%;
  min-height: 0;
  overflow: hidden;
}

.leist-carousel-slide .leist-panel-media,
.leist-carousel-slide .leist-panel-body {
  height: 100%;
  min-height: 100%;
  border-radius: 0;
}

.leist-carousel .leist-panel-media img {
  transform: translateZ(0) scale(1.006);
  transform-origin: center;
  transition: none;
}

.leist-panel-body {
  padding: clamp(34px, 4.2vw, 58px);
  gap: 16px;
  background: var(--white);
  position: relative;
  z-index: 2;
}

.leist-panel-body h3 {
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.04;
}

.leist-panel-media {
  aspect-ratio: auto;
  min-height: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.leist-panel-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leist-tab-nav {
  margin-top: clamp(18px, 3vh, 30px);
}

#vertrieb .highlight-head {
  margin-bottom: clamp(34px, 5vh, 56px);
}

#vertrieb .highlight-grid {
  grid-template-columns: 1fr 1fr;
  min-height: clamp(420px, 44vw, 580px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
  isolation: isolate;
}

#vertrieb .highlight-content {
  padding: clamp(40px, 4.3vw, 64px);
  gap: 20px;
  background: var(--white);
  position: relative;
  z-index: 2;
}

#kontakt .contact-grid {
  gap: clamp(70px, 8vw, 132px);
  align-items: start;
}

#kontakt .contact-grid > .reveal:first-child {
  padding-top: clamp(10px, 2vh, 30px);
  max-width: 62ch;
}

#kontakt .contact-box {
  padding: clamp(30px, 3.8vw, 52px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.08);
}

body.darkmode .leist-tabs {
  background: rgba(27, 40, 54, 0.82);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

body.darkmode .leist-tab-btn.active {
  background: rgba(134, 236, 229, 0.2);
}

body.darkmode .pillar-card::after {
  background: linear-gradient(118deg, rgba(134, 236, 229, 0.1), transparent 44%);
}

@media (min-width: 1025px) {
  .leist-tabs {
    z-index: 2;
  }

  .leist-tabs.is-stuck {
    z-index: 30;
  }

  .leist-tabs {
    position: sticky;
    top: 76px;
  }
}

@media (max-width: 1200px) {
  .container {
    width: min(1340px, 100% - 84px);
  }

  .intro-grid {
    gap: 68px;
  }

  .pillar-card:nth-child(2),
  .pillar-card:nth-child(3) {
    margin: 0;
  }

  .pillar-card {
    width: 100%;
  }

  .section-pad {
    padding: 96px 0;
  }

  .leist-panel-body {
    padding: 34px 30px 36px;
  }

  .contact-grid {
    gap: 64px;
  }
}

@media (max-width: 1024px) {
  .site-header {
    height: 70px;
  }

  .header-inner {
    width: min(1440px, 100% - 36px);
  }

  .mobile-menu {
    inset: 80px 14px 14px;
    padding: 14px;
  }

  .nav-main,
  .header-cta {
    display: none;
  }

  .service-pillar .pillar-top {
    text-align: left;
    margin-inline: 0;
  }

  .service-pillar .pillar-top .eyebrow {
    justify-content: flex-start;
  }

  .service-pillar .pillar-top h2,
  .service-pillar .pillar-top .lead {
    margin-inline: 0;
    max-width: 100%;
  }

  .burger {
    display: inline-flex;
  }

  .hero {
    height: 100svh;
    min-height: 100svh;
    padding-top: 0;
  }

  .hero-content {
    width: calc(100% - 56px);
    margin: 0 0 36px 28px;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .hero-copy {
    max-width: 100%;
  }

  .intro-grid,
  .contact-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  #unternehmen .intro-grid {
    grid-template-columns: 1fr;
    gap: 68px;
  }

  #unternehmen .intro-grid > .reveal:first-child {
    padding-top: 0;
    max-width: 100%;
  }

  .intro-media {
    min-height: 0;
  }

  #unternehmen .intro-media {
    width: 100%;
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
    aspect-ratio: 4 / 3;
  }

  #vertrieb .highlight-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pillar-top .lead {
    font-size: 16px;
  }

  .pillar-card {
    width: 100%;
    grid-template-columns: 1fr;
    margin: 0;
  }

  .pillar-content {
    padding: 24px 26px 26px;
  }

  .pillar-media {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .leist-panel,
  .leist-carousel {
    grid-template-columns: 1fr;
  }

  .leist-panel-media {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .leist-panel-body {
    padding: 26px 24px 28px;
  }

  .highlight-media {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .pillar-content,
  .leist-acc-content {
    gap: 10px;
  }

  .pillar-kicker,
  .leist-acc-kicker {
    font-size: 24px;
  }

  .leist-tabs,
  .leist-panels,
  .leist-tab-nav {
    display: none;
  }

  .leist-accordion {
    display: block;
  }

  .pillar-kicker,
  .leist-acc-kicker,
  .pillar-content h3,
  .leist-acc-content h3,
  .pillar-content p,
  .leist-acc-content p {
    margin: 0;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(1340px, 100% - 48px);
  }

  .section-pad {
    padding: 64px 0;
  }

  #unternehmen.section-pad {
    padding-bottom: 48px;
  }

  .service-pillar.section-pad {
    padding-top: 48px;
  }

  .intro-grid {
    gap: 22px;
  }

  #unternehmen .intro-grid {
    gap: 22px;
  }

  #unternehmen .intro-grid > .reveal:first-child {
    padding-top: 0;
  }

  .intro-media {
    min-height: 0;
  }

  .brand {
    max-width: calc(100% - 64px);
    gap: 8px;
  }

  .brand .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .brand .brand-wordmark {
    font-size: 16px;
    gap: 3px;
  }

  .header-inner {
    gap: 12px;
  }

  .hero-content {
    width: calc(100% - 40px);
    margin: 0 0 28px 20px;
  }

  .mobile-menu {
    inset: 78px 12px 12px;
    padding: 12px;
  }

  .mobile-nav-link {
    padding: 12px 10px;
  }

  .mobile-nav-text {
    font-size: clamp(19px, 7vw, 27px);
  }

  .mobile-menu .mobile-cta {
    min-height: 50px;
  }

  .hero h1 {
    font-size: clamp(30px, 9.6vw, 45px);
    max-width: 100%;
  }

  .hero-copy {
    font-size: 16px;
    max-width: 100%;
  }

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

  .pillar-grid {
    gap: 20px;
    margin-top: 36px;
  }

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

  .pillar-media {
    min-height: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .pillar-content {
    padding: 18px 18px 20px;
  }

  .pillar-card h3 {
    font-size: clamp(23px, 7.2vw, 28px);
  }

  .leist-acc-content h3 {
    font-size: clamp(22px, 7vw, 27px);
  }

  .highlight-content {
    padding: 34px 24px;
  }

  #vertrieb .highlight-grid {
    min-height: 0;
  }

  #vertrieb .highlight-content {
    padding: 34px 24px;
  }

  .highlight-head {
    margin-bottom: 26px;
  }

  .highlight-meta {
    grid-template-columns: 1fr;
  }

  .leist-acc-content {
    padding: 16px 16px 18px;
  }

  .contact-box {
    padding: 24px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(1340px, 100% - 34px);
  }

  .section-pad {
    padding: 58px 0;
  }

  .hero {
    height: 100svh;
    min-height: 100svh;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin: 0 0 24px 14px;
  }

  .hero-copy {
    line-height: 1.45;
  }

  .contact-box {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .site-header,
  .brand,
  .brand-day,
  .brand-dark,
  .nav-main a,
  .theme-toggle,
  .burger-lines::before,
  .burger-lines::after,
  .burger-lines span,
  .mobile-menu-backdrop,
  .mobile-menu,
  .mobile-theme-toggle,
  .mobile-nav-link,
  .mobile-menu .mobile-cta,
  .scroll-progress::before,
  .leist-tab-dot,
  .leist-tab-arrow,
  .leist-carousel-track {
    transition: none;
  }

  .reveal {
    transition: none;
    transform: none;
    filter: none;
  }

  .hero-bg img,
  .intro-media img,
  .pillar-card,
  .pillar-media img,
  .leist-panel-media img,
  .leist-acc-media img,
  .highlight-media img {
    transition: none;
    transform: none;
  }

  .pillar-card:hover {
    transform: none;
  }
}

body.darkmode a.highlight-link:any-link {
  color: #09282b;
  -webkit-text-fill-color: currentColor;
  background: #8de0d9;
  opacity: 1;
  text-shadow: none;
}

body.darkmode a.highlight-link:is(:hover, :focus-visible, :active) {
  color: #09282b;
  background: #d6fff9;
}

body.darkmode a.highlight-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
