@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #fff;
  color: #0d0d0d;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --orange:        #f68d2e;
  --orange-dark:   #d9751a;
  --orange-glow:   rgba(246,141,46,0.22);
  --black:         #0d0d0d;
  --ink-60:        #555;
  --ink-40:        #8a8a8a;
  --ink-20:        #c4c4c4;
  --surface-1:     #f9fafb;
  --surface-2:     #f2f5f7;
  --surface-3:     #e8ecef;
  --dark-1:        #141414;
  --dark-2:        #1c1c1c;
  --dark-3:        #242424;
  --dark-4:        #2e2e2e;

  --br-sm:  6px 0 6px 0;
  --br-md:  10px 0 10px 0;
  --br-lg:  16px 0 16px 0;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);

  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  --max-w: 1200px;
  --section-v: 96px;

  /* Type scale */
  --text-xs:      11px;
  --text-sm:      13px;
  --text-base:    15px;
  --text-lead:    17px;
  --text-card:    clamp(20px, 2vw, 26px);
  --text-section: clamp(30px, 3.5vw, 42px);
  --text-hero:    clamp(42px, 5.2vw, 72px);
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { line-height: 1.1; letter-spacing: -0.03em; }

.overline {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-40);
  display: flex; align-items: center; gap: 10px;
}
.overline::before {
  content: ''; display: block;
  width: 16px; height: 1px;
  background: currentColor; opacity: 0.4; flex-shrink: 0;
}
.overline--orange { color: var(--orange); }
.overline--light  { color: rgba(242,245,247,0.35); }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }

