/* ==========================================================================
   Schmidt Bau GmbH — State-of-the-Art Premium Rebuild
   Editorial typography, dramatic hero, magazine-style asymmetric grids
   Palette: Schmidt-Bau-Blau + Bau-Gruen + Bau-Orange
   ========================================================================== */

:root {
  --blue:        #1e3a5f;
  --blue-dark:   #0f2440;
  --blue-light:  #3d6fa0;
  --blue-pale:   #dfe8f2;
  --green:       #7cb928;
  --green-dark:  #5b8c1d;
  --green-light: #a7d265;
  --orange:      #f59e0b;
  --orange-dark: #d97706;
  --sand:        #f3eedf;
  --cream:       #faf6ed;
  --offwhite:    #f8f5ef;
  --ink:         #14202c;
  --ink-soft:    #4a5563;
  --ink-faint:   #6b7280;
  --line:        #d8d2c4;
  --bg:          #fbfaf6;
  --white:       #ffffff;

  --font-display: ui-serif, "Iowan Old Style", "Apple Garamond", "Palatino Linotype", "ITC Galliard", "Cambria", "Georgia", serif;
  --font-text:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "Roboto Mono", "Consolas", monospace;

  --container: 1340px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 12px rgba(20,32,44,0.06);
  --shadow:    0 8px 30px rgba(20,32,44,0.10);
  --shadow-lg: 0 24px 60px rgba(20,32,44,0.16);
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; width: 100%; }
body {
  font-family: var(--font-text);
  font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--blue); color: var(--cream); padding: 12px 18px; border-radius: 8px; z-index: 1000; font-weight: 600; transition: top 0.2s ease; }
.skip-link:focus { top: 16px; color: var(--cream); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Typography — Editorial: italic serif for display, sans for body */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; color: var(--ink); overflow-wrap: break-word; word-break: normal; hyphens: none; }
h1 { font-size: clamp(2.4rem, 6.5vw, 5.4rem); font-weight: 900; letter-spacing: -0.04em; font-style: italic; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-style: italic; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; font-family: var(--font-text); }
p  { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.text-center { text-align: center; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(248,245,239,0.88); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color var(--transition), background var(--transition); }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(248,245,239,0.96); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding-top: 8px; padding-bottom: 8px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -0.01em; }
.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-mark-svg { width: 46px; height: 46px; flex-shrink: 0; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name .name-lg { font-size: 1.05rem; font-weight: 900; color: var(--blue); letter-spacing: 0.01em; }
.brand-name small { display: block; font-size: 0.7rem; color: var(--ink-soft); font-weight: 500; letter-spacing: 0.06em; margin-top: 3px; text-transform: uppercase; }

.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 600; padding: 10px 14px; border-radius: 8px; font-size: 0.96rem; transition: background var(--transition), color var(--transition); }
.nav-links a:hover { background: rgba(30,58,95,0.08); color: var(--blue); }
.nav-cta { background: var(--blue); color: var(--cream) !important; padding: 11px 22px !important; border-radius: 999px !important; font-weight: 700; box-shadow: var(--shadow-sm); }
.nav-cta:hover { background: var(--blue-dark); color: var(--cream) !important; transform: translateY(-1px); }

.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 10px; align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: var(--transition); }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 100%; height: 100%; background: var(--ink); transition: var(--transition); }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after  { top:  7px; }

@media (max-width: 980px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; padding: 20px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-110%); transition: transform var(--transition), visibility 0s linear 0.3s, opacity var(--transition); align-items: stretch; gap: 4px; visibility: hidden; opacity: 0; pointer-events: none; z-index: 99; box-shadow: var(--shadow); }
  .nav-links.open { transform: translateY(0); visibility: visible; opacity: 1; pointer-events: auto; transition: transform var(--transition), visibility 0s linear 0s, opacity var(--transition); }
  .nav-links a { padding: 16px 18px; font-size: 1.05rem; min-height: 48px; display: flex; align-items: center; }
  .menu-toggle { display: inline-flex; }
  .nav-wrap { position: relative; z-index: 101; min-height: 64px; }
  .brand-name .name-lg { font-size: 0.95rem; }
  .brand-name small { font-size: 0.65rem; }
  .brand-mark-svg { width: 40px; height: 40px; }
}

/* nav-current State */
.nav-links a.is-current,
.nav-links a[aria-current="page"] {
  color: var(--blue);
  background: rgba(30,58,95,0.06);
  position: relative;
}

/* Top-Strip — phone/address quick-info above nav */
.top-strip { background: var(--blue-dark); color: var(--cream); font-size: 0.82rem; padding: 6px 0; display: none; }
.top-strip .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-strip a { color: var(--cream); }
.top-strip a:hover { color: var(--orange); }
@media (min-width: 980px) { .top-strip { display: block; } .site-header { top: 32px; } body { padding-top: 0; } }

/* Hero */
.hero { position: relative; padding: 130px 0 80px; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--cream) 100%); }
@media (min-width: 980px) { .hero { min-height: 86vh; } }
.hero-inner { position: relative; z-index: 2; display: grid; gap: 56px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.hero h1 { color: var(--ink); }
.hero h1 .accent { color: var(--blue); display: inline-block; position: relative; }
.hero h1 .accent::after { content: ''; position: absolute; left: -6px; right: -6px; bottom: 4px; height: 32%; background: linear-gradient(100deg, var(--orange) 0%, var(--green-light) 100%); z-index: -1; border-radius: 6px; opacity: 0.7; }
.hero-lead { font-size: 1.18rem; color: var(--ink-soft); margin: 24px 0 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem; transition: var(--transition); cursor: pointer; min-height: 48px; justify-content: center; position: relative; overflow: hidden; isolation: isolate; line-height: 1.2; text-align: center; }
.btn::before { content: ''; position: absolute; top: 0; left: -120%; width: 80%; height: 100%; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.28) 50%, transparent 80%); transform: skewX(-18deg); transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; z-index: 1; }
.btn:hover::before { left: 130%; }
.btn > * { position: relative; z-index: 2; }
.btn-primary { background: var(--blue); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); color: var(--cream); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(30,58,95,0.25); }
.btn-orange { background: var(--orange); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-orange:hover { background: var(--orange-dark); color: var(--cream); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(245,158,11,0.25); }
.btn-ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--cream); transform: translateY(-2px); }

