:root {
  --blue: #0b4bb7;
  --green: #8be67d;
  --white: #ffffff;
  --gray: #3a3a3a;
  --dark: #191919;
  --dark-2: #101010;
  --black: #050505;

  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --green-line: rgba(139, 230, 125, 0.42);

  --max: 1180px;
  --cut: polygon(
    18px 0,
    100% 0,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    0 100%,
    0 18px
  );

  --transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  min-height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(
      circle at 15% 20%,
      rgba(139, 230, 125, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 70%,
      rgba(11, 75, 183, 0.24),
      transparent 36%
    ),
    var(--dark);
  background-size:
    44px 44px,
    44px 44px,
    auto,
    auto,
    auto;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* BACKGROUND EFFECTS */

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 7px
  );
  opacity: 0.6;
}

.site-scan {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(139, 230, 125, 0.09) 48%,
    transparent 70%
  );
  transform: translateX(-130%);
  animation: siteScan 7s linear infinite;
}

.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139, 230, 125, 0.15),
    transparent 68%
  );
  pointer-events: none;
  z-index: -2;
  transform: translate(-50%, -50%);
  opacity: 0.8;
}

/* SCROLL PROGRESS */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 2000;
}

.scroll-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--green);
  box-shadow: 0 0 22px rgba(139, 230, 125, 0.75);
}

/* HEADER */

.header {
  position: fixed;
  top: 20px;
  left: 50%;
  width: min(calc(100% - 34px), var(--max));
  height: 72px;
  transform: translateX(-50%);
  z-index: 1500;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;

  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(18px);
  clip-path: var(--cut);
  transition: var(--transition);
}

.header.scrolled {
  top: 10px;
  background: rgba(10, 10, 10, 0.86);
  border-color: rgba(139, 230, 125, 0.34);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.logo span span {
  color: var(--green);
}

.logo-icon {
  width: clamp(40px, 10vw, 150px);
  height: auto;
}

.logo-icon img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.nav a {
  position: relative;
  transition: var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 15px rgba(139, 230, 125, 0.7);
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--white);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  color: #071007;
  background: var(--green);
  font-weight: 950;
  clip-path: var(--cut);
  transition: var(--transition);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(139, 230, 125, 0.35);
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  clip-path: var(--cut);
  cursor: pointer;
}

/* SLIDE DOTS */

.slide-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1400;
  display: grid;
  gap: 12px;
}

.dot {
  width: 46px;
  height: 32px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  font-weight: 950;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  clip-path: var(--cut);
  transition: var(--transition);
}

.dot.active,
.dot:hover {
  color: #071007;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 26px rgba(139, 230, 125, 0.4);
}

/* PRESENTATION */

.presentation {
  width: 100%;
}

.slide {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.045);
  clip-path: var(--cut);
  pointer-events: none;
}

.slide-inner {
  position: relative;
  width: min(calc(100% - 42px), var(--max));
  margin-inline: auto;
  z-index: 2;
}

.slide-head {
  max-width: 900px;
  margin-bottom: 48px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 22px;
  padding: 10px 16px;
  color: var(--green);
  background: rgba(139, 230, 125, 0.075);
  border: 1px solid rgba(139, 230, 125, 0.34);
  clip-path: var(--cut);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  animation: floatSoft 4s ease-in-out infinite;
}

h1,
h2 {
  font-weight: 950;
  letter-spacing: -0.08em;
}

h1 {
  max-width: 800px;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.9;
}

h1 span,
h2 span {
  color: var(--green);
}

h1 span {
  display: block;
  text-shadow: 0 0 34px rgba(139, 230, 125, 0.5);
  animation: textFlicker 4s linear infinite;
}

h2 {
  max-width: 850px;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 0.95;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.slide-head p {
  max-width: 760px;
  margin-top: 22px;
  font-size: 1.08rem;
}

/* HERO */

.hero-slide {
  isolation: isolate;
}

.video-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  filter: saturate(1.15) contrast(1.12);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(10, 10, 10, 0.96),
      rgba(10, 10, 10, 0.64),
      rgba(10, 10, 10, 0.9)
    ),
    linear-gradient(180deg, rgba(25, 25, 25, 0.2), var(--dark));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-content p {
  max-width: 660px;
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* BUTTONS */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-weight: 950;
  cursor: pointer;
  clip-path: var(--cut);
  overflow: hidden;
  transition: var(--transition);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: translateX(-120%);
  transition: 0.7s ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #071007;
  background: var(--green);
  box-shadow: 0 18px 50px rgba(139, 230, 125, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 22px 65px rgba(139, 230, 125, 0.42);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.075);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: rgba(139, 230, 125, 0.55);
  background: rgba(139, 230, 125, 0.08);
}

