:root {
  --bg: #edf5ff;
  --bg-2: #e5eefc;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: rgba(255, 255, 255, 0.76);
  --ink: #132135;
  --ink-2: #4b5d75;
  --accent: #3d79d3;
  --accent-strong: #1f5dbb;
  --pastel-mint: #d6edf5;
  --pastel-blue: #dce8ff;
  --pastel-rose: #e9f2ff;
  --pastel-sand: #e6efff;
  --line: rgba(19, 33, 53, 0.1);
  --shadow-lg: 0 28px 72px rgba(31, 93, 187, 0.16);
  --shadow-md: 0 18px 44px rgba(19, 33, 53, 0.14);
  --shadow-sm: 0 10px 24px rgba(19, 33, 53, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

body.theme-crystal-showcase {
  --line: rgba(19, 33, 53, 0.13);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(223, 240, 255, 0.5), transparent 54%),
    radial-gradient(circle at 88% 0%, rgba(214, 232, 255, 0.44), transparent 52%),
    radial-gradient(circle at 42% 88%, rgba(238, 246, 255, 0.4), transparent 50%),
    linear-gradient(158deg, #fafcff 0%, #f2f7ff 46%, #edf4ff 100%);
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -2;
  border-radius: 999px;
  filter: blur(36px);
}

body::before {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -110px;
  background: radial-gradient(circle, rgba(157, 208, 255, 0.22), transparent 70%);
  animation: auroraDrift 28s ease-in-out infinite alternate;
}

body::after {
  width: 360px;
  height: 360px;
  right: -100px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(137, 192, 255, 0.18), transparent 72%);
  animation: auroraDrift 32s ease-in-out infinite alternate-reverse;
}

body.theme-crystal-showcase::before {
  background: radial-gradient(circle, rgba(157, 208, 255, 0.44), transparent 68%);
  animation: auroraDrift 20s ease-in-out infinite alternate;
}

body.theme-crystal-showcase::after {
  background: radial-gradient(circle, rgba(137, 192, 255, 0.36), transparent 70%);
  animation: auroraDrift 24s ease-in-out infinite alternate-reverse;
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
  image-rendering: auto;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 251, 255, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo img {
  height: 38px;
  width: auto;
  border-radius: 0;
  display: block;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.mobile-nav {
  display: none;
}

.nav-links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  width: auto;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(19, 33, 53, 0.08);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(251, 252, 250, 0.92);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-toggle-icon {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  display: inline-block;
  transition: background 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

body.nav-open .nav-toggle-icon {
  background: transparent;
}

body.nav-open .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.lang {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-2);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

main {
  overflow: hidden;
}

section {
  padding: 118px 0;
  position: relative;
}

section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, 92vw);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(19, 33, 53, 0.14) 22%, rgba(19, 33, 53, 0.18) 50%, rgba(19, 33, 53, 0.14) 78%, transparent 100%);
  overflow: hidden;
}

section + section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, 92vw);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(157, 208, 255, 0.9) 50%, transparent 100%);
  opacity: 0.24;
  animation: lineFlow 12s linear infinite;
}

body.theme-crystal-showcase section + section::after {
  opacity: 0.4;
  animation: lineFlow 8s linear infinite;
}

.section-soft {
  background: linear-gradient(130deg, rgba(244, 249, 255, 0.46) 0%, rgba(236, 244, 255, 0.34) 52%, rgba(246, 251, 255, 0.44) 100%);
  background-size: 200% 200%;
  border-top: 0;
  border-bottom: 0;
  animation: gradientShift 18s ease infinite;
  overflow: hidden;
}

.section-soft::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.14) 46%, transparent 64%);
  transform: translateX(-120%);
  animation: shimmerSweep 20s ease-in-out infinite;
}

body.theme-crystal-showcase .section-soft::after {
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.26) 46%, transparent 64%);
  animation: shimmerSweep 14s ease-in-out infinite;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--ink-2);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(61, 121, 211, 0.12);
  box-shadow: 0 10px 24px rgba(19, 33, 53, 0.05);
}

.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.section-eyebrow::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 121, 211, 1) 0%, rgba(61, 121, 211, 0.25) 70%, transparent 100%);
  box-shadow: 0 0 12px rgba(61, 121, 211, 0.45);
  animation: glowPulse 3.2s ease-in-out infinite;
}

