/* =========================================================
   Sari Bau GmbH & Co. KG – Website
   Farben aus dem Originallogo: Rot, Anthrazit, Weiß
   ========================================================= */
:root {
  --red: #f00000;
  --red-dark: #c80000;
  --anth: #3f403f;
  --ink: #26282a;
  --dark: #1e2022;
  --muted: #676b6e;
  --line: #e2e0dc;
  --tint: #f5f4f2;
  --paper: #ffffff;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --font: "Helvetica Neue", Helvetica, Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --hdr: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* ---------- Typo ---------- */
.kicker { display: flex; align-items: center; gap: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--anth); margin-bottom: 28px; }
.sec-dark .kicker { color: rgba(255,255,255,.7); }
/* Doppellinie wie im Logo: Rot über Anthrazit */
.dl { display: inline-block; width: 34px; height: 7px; flex: none; background: linear-gradient(var(--red) 0 2px, transparent 2px 5px, var(--anth) 5px 7px); }
.sec-dark .dl { background: linear-gradient(var(--red) 0 2px, transparent 2px 5px, #fff 5px 7px); }
.h2 { font-size: clamp(2.2rem, 4.6vw, 4.3rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; margin-bottom: 32px; }
.display { font-size: clamp(3.4rem, 11vw, 9.5rem); line-height: .9; letter-spacing: -.04em; font-weight: 800; text-transform: uppercase; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink); margin-bottom: 20px; }
.sec p:not(.kicker):not(.lead):not(.mega):not(.mega-label) { color: var(--muted); }
.sec-dark p:not(.kicker) { color: rgba(255,255,255,.66); }
.sec-dark .lead { color: rgba(255,255,255,.88) !important; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 18px; padding: 20px 30px; font-size: .86rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; overflow: hidden; isolation: isolate; transition: color .5s var(--ease), border-color .5s var(--ease); }
.btn span { position: relative; }
.btn-solid { background: var(--anth); color: #fff; }
.btn-solid::before { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); z-index: -1; }
.btn-solid:hover::before, .btn-solid:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn-line { border: 1.5px solid var(--anth); color: var(--anth); }
.btn-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.btn-line:hover::after, .btn-line:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.arr { position: relative; display: inline-block; width: 26px; height: 1.5px; background: currentColor; transition: transform .6s var(--ease), width .6s var(--ease); flex: none; }
.arr::after { content: ""; position: absolute; right: 0; top: 50%; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.btn:hover .arr { transform: translateX(6px); }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: height .6s var(--ease), box-shadow .6s var(--ease); }
.hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.hdr.scrolled { height: 72px; }
.hdr.scrolled::after { transform: scaleX(1); }
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: none; }
.brand img { height: 66px; width: auto; transition: height .6s var(--ease); }
.hdr.scrolled .brand img { height: 46px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav a { position: relative; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; }
.nav a:not(.nav-phone)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-phone { white-space: nowrap; border: 1.5px solid var(--anth); padding: 10px 16px !important; transition: background .5s var(--ease), color .5s var(--ease); }
.nav-phone:hover { background: var(--anth); color: #fff; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--anth); transition: transform .5s var(--ease), background .3s; }
.burger span:first-child { top: 17px; background: var(--red); }
.burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; padding-top: var(--hdr); }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vh, 80px) clamp(16px, 4vw, 64px) clamp(48px, 8vh, 96px) max(clamp(16px, 4vw, 48px), calc((100vw - 1320px) / 2 + 48px)); }
.hero-title { font-size: clamp(2.1rem, min(5.1vw, 8.6vh), 4.9rem); line-height: .9; letter-spacing: -.045em; font-weight: 800; text-transform: uppercase; color: var(--anth); margin-bottom: clamp(20px, 4vh, 36px); }
.hero-title em { font-style: normal; color: var(--red); }
.hero-title .nw { white-space: nowrap; }
.mask { display: block; overflow: hidden; padding-top: .16em; margin-top: -.16em; padding-bottom: .04em; }
.mask > span { display: block; }
.hero-sub { font-size: clamp(1.1rem, 1.5vw, 1.35rem); max-width: 30em; color: var(--ink); margin-bottom: clamp(24px, 4vh, 40px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(36px, 7vh, 72px); }
.stats { display: flex; flex-wrap: wrap; gap: 20px clamp(22px, 2.4vw, 36px); margin: 0; }
.stats > div { position: relative; padding-top: 18px; }
.stats > div::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 2px; background: var(--red); }
.stats dt { font-size: clamp(1.6rem, 2.1vw, 2.05rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--anth); font-variant-numeric: tabular-nums; }
.stats dd { margin: 8px 0 0; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.hero-visual { position: relative; overflow: hidden; background: var(--dark); animation: clipIn 1.8s var(--ease-io) .1s both; }
.hero-media { position: absolute; inset: 0; overflow: hidden; animation: heroZoom 3.2s var(--ease) .1s both; }
.hero-img { position: absolute; left: 0; width: 100%; top: -22%; height: 124%; object-fit: cover; will-change: transform;  object-position: 30% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(18,20,22,.55)); pointer-events: none; }
.media-note { position: absolute; left: 28px; bottom: 28px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.scroll-hint { position: absolute; right: 32px; bottom: 0; width: 1.5px; height: 96px; background: rgba(255,255,255,.18); overflow: hidden; }
.scroll-hint i { position: absolute; inset: 0; background: #fff; animation: scrollHint 2.4s var(--ease-io) 2s infinite; transform: translateY(-100%); }
.hero-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; pointer-events: none; }
.hero-rule i { position: absolute; left: 0; right: 0; height: 3px; transform-origin: left; animation: drawX 2s var(--ease-io) both; }
.hero-rule i:first-child { top: 0; background: var(--red); animation-delay: 1.1s; }
.hero-rule i:last-child { bottom: 0; background: var(--anth); animation-delay: 1.25s; }

.load-rise { animation: rise 1.5s var(--ease) var(--d, 0s) both; }
.load-up { animation: fadeUp 1.4s var(--ease) var(--d, 0s) both; }

@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes clipIn { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes heroZoom { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes drawX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes scrollHint { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Scroll-Reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(42px); transition: opacity 1.3s var(--ease), transform 1.5s var(--ease), clip-path 1.6s var(--ease-io); }
.js [data-reveal="scale"] { transform: translateY(30px) scale(.94); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(22% 0 0 0); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="clip"].in { clip-path: inset(0); }
.js [data-stagger] > * { opacity: 0; transform: translateY(32px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
.js [data-stagger].in > * { opacity: 1; transform: none; }

/* ---------- Sektionen ---------- */
.sec { padding: clamp(96px, 12vw, 176px) 0; }
.sec-tint { background: var(--tint); }
.sec-dark { background: var(--dark); color: #fff; }
.sec-head { margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.sec-head.row .h2 { margin-bottom: 0; }
.sec-side { max-width: 22em; }
.sec-sub { margin-top: 18px; font-size: clamp(.9rem, 1.4vw, 1.1rem); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 128px); align-items: start; }

/* ---------- Film ---------- */
.film-sec { padding: clamp(96px, 12vw, 176px) 0 clamp(64px, 8vw, 120px); }
.film { max-width: 1180px; margin: 0 auto; }
.stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #fff; container-type: inline-size; outline: 1px solid var(--line); outline-offset: -1px; }
.film-ctrl { display: flex; align-items: center; gap: 20px; padding: 18px 0; }
.film-play { width: 48px; height: 48px; flex: none; border: 1.5px solid var(--anth); position: relative; transition: background .4s, border-color .4s; }
.film-play:hover { background: var(--anth); }
.film-play:hover i { border-left-color: #fff; }
.film-play:hover i::before, .film-play:hover i::after { background: #fff; }
.film-play i { position: absolute; left: 50%; top: 50%; width: 0; height: 0; border-left: 12px solid var(--anth); border-top: 7px solid transparent; border-bottom: 7px solid transparent; transform: translate(-35%, -50%); }
.film.playing .film-play i { border: 0; width: 12px; height: 14px; transform: translate(-50%, -50%); }
.film.playing .film-play i::before, .film.playing .film-play i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3.5px; background: var(--anth); }
.film.playing .film-play i::before { left: 0; } .film.playing .film-play i::after { right: 0; }
.film-prog { flex: 1; display: flex; gap: 4px; }
.film-prog button { position: relative; height: 22px; padding: 0; }
.film-prog button::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line); }
.film-prog button i { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }
.film-time { font-size: .8rem; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }

.scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease-io), visibility 0s .9s; }
.scene.on, .scene.pre { opacity: 1; visibility: visible; transition: opacity .9s var(--ease-io); }
.scene.out { opacity: 0; visibility: visible; }
.scene.light { background: #fff; color: var(--anth); }
.scene.dark { background: var(--dark); color: #fff; }
.s-kicker { position: absolute; top: 7cqi; left: 0; right: 0; font-size: 1.3cqi; font-weight: 700; letter-spacing: .4em; text-transform: uppercase; opacity: .55; }

/* Animationsziele: Grundzustand -> Endzustand (.on/.out/.pre) */
.fd { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.fd.thin { stroke-width: 1.2; opacity: .6; }
.fd.red { stroke: var(--red); stroke-width: 3.5; }
.on .fd { transition: stroke-dashoffset 1.8s var(--ease-io) var(--d, 0s); }
.on .fd.red { transition-delay: calc(var(--d, 0s) + .5s); }
.on .fd, .out .fd, .pre .fd { stroke-dashoffset: 0; }

/* S1 Logo */
.logo-build { width: 56cqi; clip-path: inset(0 100% 0 0); transform: scale(1.04); }
.on .logo-build { transition: clip-path 2s var(--ease-io) .3s, transform 3.2s var(--ease) .3s; }
.on .logo-build, .out .logo-build, .pre .logo-build { clip-path: inset(0); transform: none; }
.s1-a, .s1-b { text-transform: uppercase; opacity: 0; }
.s1-a { margin-top: 4.5cqi; font-size: 2.2cqi; font-weight: 800; letter-spacing: .9em; }
.s1-b { margin-top: 1cqi; font-size: 1.2cqi; letter-spacing: 1em; color: var(--muted); }
.on .s1-a { transition: opacity 1.4s ease 2s, letter-spacing 2.4s var(--ease) 2s; }
.on .s1-b { transition: opacity 1.4s ease 2.5s, letter-spacing 2.4s var(--ease) 2.5s; }
.on .s1-a, .out .s1-a, .pre .s1-a { opacity: 1; letter-spacing: .45em; }
.on .s1-b, .out .s1-b, .pre .s1-b { opacity: 1; letter-spacing: .5em; }

/* S2 Erfahrung */
.big-num { font-size: 21cqi; line-height: .85; font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(2cqi); }
.on .big-num { transition: opacity 1.4s ease .2s, transform 2s var(--ease) .2s; }
.on .big-num, .out .big-num, .pre .big-num { opacity: 1; transform: none; }
.rule { display: block; width: 12cqi; height: 3px; background: var(--red); margin: 3.2cqi 0 2.4cqi; transform: scaleX(0); }
.on .rule { transition: transform 1.6s var(--ease-io) 1s; }
.on .rule, .out .rule, .pre .rule { transform: scaleX(1); }
.big-label { font-size: 2cqi; font-weight: 700; letter-spacing: .4em; text-transform: uppercase; opacity: 0; }
.on .big-label { transition: opacity 1.4s ease 1.6s; }
.on .big-label, .out .big-label, .pre .big-label { opacity: 1; }

/* S3 Unternehmen */
.s3 { flex-direction: row; gap: 5cqi; padding: 0 7cqi; }
.s3-build { width: 46cqi; flex: none; color: rgba(255,255,255,.85); }
.s3-text { text-align: left; }
.s3-text p { white-space: nowrap; font-size: 5.4cqi; line-height: 1.12; font-weight: 800; letter-spacing: -.03em; opacity: 0; transform: translateY(2.4cqi); }
.s3-text p:nth-child(2) { color: var(--red); }
.on .s3-text p { transition: opacity 1.2s ease var(--d), transform 1.6s var(--ease) var(--d); }
.on .s3-text p, .out .s3-text p, .pre .s3-text p { opacity: 1; transform: none; }

/* S4 Leistungen – jeder Begriff eigene Animation */
.s4-list li { font-size: 7.4cqi; line-height: 1.04; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
.s4-list .a1 { opacity: 0; transform: translateY(3cqi); }
.s4-list .a2 { clip-path: inset(0 100% 0 0); }
.s4-list .a3 { opacity: 0; letter-spacing: .5em; }
.s4-list .a4 { opacity: 0; transform: scale(1.18); color: var(--red); }
.on .s4-list .a1 { transition: opacity 1.2s ease var(--d), transform 1.6s var(--ease) var(--d); }
.on .s4-list .a2 { transition: clip-path 1.6s var(--ease-io) var(--d); }
.on .s4-list .a3 { transition: opacity 1.4s ease var(--d), letter-spacing 2s var(--ease) var(--d); }
.on .s4-list .a4 { transition: opacity 1.2s ease var(--d), transform 2s var(--ease) var(--d); }
.on .s4-list li, .out .s4-list li, .pre .s4-list li { opacity: 1; transform: none; clip-path: inset(0); }
.on .s4-list .a3, .out .s4-list .a3, .pre .s4-list .a3 { letter-spacing: -.02em; }

/* S5 Was wir bauen */
.s5-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 4cqi 1.5cqi; padding: 0 3cqi; margin-top: 3cqi; }
.s5-grid li { width: 17.5cqi; display: flex; flex-direction: column; align-items: center; gap: 2cqi; font-size: 1.2cqi; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; opacity: 0; transform: translateY(2cqi); }
.s5-grid svg { width: 11cqi; color: rgba(255,255,255,.9); overflow: visible; }
.on .s5-grid li { transition: opacity 1.2s ease var(--d), transform 1.6s var(--ease) var(--d); }
.on .s5-grid li, .out .s5-grid li, .pre .s5-grid li { opacity: 1; transform: none; }

/* S6 Projekte */
.s6-imgs { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.s6-imgs img { width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.18); }
.on .s6-imgs img { transition: clip-path 1.6s var(--ease-io) var(--d), transform 5s var(--ease) var(--d); }
.on .s6-imgs img, .out .s6-imgs img, .pre .s6-imgs img { clip-path: inset(0); transform: none; }
.s6::after { content: ""; position: absolute; inset: 0; background: rgba(20,22,24,.62); opacity: 0; }
.on.s6::after { transition: opacity 1.2s ease 2s; }
.on.s6::after, .out.s6::after, .pre.s6::after { opacity: 1; }
.s6-num { position: relative; z-index: 2; }
.big-num.word { font-size: 13cqi; line-height: 1; letter-spacing: -.045em; margin-bottom: 1.6cqi; }
.big-num.word em { font-style: normal; color: var(--red); }
.s6 .big-num, .s6 .big-label { opacity: 0; }
.on.s6 .big-num { transition: opacity 1.2s ease 2.1s, transform 2s var(--ease) 2.1s; }
.on.s6 .big-label { transition: opacity 1.2s ease 2.6s; }
.on.s6 .big-num, .on.s6 .big-label, .out.s6 .big-num, .out.s6 .big-label, .pre.s6 .big-num, .pre.s6 .big-label { opacity: 1; }

/* S7 Region */
.s7-map { width: 58cqi; color: var(--anth); overflow: visible; }
.s7-map .towns { opacity: 0; }
.s7-map .towns circle { fill: var(--anth); }
.s7-map text { font-family: var(--font); font-size: 13px; fill: var(--muted); letter-spacing: .06em; }
.on .s7-map .towns { transition: opacity 1.4s ease .9s; }
.on .s7-map .towns, .out .s7-map .towns, .pre .s7-map .towns { opacity: 1; }
.s7-map .home { fill: var(--red); }
.s7-map .pulse { fill: none; stroke: var(--red); stroke-width: 1.5; transform-origin: 300px 230px; transform-box: view-box; opacity: 0; }
.on .s7-map .pulse { animation: pulse 2.4s var(--ease) .4s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(4); opacity: 0; } }
.s7-text { margin-top: 2cqi; font-size: 4.2cqi; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; opacity: 0; transform: translateY(2cqi); }
.s7-text span { color: var(--red); }
.on .s7-text { transition: opacity 1.2s ease 1.6s, transform 1.6s var(--ease) 1.6s; }
.on .s7-text, .out .s7-text, .pre .s7-text { opacity: 1; transform: none; }

/* S8 Abschluss */
.s8-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.on .s8-bg { transition: transform 7s linear; }
.on .s8-bg, .out .s8-bg, .pre .s8-bg { transform: scale(1); }
.s8::after { content: ""; position: absolute; inset: 0; background: rgba(20,22,24,.45); }
.s8-claim { position: relative; z-index: 2; font-size: 5.4cqi; line-height: 1.02; max-width: 80cqi; text-align: center; text-wrap: balance; font-weight: 800; letter-spacing: -.04em; text-transform: uppercase; opacity: 0; transform: translateY(3cqi); }
.on .s8-claim { transition: opacity 1.4s ease .4s, transform 2s var(--ease) .4s; }
.on .s8-claim, .out .s8-claim, .pre .s8-claim { opacity: 1; transform: none; }
.s8-end { position: absolute; inset: 0; z-index: 3; background: #fff; color: var(--anth); display: flex; flex-direction: column; align-items: center; justify-content: center; clip-path: inset(0 0 100% 0); }
.on .s8-end { transition: clip-path 1.6s var(--ease-io) 3.4s; }
.on .s8-end, .out .s8-end, .pre .s8-end { clip-path: inset(0); }
.s8-end img { width: 50cqi; opacity: 0; transform: scale(1.05); }
.on .s8-end img { transition: opacity 1.4s ease 4.4s, transform 2.6s var(--ease) 4.4s; }
.on .s8-end img, .out .s8-end img, .pre .s8-end img { opacity: 1; transform: none; }
.s8-end p { margin-top: 3.5cqi; font-size: 1.5cqi; font-weight: 700; letter-spacing: .38em; text-transform: uppercase; opacity: 0; }
.on .s8-end p { transition: opacity 1.4s ease 5.2s; }
.on .s8-end p, .out .s8-end p, .pre .s8-end p { opacity: 1; }

/* ---------- Unternehmen ---------- */
.about-num { position: sticky; top: 140px; }
.mega { font-size: clamp(7rem, 17vw, 15rem); line-height: .8; font-weight: 800; letter-spacing: -.06em; color: var(--anth); font-variant-numeric: tabular-nums; }
.mega::after { content: ""; display: block; width: 72px; height: 3px; background: var(--red); margin-top: 36px; }
.mega-label { margin-top: 20px; font-size: .82rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.values { margin-top: 48px; border-top: 1px solid var(--line); }
.values li { display: flex; gap: 28px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.05rem; }
.values b { color: var(--red); font-size: .78rem; letter-spacing: .14em; }

/* ---------- Leistungen ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #d6d3ce; }
.pillar { position: relative; padding: 40px 32px 56px 0; margin-right: 32px; }
.pillar + .pillar { padding-left: 32px; }
.pillar + .pillar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: #d6d3ce; transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease-io) calc(var(--i, 0) * 120ms + .3s); }
.pillars.in .pillar::before { transform: scaleY(1); }
.p-no { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; color: var(--red); margin-bottom: 56px; }
.pillar h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.02em; margin-bottom: 16px; color: var(--anth); }
.p-line { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease); }
.pillar + .pillar .p-line { left: 32px; width: calc(100% - 32px); }
.pillar:hover .p-line { transform: scaleX(1); transform-origin: left; }

.build-types { margin-top: clamp(80px, 10vw, 140px); }
.types { border-top: 1px solid #d6d3ce; }
.types li { border-bottom: 1px solid #d6d3ce; }
.types a { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(20px, 2.4vw, 32px) 0; font-size: clamp(1.5rem, 3.6vw, 3.1rem); font-weight: 700; letter-spacing: -.03em; color: var(--anth); }
.types a span { transition: transform .8s var(--ease), color .5s; }
.types a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .9s var(--ease); }
.types a:hover::after { transform: scaleX(1); transform-origin: left; }
.types a:hover span { transform: translateX(18px); }
.types .arr { width: 40px; transition: transform .8s var(--ease), color .5s; }
.types a:hover .arr { color: var(--red); transform: translateX(-6px); }

/* ---------- Projekte ---------- */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.project { position: relative; display: block; overflow: hidden; background: var(--dark); }
.project.wide { grid-column: 1 / -1; }
.p-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project.wide .p-media { aspect-ratio: 21 / 9; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--py, 0px)), 0) scale(calc(var(--z, 1.08) * var(--h, 1))); transition: transform 1.1s var(--ease); will-change: transform; }
.project:hover { --h: 1.04; }
.p-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(18,20,22,.72)); }
.p-info { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 40px); color: #fff; z-index: 2; }
.p-info h3 { font-size: clamp(1.4rem, 2.6vw, 2.4rem); letter-spacing: -.02em; line-height: 1.1; }
.p-info p { margin-top: 6px; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.75) !important; }
.p-more { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.p-more::before { content: ""; width: 0; height: 2px; background: var(--red); transition: width .8s var(--ease); }
.project:hover .p-more { opacity: 1; transform: none; }
.project:hover .p-more::before { width: 36px; }

/* ---------- Ablauf ---------- */
.process { position: relative; padding-left: 72px; }
.process-line { position: absolute !important; left: 15px; top: 8px; bottom: 8px; width: 2px; background: rgba(255,255,255,.12); padding: 0 !important; opacity: 1 !important; transform: none !important; }
.process-line i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--red); transform-origin: top; transform: scaleY(var(--p, 0)); }
.process li { position: relative; padding-bottom: 56px; }
.process li:last-child { padding-bottom: 0; }
.process li:not(.process-line)::before { content: ""; position: absolute; left: -63px; top: 6px; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); background: var(--dark); transform: rotate(45deg); transition: border-color .6s, background .6s; }
.process li.lit::before { border-color: var(--red); background: var(--red); }
.process span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; color: var(--red); margin-bottom: 10px; }
.process h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.02em; margin-bottom: 10px; }