@media (max-width: 600px) {
  .hero-cta { flex-direction: column; gap: 10px; align-items: stretch; }
  .hero-cta .btn { width: 100%; min-height: 56px; }
  .btn { padding: 14px 24px; font-size: 1rem; }
}

.hero-visual { position: relative; height: 520px; }
.hero-visual .blob { position: absolute; inset: 0; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--blue-dark); }
.hero-visual .blob img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; animation: ken-burns 20s ease-in-out infinite alternate; }
@keyframes ken-burns {
  0%   { transform: scale(1.0)  translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, -1%); }
}
.hero-visual .blob::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,58,95,0.18) 0%, rgba(124,185,40,0.08) 100%); pointer-events: none; }
.hero-visual .badge { position: absolute; bottom: -28px; left: -28px; background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%); padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; border: 1px solid rgba(30,58,95,0.08); }
.hero-visual .badge strong { font-family: var(--font-display); color: var(--blue); font-size: 1.85rem; font-weight: 900; display: block; line-height: 1; letter-spacing: -0.02em; }
.hero-visual .badge small { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.35; }

.hero-trustbar { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-trustbar p { margin: 0; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.hero-trustbar p strong { color: var(--blue); }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { height: 280px; order: -1; margin-top: 8px; }
  .hero-visual .badge { bottom: -22px; left: 50%; transform: translateX(-50%); padding: 14px 18px; }
  .hero-visual .badge strong { font-size: 1.4rem; }
  .hero { min-height: auto; padding: 100px 0 48px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-lead { font-size: 1.04rem; margin: 16px 0 22px; }
  .hero-trustbar { margin-top: 36px; padding-top: 22px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .hero-trustbar p { font-size: 0.74rem; }
}

/* Trust strip */
.trust-strip { background: var(--blue); color: var(--cream); padding: 18px 0; font-size: 0.92rem; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; align-items: center; }
.trust-strip span { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip strong { color: var(--orange); font-weight: 800; }
@media (max-width: 600px) { .trust-strip { font-size: 0.8rem; } .trust-strip .container { gap: 10px 18px; } }

/* Section */
section { padding: 90px 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { display: inline-block; margin-bottom: 14px; }
.section-head p { font-size: 1.1rem; margin-top: 14px; }
@media (max-width: 900px) {
  section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 1.0rem; }
}
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-blue { background: var(--blue); color: var(--cream); }
.bg-blue h1, .bg-blue h2, .bg-blue h3 { color: var(--cream); }
.bg-blue p { color: rgba(250,246,237,0.85); }
.bg-blue .eyebrow { color: var(--orange); }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.service-card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1); display: flex; flex-direction: column; }
.service-card::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius); border: 1.5px solid transparent; pointer-events: none; transition: border-color 0.4s ease; z-index: 3; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { border-color: rgba(30,58,95,0.22); }
.service-card .icon-wrap { display: flex; align-items: center; justify-content: center; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--orange); position: relative; overflow: hidden; }
.service-card .icon-wrap svg { width: 64px; height: 64px; }
.service-card .icon-wrap::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 50%); pointer-events: none; }
.service-card .body { padding: 24px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: 8px; transition: color 0.3s ease; }
.service-card:hover h3 { color: var(--blue); }
.service-card p { color: var(--ink-soft); font-size: 0.97rem; flex: 1; margin-bottom: 14px; }
.service-card .arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--blue); font-weight: 700; font-size: 0.92rem; transition: gap 0.3s ease; }
.service-card .arrow::after { content: '→'; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); display: inline-block; }
.service-card:hover .arrow { gap: 12px; }
.service-card:hover .arrow::after { transform: translateX(6px); }

/* Stats */
.stats { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--cream); position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%23faf6ed' stroke-width='1' opacity='0.05'><path d='M10 110 L60 10 L110 110 Z'/><line x1='0' y1='110' x2='120' y2='110'/></g></svg>"); background-size: 180px 180px; opacity: 0.7; pointer-events: none; }
.stats::after { content: ''; position: absolute; top: -40%; right: -10%; width: 60%; height: 180%; background: radial-gradient(ellipse at center, rgba(245,158,11,0.10) 0%, transparent 60%); pointer-events: none; }
.stats .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; text-align: center; position: relative; z-index: 2; }
.stat-item { padding: 20px 12px; position: relative; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.stat-item:hover { transform: translateY(-4px); }
.stat-item .num { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 900; color: var(--orange); line-height: 1; letter-spacing: -0.04em; display: block; }
.stat-item .icon { display: block; font-size: 1.4rem; margin-bottom: 10px; opacity: 0.8; transition: transform 0.4s ease; }
.stat-item:hover .icon { transform: translateY(-2px) scale(1.15); }
.stat-item .label { display: block; margin-top: 12px; font-size: 0.92rem; opacity: 0.9; letter-spacing: 0.04em; color: var(--cream); }
.stat-item .label small { display: block; font-size: 0.78rem; opacity: 0.7; margin-top: 4px; font-weight: 400; }

/* Reviews — editorial card style */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.review { background: var(--white); padding: 36px 32px 28px; border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1); overflow: hidden; }
.review:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.review::before { content: '\201C'; position: absolute; top: -8px; left: 22px; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 8rem; color: var(--orange); line-height: 0.85; opacity: 0.65; pointer-events: none; }
.review .stars { color: var(--orange); margin: 32px 0 16px; font-size: 1.15rem; letter-spacing: 3px; position: relative; z-index: 1; }
.review .text { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.15rem; color: var(--ink); margin-bottom: 22px; line-height: 1.45; position: relative; z-index: 1; }
.review .who { font-size: 0.86rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 14px; position: relative; z-index: 1; letter-spacing: 0.04em; }
.review .who strong { color: var(--ink); display: block; margin-bottom: 2px; font-size: 0.92rem; font-weight: 700; }

