:root {
  --bg: #000000;
  --ink: #ffffff;
  --muted: #c9cfda;
  --accent: #2a8a95;
  --accent-strong: #206e77;
  --accent-ink: #ffffff;
  --panel: #08090d;
  --panel-card-1: rgb(23, 26, 35);
  --panel-card-2: rgb(14, 16, 24);
  --panel-text: #f2f6ff;
  --panel-subtle: #b2bdd1;
  --nav-bg: linear-gradient(180deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.78));
  --nav-border: rgba(255, 255, 255, 0.1);
  --nav-link: #e9edf8;
}

* { box-sizing: border-box; }

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

body {
  font-family: Syne, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body.light-mode {
  --bg: #f3f4f7;
  --ink: #12151f;
  --muted: #4e5564;
  --panel: #eceef3;
  --panel-card-1: rgb(248, 248, 251);
  --panel-card-2: rgb(236, 238, 244);
  --panel-text: #131821;
  --panel-subtle: #424a58;
  --nav-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 251, 0.86));
  --nav-border: rgba(16, 20, 31, 0.14);
  --nav-link: #171c27;
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.hero-intro-image {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

.hero-intro-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
}

.nav {
  width: 100%;
  margin: 0;
  min-height: 72px;
  padding: 0.75rem 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--nav-border);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  width: min(1560px, calc(100% - 1.1rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.7rem 0 0.9rem;
  color: var(--ink);
  text-decoration: none;
  font-family: Syne, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu {
  display: none;
}

.mobile-menu.is-open {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--nav-link);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.nav-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 214, 255, 0.42);
  background: linear-gradient(120deg, rgba(124, 214, 255, 0.14), rgba(138, 107, 255, 0.1));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.nav-links .nav-cta {
  border-color: rgba(31, 111, 120, 0.65);
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
  box-shadow: 0 10px 24px rgba(31, 111, 120, 0.34);
}

.theme-toggle {
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--nav-link);
  font-family: Syne, sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 214, 255, 0.42);
  background: linear-gradient(120deg, rgba(124, 214, 255, 0.14), rgba(138, 107, 255, 0.1));
}

main {
  min-height: 100vh;
}

[id] {
  scroll-margin-top: 96px;
}

.hero {
  width: min(1560px, calc(100% - 1.1rem));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: clamp(122px, 16vh, 152px) 0 64px;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(620px, 1.25fr) clamp(3rem, 6vw, 7rem) minmax(520px, 0.85fr);
  align-items: center;
  gap: 0;
}

.hero-kicker {
  margin: 0 0 1rem;
  color: #eceff7;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-copy {
  grid-column: 1;
  transform: translateX(-8px);
  padding-right: clamp(4.5rem, 8vw, 8rem);
}

.hero-title {
  margin: 0;
  font-family: Syne, sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: .96;
  letter-spacing: -0.02em;
  max-width: 30ch;
}

.hero-stack {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: .98rem;
}

.hero-media {
  grid-column: 3;
  width: min(660px, 44vw);
  justify-self: end;
  margin-left: 0;
  border-radius: 0;
  overflow: visible;
  border: 0;
  box-shadow: none;
  transform: perspective(1200px) rotateY(-14deg) rotateX(2deg);
  transform-style: preserve-3d;
  will-change: auto;
  transition: none;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  will-change: auto;
}

.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.hero-scroll-indicator span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(45deg);
  animation: heroArrow 1.4s infinite;
}

.hero-scroll-indicator span:last-child {
  animation-delay: .24s;
  transform: translateY(-7px) rotate(45deg);
}

@keyframes heroArrow {
  0% { opacity: 0; transform: translateY(-8px) rotate(45deg); }
  45% { opacity: 1; }
  100% { opacity: 0; transform: translateY(7px) rotate(45deg); }
}

