/* ─── Font ───────────────────────────────────────────────────── */
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-Variable.woff2') format('woff2'),
       url('/assets/fonts/Montserrat-Variable.ttf')   format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Dark theme — pure black, no gray */
  --bg:           #000000;
  --bg-2:         #000000;
  --bg-3:         #0a0a0a;
  --border:       rgba(255,255,255,0.1);
  --border-md:    rgba(255,255,255,0.2);
  --text:         #ffffff;
  --text-muted:   #ffffff;
  --text-subtle:  rgba(255,255,255,0.6);
  --accent:       #ffffff;

  --radius:       10px;
  --radius-lg:    18px;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur:          0.55s;
  --container:    min(100% - 3rem, 1180px);
  --section-py:   clamp(100px, 12vw, 180px);
  --font:         'Montserrat', system-ui, -apple-system, sans-serif;
}

/* ─── Light section override — pure white/black ──────────────── */
.section-light {
  --bg:          #ffffff;
  --bg-2:        #ffffff;
  --bg-3:        #f2f2f2;
  --border:      rgba(0,0,0,0.1);
  --border-md:   rgba(0,0,0,0.2);
  --text:        #000000;
  --text-muted:  #000000;
  --text-subtle: rgba(0,0,0,0.6);
  --accent:      #000000;
  background: #ffffff;
  color: #000000;
}