section { padding: var(--section-v) 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: var(--text-base); font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all 220ms var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: #fff;
  padding: 12px 26px; border-radius: var(--br-md);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--orange-glow);
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent; color: rgba(242,245,247,0.55);
  padding: 12px 0; font-weight: 500;
}
.btn-ghost:hover { color: #f2f5f7; }

.btn-ghost-dark {
  background: transparent; color: var(--ink-60);
  padding: 12px 0; font-weight: 500;
}
.btn-ghost-dark:hover { color: var(--black); }

.btn-outline-white {
  background: transparent; color: rgba(242,245,247,0.6);
  border: 1px solid rgba(242,245,247,0.2);
  padding: 11px 24px; border-radius: var(--br-md);
}
.btn-outline-white:hover {
  color: #f2f5f7; border-color: rgba(242,245,247,0.5);
}

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

/* ── Nav ─────────────────────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: all;
  display: flex; align-items: center; gap: 2px;
  width: 100%; padding: 0 48px; height: 64px;
  background: transparent;
  /* all 4 sides transparent so border shorthand doesn't fight border-bottom */
  border: 1px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  will-change: width, transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition:
    width 420ms var(--ease),
    background 420ms var(--ease),
    border-color 420ms var(--ease),
    border-radius 420ms var(--ease),
    padding 420ms var(--ease),
    height 420ms var(--ease),
    margin-top 420ms var(--ease),
    box-shadow 420ms var(--ease),
    backdrop-filter 150ms var(--ease) 300ms,
    -webkit-backdrop-filter 150ms var(--ease) 300ms;
}
.nav-inner.scrolled {
  /* fixed px width — `auto` is not interpolatable and causes a hard jump */
  width: 560px;
  height: 48px;
  background: rgba(13,13,13,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 999px;
  /* only color changes, not border shorthand — keeps transition intact */
  border-color: rgba(255,255,255,0.07);
  padding: 5px 8px 5px 20px; margin-top: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  /* blur off immediately when leaving scrolled — no delay */
  transition:
    width 420ms var(--ease),
    background 420ms var(--ease),
    border-color 420ms var(--ease),
    border-radius 420ms var(--ease),
    padding 420ms var(--ease),
    height 420ms var(--ease),
    margin-top 420ms var(--ease),
    box-shadow 420ms var(--ease),
    backdrop-filter 80ms var(--ease),
    -webkit-backdrop-filter 80ms var(--ease);
}
/* .nav-inner.light: color-only overrides for light-background pages.
   No background/backdrop change — nav stays transparent until pill. */

.nav-inner > a { display: flex; align-items: center; }
.nav-logo { display: block; height: 32px; cursor: pointer; flex-shrink: 0; margin-right: 20px; transition: height 350ms var(--ease), filter 350ms var(--ease); }
.nav-inner.scrolled .nav-logo { height: 40px; margin-right: 12px; }
.nav-inner.light.scrolled .nav-logo { filter: brightness(0) invert(1); }

.nav-links { display: flex; align-items: center; flex: 1; }

.nav-link {
  font-size: var(--text-base); font-weight: 400; cursor: pointer;
  color: rgba(242,245,247,0.5); text-decoration: none;
  padding: 6px 14px; border-radius: 999px;
  transition: color 200ms, background 200ms,
    font-size 420ms var(--ease), padding 420ms var(--ease);
  white-space: nowrap; position: relative;
}
.nav-link:hover, .nav-link.active {
  color: #f2f5f7; background: rgba(255,255,255,0.08);
}
.nav-inner.light:not(.scrolled) .nav-link { color: #888; }
.nav-inner.light:not(.scrolled) .nav-link:hover,
.nav-inner.light:not(.scrolled) .nav-link.active {
  color: var(--black); background: rgba(0,0,0,0.05);
}
.nav-inner.scrolled .nav-link {
  font-size: var(--text-sm); padding: 5px 12px;
  color: rgba(255,255,255,0.75);
}
.nav-inner.scrolled .nav-link:hover,
.nav-inner.scrolled .nav-link.active {
  color: #fff; background: rgba(255,255,255,0.1);
}

/* Dropdown */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #fff; border: 1px solid var(--surface-3);
  border-radius: var(--br-md); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: 6px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.nav-dropdown::before {
  content: ''; position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; pointer-events: all; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block; padding: 10px 14px;
  font-size: var(--text-sm); font-weight: 500; color: var(--black);
  text-decoration: none; border-radius: 6px 0 6px 0;
  transition: background 150ms, color 150ms;
}
.nav-dropdown a:hover { background: var(--surface-2); color: var(--black); }
.nav-dropdown a .dd-label {
  font-size: var(--text-xs); color: var(--ink-40); font-weight: 400;
  display: block; margin-top: 1px;
}

.nav-cta {
  font-size: var(--text-base); font-weight: 600;
  background: var(--orange); color: #fff; border: none; cursor: pointer;
  padding: 9px 22px; border-radius: var(--br-md);
  margin-left: 8px; transition: all 350ms var(--ease);
}
.nav-cta:hover { background: var(--orange-dark); }
.nav-cta:active { transform: scale(0.97); }
.nav-inner.scrolled .nav-cta {
  font-size: var(--text-base); padding: 7px 18px; border-radius: 999px; margin-left: 4px;
}

/* ── Hero (dark) ─────────────────────────────────────────── */
.hero {
  background: var(--black);
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 100px;
  position: relative; overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='46.19'%3E%3Cpath d='M0 23.1L40 0L80 23.1L40 46.19Z' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 80px 46.19px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 50%, black 20%, transparent 100%);
  opacity: 0.5;
}
.hero-glow { display: none; }
/* Two-column hero layout */
.hero-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}
.hero-content {
  position: relative; z-index: 2;
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.hero-content.visible { opacity: 1; transform: translateY(0); }

/* Right column: Lottie animation */
.hero-visual {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-lottie-wrap {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.hero-lottie-wrap lottie-player {
  display: block;
  width: 100%;
  transform: scale(2.3);
  transform-origin: center center;
}

.hero-location {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
  opacity: 0; transition: opacity 600ms 100ms ease;
}
.hero-location.visible { opacity: 1; }
.hero-location::before {
  content: ''; display: block; width: 20px; height: 1px;
  background: rgba(242,245,247,0.2);
}
.hero-location span {
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(242,245,247,0.35);
}

.hero-headline {
  font-size: var(--text-hero);
  line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 28px;
  color: #f2f5f7;
}
.hero-headline .light { font-weight: 400; }
.hero-headline .heavy { font-weight: 800; }
.hero-headline .accent { font-weight: 800; color: var(--orange); }

.hero-sub {
  font-size: var(--text-lead); font-weight: 400; line-height: 1.7;
  color: rgba(242,245,247,0.5); margin-bottom: 44px;
  max-width: 460px; letter-spacing: 0.01em;
}

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

.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 32px; border-top: 1px solid rgba(242,245,247,0.06);
}
.hero-stat-num {
  font-size: 26px; font-weight: 700; color: #f2f5f7;
  line-height: 1; letter-spacing: -0.01em;
}
.hero-stat-label {
  font-size: var(--text-xs); color: rgba(242,245,247,0.3);
  margin-top: 5px; letter-spacing: 0.03em;
}

/* ── Hero bottom variants ─────────────────────────────── */
.hero-trust-pills,
.hero-testimonial { display: none; }

.hero-trust-pills.active,
.hero-testimonial.active { display: flex; }

.hero-trust-pills {
  flex-wrap: wrap; gap: 8px;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(242,245,247,0.06);
}
.hero-trust-pills span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 500;
  color: rgba(242,245,247,0.45);
  letter-spacing: 0.02em;
}

.hero-testimonial {
  flex-direction: column; gap: 10px;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(242,245,247,0.06);
}
.hero-testimonial p {
  font-size: var(--text-sm); font-style: italic;
  color: rgba(242,245,247,0.55);
  line-height: 1.6; margin: 0;
}
.hero-testimonial-author {
  font-size: var(--text-xs); color: rgba(242,245,247,0.3);
  letter-spacing: 0.02em;
}

/* ── Section headers ─────────────────────────────────────── */
.section-header { margin-bottom: 52px; }
.section-header h2 {
  font-size: var(--text-section);
  line-height: 1.1; letter-spacing: -0.03em;
  margin-top: 14px;
}
.section-header h2 .light { font-weight: 400; }
.section-header h2 .heavy { font-weight: 800; }
.section-header p {
  font-size: var(--text-base); line-height: 1.7; color: var(--ink-40);
  margin-top: 12px; max-width: 340px;
}

.section-header-row {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 20px;
}

/* ── Service Cards ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.service-card {
  background: #fff; border: 1px solid var(--surface-3);
  border-radius: var(--br-md); padding: 28px 24px 24px;
  position: relative; overflow: hidden;
  transition: transform 240ms var(--ease), box-shadow 240ms, border-color 200ms;
  cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: transparent; border-radius: 10px 0 0 0;
  transition: background 200ms;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c8cdd2; }
.service-card:hover::before { background: var(--orange); }

.service-card-icon { width: 48px; height: 48px; margin-bottom: 20px; display: block; }
.service-card h3 { font-size: var(--text-card); font-weight: 700; line-height: 1.2; margin-bottom: 10px; letter-spacing: -0.02em; }
.service-card .service-overline {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(0,0,0,0.3); margin-bottom: 12px;
}
.service-card p { font-size: var(--text-base); line-height: 1.65; color: #666; margin-bottom: 20px; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.service-card li {
  font-size: var(--text-sm); color: #888;
  display: flex; align-items: center; gap: 8px;
}
.service-card li svg { flex-shrink: 0; opacity: 0.35; }
.service-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: var(--text-sm); font-weight: 600;
  color: var(--orange); transition: gap 200ms var(--ease);
}
.service-card:hover .service-card-link { gap: 10px; }

/* ── Tech stack band ─────────────────────────────────────── */
.tech-stack {
  display: flex; align-items: center; gap: 24px;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--surface-3);
  flex-wrap: wrap;
}
.tech-stack-group {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.tech-stack-label {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-20);
  white-space: nowrap;
}
.tech-stack-divider {
  width: 1px; height: 20px;
  background: var(--surface-3); flex-shrink: 0;
}
.tech-stack-items {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.tech-icon { height: 18px; width: auto; opacity: 0.4; }
.tech-text-badge {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em;
  color: #aaaaaa;
}

/* ── Cases ───────────────────────────────────────────────── */
.cases-grid { display: flex; flex-direction: column; gap: 24px; }

.case-card {
  background: var(--surface-1); border-radius: var(--br-lg);
  overflow: hidden; position: relative;
  box-shadow: var(--shadow-md);
  transition: box-shadow 300ms var(--ease);
}
.case-card:hover { box-shadow: var(--shadow-lg); }

.case-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  min-height: 300px;
}
.case-inner.reverse { direction: rtl; }
.case-inner.reverse > * { direction: ltr; }

