/* ==========================================================================
   Berlin Apartment Painter: styles
   Palette pulled from Joel's own work: navy ceilings, orange kitchens, warm walls.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-wght-italic.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --paper: #f6f1e9;
  --paper-2: #efe6d8;
  --card: #fffdf9;
  --ink: #1a1e29;
  --ink-2: #2b3140;
  --muted: #5b6070;
  --line: rgba(26, 30, 41, 0.12);
  --navy: #1f3a6b;
  --navy-2: #284a86;
  --orange: #e8772e;
  --orange-2: #f2954f;
  --sage: #8ea58a;
  --wa: #25d366;
  --wa-dark: #128c4a;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(26, 30, 41, .06), 0 2px 8px rgba(26, 30, 41, .05);
  --shadow: 0 10px 30px -10px rgba(26, 30, 41, .22), 0 2px 6px rgba(26, 30, 41, .06);
  --shadow-lg: 0 30px 60px -20px rgba(26, 30, 41, .35);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 .5em; font-variation-settings: 'opsz' 96, 'SOFT' 50; }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--orange); border-radius: 2px; }
.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 999; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 1rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--orange), var(--navy));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.4rem; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .98rem; text-decoration: none; line-height: 1.2;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out), background-color .3s, color .3s;
  transform: translate3d(var(--mx-off, 0), var(--my-off, 0), 0);
  will-change: transform;
}
.btn > * { position: relative; z-index: 1; }
.btn .icon { transition: transform .4s var(--ease-spring); }
.btn::before { /* fill sweep */
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: var(--btn-hover, var(--orange));
  transform: translateX(-101%); transition: transform .5s var(--ease-out);
}
.btn::after { /* sheen */
  content: ''; position: absolute; inset: -50% auto -50% -60%; width: 40%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg) translateX(-150%); pointer-events: none;
}
.btn:hover { box-shadow: var(--shadow); transform: translate3d(var(--mx-off, 0), calc(var(--my-off, 0px) - 2px), 0); }
.btn:hover::before { transform: translateX(0); }
.btn:hover::after { animation: sheen .9s var(--ease-out); }
.btn:hover .icon:last-child { transform: translateX(4px); }
.btn:active { transform: translate3d(var(--mx-off, 0), var(--my-off, 0), 0) scale(.97); transition-duration: .1s; }
@keyframes sheen { to { transform: skewX(-20deg) translateX(450%); } }

.btn-primary { --btn-bg: var(--navy); --btn-hover: var(--orange); }
.btn-whatsapp { --btn-bg: var(--wa); --btn-fg: #06331a; --btn-hover: var(--wa-dark); }
.btn-whatsapp:hover { color: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-hover: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy); --btn-hover: var(--orange); }
.btn-light:hover { color: #fff; }
.btn-sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.05rem; }

.ripple {
  position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: rgba(255, 255, 255, .55);
  animation: ripple .7s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .4s, box-shadow .4s, transform .45s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(246, 241, 233, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); transition: height .4s var(--ease-out); }