/* Light section: btn variants */
.section-light .btn-primary    { background: #000; color: #fff; }
.section-light .btn-primary:hover { background: #222; }
.section-light .btn-ghost      { border-color: rgba(0,0,0,0.2); color: #000; }
.section-light .btn-ghost:hover { border-color: #000; background: rgba(0,0,0,0.04); }

/* Light section: forms */
.section-light .form-input,
.section-light .form-textarea  { background: #fff; border-color: rgba(0,0,0,0.12); color: #000; }
.section-light .form-input::placeholder,
.section-light .form-textarea::placeholder { color: rgba(0,0,0,0.3); }

/* Light section: cards */
.section-light .service-card   { background: #ffffff; }
.section-light .service-card:hover { background: #f9f9f9; }
.section-light .services-grid  { background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.08); }

/* Light section: nav override when scrolled over light area */
.section-light .testimonial-card { background: #f4f4f4; border-color: rgba(0,0,0,0.07); }

/* Light: faq */
.section-light .faq-item       { border-color: rgba(0,0,0,0.1); }
.section-light .faq-question   { color: #000; }
.section-light .faq-question:hover { color: rgba(0,0,0,0.7); }
.section-light .faq-icon       { border-color: rgba(0,0,0,0.2); color: rgba(0,0,0,0.5); }
.section-light .faq-item.open .faq-icon { background: #000; color: #fff; border-color: #000; }
.section-light .faq-answer     { color: rgba(0,0,0,0.75); }

/* Light: about list */
.section-light .about-list li::before { background: rgba(0,0,0,0.4); }
.section-light .about-image    { border-color: rgba(0,0,0,0.1); background: #f0f0f0; }
.section-light .about-image-placeholder { color: rgba(0,0,0,0.3); }
.section-light .about-badges .badge { background: rgba(255,255,255,0.9); border-color: rgba(0,0,0,0.1); color: #000; }

/* Light: borders around sections */
.section-light + section,
section + .section-light { border-top: 1px solid rgba(0,0,0,0.0); }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}

::selection { background: rgba(255,255,255,0.15); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Typography ───────────────────────────────────────────── */
.display-1 {
  font-size: clamp(2.8rem, 6vw + 1rem, 7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.display-2 {
  font-size: clamp(2rem, 4vw + 0.5rem, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.title-1 {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.title-2 {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.body-lg { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.8; color: var(--text-muted); }
.body-md { font-size: 1rem; line-height: 1.75; color: var(--text-muted); }

/* ─── Layout ───────────────────────────────────────────────── */
.container { width: var(--container); margin-inline: auto; }
.section { padding-block: var(--section-py); }
.section-sm { padding-block: clamp(50px, 6vw, 90px); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 2rem; }

/* ─── Divider ──────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: rgba(255,255,255,0.88); transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid var(--border-md);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }

.btn svg { flex-shrink: 0; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ─── Navigation ───────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.4s ease, padding 0.4s ease, border-bottom 0.4s;
}
#nav.scrolled {
  background: #080808;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo img { height: 30px; width: auto; }
.nav-logo-text { font-weight: 800; font-size: 1.25rem; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-subtle); }
.nav-cta {
  padding: 0.6rem 1.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 2rem clamp(1.5rem, 8vw, 4rem);
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  width: 100%;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s, padding-left 0.3s var(--ease);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:first-child { border-top: 1px solid var(--border); }
.nav-mobile a:hover,
.nav-mobile a:active { color: var(--text); padding-left: 0.5rem; }

/* ─── Hero ─────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(60px, 8vw, 120px);
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: flex-end;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0.25rem;
}

.hero-svc-card {
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-svc-header {
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.hero-svc-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, padding-left 0.35s var(--ease);
}
.hero-svc-row:last-of-type { border-bottom: none; }
.hero-svc-row:hover { background: rgba(255,255,255,0.05); padding-left: 2rem; }

.hero-svc-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  width: 18px;
  flex-shrink: 0;
}
.hero-svc-name { font-size: 0.875rem; font-weight: 600; flex: 1; }
.hero-svc-arrow {
  color: var(--text-subtle);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.3s var(--ease);
}
.hero-svc-row:hover .hero-svc-arrow { color: var(--text); transform: translateX(4px); }

.hero-svc-footer {
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.68rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}

/* Animated ambient glows */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow-1 {
  top: -20%;
  right: -8%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, rgba(255,255,255,0.09) 0%, transparent 62%);
  animation: hero-blob 16s ease-in-out infinite;
}
.hero-glow-2 {
  bottom: -5%;
  left: -12%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 62%);
  animation: hero-blob 20s ease-in-out infinite reverse;
  animation-delay: -6s;
}
@keyframes hero-blob {
  0%, 100% { transform: translate(0,    0)    scale(1);    }
  30%       { transform: translate(4%,  7%)   scale(1.1);  }
  60%       { transform: translate(-4%, -4%)  scale(0.93); }
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-md);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.hero-label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-green 2s ease infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  margin-bottom: 2rem;
  font-size: clamp(2rem, 4.5vw + 0.5rem, 5rem);
}
.hero-headline em {
  font-style: normal;
  color: var(--text-muted);
}

.hero-sub {
  max-width: 520px;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-subtle), transparent);
  animation: scroll-line 2s ease infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── Stats bar ────────────────────────────────────────────── */
/* legacy stats-bar — keep for compat */
.stats-bar { display: none; }
.stats-inner { display: none; }
.stat-item { display: none; }
.stat-number { display: none; }
.stat-label { display: none; }

/* ─── Facts section — modern redesign ─────────────────────── */
.facts-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.facts-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact-item {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem);
  border-right: 1px solid var(--border);
  overflow: hidden;
  transition: background 0.4s;
}
.fact-item:last-child { border-right: none; }
.fact-item:hover { background: rgba(255,255,255,0.015); }

/* Giant background ghost number */
.fact-bg-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(7rem, 14vw, 16rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
  transition: -webkit-text-stroke-color 0.4s, transform 0.6s var(--ease);
}
.fact-item:hover .fact-bg-num {
  -webkit-text-stroke-color: rgba(255,255,255,0.09);
  transform: translate(-50%, -50%) scale(1.05);
}

.fact-content { position: relative; z-index: 1; }

.fact-number {
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.fact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.fact-divider { display: none; }

/* ─── Section header ───────────────────────────────────────── */
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.section-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
}

/* ─── Services ─────────────────────────────────────────────── */
.services-list { display: flex; flex-direction: column; padding-left: 1.5rem; }

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  align-items: center;
  position: relative;
  transition: background 0.3s;
}
.service-row:first-child { border-top: 1px solid var(--border); }

/* Left accent line grows on hover */
.service-row::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--text);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease);
  transform-origin: center;
}
.service-row:hover::before { transform: scaleY(1); }
.service-row:hover { background: transparent; }

.service-row-left {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.service-row-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  padding-top: 0.25rem;
  flex-shrink: 0;
  transition: color 0.3s;
}
.service-row:hover .service-row-num { color: var(--text); }
.service-row-title { font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 700; }
.service-row-text { font-size: 0.9rem; line-height: 1.65; color: var(--text-subtle); }
.section-light .service-row-text { color: rgba(0,0,0,0.7); }
.service-row-arrow {
  color: var(--text-subtle);
  flex-shrink: 0;
  transition: color 0.25s, transform 0.4s var(--ease);
}
.service-row:hover .service-row-arrow { color: var(--text); transform: translateX(10px); }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
/* On homepage rows: hide tags to keep rows clean */
.service-row .service-tags { display: none; }
.tag {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ─── Projects ─────────────────────────────────────────────── */
.project-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  background: transparent;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--text);
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* ─── Horizontal Project Scroll ────────────────────────────── */
.projects-pin-zone {
  overflow: hidden;
}
.projects-h-track {
  display: flex;
  gap: 1.25rem;
  padding-left:  max(calc((100vw - 1180px) / 2), 1.5rem);
  padding-right: max(calc((100vw - 1180px) / 2), 1.5rem);
  will-change: transform;
  user-select: none;
}

/* Fallback grid — used on mobile or when JS unavailable */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* ── Full-bleed card ── */
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-3);
  display: block;
  text-decoration: none;
}
/* Grid mode: span 2 for featured */
.projects-grid .project-card.featured {
  grid-column: span 2;
  aspect-ratio: 21/9;
}
/* Horizontal track card sizing */
.projects-h-track .project-card {
  flex-shrink: 0;
  width: clamp(300px, 38vw, 500px);
  height: clamp(380px, 52vh, 640px);
  aspect-ratio: unset;
}
.projects-h-track .project-card.featured {
  width: clamp(500px, 58vw, 760px);
  aspect-ratio: unset;
}

/* Gradient overlay */
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.35) 45%,
    transparent 100%
  );
  z-index: 1;
  transition: opacity 0.4s;
}
.project-card:hover::after {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.5) 55%,
    rgba(0,0,0,0.1) 100%
  );
}

/* Image fills entire card */
.project-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project-card:hover .project-img img { transform: scale(1.06); }

.project-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
}