/* ---------- Kontakt ---------- */
.contact { font-style: normal; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; margin-top: 16px; }
.contact span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.contact p { color: var(--ink) !important; font-size: 1.05rem; }
.contact a { background: linear-gradient(var(--red), var(--red)) left bottom / 0 1.5px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 2px; }
.contact a:hover { background-size: 100% 1.5px; }
.form { display: grid; gap: 28px; padding: clamp(28px, 4vw, 56px); background: var(--tint); }
.form label span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--anth); margin-bottom: 8px; }
.form input, .form textarea { width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid #c9c6c1; padding: 10px 0; border-radius: 0; outline: none; transition: border-color .4s; resize: vertical; }
.form input:focus, .form textarea:focus { border-bottom-color: var(--red); }
.form .btn { justify-self: start; }
.form-note { margin: -12px 0 0; font-size: .82rem; line-height: 1.5; color: #6b6d70; }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Footer ---------- */
.ftr { padding: 0 0 48px; }
.ftr-lines { position: relative; height: 9px; margin-bottom: 56px; }
.ftr-lines i { position: absolute; left: 0; right: 0; height: 3px; transform-origin: left; transform: scaleX(0); transition: transform 2s var(--ease-io); }
.ftr-lines i:first-child { top: 0; background: var(--red); }
.ftr-lines i:last-child { bottom: 0; background: var(--anth); transition-delay: .15s; }
.ftr-lines.in i { transform: scaleX(1); }
.ftr-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.ftr-in img { height: 72px; width: auto; }
.ftr a:hover { color: var(--red); }
.legal { text-align: right; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; width: 12px; height: 12px; margin: -6px 0 0 -6px; border: 1.5px solid var(--red); border-radius: 50%; pointer-events: none; display: none; align-items: center; justify-content: center; transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .5s, border-color .5s, opacity .3s; }
.cursor span { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor { display: flex; }
.cursor.link { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cursor.view { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--red); border-color: var(--red); }
.cursor.view span { opacity: 1; }
.cursor.hide { opacity: 0; }

/* ---------- Projekt-Detail ---------- */
.pdlg { border: 0; padding: 0; width: min(1240px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.pdlg::backdrop { background: rgba(20, 22, 24, .72); backdrop-filter: blur(4px); }
.pdlg[open] { animation: dlgIn .9s var(--ease) both; }
.pdlg[open]::backdrop { animation: fade .6s ease both; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.pdlg-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.pdlg-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 48px; height: 48px; background: var(--paper); }
.pdlg-close span { position: absolute; left: 13px; right: 13px; top: 23px; height: 2px; background: var(--anth); transition: transform .5s var(--ease), background .3s; }
.pdlg-close span:first-child { transform: rotate(45deg); }
.pdlg-close span:last-child { transform: rotate(-45deg); }
.pdlg-close:hover span { background: var(--red); }
.pdlg-close:hover span:first-child { transform: rotate(135deg); }
.pdlg-close:hover span:last-child { transform: rotate(45deg); }
.pdlg-gallery { display: grid; gap: 8px; padding: 8px; background: var(--tint); align-content: start; }
.pdlg-main { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.pdlg-main img { width: 100%; height: 100%; object-fit: cover; }
.pdlg-main img.contain { object-fit: contain; }
.pdlg[open] .pdlg-main img { animation: imgIn 1.4s var(--ease-io) .15s both; }
.pdlg-main img.swap { animation: imgSwap .9s var(--ease) both !important; }
@keyframes imgIn { from { clip-path: inset(0 0 100% 0); transform: scale(1.1); } to { clip-path: inset(0); transform: none; } }
@keyframes imgSwap { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.pdlg-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.pdlg-thumbs button { position: relative; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; background: #fff; }
.pdlg-thumbs img { width: 100%; height: 100%; object-fit: cover; opacity: .6; transition: opacity .4s, transform .8s var(--ease); }
.pdlg-thumbs button:hover img, .pdlg-thumbs button.on img { opacity: 1; }
.pdlg-thumbs button:hover img { transform: scale(1.05); }
.pdlg-thumbs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.pdlg-thumbs button.on::after { transform: scaleX(1); }
.pdlg-text { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; }
.pdlg-text > * { animation: fadeUp 1.1s var(--ease) both; }
.pdlg-text > :nth-child(2) { animation-delay: .1s; } .pdlg-text > :nth-child(3) { animation-delay: .18s; }
.pdlg-text > :nth-child(4) { animation-delay: .26s; } .pdlg-text > :nth-child(5) { animation-delay: .34s; } .pdlg-text > :nth-child(6) { animation-delay: .42s; }
.pdlg-title { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: -.03em; color: var(--anth); margin-bottom: 14px; text-wrap: balance; }
.pdlg-addr { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; }
.pdlg-desc { color: var(--muted); margin-bottom: 28px; }
.facts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 32px; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 700; color: var(--anth); }
.dlg-open { overflow: hidden; }
.dlg-open .cursor { display: none; }
@media (max-width: 900px) {
  .pdlg { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .pdlg-in { grid-template-columns: 1fr; }
}

/* ---------- Aktuelles Projekt ---------- */
.current { background: var(--tint); }
.current-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.current-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--dark); }
.current-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.current-media:hover img { transform: scale(1.08); }
.current-tag { position: absolute; left: 16px; bottom: 16px; padding: 6px 10px; background: rgba(255,255,255,.9); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--anth); }
.badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; margin-bottom: 28px; border: 1.5px solid var(--red); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.live { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: live 2s var(--ease) infinite; }
@keyframes live { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
.current-addr { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; margin: -12px 0 20px; }
.current .facts { margin-top: 12px; }
.current .h2 { font-size: clamp(2rem, 3.4vw, 3.3rem); }
.current-in + .current-in { margin-top: clamp(72px, 9vw, 128px); }
.current-in.rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.current-in.rev .current-media { order: 2; }
.pdlg-thumbs.many { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .current-in.rev { grid-template-columns: 1fr; } .current-in.rev .current-media { order: 0; } .pdlg-thumbs.many { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.current .actions { margin-bottom: 0; }
.now-link { display: inline-flex; align-items: center; gap: 12px; color: #fff !important; font-weight: 700; padding: 12px 16px; background: rgba(20,22,24,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); left: 24px; bottom: 24px; transition: background .4s; }
.now-link:hover { background: var(--red); }
.now-link .arr { width: 20px; }
.now-link:hover .arr { transform: translateX(4px); }
@media (max-width: 900px) {
  .current-in { grid-template-columns: 1fr; }
  .now-link { left: 12px; right: 12px; bottom: 12px; font-size: .62rem; letter-spacing: .1em; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 14px; }
  .brand img { height: 56px; }
  .nav a { font-size: .74rem; letter-spacing: .1em; }
  .nav-phone { padding: 9px 12px !important; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { padding-left: 0; }
  .pillar:nth-child(3)::before { display: none; }
  .pillar:nth-child(3) .p-line { left: 0; width: 100%; }
}
@media (max-width: 900px) {
  :root { --hdr: 76px; }
  .hdr.scrolled { height: 64px; }
  .brand img { height: 48px; }
  .hdr.scrolled .brand img { height: 40px; }
  .burger { display: block; z-index: 2; }
  .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 0 clamp(24px, 8vw, 64px); background: #fff; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
  .nav-open .nav { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
  .nav a { font-size: clamp(1.8rem, 7vw, 2.6rem); letter-spacing: -.02em; text-transform: none; transform: translateY(20px); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease); }
  .nav-open .nav a { transform: none; opacity: 1; }
  .nav-open .nav a:nth-child(2) { transition-delay: .05s; } .nav-open .nav a:nth-child(3) { transition-delay: .1s; }
  .nav-open .nav a:nth-child(4) { transition-delay: .15s; } .nav-open .nav a:nth-child(5) { transition-delay: .2s; } .nav-open .nav a:nth-child(6) { transition-delay: .25s; }
  .nav-phone { margin-top: 24px; font-size: 1rem !important; letter-spacing: .1em !important; }
  .nav-open .hdr { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-open body { overflow: hidden; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 48px clamp(16px, 4vw, 48px) 56px; }
  .hero-visual { height: 72vw; max-height: 560px; }
  .split { grid-template-columns: 1fr; }
  .about-num { position: static; }
  .projects { grid-template-columns: 1fr; }
  .project.wide .p-media { aspect-ratio: 4 / 3; }
  .p-more { opacity: 1; transform: none; }
  .p-more::before { width: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .stage { aspect-ratio: 4 / 5; }
  .s-kicker { font-size: 2.6cqi; top: 9cqi; }
  .logo-build { width: 82cqi; }
  .s1-a { font-size: 4.4cqi; } .s1-b { font-size: 2.6cqi; }
  .big-num { font-size: 36cqi; }
  .big-label { font-size: 3.8cqi; letter-spacing: .3em; }
  .rule { width: 20cqi; }
  .s3 { flex-direction: column; gap: 6cqi; padding: 0 8cqi; }
  .s3-build { width: 78cqi; }
  .s3-text { text-align: center; }
  .s3-text p { font-size: 8.6cqi; }
  .s4-list li { font-size: 11.5cqi; }
  .s5-grid { gap: 7cqi 4cqi; }
  .s5-grid li { width: 40cqi; font-size: 2.8cqi; }
  .s5-grid svg { width: 20cqi; }
  .s6-imgs { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
  .s7-map { width: 92cqi; }
  .s7-text { font-size: 6.4cqi; margin-top: 6cqi; white-space: nowrap; }
  .s8-claim { font-size: 8cqi; padding: 0 6cqi; line-height: 1.02; max-width: none; }
  .s8-end img { width: 84cqi; }
  .s8-end p { font-size: 2.8cqi; letter-spacing: .24em; }
  .stats { gap: 18px 24px; flex-wrap: wrap; }
  .stats dd { font-size: .68rem; letter-spacing: .1em; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0 40px; margin-right: 0; border-bottom: 1px solid #d6d3ce; }
  .pillar + .pillar::before { display: none; }
  .pillar + .pillar .p-line { left: 0; width: 100%; }
  .p-no { margin-bottom: 24px; }
  .contact { grid-template-columns: 1fr; gap: 24px; }
  .process { padding-left: 52px; }
  .process-line { left: 7px; }
  .process li:not(.process-line)::before { left: -51px; }
  .legal { text-align: left; }
  .ftr-in img { height: 56px; }
  .btn { padding: 18px 22px; }
}

/* ---------- Grundstücke: Wir kaufen Grundstücke ---------- */
.land .h2 em { font-style: normal; color: var(--red); }
.land-steps { display: grid; gap: 0; margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid #d6d3ce; }
.land-steps li { display: grid; grid-template-columns: 3em 1fr; gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid #d6d3ce; }
.land-steps b { color: var(--red); font-size: .82rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.land-steps span { color: var(--anth); }
.land-form { background: #fff; }

/* ---------- Bauablauf: vom Plan zum Haus (Scroll-Animation, Vollbild-Bühne) ---------- */
.bauablauf { background: var(--dark); color: #fff; }
.ba-intro { padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(40px, 6vw, 72px); }
.bauablauf .kicker { color: rgba(255,255,255,.7); }
.bauablauf .dl { background: linear-gradient(var(--red) 0 2px, transparent 2px 5px, #fff 5px 7px); }
.bauablauf .h2 { max-width: 15em; }
.bauablauf .h2 em, .ba-title em { font-style: normal; color: var(--red); }
.bauablauf .lead { color: rgba(255,255,255,.82); }
/* --e: Aufziehen auf Vollbild, --z: Kamerafahrt, --p: Baufortschritt (alle 0 bis 1, aus main.js) */
.ba-scroller { position: relative; height: 460vh; height: 460svh; }
.ba-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; --hh: 72px; --e: 0; --z: 0; --p: 0; }
.ba-stage { position: absolute; inset: var(--hh) 0 0; overflow: hidden; background: #f4f3f0; clip-path: inset(calc((1 - var(--e)) * 7%) calc((1 - var(--e)) * 9%) round calc((1 - var(--e)) * 22px)); }
.ba-cam { position: absolute; inset: 0; transform: scale(calc(1.12 - .12 * var(--z))); transform-origin: 50% 46%; will-change: transform; }
.ba-cam canvas { position: relative; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 42%; }
.ba-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-shade { position: absolute; inset: 0; pointer-events: none; opacity: var(--e); background: linear-gradient(to top, rgba(16,17,18,.88) 0%, rgba(16,17,18,.55) 24%, rgba(16,17,18,0) 54%), linear-gradient(to right, rgba(16,17,18,.42), rgba(16,17,18,0) 46%), radial-gradient(130% 100% at 50% 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,.32)); }
.ba-copy { position: absolute; z-index: 2; left: clamp(24px, 5vw, 88px); right: clamp(220px, 26vw, 420px); bottom: clamp(28px, 7vh, 84px); opacity: var(--e); transform: translateY(calc((1 - var(--e)) * 40px)); }
.ba-title { position: relative; height: 1.1em; overflow: hidden; font-size: clamp(2.4rem, min(6vw, 11vh), 6.6rem); font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.ba-title span { position: absolute; left: 0; bottom: .06em; white-space: nowrap; transform: translateY(115%); transition: transform 1s var(--ease); }
.ba-title span.on { transform: none; }
.ba-title span.past { transform: translateY(-115%); }
.ba-desc { position: relative; margin-top: 14px; height: 3em; max-width: 44ch; font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.5; color: rgba(255,255,255,.8); }
.ba-desc span { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .8s var(--ease); }
.ba-desc span.on { opacity: 1; transform: none; transition-delay: .12s; }
/* Am Ende: Platz für die Knöpfe, die Überschrift gleitet dabei nach oben */
.ba-end { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.ba-end > div { overflow: hidden; display: flex; flex-wrap: wrap; gap: 12px; padding: 4px; margin: -4px; }
.ba-end .btn { margin-top: 18px; visibility: hidden; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .8s, color .5s var(--ease); }
.ba-sticky.done .ba-end { grid-template-rows: 1fr; }
.ba-sticky.done .ba-end .btn { visibility: visible; opacity: 1; transform: none; transition-delay: .2s, .2s, 0s, 0s; }
.ba-sticky.done .ba-end .btn + .btn { transition-delay: .3s, .3s, 0s, 0s; }
.ba-end .btn-solid { background: var(--red); }
.ba-end .btn-solid::before { background: #fff; }
.ba-end .btn-solid:hover, .ba-end .btn-solid:focus-visible { color: var(--ink); }
.ba-end .btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
/* Phasen rechts unten, mit Fortschrittslinie */
.ba-rail { position: absolute; z-index: 2; right: clamp(24px, 4vw, 72px); bottom: clamp(28px, 7vh, 84px); display: grid; gap: 9px; padding-left: 22px; counter-reset: ba; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: var(--e); }
.ba-rail::before, .ba-rail::after { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 2px; background: rgba(255,255,255,.2); }
.ba-rail::after { background: var(--red); transform-origin: top; transform: scaleY(var(--p)); }
.ba-rail li { counter-increment: ba; color: rgba(255,255,255,.42); transition: color .4s var(--ease); white-space: nowrap; }
.ba-rail li::before { content: counter(ba, decimal-leading-zero); display: inline-block; width: 2.3em; font-variant-numeric: tabular-nums; }
.ba-rail li.past { color: rgba(255,255,255,.72); }
.ba-rail li.on { color: #fff; }
.ba-rail li.on::before { color: var(--red); }
.ba-bar { display: none; }
@media (max-width: 900px) { .ba-sticky { --hh: 64px; } }
/* Hochformat (Handy, Tablet): Bild oben, Text darunter */
@media (max-aspect-ratio: 11/10) {
  .ba-scroller { height: 380vh; height: 380svh; }
  .ba-sticky { display: flex; flex-direction: column; justify-content: center; padding-top: var(--hh); }
  .ba-stage { position: relative; inset: auto; flex: none; width: 100%; aspect-ratio: 1 / 1; max-height: 62svh; clip-path: inset(calc((1 - var(--e)) * 5%) calc((1 - var(--e)) * 5%) round calc((1 - var(--e)) * 18px)); }
  .ba-cam canvas { object-position: 42% 40%; }
  .ba-shade { background: radial-gradient(130% 100% at 50% 40%, rgba(0,0,0,0) 62%, rgba(0,0,0,.28)); }
  .ba-bar { display: block; order: 1; position: relative; flex: none; height: 2px; margin: 0 16px; background: rgba(255,255,255,.18); }
  .ba-bar i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--p)); }
  .ba-copy { order: 2; position: relative; left: auto; right: auto; bottom: auto; padding: 20px 16px 0; opacity: 1; transform: none; }
  .ba-title { font-size: clamp(2rem, 10.5vw, 3.6rem); }
  .ba-desc { margin-top: 10px; font-size: 1rem; }
  .ba-end, .ba-sticky.done .ba-end { grid-template-rows: 1fr; transition: none; }
  .ba-end .btn { margin-top: 14px; }
  .ba-rail { display: none; }
}
@media (max-width: 380px) { .ba-end .btn { padding: 16px 18px; letter-spacing: .1em; } }
@media (prefers-reduced-motion: reduce) {
  .ba-scroller { height: auto; }
  .ba-sticky { position: relative; height: auto; padding-top: 0; }
  .ba-stage { position: relative; inset: auto; aspect-ratio: 1448 / 1086; max-height: none; }
  .ba-title span, .ba-desc span, .ba-end, .ba-end .btn { transition: none; }
}

/* ---------- Weitere Referenzen (Galerie aus Website_Bilder) ---------- */
.refs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin: clamp(56px, 8vw, 104px) 0 clamp(20px, 3vw, 32px); }
.refs-title { font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -.03em; line-height: 1.05; }
.refs-title em { font-style: normal; color: var(--red); }
.refs-head p { color: var(--muted); max-width: 46ch; }
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.ref { position: relative; display: block; overflow: hidden; background: var(--dark); color: #fff; text-decoration: none; isolation: isolate; }
.ref-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #2b2c2b; }
.ref-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.4s cubic-bezier(.22,.61,.36,1), filter 1.4s cubic-bezier(.22,.61,.36,1); }
.ref-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,20,22,0) 40%, rgba(18,20,22,.5) 68%, rgba(18,20,22,.88)); opacity: .92; transition: opacity .9s cubic-bezier(.22,.61,.36,1); }
.ref-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(16px, 1.8vw, 24px); }
.ref-info h3 { font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.25; letter-spacing: -.01em; color: #fff; text-wrap: balance; text-shadow: 0 1px 10px rgba(0,0,0,.35); transition: transform .9s cubic-bezier(.22,.61,.36,1); }
.ref-info p { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.9) !important; margin-top: 6px; text-shadow: 0 1px 8px rgba(0,0,0,.45); transition: transform .9s cubic-bezier(.22,.61,.36,1); }
.ref-info::before { content: ""; display: block; width: 28px; height: 2px; background: var(--red); margin-bottom: 12px; transform-origin: left; transition: width .9s cubic-bezier(.22,.61,.36,1); }
.ref-info::after { content: "Projekt ansehen \2192"; display: block; margin-top: 10px; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .9s cubic-bezier(.22,.61,.36,1); }
.ref:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .ref-info h3, .ref-info p { transform: translateY(18px); }
  .ref:hover .ref-media img, .ref:focus-visible .ref-media img { transform: scale(1.06); }
  .ref:hover .ref-media::after, .ref:focus-visible .ref-media::after { opacity: 1; }
  .ref:hover .ref-info h3, .ref:hover .ref-info p, .ref:focus-visible .ref-info h3, .ref:focus-visible .ref-info p { transform: none; }
  .ref:hover .ref-info::before { width: 48px; }
  .ref:hover .ref-info::after, .ref:focus-visible .ref-info::after { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ref-media img, .ref-info h3, .ref-info p, .ref-info::after { transition: none; } }
.refs.collapsed .ref:nth-child(n+10) { display: none; }
.refs-more { margin: clamp(24px, 3vw, 36px) auto 0; display: flex; }
.refs-more[hidden] { display: none; }
@media (max-width: 1000px) { .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .refs.collapsed .ref:nth-child(n+9) { display: none; } }
@media (max-width: 560px) {
  .refs { grid-template-columns: 1fr; }
  .refs.collapsed .ref:nth-child(n+7) { display: none; }
  .ref-info { padding: 16px 18px 18px; }
}

/* ---------- Feinschliff (Design-Skills, Okt. 2026) ---------- */
html { accent-color: var(--red); scrollbar-color: #9a9c9e var(--tint); }
h1, h2, h3, .h2, .display, .pdlg-title { text-wrap: balance; font-kerning: normal; }
p { text-wrap: pretty; }
.h2 { line-height: 1.04; }
.lead { max-width: 34em; }
.sec p:not(.kicker):not(.lead):not(.mega):not(.mega-label):not(.p-more) { max-width: 64ch; }
.pillar p { max-width: 34ch; }
.process p { max-width: 52ch; }
/* Leichter Schatten unter der Kopfzeile beim Scrollen */
.hdr.scrolled { box-shadow: 0 10px 30px -22px rgba(30,32,34,.45); }
/* Fokus- und Eingabefeinheiten im Formular */
.form input, .form textarea { caret-color: var(--red); }
.form input::placeholder, .form textarea::placeholder { color: #9a9c9e; opacity: 1; }
.form label { display: block; position: relative; }
.form label::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); pointer-events: none; }
.form label:focus-within::after { transform: scaleX(1); }
/* Spürbares Drücken auf Buttons und Karten */
.btn, .nav-phone, .film-play, .now-link { transition-property: color, border-color, background, transform; }
.btn:active, .nav-phone:active, .film-play:active, .now-link:active { transform: scale(.97); transition-duration: .15s; }
.project:active, .current-media:active { --h: 1.02; }
.pdlg-main { position: relative; }
.form textarea { display: block; }
/* Bilder: feine Kante, damit helle Fotos nicht im Hintergrund verschwimmen */
.current-media::before, .pdlg-main::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); pointer-events: none; z-index: 1; }
/* Touch-Geräte: kein „hängender“ Hover, Hinweis „Ansehen“ immer sichtbar */
@media (hover: none) {
  .project:hover { --h: 1; }
  .p-more { opacity: 1; transform: none; }
  .p-more::before { width: 28px; }
  .types a:hover span { transform: none; }
  .types a:hover::after { transform: scaleX(0); }
  .current-media:hover img { transform: scale(1.04); }
  .pdlg-thumbs button:hover img { transform: none; }
}
@media (max-width: 640px) {
  .form input, .form textarea { font-size: 16px; }
  .h2 { line-height: 1.06; }
  .p-info p { letter-spacing: .1em; font-size: .78rem; }
}

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

/* ---------- Rechtliche Seiten (Impressum, Datenschutz) ---------- */
.legal-page { padding: calc(var(--hdr) + clamp(48px, 8vw, 110px)) 0 clamp(72px, 9vw, 120px); }
.legal-wrap { max-width: 860px; }
.legal-page .h2 em { font-style: normal; color: var(--red); }
.legal-page section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-page h2 { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--anth); margin-bottom: 12px; }
.legal-page p { color: var(--muted); line-height: 1.75; }
.legal-page a { color: var(--anth); text-decoration: underline; text-underline-offset: 3px; }
.legal-page a:hover { color: var(--red); }
.back-link { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--anth); }
.back-link .arr { transform: scaleX(-1); }
.back-link:hover { color: var(--red); }
.legal-page p + p { margin-top: 14px; }
.ig-link { display: inline-flex; align-items: center; gap: 8px; }
.ig-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.ig-ico .dot { fill: currentColor; stroke: none; }
.ig-link:hover .ig-ico { color: var(--red); }

/* ---------- Barrierefreiheit ---------- */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--anth); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: top .3s var(--ease); }
.skip-link:focus { top: 16px; }

/* ---------- Objektseite: Kapitalanlage Gütersloh ---------- */
.obj-hdr-right { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.page-obj .nav-phone { margin-top: 0; font-size: .82rem !important; font-weight: 700; letter-spacing: .08em !important; color: var(--anth); }
.obj-hero { padding: calc(72px + clamp(32px, 4.5vw, 64px)) 0 clamp(64px, 8vw, 112px); }
.obj-hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 72px); align-items: stretch; }
.obj-title { font-size: clamp(2.2rem, 3.7vw, 3.5rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; margin-bottom: 22px; }
.obj-title em, .page-obj .h2 em { font-style: normal; color: var(--red); }
.page-obj .current-addr { margin: -6px 0 16px; }
.obj-hero .badge { margin-bottom: 22px; }
.page-obj .lead { color: var(--ink); }
.obj-price { display: grid; gap: 2px; padding: 14px 0; margin: 4px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.obj-price-label { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.obj-price-value { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; color: var(--anth); font-variant-numeric: tabular-nums; }
.obj-price-note { font-size: .88rem; color: var(--red); font-weight: 600; }
.page-obj .actions { margin-bottom: 0; }
.obj-hero-media { position: relative; display: block; width: 100%; min-height: 420px; padding: 0; overflow: hidden; background: var(--dark); cursor: zoom-in; }
.obj-hero-media img { position: absolute; inset: 0; }
.obj-hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 1.6s var(--ease); }
.obj-hero-media:hover img { transform: scale(1.07); }
.obj-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 88px); border-top: 3px solid var(--anth); }
.obj-stats li { padding: 20px 16px 0 0; }
.obj-stats li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.obj-stats b { display: block; font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; color: var(--anth); line-height: 1.1; white-space: nowrap; }
.obj-stats span { display: block; margin-top: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.obj-why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.obj-why-grid li { background: var(--dark); padding: clamp(28px, 3vw, 44px); }
.obj-no { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--red); margin-bottom: 22px; }
.obj-why-grid h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 12px; color: #fff; }
.obj-why-grid p { font-size: .96rem; line-height: 1.65; color: rgba(255,255,255,.74) !important; }
.obj-why-grid sup, .obj-legal sup { color: var(--red); font-weight: 700; }

.obj-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.obj-tile, .obj-plan { position: relative; display: block; padding: 0; overflow: hidden; background: var(--tint); cursor: zoom-in; }
.obj-tile { grid-column: span 2; aspect-ratio: 4 / 3; }
.obj-tile.wide { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.obj-tile.flat { grid-column: span 3; aspect-ratio: 2.2 / 1; }
.obj-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.obj-tile:hover img, .obj-plan:hover img { transform: scale(1.05); }
.obj-tile::after, .obj-plan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.obj-tile:hover::after, .obj-plan:hover::after, .obj-tile:focus-visible::after, .obj-plan:focus-visible::after { transform: scaleX(1); }

.obj-data { background: var(--tint); }
.obj-data-in, .obj-equip-in, .obj-loc-in, .obj-cta-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.obj-dl { margin: 0; border-top: 1px solid #d6d3ce; }
.obj-dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid #d6d3ce; }
.obj-dl dt { font-size: .86rem; color: var(--muted); }
.obj-dl dd { margin: 0; font-weight: 700; color: var(--anth); text-align: right; font-variant-numeric: tabular-nums; }
.obj-geno { background: #fff; padding: clamp(28px, 4vw, 48px); border-top: 3px solid var(--red); }
.obj-geno .kicker { margin-bottom: 18px; }
.obj-geno-text { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; color: var(--anth); margin-bottom: 26px !important; max-width: 26em; }
.sec-side a, .obj-cta-note a { text-decoration: underline; text-underline-offset: 3px; }
.sec-side a:hover, .obj-cta-note a:hover { color: var(--red); }
.obj-cta .actions { margin-top: 26px; }
.obj-cta .btn-solid { background: var(--red); }
.obj-cta .btn-solid::before { background: #fff; }
.obj-cta .btn-solid:hover, .obj-cta .btn-solid:focus-visible { color: var(--ink); }
.obj-cta-note { margin-top: 22px !important; font-size: .92rem; color: rgba(255,255,255,.7) !important; }
.obj-cta-note a { color: #fff; }
.page-obj .obj-fine { margin-top: 16px; font-size: .84rem; line-height: 1.6; color: var(--muted); max-width: 52ch; }

.obj-checks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.obj-equip .obj-checks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
.obj-checks li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--anth); line-height: 1.45; }
.obj-checks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 14px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

.obj-plans { background: var(--tint); }
.obj-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.obj-plan { background: #fff; padding: 16px 16px 52px; }
.obj-plan img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; transition: transform 1.4s var(--ease); }
.obj-plan span { position: absolute; left: 16px; bottom: 16px; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--anth); }

.obj-time { counter-reset: t; border-left: 2px solid var(--line); margin-left: 7px; }
.obj-time li { position: relative; padding: 0 0 28px 30px; }
.obj-time li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--red); }
.obj-time li:last-child { padding-bottom: 0; }
.obj-time li:last-child::before { background: var(--red); }
.obj-time b { display: block; font-size: 1.15rem; color: var(--anth); }
.obj-time span { color: var(--muted); }

.obj-cta-in { align-items: center; }
.obj-cta .h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.obj-contact { display: grid; gap: 12px; margin-top: 12px; }
.obj-contact p { color: rgba(255,255,255,.88) !important; }
.obj-contact span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 2px; }
.obj-contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.obj-contact a:hover { color: var(--red); }
.obj-form { background: #fff; color: var(--ink); }
.obj-form .form-note { color: #6b6d70 !important; }

.obj-legal { padding-top: 40px; padding-bottom: 56px; }
.obj-legal p { font-size: .8rem; line-height: 1.6; color: var(--muted); max-width: 90ch; }
.obj-legal p + p { margin-top: 10px; }

.obj-bar { display: none; }
.obj-lb { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: rgba(18,20,22,.96); color: #fff; overscroll-behavior: contain; }
.obj-lb[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; animation: fade .4s ease both; }
.obj-lb::backdrop { background: rgba(18,20,22,.9); }
.obj-lb img { max-width: calc(100vw - 140px); max-height: calc(100dvh - 120px); object-fit: contain; }
.obj-lb.plan img { background: #fff; padding: 12px; }
.obj-lb-cap { margin-top: 14px; font-size: .8rem; letter-spacing: .08em; color: rgba(255,255,255,.7); text-align: center; padding: 0 16px; }
.obj-lb-close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; background: #fff; }
.obj-lb-close span { position: absolute; left: 13px; right: 13px; top: 23px; height: 2px; background: var(--anth); }
.obj-lb-close span:first-child { transform: rotate(45deg); }
.obj-lb-close span:last-child { transform: rotate(-45deg); }
.obj-lb-prev, .obj-lb-next { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center; color: #fff; border: 1.5px solid rgba(255,255,255,.4); transition: border-color .3s, background .3s; }
.obj-lb-prev { left: 16px; } .obj-lb-next { right: 16px; }
.obj-lb-prev .arr { transform: scaleX(-1); }
.obj-lb-prev:hover, .obj-lb-next:hover { border-color: var(--red); background: var(--red); }

@media (max-width: 1100px) {
  .obj-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .obj-stats li:nth-child(4) { padding-left: 0; border-left: 0; }
  .obj-stats li:nth-child(n+4) { margin-top: 20px; }
}
@media (max-width: 900px) {
  .obj-hero-in, .obj-data-in, .obj-equip-in, .obj-loc-in, .obj-cta-in { grid-template-columns: 1fr; }
  .obj-hero-media { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .obj-why-grid { grid-template-columns: 1fr 1fr; }
  .obj-grid { grid-template-columns: 1fr 1fr; }
  .obj-tile, .obj-tile.flat { grid-column: auto; aspect-ratio: 4 / 3; }
  .obj-tile.wide { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .obj-hero { padding-top: calc(72px + 16px); }
  .obj-hero-media { margin: 0 calc(-1 * clamp(16px, 4vw, 48px)); width: auto; }
  .obj-stats { grid-template-columns: 1fr 1fr; }
  .obj-stats li, .obj-stats li + li { padding: 16px 12px 16px 0; border-left: 0; margin-top: 0 !important; border-bottom: 1px solid var(--line); }
  .obj-stats li:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .obj-why-grid, .obj-grid, .obj-plan-grid, .obj-equip .obj-checks { grid-template-columns: 1fr; }
  .obj-tile.wide, .obj-tile.flat { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .obj-tile.flat { aspect-ratio: 2.2 / 1; }
  .obj-dl div { flex-direction: column; gap: 2px; }
  .obj-dl dd { text-align: left; }
  .page-obj .back-link span { display: none; }
  .page-obj .actions .btn { flex: 1 1 auto; justify-content: center; }
  .obj-lb img { max-width: 100vw; max-height: calc(100dvh - 160px); }
  .obj-lb-prev, .obj-lb-next { top: auto; bottom: 18px; margin-top: 0; }
  .obj-bar { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.96); box-shadow: 0 -10px 30px -20px rgba(30,32,34,.5); transform: translateY(110%); transition: transform .6s var(--ease); }
  .obj-bar.on { transform: none; }
  .obj-bar a { display: grid; place-items: center; min-height: 48px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .obj-bar-call { border: 1.5px solid var(--anth); color: var(--anth); }
  .obj-bar-main { background: var(--red); color: #fff; }
  .page-obj .ftr { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .obj-hero-media img, .obj-tile img, .obj-plan img, .obj-bar { transition: none; }
}
