/* ============ Baugeschäft M. Silge – Styles ============ */
:root {
  --ink: #151413;
  --ink-2: #1e1c1a;
  --ink-3: #2a2724;
  --paper: #f2eee7;
  --paper-2: #e7e1d6;
  --brick: #d3262d;
  --brick-dk: #a91d23;
  --line-dk: rgba(255,255,255,.12);
  --line-lt: rgba(21,20,19,.14);
  --mute-dk: rgba(255,255,255,.6);
  --mute-lt: rgba(21,20,19,.62);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2,.7,.1,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ink); color: #fff;
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
::selection { background: var(--brick); color: #fff; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typo ---------- */
.eyebrow {
  font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute-dk); margin: 0 0 24px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brick); }
.eyebrow.dark { color: var(--mute-lt); }
.h2 {
  font-family: var(--display); font-weight: 800; font-stretch: 78%;
  font-size: clamp(44px, 7.2vw, 112px); line-height: .9; letter-spacing: -.02em;
  margin: 0; text-transform: uppercase;
}
.h2 em { font-style: normal; font-weight: 300; font-stretch: 100%; color: var(--mute-dk); text-transform: none; letter-spacing: -.03em; }
.h2.dark { color: var(--ink); }
.h2.big { font-size: clamp(40px, 6.4vw, 104px); }
.dot { color: var(--brick); }
.section-lead { color: var(--mute-dk); font-size: clamp(16px, 1.35vw, 19px); max-width: 560px; margin: 28px 0 0; }