/* MINI STATS */

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 680px;
  margin-top: 38px;
}

.mini-stats div {
  position: relative;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  clip-path: var(--cut);
  overflow: hidden;
  transition: var(--transition);
}

.mini-stats div::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 3px solid var(--green);
  transform: scaleY(0.35);
  transform-origin: bottom;
  transition: var(--transition);
}

.mini-stats div:hover {
  transform: translateY(-6px) skewX(-1deg);
  border-color: rgba(139, 230, 125, 0.45);
}

.mini-stats div:hover::before {
  transform: scaleY(1);
}

.mini-stats strong {
  display: block;
  color: var(--green);
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* HERO VISUAL */

.hero-visual {
  position: relative;
  min-height: 570px;
  border: 1px solid rgba(139, 230, 125, 0.26);
  background: rgba(255, 255, 255, 0.06);
  clip-path: var(--cut);
  overflow: hidden;
  box-shadow:
    var(--shadow),
    0 0 70px rgba(139, 230, 125, 0.08);
  animation: floatCard 6s ease-in-out infinite;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(139, 230, 125, 0.22);
  clip-path: var(--cut);
  z-index: 2;
  pointer-events: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 230, 125, 0.16),
    transparent
  );
  animation: cardScan 4.8s linear infinite;
  z-index: 3;
  pointer-events: none;
}

.hero-visual img,
.hero-visual video {
  width: 100%;
  height: 100%;
  min-height: 570px;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.04);
}

.visual-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  padding: 20px;
  background: rgba(10, 10, 10, 0.78);
  border: 1px solid rgba(139, 230, 125, 0.42);
  backdrop-filter: blur(18px);
  clip-path: var(--cut);
}

.visual-card strong {
  display: block;
  color: var(--green);
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.visual-card span {
  color: var(--muted);
}

/* SERVICES */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  min-height: 320px;
  padding: 30px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.085),
      rgba(255, 255, 255, 0.025)
    ),
    rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  clip-path: var(--cut);
  overflow: hidden;
  transition: var(--transition);
}

.service-card::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(139, 230, 125, 0.13);
  filter: blur(22px);
  transition: var(--transition);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transition: 0.65s ease;
}

.service-card:hover {
  transform: translateY(-10px) skewX(-1deg);
  border-color: rgba(139, 230, 125, 0.45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.service-card:hover::before {
  transform: scale(1.35);
}

.service-card:hover::after {
  left: 100%;
}

.card-number {
  position: absolute;
  right: 26px;
  top: 24px;
  color: rgba(255, 255, 255, 0.12);
  font-size: 3.4rem;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--green);
  background: rgba(139, 230, 125, 0.1);
  border: 1px solid rgba(139, 230, 125, 0.34);
  clip-path: var(--cut);
  font-size: 1.45rem;
  animation: iconPulse 3.2s ease-in-out infinite;
}

.service-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.service-card p {
  position: relative;
  z-index: 2;
}

/* SPLIT */

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.media-frame {
  position: relative;
  min-height: 560px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 230, 125, 0.24);
  clip-path: var(--cut);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(139, 230, 125, 0.12),
    transparent
  );
  transform: translateY(-100%);
  animation: verticalScan 5.5s linear infinite;
  pointer-events: none;
}

.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  opacity: 0.82;
}

.media-label {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: rgba(10, 10, 10, 0.78);
  border: 1px solid rgba(139, 230, 125, 0.36);
  backdrop-filter: blur(18px);
  clip-path: var(--cut);
  color: var(--muted);
  font-weight: 850;
}

.media-label i {
  color: var(--green);
}

.process-content h2 {
  margin-bottom: 32px;
}

.process-list {
  display: grid;
  gap: 16px;
}

.process-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  clip-path: var(--cut);
  transition: var(--transition);
}

.process-item:hover {
  transform: translateX(10px);
  border-color: rgba(139, 230, 125, 0.45);
  background: rgba(139, 230, 125, 0.065);
}

.process-item strong {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #071007;
  background: var(--green);
  clip-path: var(--cut);
  box-shadow: 0 0 28px rgba(139, 230, 125, 0.3);
}

.process-item h3 {
  margin-bottom: 7px;
  font-size: 1.15rem;
}

/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  gap: 20px;
}