/* Before/After Slider */
.ba-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.ba-slider { position: relative; aspect-ratio: 16/11; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); user-select: none; touch-action: none; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider .after { clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--cream); transform: translateX(-50%); cursor: ew-resize; box-shadow: 0 0 16px rgba(0,0,0,0.4); transition: width 0.25s ease, background 0.25s ease; }
.ba-handle::after { content: '⇆'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; background: var(--cream); color: var(--blue); border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 4px rgba(250,246,237,0.25); transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease; }
.ba-handle::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(250,246,237,0.6); animation: ba-pulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes ba-pulse { 0% { box-shadow: 0 0 0 0 rgba(250,246,237,0.6); } 100% { box-shadow: 0 0 0 22px rgba(250,246,237,0); } }
.ba-slider:hover .ba-handle { width: 5px; }
.ba-slider:hover .ba-handle::after { transform: translate(-50%, -50%) scale(1.12); }
.ba-handle:focus-visible::after { box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 5px var(--orange); }
.ba-label { position: absolute; bottom: 14px; padding: 6px 12px; border-radius: 6px; background: rgba(20,32,44,0.78); color: var(--cream); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.ba-label.left { left: 14px; }
.ba-label.right { right: 14px; }
.ba-note { font-size: 0.84rem; color: var(--ink-faint); text-align: center; margin-top: 18px; font-style: italic; }

/* Team / Geschäftsführer — editorial cards */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s cubic-bezier(0.22,1,0.36,1); position: relative; }
.team-card::before { content: ''; position: absolute; top: 0; left: 0; width: 50px; height: 4px; background: var(--orange); transition: width 0.4s cubic-bezier(0.22,1,0.36,1); z-index: 4; }
.team-card:hover::before { width: 100%; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card .photo { aspect-ratio: 4/5; background: var(--blue-pale); position: relative; overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.team-card:hover .photo img { transform: scale(1.04); }
.team-card .photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(20,32,44,0.18) 100%); pointer-events: none; }
.team-card .info { padding: 24px 24px 26px; }
.team-card h3 { margin-bottom: 4px; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.5rem; }
.team-card .role { color: var(--orange-dark); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; font-family: var(--font-text); }
.team-card .role::before { content: '— '; opacity: 0.5; }
.team-card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* Project Gallery */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.project-card { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1); cursor: pointer; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card:hover img { transform: scale(1.06); }
.project-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,32,44,0.88) 100%); display: flex; align-items: flex-end; padding: 24px; }
.project-card .overlay h3 { color: var(--cream); font-size: 1.3rem; margin: 0; }
.project-card .overlay .meta { color: var(--orange); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.project-card .tag { position: absolute; top: 14px; left: 14px; background: rgba(248,245,239,0.95); color: var(--blue); padding: 5px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; backdrop-filter: blur(4px); }

/* Project image placeholder when no real photo */
.placeholder-img { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--blue-pale) 0%, var(--sand) 100%); color: var(--blue); font-size: 0.92rem; font-weight: 700; padding: 24px; text-align: center; }

/* Contact section */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: stretch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 22px; } }
.contact-info { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-info h3 { margin-bottom: 18px; }
.contact-info .info-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom: 0; }
.contact-info .info-icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--blue-pale); color: var(--blue); border-radius: 10px; flex-shrink: 0; }
.contact-info .info-text strong { display: block; color: var(--ink); font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; font-weight: 700; }
.contact-info .info-text a, .contact-info .info-text { color: var(--ink-soft); font-size: 1rem; }
.contact-info .info-text a:hover { color: var(--blue); }
.contact-form { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-form h3 { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.84rem; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.form-group label .req { color: var(--orange-dark); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 1rem; background: var(--bg); color: var(--ink); transition: border-color var(--transition), background var(--transition); min-height: 48px; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: 0; border-color: var(--blue); background: var(--white); }
.form-actions { margin-top: 18px; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 14px; }

/* Footer */
.footer { background: var(--blue-dark); color: var(--cream); padding: 64px 0 28px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--cream); margin-bottom: 18px; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.footer p, .footer li, .footer a { color: rgba(250,246,237,0.78); font-size: 0.94rem; line-height: 1.7; }
.footer a:hover { color: var(--orange); }
.footer ul { list-style: none; }
.footer .brand { color: var(--cream); margin-bottom: 14px; }
.footer .brand-name .name-lg { color: var(--cream); }
.footer .brand-name small { color: rgba(250,246,237,0.6); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(250,246,237,0.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.84rem; color: rgba(250,246,237,0.55); }
@media (max-width: 900px) {
  .footer .container { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 500px) {
  .footer .container { grid-template-columns: 1fr; }
}

/* Floating Action Buttons (mobile + desktop) */
.fab-stack { position: fixed; bottom: 18px; right: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fab { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: var(--cream); box-shadow: 0 8px 24px rgba(20,32,44,0.32), 0 0 0 4px rgba(255,255,255,0.5); transition: transform var(--transition), box-shadow var(--transition); position: relative; }
.fab::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: inherit; opacity: 0; transition: opacity 0.3s, transform 0.6s; }
.fab:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 14px 28px rgba(20,32,44,0.35), 0 0 0 4px rgba(255,255,255,0.5); }
.fab.phone { background: var(--blue); color: var(--cream); }
.fab.phone::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(30,58,95,0.4); animation: fab-pulse 2.4s ease-out infinite; }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(30,58,95,0.55); } 100% { box-shadow: 0 0 0 16px rgba(30,58,95,0); } }
.fab.whatsapp { background: #25d366; color: var(--white); }
.fab svg { width: 28px; height: 28px; position: relative; z-index: 1; }
@media (max-width: 600px) { .fab-stack { bottom: 14px; right: 14px; } .fab { width: 62px; height: 62px; } .fab svg { width: 28px; height: 28px; } }

/* Mobile sticky CTA — only on small screens */
.mobile-sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(248,245,239,0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); z-index: 88; gap: 8px; }
.mobile-sticky-cta .btn { flex: 1; min-height: 50px; padding: 12px 16px; font-size: 0.95rem; }
@media (max-width: 600px) { .mobile-sticky-cta { display: flex; } body { padding-bottom: 80px; } .fab-stack { bottom: 80px; } }

