:root {
  --bg: #080808;
  --bg-elevated: #111111;
  --surface: rgba(19, 19, 19, 0.88);
  --surface-strong: #181818;
  --surface-soft: rgba(255, 255, 255, 0.03);
  --text: #f4efe7;
  --muted: #c9bba0;
  --muted-soft: #a5967c;
  --accent: #c8a96a;
  --accent-strong: #edd39a;
  --line: rgba(200, 169, 106, 0.2);
  --line-strong: rgba(200, 169, 106, 0.35);
  --success: #9dd7b3;
  --danger: #f3a7a7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --container-narrow: 780px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Baskerville", Georgia, serif;
  --sans: "Aptos", "Segoe UI Variable", "Trebuchet MS", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(200, 169, 106, 0.14), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(200, 169, 106, 0.1), transparent 22%),
    linear-gradient(180deg, #070707 0%, #0d0d0d 45%, #080808 100%);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), var(--container-narrow));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(8, 8, 8, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(10, 10, 10, 0.86);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 132px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 116px;
  height: 116px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  object-fit: contain;
  box-shadow: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-strong);
  background: linear-gradient(135deg, rgba(200, 169, 106, 0.22), rgba(200, 169, 106, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.05;
  font-size: 1.08rem;
}

.brand-text small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav > a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav > a:hover,
.site-nav > a.is-active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

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

.button-primary {
  color: #120c05;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 16px 38px rgba(200, 169, 106, 0.24);
}

.header-cta {
  color: #000000 !important;
  font-weight: 800;
  text-shadow: none;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.site-nav > a.header-cta,
.site-nav > a.header-cta:hover,
.site-nav > a.header-cta.is-active {
  color: #000000 !important;
}

.button-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.button-small {
  min-height: 44px;
  padding: 0.72rem 1rem;
  font-size: 0.93rem;
}

.hero-section,
.page-hero {
  padding: 7.5rem 0 4rem;
}

body[data-page="home"] .hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body[data-page="home"] .hero-media-layer {
  position: absolute;
  inset: 0;
  transform-origin: center top;
  pointer-events: none;
  background:
    linear-gradient(92deg, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0.85) 34%, rgba(7, 7, 7, 0.68) 56%, rgba(7, 7, 7, 0.88) 100%),
    radial-gradient(circle at 78% 16%, rgba(200, 169, 106, 0.16), transparent 24%),
    url("assets/hero-team-bg.jpeg") center 24% / cover no-repeat;
  transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(1.02);
  z-index: -2;
}

body[data-page="home"] .hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.14), rgba(8, 8, 8, 0.5) 72%, rgba(8, 8, 8, 0.82) 100%);
  z-index: -1;
}

body[data-page="home"] .hero-section > .container {
  position: relative;
  z-index: 1;
}

.hero-grid,
.split-grid,
.form-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.hero-panel {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: start;
}

.hero-copy h1,
.page-hero h1,
.section h2,
.cta-panel h2,
.pricing-card h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(2.45rem, 5vw, 4.85rem);
  max-width: 12.5ch;
}

.page-hero h1,
.section h2,
.cta-panel h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.lead,
.section-text,
.cta-panel p,
.content-card p,
.service-card p,
.process-card p,
.testimonial-card p,
.pricing-card p,
.legal-content p {
  color: var(--muted);
}

.lead {
  font-size: 1.08rem;
  max-width: 66ch;
  margin: 1.25rem 0 0;
}