.gallery-card {
  position: relative;
  min-height: 340px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  clip-path: var(--cut);
  overflow: hidden;
  transition: var(--transition);
}

.gallery-large {
  min-height: 520px;
  grid-row: span 2;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: var(--transition);
  pointer-events: none;
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 230, 125, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.gallery-card:hover::after {
  inset: 14px;
  border-color: rgba(139, 230, 125, 0.28);
  clip-path: var(--cut);
}

.gallery-card img,
.gallery-card video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.78;
  transition: 0.8s ease;
}

.gallery-card:hover img,
.gallery-card:hover video {
  transform: scale(1.07);
  opacity: 0.96;
}

.gallery-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 16px;
  background: rgba(10, 10, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  clip-path: var(--cut);
}

.gallery-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--white);
}

.gallery-card span {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 850;
}

/* CONTACT */

.contact-slide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: center;
}

.contact-text p {
  max-width: 620px;
  margin-top: 24px;
  font-size: 1.08rem;
}

.contact-points {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.contact-points div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  clip-path: var(--cut);
  transition: var(--transition);
}

.contact-points div:hover {
  color: var(--white);
  transform: translateX(8px);
  border-color: rgba(139, 230, 125, 0.4);
}

.contact-points i {
  color: var(--green);
}

.footer-row {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  color: #5f5f5f;
  font-size: 0.95rem;
}

.footer-row > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  white-space: nowrap;
}

.footer-row a {
  color: rgba(101, 101, 101, 0.78);
  transition: color var(--transition);
}

.footer-row a:hover {
  color: var(--green);
}

.developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 680px) {
  .footer-row {
    justify-content: center;
    text-align: center;
  }

  .footer-row > span {
    width: 100%;
    justify-content: center;
  }
}

.contact-form {
  position: relative;
  padding: 30px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(139, 230, 125, 0.22);
  clip-path: var(--cut);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(139, 230, 125, 0.12);
  filter: blur(24px);
}

.form-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;
  min-height: 52px;
  padding: 15px 16px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  outline: none;
  clip-path: var(--cut);
  transition: var(--transition);
}

textarea {
  min-height: 155px;
  resize: vertical;
}