.section-title {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 600;
  line-height: 1.14;
  max-width: 20ch;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.section-subtitle {
  margin-top: 14px;
  color: var(--ink-2);
  max-width: 720px;
  font-size: 1.04rem;
}

.section-head {
  display: grid;
  gap: 12px;
}

.hero {
  padding: 140px 0 110px;
  position: relative;
  background-image:
    linear-gradient(120deg, rgba(248, 252, 255, 0.92) 0%, rgba(246, 251, 255, 0.82) 45%, rgba(245, 250, 255, 0.66) 100%),
    url("assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.16), transparent 36%);
}

body.theme-crystal-showcase .hero::before {
  background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.26), transparent 34%);
}

.hero::after {
  content: "";
  position: absolute;
  top: 12%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(203, 229, 255, 0.36), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

body.theme-crystal-showcase .hero::after {
  background: radial-gradient(circle, rgba(203, 229, 255, 0.78), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 44px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.7rem;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(2.6rem, 4.8vw, 4.1rem);
  line-height: 1.06;
  max-width: 16ch;
  font-weight: 600;
  overflow-wrap: normal !important;
  word-break: normal !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  hyphens: none !important;
  text-wrap: balance;
}

.hero p {
  font-size: 1.05rem;
  color: var(--ink-2);
  margin: 20px 0 28px;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--line);
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 120%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.42) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  z-index: 0;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn.primary {
  background: linear-gradient(135deg, #2d67c2 0%, #1f5dbb 55%, #184f9f 100%);
  color: #ffffff;
  border-color: rgba(12, 39, 90, 0.08);
  box-shadow: 0 14px 28px rgba(31, 93, 187, 0.28);
}

body.theme-crystal-showcase .btn.primary {
  box-shadow: 0 16px 34px rgba(31, 93, 187, 0.35);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  border-color: rgba(19, 33, 53, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(19, 33, 53, 0.12);
}

.btn:hover::before {
  left: 125%;
}

.hero-meta {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.hero-meta span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}

.hero-card {
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  padding: 30px 30px 32px;
  border: 1px solid rgba(19, 33, 53, 0.1);
  box-shadow: 0 20px 44px rgba(19, 33, 53, 0.1);
  position: relative;
  justify-self: end;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.theme-crystal-showcase .hero-card {
  box-shadow: 0 16px 34px rgba(19, 33, 53, 0.09);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(219, 236, 255, 0.44), rgba(239, 247, 255, 0.36), transparent 74%);
  opacity: 0.72;
  z-index: 0;
}

body.theme-crystal-showcase .hero-card::before {
  background: linear-gradient(135deg, rgba(219, 236, 255, 0.66), rgba(239, 247, 255, 0.62), transparent 72%);
  opacity: 0.7;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.card-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.7rem;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.hero-card h2,
.hero-card h3 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.hero-card p {
  color: var(--ink-2);
  margin-bottom: 18px;
}

.meta-list {
  display: grid;
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.offset-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(246, 251, 255, 0.68));
  border: 1px solid rgba(19, 33, 53, 0.08);
  border-left: 3px solid rgba(61, 121, 211, 0.34);
  border-radius: 22px;
  padding: 24px 24px 24px 26px;
  box-shadow: 0 16px 34px rgba(19, 33, 53, 0.08);
  transform: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pill-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(61, 121, 211, 0.13);
  color: var(--accent-strong);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(61, 121, 211, 0.22);
  box-shadow: 0 6px 14px rgba(31, 93, 187, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.theme-crystal-showcase .pill {
  box-shadow: 0 8px 18px rgba(31, 93, 187, 0.14);
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(31, 93, 187, 0.13);
}

body.theme-crystal-showcase .pill:hover {
  box-shadow: 0 12px 22px rgba(31, 93, 187, 0.18);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px;
  margin-top: 38px;
}

.service-card,
.about-card,
.project-card,
.step-card,
.notice {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(246, 251, 255, 0.62));
  border-radius: var(--radius-md);
  border: 1px solid rgba(19, 33, 53, 0.08);
  box-shadow: 0 16px 32px rgba(19, 33, 53, 0.07);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.service-card {
  padding: 24px;
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(61, 121, 211, 0.22);
}

.service-card h3 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--ink-2);
}

#webdesign-wernigerode .service-card .btn.secondary {
  margin-top: 4px;
  padding: 9px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(27, 33, 30, 0.18);
}

.checklist {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--ink-2);
}

.checklist li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  line-height: 1.55;
}

.checklist li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  margin-top: 0.48em;
}

.notice {
  margin-top: 28px;
  padding: 22px 24px 22px 22px;
  border-left: 4px solid var(--accent-strong);
  border-radius: 18px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 76ch;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: start;
}

.about-card {
  padding: 24px;
  border-top: 1px solid rgba(61, 121, 211, 0.22);
}