.services-stack {
  width: 100%;
  margin-top: 7rem;
  background:
    radial-gradient(circle at 82% 14%, rgba(124, 84, 255, 0.14), transparent 34%),
    radial-gradient(circle at 66% 74%, rgba(72, 207, 255, 0.12), transparent 30%),
    var(--panel);
  color: var(--panel-text);
  min-height: auto;
  padding-bottom: 4rem;
}

.services-inner {
  width: min(1560px, calc(100% - 1.1rem));
  margin: 0 auto;
  padding-top: 180px;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(520px, 1fr);
  gap: clamp(2.2rem, 5vw, 5rem);
  align-items: start;
}

.services-left {
  position: sticky;
  top: 200px;
  align-self: start;
  transform: none;
  padding: 0;
  min-height: calc(100vh - 178px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.services-left h2 {
  margin: 0;
  color: var(--panel-text);
  font-size: clamp(2rem, 4.2vw, 4.5rem);
  line-height: 0.96;
  max-width: 13ch;
}

.services-subline {
  margin: 1rem 0 0;
  max-width: 46ch;
  color: color-mix(in srgb, var(--panel-text) 78%, #8a90a0);
  font-size: clamp(0.98rem, 1.05vw, 1.12rem);
  line-height: 1.55;
}

.services-kicker {
  margin: 0 0 1rem;
  color: color-mix(in srgb, var(--panel-text) 55%, #8a90a0);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.services-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2rem;
  min-height: 46px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 111, 120, 0.72);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 24px rgba(31, 111, 120, 0.32);
  backdrop-filter: blur(8px);
}

.services-cta:hover {
  background: linear-gradient(120deg, #2a828c, #1a6670);
  border-color: rgba(31, 111, 120, 0.9);
}

.services-cta span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

body.light-mode .services-cta {
  border-color: rgba(31, 111, 120, 0.66);
  color: var(--accent-ink);
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  box-shadow: 0 8px 20px rgba(31, 111, 120, 0.28);
}

body.light-mode .services-cta:hover {
  background: linear-gradient(120deg, #2a828c, #1a6670);
  border-color: rgba(31, 111, 120, 0.92);
}

.services-right {
  padding: 0;
}

.services-cards {
  position: sticky;
  top: 200px;
  transform: none;
  height: calc(100vh - 255px);
  padding-top: 0;
  width: min(92%, 780px);
  margin: 0 auto;
}

.service-card {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, var(--panel-card-1), var(--panel-card-2));
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(110, 214, 255, 0.07) inset;
  padding: 2.3rem 2.15rem;
  color: var(--panel-text);
  will-change: transform;
}

.service-card h3 {
  margin: 1.5rem 0 0.9rem;
  font-size: clamp(1.65rem, 2.2vw, 2.7rem);
  line-height: 1.04;
}

.service-card p {
  margin: 0;
  color: var(--panel-subtle);
  font-size: clamp(1.02rem, 1.22vw, 1.18rem);
  line-height: 1.56;
  max-width: 60ch;
}

.service-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: 0 24px 0 24px;
  background: linear-gradient(120deg, #0c1018, #141b2c);
  color: #f4f7ff;
  font-size: 0.95rem;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.service-badge:hover {
  filter: brightness(1.16);
  transform: translateY(-1px);
}

.references {
  width: 100%;
  padding: 6.5rem 0 7rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(72, 207, 255, 0.08), transparent 35%),
    radial-gradient(circle at 85% 65%, rgba(124, 84, 255, 0.1), transparent 32%),
    var(--bg);
}

.references-inner {
  width: min(1560px, calc(100% - 1.1rem));
  margin: 0 auto;
}

.references-kicker {
  margin: 0 0 0.9rem;
  color: color-mix(in srgb, var(--ink) 52%, #8a90a0);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.references-title {
  margin: 0 0 2rem;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 0.98;
  max-width: 18ch;
}

.references-carousel {
  position: relative;
}

.references-viewport {
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.references-viewport::-webkit-scrollbar {
  display: none;
}

.references-track {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.reference-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 2rem) / 3);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  scroll-snap-align: start;
}

.reference-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.reference-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 1.2rem;
}

.reference-content h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.05;
}

.reference-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.reference-more {
  margin-top: auto;
  align-self: flex-start;
  min-height: 42px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 111, 120, 0.68);
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
  font-family: Syne, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.reference-more:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 111, 120, 0.92);
  background: linear-gradient(120deg, #2a828c, #1a6670);
}

.references-nav {
  position: absolute;
  top: -3.1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(31, 111, 120, 0.65);
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.references-nav.prev {
  right: 3rem;
}

.references-nav.next {
  right: 0;
}

.ref-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.ref-modal.is-open {
  display: block;
}

.ref-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.66);
  backdrop-filter: blur(4px);
}