.is-scrolled .header-inner { height: 64px; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 7px); gap: 3px; height: 30px; align-items: end; }
.brand-mark span { display: block; border-radius: 4px 4px 2px 2px; transition: height .5s var(--ease-spring); }
.brand-mark span:nth-child(1) { background: var(--navy); height: 30px; }
.brand-mark span:nth-child(2) { background: var(--orange); height: 22px; }
.brand-mark span:nth-child(3) { background: var(--sage); height: 14px; }
.brand:hover .brand-mark span:nth-child(1) { height: 16px; }
.brand:hover .brand-mark span:nth-child(2) { height: 30px; }
.brand:hover .brand-mark span:nth-child(3) { height: 24px; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-link { position: relative; text-decoration: none; font-weight: 550; font-size: .95rem; padding: .35rem 0; }
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); z-index: 60; }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform .45s var(--ease-spring), top .3s; }
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; gap: 2.5rem;
    background: var(--paper);
    clip-path: circle(0 at calc(100% - 2.6rem) 2.4rem); visibility: hidden;
    transition: clip-path .7s var(--ease-out), visibility 0s .7s;
  }
  .nav-open .main-nav { clip-path: circle(150% at calc(100% - 2.6rem) 2.4rem); visibility: visible; transition: clip-path .7s var(--ease-out); }
  .main-nav ul { flex-direction: column; align-items: center; gap: 1.1rem; }
  .nav-link { font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; }
  .main-nav li, .nav-cta { opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease-out); }
  .nav-open .main-nav li, .nav-open .nav-cta { opacity: 1; transform: none; }
  .nav-open .main-nav li:nth-child(1) { transition-delay: .15s; }
  .nav-open .main-nav li:nth-child(2) { transition-delay: .2s; }
  .nav-open .main-nav li:nth-child(3) { transition-delay: .25s; }
  .nav-open .main-nav li:nth-child(4) { transition-delay: .3s; }
  .nav-open .nav-cta { transition-delay: .38s; }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   Paint underline (animated brush stroke)
   ========================================================================== */
/* Drawn as a background so it can wrap across lines (each line gets its own stroke via
   box-decoration-break), which matters for longer German phrases on phones. */
.paint-underline {
  padding: 0 .06em; margin: 0 -.06em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M2 14c30-8 60-9 96-7s66 6 100-2c-2 5-2 9 0 13-36 5-66 1-100-1s-62 1-96 6c2-3 2-6 0-9z' fill='%23e8772e' fill-opacity='.55'/%3E%3C/svg%3E") no-repeat left 0 bottom .04em / 0% .42em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1s var(--ease-out) .25s;
}
.is-visible .paint-underline, .paint-underline.is-visible { background-size: 100% .42em; }
.paint-underline--hero { animation: brush 1.1s var(--ease-out) 1s both; transition: none; }
@keyframes brush { from { background-size: 0% .42em; } to { background-size: 100% .42em; } }