/* Text overlay */
.project-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.75rem;
  z-index: 2;
  color: #fff;
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.project-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.project-year {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
}
.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
  line-height: 1.25;
}
.project-card.featured .project-title { font-size: 1.75rem; }

.project-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.75rem;
  transform: translateY(4px);
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.project-card:hover .project-tags-row {
  opacity: 1;
  transform: translateY(0);
}
.project-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.08);
}

.project-desc { display: none; }

.projects-empty {
  grid-column: span 2;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

/* Arrow — top right corner */
.project-link-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s;
}
.project-card:hover .project-link-arrow {
  opacity: 1;
  transform: scale(1);
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ─── About ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 0.85rem;
}
.about-badges {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.badge {
  padding: 0.4rem 0.85rem;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-md);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.about-content { }
.about-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; }
.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.75rem;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.about-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

/* ─── Testimonials (new) ───────────────────────────────────── */
.testimonials-section { background: #000 !important; }
.testi-header { margin-bottom: clamp(3rem, 6vw, 5rem); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Card — sichtbare Kontur auf schwarzem Hintergrund */
.testi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.18);
  transition: border-color 0.35s, transform 0.4s var(--ease), box-shadow 0.4s;
  overflow: hidden;
}
.testi-card:hover {
  border-color: rgba(255,255,255,0.38);
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.12);
}