/* Reveal — Default visible. JS sets inline opacity/transform on below-fold items only. */
.reveal { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

/* Hero pattern overlay — Blueprint grid */
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(30,58,95,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,58,95,0.07) 1px, transparent 1px),
    linear-gradient(rgba(30,58,95,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,58,95,0.04) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  mask-image: linear-gradient(180deg, var(--bg) 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, var(--bg) 0%, transparent 70%);
}

/* Geometric Decorations — overlapping shapes behind hero */
.hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-deco-circle { position: absolute; border-radius: 50%; opacity: 0.06; }
.hero-deco-circle.c1 { width: 480px; height: 480px; top: -180px; right: -120px; background: radial-gradient(circle, var(--orange) 0%, transparent 70%); opacity: 0.18; }
.hero-deco-circle.c2 { width: 320px; height: 320px; bottom: -100px; left: -80px; background: radial-gradient(circle, var(--green) 0%, transparent 70%); opacity: 0.14; }
.hero-deco-tri { position: absolute; width: 0; height: 0; border-left: 60px solid transparent; border-right: 60px solid transparent; border-bottom: 100px solid var(--blue); opacity: 0.04; transform: rotate(-12deg); }
.hero-deco-tri.t1 { top: 18%; left: 5%; }
.hero-deco-tri.t2 { bottom: 18%; right: 8%; transform: rotate(34deg); }
@media (max-width: 600px) { .hero-deco-circle.c1 { width: 280px; height: 280px; } .hero-deco-circle.c2 { width: 200px; height: 200px; } }

/* Marquee — construction-term ticker */
.marquee { background: var(--blue); color: var(--cream); padding: 18px 0; overflow: hidden; border-block: 1px solid var(--blue-dark); position: relative; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--blue), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--blue), transparent); }
.marquee-track { display: flex; gap: 56px; white-space: nowrap; animation: marquee 38s linear infinite; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.02em; font-style: italic; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > span { display: inline-flex; align-items: center; gap: 18px; transition: color 0.3s ease; }
.marquee-track > span:nth-child(odd) { color: var(--orange); }
.marquee-track > span:nth-child(even) { color: var(--cream); }
.marquee-track .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); display: inline-block; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 600px) { .marquee-track { font-size: 1.05rem; gap: 32px; } .marquee::before, .marquee::after { width: 60px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; transform: none !important; }
}

/* Editorial Typography Layer */
.headline-xl { font-family: var(--font-display); font-weight: 900; font-style: italic; letter-spacing: -0.04em; line-height: 0.95; }
.headline-overline { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.headline-overline::before { content: '— '; opacity: 0.5; }
.serif-accent { font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--orange-dark); }
.text-mono { font-family: var(--font-mono); }

/* Big drop-cap (for first paragraph in editorial sections) */
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.2rem;
  float: left;
  line-height: 0.85;
  padding: 8px 14px 0 0;
  color: var(--blue);
}

/* Body scroll-padding extra for fixed FAB + Sticky CTA */
html { scroll-padding-top: 100px; }
@media (max-width: 600px) { html { scroll-padding-top: 80px; } }

/* High-contrast focus rings — accessibility */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
.fab:focus-visible, .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.nav-links a:focus-visible { outline-offset: 2px; }
.ba-handle:focus-visible::after { box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 5px var(--orange); }

/* Reduce-motion safe-fallback for marquee + animations */
@media (prefers-reduced-motion: reduce) {
  .hero-visual .blob img { animation: none !important; }
  .fab.phone::after { animation: none !important; }
  .ba-handle::before { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* High-DPR retina sharpness */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
}

/* New: Big-Numbers Stats (editorial style) */
.big-numbers { background: var(--ink); color: var(--cream); padding: 100px 0; position: relative; overflow: hidden; }
.big-numbers::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(245,158,11,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(245,158,11,0.04) 1px, transparent 1px); background-size: 80px 80px; opacity: 0.6; pointer-events: none; }
.big-numbers .container { position: relative; z-index: 2; }
.big-numbers-head { max-width: 720px; margin-bottom: 56px; }
.big-numbers-head .eyebrow { color: var(--orange); }
.big-numbers-head h2 { font-family: var(--font-display); font-weight: 900; font-style: italic; color: var(--cream); font-size: clamp(2rem, 5vw, 3.6rem); margin-top: 12px; line-height: 1.05; letter-spacing: -0.02em; }
.big-numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.big-numbers-grid .stat-big { padding: 32px 24px; border-left: 1px solid rgba(250,246,237,0.12); position: relative; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.big-numbers-grid .stat-big:first-child { border-left: 0; padding-left: 0; }
.big-numbers-grid .stat-big:hover { transform: translateY(-4px); }
.big-numbers-grid .num-xl { font-family: var(--font-display); font-style: italic; font-weight: 900; color: var(--orange); font-size: clamp(3.4rem, 9vw, 6.4rem); line-height: 1; letter-spacing: -0.05em; display: block; }
.big-numbers-grid .label-md { display: block; margin-top: 14px; font-size: 1rem; color: var(--cream); font-weight: 700; letter-spacing: 0.02em; }
.big-numbers-grid .label-md small { display: block; font-size: 0.84rem; opacity: 0.6; margin-top: 4px; font-weight: 400; letter-spacing: 0.02em; }
@media (max-width: 900px) { .big-numbers-grid { grid-template-columns: repeat(2, 1fr); } .big-numbers-grid .stat-big { padding: 24px 16px; } .big-numbers-grid .stat-big:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid rgba(250,246,237,0.12); padding-top: 32px; margin-top: 8px; } .big-numbers-grid .stat-big:nth-child(4) { border-top: 1px solid rgba(250,246,237,0.12); padding-top: 32px; margin-top: 8px; } }

