/* ===========================================================
   SG SAHIN GEBÄUDETECHNIK – PREMIUM STYLES v2
   Dunkelblau-Palette mit fließenden Übergängen
   =========================================================== */

/* ---------- RESET ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'DM Sans',system-ui,sans-serif;
  font-size:17px;line-height:1.65;
  color:#E8EDFB;
  background:#0B1F5C;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,textarea,select{font-family:inherit;font-size:inherit;color:inherit}
ul{list-style:none}

/* ---------- DESIGN TOKENS ---------- */
:root{
  --navy-deep:#0B1F5C;
  --navy:#142B6E;
  --navy-mid:#1A3580;
  --navy-light:#2248A4;
  --blue-glow:#2E5BBF;
  --blue-soft:#4A78D6;
  --blue-mist:#7FA0E8;
  --accent-red:#E63946;
  --accent-red-soft:#FF5A6B;
  --accent-cyan:#6FD6F5;
  --gold:#D4A94E;
  --gold-soft:#E8C27A;
  --text-bright:#FFFFFF;
  --text-light:#E8EDFB;
  --text-soft:#C4D0EE;
  --text-muted:#92A4D1;
  --container:1280px;
  --radius:18px;
  --surface:#F4F7FF;
  --ink:#07143D;
  --radius-sm:12px;
  --shadow-soft:0 10px 40px rgba(0,0,0,.35);
  --shadow-lift:0 25px 60px rgba(0,0,0,.45);
  --shadow-glow:0 0 60px rgba(46,91,191,.35);
  --ease:cubic-bezier(.22,1,.36,1);
  --t-fast:.28s var(--ease);
  --t-med:.55s var(--ease);
  --t-slow:.9s var(--ease);
}

/* ---------- TYPOGRAPHY ---------- */
h1,h2,h3,h4{font-family:'DM Sans',system-ui,sans-serif;font-weight:700;line-height:1.1;letter-spacing:0;color:var(--text-bright)}
h1{font-size:clamp(2.4rem,5.5vw,4.6rem);font-weight:400}
h2{font-size:clamp(2rem,4vw,3.4rem);font-weight:400}
h3{font-size:clamp(1.3rem,2vw,1.7rem)}
h4{font-size:1.15rem;font-family:'DM Sans',system-ui,sans-serif;font-weight:700;letter-spacing:0}
em{font-style:italic;color:var(--gold-soft)}
.eyebrow{display:inline-block;font-size:.75rem;letter-spacing:.22em;text-transform:uppercase;color:var(--gold-soft);font-weight:600;margin-bottom:1.1rem;position:relative;padding-left:2.4rem}
.eyebrow::before{content:"";position:absolute;left:0;top:50%;width:1.8rem;height:1px;background:var(--gold)}
p{color:var(--text-soft);max-width:62ch}
.lead{font-size:1.18rem;color:var(--text-light);line-height:1.7}

/* ---------- LAYOUT ---------- */
.container{max-width:var(--container);margin:0 auto;padding:0 clamp(1.2rem,3vw,2.2rem)}
section{position:relative;padding:clamp(5rem,9vw,8rem) 0;overflow:hidden}

/* ---------- FLIESSENDE ÜBERGÄNGE ---------- */
.section-depth-1{background:radial-gradient(ellipse 120% 70% at 50% 0%,rgba(34,72,164,.35),transparent 60%),radial-gradient(ellipse 100% 60% at 50% 100%,rgba(20,43,110,.6),transparent 70%)}
.section-depth-2{background:radial-gradient(ellipse 100% 80% at 20% 30%,rgba(46,91,191,.25),transparent 55%),radial-gradient(ellipse 100% 80% at 80% 70%,rgba(26,53,128,.4),transparent 55%)}
.section-depth-3{background:radial-gradient(ellipse 140% 70% at 50% 50%,rgba(46,91,191,.18),transparent 60%)}
.section-glow{background:radial-gradient(ellipse 90% 60% at 50% 40%,rgba(79,120,214,.28),transparent 60%),radial-gradient(ellipse 120% 50% at 50% 100%,rgba(11,31,92,.8),transparent 70%)}
.section-deep{background:radial-gradient(ellipse 100% 80% at 30% 40%,rgba(20,43,110,.5),transparent 60%),radial-gradient(ellipse 100% 60% at 70% 60%,rgba(11,31,92,.8),transparent 60%)}

/* Weiche Fade-Übergänge zwischen Sektionen */
section::before,section::after{content:"";position:absolute;left:0;right:0;height:140px;pointer-events:none;z-index:1}
section::before{top:-1px;background:linear-gradient(180deg,rgba(11,31,92,.9),transparent)}
section::after{bottom:-1px;background:linear-gradient(0deg,rgba(11,31,92,.9),transparent)}
section > *{position:relative;z-index:2}

/* Pulsierende Hintergrund-Orbs */
.section-glow{position:relative}
.section-glow > .orb-a,.section-glow > .orb-b{position:absolute;border-radius:50%;filter:blur(70px);pointer-events:none;z-index:0}
.section-glow > .orb-a{top:10%;left:-10%;width:50vw;height:50vw;max-width:700px;max-height:700px;background:radial-gradient(circle,rgba(79,120,214,.18),transparent 70%);animation:orb-float 18s ease-in-out infinite}
.section-glow > .orb-b{bottom:0;right:-10%;width:55vw;height:55vw;max-width:800px;max-height:800px;background:radial-gradient(circle,rgba(212,169,78,.10),transparent 70%);animation:orb-float 22s ease-in-out infinite reverse}
@keyframes orb-float{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(40px,-30px) scale(1.15)}}

/* ---------- HEADER ---------- */
.site-header{position:fixed;top:0;left:0;right:0;z-index:100;background:rgba(7,20,61,.82);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);transition:background var(--t-fast),box-shadow var(--t-fast),padding var(--t-fast),border-color var(--t-fast);padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.08)}
.site-header.is-scrolled{background:rgba(7,20,61,.94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 10px 36px rgba(0,0,0,.38);padding:.25rem 0;border-color:rgba(127,160,232,.18)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:2rem}
.logo-link{display:block;flex-shrink:0;transition:transform var(--t-fast)}
.logo-link:hover{transform:scale(1.03)}
.logo-link img{height:58px;width:auto;display:block;transition:height var(--t-fast);filter:drop-shadow(0 2px 10px rgba(0,0,0,.28))}
.site-header.is-scrolled .logo-link img{height:46px}
.main-nav{display:flex;gap:2.3rem;align-items:center}
.main-nav a{font-size:.94rem;font-weight:500;color:var(--text-light);position:relative;padding:.5rem 0;transition:color var(--t-fast)}
.main-nav a::after{content:"";position:absolute;left:0;bottom:-2px;width:0;height:2px;background:linear-gradient(90deg,var(--blue-soft),var(--gold-soft));transition:width var(--t-med)}
.main-nav a:hover{color:var(--text-bright)}
.main-nav a:hover::after,.main-nav a.is-active::after{width:100%}
.main-nav a.is-active{color:var(--text-bright)}
.header-cta{padding:.7rem 1.4rem;border-radius:999px;background:linear-gradient(135deg,var(--blue-glow),var(--blue-soft));color:var(--text-bright);font-weight:600;font-size:.9rem;transition:transform var(--t-fast),box-shadow var(--t-fast);box-shadow:0 4px 15px rgba(46,91,191,.4)}
.header-cta:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(46,91,191,.6)}
.nav-toggle{display:none;width:44px;height:44px;flex-direction:column;justify-content:center;align-items:center;gap:5px;border-radius:8px}
.nav-toggle span{width:22px;height:2px;background:var(--text-bright);transition:transform var(--t-fast),opacity var(--t-fast)}
.nav-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.is-open span:nth-child(2){opacity:0}
.nav-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mobile-panel{position:fixed;inset:0;z-index:99;background:linear-gradient(180deg,#0B1F5C,#142B6E);padding:7rem 2rem 2rem;transform:translateX(100%);transition:transform var(--t-med);display:flex;flex-direction:column;gap:1.5rem}
.mobile-panel.is-open{transform:translateX(0)}
.mobile-panel a{font-family:'DM Sans',system-ui,sans-serif;font-size:1.8rem;color:var(--text-bright);padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.08)}
.mobile-panel a.is-active{color:var(--gold-soft)}
.mobile-panel .header-cta{align-self:flex-start;margin-top:1rem;font-size:1rem;display:inline-flex}

/* ---------- HERO ---------- */
.hero{min-height:100vh;padding-top:10rem;padding-bottom:6rem;display:flex;align-items:center;position:relative;overflow:hidden;background:radial-gradient(ellipse 80% 50% at 20% 20%,rgba(46,91,191,.35),transparent 60%),radial-gradient(ellipse 90% 60% at 80% 80%,rgba(212,169,78,.12),transparent 60%),linear-gradient(180deg,#0B1F5C 0%,#142B6E 100%)}
.hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:80px 80px;mask-image:radial-gradient(ellipse at center,black,transparent 70%);-webkit-mask-image:radial-gradient(ellipse at center,black,transparent 70%);pointer-events:none;z-index:1}
.hero-inner{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,5vw,5rem);align-items:center;position:relative;z-index:3;width:100%}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap}
.hero-badge{position:absolute;background:rgba(11,31,92,.85);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:.9rem 1.3rem;display:flex;align-items:center;gap:.8rem;box-shadow:var(--shadow-soft);z-index:4;animation:float-soft 6s ease-in-out infinite}
.hero-badge .badge-icon{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--blue-glow),var(--blue-soft));flex-shrink:0}
.hero-badge .badge-icon svg{width:20px;height:20px;color:white}
.hero-badge-top{top:8%;left:-6%;animation-delay:0s}
.hero-badge-bottom{bottom:8%;right:-6%;animation-delay:3s}
.hero-badge strong{display:block;font-size:.9rem;color:var(--text-bright);font-weight:600}
.hero-badge span{font-size:.75rem;color:var(--text-muted)}
@keyframes float-soft{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}