.about-card h3 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  margin-top: 40px;
}

.project-card {
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(61, 121, 211, 0.22);
  padding: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card.featured-ref {
  border-top: 1px solid rgba(61, 121, 211, 0.4);
  background: transparent;
  box-shadow: none;
}

.project-card::before {
  display: none;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(19, 33, 53, 0.11);
}

.project-card.offset {
  position: relative;
  top: 0;
}

.project-card img {
  height: 210px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  filter: saturate(1.08) contrast(1.04) brightness(1.03);
  transition: filter 0.28s ease;
  box-shadow: 0 10px 20px rgba(19, 33, 53, 0.1);
  border: 1px solid rgba(61, 121, 211, 0.18);
}

body.theme-crystal-showcase .project-card img {
  box-shadow: 0 14px 28px rgba(19, 33, 53, 0.14);
}

.project-card:hover img {
  transform: none;
  filter: saturate(1.11) contrast(1.05) brightness(1.04);
}

.offset-card img,
.hero-card img,
.about-card img {
  border: 1px solid rgba(61, 121, 211, 0.24);
  box-shadow: 0 14px 30px rgba(31, 93, 187, 0.2);
  filter: saturate(1.06) contrast(1.03) brightness(1.02);
}

.project-card.featured-ref img {
  height: 238px;
}

/* Keep live reference screenshots sharp and fully visible */
.project-card.featured-ref .project-media {
  aspect-ratio: 3 / 2;
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.96), rgba(240, 247, 255, 0.92));
  border: 1px solid rgba(61, 121, 211, 0.2);
  border-radius: 18px;
  padding: 8px;
}

.project-card.featured-ref .project-media::before,
.project-card.featured-ref .project-media::after {
  display: none;
}

.project-card.featured-ref img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center top;
  border-radius: 12px;
  filter: none;
  box-shadow: 0 8px 18px rgba(19, 33, 53, 0.12);
}

.project-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.3), transparent 44%),
    radial-gradient(circle at 86% 12%, rgba(157, 208, 255, 0.22), transparent 46%);
  pointer-events: none;
  z-index: 2;
}

.project-media::after {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 68%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  transform: skewX(-16deg);
  pointer-events: none;
  animation: mediaSweep 7.5s ease-in-out infinite;
  z-index: 3;
}

.project-media img {
  border-radius: 18px;
}

.project-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(61, 121, 211, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(231, 243, 255, 0.72));
  color: var(--accent-strong);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(31, 93, 187, 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.icon-chip svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: 0 0 auto;
}

.case-media img {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  min-height: 0;
  height: auto;
  object-fit: contain;
  filter: saturate(1.02) contrast(1.01) brightness(1.01);
  box-shadow: 0 10px 20px rgba(19, 33, 53, 0.12);
}

.case-media {
  max-width: 760px;
  margin: 0 auto;
}

.case-media::after {
  display: none;
}

.case-media::before {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), transparent 56%);
}

.card-content {
  padding: 18px 2px 0;
  display: grid;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(61, 121, 211, 0.14);
  color: var(--accent-strong);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  width: fit-content;
  border: 1px solid rgba(61, 121, 211, 0.2);
  box-shadow: 0 6px 12px rgba(31, 93, 187, 0.1);
  animation: glowPulse 4s ease-in-out infinite;
}

body.theme-crystal-showcase .tag {
  box-shadow: 0 8px 16px rgba(31, 93, 187, 0.14);
}

.card-content h3 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.2rem;
}

.card-content p {
  color: var(--ink-2);
}

.project-mini {
  font-size: 0.92rem;
}

.project-points {
  display: grid;
  gap: 7px;
}

.project-points span {
  color: var(--ink-2);
  font-size: 0.82rem;
}

.project-points span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.step-card {
  padding: 22px;
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(61, 121, 211, 0.22);
}

.step-card span {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--ink-2);
}

.step-card h3 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.1rem;
}

.step-card p {
  color: var(--ink-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.contact-panel {
  display: grid;
  gap: 14px;
  max-width: 640px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(243, 249, 255, 0.62));
  border: 1px solid rgba(19, 33, 53, 0.08);
  box-shadow: 0 18px 36px rgba(19, 33, 53, 0.08);
}

.contact-details {
  display: grid;
  gap: 14px;
  color: var(--ink-2);
  margin: 12px 0 8px;
}

.contact-details span {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}

.small {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-grid textarea {
  grid-column: 1 / -1;
  min-height: 140px;
  resize: vertical;
}

.form-compact {
  gap: 16px;
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(215, 234, 255, 0.74), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.9));
  border: 1px solid rgba(19, 33, 53, 0.08);
  box-shadow: 0 24px 52px rgba(19, 33, 53, 0.12);
}