/* ==========================================================================
   Reveal on scroll / entrance
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero-in { display: inline-block; animation: heroIn 1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 100ms); }
p.hero-in, div.hero-in { display: block; }
.stats.hero-in { display: grid; }
.hero__actions.hero-in { display: flex; }
@keyframes heroIn { from { opacity: 0; transform: translateY(32px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font-size: clamp(2.7rem, 1.6rem + 4.6vw, 5.4rem); font-weight: 520; margin-bottom: 1.5rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line:last-child { overflow: visible; }
.hero__title em { font-style: italic; }
.hero__actions { gap: .85rem; flex-wrap: wrap; margin: 2rem 0 2.5rem; }

.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; margin: 0; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; }
.stats dd { order: -1; }
.stats dt { font-size: .8rem; color: var(--muted); max-width: 13ch; line-height: 1.35; }
.stats dd { margin: 0 0 .25rem; font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 560; color: var(--navy); font-variant-numeric: tabular-nums; }

.hero__visual { position: relative; }
.hero__image {
  margin: 0; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 120px; overflow: hidden;
  aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg);
  transform: translateY(var(--parallax, 0));
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; transform: scale(1.06); animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.14) translate(-2%, -1%); } }

.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none; z-index: -1; }
.hero__blob--1 { width: 520px; height: 520px; background: var(--orange-2); top: -160px; right: -120px; animation: float 16s ease-in-out infinite; }
.hero__blob--2 { width: 420px; height: 420px; background: #9fb5dc; bottom: -180px; left: -140px; animation: float 20s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }

.swatches { position: absolute; left: -2.2rem; bottom: 2.2rem; display: flex; flex-direction: column; gap: .6rem; }
.swatch {
  display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem .45rem .45rem; border-radius: 999px;
  background: rgba(255, 253, 249, .92); backdrop-filter: blur(8px); box-shadow: var(--shadow);
  font-size: .8rem; font-weight: 600; animation: bob 5s ease-in-out infinite;
  transition: transform .4s var(--ease-spring);
}
.swatch i { width: 28px; height: 28px; border-radius: 50%; }
.swatch b { font-weight: 600; }
.swatch--1 i { background: var(--navy); }
.swatch--2 { margin-left: 1.6rem; animation-delay: -1.6s; } .swatch--2 i { background: var(--orange); }
.swatch--3 { animation-delay: -3.2s; } .swatch--3 i { background: var(--sage); }
@keyframes bob { 50% { transform: translateY(-8px); } }

.hero__badge {
  position: absolute; top: -1.25rem; right: -1rem; width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; background: var(--orange); color: #fff;
  box-shadow: var(--shadow); animation: spinIn 1.2s var(--ease-spring) .9s both;
}
.hero__badge span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.hero__badge strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1; }
@keyframes spinIn { from { transform: scale(0) rotate(-120deg); } to { transform: none; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero__image { aspect-ratio: 4 / 3; }
  .swatches { left: .75rem; bottom: -1.25rem; flex-direction: row; flex-wrap: wrap; }
  .swatch--2 { margin-left: 0; }
  .hero__badge { width: 92px; height: 92px; right: .5rem; }
}
@media (max-width: 520px) {
  .stats { gap: 1.25rem; }
  .swatch b { display: none; }
  .swatch { padding: .4rem; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); padding: 1rem 0; transform: rotate(-1.2deg) scale(1.02); margin: 1rem 0 2rem; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem); font-style: italic; white-space: nowrap; padding: 0 1.4rem; display: flex; align-items: center; gap: 2.8rem; }
.marquee li::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-left: 1.4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .eyebrow { color: var(--orange-2); }
.section--dark .lead { color: rgba(246, 241, 233, .7); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.section-head--split .lead { max-width: 40ch; margin: 0; }
.section-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); }

/* ---------- Tilt + spotlight (shared by active cards) ---------- */
[data-tilt] { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; transform-style: preserve-3d; }
.spotlight {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .28), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
[data-tilt]:hover .spotlight { opacity: 1; }