/* ---------- BUTTONS ---------- */
.btn{display:inline-flex;align-items:center;gap:.7rem;padding:1rem 1.9rem;border-radius:999px;font-weight:600;font-size:.95rem;letter-spacing:.01em;transition:transform var(--t-fast),box-shadow var(--t-fast),background var(--t-fast);position:relative;overflow:hidden}
.btn svg{width:18px;height:18px;transition:transform var(--t-fast)}
.btn:hover svg{transform:translateX(4px)}
.btn-primary{background:linear-gradient(135deg,var(--blue-glow),var(--blue-soft));color:var(--text-bright);box-shadow:0 8px 30px rgba(46,91,191,.4)}
.btn-primary:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 14px 45px rgba(46,91,191,.6)}
.btn-ghost{background:transparent;color:var(--text-light);border:1.5px solid rgba(255,255,255,.25)}
.btn-ghost:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.5);transform:translateY(-2px)}
.btn-gold{background:linear-gradient(135deg,var(--gold),var(--gold-soft));color:var(--navy-deep);box-shadow:0 8px 30px rgba(212,169,78,.3)}
.btn-gold:hover{transform:translateY(-3px);box-shadow:0 14px 40px rgba(212,169,78,.5)}

/* ---------- CARDS ---------- */
.grid{display:grid;gap:1.8rem}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.card{background:linear-gradient(145deg,rgba(244,247,255,.12),rgba(30,58,138,.38) 42%,rgba(7,20,61,.48));backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(244,247,255,.16);border-radius:var(--radius);padding:2.2rem;transition:transform var(--t-med),border-color var(--t-med),box-shadow var(--t-med),background var(--t-med);position:relative;overflow:hidden}
.card::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at var(--mx,50%) var(--my,50%),rgba(79,120,214,.25),transparent 40%);opacity:0;transition:opacity var(--t-med);pointer-events:none}
.card:hover{transform:translateY(-10px) scale(1.015);border-color:rgba(232,194,122,.42);box-shadow:var(--shadow-lift),0 0 40px rgba(111,214,245,.18)}
.card:hover::before{opacity:1}
.card .icon-wrap{width:62px;height:62px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--blue-glow),var(--navy-light));margin-bottom:1.4rem;box-shadow:0 6px 20px rgba(46,91,191,.35);transition:transform var(--t-med)}
.card:hover .icon-wrap{transform:scale(1.1) rotate(-5deg)}
.card .icon-wrap svg{width:28px;height:28px;color:white}
.card-heizung .icon-wrap{background:linear-gradient(135deg,var(--accent-red),var(--accent-red-soft))}
.card-sanitaer .icon-wrap{background:linear-gradient(135deg,var(--accent-cyan),var(--blue-glow))}
.card-klima .icon-wrap{background:linear-gradient(135deg,var(--blue-soft),var(--accent-cyan))}
.card h3{margin-bottom:.8rem}
.card p{color:var(--text-soft);margin-bottom:1.2rem}
.card .card-link{color:var(--gold-soft);font-weight:600;font-size:.95rem;display:inline-flex;align-items:center;gap:.4rem;transition:gap var(--t-fast)}
.card .card-link:hover{gap:.9rem}
.feature-card{background:rgba(30,58,138,.25);border:1px solid rgba(127,160,232,.12);border-radius:var(--radius-sm);padding:1.6rem;transition:transform var(--t-med),background var(--t-med),border-color var(--t-med)}
.feature-card:hover{background:rgba(46,91,191,.25);border-color:rgba(127,160,232,.3);transform:translateY(-6px)}
.feature-card h4{margin-bottom:.5rem;color:var(--text-bright)}
.feature-card p{font-size:.94rem;color:var(--text-soft)}
.feature-card .icon-sm{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,var(--blue-glow),var(--navy-light));display:flex;align-items:center;justify-content:center;margin-bottom:1rem;transition:transform var(--t-med)}
.feature-card:hover .icon-sm{transform:scale(1.15) rotate(5deg)}
.feature-card .icon-sm svg{width:22px;height:22px;color:white}

/* ---------- SPLIT ---------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,5rem);align-items:center}
.split.reversed{grid-template-columns:1fr 1fr}
.split.reversed .split-visual{order:-1}
.split-visual{aspect-ratio:5/6;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-lift),var(--shadow-glow);position:relative;transition:transform var(--t-slow)}
.split-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(11,31,92,.1),rgba(46,91,191,.3))}
.split-visual .img{width:100%;height:100%;background-size:cover;background-position:center;transition:transform 1.2s var(--ease)}
.split-visual:hover .img{transform:scale(1.08)}
.split-text h2{margin-bottom:1.4rem}
.split-text p{margin-bottom:1.2rem;max-width:52ch}
.split-text ul.check-list{margin:1.4rem 0 2rem}
.check-list li{display:flex;gap:.9rem;align-items:flex-start;padding:.6rem 0;color:var(--text-light)}
.check-list li::before{content:"";flex-shrink:0;width:22px;height:22px;border-radius:50%;background-image: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>"),linear-gradient(135deg,var(--blue-glow),var(--blue-soft));background-size:14px,100%;background-repeat:no-repeat;background-position:center;margin-top:.2rem}

/* ---------- STEPS ---------- */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;margin-top:3rem}
.step{position:relative;padding:2rem 1.5rem;text-align:center;transition:transform var(--t-med)}
.step::before{content:"";position:absolute;top:3.95rem;left:calc(50% + 3.8rem);width:calc(100% - 7.6rem);height:1px;background:linear-gradient(90deg,rgba(232,194,122,.7),rgba(111,214,245,.15));transform-origin:left;transform:scaleX(0);transition:transform .9s var(--ease)}
.step.is-visible::before{transform:scaleX(1)}
.step:last-child::before{display:none}
.step::before{content:"";position:absolute;top:3.95rem;left:calc(50% + 3.8rem);width:calc(100% - 7.6rem);height:1px;background:linear-gradient(90deg,rgba(232,194,122,.7),rgba(111,214,245,.15));transform-origin:left;transform:scaleX(0);transition:transform .9s var(--ease)}
.step.is-visible::before{transform:scaleX(1)}
.step:last-child::before{display:none}
.step:hover{transform:translateY(-8px)}
.step-num{font-family:'DM Sans',system-ui,sans-serif;font-size:4rem;font-weight:300;font-style:italic;background:linear-gradient(135deg,var(--gold-soft),var(--blue-mist));-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1;margin-bottom:.8rem;transition:transform var(--t-med)}
.step:hover .step-num{transform:scale(1.15)}
.step-symbol{width:92px;height:92px;margin:0 auto 1rem;border-radius:999px;display:grid;place-items:center;position:relative;color:var(--text-bright);background:rgba(111,214,245,.16);border:1px solid rgba(111,214,245,.46);box-shadow:0 14px 38px rgba(0,0,0,.24),0 0 24px rgba(111,214,245,.18)}
.step-symbol span{position:absolute;top:-.65rem;right:-.35rem;width:34px;height:34px;border-radius:999px;display:grid;place-items:center;background:linear-gradient(135deg,var(--gold),var(--gold-soft));color:var(--navy-deep);font-weight:800;font-size:.78rem;letter-spacing:.04em}
.step-symbol svg{width:38px;height:38px;color:var(--accent-cyan)}
.step h4{margin-bottom:.6rem}
.step p{font-size:.92rem;margin:0 auto;color:var(--text-soft)}