/* Giant decorative quote mark */
.testi-quote {
  position: absolute;
  top: -0.75rem;
  right: 1.25rem;
  font-size: 9rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke-color 0.35s;
}
.testi-card:hover .testi-quote { -webkit-text-stroke-color: rgba(255,255,255,0.16); }

.testi-text {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  flex: 1;
  position: relative;
  z-index: 1;
}

.testi-stars {
  color: #facc15;
  font-size: 0.9rem;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  position: relative;
  z-index: 1;
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  color: #fff;
}
.testi-name { font-size: 0.9rem; font-weight: 700; color: #fff; }
.testi-role { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 0.1rem; }

/* Legacy — keep for compat */
.testimonials-grid { display: none; }
.testimonials-empty { text-align: center; padding: 3rem; color: var(--text-muted); }

/* ─── Client Logos Ticker ──────────────────────────────────── */
.clients-section { overflow: hidden; }

/* Ticker inside projects section */
.projects-ticker-wrap {
  position: relative;
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  /* Fade edges */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: ticker 22s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.35;
  transition: opacity 0.3s;
  flex-shrink: 0;
}
.ticker-logo:hover { opacity: 0.7; }
.ticker-name {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-subtle);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.3s;
  letter-spacing: -0.01em;
  opacity: 0.55;
}
.ticker-name:hover { opacity: 1; color: var(--text); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── FAQ Grid layout ─────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* ─── FAQ ──────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: inherit;
}
.faq-question:hover { color: var(--text-muted); }
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 1px solid var(--border-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s var(--ease);
  color: var(--text-muted);
}
.faq-item.open .faq-icon {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 720px;
}
.faq-item.open .faq-answer { display: block; }

/* ─── CTA Section ──────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding-block: clamp(80px, 12vw, 160px);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.cta-label { margin-bottom: 1.5rem; }
.cta-headline { margin-bottom: 1.5rem; }
.cta-sub { color: var(--text-muted); margin-bottom: 2.5rem; max-width: 480px; margin-inline: auto; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.cta-contact-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
  color: var(--text-subtle);
}
.cta-contact-bar a { color: var(--text); transition: opacity 0.2s; }
.cta-contact-bar a:hover { opacity: 0.7; }
.cta-sep { color: var(--text-subtle); }

.cta-big-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 3.5rem;
  background: #ffffff;
  color: #000000;
  border-radius: 100px;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.35s;
  box-shadow: 0 0 0 rgba(255,255,255,0);
  margin-top: 0.25rem;
}
.cta-big-btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 64px rgba(255,255,255,0.14);
}
.cta-big-btn svg { flex-shrink: 0; transition: transform 0.35s var(--ease); }
.cta-big-btn:hover svg { transform: translateX(7px); }

/* ─── Leistung subpage ─────────────────────────────────────── */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.5); }
.breadcrumb .breadcrumb-current { color: rgba(255,255,255,0.9); }

/* Subtitle */
.leistung-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-top: 1.25rem;
  max-width: 600px;
}

/* Tags row */
.leistung-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.leistung-tag {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  letter-spacing: 0.01em;
}

/* ─── Leistung Features Section ────────────────────────────── */
.lf-section {
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding-block: clamp(80px, 10vw, 140px);
}