/* ==========================================================================
   Service cards (flip)
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; perspective: 1400px; }
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-card { position: relative; min-height: 290px; border-radius: var(--radius); }
.service-card.reveal.is-visible { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: opacity .9s var(--ease-out), transform .5s var(--ease-out); }
.service-card:hover { z-index: 2; }
.service-card__inner {
  position: relative; height: 100%; min-height: inherit; border-radius: inherit;
  transform-style: preserve-3d; transition: transform .9s var(--ease-spring);
}
.service-card.is-flipped .service-card__inner { transform: rotateY(180deg); }
.service-card__face {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.75rem;
  display: flex; flex-direction: column; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.service-card__front { background: var(--card); box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: box-shadow .4s, border-color .4s; }
.service-card:hover .service-card__front { box-shadow: var(--shadow); border-color: transparent; }
.service-card__back { background: var(--navy); color: #fff; transform: rotateY(180deg); justify-content: center; box-shadow: var(--shadow); }
.service-card__back p { color: rgba(255, 255, 255, .85); font-size: .95rem; }
.service-card__back .btn { align-self: flex-start; margin-top: .5rem; }
.service-card h3 { margin: 0 0 .5rem; }
.service-card__front p { color: var(--muted); font-size: .95rem; margin: 0; }
.service-card__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; margin-bottom: auto;
  background: var(--paper-2); color: var(--navy); transition: transform .6s var(--ease-spring), background-color .4s, color .4s;
}
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-card__icon { transform: rotate(-8deg) scale(1.1); background: var(--orange); color: #fff; }
.service-card__front h3 { margin-top: 1.5rem; }
.service-card__flip {
  position: absolute; top: 1.25rem; right: 1.25rem; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent; display: grid; place-items: center;
  transition: transform .5s var(--ease-spring), background-color .3s, border-color .3s, color .3s;
}
.service-card__flip:hover { transform: rotate(90deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.service-card__flip--back { border-color: rgba(255, 255, 255, .3); color: #fff; }
.service-card__flip--back:hover { background: #fff; color: var(--navy); border-color: #fff; }
.service-card { cursor: pointer; }

/* ==========================================================================
   Project cards
   ========================================================================== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; perspective: 1400px; }
@media (max-width: 960px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius-lg);
  background: var(--card); overflow: hidden; box-shadow: var(--shadow-sm);
}
.project-card.reveal.is-visible { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: opacity .9s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s; }
.project-card:hover { box-shadow: var(--shadow-lg); }
.project-card__media { margin: 0; aspect-ratio: 4 / 3.2; overflow: hidden; position: relative; }
.project-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(26, 30, 41, .35)); opacity: 0; transition: opacity .5s; }
.project-card:hover .project-card__media::after { opacity: 1; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.project-card:hover .project-card__media img { transform: scale(1.08); }
.project-card__body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.project-card__body p { color: var(--muted); font-size: .95rem; }
.project-card__meta { display: flex; align-items: center; gap: .75rem; font-size: .82rem; color: var(--muted); margin-bottom: .85rem; flex-wrap: wrap; }
.chip { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: var(--paper-2); color: var(--navy); font-weight: 600; font-size: .75rem; }
.project-card__cta { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--navy); }
.project-card__cta .icon { transition: transform .45s var(--ease-spring); }
.project-card:hover .project-card__cta .icon { transform: translateX(6px); }
.project-card:hover .project-card__cta { color: var(--orange); }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-media { position: relative; padding: 0 12% 14% 0; }
.about-media figure { margin: 0; overflow: hidden; }
.about-media__main { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.6; transform: translateY(var(--parallax, 0)); }
.about-media__main img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.about-media__float {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; border-radius: var(--radius);
  border: 6px solid var(--paper); box-shadow: var(--shadow-lg); transition: transform .6s var(--ease-spring);
}
.about-media__float img { width: 100%; height: 100%; object-fit: cover; }
.about-media:hover .about-media__float { transform: rotate(-3deg) scale(1.04); }
.about-copy p { color: var(--ink-2); }
.timeline { list-style: none; padding: 0; margin: 2rem 0 2.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: t; }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }
.timeline li { position: relative; padding: 1.1rem 1.1rem 1.1rem; border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow-sm); border-top: 3px solid var(--orange); transition: transform .4s var(--ease-spring), box-shadow .4s; }
.timeline li:nth-child(2) { border-top-color: var(--navy); }
.timeline li:nth-child(3) { border-top-color: var(--sage); }
.timeline li:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.timeline strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.timeline span { font-size: .88rem; color: var(--muted); line-height: 1.4; display: block; margin-top: .2rem; }

/* ==========================================================================
   Audience (dark)
   ========================================================================== */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; perspective: 1200px; }