/* Magazine-style asymmetric service grid (Round 4) */
.mag-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.mag-grid > .mag-item { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 280px; }
.mag-grid > .mag-item.mag-feature { grid-row: span 2; min-height: 580px; }
.mag-grid > .mag-item.mag-tall { grid-row: span 2; min-height: 580px; }
@media (max-width: 900px) {
  .mag-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .mag-grid > .mag-item, .mag-grid > .mag-item.mag-feature, .mag-grid > .mag-item.mag-tall { grid-row: span 1; min-height: 320px; }
}
.mag-item .mag-img { position: absolute; inset: 0; }
.mag-item .mag-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.mag-item:hover .mag-img img { transform: scale(1.05); }
.mag-item .mag-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,32,44,0) 30%, rgba(20,32,44,0.88) 100%); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--cream); transition: background 0.4s ease; }
.mag-item:hover .mag-overlay { background: linear-gradient(180deg, rgba(20,32,44,0.15) 0%, rgba(20,32,44,0.92) 100%); }
.mag-item .mag-tag { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.mag-item h3 { color: var(--cream); font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; margin: 0; }
.mag-item.mag-feature h3 { font-size: clamp(2rem, 4vw, 3rem); }
.mag-item .mag-lead { color: rgba(250,246,237,0.85); font-size: 0.95rem; margin-top: 10px; max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.mag-item:hover .mag-lead { max-height: 200px; }
@media (max-width: 900px) { .mag-item .mag-lead { max-height: 200px; } }
.mag-item .mag-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--orange); font-weight: 700; font-size: 0.92rem; }
.mag-item .mag-arrow::after { content: '→'; transition: transform 0.4s; }
.mag-item:hover .mag-arrow::after { transform: translateX(6px); }

/* Quote block (editorial) */
.editorial-quote { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.35; color: var(--ink); max-width: 900px; margin: 60px auto; text-align: center; position: relative; padding: 0 24px; letter-spacing: -0.01em; }
.editorial-quote::before { content: '"'; position: absolute; left: 50%; top: -32px; transform: translateX(-50%); font-size: 5rem; color: var(--orange); line-height: 1; font-style: normal; opacity: 0.4; }
.editorial-quote cite { display: block; font-style: normal; font-family: var(--font-text); font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.04em; margin-top: 18px; text-transform: uppercase; }

/* Section dividers with editorial flair */
.section-divider { display: flex; align-items: center; gap: 16px; margin: 0 auto 56px; max-width: 900px; padding: 0 24px; }
.section-divider .line { flex: 1; height: 1px; background: var(--ink); opacity: 0.15; }
.section-divider .label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }

/* Marquee headline — single big italic phrase across full width */
.bigtype-strip { padding: 80px 0; background: var(--cream); overflow: hidden; }
.bigtype-strip h2 { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(2.4rem, 9vw, 8rem); line-height: 0.92; letter-spacing: -0.05em; color: var(--ink); text-align: center; padding: 0 24px; }
.bigtype-strip h2 .accent-orange { color: var(--orange); }
.bigtype-strip h2 .accent-blue  { color: var(--blue); }
.bigtype-strip h2 .accent-green { color: var(--green-dark); }
.bigtype-strip p { text-align: center; margin-top: 24px; font-size: 1.15rem; color: var(--ink-soft); max-width: 720px; margin-left: auto; margin-right: auto; padding: 0 24px; }

/* Process Visualization (Round) — vertical timeline with connecting line */
.timeline { position: relative; max-width: 920px; margin: 0 auto; padding: 0 24px; }
.timeline::before { content: ''; position: absolute; left: 56px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(180deg, var(--blue) 0%, var(--orange) 100%); border-radius: 1px; }
@media (max-width: 600px) { .timeline::before { left: 28px; } }
.timeline-step { display: grid; grid-template-columns: 80px 1fr; gap: 24px; margin-bottom: 40px; position: relative; align-items: start; }
@media (max-width: 600px) { .timeline-step { grid-template-columns: 56px 1fr; gap: 16px; } }
.timeline-step .timeline-num { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: var(--orange); display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 1.6rem; box-shadow: 0 8px 20px rgba(30,58,95,0.25); margin-left: 4px; position: relative; z-index: 2; }
.timeline-step .timeline-body { padding-top: 8px; }
.timeline-step h3 { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.55rem; margin-bottom: 6px; line-height: 1.1; }
.timeline-step p { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }

/* Footnote-style text */
.footnote { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.04em; }
.footnote::before { content: '* '; color: var(--orange); }

/* =====================================================================
   Round 6 — Magazine-Cover Hero + Sticky Aside-Nav + 3D Perspective
   ===================================================================== */

/* Editorial Magazine Cover Hero — split with collage */
.hero-cover { position: relative; padding: 130px 0 60px; background: var(--bg); overflow: hidden; }
.hero-cover::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,58,95,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,58,95,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, var(--bg) 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, var(--bg) 30%, transparent 80%);
}
.hero-cover-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .hero-cover-inner { grid-template-columns: 1fr; gap: 32px; } }