/* Lead row */
.lf-lead {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.lf-lead-text {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.85;
  color: rgba(0,0,0,0.8);
  max-width: 680px;
}
.lf-cta { flex-shrink: 0; background: #000; color: #fff; }
.lf-cta:hover { background: #222; }

/* Features: 4 columns */
.lf-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.lf-item {
  padding: 0 2.5rem 0 0;
  border-right: 1px solid rgba(0,0,0,0.08);
  padding-right: 2.5rem;
}
.lf-item:first-child { padding-left: 0; }
.lf-item:last-child { border-right: none; padding-right: 0; }
.lf-item:not(:first-child) { padding-left: 2.5rem; }

.lf-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(0,0,0,0.45);
  margin-bottom: 1.25rem;
}
.lf-title {
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.lf-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(0,0,0,0.72);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-3);
  transition: border-color 0.3s;
}
.section-light .feature-card { background: #f7f7f7; border-color: rgba(0,0,0,0.08); }
.feature-card:hover { border-color: var(--border-md); }

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.section-light .feature-title { color: #000; }

.feature-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-subtle);
}
.section-light .feature-text { color: rgba(0,0,0,0.78); }

/* Other services list */
.other-services { display: flex; flex-direction: column; }

.other-svc-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: padding-left 0.35s var(--ease);
}
.other-svc-row:first-child { border-top: 1px solid var(--border); }
.other-svc-row:hover { padding-left: 0.75rem; }
.section-light .other-svc-row:hover { background: rgba(0,0,0,0.02); }

.other-svc-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  flex-shrink: 0;
  width: 2rem;
}
.other-svc-name {
  flex: 1;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
}
.other-svc-row svg {
  color: var(--text-subtle);
  transition: transform 0.35s var(--ease), color 0.2s;
  flex-shrink: 0;
}
.other-svc-row:hover svg { transform: translateX(6px); color: var(--text); }

/* ─── Contact Form ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.04em; }
.form-input, .form-textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--border-md); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-subtle); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-submit { align-self: flex-start; }

.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.contact-info-label { font-size: 0.75rem; color: var(--text-subtle); margin-bottom: 0.25rem; }
.contact-info-value { font-size: 0.95rem; font-weight: 500; }

/* ─── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.78rem; color: var(--text-subtle); }

/* ─── GSAP Text Reveal ─────────────────────────────────────── */
/* Word-level split: JS wraps words in .word > .word-inner */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.word-inner {
  display: inline-block;
  will-change: transform;
}

/* Elements hidden before GSAP initialises — only when JS loaded */
.gsap-ready [data-reveal] { visibility: hidden; }

/* Generic clip-from-bottom reveal for blocks — only hidden when GSAP loaded */
.gsap-ready [data-fade] {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}

/* Parallax image containers */
.parallax-wrap {
  overflow: hidden;
}
.parallax-inner {
  will-change: transform;
  transform-origin: center center;
}

/* ─── Custom Cursor ────────────────────────────────────────── */
@media (pointer: fine) {
  * { cursor: none !important; }

  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
    mix-blend-mode: difference;
  }

  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: width 0.45s cubic-bezier(0.16,1,0.3,1),
                height 0.45s cubic-bezier(0.16,1,0.3,1),
                border-color 0.3s;
    mix-blend-mode: difference;
  }

  .cursor-ring.hovering {
    width: 64px; height: 64px;
    border-color: rgba(255,255,255,0.9);
  }

  .cursor-dot.hovering {
    width: 5px; height: 5px;
  }
}

/* ─── Smooth scroll (Lenis sets overflow on html) ─────────── */
html.lenis { height: auto; }
html.lenis body { height: auto; }