@media (max-width: 860px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
  position: relative; padding: 2rem; border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .4s, border-color .4s;
}
.audience-card.reveal.is-visible { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: opacity .9s var(--ease-out), transform .5s var(--ease-out), background-color .4s, border-color .4s; }
.audience-card:hover { background: rgba(255, 255, 255, .08); border-color: rgba(232, 119, 46, .6); }
.audience-card .spotlight { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(232, 119, 46, .22), transparent 50%); }
.audience-card__num { font-family: var(--font-display); font-style: italic; font-size: 3.2rem; line-height: 1; color: var(--orange-2); display: block; margin-bottom: 1.5rem; transition: transform .6s var(--ease-spring); }
.audience-card:hover .audience-card__num { transform: translateX(8px) rotate(-6deg); }
.audience-card p { color: rgba(246, 241, 233, .72); margin: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.section--contact { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-methods { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .75rem; }
.contact-method {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem;
  border-radius: var(--radius); background: var(--card); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-spring), box-shadow .4s;
}
a.contact-method:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.contact-method small { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.contact-method > span:last-child { font-weight: 600; word-break: break-word; }
.contact-method__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--paper-2); color: var(--navy); flex: none; transition: background-color .3s, color .3s, transform .5s var(--ease-spring); }
a.contact-method:hover .contact-method__icon { background: var(--navy); color: #fff; transform: rotate(-10deg); }
.contact-method--wa .contact-method__icon { background: rgba(37, 211, 102, .15); color: var(--wa-dark); }
.contact-method--wa:hover .contact-method__icon { background: var(--wa) !important; color: #fff !important; }
.contact-method .ripple { background: rgba(31, 58, 107, .15); }

.contact-form {
  position: relative; background: var(--card); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg); display: grid; gap: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 1.45rem 1rem .55rem; outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6070' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.5rem; }
.field input[type="date"] { min-height: 3.6rem; }
.field label {
  position: absolute; left: 1rem; top: 1.05rem; color: var(--muted); pointer-events: none; font-size: 1rem;
  transform-origin: left top; transition: transform .3s var(--ease-out), color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(31, 58, 107, .1); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label, .field input[type="date"] + label { transform: translateY(-.62rem) scale(.76); }
.field input:focus + label, .field textarea:focus + label, .field select:focus + label { color: var(--navy); }
.field.has-error input, .field.has-error textarea { border-color: #c2410c; background: #fff7f2; animation: shake .45s var(--ease-out); }
.field-error { display: block; font-size: .8rem; color: #c2410c; margin-top: .35rem; padding-left: .25rem; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; }

.btn-submit { justify-self: start; min-width: 210px; }
.btn-submit__spinner { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; opacity: 0; z-index: 2; }
.is-loading .btn-submit { pointer-events: none; }
.is-loading .btn-submit > :not(.btn-submit__spinner) { opacity: 0; }
.is-loading .btn-submit__spinner { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status:empty { display: none; }
.form-status { padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: #fff4e8; color: #7a3a0c; font-size: .95rem; animation: heroIn .5s var(--ease-out); }
.form-status a { font-weight: 600; }
.form-success {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem;
  animation: heroIn .6s var(--ease-out);
}
.form-success[hidden] { display: none; }
.form-success__check { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--wa); color: #fff; margin-bottom: 1.25rem; animation: pop .7s var(--ease-spring) .1s both; }
.form-success__check .icon { width: 42px; height: 42px; stroke-width: 2.5; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s var(--ease-out) .5s forwards; }
@keyframes pop { from { transform: scale(0); } to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success p { color: var(--muted); max-width: 36ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(4rem, 8vw, 6rem) 0 2rem; }
.footer-cta { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-cta .eyebrow { color: var(--orange-2); }
.footer-big-link {
  display: block; width: fit-content; font-family: var(--font-display); font-size: clamp(2.2rem, 1.2rem + 5vw, 5rem);
  font-weight: 500; line-height: 1.05; text-decoration: none; letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--orange-2), var(--orange-2)) no-repeat left bottom / 0 3px;
  transition: background-size .6s var(--ease-out), color .4s;
}
.footer-big-link:hover { background-size: 100% 3px; color: var(--orange-2); }
.footer-big-link--sm { font-size: clamp(1.2rem, .9rem + 1.6vw, 2rem); margin-top: .75rem; font-style: italic; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.brand--footer .brand-text small, .site-footer .muted { color: rgba(246, 241, 233, .6); }
.brand--footer { margin-bottom: 1rem; }
.footer-heading { font-family: var(--font-body); font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 241, 233, .55); margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: rgba(246, 241, 233, .85); transition: color .3s, transform .4s var(--ease-spring); }
.footer-links a:hover { color: var(--orange-2); transform: translateX(5px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom p { margin: 0; }
.to-top { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); background: transparent; color: var(--paper); display: grid; place-items: center; transition: transform .5s var(--ease-spring), background-color .3s, color .3s; }
.to-top:hover { transform: translateY(-5px); background: var(--orange); border-color: var(--orange); color: #fff; }

/* ==========================================================================
   WhatsApp float
   ========================================================================== */
.whatsapp-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 40;
  display: flex; align-items: center; gap: 0; height: 62px; padding: 0 17px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; box-shadow: 0 12px 30px -8px rgba(18, 140, 74, .6);
  transform: translate3d(var(--mx-off, 0), var(--my-off, 0), 0);
  transition: transform .4s var(--ease-spring), box-shadow .4s, gap .5s var(--ease-out);
  animation: popIn .8s var(--ease-spring) 1.6s both;
}
.whatsapp-float .icon { width: 28px; height: 28px; transition: transform .6s var(--ease-spring); }
.whatsapp-float::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--wa); z-index: -1; animation: pulse 2.6s ease-out 2.5s infinite; }
.whatsapp-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; transition: max-width .55s var(--ease-out); }
.whatsapp-float:hover { gap: .6rem; box-shadow: 0 18px 40px -10px rgba(18, 140, 74, .7); }
.whatsapp-float:hover .whatsapp-float__label { max-width: 200px; }
.whatsapp-float:hover .icon { transform: rotate(-12deg) scale(1.08); }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes popIn { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(17, 20, 28, .92); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: min(92vw, 1100px); text-align: center; transform: scale(.92); transition: transform .5s var(--ease-spring); }
.lightbox.is-open .lightbox__figure { transform: none; }
.lightbox__figure img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__figure figcaption { color: rgba(255, 255, 255, .8); margin-top: 1rem; font-size: .95rem; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; transition: background-color .3s, transform .4s var(--ease-spring); }
.lightbox button:hover { background: var(--orange); transform: scale(1.1); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav--prev { left: 1.25rem; top: 50%; margin-top: -26px; }
.lightbox__nav--next { right: 1.25rem; top: 50%; margin-top: -26px; }
.lightbox.is-single .lightbox__nav { display: none; }

/* ==========================================================================
   Project page
   ========================================================================== */
.project-hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.project-hero h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.6rem); max-width: 18ch; margin-top: .5rem; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; color: var(--navy); margin-bottom: 2rem; }
.back-link .icon { transition: transform .4s var(--ease-spring); }
.back-link:hover .icon { transform: translateX(-6px); }
.project-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-bottom: clamp(3rem, 6vw, 5rem); }
@media (max-width: 900px) { .project-layout { grid-template-columns: 1fr; } }
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.project-gallery--single { grid-template-columns: 1fr; }
@media (max-width: 560px) { .project-gallery { grid-template-columns: 1fr; } }
.gallery-item { margin: 0; }
.gallery-item__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: none; box-shadow: var(--shadow); cursor: zoom-in; }
.gallery-item__btn img { width: 100%; transition: transform 1s var(--ease-out); }
.gallery-item__btn:hover img { transform: scale(1.05); }
.gallery-item__zoom { position: absolute; right: 1rem; bottom: 1rem; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease-spring); }
.gallery-item__btn:hover .gallery-item__zoom, .gallery-item__btn:focus-visible .gallery-item__zoom { transform: none; }
.gallery-item figcaption { font-size: .88rem; color: var(--muted); margin-top: .75rem; }
.project-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--card); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.project-aside p { color: var(--ink-2); }
.project-aside__actions { display: grid; gap: .7rem; margin-top: 1.5rem; }
.project-aside__actions .btn { width: 100%; }
.next-project { padding-bottom: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 5vw, 4rem); }
.next-project__link { display: inline-flex; align-items: center; gap: 1rem; font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 4vw, 4.2rem); text-decoration: none; letter-spacing: -.02em; transition: color .4s; }
.next-project__link .icon { width: .8em; height: .8em; transition: transform .5s var(--ease-spring); }
.next-project__link:hover { color: var(--orange); }
.next-project__link:hover .icon { transform: translateX(14px) rotate(-12deg); }