.case-content {
  padding: 52px 48px; display: flex;
  flex-direction: column; justify-content: center;
}
.case-industry {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.case-industry::before {
  content: ''; display: block; width: 12px; height: 1px;
  background: var(--orange);
}
.case-card h3 {
  font-size: var(--text-card); font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 8px; line-height: 1.15;
}
.case-client {
  font-size: var(--text-sm); color: var(--ink-40); margin-bottom: 20px;
}
.case-client-logo {
  height: 28px; width: auto; display: block;
  opacity: 0.6; filter: grayscale(100%);
}
.case-desc { font-size: var(--text-base); line-height: 1.7; color: var(--ink-60); margin-bottom: 28px; }

.case-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.case-stat-num {
  font-size: 30px; font-weight: 800; color: var(--black);
  letter-spacing: -0.03em; line-height: 1;
}
.case-stat-label { font-size: var(--text-xs); color: var(--ink-40); margin-top: 4px; }

.case-quote {
  font-size: var(--text-base); line-height: 1.65; color: var(--ink-60);
  margin-top: 12px;
}

.case-visual {
  background: var(--surface-1); display: flex;
  align-items: center; justify-content: center;
  padding: 0; position: relative; overflow: hidden;
}
.case-visual::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 60% 50%, rgba(246,141,46,0.08) 0%, transparent 70%);
}
.case-visual img:not(.case-visual-photo) { width: 100%; max-width: 320px; opacity: 0.9; position: relative; z-index: 1; }
.case-visual .case-visual-photo { width: 100%; height: 100%; max-width: none; object-fit: cover; position: absolute; inset: 0; opacity: 1; }