/* ---------- CTA BAND ---------- */
.cta-band{background:radial-gradient(ellipse at 20% 30%,rgba(212,169,78,.2),transparent 60%),radial-gradient(ellipse at 80% 70%,rgba(46,91,191,.35),transparent 60%),linear-gradient(135deg,#142B6E,#0B1F5C);border-radius:var(--radius);padding:clamp(3rem,6vw,5rem) clamp(2rem,5vw,5rem);text-align:center;position:relative;overflow:hidden;border:1px solid rgba(127,160,232,.15)}
.cta-band::before{content:"";position:absolute;top:-50%;left:-10%;width:120%;height:200%;background:conic-gradient(from 0deg at 50% 50%,transparent,rgba(212,169,78,.08),transparent 20%);animation:spin-slow 20s linear infinite;pointer-events:none}
@keyframes spin-slow{to{transform:rotate(360deg)}}
.cta-band > *{position:relative;z-index:2}
.cta-band h2{margin-bottom:1rem}
.cta-band .lead{margin:0 auto 2rem;max-width:58ch}
.cta-band .hero-actions{justify-content:center}

/* ---------- TESTIMONIALS ---------- */
.testimonial{background:linear-gradient(145deg,rgba(30,58,138,.35),rgba(20,43,110,.55));border:1px solid rgba(127,160,232,.12);border-radius:var(--radius);padding:2.2rem;position:relative;transition:transform var(--t-med),border-color var(--t-med)}
.testimonial:hover{transform:translateY(-6px);border-color:rgba(212,169,78,.3)}
.testimonial .quote-mark{font-family:'DM Sans',system-ui,sans-serif;font-size:5rem;line-height:.5;color:var(--gold-soft);opacity:.4;position:absolute;top:1.5rem;right:1.8rem}
.testimonial p{margin-top:1rem;margin-bottom:0;font-style:italic;color:var(--text-light)}
.testimonial .author{display:flex;gap:.9rem;align-items:center;padding-top:0;border-top:0}
.testimonial .avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,var(--blue-glow),var(--gold-soft));display:flex;align-items:center;justify-content:center;color:white;font-weight:600;font-size:.9rem}
.testimonial .author strong{display:block;color:var(--text-bright);font-size:.95rem}
.testimonial .author span{font-size:.82rem;color:var(--text-muted)}
.review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.15rem;align-items:start}
.stars{color:var(--gold-soft);font-size:.82rem;letter-spacing:.14em;margin-bottom:.75rem;text-shadow:0 2px 14px rgba(0,0,0,.48)}

/* ---------- STATS ---------- */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;padding:3rem 0;border-top:1px solid rgba(127,160,232,.15);border-bottom:1px solid rgba(127,160,232,.15)}
.stat{text-align:center}
.stat-num{font-family:'DM Sans',system-ui,sans-serif;font-size:clamp(2.5rem,5vw,4rem);font-weight:300;background:linear-gradient(135deg,var(--gold-soft),var(--blue-mist));-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1;margin-bottom:.4rem}
.stat-label{font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted)}

/* ---------- FORM ---------- */
.contact-form{background:linear-gradient(145deg,rgba(30,58,138,.3),rgba(20,43,110,.55));border:1px solid rgba(127,160,232,.15);border-radius:var(--radius);padding:clamp(2rem,4vw,3.2rem);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin-bottom:1.2rem}
.form-field{position:relative;margin-bottom:1.2rem}
.form-field label{display:block;font-size:.85rem;font-weight:600;color:var(--text-light);margin-bottom:.5rem;letter-spacing:.02em}
.form-field input,.form-field textarea,.form-field select{width:100%;padding:.95rem 1.1rem;background:rgba(11,31,92,.5);border:1.5px solid rgba(127,160,232,.2);border-radius:12px;color:var(--text-bright);transition:border-color var(--t-fast),background var(--t-fast),box-shadow var(--t-fast)}
.form-field input:focus,.form-field textarea:focus,.form-field select:focus{outline:none;border-color:var(--blue-soft);background:rgba(11,31,92,.8);box-shadow:0 0 0 4px rgba(74,120,214,.15)}
.form-field textarea{resize:vertical;min-height:130px}
.form-field.checkbox{display:flex;gap:.8rem;align-items:flex-start}
.form-field.checkbox input{width:auto;margin-top:.3rem}
.form-field.checkbox label{font-size:.85rem;color:var(--text-soft);font-weight:400;margin:0}
.form-field.checkbox a{color:var(--gold-soft);text-decoration:underline}
.form-success{padding:1.5rem;background:linear-gradient(135deg,rgba(46,91,191,.3),rgba(212,169,78,.2));border:1px solid rgba(212,169,78,.4);border-radius:12px;color:var(--text-bright);margin-top:1.5rem;display:none}
.form-success.is-visible{display:block;animation:fade-up .5s var(--ease)}

/* ---------- PAGE HERO ---------- */
.page-hero{padding-top:12rem;padding-bottom:5rem;text-align:center;position:relative;background:radial-gradient(ellipse 90% 70% at 50% 0%,rgba(46,91,191,.4),transparent 60%),linear-gradient(180deg,#0B1F5C 0%,#142B6E 100%)}
.page-hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:80px 80px;mask-image:radial-gradient(ellipse at center,black,transparent 70%);-webkit-mask-image:radial-gradient(ellipse at center,black,transparent 70%);pointer-events:none}
.page-hero > *{position:relative;z-index:2}
.page-hero h1{margin-bottom:1.2rem;font-size:clamp(2.2rem,4.5vw,3.8rem)}
.page-hero .lead{margin:0 auto;max-width:58ch}

/* ---------- SECTION HEADER ---------- */
.section-header{text-align:center;margin-bottom:4rem;max-width:1040px;margin-left:auto;margin-right:auto}
.section-header h2{margin-bottom:1rem}
.section-header p{margin:0 auto;color:var(--text-soft)}

/* ---------- CALCULATOR ---------- */
.calculator{background:linear-gradient(145deg,rgba(30,58,138,.4),rgba(20,43,110,.65));border:1px solid rgba(127,160,232,.2);border-radius:var(--radius);padding:clamp(2rem,4vw,3.2rem);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);position:relative;overflow:hidden}
.calculator::before{content:"";position:absolute;top:-50%;right:-20%;width:60%;height:200%;background:radial-gradient(circle,rgba(212,169,78,.12),transparent 60%);filter:blur(40px);pointer-events:none;animation:orb-float 15s ease-in-out infinite}
.calculator-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:3rem;align-items:start;position:relative;z-index:2}
.calc-controls{display:flex;flex-direction:column;gap:1.8rem}
.calc-option-group label.group-label{display:block;font-weight:600;color:var(--text-bright);margin-bottom:.8rem;font-size:.95rem}
.calc-pills{display:flex;flex-wrap:wrap;gap:.6rem}
.calc-pill{padding:.7rem 1.2rem;border-radius:999px;background:rgba(11,31,92,.5);border:1.5px solid rgba(127,160,232,.2);color:var(--text-soft);font-size:.9rem;font-weight:500;cursor:pointer;transition:transform var(--t-fast),background var(--t-fast),border-color var(--t-fast),color var(--t-fast)}
.calc-pill:hover{background:rgba(46,91,191,.3);border-color:var(--blue-soft);color:var(--text-bright);transform:translateY(-2px)}
.calc-pill.is-active{background:linear-gradient(135deg,var(--blue-glow),var(--blue-soft));border-color:var(--blue-soft);color:white;box-shadow:0 4px 15px rgba(46,91,191,.4)}
.calc-slider-group{display:flex;flex-direction:column;gap:.6rem}
.slider-row{display:flex;justify-content:space-between;align-items:center}
.slider-row .slider-value{font-family:'DM Sans',system-ui,sans-serif;font-size:1.4rem;color:var(--gold-soft);font-weight:400}
.calc-slider{width:100%;height:6px;-webkit-appearance:none;appearance:none;background:rgba(11,31,92,.6);border-radius:3px;outline:none}
.calc-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--gold-soft));cursor:pointer;box-shadow:0 4px 12px rgba(212,169,78,.5);transition:transform var(--t-fast)}
.calc-slider::-webkit-slider-thumb:hover{transform:scale(1.2)}
.calc-slider::-moz-range-thumb{width:24px;height:24px;border-radius:50%;border:none;background:linear-gradient(135deg,var(--gold),var(--gold-soft));cursor:pointer;box-shadow:0 4px 12px rgba(212,169,78,.5)}
.calc-result{background:linear-gradient(145deg,rgba(11,31,92,.7),rgba(20,43,110,.7));border:1px solid rgba(212,169,78,.3);border-radius:var(--radius-sm);padding:2rem;text-align:center;position:relative}
.calc-result-label{font-size:.8rem;letter-spacing:.15em;text-transform:uppercase;color:var(--gold-soft);margin-bottom:.6rem}
.calc-result-value{font-family:'DM Sans',system-ui,sans-serif;font-size:clamp(2.4rem,5vw,3.8rem);font-weight:300;line-height:1;background:linear-gradient(135deg,var(--gold-soft),var(--blue-mist));-webkit-background-clip:text;background-clip:text;color:transparent;margin-bottom:.4rem;transition:transform .4s var(--ease)}
.calc-result-value.is-changing{transform:scale(1.08)}
.calc-result-range{color:var(--text-muted);font-size:.85rem;margin-bottom:1.5rem}
.calc-result hr{border:none;height:1px;background:rgba(127,160,232,.15);margin:1.5rem 0}
.calc-result p{font-size:.88rem;color:var(--text-soft);margin:0 auto 1.2rem}
.calc-result .btn{width:100%;justify-content:center}