/* ---------- 404 ---------- */
.notfound { text-align: center; min-height: 60vh; display: grid; place-items: center; }
.notfound .lead { margin-inline: auto; }
.notfound__code { font-family: var(--font-display); font-size: clamp(6rem, 4rem + 12vw, 12rem); line-height: 1; margin: 0 0 1rem; color: var(--navy); font-weight: 600; }
.drip { position: relative; display: inline-block; color: var(--orange); }
.drip::after { content: ''; position: absolute; left: 50%; top: 88%; width: .12em; margin-left: -.06em; height: 0; background: var(--orange); border-radius: 0 0 1em 1em; animation: drip 2.4s var(--ease-out) .6s infinite; }
@keyframes drip { 0% { height: 0; opacity: 1; } 70% { height: .45em; opacity: 1; } 100% { height: .5em; opacity: 0; } }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-delay: 0s !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Late tweaks ---------- */
.next-project .eyebrow { display: flex; }
@media (max-width: 560px) {
  .service-card { min-height: 230px; }
  .service-card__front h3 { margin-top: 1.25rem; }
}

/* ==========================================================================
   Language switch (EN / DE)
   ========================================================================== */
.header-tools { display: flex; align-items: center; gap: .75rem; position: relative; z-index: 60; }
.lang-switch {
  --w: 44px;
  position: relative; display: inline-grid; grid-template-columns: repeat(2, var(--w)); padding: 4px; border-radius: 999px;
  background: rgba(26, 30, 41, .06); box-shadow: inset 0 0 0 1px var(--line); isolation: isolate;
}
.lang-switch__opt {
  position: relative; z-index: 1; display: grid; place-items: center; height: 32px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; color: var(--muted);
  transition: color .35s var(--ease-out), transform .3s var(--ease-spring);
}
.lang-switch__opt:hover { color: var(--ink); transform: translateY(-1px); }
.lang-switch__opt.is-active { color: #fff; }
.lang-switch__thumb {
  position: absolute; z-index: 0; top: 4px; left: 4px; width: var(--w); height: 32px; border-radius: 999px;
  background: var(--navy); box-shadow: 0 4px 12px -4px rgba(31, 58, 107, .55);
  transition: transform .45s var(--ease-spring), background-color .3s;
}
.lang-switch[data-current="de"] .lang-switch__thumb { transform: translateX(var(--w)); }
.lang-switch:hover .lang-switch__thumb { background: var(--orange); }
.nav-open .lang-switch { background: rgba(26, 30, 41, .08); }

/* page fade when switching language */
main, .site-footer { transition: opacity .3s var(--ease-out), filter .3s var(--ease-out); }
body.is-leaving main, body.is-leaving .site-footer { opacity: 0; filter: blur(4px); }

@media (min-width: 981px) and (max-width: 1140px) {
  .main-nav { gap: 1.1rem; }
  .main-nav ul { gap: 1.05rem; }
  .brand-text strong { font-size: 1rem; }
}
@media (max-width: 380px) {
  .brand-text small { display: none; }
  .lang-switch { --w: 38px; }
}

/* German copy runs longer: scale the big headings down a touch */
html[lang="de"] .hero__title { font-size: clamp(2.3rem, 1.3rem + 3.5vw, 4.5rem); }
html[lang="de"] .section-title { font-size: clamp(1.85rem, 1.3rem + 2.3vw, 3.2rem); hyphens: auto; }
html[lang="de"] .project-hero h1 { hyphens: auto; }

@media (max-width: 520px) {
  .brand { gap: .5rem; }
  .brand-text strong { font-size: .92rem; white-space: nowrap; }
  .brand-text small { font-size: .64rem; }
  .brand-mark { grid-template-columns: repeat(3, 6px); height: 26px; }
  .lang-switch { --w: 38px; }
  .header-tools { gap: .5rem; }
}