.form-compact-header {
  display: grid;
  gap: 6px;
}

.form-compact-header h3 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.35rem;
}

.form-compact label {
  display: grid;
  gap: 6px;
}

.form-compact input,
.form-compact textarea {
  border-radius: 12px;
  border: 1px solid rgba(27, 33, 30, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 2px rgba(27, 33, 30, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.form-compact input:focus,
.form-compact textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(61, 121, 211, 0.2), 0 8px 18px rgba(19, 33, 53, 0.1);
  transform: translateY(-1px);
}

.form-compact .btn {
  grid-column: 1 / -1;
  justify-self: start;
  align-self: start;
  width: fit-content;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(74, 111, 92, 0.22);
}

.form-compact .form-check,
.form-compact .form-compact-meta {
  grid-column: 1 / -1;
}

.form-compact-meta {
  margin-top: -4px;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.form-panel {
  display: grid;
  gap: 24px;
  padding: 34px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 0%, rgba(215, 234, 255, 0.75), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.92));
  border: 1px solid rgba(19, 33, 53, 0.1);
  box-shadow: 0 16px 36px rgba(19, 33, 53, 0.1);
  position: relative;
}

.form-header h3 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.form-progress {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

.progress-label strong {
  color: var(--ink);
  font-weight: 600;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(61, 121, 211, 0.16);
  border: 1px solid var(--line);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  transition: width 0.3s ease;
}

.form-section {
  border: none;
  padding: 18px;
  margin: 0;
  display: grid;
  gap: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(19, 33, 53, 0.08);
}

.form-section + .form-section {
  border-top: none;
}

.form-section legend {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}

.form-hint {
  font-size: 0.88rem;
  color: var(--ink-2);
}

.required {
  color: var(--accent-strong);
}

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-2);
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(27, 33, 30, 0.08);
}

.form-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.form-check a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