/* ─── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  border: 1px solid;
  margin-bottom: 1rem;
}
.alert-success { background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.2); color: #4ade80; }
.alert-error   { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.2); color: #f87171; }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 3rem; }
  .contact-grid { gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --section-py: clamp(60px, 8vw, 100px); }

  .nav-right { display: none; }
  .nav-hamburger { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-scroll { display: none; }
  .service-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .service-row-text { display: none; }
  .service-row-arrow { display: none; }
  .services-list { padding-left: 0; }
  .features-grid { grid-template-columns: 1fr; }
  .about-grid.leistung-grid { grid-template-columns: 1fr; }
  .lf-lead { grid-template-columns: 1fr; gap: 1.5rem; }
  .lf-features { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .lf-item { border-right: none !important; padding: 0 !important; }
  .lf-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08) !important; padding-right: 1.5rem !important; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; aspect-ratio: 3/2; }
  .project-card { aspect-ratio: 3/2; }
  .project-card.featured .project-title { font-size: 1.35rem; }
  .project-link-arrow { opacity: 1; transform: scale(1); }
  .project-tags-row { opacity: 1; transform: translateY(0); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  /* facts now uses CSS grid — see responsive block at bottom */
  .projects-h-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .projects-h-track .project-card { scroll-snap-align: start; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
  .cta-big-btn { padding: 1.1rem 2.25rem; font-size: 1rem; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .lf-features { grid-template-columns: 1fr; }
  .lf-item:nth-child(odd) { border-right: none !important; padding-right: 0 !important; }
}

/* ─── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none; }
}

/* ─── Projekt Subpage ───────────────────────────────────────── */
.pj-back-link { font-size:0.85rem; font-weight:500; color:rgba(255,255,255,0.6); transition:color 0.2s; }
.pj-back-link:hover { color:#fff; }

/* Hero */
.pj-hero {
  background: #000;
  padding-top: clamp(110px,13vw,170px);
  padding-bottom: clamp(60px,8vw,90px);
}
.pj-h1 { margin-top:1.5rem; }
.pj-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin-top: 1.25rem;
  max-width: 680px;
}

/* Visual section: image left, meta right */
.pj-visual-section {
  background: #000;
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(80px,10vw,130px);
}
.pj-visual-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
}

/* 16:9 cover */
.pj-cover-box {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111;
  border: 1px solid rgba(255,255,255,0.07);
}
.pj-cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pj-cover-empty {
  width:100%; height:100%;
  min-height: 220px;
  display:flex; align-items:center; justify-content:center;
  color: rgba(255,255,255,0.25);
}

/* Meta column */
.pj-meta-col {
  display: flex;
  flex-direction: column;
}
.pj-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pj-meta-row:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.pj-meta-key {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.pj-meta-val { font-size:0.9rem; font-weight:600; color:#fff; }
.pj-tags { display:flex; flex-wrap:wrap; gap:0.35rem; margin-top:0.2rem; }

/* Description – white */
.pj-desc-section {
  background: #fff;
  padding-block: clamp(70px,9vw,120px);
}
.pj-desc-inner { max-width: 760px; }
.pj-sec-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}
.pj-sec-label-dark { color: rgba(0,0,0,0.5); }
.pj-desc-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(0,0,0,0.8);
}

/* Gallery – white, 3 columns, natural proportions */
.pj-gallery-section {
  background: #fff;
  padding-block: clamp(60px,8vw,100px);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.pj-gallery {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.pj-gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.07);
  aspect-ratio: 16/9;
}
.pj-gallery-item img {
  width:100%; height:100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}
.pj-gallery-item:hover img { transform: scale(1.05); }

/* Bottom nav */
.pj-bottom-nav {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 2rem;
}
.pj-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ─── Grain Texture Overlay ─────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.038;
  mix-blend-mode: overlay;
}

/* ─── Page Transition Overlay ───────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99990;
  transform: translateY(100%);   /* starts hidden below viewport */
  pointer-events: none;
}

/* ─── Horizontal scroll: projects on mobile fallback ────────── */
@media (max-width: 860px) {
  .facts-inner { grid-template-columns: repeat(2, 1fr); }
  .fact-item { border-bottom: 1px solid var(--border); }
  .fact-item:nth-child(2) { border-right: none; }
  .fact-item:nth-child(3) { border-bottom: none; }
  .fact-item:nth-child(4) { border-right: none; border-bottom: none; }
  .fact-bg-num { font-size: clamp(5rem, 20vw, 9rem); }

  .projects-h-track .project-card {
    width: 80vw;
    height: 56vw;
  }
  .projects-h-track .project-card.featured { width: 90vw; }
}
@media (max-width: 540px) {
  .facts-inner { grid-template-columns: 1fr 1fr; }
}