/* ---------- FAQ ---------- */
.faq{max-width:820px;margin:0 auto}
.faq-item{background:rgba(30,58,138,.25);border:1px solid rgba(127,160,232,.15);border-radius:var(--radius-sm);margin-bottom:1rem;overflow:hidden;transition:border-color var(--t-fast),background var(--t-fast)}
.faq-item:hover{border-color:rgba(127,160,232,.3)}
.faq-item.is-open{background:rgba(46,91,191,.2);border-color:rgba(212,169,78,.3)}
.faq-q{padding:1.3rem 1.6rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;cursor:pointer;width:100%;text-align:left;font-weight:600;color:var(--text-bright);font-size:1.02rem}
.faq-icon{position:relative;flex-shrink:0;width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,var(--blue-glow),var(--blue-soft));display:flex;align-items:center;justify-content:center;transition:transform var(--t-med)}
.faq-icon::before,.faq-icon::after{content:"";position:absolute;width:10px;height:2px;background:white;border-radius:1px;transition:transform var(--t-med)}
.faq-icon::after{transform:rotate(90deg)}
.faq-item.is-open .faq-icon{transform:rotate(180deg)}
.faq-item.is-open .faq-icon::after{transform:rotate(0)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .5s var(--ease)}
.faq-item.is-open .faq-a{max-height:500px}
.faq-a-inner{padding:0 1.6rem 1.4rem;color:var(--text-soft)}

/* ---------- FOOTER ---------- */
.site-footer{background:linear-gradient(180deg,#0B1F5C,#07143D);padding:5rem 0 2rem;position:relative;border-top:1px solid rgba(127,160,232,.1)}
.site-footer::before{content:"";position:absolute;top:0;left:10%;right:10%;height:1px;background:linear-gradient(90deg,transparent,var(--blue-soft),transparent)}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:3rem;margin-bottom:3rem}
.footer-col img.footer-logo{height:80px;margin-bottom:1.2rem}
.footer-col p{font-size:.92rem;color:var(--text-muted);max-width:36ch}
.footer-col h5{font-family:'DM Sans',system-ui,sans-serif;font-weight:600;font-size:.88rem;text-transform:uppercase;letter-spacing:.12em;color:var(--gold-soft);margin-bottom:1.2rem}
.footer-col ul li{margin-bottom:.6rem}
.footer-col a{font-size:.92rem;color:var(--text-soft);transition:color var(--t-fast),padding var(--t-fast)}
.footer-col a:hover{color:var(--text-bright);padding-left:4px}
.footer-contact li{display:flex;gap:.7rem;color:var(--text-soft);font-size:.92rem;align-items:center}
.footer-contact svg{width:16px;height:16px;color:var(--gold-soft);flex-shrink:0}
.footer-bottom{padding-top:2rem;border-top:1px solid rgba(127,160,232,.1);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;font-size:.85rem;color:var(--text-muted)}
.footer-bottom a:hover{color:var(--text-light)}
.legal-links{display:flex;gap:1.5rem;flex-wrap:wrap}

/* ---------- REVEAL ---------- */
.reveal{opacity:1;transform:none;transition:none}
.reveal.is-visible{opacity:1;transform:translateY(0)}
.reveal[data-delay="100"]{transition-delay:.1s}
.reveal[data-delay="200"]{transition-delay:.2s}
.reveal[data-delay="300"]{transition-delay:.3s}
.reveal[data-delay="400"]{transition-delay:.4s}
.reveal[data-delay="500"]{transition-delay:.5s}
.reveal-scale{opacity:1;transform:none;transition:none}
.reveal-scale.is-visible{opacity:1;transform:scale(1)}
.reveal-slide-l{opacity:1;transform:none;transition:none}
.reveal-slide-l.is-visible{opacity:1;transform:translateX(0)}
.reveal-slide-r{opacity:1;transform:none;transition:none}
.reveal-slide-r.is-visible{opacity:1;transform:translateX(0)}
@keyframes fade-up{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}

/* ---------- RESPONSIVE ---------- */
@media(max-width:1024px){
  .main-nav,.header-cta{display:none}
  .nav-toggle{display:flex}
  .hero-inner,.split,.calculator-grid{grid-template-columns:1fr;gap:3rem}
  .split.reversed .split-visual{order:0}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(2,1fr)}
  .stats{grid-template-columns:repeat(2,1fr);gap:2rem}
  .footer-grid{grid-template-columns:1fr 1fr;gap:2.5rem}
}
@media(max-width:640px){
  body{font-size:16px}
  .grid-3,.grid-2,.grid-4{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;gap:2rem}
  .stats{grid-template-columns:1fr 1fr;gap:1.5rem}
  .hero-badge{display:none}
  .footer-bottom{flex-direction:column;text-align:center}
  .legal-links{justify-content:center}
  .logo-link img{height:60px}
  .site-header.is-scrolled .logo-link img{height:50px}
  .hero{padding-top:8rem}
  .page-hero{padding-top:9rem}
}


/* ---------- CODEX POLISH: MOTION, DEPTH, FEEDBACK ---------- */
.scroll-progress{position:fixed;top:0;left:0;width:100%;height:3px;z-index:150;pointer-events:none;background:linear-gradient(90deg,var(--gold-soft),var(--accent-cyan),var(--accent-red-soft));transform:scaleX(0);transform-origin:left;box-shadow:0 0 18px rgba(111,214,245,.45)}
.page-ready .hero-actions{animation:micro-rise .8s var(--ease) .24s both}
@keyframes micro-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}

.btn,.header-cta,.calc-pill{will-change:transform}
.btn::before,.header-cta::before{content:"";position:absolute;inset:-2px;background:linear-gradient(120deg,transparent 18%,rgba(255,255,255,.32) 38%,transparent 58%);transform:translateX(-120%);transition:transform .7s var(--ease);pointer-events:none}
.btn:hover::before,.header-cta:hover::before{transform:translateX(120%)}
.btn:focus-visible,.header-cta:focus-visible,.main-nav a:focus-visible,.nav-toggle:focus-visible,.faq-q:focus-visible,.calc-pill:focus-visible{outline:3px solid rgba(232,194,122,.72);outline-offset:4px}

.hero::after{content:"";position:absolute;inset:auto 0 0;height:34%;background:linear-gradient(180deg,transparent,rgba(7,20,61,.72));z-index:1;pointer-events:none}
.hero-badge{transition:transform var(--t-med),border-color var(--t-med),background var(--t-med)}
.hero-badge:hover{border-color:rgba(232,194,122,.38);background:rgba(7,20,61,.92)}

.card::after,.testimonial::after,.calculator::after{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:linear-gradient(135deg,rgba(232,194,122,.42),transparent 32%,rgba(111,214,245,.34));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:opacity var(--t-med);pointer-events:none}
.card:hover::after,.testimonial:hover::after,.calculator:hover::after{opacity:1}
.card-link{position:relative}
.card-link::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform var(--t-fast)}
.card-link:hover::after{transform:scaleX(1)}