select option {
  color: #111;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(139, 230, 125, 0.7);
  box-shadow: 0 0 0 4px rgba(139, 230, 125, 0.12);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.captcha-box {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  margin-bottom: 16px;
  color: var(--muted);
  background: rgba(139, 230, 125, 0.065);
  border: 1px solid rgba(139, 230, 125, 0.22);
  clip-path: var(--cut);
  font-size: 0.92rem;
  line-height: 1.55;
}

.captcha-box i {
  color: var(--green);
  margin-top: 3px;
}

.form-btn {
  width: 100%;
  position: relative;
  z-index: 2;
}

.form-message {
  position: relative;
  z-index: 2;
  display: none;
  margin-top: 16px;
  padding: 15px;
  font-weight: 850;
  clip-path: var(--cut);
}

.form-message.success {
  display: block;
  color: #071007;
  background: var(--green);
}

.form-message.error {
  display: block;
  color: #fff;
  background: rgba(255, 79, 79, 0.22);
  border: 1px solid rgba(255, 79, 79, 0.38);
}

/* REVEAL ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.85s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* KEYFRAMES */

@keyframes siteScan {
  0% {
    transform: translateX(-130%);
  }

  55%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes neonPulse {
  0%,
  100% {
    box-shadow: 0 0 22px rgba(139, 230, 125, 0.18);
  }

  50% {
    box-shadow: 0 0 44px rgba(139, 230, 125, 0.48);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(-0.35deg);
  }
}

@keyframes cardScan {
  0% {
    left: -70%;
  }

  55%,
  100% {
    left: 120%;
  }
}

@keyframes verticalScan {
  0% {
    transform: translateY(-100%);
  }

  60%,
  100% {
    transform: translateY(100%);
  }
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(139, 230, 125, 0.12);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 0 34px rgba(139, 230, 125, 0.3);
  }
}

@keyframes textFlicker {
  0%,
  100% {
    opacity: 1;
  }

  45% {
    opacity: 1;
  }

  46% {
    opacity: 0.78;
  }

  47% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  71% {
    opacity: 0.86;
  }

  72% {
    opacity: 1;
  }
}

/* RESPONSIVE */

@media (max-width: 1050px) {
  html {
    scroll-snap-type: none;
  }

  .header {
    top: 12px;
  }

  .nav {
    position: fixed;
    top: 92px;
    left: 17px;
    right: 17px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: rgba(10, 10, 10, 0.94);
    border: 1px solid rgba(139, 230, 125, 0.25);
    backdrop-filter: blur(18px);
    clip-path: var(--cut);
  }

  .nav a {
    padding: 15px;
  }

  .nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .menu-btn {
    display: none;
  }

  .slide-dots {
    display: none;
  }

  .hero-grid,
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-visual img,
  .media-frame,
  .media-frame video,
  .media-frame img {
    min-height: 430px;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-large {
    grid-row: auto;
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .header {
    height: 66px;
  }

  .logo {
    font-size: 1.08rem;
  }

  .logo-icon {
    width: 140px;
    height: auto;
  }

  .slide {
    min-height: auto;
    padding: 110px 0 70px;
  }

  .slide-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2.4rem, 12vw, 3.7rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .mini-stats,
  .service-grid,
  .gallery-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-visual img,
  .media-frame,
  .media-frame video,
  .media-frame img {
    min-height: 340px;
  }

  .contact-form {
    padding: 22px;
  }

  .process-item {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   INDEX.PHP / FORMULAR / RESPONSIVE KORREKTUREN
   ========================================================= */

.container {
  width: min(calc(100% - 42px), var(--max));
  margin-inline: auto;
}

.gallery-heading {
  font-size: clamp(2.5rem, 5.4vw, 5rem);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(139, 230, 125, 0.9);
  outline-offset: 4px;
}

.menu-btn {
  align-items: center;
  justify-content: center;
}

.contact-slide {
  padding-bottom: 34px;
}

.contact-form {
  isolation: isolate;
}

.contact-form > * {
  position: relative;
  z-index: 2;
}

.field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

input.invalid,
textarea.invalid,
select.invalid {
  border-color: rgba(255, 79, 79, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 79, 79, 0.12);
}

.privacy-check {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  margin: 2px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;
  cursor: pointer;
}

.privacy-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #071007;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  clip-path: polygon(
    5px 0,
    100% 0,
    100% calc(100% - 5px),
    calc(100% - 5px) 100%,
    0 100%,
    0 5px
  );
  transition: var(--transition);
}

.checkmark i {
  opacity: 0;
  transform: scale(0.55);
  transition: var(--transition);
}

.privacy-check input:checked + .checkmark {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 22px rgba(139, 230, 125, 0.28);
}

.privacy-check input:checked + .checkmark i {
  opacity: 1;
  transform: scale(1);
}

.privacy-check input:focus-visible + .checkmark {
  outline: 3px solid rgba(139, 230, 125, 0.75);
  outline-offset: 3px;
}

.privacy-check a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-message:empty {
  display: none;
}

.form-message.success,
.form-message.error {
  display: block;
  margin: 0 0 16px;
}

.form-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.form-btn.is-loading i {
  animation: loadingArrow 0.9s ease-in-out infinite alternate;
}

@keyframes loadingArrow {
  from {
    transform: translateX(-3px);
    opacity: 0.45;
  }
  to {
    transform: translateX(4px);
    opacity: 1;
  }
}

.footer-row {
  width: min(calc(100% - 42px), var(--max));
  margin: 52px auto 0;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-row a {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1050px) {
  .menu-btn {
    display: grid;
    flex: 0 0 46px;
  }

  .nav {
    top: 88px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity var(--transition),
      transform var(--transition),
      visibility var(--transition);
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a:hover,
  .nav a.active {
    color: #071007;
    background: var(--green);
  }

  .hero-visual,
  .hero-visual img,
  .hero-visual video {
    min-height: 430px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-snap-type: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  .header {
    width: calc(100% - 24px);
    padding-inline: 14px;
  }

  .nav {
    left: 12px;
    right: 12px;
    top: 84px;
  }

  .slide {
    overflow: visible;
  }

  .slide::before,
  .site-scan,
  .cursor-glow {
    display: none;
  }

  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .kicker,
  .hero-visual,
  .icon,
  .media-frame::after,
  .hero-visual::after,
  h1 span {
    animation: none;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-content p,
  .slide-head p,
  .contact-text p {
    font-size: 1rem;
  }

  .gallery-heading {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .contact-layout {
    gap: 28px;
  }

  .contact-form {
    padding: 20px;
  }

  .field-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  .privacy-check {
    font-size: 0.84rem;
  }

  .footer-row {
    width: calc(100% - 28px);
    margin-top: 38px;
  }
}

@media (hover: none) {
  .service-card:hover,
  .gallery-card:hover,
  .mini-stats div:hover,
  .process-item:hover,
  .contact-points div:hover,
  .btn:hover,
  .header-cta:hover {
    transform: none;
  }
}

/* =========================================================
   FOOTER – RECHTLICHE BUTTONS
========================================================= */

.footer-legal-link {
  padding: 0;
  color: rgba(101, 101, 101, 0.78);
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  transition: color var(--transition);
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
  color: var(--green);
  outline: none;
}

.footer-legal-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.legal-source-content[hidden] {
  display: none !important;
}

/* =========================================================
   IMPRESSUM UND DATENSCHUTZ – MODAL
========================================================= */

body.legal-modal-open {
  overflow: hidden;
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;

  display: grid;
  place-items: center;

  padding: 24px;

  background: rgba(0, 0, 0, 0.86);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  animation: legalBackdropIn 0.25s ease forwards;
}

.legal-modal__dialog {
  position: relative;

  width: min(100%, 1000px);
  max-height: 88vh;

  display: flex;
  flex-direction: column;

  color: var(--white);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.02)
    ),
    #111111;

  border: 1px solid rgba(139, 230, 125, 0.38);

  clip-path: var(--cut);

  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.78),
    0 0 55px rgba(139, 230, 125, 0.1);

  overflow: hidden;

  animation: legalDialogIn 0.3s ease forwards;
}

.legal-modal__dialog:focus {
  outline: none;
}

.legal-modal__header {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 22px 24px;

  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-modal__header::after {
  content: "";

  position: absolute;
  right: 24px;
  bottom: -1px;
  left: 24px;

  height: 1px;

  background: linear-gradient(90deg, var(--green), transparent);
}

.legal-modal__header h2 {
  max-width: none;
  margin: 0;

  color: var(--white);

  font-size: clamp(1.65rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.legal-modal__close {
  flex: 0 0 auto;

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  color: var(--white);
  background: rgba(255, 255, 255, 0.07);

  border: 1px solid rgba(255, 255, 255, 0.15);

  clip-path: var(--cut);

  font-size: 1.25rem;
  cursor: pointer;

  transition: var(--transition);
}

.legal-modal__close:hover,
.legal-modal__close:focus-visible {
  color: #071007;
  background: var(--green);
  border-color: var(--green);

  transform: rotate(90deg);

  box-shadow: 0 0 30px rgba(139, 230, 125, 0.38);

  outline: none;
}

.legal-modal__content {
  padding: 28px;

  overflow-y: auto;
  overscroll-behavior: contain;

  scrollbar-width: thin;
  scrollbar-color: var(--green) rgba(255, 255, 255, 0.08);
}

.legal-modal__content::-webkit-scrollbar {
  width: 9px;
}

.legal-modal__content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.legal-modal__content::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 20px;
}

.legal-document {
  max-width: 850px;
  margin: 0 auto;
}

.legal-document > h2 {
  display: none;
}

.legal-document section {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-document section:first-of-type {
  padding-top: 0;
}

.legal-document section:last-child {
  border-bottom: 0;
}

.legal-document h3 {
  margin: 0 0 13px;

  color: var(--white);

  font-size: clamp(1.15rem, 3vw, 1.45rem);
  line-height: 1.3;
}

.legal-document p,
.legal-document li {
  color: rgba(255, 255, 255, 0.73);
  line-height: 1.75;
}

.legal-document p {
  margin-bottom: 13px;
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.legal-document ul,
.legal-document ol {
  margin: 14px 0 14px 24px;
}

.legal-document li {
  margin-bottom: 7px;
}

.legal-document strong {
  color: var(--white);
}

.legal-document a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-document a:hover {
  color: var(--white);
}

@keyframes legalBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes legalDialogIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {
  .legal-modal {
    align-items: end;
    padding: 0;
  }

  .legal-modal__dialog {
    width: 100%;
    max-height: 93vh;

    border-right: 0;
    border-bottom: 0;
    border-left: 0;

    border-radius: 22px 22px 0 0;
    clip-path: none;

    animation: legalDialogMobileIn 0.3s ease forwards;
  }

  .legal-modal__header {
    padding: 18px;
  }

  .legal-modal__header::after {
    right: 18px;
    left: 18px;
  }

  .legal-modal__header h2 {
    font-size: 1.55rem;
  }

  .legal-modal__close {
    width: 44px;
    height: 44px;
  }

  .legal-modal__content {
    padding: 20px 18px 30px;
  }

  .legal-document section {
    padding: 19px 0;
  }

  @keyframes legalDialogMobileIn {
    from {
      opacity: 0;
      transform: translateY(100%);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