.cover-text { position: relative; }
.cover-stamp { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); font-weight: 700; padding: 6px 14px; border: 1.5px solid var(--blue); border-radius: 4px; background: var(--bg); }
.cover-stamp::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: stamp-pulse 2.2s ease-in-out infinite; }
@keyframes stamp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.cover-headline { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(2.6rem, 7.5vw, 6.4rem); line-height: 0.92; letter-spacing: -0.05em; margin-top: 22px; color: var(--ink); }
.cover-headline .word { display: inline-block; }
.cover-headline .word-emph { color: var(--blue); position: relative; }
.cover-headline .word-emph::before { content: ''; position: absolute; left: -4px; right: -4px; bottom: 8%; height: 28%; background: linear-gradient(100deg, var(--orange) 0%, var(--green-light) 100%); opacity: 0.4; border-radius: 4px; z-index: -1; }
.cover-headline .word-flow { color: var(--orange-dark); font-weight: 600; font-style: italic; }

.cover-meta { display: flex; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.cover-meta-item { display: flex; flex-direction: column; gap: 2px; }
.cover-meta-item .key { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.cover-meta-item .val { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -0.01em; }
.cover-meta-sep { width: 1px; height: 36px; background: var(--line); }

.cover-lead { font-size: 1.18rem; line-height: 1.55; color: var(--ink-soft); margin: 28px 0 32px; max-width: 540px; }
.cover-lead em { color: var(--blue); font-style: italic; font-weight: 600; }

/* Hero image — single big shot of finished project + small founder inset */
.cover-collage { position: relative; width: 100%; max-width: 640px; aspect-ratio: 4/5; margin: 0 auto; }
@media (max-width: 980px) { .cover-collage { max-width: 520px; aspect-ratio: 4/4.5; order: -1; min-height: 380px; } }
.cover-frame { position: absolute; border-radius: 18px; overflow: hidden; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.cover-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Main hero — fills almost the whole area, slight rotation for editorial feel */
.cover-frame.f1 {
  width: 100%; height: 100%; top: 0; left: 0; z-index: 2;
  transform: rotate(-1deg);
  box-shadow: 0 30px 80px rgba(15,23,42,0.30), 0 8px 20px rgba(15,23,42,0.15);
  border: 8px solid var(--cream);
}
.cover-frame.f1::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,0.35) 100%);
  pointer-events: none;
}
.cover-frame.f1 .frame-caption {
  position: absolute; bottom: 16px; left: 18px; right: 18px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream); font-weight: 700; z-index: 2;
  display: flex; justify-content: space-between; gap: 8px;
}
.cover-frame.f1 .frame-caption b { color: var(--orange); font-weight: 800; }
/* Founder inset — top right, small, framed like a Polaroid */
.cover-frame.f2 {
  width: 38%; aspect-ratio: 4/5;
  top: -24px; right: -16px; z-index: 4;
  transform: rotate(4deg);
  border: 8px solid var(--cream);
  box-shadow: 0 14px 36px rgba(15,23,42,0.30);
  background: var(--cream);
  padding-bottom: 28px; /* polaroid bottom border */
}
.cover-frame.f2 img { width: 100%; height: 100%; }
.cover-frame.f2::after {
  content: 'Walter & Daniel · 2. Generation';
  position: absolute; bottom: 4px; left: 8px; right: 8px;
  text-align: center; font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.6rem; letter-spacing: 0.08em; color: var(--ink-soft);
  font-weight: 700;
}
.cover-collage:hover .cover-frame.f1 { transform: rotate(0deg) translateY(-3px); }
.cover-collage:hover .cover-frame.f2 { transform: rotate(6deg) translateY(-4px); }
.cover-frame.f3, .cover-frame.f-tape { display: none; }
@media (max-width: 600px) {
  .cover-frame.f2 { width: 42%; top: -16px; right: -8px; }
}
.cover-badge { position: absolute; bottom: -12px; right: -12px; width: 120px; height: 120px; background: var(--orange); color: var(--ink); border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 16px; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 0.92rem; line-height: 1.05; box-shadow: var(--shadow-lg); z-index: 6; transform: rotate(-8deg); animation: badge-wobble 6s ease-in-out infinite; }
.cover-badge strong { font-size: 1.8rem; display: block; }
@keyframes badge-wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(-4deg); } }
@media (max-width: 600px) { .cover-badge { width: 90px; height: 90px; font-size: 0.78rem; } .cover-badge strong { font-size: 1.3rem; } }

/* Sticky Aside-Nav (right side, desktop magazine-index style) */
.section-rail { position: fixed; top: 50%; right: 24px; transform: translateY(-50%); z-index: 80; display: none; flex-direction: column; gap: 14px; }
@media (min-width: 1280px) { .section-rail { display: flex; } }
.section-rail a { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; padding: 6px 0; transition: color var(--transition); }
.section-rail a::before { content: ''; width: 28px; height: 2px; background: var(--ink-soft); opacity: 0.3; transition: width var(--transition), background var(--transition), opacity var(--transition); }
.section-rail a:hover { color: var(--blue); }
.section-rail a:hover::before { width: 48px; opacity: 1; background: var(--orange); }
.section-rail a.active { color: var(--blue); }
.section-rail a.active::before { width: 48px; opacity: 1; background: var(--orange); }
.section-rail .rail-label { font-family: var(--font-text); font-size: 0.78rem; font-weight: 600; }
.section-rail .rail-num { font-family: var(--font-display); font-style: italic; font-weight: 800; color: var(--orange); font-size: 1.05rem; min-width: 22px; }