.split-visual,.calculator,.cta-band,.testimonial{transform:translateZ(0)}
.split-visual::before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 20%,rgba(255,255,255,.18) 45%,transparent 70%);transform:translateX(-120%);transition:transform 1s var(--ease);z-index:2;pointer-events:none}
.split-visual:hover::before{transform:translateX(120%)}

.faq-q:hover .faq-icon{box-shadow:0 0 0 6px rgba(74,120,214,.16)}
.faq-a-inner{line-height:1.7}

@media(max-width:1024px){
  .step::before{display:none}
}
@media(max-width:640px){
  .btn{width:100%;justify-content:center}
  .hero-actions{width:100%}
  .calc-pill{flex:1 1 calc(50% - .6rem);min-width:0}
  .card,.testimonial,.calculator,.contact-form{padding:1.45rem}
  section{padding:4.25rem 0}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}
  .scroll-progress{display:none}
}


/* ---------- CODEX FIX: CTA SHINE BOUNDS ---------- */
.header-cta{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center}


/* ---------- START ANIMATION: STICKY VIDEO HERO ---------- */
.hero-cinema{height:100vh;min-height:720px;padding:0;display:block;background:#07143D;overflow:visible}
.hero-cinema::before,.hero-cinema::after{display:none}
.hero-cinema-stage{position:sticky;top:0;height:100vh;min-height:720px;overflow:hidden;background:#07143D}
.hero-media{position:absolute;inset:0;z-index:0;background:radial-gradient(ellipse at center,#142B6E,#07143D)}
.hero-bg-video,.hero-bg-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transform:scale(calc(1.01 + (var(--cinema-progress,0) * .045)));filter:none;will-change:transform}
.hero-bg-video{opacity:0}
.video-ready .hero-bg-video{opacity:1}
.video-ready .hero-bg-fallback{opacity:0}
.hero-media-wash{position:absolute;inset:0;background:radial-gradient(ellipse 70% 60% at 72% 42%,rgba(111,214,245,.18),transparent 56%),linear-gradient(90deg,rgba(7,20,61,.74) 0%,rgba(7,20,61,.46) 38%,rgba(7,20,61,.12) 72%,rgba(7,20,61,.58) 100%),linear-gradient(180deg,rgba(7,20,61,.46),rgba(7,20,61,.08) 42%,rgba(7,20,61,.78));pointer-events:none}
.hero-grain{position:absolute;inset:-20%;opacity:.16;background-image:linear-gradient(115deg,transparent 0 42%,rgba(255,255,255,.12) 48%,transparent 55%),repeating-linear-gradient(0deg,rgba(255,255,255,.03) 0 1px,transparent 1px 4px);transform:translate3d(calc(var(--cinema-progress,0) * -3%),calc(var(--cinema-progress,0) * 2%),0);pointer-events:none}
.hero-cinema-content{position:relative;z-index:2;height:100%;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.72fr);align-items:center;gap:clamp(2rem,6vw,7rem);padding-top:6rem;padding-bottom:3rem}
.hero-copy{max-width:680px;transform:translate3d(0,calc(var(--intro-y,0) * 1px),0);opacity:var(--intro-opacity,1);filter:blur(calc(var(--intro-blur,0) * 1px));will-change:transform,opacity,filter}
.hero-copy h1{font-size:clamp(2.8rem,7vw,6.6rem);margin-bottom:1.5rem}
.hero-copy .highlight{background:linear-gradient(135deg,var(--gold-soft),var(--accent-cyan));-webkit-background-clip:text;background-clip:text;color:transparent;font-style:italic}
.hero-copy .lead{font-size:clamp(1.03rem,1.55vw,1.24rem);max-width:56ch;margin-bottom:2rem;color:rgba(232,237,251,.9)}
.hero-scroll-story{position:relative;min-height:400px;align-self:center}
.story-panel{position:absolute;inset:auto 0 0 auto;width:min(100%,440px);padding:1.6rem;border-radius:18px;background:linear-gradient(145deg,rgba(244,247,255,.15),rgba(7,20,61,.58));border:1px solid rgba(232,194,122,.2);box-shadow:0 24px 70px rgba(0,0,0,.34);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);opacity:var(--panel-opacity,0);transform:translate3d(calc(var(--panel-x,72) * 1px),calc(var(--panel-y,10) * 1px),0) scale(var(--panel-scale,.98));filter:blur(calc(var(--panel-blur,8) * 1px));transition:border-color var(--t-fast);will-change:transform,opacity,filter}
.story-panel.is-active{border-color:rgba(232,194,122,.48)}
.story-panel span{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;margin-bottom:1.2rem;background:rgba(111,214,245,.14);border:1px solid rgba(111,214,245,.35);color:var(--gold-soft);font-family:'DM Sans',system-ui,sans-serif;font-size:1.1rem}
.story-panel h2{font-size:clamp(1.65rem,2.7vw,2.45rem);margin-bottom:.85rem}
.story-panel p{font-size:1rem;color:rgba(232,237,251,.86)}
.hero-cinema-meter{position:absolute;left:clamp(1.2rem,3vw,2.2rem);right:clamp(1.2rem,3vw,2.2rem);bottom:2rem;height:1px;background:rgba(255,255,255,.18);overflow:hidden}
.hero-cinema-meter span{display:block;height:100%;width:100%;background:linear-gradient(90deg,var(--gold-soft),var(--accent-cyan));transform:scaleX(var(--cinema-progress,0));transform-origin:left;box-shadow:0 0 18px rgba(111,214,245,.55)}

@media(max-width:1024px){
  .hero-cinema{height:100vh}
  .hero-cinema-stage{min-height:680px}
  .hero-cinema-content{grid-template-columns:1fr;align-content:center;gap:1.4rem}
  .hero-scroll-story{min-height:300px;width:min(100%,560px)}
  .story-panel{left:0;right:auto;bottom:0;width:min(100%,520px)}
}
@media(max-width:640px){
  .hero-cinema{height:100vh}
  .hero-cinema-stage{min-height:620px}
  .hero-cinema-content{padding-top:6.8rem;padding-bottom:4rem}
  .hero-copy h1{font-size:clamp(2.05rem,11.2vw,3.15rem)}
  .hero-copy .lead{font-size:1rem}
  .hero-copy .hero-actions{display:none}
  .hero-scroll-story{min-height:260px}
  .story-panel{padding:1.25rem}
  .story-panel p{font-size:.94rem}
}
@media(prefers-reduced-motion:reduce){
  .hero-cinema{height:auto}
  .hero-cinema-stage{position:relative;height:auto;min-height:100vh}
  .hero-bg-video,.hero-bg-fallback{transform:none!important}
  .hero-copy{opacity:1!important;filter:none!important;transform:none!important}
  .story-panel{position:relative;inset:auto;opacity:1!important;filter:none!important;transform:none!important;margin-top:1rem}
  .hero-scroll-story{min-height:0}
}


/* ---------- START ANIMATION: MOBILE HEADER FIX ---------- */
@media(max-width:1024px){
  .header-inner > .header-cta{display:none}
  .mobile-panel .header-cta{display:inline-flex}
}


/* ---------- WEBM SCROLL SCRUB TUNING ---------- */
.hero-bg-video{background:#07143D}
.hero-cinema-stage.is-scrubbing .hero-bg-video{opacity:1}
.hero-cinema-stage.is-scrubbing .hero-bg-fallback{opacity:0}
.story-panel{--read-hold-start:.2;--read-hold-end:.7}
@media(max-width:640px){
  .hero-scroll-story{align-self:end}
  .story-panel{left:50%;right:auto;width:min(100%,340px);transform:translate3d(calc(-50% + (var(--panel-x,72) * 1px)),calc(var(--panel-y,10) * 1px),0) scale(var(--panel-scale,.98))}
}


/* ---------- MP4 HERO LIGHTING ---------- */
.hero-media::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 60% 45% at 55% 42%,rgba(111,214,245,.14),transparent 70%);pointer-events:none}