.ref-modal-dialog {
  position: relative;
  width: min(760px, calc(100% - 1rem));
  max-height: min(84vh, 760px);
  margin: min(10vh, 90px) auto 0;
  padding: 1.25rem 1.25rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(165deg, #111621, #0d111a);
  color: #f2f6ff;
  overflow: auto;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.ref-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.8rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ref-modal-dialog h3 {
  margin: 0;
  padding-right: 2.3rem;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.04;
}

.ref-modal-dialog p {
  margin: 1rem 0 0;
  color: #c5cee0;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.6;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
}

.contact-modal.is-open {
  display: block;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 15, 0.7);
  backdrop-filter: blur(6px);
}

.contact-modal-dialog {
  position: relative;
  width: min(900px, calc(100% - 1rem));
  margin: min(8vh, 64px) auto 0;
  padding: 1rem 1rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(165deg, #0f1520, #0a1018);
  color: #eff4ff;
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.5);
}

.contact-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.contact-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.contact-progress-bar {
  width: 20%;
  height: 100%;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  transition: width 0.25s ease;
}

#contact-form {
  margin-top: 1rem;
}

.contact-step {
  display: none;
}

.contact-step.is-active {
  display: block;
}

.contact-step-label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aeb8cc;
}

.contact-step h3 {
  margin: 0.65rem 0 1rem;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.04;
}

.contact-step input,
.contact-step select,
.contact-step textarea {
  width: 100%;
  margin: 0 0 0.75rem;
  min-height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f7ff;
  font-family: Syne, sans-serif;
  font-size: 1.02rem;
  padding: 0.8rem 0.9rem;
}

.contact-step textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-step input::placeholder,
.contact-step textarea::placeholder {
  color: #9ea9bf;
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #c2cbdd;
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-consent input {
  width: 18px;
  min-height: 18px;
  margin: 0.15rem 0 0;
}

.contact-error {
  min-height: 1.2rem;
  margin: 0.25rem 0 0;
  color: #ff8e8e;
  font-size: 0.9rem;
}

.contact-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.45rem;
}

.contact-back,
.contact-next,
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 111, 120, 0.65);
  font-family: Syne, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.contact-back {
  background: rgba(255, 255, 255, 0.08);
  color: #d8e1f3;
}

.contact-next,
.contact-submit {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
}

.contact-submit {
  display: none;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
}

.success-modal.is-open {
  display: block;
}

.success-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 15, 0.55);
  backdrop-filter: blur(4px);
}

.success-modal-dialog {
  position: relative;
  width: min(520px, calc(100% - 1rem));
  margin: min(18vh, 120px) auto 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(165deg, #121a26, #0f1721);
  color: #eef4ff;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
  padding: 1.2rem 1rem 1rem;
  text-align: center;
}

.success-check {
  width: 78px;
  height: 78px;
  margin: 0 auto 0.65rem;
}

.success-check svg {
  width: 100%;
  height: 100%;
}

.success-check-circle {
  stroke: #2fbe72;
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: successCircle 0.55s ease forwards;
}

.success-check-mark {
  stroke: #2fbe72;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 38;
  stroke-dashoffset: 38;
  animation: successMark 0.42s ease 0.35s forwards;
}

.success-modal-dialog h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.success-modal-dialog p {
  margin: 0.6rem 0 0;
  color: #b7c3da;
}

.success-close-btn {
  margin-top: 1rem;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 111, 120, 0.7);
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-family: Syne, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

@keyframes successCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes successMark {
  to { stroke-dashoffset: 0; }
}

.cta-section {
  position: relative;
  width: 100%;
  min-height: 72vh;
  margin-top: 0;
  background: url("/assets/referenzen/eichtinger.png") center center / cover no-repeat;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 14, 0.72), rgba(7, 9, 14, 0.78)),
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.36));
}