/* 3D Perspective Hover on mag-tiles (desktop only) */
@media (min-width: 980px) and (hover: hover) {
  .mag-grid { perspective: 1400px; }
  .mag-item { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
  .mag-item:hover { transform: translateY(-6px) rotateX(2deg) rotateY(-2deg); box-shadow: var(--shadow-lg); }
}

/* Editorial Date-Marquee — date abreissen for Schmidt-Bau anniversary feel */
.date-marquee { background: var(--cream); padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.date-marquee-track { display: flex; gap: 48px; white-space: nowrap; animation: marquee 50s linear infinite; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--ink); letter-spacing: -0.02em; }
.date-marquee-track > span { display: inline-flex; align-items: center; gap: 16px; }
.date-marquee-track .year { color: var(--orange); }
.date-marquee-track .sep { color: var(--ink-faint); opacity: 0.4; font-style: normal; }
@media (prefers-reduced-motion: reduce) { .date-marquee-track { animation: none !important; } }

/* FAQ Section */
.faq-list { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.3rem; color: var(--ink); list-style: none; transition: color 0.3s ease; }
.faq-q::-webkit-details-marker { display: none; }
.faq-item:hover .faq-q { color: var(--blue); }
.faq-q::after { content: '+'; font-family: var(--font-display); font-size: 1.8rem; font-weight: 300; color: var(--orange); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); flex-shrink: 0; line-height: 1; }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 26px 0; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.65; max-width: 760px; }
.faq-a p { margin-bottom: 1em; }
.faq-a p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .faq-q { font-size: 1.1rem; } }

/* Milestones Timeline (storytelling) */
.milestones { display: grid; gap: 32px; max-width: 940px; margin: 0 auto; padding: 0 24px; }
.milestone { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); position: relative; }
.milestone:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 700px) { .milestone { grid-template-columns: 1fr; gap: 12px; } }
.milestone-year { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(2.4rem, 5vw, 4rem); color: var(--orange); line-height: 1; letter-spacing: -0.04em; }
.milestone-content h3 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.55rem; margin-bottom: 8px; color: var(--ink); line-height: 1.15; }
.milestone-content p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; margin: 0; }

/* Why-not section ("Warum nicht der billigste Bauträger?") */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.why-card { background: var(--white); padding: 32px 28px; border-radius: var(--radius); position: relative; box-shadow: var(--shadow-sm); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card::before { content: attr(data-num); position: absolute; top: 16px; right: 22px; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 4rem; color: var(--orange); opacity: 0.18; line-height: 0.8; }
.why-card h3 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.35rem; margin-bottom: 12px; color: var(--ink); line-height: 1.2; max-width: 220px; }
.why-card p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; margin: 0; }

/* Trust-Strip with real data */
.trust-real { background: var(--blue-dark); color: var(--cream); padding: 36px 0; position: relative; overflow: hidden; }
.trust-real::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(245,158,11,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(245,158,11,0.05) 1px, transparent 1px); background-size: 80px 80px; opacity: 0.6; }
.trust-real .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; position: relative; z-index: 2; }
.trust-real-item { padding-left: 18px; border-left: 2px solid var(--orange); }
.trust-real-item .key { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250,246,237,0.55); margin-bottom: 6px; }
.trust-real-item .val { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.1rem; color: var(--cream); line-height: 1.2; }
.trust-real-item .val small { display: block; font-size: 0.78rem; opacity: 0.75; margin-top: 2px; font-family: var(--font-text); font-weight: 400; font-style: normal; letter-spacing: 0; }

/* =====================================================================
   Round 8 — Visual-Wow Details, Micro-Interactions, Custom Patterns
   ===================================================================== */

/* Section background patterns — different per section for editorial flair */
.bg-blueprint { background: var(--bg); background-image: linear-gradient(rgba(30,58,95,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(30,58,95,0.05) 1px, transparent 1px); background-size: 60px 60px; }
.bg-dots { background: var(--bg); background-image: radial-gradient(circle, rgba(30,58,95,0.12) 1.2px, transparent 1.2px); background-size: 24px 24px; }
.bg-diag { background: var(--cream); background-image: repeating-linear-gradient(45deg, transparent, transparent 28px, rgba(30,58,95,0.04) 28px, rgba(30,58,95,0.04) 29px); }

/* Magazine-style icon badge (custom SVG container) */
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--orange); box-shadow: 0 6px 18px rgba(30,58,95,0.25); margin-bottom: 16px; position: relative; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.icon-badge::after { content: ''; position: absolute; inset: -3px; border: 1.5px dashed rgba(245,158,11,0.4); border-radius: 17px; opacity: 0; transition: opacity 0.3s ease; }
.icon-badge:hover { transform: rotate(-4deg) scale(1.05); }
.icon-badge:hover::after { opacity: 1; }
.icon-badge svg { width: 36px; height: 36px; }

/* Micro-interactions */
.btn { will-change: transform; }
.btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 1; }
.btn:hover::after { opacity: 1; }

/* Image-zoom on review hover */
.review { cursor: default; }
.review:hover::before { transform: translate(-4px, -4px); }

/* Cover frame hover-glow */
.cover-frame::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 rgba(245,158,11,0); transition: box-shadow 0.4s ease; pointer-events: none; }
.cover-frame:hover::after { box-shadow: inset 0 0 0 3px rgba(245,158,11,0.4); }

/* Stat-big number-pulse on intersection */
.big-numbers-grid .stat-big.visible .num-xl { animation: num-glow 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes num-glow {
  0% { text-shadow: 0 0 0 rgba(245,158,11,0); }
  40% { text-shadow: 0 0 40px rgba(245,158,11,0.6); }
  100% { text-shadow: 0 0 0 rgba(245,158,11,0); }
}

/* Section-divider — animated line draw on intersection */
.section-divider .line { transform-origin: left center; transform: scaleX(0); transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; }
.section-divider.visible .line { transform: scaleX(1); }
.section-divider .line:last-child { transform-origin: right center; }

/* Headline word-by-word reveal on cover */
.cover-headline .word { opacity: 0; transform: translateY(20px); animation: word-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.cover-headline .word:nth-of-type(1) { animation-delay: 0.1s; }
.cover-headline .word:nth-of-type(2) { animation-delay: 0.2s; }
.cover-headline .word:nth-of-type(3) { animation-delay: 0.4s; }
.cover-headline .word:nth-of-type(4) { animation-delay: 0.5s; }
.cover-headline .word:nth-of-type(5) { animation-delay: 0.7s; }
@keyframes word-rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .cover-headline .word { opacity: 1; transform: none; animation: none; }
}

/* Construction-style ribbon decoration */
.ribbon-tag { display: inline-block; padding: 4px 14px; background: var(--orange); color: var(--ink); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%); }