/* split-line helper */
.sl { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.sl > span { display: block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px; display: inline-flex; align-items: center; gap: 12px; height: var(--h);
  padding: 0 26px; border-radius: 999px; font: 600 15px/1 var(--body);
  border: 1px solid transparent; cursor: pointer; transition: background .35s var(--ease), color .35s, border-color .35s;
  white-space: nowrap;
}
.btn .arr { font-style: normal; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-brick { background: var(--brick); color: #fff; }
.btn-brick:hover { background: var(--brick-dk); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-items: center;
}
.loader-inner { display: flex; align-items: center; gap: 22px; }
.loader-logo { width: 120px; color: #fff; overflow: visible; }
.loader-name { font: 800 28px/1 var(--display); font-stretch: 80%; text-transform: uppercase; display: grid; gap: 4px; }
.loader-name span:first-child { font-weight: 400; font-size: 14px; letter-spacing: .2em; color: var(--mute-dk); }
.no-js .loader, .reduced .loader { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter); transition: background .4s, padding .4s, transform .5s var(--ease);
}
.nav.scrolled { background: rgba(21,20,19,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-dk); }
.nav.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand svg { width: 46px; height: auto; overflow: visible; }
.brand-text { font: 800 19px/1 var(--display); font-stretch: 80%; text-transform: uppercase; letter-spacing: .01em; display: grid; gap: 3px; }
.brand-text small { font: 500 10px/1 var(--body); letter-spacing: .22em; color: var(--mute-dk); }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.75); position: relative; padding: 6px 0; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: var(--brick); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: #fff; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-dk); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; transition: transform .4s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); padding: 110px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.mobile-menu.open { clip-path: inset(0 0 0 0); }
.mobile-menu a { font: 800 44px/1.1 var(--display); font-stretch: 78%; text-transform: uppercase; border-bottom: 1px solid var(--line-dk); padding: 12px 0; }
.mobile-menu p { margin-top: auto; color: var(--mute-dk); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 130px var(--gutter) 0; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 20%, #2a2522 0%, transparent 60%), var(--ink); }
.hero::before { /* subtle brick-joint grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image:
    linear-gradient(to bottom, #fff 1px, transparent 1px),
    linear-gradient(to right, #fff 1px, transparent 1px);
  background-size: 100% 48px, 96px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.hero-grid { position: relative; flex: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; max-width: 1360px; width: 100%; margin: 0 auto; }
.hero-title {
  font-family: var(--display); font-weight: 900; font-stretch: 72%;
  font-size: clamp(64px, 9.6vw, 168px); line-height: .84; letter-spacing: -.025em; text-transform: uppercase; margin: 0;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; white-space: nowrap; }
.hero-title .line:nth-child(2) { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.85); }
.hero-title .line:nth-child(2) .dot { -webkit-text-stroke: 0; color: var(--brick); }
.hero-title .ch { display: inline-block; will-change: transform; }
.hero-lead { max-width: 480px; color: var(--mute-dk); font-size: clamp(16px, 1.3vw, 19px); margin: 32px 0 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { position: relative; height: min(68vh, 640px); }
.hv { position: absolute; overflow: hidden; border-radius: 6px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.hv img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transform: scale(1.12); }
.hv-main { inset: 10% 6% 12% 14%; }
.hv-top { width: 38%; aspect-ratio: 4/3; top: 0; right: 0; z-index: 2; border: 6px solid var(--ink); }
.hv-bottom { width: 34%; aspect-ratio: 4/3; left: 0; bottom: 0; z-index: 2; border: 6px solid var(--ink); }
.hv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35)); }
.hero-badge { position: absolute; right: 4%; bottom: 2%; width: 128px; height: 128px; z-index: 3; display: grid; place-items: center;
  background: var(--brick); border-radius: 50%; color: #fff; }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge-ring text { font: 700 9.5px var(--body); letter-spacing: .18em; fill: #fff; }
.badge-logo { width: 46px; color: #fff; }
.badge-logo .logo-bricks { fill: #fff; }
.badge-logo text { fill: var(--brick); stroke: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-foot { position: relative; display: flex; gap: 40px; align-items: center; max-width: 1360px; width: 100%; margin: 40px auto 0;
  padding: 22px 0 26px; border-top: 1px solid var(--line-dk); font-size: 14px; color: var(--mute-dk); }
.hero-foot b { color: #fff; font-weight: 600; margin-right: 8px; }
.scroll-hint { margin-left: auto; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 20px; position: relative; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--brick); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Welcome (light) ---------- */
.welcome { background: var(--paper); color: var(--ink); padding: clamp(100px, 14vw, 200px) 0; }
.reveal-text {
  font-family: var(--display); font-weight: 500; font-stretch: 92%;
  font-size: clamp(30px, 4.4vw, 68px); line-height: 1.06; letter-spacing: -.02em; margin: 0; max-width: 1180px;
}
.reveal-text .w { opacity: .14; transition: none; }
.welcome-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); margin-top: clamp(56px, 8vw, 110px); max-width: 980px; margin-left: auto; }
.welcome-cols p { margin: 0; color: var(--mute-lt); font-size: 17px; padding-top: 22px; border-top: 1px solid var(--line-lt); }

/* ---------- Services ---------- */
.services { position: relative; padding: clamp(100px, 13vw, 180px) 0 clamp(80px, 10vw, 140px); background: var(--ink); }
.section-head { display: grid; grid-template-columns: 1fr; margin-bottom: clamp(56px, 7vw, 100px); }
.services .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; }
.services .section-head .eyebrow { grid-column: 1 / -1; }
.list-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-dk); margin: 0 0 8px; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dk); }
.svc-list li {
  position: relative; display: grid; grid-template-columns: 80px 1fr auto; align-items: center;
  padding: clamp(18px, 2.2vw, 30px) 0; border-bottom: 1px solid var(--line-dk); cursor: default; overflow: hidden;
}
.svc-list li::before { content: ""; position: absolute; inset: 0; background: var(--brick); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: 0; }
.svc-list li > * { position: relative; z-index: 1; }
.svc-list .n { font: 500 14px/1 var(--body); color: var(--mute-dk); transition: color .4s; }
.svc-list .t { font-family: var(--display); font-weight: 700; font-stretch: 80%; font-size: clamp(28px, 4.4vw, 64px); line-height: 1; text-transform: uppercase; letter-spacing: -.01em; transition: transform .55s var(--ease); }
.svc-list .a { font-size: 28px; opacity: 0; transform: translateX(-16px); transition: opacity .4s, transform .5s var(--ease); padding-right: 12px; }
@media (hover: hover) {
  .svc-list li:hover::before { transform: scaleY(1); }
  .svc-list li:hover .t { transform: translateX(18px); }
  .svc-list li:hover .n { color: #fff; }
  .svc-list li:hover .a { opacity: 1; transform: none; }
}
.svc-preview { position: fixed; left: 0; top: 0; width: 300px; aspect-ratio: 4/3; z-index: 40; pointer-events: none; border-radius: 6px; overflow: hidden;
  opacity: 0; transform: scale(.7); transition: opacity .3s, transform .45s var(--ease); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.svc-preview.on { opacity: 1; transform: scale(1); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Band ---------- */
.band { background: var(--brick); overflow: hidden; padding: 22px 0; transform: rotate(-1.5deg) scale(1.04); position: relative; z-index: 2; margin: -10px 0; }
.band-track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 48s linear infinite; }
.band span { font: 800 clamp(26px, 3vw, 42px)/1 var(--display); font-stretch: 78%; text-transform: uppercase; white-space: nowrap; }
.band i { font-style: normal; font-size: 12px; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Gallery ---------- */
.gallery { background: var(--paper); color: var(--ink); position: relative; }
.gallery-pin { height: 100vh; min-height: 640px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 90px 0 50px; }
.gallery-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.gallery-head .eyebrow { width: 100%; margin-bottom: 4px; }
.gallery-count { margin: 0 0 0 auto; font: 600 14px/1 var(--body); color: var(--mute-lt); font-variant-numeric: tabular-nums; }
.gallery-count span { color: var(--ink); font-size: 30px; font-family: var(--display); font-weight: 800; }
.gallery-track { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; align-items: center; will-change: transform; }
.g-item { height: clamp(260px, 46vh, 460px); aspect-ratio: 4/3; overflow: hidden; border-radius: 6px; cursor: zoom-in; position: relative; flex: none; background: var(--paper-2); }
.g-item.tall { aspect-ratio: 3/4; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: filter .5s; filter: saturate(.9); }
.g-item:hover img { filter: saturate(1.1); }
.gallery-progress { margin: 36px var(--gutter) 0; height: 2px; background: var(--line-lt); max-width: calc(1360px - 2 * var(--gutter)); position: relative; }
.gallery-progress span { position: absolute; inset: 0; background: var(--brick); transform-origin: left; transform: scaleX(0); }

/* ---------- About ---------- */
.about { background: var(--ink-2); padding: clamp(100px, 13vw, 180px) 0; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about-photo { position: relative; border-radius: 6px; overflow: hidden; max-width: 440px; }
.about-photo img { width: 100%; aspect-ratio: 473/600; object-fit: cover; filter: grayscale(.25) contrast(1.05); }
.about-photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 16px 18px; border-radius: 4px;
  background: rgba(21,20,19,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 2px; }
.about-photo figcaption b { font: 700 20px/1.1 var(--display); font-stretch: 85%; text-transform: uppercase; }
.about-photo figcaption span { font-size: 13px; color: var(--mute-dk); }
.about-copy > p { color: var(--mute-dk); font-size: 18px; max-width: 580px; margin: 32px 0 0; }
.pillars { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillars li { border-top: 2px solid var(--brick); padding-top: 18px; color: var(--mute-dk); font-size: 14px; line-height: 1.5; }
.pillars span { display: block; font-size: 12px; color: var(--brick); font-weight: 600; margin-bottom: 12px; }
.pillars b { display: block; color: #fff; font: 700 19px/1.15 var(--display); font-stretch: 85%; text-transform: uppercase; margin-bottom: 6px; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); padding: clamp(100px, 13vw, 180px) 0 clamp(60px, 8vw, 100px); }
.contact-head { margin-bottom: clamp(56px, 7vw, 96px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info { border-top: 1px solid var(--line-dk); }
.c-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-dk); transition: padding .4s var(--ease); }
.c-row small { font-size: 13px; color: var(--mute-dk); letter-spacing: .04em; }
.c-row span { font: 700 clamp(20px, 2.1vw, 30px)/1.1 var(--display); font-stretch: 85%; text-align: right; word-break: break-word; }
a.c-row:hover { padding-left: 10px; }
a.c-row:hover span { color: var(--brick); }
.contact-form { background: var(--ink-2); border: 1px solid var(--line-dk); border-radius: 8px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.form-title { margin: 0 0 4px; font: 800 26px/1 var(--display); font-stretch: 80%; text-transform: uppercase; }
.contact-form label { display: grid; gap: 8px; }
.contact-form label span { font-size: 13px; color: var(--mute-dk); }
.contact-form input, .contact-form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.25); color: #fff;
  font: 400 17px/1.4 var(--body); padding: 10px 0; outline: none; resize: vertical; transition: border-color .3s; border-radius: 0;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brick); }
.hint { font-size: 12px; color: var(--mute-dk); margin: 0; }
.contact-form .btn { justify-self: start; margin-top: 6px; }
.visit { margin-top: clamp(56px, 7vw, 96px); padding: clamp(28px, 4vw, 48px); border-radius: 8px; background: var(--brick);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.visit .eyebrow { color: rgba(255,255,255,.8); } .visit .eyebrow::before { background: #fff; }
.visit address { font: 700 clamp(24px, 3vw, 40px)/1.12 var(--display); font-stretch: 85%; font-style: normal; text-transform: uppercase; }
.visit .btn-ghost { border-color: rgba(255,255,255,.6); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--line-dk); padding: 40px 0 34px; overflow: hidden; }
.footer-big { font: 900 clamp(80px, 21vw, 330px)/.8 var(--display); font-stretch: 70%; text-transform: uppercase; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); white-space: nowrap; margin-bottom: 40px; }
.footer-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; font-size: 14px; color: var(--mute-dk); }
.footer-row nav { display: flex; gap: 24px; flex-wrap: wrap; margin-left: auto; }
.footer-row nav a:hover { color: #fff; }
.footer-row p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,10,.94); display: grid; place-items: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 1px solid var(--line-dk); color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.lightbox button:hover { background: var(--brick); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; margin-top: -25px; } .lb-next { right: 14px; top: 50%; margin-top: -25px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-bottom: 20px; }
  .hero-visual { height: 58vw; max-height: 520px; }
  .hero-title { font-size: 17.5vw; }
  .services .section-head { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { padding-top: 110px; }
  .hero-foot { flex-wrap: wrap; gap: 10px 24px; }
  .hero-foot .scroll-hint { display: none; }
  .hero-visual { height: 92vw; }
  .hv-main { inset: 12% 0 14% 8%; }
  .hv-top { width: 46%; } .hv-bottom { width: 44%; }
  .hero-badge { width: 96px; height: 96px; right: 0; }
  .badge-logo { width: 36px; }
  .welcome-cols { grid-template-columns: 1fr; gap: 0; }
  .welcome-cols p { padding-bottom: 22px; }
  .svc-list li { grid-template-columns: 44px 1fr; }
  .svc-list .a { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .c-row { flex-direction: column; gap: 6px; }
  .c-row span { text-align: left; }
  .gallery-pin { height: auto; min-height: 0; padding: 90px 0 70px; }
  .gallery-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .gallery-track::-webkit-scrollbar { display: none; }
  .g-item { height: 62vw; scroll-snap-align: center; }
  .g-item.tall { height: 82vw; }
  .gallery-progress { display: none; }
  .lightbox { padding: 70px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-text .w { opacity: 1; }
}