.cta-inner {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 2rem));
  text-align: center;
  color: #ffffff;
}

.cta-kicker {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(2rem, 5.6vw, 4.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.cta-inner p {
  margin: 1.45rem auto 0;
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.55;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  min-height: 52px;
  padding: 0 1.8rem;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.site-footer {
  width: 100%;
  background: linear-gradient(180deg, #0b0e15, #080b10);
  color: #f2f5ff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
  width: min(1560px, calc(100% - 1.1rem));
  margin: 0 auto;
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand h3 {
  margin: 0;
  font-size: 1.35rem;
}

.footer-brand p {
  margin: 0.9rem 0 0;
  max-width: 42ch;
  color: #b9c2d5;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.footer-links h4,
.footer-contact h4 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d6deef;
}

.footer-links a,
.footer-contact a {
  color: #aeb8cc;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffffff;
}

.footer-contact p {
  margin: 0.3rem 0 0;
  color: #aeb8cc;
}

.footer-bottom {
  width: min(1560px, calc(100% - 1.1rem));
  margin: 0 auto;
  min-height: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  color: #95a0b8;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-legal a {
  color: #95a0b8;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: #ffffff;
}

body.light-mode .nav-links .nav-cta {
  border-color: rgba(31, 111, 120, 0.65);
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
}

body.light-mode .theme-toggle {
  border-color: rgba(16, 20, 31, 0.25);
  background: rgba(16, 20, 31, 0.06);
}

body.light-mode .hero-kicker {
  color: #384052;
}

body.light-mode .hero-media {
  border-color: transparent;
  box-shadow: none;
}

body.light-mode .service-card {
  border-color: rgba(16, 20, 31, 0.14);
  box-shadow: 0 16px 32px rgba(20, 22, 28, 0.14);
}

body.light-mode .service-badge {
  background: #0f131b;
  color: #f5f8ff;
}

body.light-mode .references {
  background:
    radial-gradient(circle at 20% 20%, rgba(20, 24, 34, 0.06), transparent 35%),
    radial-gradient(circle at 85% 65%, rgba(20, 24, 34, 0.08), transparent 32%),
    var(--bg);
}

body.light-mode .reference-card {
  border-color: rgba(16, 20, 31, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 252, 0.95));
  box-shadow: 0 14px 28px rgba(16, 20, 31, 0.12);
}

body.light-mode .reference-content p {
  color: #4a5262;
}

body.light-mode .reference-more {
  border-color: rgba(31, 111, 120, 0.66);
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
}

body.light-mode .reference-more:hover {
  border-color: rgba(31, 111, 120, 0.92);
  background: linear-gradient(120deg, #2a828c, #1a6670);
}

body.light-mode .references-nav {
  border-color: rgba(31, 111, 120, 0.66);
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
}

body.light-mode .ref-modal-backdrop {
  background: rgba(22, 28, 40, 0.3);
}

body.light-mode .ref-modal-dialog {
  border-color: rgba(16, 20, 31, 0.16);
  background: linear-gradient(165deg, #ffffff, #f2f5fa);
  color: #121722;
  box-shadow: 0 24px 52px rgba(16, 20, 31, 0.24);
}

body.light-mode .ref-modal-close {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
}

body.light-mode .ref-modal-dialog p {
  color: #444d60;
}

body.light-mode .contact-modal-backdrop {
  background: rgba(23, 29, 42, 0.35);
}

body.light-mode .contact-modal-dialog {
  border-color: rgba(16, 20, 31, 0.16);
  background: linear-gradient(165deg, #ffffff, #f2f5fa);
  color: #121722;
  box-shadow: 0 24px 54px rgba(16, 20, 31, 0.26);
}

body.light-mode .contact-step-label {
  color: #5a6376;
}

body.light-mode .contact-step input,
body.light-mode .contact-step select,
body.light-mode .contact-step textarea {
  border-color: rgba(16, 20, 31, 0.18);
  background: rgba(16, 20, 31, 0.04);
  color: #131821;
}

body.light-mode .contact-step input::placeholder,
body.light-mode .contact-step textarea::placeholder,
body.light-mode .contact-consent {
  color: #566077;
}

body.light-mode .contact-back {
  background: rgba(16, 20, 31, 0.08);
  color: #1b2538;
}

body.light-mode .contact-error {
  color: #b43d3d;
}

body.light-mode .success-modal-backdrop {
  background: rgba(22, 30, 43, 0.28);
}

body.light-mode .success-modal-dialog {
  border-color: rgba(16, 20, 31, 0.16);
  background: linear-gradient(165deg, #ffffff, #f2f5fa);
  color: #121722;
}

body.light-mode .success-modal-dialog p {
  color: #4d586f;
}

body.light-mode .cta-section {
  background:
    radial-gradient(circle at 22% 22%, rgba(16, 20, 31, 0.04), transparent 44%),
    radial-gradient(circle at 80% 68%, rgba(16, 20, 31, 0.05), transparent 42%),
    linear-gradient(180deg, rgba(247, 248, 251, 0.3), rgba(238, 241, 246, 0.34));
  border-top: 1px solid rgba(16, 20, 31, 0.1);
  border-bottom: 1px solid rgba(16, 20, 31, 0.1);
}

body.light-mode .cta-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1));
}

body.light-mode .cta-inner {
  color: #121722;
}

body.light-mode .cta-kicker {
  color: #4a5262;
}

body.light-mode .cta-inner p {
  color: #333c4f;
}

body.light-mode .cta-button {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink);
  border-color: rgba(31, 111, 120, 0.66);
}

body.light-mode .cta-button:hover {
  filter: brightness(1.05);
}

body.light-mode .site-footer {
  background: linear-gradient(180deg, #f2f4f8, #e9edf4);
  color: #10151f;
  border-top: 1px solid rgba(16, 20, 31, 0.12);
}

body.light-mode .footer-brand p,
body.light-mode .footer-links a,
body.light-mode .footer-contact a,
body.light-mode .footer-contact p,
body.light-mode .footer-bottom p,
body.light-mode .footer-legal a {
  color: #4a5262;
}

body.light-mode .footer-links h4,
body.light-mode .footer-contact h4 {
  color: #1a2130;
}

body.light-mode .footer-bottom {
  border-top: 1px solid rgba(16, 20, 31, 0.1);
}

body.light-mode .footer-links a:hover,
body.light-mode .footer-contact a:hover,
body.light-mode .footer-legal a:hover {
  color: #10151f;
}

@media (max-width: 1800px) {
  .nav-inner {
    width: min(1560px, calc(100% - 4.2rem));
  }

  .hero {
    width: min(1560px, calc(100% - 4.2rem));
  }

  .services-inner,
  .references-inner,
  .footer-inner,
  .footer-bottom {
    width: min(1560px, calc(100% - 4.2rem));
  }

  .hero-grid {
    grid-template-columns: minmax(460px, 1.08fr) clamp(2rem, 3.4vw, 3.6rem) minmax(420px, 0.92fr);
  }

  .hero-title {
    font-size: clamp(1.9rem, 4.8vw, 4rem);
    max-width: 15ch;
  }

  .hero-media {
    width: min(560px, 39vw);
    transform: perspective(1200px) rotateY(-10deg) rotateX(1.4deg);
  }
}

@media (min-width: 901px) {
  .services-left h2 {
    max-width: 12ch;
  }

  .services-cards {
    max-height: none;
  }
}

@media (min-width: 901px) and (max-height: 860px) {
  .services-left {
    top: 166px;
    min-height: calc(100vh - 220px);
  }

  .services-cards {
    top: 166px;
    height: calc(100vh - 220px);
  }
}

@media (max-width: 1400px) {
  .nav-inner {
    width: min(1400px, calc(100% - 2.8rem));
  }

  .hero {
    width: min(1400px, calc(100% - 2.8rem));
    padding-top: clamp(112px, 13vh, 132px);
  }

  .services-inner,
  .references-inner,
  .footer-inner,
  .footer-bottom {
    width: min(1400px, calc(100% - 2.8rem));
  }

  .nav-links {
    gap: 0.4rem;
  }

  .nav-links a,
  .theme-toggle {
    min-height: 36px;
    padding-inline: 0.8rem;
    font-size: 0.76rem;
  }

  .hero-grid {
    grid-template-columns: minmax(430px, 1.1fr) clamp(1.6rem, 2.8vw, 3rem) minmax(420px, 0.9fr);
  }

  .hero-copy {
    transform: none;
    padding-right: clamp(1.2rem, 2.4vw, 2.6rem);
  }

  .hero-title {
    font-size: clamp(1.9rem, 5vw, 4rem);
    max-width: 16ch;
  }

  .hero-media {
    width: min(560px, 40vw);
    transform: perspective(1200px) rotateY(-11deg) rotateX(1.6deg);
  }

}

@media (max-width: 1250px) {
  .services-inner {
    padding-top: 80px;
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .services-left {
    position: static;
    top: auto;
    transform: none;
    min-height: auto;
    display: block;
  }

  .services-left h2 {
    max-width: 14ch;
  }

  .services-right {
    padding: 0.2rem 0 0;
    min-height: auto;
  }

  .services-cards {
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    max-height: none;
  }

  .service-card {
    position: relative;
    inset: auto;
    min-height: 320px;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 1200px) {
  .nav-inner {
    width: calc(100% - 3.4rem);
  }

  .hero {
    width: calc(100% - 3.4rem);
  }

  .services-inner,
  .references-inner,
  .footer-inner,
  .footer-bottom {
    width: calc(100% - 3.4rem);
  }

  .hero-title {
    font-size: clamp(1.7rem, 4.2vw, 3.3rem);
    max-width: 14ch;
  }

  .hero-media {
    width: min(500px, 38vw);
    transform: perspective(1200px) rotateY(-9deg) rotateX(1.2deg);
  }

  .reference-card {
    flex-basis: calc((100% - 1rem) / 2);
  }

  .cta-section {
    min-height: 64vh;
  }

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

@media (max-width: 900px) {
  .hero-intro-image {
    display: none;
  }

  .nav {
    width: 100%;
    min-height: 58px;
    padding: 0.4rem 0;
    backdrop-filter: blur(12px);
  }

  .nav-links {
    display: none;
  }

  .nav-inner {
    width: calc(100% - 1rem);
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 50px;
  }

  .nav-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
  }

  .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);
  }

  .mobile-menu {
    width: min(1360px, calc(100% - 1rem));
    margin: 0 auto;
    padding: 0 0 0.65rem;
  }

  .mobile-menu.is-open {
    display: grid;
    gap: 0.4rem;
  }

  .mobile-menu a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.8rem;
    color: #e9edf8;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
  }

  .theme-toggle.mobile {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .hero {
    width: calc(100% - 1rem);
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 64px;
    align-items: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
  }

  .hero-copy {
    grid-column: auto;
    transform: none;
    padding-right: 0;
    max-width: 100%;
    text-align: center;
    justify-self: center;
  }

  .hero-kicker {
    margin: 0 0 0.7rem;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
  }

  .hero-title {
    font-size: clamp(2rem, 9.2vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    max-width: 16ch;
    margin-inline: auto;
  }

  .hero-media {
    grid-column: auto;
    width: min(92vw, 620px);
    justify-self: center;
    margin-left: 0;
    border-radius: 0;
    margin-top: 1.2rem;
    transform: perspective(1200px) rotateY(-12deg) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  }

  .hero-scroll-indicator {
    bottom: -16px;
  }

  .services-stack {
    min-height: auto;
    margin-top: 2.4rem;
    padding: 2.8rem 0;
  }

  .services-inner {
    width: calc(100% - 1rem);
    padding-top: 0;
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .services-left {
    position: static;
    transform: none;
    padding: 0;
  }

  .services-left h2 {
    font-size: clamp(1.9rem, 8.5vw, 3rem);
    max-width: 16ch;
  }

  .services-subline {
    font-size: 0.98rem;
    max-width: 100%;
  }

  .services-left .services-kicker {
    display: none;
  }

  .services-right {
    padding: 0.4rem 0 0;
    min-height: 180vh;
  }

  .services-cards {
    position: sticky;
    top: 76px;
    transform: none;
    height: calc(100vh - 110px);
    max-height: 500px;
    padding-top: 0;
  }

  .service-card {
    position: absolute;
    inset: 0;
    min-height: auto;
    border-radius: 16px;
    padding: 1rem;
  }

  .service-badge {
    border-radius: 0 16px 0 16px;
    min-height: 40px;
    font-size: 0.82rem;
  }

  .references {
    padding: 3rem 0 1.2rem;
  }

  .references-inner {
    width: calc(100% - 1rem);
  }

  .references-viewport {
    padding: 0 0.6rem;
  }

  .references-track {
    gap: 0.75rem;
  }

  .reference-card {
    flex-basis: calc(100% - 3.2rem);
    scroll-snap-align: center;
  }

  .reference-card img {
    aspect-ratio: 16 / 9;
  }

  .references-nav {
    display: none;
  }

  .contact-modal-dialog {
    width: calc(100% - 0.75rem);
    margin-top: 56px;
    padding: 0.85rem 0.75rem 1rem;
  }

  .contact-step h3 {
    font-size: clamp(1.25rem, 7vw, 1.9rem);
  }

  .contact-step input,
  .contact-step select,
  .contact-step textarea {
    min-height: 50px;
    font-size: 0.96rem;
  }

  .contact-actions {
    flex-wrap: wrap;
  }

  .contact-back,
  .contact-next,
  .contact-submit {
    flex: 1;
  }

  .cta-section {
    min-height: 58vh;
    margin-top: 0;
  }

  .cta-inner {
    width: calc(100% - 1rem);
  }

  .cta-inner h2 {
    font-size: clamp(1.6rem, 9vw, 2.5rem);
  }

  .footer-inner {
    width: calc(100% - 1rem);
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 2rem 0 1.3rem;
  }

  .footer-bottom {
    width: calc(100% - 1rem);
    min-height: auto;
    padding: 0.85rem 0 1.2rem;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    width: calc(100% - 0.75rem);
  }

  .hero {
    width: calc(100% - 0.75rem);
    padding-top: 104px;
    padding-bottom: 58px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 10vw, 2.45rem);
    max-width: 15ch;
  }

  .hero-media {
    margin-top: 1.35rem;
  }

  .hero-scroll-indicator {
    bottom: -20px;
  }

  .services-inner {
    width: calc(100% - 0.75rem);
    padding-top: 0;
  }

  .references-inner {
    width: calc(100% - 0.75rem);
  }

  .cta-inner {
    width: calc(100% - 0.75rem);
  }

  .footer-inner,
  .footer-bottom {
    width: calc(100% - 0.75rem);
  }

}