input,
textarea,
select {
  width: 100%;
  padding: 16px 16px;
  border-radius: 12px;
  border: 1px solid rgba(27, 33, 30, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(27, 33, 30, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.form-panel input,
.form-panel textarea,
.form-panel select {
  background: rgba(255, 255, 255, 0.96);
}

.form-panel input:focus,
.form-panel textarea:focus,
.form-panel select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(61, 121, 211, 0.22), 0 8px 20px rgba(19, 33, 53, 0.1);
  transform: translateY(-1px);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

textarea {
  min-height: 180px;
  grid-column: 1 / -1;
  resize: vertical;
}

.legal {
  max-width: 860px;
  display: grid;
  gap: 16px;
  color: var(--ink-2);
}

.legal h1,
.legal h2,
.legal h3 {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
}

.legal ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.faq-grid {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(19, 33, 53, 0.14);
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.faq-item[open] {
  border-bottom-color: rgba(61, 121, 211, 0.38);
  box-shadow: none;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 20px 0;
  position: relative;
  padding-right: 34px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(27, 33, 30, 0.2);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq-item summary:hover {
  color: var(--accent-strong);
}

.faq-item[open] summary::after {
  content: "–";
  color: var(--accent-strong);
  border-color: rgba(61, 121, 211, 0.4);
}

.faq-item p {
  color: var(--ink-2);
  padding: 0 0 20px;
  max-width: 74ch;
}

footer {
  padding: 50px 0 60px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.5), transparent 34%),
    linear-gradient(135deg, rgba(232, 244, 255, 0.88), rgba(214, 231, 252, 0.86));
  color: var(--ink-2);
}

.footer-grid {
  display: grid;
  gap: 22px;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-title {
  margin-bottom: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 12px 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(19, 33, 53, 0.08);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(19, 33, 53, 0.08);
}

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

.reveal {
  opacity: 1;
  transform: none;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 0.9s ease forwards;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f5dbb, #3d79d3);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(31, 93, 187, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease, bottom 0.25s ease;
  animation: floatPulse 4s ease-in-out infinite;
}

body.theme-crystal-showcase .whatsapp-float {
  box-shadow: 0 18px 35px rgba(31, 93, 187, 0.36);
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(31, 93, 187, 0.34);
}

body.theme-crystal-showcase .whatsapp-float:hover {
  box-shadow: 0 24px 48px rgba(31, 93, 187, 0.44);
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 1024px) {
  body::before,
  body::after {
    display: none;
  }

  .hero-grid,
  .split,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-card,
  .offset-card {
    max-width: 520px;
  }

  .hero-card {
    justify-self: start;
  }

  .offset-card {
    transform: none;
  }

  .hero {
    padding: 120px 0 90px;
    background-position: 50% 20%;
  }
}

@media (max-width: 860px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  body {
    padding-top: 72px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 0 18px;
  }

  .logo {
    order: 1;
  }

  .mobile-nav.nav-links {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(10px);
    z-index: 210;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 64px 12px 14px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(251, 252, 250, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
    max-width: min(94vw, 560px);
    width: min(94vw, 560px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.25s ease;
  }

  body.nav-open .mobile-nav.nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .mobile-nav.nav-links a {
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid transparent;
  }

  .mobile-nav.nav-links a::after {
    display: none;
  }

  .mobile-nav.nav-links a:hover {
    background: #fff;
    box-shadow: 0 6px 14px rgba(27, 33, 30, 0.08);
  }

  .nav-toggle {
    display: inline-flex;
    position: fixed;
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 220;
  }

  .lang {
    display: none;
  }

  .whatsapp-float {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }

  body.nav-open .whatsapp-float {
    bottom: var(--mobile-nav-offset, calc(140px + env(safe-area-inset-bottom)));
  }

}

@media (max-width: 720px) {
  .container {
    width: min(1100px, 94vw);
  }

  body {
    font-size: 1.1rem;
  }

  .nav-links {
    font-size: 1rem;
  }

  section {
    padding: 80px 0;
  }

  .hero {
    padding: 110px 0 80px;
  }

  .hero h1 {
    font-size: 2.6rem;
    line-height: 1.12;
    max-width: 100%;
    overflow-wrap: anywhere !important;
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    hyphens: auto !important;
    text-wrap: pretty;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-text,
  .hero-card,
  .offset-card,
  .about-card {
    margin-inline: auto;
  }

  .hero-card,
  .offset-card,
  .about-card {
    width: 100%;
    max-width: 560px;
  }

  .project-card img {
    height: 220px;
  }

  .section-title {
    max-width: 100%;
    line-height: 1.22;
    text-wrap: pretty;
  }

  .faq-item summary,
  .notice,
  p {
    overflow-wrap: anywhere;
  }

  .btn {
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
  }

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

  .form-panel {
    padding: 26px;
  }

  .form-compact {
    padding: 22px;
  }

  .form-compact .btn {
    width: 100%;
    justify-content: center;
  }

  .form-actions {
    align-items: flex-start;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(960px, 92vw);
  }

  body {
    font-size: 1.12rem;
  }

  .nav-links a {
    padding: 8px 10px;
  }

  .hero h1 {
    font-size: 2.3rem;
    line-height: 1.16;
  }

  .section-title {
    font-size: 2.05rem;
    line-height: 1.24;
  }

  .section-subtitle {
    font-size: 1.08rem;
  }

  .logo img {
    height: 34px;
  }

  .contact-details {
    gap: 12px;
  }

  .project-grid,
  .card-grid {
    gap: 18px;
  }

  .hero-meta {
    font-size: 1.02rem;
  }

  .section-eyebrow,
  .eyebrow {
    letter-spacing: 0.2em;
  }

  .notice {
    padding-left: 16px;
  }

  .whatsapp-float {
    right: 18px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    padding: 10px 14px;
  }

  body.nav-open .whatsapp-float {
    bottom: var(--mobile-nav-offset, calc(160px + env(safe-area-inset-bottom)));
  }

  .nav-toggle {
    right: 18px;
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .nav {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
  }

  .logo {
    order: 0;
  }

  .nav-toggle {
    display: inline-flex !important;
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    z-index: 130;
    margin-left: auto;
  }

  .lang {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none !important;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(251, 252, 250, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 125;
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
  }

  .nav-links a::after {
    display: none;
  }

  body.nav-open .nav-links {
    display: flex !important;
  }

  .whatsapp-float {
    right: 16px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: 90;
  }

  body.nav-open .whatsapp-float {
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmerSweep {
  0% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(140%);
  }
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(34px, 24px, 0) scale(1.08);
  }
}

@keyframes lineFlow {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  20% {
    opacity: 0.24;
  }
  80% {
    opacity: 0.24;
  }
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(1);
  }
  50% {
    opacity: 0.78;
    transform: scale(1.08);
  }
}

@keyframes mediaSweep {
  0% {
    left: -140%;
    opacity: 0;
  }
  18% {
    opacity: 0.55;
  }
  36%,
  100% {
    left: 170%;
    opacity: 0;
  }
}