/* ── Process ─────────────────────────────────────────────── */
.process-grid {
  display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: center;
}
.process-steps { display: flex; flex-direction: column; }
.process-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 16px; border-bottom: 1px solid var(--surface-3);
  border-radius: 0; background: transparent;
  transition: background 200ms; cursor: default;
}
.process-step:last-child { border-bottom: none; }
.process-step:hover { background: #fff; border-radius: 8px 0 8px 0; }
.process-step:hover .step-num { color: var(--orange); }


.step-num {
  font-size: var(--text-sm); font-weight: 700; color: rgba(0,0,0,0.18);
  letter-spacing: 0.05em; min-width: 28px; padding-top: 3px;
  transition: color 200ms;
}
.step-body { flex: 1; }
.step-title { font-size: var(--text-base); font-weight: 600; color: var(--black); margin-bottom: 4px; }
.step-desc { font-size: var(--text-base); line-height: 1.65; color: var(--ink-40); }


/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  background: var(--black); padding: 80px 0;
}
.cta-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 60px; flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: var(--text-section);
  color: #f2f5f7; margin: 14px 0 12px;
  line-height: 1.08;
}
.cta-banner h2 .light { font-weight: 400; }
.cta-banner h2 .heavy { font-weight: 800; }
.cta-banner h2 .accent { color: var(--orange); font-weight: 800; }
.cta-banner p { font-size: var(--text-base); line-height: 1.7; color: rgba(242,245,247,0.45); }
.cta-banner-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* ── About preview ───────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.team-photos { display: flex; gap: 16px; }
.team-photo {
  flex: 1; aspect-ratio: 3/4; background: var(--surface-2);
  border-radius: var(--br-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder {
  font-size: 28px; font-weight: 700; color: var(--ink-20);
  letter-spacing: -0.02em;
}
.team-photo-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(transparent, rgba(13,13,13,0.7));
  font-size: var(--text-sm); font-weight: 600; color: #f2f5f7;
}

.values-list { display: flex; flex-direction: column; gap: 24px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0; margin-top: 7px;
}
.value-title { font-size: var(--text-base); font-weight: 600; margin-bottom: 4px; }
.value-desc { font-size: var(--text-base); line-height: 1.65; color: var(--ink-60); }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;
  align-items: stretch;
}
.testimonial-card {
  background: #fff; border: 1px solid var(--surface-3);
  border-radius: var(--br-md); padding: 24px;
  transition: box-shadow 240ms;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-quote {
  font-size: var(--text-base); line-height: 1.7; color: var(--ink-60);
  font-style: italic; margin: 0;
  flex: 1 1 auto;
  min-height: 0;
}
.testimonial-footer {
  flex-shrink: 0;
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: var(--br-sm);
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-brand {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--surface-3);
  background: var(--surface-1);
}
.testimonial-brand[src$=".svg"] {
  object-fit: contain;
  padding: 6px;
}
.testimonial-author { font-size: var(--text-sm); font-weight: 600; color: var(--black); }
.testimonial-role { font-size: var(--text-xs); color: var(--ink-40); margin-top: 2px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--black); border-top: 1px solid var(--dark-2);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-logo { height: 72px; display: block; margin-bottom: 20px; }
.footer-tagline {
  font-size: var(--text-sm); line-height: 1.65; color: rgba(242,245,247,0.4);
  margin-bottom: 20px; max-width: 220px;
}
.footer-location {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(242,245,247,0.22);
}
.footer-col-title {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: var(--text-sm); color: rgba(242,245,247,0.4);
  text-decoration: none; transition: color 150ms;
}
.footer-col a:hover { color: #f2f5f7; }
.footer-bottom {
  border-top: 1px solid var(--dark-2); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: var(--text-xs); color: rgba(242,245,247,0.22); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: var(--text-xs); color: rgba(242,245,247,0.22);
  text-decoration: none; transition: color 150ms;
}
.footer-legal a:hover { color: rgba(242,245,247,0.6); }

/* ── Contact Modal ───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13,13,13,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 300ms var(--ease);
}
.modal-overlay.open {
  opacity: 1; pointer-events: all; visibility: visible;
}
.modal {
  background: #fff; border-radius: var(--br-lg);
  width: 100%; max-width: 560px; padding: 40px;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 300ms var(--spring);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--surface-2); border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms;
}
.modal-close:hover { background: var(--surface-3); }
.modal h2 { font-size: 28px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.03em; }
.modal .modal-sub { font-size: var(--text-base); color: var(--ink-60); margin-bottom: 28px; }

.form-row { display: flex; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; flex: 1; margin-bottom: 14px; }
.form-group label { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.03em; }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit; font-size: 16px;
  padding: 10px 12px; border: 1.5px solid var(--surface-3);
  border-radius: var(--br-sm); outline: none; color: var(--black);
  background: #fff; transition: border-color 200ms;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ── Subpage hero (light) ────────────────────────────────── */
.page-hero {
  background: var(--black); padding: 140px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px); font-weight: 800;
  color: #f2f5f7; margin: 16px 0 20px;
}
.page-hero h1 .light { font-weight: 400; }
.page-hero h1 .accent { color: var(--orange); font-weight: 800; }
.page-hero p { font-size: var(--text-lead); line-height: 1.7; color: rgba(242,245,247,0.5); max-width: 520px; }

/* ── Feature list (service subpages) ─────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
}
.feature-card {
  background: var(--surface-1); border: 1px solid var(--surface-3);
  border-radius: var(--br-md); padding: 28px 24px;
  transition: box-shadow 240ms var(--ease), transform 240ms var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card .feature-icon { width: 40px; height: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: var(--text-lead); font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: var(--text-base); line-height: 1.65; color: var(--ink-60); }

/* ── Jobs ────────────────────────────────────────────────── */
.job-card {
  background: #fff; border: 1px solid var(--surface-3);
  border-radius: var(--br-lg); padding: 32px;
  transition: box-shadow 240ms;
}
.job-card:hover { box-shadow: var(--shadow-md); }
.job-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.job-tag {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-40);
  background: var(--surface-2); padding: 4px 10px;
  border-radius: 999px;
}
.job-tag.orange { background: rgba(246,141,46,0.1); color: var(--orange); }
.job-card h3 { font-size: var(--text-card); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.job-card p { font-size: var(--text-base); line-height: 1.7; color: var(--ink-60); margin-bottom: 20px; }
.job-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.job-card li { font-size: var(--text-base); color: var(--ink-60); display: flex; gap: 10px; }
.job-card li::before { content: '—'; color: var(--orange); flex-shrink: 0; }

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ── Mobile Nav Hamburger ─────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer;
  padding: 8px; margin-left: 8px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(242,245,247,0.85); border-radius: 2px;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease), width 320ms 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; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-inner.light:not(.scrolled) .nav-hamburger span { background: rgba(13,13,13,0.7); }