.eyebrow,
.panel-label,
.card-tag,
.card-index {
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.trust-line {
  margin-top: 1.5rem;
  color: var(--muted-soft);
}

body[data-page="home"] .hero-copy .eyebrow,
body[data-page="home"] .hero-copy h1,
body[data-page="home"] .hero-copy .lead,
body[data-page="home"] .trust-line {
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

.panel-card,
.content-card,
.service-card,
.process-card,
.testimonial-card,
.pricing-card,
.form-card,
.mini-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.panel-card,
.pricing-card,
.form-card {
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.content-card,
.service-card,
.process-card,
.testimonial-card,
.mini-card {
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.mini-card-compact {
  padding: 1rem 1rem 1.05rem;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.mini-card-compact strong,
.mini-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.mini-card-compact span,
.mini-card span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

body[data-page="home"] .hero-section .panel-card,
body[data-page="home"] .hero-section .mini-card {
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.78), rgba(10, 10, 10, 0.64));
  border-color: rgba(200, 169, 106, 0.18);
  backdrop-filter: blur(10px);
}

.panel-card::before,
.content-card::before,
.service-card::before,
.process-card::before,
.pricing-card::before,
.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(200, 169, 106, 0.08), transparent 40%);
  pointer-events: none;
}

.mini-grid,
.card-grid,
.process-grid,
.portfolio-grid {
  display: grid;
  gap: 1.5rem;
}

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

.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.service-card,
.content-card,
.process-card,
.testimonial-card,
.pricing-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stacked-cards {
  display: grid;
  gap: 1.5rem;
}

.service-card h3,
.content-card h3,
.process-card h3,
.testimonial-card strong,
.pricing-card h2,
.panel-card h2,
.panel-card h3 {
  margin: 0.4rem 0 0;
}

.text-link {
  margin-top: 1rem;
  display: inline-flex;
  color: var(--accent-strong);
  font-weight: 700;
}

.text-link::after {
  content: "->";
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

.section {
  padding: 4.25rem 0;
}

.section-contrast {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading.left-aligned {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  max-width: 14ch;
}

body[data-page="home"] .card-grid,
body[data-page="home"] .portfolio-grid,
body[data-page="home"] .process-grid {
  margin-top: 2rem;
}

body[data-page="home"] .mini-grid {
  margin-top: 0.25rem;
}

.feature-list,
.footer-links {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.feature-list li,
.footer-links li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

.feature-list li::before,
.footer-links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 0 0 4px rgba(200, 169, 106, 0.12);
}

.pricing-card.highlighted {
  border-color: rgba(237, 211, 154, 0.45);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

body[data-page="loesungen"] .pricing-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}

body[data-page="loesungen"] .pricing-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 1.4vw + 1.1rem, 2.05rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: none;
  overflow-wrap: anywhere;
  hyphens: auto;
}

body[data-page="loesungen"] .pricing-card p,
body[data-page="loesungen"] .pricing-card .feature-list {
  margin-top: 0;
}

body[data-page="loesungen"] .pricing-card .button {
  margin-top: auto;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.4rem 2.6rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at top right, rgba(200, 169, 106, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

body[data-page="contact"] .contact-intro-card {
  background:
    linear-gradient(180deg, rgba(232, 214, 180, 0.96), rgba(206, 178, 129, 0.92));
  border-color: rgba(200, 169, 106, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

body[data-page="contact"] .contact-intro-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%);
}

body[data-page="contact"] .contact-intro-card .panel-label,
body[data-page="contact"] .contact-intro-card h2,
body[data-page="contact"] .contact-intro-card h3,
body[data-page="contact"] .contact-intro-card p,
body[data-page="contact"] .contact-intro-card .feature-list li {
  color: #1a140d;
}

body[data-page="contact"] .contact-intro-card .panel-label {
  color: #4c3720;
}

body[data-page="contact"] .contact-intro-card .feature-list {
  margin-top: 0.85rem;
}

body[data-page="contact"] .contact-intro-card .feature-list li {
  line-height: 1.7;
}

body[data-page="contact"] .contact-intro-card .feature-list li::before {
  background: linear-gradient(135deg, #5e421d, #b28742);
  box-shadow: 0 0 0 4px rgba(94, 66, 29, 0.12);
}

.form-layout {
  align-items: start;
}

.form-card {
  width: 100%;
}

.form-status {
  display: none;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: var(--success);
  border-color: rgba(157, 215, 179, 0.25);
  background: rgba(157, 215, 179, 0.08);
}

.form-status.is-error {
  color: var(--danger);
  border-color: rgba(243, 167, 167, 0.25);
  background: rgba(243, 167, 167, 0.08);
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

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

.form-full {
  grid-column: 1 / -1;
}

.contact-form label,
.checkbox-field {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.contact-form span,
.checkbox-field span {
  color: var(--text);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.95rem 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(200, 169, 106, 0.12);
}

body[data-page="contact"] select {
  color: var(--text);
  background-color: rgba(20, 20, 20, 0.92);
  border-color: rgba(200, 169, 106, 0.28);
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-strong) 50%),
    linear-gradient(135deg, var(--accent-strong) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.8rem;
}

body[data-page="contact"] select option {
  color: #ffffff;
  background: #141414;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 0.22rem;
}

.field-error {
  min-height: 1rem;
  color: var(--danger);
}

.field-error.is-visible {
  display: block;
}

.is-invalid {
  border-color: rgba(243, 167, 167, 0.45);
}

.legal-hero {
  padding-bottom: 2rem;
}

.legal-content {
  max-width: 850px;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-intro {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.footer-text {
  max-width: 32ch;
  color: var(--muted);
  margin: 0;
}

.site-footer h3 {
  margin: 0;
  font-size: 1rem;
}

.testimonial-card {
  display: grid;
  gap: 0.9rem;
}

.testimonial-card p {
  position: relative;
  margin: 0;
  padding-top: 1.1rem;
}

.testimonial-card p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-strong), transparent);
}

.testimonial-note {
  color: var(--muted-soft);
  font-size: 0.88rem;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.portfolio-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 169, 106, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.84rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.social-links a::before {
  content: "";
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  display: inline-block;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.social-links a[href*="facebook.com"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13.5 21v-7.4H16l.4-3h-2.9V8.7c0-.9.2-1.5 1.5-1.5h1.6V4.5c-.3 0-1.2-.1-2.3-.1-2.3 0-3.9 1.4-3.9 4v2.2H8v3h2.4V21h3.1z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13.5 21v-7.4H16l.4-3h-2.9V8.7c0-.9.2-1.5 1.5-1.5h1.6V4.5c-.3 0-1.2-.1-2.3-.1-2.3 0-3.9 1.4-3.9 4v2.2H8v3h2.4V21h3.1z'/%3E%3C/svg%3E");
}

.social-links a[href*="instagram.com"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.8 3h8.4A4.8 4.8 0 0 1 21 7.8v8.4a4.8 4.8 0 0 1-4.8 4.8H7.8A4.8 4.8 0 0 1 3 16.2V7.8A4.8 4.8 0 0 1 7.8 3zm0 1.8A3 3 0 0 0 4.8 7.8v8.4a3 3 0 0 0 3 3h8.4a3 3 0 0 0 3-3V7.8a3 3 0 0 0-3-3H7.8zm8.9 1.3a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2zM12 7.6A4.4 4.4 0 1 1 7.6 12 4.4 4.4 0 0 1 12 7.6zm0 1.8A2.6 2.6 0 1 0 14.6 12 2.6 2.6 0 0 0 12 9.4z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.8 3h8.4A4.8 4.8 0 0 1 21 7.8v8.4a4.8 4.8 0 0 1-4.8 4.8H7.8A4.8 4.8 0 0 1 3 16.2V7.8A4.8 4.8 0 0 1 7.8 3zm0 1.8A3 3 0 0 0 4.8 7.8v8.4a3 3 0 0 0 3 3h8.4a3 3 0 0 0 3-3V7.8a3 3 0 0 0-3-3H7.8zm8.9 1.3a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2zM12 7.6A4.4 4.4 0 1 1 7.6 12 4.4 4.4 0 0 1 12 7.6zm0 1.8A2.6 2.6 0 1 0 14.6 12 2.6 2.6 0 0 0 12 9.4z'/%3E%3C/svg%3E");
}

.social-links a[href*="linkedin.com"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.94 8.5H3.56V20h3.38V8.5zM5.25 3A2.02 2.02 0 1 0 5.3 7.04 2.02 2.02 0 0 0 5.25 3zm4.13 5.5V20h3.38v-6.1c0-1.61.3-3.17 2.3-3.17 1.96 0 1.98 1.84 1.98 3.27V20h3.38v-6.69c0-3.29-.71-5.81-4.55-5.81-1.84 0-3.07 1.01-3.58 1.97h-.05V8.5H9.38z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.94 8.5H3.56V20h3.38V8.5zM5.25 3A2.02 2.02 0 1 0 5.3 7.04 2.02 2.02 0 0 0 5.25 3zm4.13 5.5V20h3.38v-6.1c0-1.61.3-3.17 2.3-3.17 1.96 0 1.98 1.84 1.98 3.27V20h3.38v-6.69c0-3.29-.71-5.81-4.55-5.81-1.84 0-3.07 1.01-3.58 1.97h-.05V8.5H9.38z'/%3E%3C/svg%3E");
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted-soft);
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 1400;
  width: min(calc(100% - 1.5rem), 980px);
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) auto;
  gap: 1.25rem;
  align-items: end;
  padding: 1.2rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(200, 169, 106, 0.28);
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.96), rgba(10, 10, 10, 0.98)),
    radial-gradient(circle at top right, rgba(200, 169, 106, 0.14), transparent 26%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.cookie-banner__copy h2 {
  margin: 0.2rem 0 0.45rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.cookie-banner__copy p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.cookie-banner__eyebrow {
  margin: 0;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.portfolio-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
  .service-card:hover,
  .content-card:hover,
  .process-card:hover,
  .testimonial-card:hover,
  .pricing-card:hover,
  .portfolio-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
  }
}

.portfolio-media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-media img {
  transform: scale(1.01);
}

.portfolio-copy {
  padding: 1.4rem 1.45rem 1.5rem;
}

.portfolio-copy h3 {
  margin: 0.45rem 0 0.6rem;
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.person-grid + .person-grid {
  margin-top: 2rem;
}

.person-portrait {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.person-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-caption {
  padding: 1rem 1.4rem 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.person-copy {
  display: grid;
  gap: 1rem;
}

.person-copy .panel-card {
  height: 100%;
}

.info-stack {
  display: grid;
  gap: 0.9rem;
}

.info-stack article {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.info-stack article:first-child {
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 1080px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  body[data-page="home"] .hero-section {
    min-height: 0;
    padding-top: 0.9rem;
    padding-bottom: 3rem;
  }

  body[data-page="home"] .hero-media-layer {
    inset: 0;
    background:
      linear-gradient(180deg, rgba(7, 7, 7, 0.28) 0%, rgba(7, 7, 7, 0.5) 24%, rgba(7, 7, 7, 0.8) 54%, rgba(7, 7, 7, 0.97) 100%),
      linear-gradient(90deg, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.26) 18%, rgba(8, 8, 8, 0.2) 82%, rgba(8, 8, 8, 0.92) 100%),
      radial-gradient(circle at 52% 14%, rgba(200, 169, 106, 0.12), transparent 30%),
      url("assets/hero-team-bg.jpeg") 47% 1.2rem / min(90vw, 620px) auto no-repeat;
    transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(1);
    opacity: 0.98;
  }

  body[data-page="home"] .hero-section::after {
    background:
      linear-gradient(180deg, rgba(8, 8, 8, 0.14) 0%, rgba(8, 8, 8, 0.3) 18%, rgba(8, 8, 8, 0.78) 42%, rgba(8, 8, 8, 0.97) 70%, rgba(8, 8, 8, 0.995) 100%);
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(13, 13, 13, 0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  }

  .js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .js .site-nav > a,
  .js .header-cta {
    width: 100%;
  }

  .hero-grid,
  .split-grid,
  .form-layout,
  .card-grid-three,
  .mini-grid,
  .portfolio-grid,
  .person-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .hero-grid {
    align-content: start;
    padding-top: 9.8rem;
    padding-bottom: 0;
  }

  .person-grid-mobile-image-first .person-portrait {
    order: -1;
  }

  .person-grid-mobile-image-first .person-copy {
    order: 1;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 720px) {
  body[data-page="home"] .hero-section {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 2.5rem;
  }

  body[data-page="home"] .hero-media-layer {
    background:
      linear-gradient(180deg, rgba(7, 7, 7, 0.3) 0%, rgba(7, 7, 7, 0.5) 22%, rgba(7, 7, 7, 0.78) 52%, rgba(7, 7, 7, 0.97) 100%),
      linear-gradient(90deg, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.28) 18%, rgba(8, 8, 8, 0.22) 82%, rgba(8, 8, 8, 0.94) 100%),
      radial-gradient(circle at 50% 12%, rgba(200, 169, 106, 0.1), transparent 28%),
      url("assets/hero-team-bg.jpeg") 46% 0.9rem / calc(100vw - 1.9rem) auto no-repeat;
  }

  body[data-page="home"] .hero-section::after {
    background:
      linear-gradient(180deg, rgba(8, 8, 8, 0.16) 0%, rgba(8, 8, 8, 0.3) 16%, rgba(8, 8, 8, 0.8) 38%, rgba(8, 8, 8, 0.97) 66%, rgba(8, 8, 8, 0.995) 100%);
  }

  .hero-section,
  .page-hero {
    padding: 6.5rem 0 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

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

  .header-inner {
    min-height: 110px;
  }

  .brand {
    gap: 0.75rem;
  }

  .brand-logo {
    width: 84px;
    height: 84px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .brand-text small {
    font-size: 0.68rem;
  }

  .button-row,
  .contact-points,
  .social-links,
  .cookie-banner__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-card,
  .pricing-card,
  .form-card,
  .cta-panel {
    padding: 1.5rem;
  }

  .content-card,
  .service-card,
  .process-card,
  .testimonial-card,
  .mini-card {
    padding: 1.35rem;
  }

  .mini-grid,
  .card-grid,
  .process-grid,
  .portfolio-grid,
  .stacked-cards {
    gap: 1rem;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  body[data-page="home"] .hero-grid {
    padding-top: 9rem;
    padding-bottom: 0;
  }

  .mini-card-compact {
    padding: 0.95rem 0.95rem 1rem;
  }

  .mini-card-compact strong {
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .mini-card-compact span {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .cookie-banner {
    width: min(calc(100% - 1rem), 100%);
    grid-template-columns: 1fr;
    align-items: start;
    padding: 1rem;
    bottom: 0.75rem;
    border-radius: 20px;
  }

  .cookie-banner__copy h2 {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  body[data-page="home"] .hero-media-layer {
    transform: none;
  }
}