/* Footer enhancement — magazine masthead style */
.footer .brand-logo { margin-bottom: 18px; }
.footer h4 { position: relative; padding-bottom: 12px; margin-bottom: 18px; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--orange); }

/* Print stylesheet */
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-header, .top-strip, .marquee, .date-marquee, .fab-stack, .mobile-sticky-cta, .section-rail, .cta-strip, .footer { display: none !important; }
  .hero, .hero-cover { padding-top: 0 !important; }
  .hero-pattern, .hero-deco, .hero-cover::before { display: none !important; }
  a { color: black; text-decoration: underline; }
  h1, h2, h3 { color: black; page-break-after: avoid; }
  section { page-break-inside: avoid; padding: 12pt 0; }
  img { max-width: 100% !important; }
  .container { max-width: none !important; padding: 0 !important; }
}

/* Process timeline (on Leistungen / Index) */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; position: relative; }
.process-step { background: var(--white); padding: 26px 22px; border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; transition: transform var(--transition), box-shadow var(--transition); }
.process-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.process-step .step-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: var(--cream); font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; font-family: var(--font-display); }
.process-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.process-step p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* CTA strip */
.cta-strip { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%); padding: 60px 0; color: var(--ink); position: relative; overflow: hidden; }
.cta-strip::before { content: ''; position: absolute; top: -50%; left: -10%; width: 60%; height: 200%; background: radial-gradient(ellipse at center, rgba(255,255,255,0.18) 0%, transparent 60%); pointer-events: none; }
.cta-strip .container { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-strip h2 { color: var(--ink); margin: 0; max-width: 700px; }
.cta-strip p { color: rgba(20,32,44,0.78); margin: 8px 0 0 0; font-weight: 500; }
.cta-strip .btn-ghost { color: var(--ink); border-color: var(--ink); }
.cta-strip .btn-ghost:hover { background: var(--ink); color: var(--orange); border-color: var(--ink); }
@media (max-width: 700px) {
  .cta-strip .container { flex-direction: column; text-align: center; align-items: stretch; }
  .cta-strip .container > div { text-align: center; }
}

/* Tabs (Leistungen detail) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.tab { padding: 12px 22px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; cursor: pointer; transition: var(--transition); border: 1.5px solid var(--line); min-height: 48px; display: inline-flex; align-items: center; }
.tab.active { background: var(--blue); color: var(--cream); border-color: var(--blue); }
.tab:hover { border-color: var(--blue); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Two-col text + media */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col .col-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* Page hero (subpages) — editorial */
.page-hero { padding: 140px 0 80px; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--cream); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(245,158,11,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(245,158,11,0.08) 1px, transparent 1px); background-size: 80px 80px; opacity: 0.6; pointer-events: none; }
.page-hero::after { content: ''; position: absolute; top: -30%; right: -10%; width: 50%; height: 160%; background: radial-gradient(ellipse at center, rgba(245,158,11,0.10) 0%, transparent 60%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 2; max-width: 920px; }
.page-hero .eyebrow, .page-hero .headline-overline { color: var(--orange); }
.page-hero h1 { color: var(--cream); margin-top: 12px; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(2.4rem, 7vw, 5.6rem); line-height: 0.98; letter-spacing: -0.04em; }
.page-hero p { color: rgba(250,246,237,0.85); font-size: 1.2rem; margin-top: 22px; max-width: 680px; line-height: 1.55; }
.page-hero .breadcrumb { display: flex; gap: 8px; font-size: 0.82rem; opacity: 0.7; margin-bottom: 20px; flex-wrap: wrap; font-family: var(--font-mono); letter-spacing: 0.06em; }
.page-hero .breadcrumb a { color: var(--cream); }
.page-hero .breadcrumb a:hover { color: var(--orange); }
@media (max-width: 700px) { .page-hero { padding: 110px 0 56px; } .page-hero p { font-size: 1.04rem; } }

/* Map embed */
.map-embed { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-embed-placeholder { aspect-ratio: 16/9; border-radius: var(--radius); display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-pale) 0%, var(--sand) 100%); color: var(--blue); font-weight: 700; padding: 24px; text-align: center; }

/* List with check */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 12px; padding: 9px 0; align-items: flex-start; font-size: 1.02rem; color: var(--ink-soft); }
.check-list li::before { content: ''; flex-shrink: 0; margin-top: 2px; width: 22px; height: 22px; background: var(--green); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center; }

/* Long-form (legal pages) */
.prose { max-width: 820px; margin: 0 auto; padding: 60px 0; }
.prose h2 { margin: 32px 0 14px; font-size: 1.6rem; }
.prose h3 { margin: 24px 0 10px; font-size: 1.25rem; }
.prose p { font-size: 1.02rem; color: var(--ink); margin-bottom: 14px; }
.prose ul, .prose ol { margin: 14px 0 14px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue); text-decoration: underline; }

/* 404 */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 100px 24px 60px; }
.error-page .code { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 12rem); font-weight: 900; color: var(--blue-pale); line-height: 1; letter-spacing: -0.06em; }

/* Print-friendly small tweaks */
@media print {
  .site-header, .fab-stack, .top-strip, .cta-strip, .footer { display: none !important; }
  body { color: #000; background: #fff; }
}