/* ── Mobile menu body (inside nav-inner, hidden by default) ── */
.mobile-menu-body { display: none; }

/* ── Mobile menu content styles ──────────────────────────── */
.mobile-menu-links {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.mobile-menu-label {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange);
  padding: 20px 4px 6px; display: block;
}
.mobile-menu-label:first-child { padding-top: 0; }
.mobile-menu-links a {
  font-size: var(--text-lead); font-weight: 400;
  color: rgba(242,245,247,0.55); text-decoration: none;
  padding: 12px 4px; display: block;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 200ms;
}
.mobile-menu-links a:last-child { border-bottom: none; }
.mobile-menu-links a:hover { color: #f2f5f7; }
.mobile-menu-links a.mobile-menu-main {
  font-size: var(--text-lead); font-weight: 500;
  color: rgba(242,245,247,0.75);
}
.mobile-menu-cta { padding-top: 24px; }
.mobile-menu-cta .btn { width: 100%; justify-content: center; }

/* ── Rechtstexte (Inhalt 1:1, Typografie wie restliche Site) ─ */
.legal-page .legal-hero {
  background: var(--surface-1);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.legal-page .legal-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.legal-page .legal-hero .legal-hero-lead {
  font-size: var(--text-lead);
  line-height: 1.7;
  color: var(--ink-60);
  max-width: 520px;
}
.legal-page .legal-body {
  background: #fff;
  padding: var(--section-v) 0 120px;
}
.legal-page .legal-prose {
  max-width: 720px;
  margin: 0 auto;
}
.legal-page .legal-prose h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--black);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-page .legal-prose h2:first-child {
  margin-top: 0;
}
.legal-page .legal-prose h3 {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--black);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.legal-page .legal-prose h4 {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.35;
  color: var(--black);
  margin-top: 1.35rem;
  margin-bottom: 0.45rem;
}
.legal-page .legal-prose p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--ink-60);
  margin-bottom: 1rem;
}
.legal-page .legal-prose ul,
.legal-page .legal-prose ol {
  margin: 0 0 1.1rem 1.15rem;
  padding-left: 0.35rem;
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--ink-60);
}
.legal-page .legal-prose li {
  margin-bottom: 0.4rem;
}
.legal-page .legal-prose a {
  color: var(--orange-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.legal-page .legal-prose a:hover {
  color: var(--orange);
}
.legal-page .legal-prose strong {
  font-weight: 700;
  color: var(--black);
}
@media (max-width: 768px) {
  .legal-page .legal-hero { padding: 120px 0 64px; }
  .legal-page .legal-body { padding: 64px 0 80px; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: 1fr; gap: 48px; }
  .process-grid .process-illustration { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .case-inner { grid-template-columns: 1fr; }
  .case-inner.reverse { direction: ltr; }
  .case-visual { min-height: 240px; }
}
@media (max-width: 768px) {
  :root { --section-v: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-two-col { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { display: none; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  /* ── Mobile nav alignment: flex-start + compensated padding ─ */
  /* 11px = (48px pill - 26px logo) / 2  →  visually centered    */
  .nav-inner.scrolled {
    width: min(560px, calc(100vw - 32px));
    align-items: flex-start;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 15px;
    /* Keep the same visual outer spacing as left/right (16px). */
    margin-top: 16px;
    /* Use the actual rendered value of border-radius: 999px at h:48px.
       At 48px height, 999px caps to 24px vertically — same appearance,
       but now border-radius doesn't change during height animation → no oval */
    border-radius: 24px;
  }
  .nav-inner:not(.scrolled) { padding: 16px 20px; align-items: flex-start; }
  .nav-links, .nav-cta { display: none; }
  /* Hamburger sized to logo height (26px) so both items share
     the same top/bottom position → visually centered in the pill */
  .nav-hamburger {
    display: flex; margin-left: auto;
    width: 40px; height: 40px; padding: 12px; gap: 4px;
  }
  .nav-hamburger span { width: 16px; }

  /* ── Pill expands only in height — width/radius/margin unchanged ── */
  #site-nav.mobile-open { bottom: 0; }

  .nav-inner.mobile-open {
    height: calc(100dvh - 32px); /* 16px top + 16px bottom */
    position: relative;
    overflow: hidden;
    /* border-radius, width, margin-top, padding all inherited from
       .scrolled — nothing changes except height → clean expansion */
  }

  .nav-inner.mobile-open .mobile-menu-body {
    position: absolute;
    top: 48px; left: 0; right: 0; bottom: 0;
    padding: 4px 20px 28px;
    display: flex; flex-direction: column;
    overflow-y: auto;
    animation: mobilemenu-in 280ms var(--ease) 320ms both;
  }

  /* Preserves top alignment during close so logo doesn't
     snap to center while height is still contracting */
  .nav-inner.mobile-closing {
    align-items: flex-start;
    padding-top: 4px;
  }

  @keyframes mobilemenu-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .cta-banner-inner { flex-direction: column; align-items: flex-start; }
  .form-row { flex-direction: column; gap: 0; }
}