/* ---------- FULL PAGE VIDEO BACKGROUND ---------- */
body.has-fullpage-video{background:#07143D}
.hero-cinema{height:100vh;min-height:720px;padding:0;display:block;background:transparent;overflow:visible;isolation:isolate}
.hero-cinema-stage{position:fixed;inset:0;top:0;height:100vh;min-height:0;overflow:hidden;background:#07143D;z-index:0;pointer-events:none}
.hero-cinema-content{position:relative;z-index:3;min-height:100vh;height:auto;pointer-events:auto}
.hero-cinema-meter{display:none!important}
.hero-bg-video,.hero-bg-fallback{transform:scale(calc(1.01 + (var(--cinema-progress,0) * .03)))}
.hero-media-wash{background:radial-gradient(ellipse 75% 62% at 68% 42%,rgba(111,214,245,.14),transparent 58%),linear-gradient(90deg,rgba(7,20,61,.68) 0%,rgba(7,20,61,.42) 36%,rgba(7,20,61,.08) 72%,rgba(7,20,61,.50) 100%),linear-gradient(180deg,rgba(7,20,61,.42),rgba(7,20,61,.06) 44%,rgba(7,20,61,.78))}
body.has-fullpage-video main,body.has-fullpage-video section:not(.hero-cinema),body.has-fullpage-video .site-footer{position:relative;z-index:2}
body.has-fullpage-video section:not(.hero-cinema){background:linear-gradient(180deg,rgba(7,20,61,.18),rgba(7,20,61,.54));backdrop-filter:none}
body.has-fullpage-video .section-depth-1,body.has-fullpage-video .section-depth-2,body.has-fullpage-video .section-depth-3,body.has-fullpage-video .section-glow,body.has-fullpage-video .section-deep{background:linear-gradient(180deg,rgba(7,20,61,.16),rgba(7,20,61,.58))}
body.has-fullpage-video section:not(.hero-cinema)::before{background:linear-gradient(180deg,rgba(7,20,61,.52),transparent)}
body.has-fullpage-video section:not(.hero-cinema)::after{background:linear-gradient(0deg,rgba(7,20,61,.62),transparent)}
body.has-fullpage-video .site-footer{background:linear-gradient(180deg,rgba(7,20,61,.72),rgba(5,13,38,.94));backdrop-filter:blur(6px)}

.page-rise{opacity:0;transform:translate3d(0,64px,0);filter:blur(10px);transition:opacity .95s var(--ease),transform .95s var(--ease),filter .95s var(--ease);will-change:opacity,transform,filter}
.page-rise.is-visible{opacity:1;transform:translate3d(0,0,0);filter:blur(0)}
.page-rise[data-delay="100"]{transition-delay:.08s}
.page-rise[data-delay="200"]{transition-delay:.16s}
.page-rise[data-delay="300"]{transition-delay:.24s}
.page-rise[data-delay="400"]{transition-delay:.32s}

@media(max-width:1024px){
  .hero-cinema{min-height:680px}
}
@media(max-width:640px){
  .hero-cinema{min-height:620px}
}
@media(prefers-reduced-motion:reduce){
  .page-rise{opacity:1!important;transform:none!important;filter:none!important}
}


/* ---------- EXTRACTED ELEMENT SCROLL ANIMATION ---------- */
body.has-fullpage-video{background:#07143D}
.hero-cinema{height:100vh;min-height:720px;padding:0;display:block;background:transparent;overflow:visible;isolation:auto}
.hero-cinema-stage{position:fixed;inset:0;height:100vh;min-height:0;overflow:hidden;background:#07143D;z-index:0;pointer-events:none}
.hero-cinema-content{position:relative;z-index:3;min-height:100vh;height:auto;pointer-events:auto}
.hero-cinema-meter{display:none!important}
.hero-main-logo{display:block;width:min(620px,58vw);height:auto;margin:.3rem 0 1.5rem;filter:drop-shadow(0 12px 36px rgba(0,0,0,.45))}
.hero-scroll-story{display:none!important}
.story-panel{position:relative;inset:auto;width:auto;min-height:100%;padding:0 0 0 1rem;background:transparent;border:0;border-left:1px solid rgba(232,194,122,.62);border-radius:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;transform:translate3d(calc(var(--panel-x,0) * 1px),calc(var(--panel-y,360) * 1px),0) scale(var(--panel-scale,.98));opacity:var(--panel-opacity,0);filter:blur(calc(var(--panel-blur,8) * 1px));will-change:transform,opacity,filter;transition:border-color var(--t-fast);text-shadow:0 2px 20px rgba(0,0,0,.64)}
.story-panel h2{font-size:clamp(1.25rem,2vw,1.8rem)}
.story-panel p{font-size:.95rem}
.story-panel span{width:auto;height:auto;border:0;background:transparent;margin-bottom:.7rem;color:var(--gold-soft);font-family:'DM Sans',system-ui,sans-serif;font-size:.74rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase}
body.has-fullpage-video .site-header,body.has-fullpage-video .mobile-panel{z-index:100}
body.has-fullpage-video section,body.has-fullpage-video .site-footer{position:relative;z-index:2}
body.has-fullpage-video section:not(.hero-cinema){background:transparent!important;backdrop-filter:none}
body.has-fullpage-video .section-depth-1,body.has-fullpage-video .section-depth-2,body.has-fullpage-video .section-depth-3,body.has-fullpage-video .section-glow,body.has-fullpage-video .section-deep{background:transparent!important}
body.has-fullpage-video section:not(.hero-cinema)::before,body.has-fullpage-video section:not(.hero-cinema)::after{background:transparent!important}
body.has-fullpage-video .section-glow > .orb-a,body.has-fullpage-video .section-glow > .orb-b{display:none}
body.has-fullpage-video .site-footer{background:transparent!important}
body.has-fullpage-video .section-header,body.has-fullpage-video .split-text,body.has-fullpage-video .card,body.has-fullpage-video .step,body.has-fullpage-video .testimonial,body.has-fullpage-video .faq,body.has-fullpage-video .cta-band,body.has-fullpage-video .calculator,body.has-fullpage-video .footer-col{ text-shadow:0 2px 22px rgba(0,0,0,.62)}
body.has-fullpage-video .section-header{max-width:1120px;margin-bottom:2.8rem}
body.has-fullpage-video .section-header h2{font-size:clamp(1.8rem,3vw,2.85rem);line-height:1.02;max-width:none}
body.has-fullpage-video .section-header p{max-width:86ch}
body.has-fullpage-video .section-partners .section-header{margin-bottom:2.1rem}
.partner-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.95rem;align-items:center}
.partner-logo{height:96px;display:flex;align-items:center;justify-content:center;padding:1rem;background:rgba(255,255,255,.9);border:1px solid rgba(232,194,122,.25);box-shadow:0 18px 44px rgba(0,0,0,.22);transition:transform var(--t-fast),box-shadow var(--t-fast),border-color var(--t-fast)}
.partner-logo:hover{transform:translateY(-4px);box-shadow:0 22px 54px rgba(0,0,0,.34);border-color:rgba(232,194,122,.48)}
.partner-logo img{max-width:100%;max-height:58px;object-fit:contain}
.partner-wordmark{background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(232,238,248,.9))}
.partner-wordmark span{font-family:'DM Sans',system-ui,sans-serif;font-size:1.65rem;font-weight:800;letter-spacing:.12em;color:#D9222A}
body.has-fullpage-video .card,body.has-fullpage-video .testimonial,body.has-fullpage-video .calculator,body.has-fullpage-video .faq-item,body.has-fullpage-video .cta-band,body.has-fullpage-video .feature-card{background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-color:rgba(232,194,122,.24);border-radius:0}
body.has-fullpage-video .card,body.has-fullpage-video .testimonial,body.has-fullpage-video .feature-card{padding:0 0 0 1.15rem;border-width:0 0 0 1px}
body.has-fullpage-video .card::before,body.has-fullpage-video .card::after,body.has-fullpage-video .testimonial::after,body.has-fullpage-video .calculator::before,body.has-fullpage-video .calculator::after,body.has-fullpage-video .cta-band::before{display:none!important}
body.has-fullpage-video .card:hover,body.has-fullpage-video .testimonial:hover,body.has-fullpage-video .feature-card:hover{transform:none;box-shadow:none}
body.has-fullpage-video .card .icon-wrap,body.has-fullpage-video .feature-card .icon-sm{width:44px;height:44px;border-radius:999px;margin-bottom:1rem;background:rgba(111,214,245,.14);box-shadow:none;border:1px solid rgba(111,214,245,.36)}
body.has-fullpage-video .card .icon-wrap svg{width:21px;height:21px}
body.has-fullpage-video .section-services .card{position:relative}
body.has-fullpage-video .section-services .card .icon-wrap{width:68px;height:68px;margin-bottom:1.2rem;border-width:1px;border-style:solid;box-shadow:0 16px 34px rgba(0,0,0,.3),0 0 28px rgba(111,214,245,.2);transform:rotate(-3deg)}
body.has-fullpage-video .section-services .card .icon-wrap svg{width:32px;height:32px;stroke-width:2.35;filter:drop-shadow(0 3px 8px rgba(0,0,0,.35))}
body.has-fullpage-video .section-services .card-sanitaer .icon-wrap{background:radial-gradient(circle at 32% 24%,rgba(255,255,255,.28),transparent 38%),linear-gradient(135deg,#54E0FF,#1E63D9);border-color:rgba(84,224,255,.75);box-shadow:0 16px 34px rgba(0,0,0,.3),0 0 32px rgba(84,224,255,.34)}
body.has-fullpage-video .section-services .card-heizung .icon-wrap{background:radial-gradient(circle at 32% 24%,rgba(255,255,255,.28),transparent 38%),linear-gradient(135deg,#FF6868,#D72232);border-color:rgba(255,104,104,.75);box-shadow:0 16px 34px rgba(0,0,0,.3),0 0 32px rgba(230,57,70,.36);transform:rotate(3deg)}
body.has-fullpage-video .section-services .card-klima .icon-wrap{background:radial-gradient(circle at 32% 24%,rgba(255,255,255,.28),transparent 38%),linear-gradient(135deg,#8FE9FF,#2C9AF2);border-color:rgba(143,233,255,.78);box-shadow:0 16px 34px rgba(0,0,0,.3),0 0 32px rgba(143,233,255,.34)}
body.has-fullpage-video .section-services .card .icon-wrap::after{content:"";position:absolute;inset:-7px;border-radius:inherit;border:1px solid currentColor;opacity:.24}
body.has-fullpage-video .split{grid-template-columns:minmax(0,760px);justify-content:center}
body.has-fullpage-video .split-visual{display:none}
body.has-fullpage-video .calculator{padding:0}
body.has-fullpage-video .calc-pill,body.has-fullpage-video .form-field input,body.has-fullpage-video .form-field textarea,body.has-fullpage-video .form-field select{background:rgba(7,20,61,.34)}
body.has-fullpage-video .review-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:start}
body.has-fullpage-video .testimonial{display:flex;flex-direction:column;min-height:0;padding:.1rem 0 .1rem 1rem;break-inside:avoid;page-break-inside:avoid;overflow:visible}
body.has-fullpage-video .testimonial p{font-size:.93rem;line-height:1.55;margin-top:.75rem;margin-bottom:0}
body.has-fullpage-video .testimonial .author{padding-top:0;gap:.65rem;margin-top:0;break-inside:avoid;page-break-inside:avoid}
body.has-fullpage-video .testimonial .avatar{width:34px;height:34px;font-size:.76rem}
body.has-fullpage-video .testimonial .author strong{font-size:.86rem}
body.has-fullpage-video .testimonial .author span{font-size:.76rem}
body.has-fullpage-video .section-deep .section-header{margin-bottom:2rem}
body.has-fullpage-video .section-process .steps{gap:1rem;margin-top:2rem}
body.has-fullpage-video .section-reviews .review-grid{max-width:1080px;margin:0 auto}
.page-rise{opacity:1!important;transform:none!important;filter:none!important;transition:none!important}
.scroll-actor{opacity:1;transform:none;filter:none;transition:none!important}
.scroll-actor.is-live{pointer-events:auto}
.scroll-actor:not(.is-live){pointer-events:none}
.hero-bg-video{transition:none!important}

@media(max-width:1024px){
  .hero-cinema{min-height:680px}
  .hero-scroll-story{grid-template-columns:1fr;align-self:end;width:min(100%,560px)}
  .story-panel{left:auto;right:auto;bottom:auto;width:auto}
  .partner-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .review-grid,body.has-fullpage-video .review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .hero-cinema{min-height:620px}
  .hero-scroll-story{align-self:end;min-height:0;width:100%;gap:.7rem;padding-bottom:1rem}
  .story-panel{left:auto;right:auto;width:auto;padding:1rem;transform:translate3d(calc(var(--panel-x,0) * 1px),calc(var(--panel-y,360) * 1px),0) scale(var(--panel-scale,.98))}
  .partner-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
  .partner-logo{height:78px;padding:.8rem}
  .partner-logo img{max-height:44px}
  .partner-wordmark span{font-size:1.25rem}
  .review-grid,body.has-fullpage-video .review-grid{grid-template-columns:1fr}
}

/* ---------- FINAL RESPONSIVE TUNING ---------- */
.hero-copy{max-width:min(1120px,100%)}
.hero-main-logo{width:min(1120px,calc(100vw - 4.4rem));max-width:100%;margin:.35rem 0 1.35rem}
.logo-link img{height:52px;max-width:210px;object-fit:contain}
.site-header.is-scrolled .logo-link img{height:44px}

@media(max-width:1024px){
  .header-inner{gap:1rem}
  .logo-link img{height:46px;max-width:180px}
  .site-header.is-scrolled .logo-link img{height:40px}
  .hero-cinema-content{display:flex;align-items:center;min-height:100vh;padding-top:7rem;padding-bottom:2.5rem}
  .hero-copy{width:100%;max-width:820px}
  .hero-main-logo{width:min(760px,calc(100vw - 3rem));margin:.25rem 0 1.2rem}
  body.has-fullpage-video .section-header h2{font-size:clamp(1.7rem,5vw,2.5rem)}
  body.has-fullpage-video .calculator-grid{grid-template-columns:1fr;gap:2rem}
}

@media(max-width:640px){
  .site-header{padding:.35rem 0}
  .site-header.is-scrolled{padding:.25rem 0}
  .header-inner{gap:.8rem}
  .logo-link img,.site-header.is-scrolled .logo-link img{height:34px;max-width:132px}
  .nav-toggle{width:40px;height:40px}
  .mobile-panel{padding:5.75rem 1.25rem 1.5rem;gap:1rem}
  .mobile-panel a{font-size:1.35rem}

  .hero-cinema{min-height:100svh}
  .hero-cinema-stage{height:100svh}
  .hero-cinema-content{min-height:100svh;padding-top:5.8rem;padding-bottom:1.25rem;align-items:center}
  .hero-copy{width:100%;max-width:none}
  .hero-copy .eyebrow{font-size:.64rem;letter-spacing:.18em;margin-bottom:.75rem}
  .hero-main-logo{width:calc(100vw - 2rem);margin:.15rem 0 1rem;filter:drop-shadow(0 8px 26px rgba(0,0,0,.46))}
  .hero-copy .lead{font-size:.98rem;line-height:1.55;max-width:34ch;margin-bottom:1.25rem}
  .hero-copy .hero-actions{display:flex;gap:.7rem}
  .hero-actions .btn{width:100%;padding:.85rem 1rem;font-size:.9rem}

  section{padding:3.4rem 0}
  .section-header{margin-bottom:2.2rem}
  body.has-fullpage-video .section-header{margin-bottom:1.8rem}
  body.has-fullpage-video .section-header h2{font-size:clamp(1.65rem,8vw,2.15rem);line-height:1.05}
  body.has-fullpage-video .section-header p{font-size:.96rem;line-height:1.62;max-width:34ch}
  .grid,.steps,.review-grid{gap:1rem}
  body.has-fullpage-video .section-services .card .icon-wrap{width:58px;height:58px;margin-bottom:.9rem}
  body.has-fullpage-video .section-services .card .icon-wrap svg{width:28px;height:28px}
  .steps{margin-top:1.5rem}
  .step{padding:.75rem 0;text-align:left;display:grid;grid-template-columns:56px minmax(0,1fr);column-gap:1rem;align-items:start}
  .step-symbol{grid-row:1 / span 2;width:52px;height:52px;margin:.1rem 0 0}
  .step-symbol span{width:24px;height:24px;top:-.45rem;right:-.35rem;font-size:.62rem}
  .step-symbol svg{width:24px;height:24px}
  .step h4{margin-bottom:.25rem;font-size:1rem}
  .step p{font-size:.88rem;line-height:1.45;margin:0;max-width:none}
  body.has-fullpage-video .card,body.has-fullpage-video .testimonial,body.has-fullpage-video .feature-card{padding:0 0 0 .9rem}
  body.has-fullpage-video .review-grid{gap:1.15rem}
  body.has-fullpage-video .section-reviews .section-header{margin-bottom:1.35rem}
  .stars{margin-bottom:.45rem}
  body.has-fullpage-video .testimonial p{font-size:.9rem;line-height:1.5}
  body.has-fullpage-video .testimonial .avatar{width:30px;height:30px}

  .calculator-grid{gap:1.4rem}
  .calc-controls{gap:1.2rem}
  .calc-pills{gap:.45rem}
  .calc-pill{padding:.62rem .72rem;font-size:.82rem}
  .calc-result{text-align:left;padding:1.1rem}
  .calc-result-value{font-size:clamp(2rem,13vw,3rem)}
  .calc-result .btn{width:100%}

  .faq-q{padding:1rem 0;font-size:.95rem}
  .footer-grid{gap:1.4rem}
  .footer-logo{max-width:150px}
}

/* Mobile-only header refinement: desktop header stays on the base rules above. */
body.has-fullpage-video .hero-bg-fallback{display:none!important}

/* Service page image backgrounds */
.page-service-bg{
  background-color:#07143D;
  background-position:center;
  background-size:cover;
  background-attachment:fixed;
}
.page-heizung-bg{background-image:linear-gradient(90deg,rgba(7,20,61,.82),rgba(7,20,61,.48) 52%,rgba(7,20,61,.72)),url('../images/heizung-page-bg.png')}
.page-sanitaer-bg,.page-klima-bg{background-image:linear-gradient(90deg,rgba(7,20,61,.82),rgba(7,20,61,.44) 52%,rgba(7,20,61,.66)),url('../images/sanitaer-klima-page-bg.png')}
.page-leistungen-bg{background-image:linear-gradient(90deg,rgba(7,20,61,.78),rgba(7,20,61,.42) 50%,rgba(7,20,61,.78)),url('../images/leistungen-page-bg.png')}
.page-about-dark{background:#07143D}
.page-about-dark .page-hero,
.page-about-dark .section-depth-1,
.page-about-dark .section-depth-2,
.page-about-dark .section-depth-3,
.page-about-dark .section-glow,
.page-about-dark .section-deep{background:#07143D}
.page-about-dark .page-hero::before{background:linear-gradient(180deg,rgba(7,20,61,.94),rgba(7,20,61,.84));mask-image:none;-webkit-mask-image:none}
.page-about-dark section::before{background:linear-gradient(180deg,rgba(7,20,61,.92),transparent)}
.page-about-dark section::after{background:linear-gradient(0deg,rgba(7,20,61,.92),transparent)}
.page-service-bg .page-hero,
.page-service-bg .section-depth-1,
.page-service-bg .section-depth-2,
.page-service-bg .section-depth-3,
.page-service-bg .section-glow,
.page-service-bg .section-deep{
  background:transparent;
}
.page-service-bg .page-hero::before{
  background:linear-gradient(180deg,rgba(7,20,61,.72),rgba(7,20,61,.22) 48%,rgba(7,20,61,.7));
  mask-image:none;
  -webkit-mask-image:none;
}
.page-service-bg section::before{background:linear-gradient(180deg,rgba(7,20,61,.66),transparent)}
.page-service-bg section::after{background:linear-gradient(0deg,rgba(7,20,61,.7),transparent)}
.page-service-bg .site-footer{background:linear-gradient(180deg,rgba(7,20,61,.74),rgba(5,13,38,.96))}

/* Final content direction: no section reveal/fade animations. */
.reveal,
.reveal.is-visible,
.reveal-scale,
.reveal-scale.is-visible,
.reveal-slide-l,
.reveal-slide-l.is-visible,
.reveal-slide-r,
.reveal-slide-r.is-visible,
.scroll-actor,
.scroll-actor.is-live{
  opacity:1!important;
  transform:none!important;
  filter:none!important;
  transition:none!important;
}
.scroll-actor:not(.is-live){pointer-events:auto}
.home-about .section-header{max-width:1180px}
.home-about .section-header h2{font-size:clamp(2.6rem,6.2vw,5.8rem);line-height:1.02;font-weight:800}
.section-calculator .calculator{max-width:1120px;margin:0 auto}
.section-calculator{
  padding-top:clamp(7rem,10vw,10rem);
  padding-bottom:clamp(7rem,10vw,10rem);
  overflow:visible;
}
.section-calculator .calculator{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  padding:0!important;
}
.section-calculator .calculator::before,
.section-calculator .calculator::after{display:none!important}
.section-calculator .calculator-grid{
  padding-left:clamp(1rem,2.2vw,1.6rem);
  padding-top:1rem;
  padding-bottom:1.25rem;
  border-left:1px solid rgba(232,194,122,.36);
  overflow:visible;
}
.section-calculator .calc-slider-group{padding-bottom:.9rem}
.section-calculator .calc-slider{margin:.3rem 0 .6rem}
.section-calculator .calc-result{
  background:rgba(7,20,61,.42);
  border:1px solid rgba(232,194,122,.2);
  box-shadow:none;
}
.section-calculator .calc-pill{
  background:rgba(7,20,61,.34);
  border-color:rgba(127,160,232,.28);
}
.logo-visual{
  background:linear-gradient(145deg,rgba(7,20,61,.92),rgba(13,41,102,.82));
}
.logo-visual .img{
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
  transform:none!important;
  filter:drop-shadow(0 18px 42px rgba(0,0,0,.55));
}
.portrait-visual .img{background-position:center top}
.legal-content{
  max-width:920px;
  margin:0 auto;
  display:grid;
  gap:1.4rem;
}
.legal-block{
  border-left:1px solid rgba(232,194,122,.34);
  padding-left:clamp(1rem,2.5vw,1.6rem);
}
.legal-block h2{font-size:clamp(1.7rem,3.4vw,2.8rem);margin-bottom:.65rem}
.legal-block h3{font-size:1.05rem;margin:1.2rem 0 .35rem;color:var(--text-bright)}
.legal-block p,.legal-block li{color:var(--text-light);line-height:1.75}
.legal-block ul{margin:.5rem 0 0;padding-left:1.15rem}
.legal-note{color:var(--gold-soft)!important;font-weight:600}
@media(max-width:640px){
  .site-header,
  .site-header.is-scrolled{
    height:132px;
    padding:0;
    background:transparent;
    border-bottom:0;
    box-shadow:none;
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
  }
  .header-inner{
    min-height:132px;
    position:relative;
    justify-content:center;
    gap:0;
  }
  .logo-link{
    position:absolute;
    left:50%;
    top:50%;
    z-index:2;
    width:min(66vw,230px);
    display:flex;
    justify-content:center;
    transform:translate(-50%,-50%);
  }
  .logo-link:hover{transform:translate(-50%,-50%) scale(1.03)}
  .logo-link img,
  .site-header.is-scrolled .logo-link img{
    height:86px;
    max-width:230px;
    width:100%;
    object-fit:contain;
    filter:drop-shadow(0 8px 22px rgba(0,0,0,.55));
  }
  .nav-toggle{
    position:absolute;
    right:max(1rem,env(safe-area-inset-right));
    top:50%;
    z-index:4;
    width:52px;
    height:52px;
    border-radius:999px;
    background:rgba(7,20,61,.2);
    border:1px solid rgba(255,255,255,.16);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    transform:translateY(-50%);
  }
  .nav-toggle span{width:26px;height:2px}
  .nav-toggle.is-open{transform:translateY(-50%)}
  .mobile-panel{padding:9.25rem 1.25rem 1.5rem}
  .hero-cinema-content{padding-top:8.8rem}
  .page-service-bg{background-attachment:scroll;background-position:center top}
  .home-about .section-header h2{font-size:clamp(2.1rem,12vw,3.4rem)}
  .section-calculator .calculator-grid{padding-left:.9rem}
  .logo-visual{aspect-ratio:1.35}
}
@media(max-width:1024px){
  body.has-fullpage-video .hero-cinema{
    height:auto;
    min-height:0;
    overflow:visible;
  }
  body.has-fullpage-video .hero-cinema-stage{
    position:relative;
    min-height:100svh;
    height:auto;
    overflow:hidden;
    z-index:1;
  }
  body.has-fullpage-video .hero-cinema-content{
    min-height:100svh;
    height:auto;
  }
  body.has-fullpage-video .hero-copy{
    opacity:1!important;
    transform:none!important;
    filter:none!important;
  }
  body.has-fullpage-video .section-partners{
    padding-top:clamp(4rem,12vw,7rem);
  }
}
@media(min-width:1025px){
  body.has-fullpage-video .hero-copy{
    opacity:var(--intro-opacity,1);
    transform:translate3d(0,calc(var(--intro-y,0) * 1px),0);
    filter:blur(calc(var(--intro-blur,0) * 1px));
  }
}
@media(prefers-reduced-motion:reduce){
  .scroll-actor{opacity:1!important;transform:none!important;filter:none!important}
  .story-panel{opacity:1!important;filter:none!important;transform:none!important}
}