/* ─── Leistung Subpage Hero ──────────────────────────────────── */
.leistung-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(110px, 14vw, 160px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.leistung-hero .container { position: relative; z-index: 1; }
.leistung-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  pointer-events: none;
}

/* ─── Breadcrumb mobile ──────────────────────────────────────── */
@media (max-width: 600px) {
  .breadcrumb {
    font-size: 0.75rem;
    gap: 0.4rem;
    flex-wrap: wrap;
    row-gap: 0.2rem;
  }
  /* Truncate overlong breadcrumb items */
  .breadcrumb a,
  .breadcrumb .breadcrumb-current {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }
}

/* ─── Projekt visual grid — mobile override ─────────────────── */
/* IMPORTANT: must come AFTER .pj-visual-grid base definition   */
@media (max-width: 768px) {
  .pj-visual-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pj-cover-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-color: rgba(255,255,255,0.12);
    border-bottom: none;
  }
  .pj-cover-empty { min-height: 200px; }
  .pj-meta-col {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 0 1.25rem;
  }
  .pj-meta-row { padding: 1rem 0; }
  .pj-meta-row:first-child { border-top: none; }
  .pj-bottom-inner { flex-direction: column; gap: 1rem; }
  .pj-gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .pj-gallery { grid-template-columns: 1fr; }
  .pj-hero { padding-top: clamp(90px, 20vw, 130px); }
}

/* ─── 404 Error Page ─────────────────────────────────────────── */
.error-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(120px,16vw,180px) 0 clamp(80px,10vw,120px);
}
.error-page .container { position: relative; z-index: 1; }
.error-inner { text-align: center; }
.error-code {
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  pointer-events: none;
}

/* ─── News Cards (homepage + news list) ──────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.news-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f3f4f6 0%, #e9eaec 100%);
}
.news-card-body {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
}
.news-card-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.news-card-title {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}
.news-card-excerpt {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0 0 1rem;
  flex: 1;
}
.news-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  margin-top: auto;
  display: inline-block;
}
.news-card:hover .news-card-link { text-decoration: underline; text-underline-offset: 3px; }

/* news on dark background (homepage section-light is white, so cards are fine) */

/* ─── Artikel (single news page) ─────────────────────────────── */
.artikel-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(110px,14vw,160px) 0 clamp(60px,7vw,90px);
  text-align: left;
}
.artikel-hero .container { position: relative; z-index: 1; }
.artikel-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}
.artikel-excerpt {
  color: rgba(255,255,255,0.8);
  margin-top: 1.25rem;
  max-width: 680px;
}
.artikel-cover {
  margin: 0 0 3rem 0;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.artikel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.artikel-body {
  max-width: 860px;
  margin: 0;
  padding: 3rem 0 4rem;
  color: #fff;
  line-height: 1.85;
  font-size: 1rem;
  text-align: left;
}
.artikel-body * { text-align: left; }
.artikel-body h1,
.artikel-body h2,
.artikel-body h3 { color: #fff; margin: 2.5rem 0 0.75rem; font-weight: 700; text-align: left; }
.artikel-body h1 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
.artikel-body h2 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.artikel-body h3 { font-size: 1.05rem; }
.artikel-body p  { margin-bottom: 1.2rem; text-align: left; }
.artikel-body a  { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.artikel-body a:hover { opacity: 0.75; }
.artikel-body ul,
.artikel-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.artikel-body li { margin-bottom: 0.5rem; }
.artikel-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0 1.5rem 0;
}
.artikel-body blockquote {
  border-left: 3px solid rgba(255,255,255,0.25);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

/* ─── News responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
  .artikel-cover { border-radius: var(--radius); }
}
