@import url("../kit/css/header.css");
/* TASK-046: v5 hero rules, scoped to #home; source order and breakpoints preserved. */
#home * { box-sizing: border-box; }
#home button, #home input { font: inherit; }
#home button, #home a, #home input { -webkit-tap-highlight-color: transparent; }
#home button, #home a { touch-action: manipulation; }
#home button { color: inherit; cursor: pointer; }
#home a { color: inherit; text-decoration: none; }
#home img { max-width: 100%; display: block; }
#home button { border: 0px; }
#home button:disabled { cursor: default; }
#home h1, #home h2, #home p { margin: 0px; }
#home h1, #home h2 { font-family: var(--title); font-weight: 500; letter-spacing: -0.01em; line-height: 1.16; }
#home h2 { font-size: clamp(34px, 3.65vw, 64px); }
#home p { color: var(--muted); }
#home [hidden] { display: none !important; }
#home .button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 54px; padding: 14px 22px; background: var(--blue); color: rgb(255, 255, 255); font-size: 14px; font-weight: 500; line-height: 1.4; text-align: left; transition: background 0.2s, transform 0.2s; }
#home .button::after { content: "↗"; font-size: 21px; line-height: 1; }
#home .button:hover { background: rgb(41, 105, 188); transform: translateY(-2px); }
#home .eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.095em; line-height: 1.5; margin-bottom: 24px; color: var(--glow); }
#home .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); margin-right: 9px; vertical-align: middle; }
#home { --gutter: clamp(24px, 4.45vw, 88px); min-height: 900px; height: 100svh; max-height: 1200px; position: relative; isolation: isolate; padding: 170px var(--gutter) 112px; display: grid; grid-template-columns: minmax(0px, 1fr) 352px; column-gap: 80px; align-items: start; overflow: clip; }
#home .hero-atmosphere { position: absolute; inset: 0px; z-index: -3; overflow: hidden; }
#home .hero-atmosphere img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
#home::before { content: ""; position: absolute; inset: 0px; background: linear-gradient(90deg, rgba(7, 11, 16, 0.86) 0%, rgba(7, 11, 16, 0.54) 38%, rgba(7, 11, 16, 0.12) 67%, rgba(7, 11, 16, 0.42) 100%), linear-gradient(0deg, rgb(18, 20, 23) 1%, transparent 40%, rgba(9, 12, 16, 0.3)); z-index: -2; }
#home .hero-heading { padding-top: 16px; }
#home .hero-heading .eyebrow { color: rgb(226, 231, 239); margin-bottom: 28px; font-size: 13px; }
#home h1 { font-size: clamp(45px, 4.45vw, 82px); line-height: 1.12; font-weight: 450; max-width: 1000px; }
#home h1 span:last-child { color: var(--glow); }
#home .headline-soft { color: var(--ink); }
#home .hero-picture { display: grid; grid-template-columns: 140px 1fr; grid-template-rows: auto auto; column-gap: 20px; max-width: 540px; margin-top: 70px; padding: 12px 0px; position: relative; align-items: center; }
#home .photo-label { font-size: 13px; letter-spacing: 0.045em; line-height: 1.4; color: var(--glow); align-self: end; margin-bottom: 8px; }
#home .picture-bottom { font-size: 20px; line-height: 1.45; align-self: start; }
#home .hero-form { background: rgba(22, 28, 36, 0.7); backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.19); padding: 27px 27px 0px; position: relative; z-index: 2; box-shadow: rgba(0, 0, 0, 0.2) 0px 22px 70px; }
#home .hero-form .eyebrow { font-size: 13px; letter-spacing: 0.04em; margin-bottom: 16px; }
#home .hero-form h2 { font-size: 32px; line-height: 1.2; }
#home .hero-form > p { font-size: 14px; margin: 15px 0px 22px; }
#home .lead-form { display: grid; gap: 16px; }
#home .lead-form > label:not(.consent) { display: grid; gap: 6px; font-size: 14px; }
#home .lead-form input:not([type="checkbox"], [type="hidden"]) { background: transparent; border-width: 0px 0px 1px; border-style: none none solid; border-color: currentcolor currentcolor rgba(255, 255, 255, 0.314); border-image: none; border-radius: 0px; color: inherit; min-width: 0px; width: 100%; padding: 10px 0px; min-height: 44px; font-size: 15px; }
#home .lead-form input::placeholder { color: rgb(169, 175, 184); opacity: 1; }
#home .lead-form .button { width: 100%; margin-top: 3px; }
#home .form-trap { display: none; }
#home .consent { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; line-height: 1.5; cursor: pointer; }
#home .consent input { appearance: none; flex: 0 0 16px; width: 16px; height: 16px; margin: 2px 0px 0px; border: 1px solid rgb(170, 178, 191); border-radius: 0px; display: grid; place-items: center; background: transparent; }
#home .consent input:checked { background: var(--blue); border-color: var(--glow); }
#home .consent input:checked::after { content: "✓"; color: rgb(255, 255, 255); font-size: 13px; line-height: 1; }
#home .consent a { display: inline; text-decoration: underline; text-underline-offset: 3px; min-height: 0px; }
#home .form-promise { font-size: 13px; color: rgb(193, 200, 210); margin: 18px 0px 24px; line-height: 1.5; }
#home .form-promise .dot { width: 5px; height: 5px; margin-right: 3px; }
#home .person { border-top: 1px solid var(--line); padding: 20px 0px; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 10px 13px; }
#home .portrait-placeholder { background: rgba(255, 255, 255, 0.047); border: 1px solid rgba(255, 255, 255, 0.19); aspect-ratio: 1 / 1; display: grid; place-items: center; font-family: var(--title); font-size: 16px; }
#home .person strong { font-size: 13px; line-height: 1.4; font-weight: 500; display: block; }
#home .person span { font-size: 13px; display: block; line-height: 1.5; color: var(--muted); }
#home .person > a { grid-column: 2; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; justify-self: start; }
#home .hero-footer { position: absolute; bottom: 0px; left: var(--gutter); right: var(--gutter); height: 93px; display: flex; align-items: center; gap: 34px; font-size: 14px; border-top: 1px solid var(--line); z-index: 3; }
#home .hero-footer > span { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; margin-right: 20px; }
#home .hero-footer a:last-child { margin-left: auto; color: var(--muted); font-size: 13px; }
#home .hero-footer a:hover { color: var(--glow); }
#home .level-line { position: absolute; z-index: -1; left: var(--gutter); right: var(--gutter); top: 70%; display: flex; align-items: center; gap: 20px; color: var(--glow); transform: translateY(var(--level-y, 0px)); pointer-events: none; }
#home .level-line i { height: 1px; background: linear-gradient(90deg, rgba(155, 190, 240, 0.69), rgba(155, 190, 240, 0.145)); flex: 1 1 0%; }
#home .level-line > span { font-size: 22px; font-weight: 400; }
@media (min-width: 1700px) {
#home { grid-template-columns: 1fr 390px; column-gap: 110px; }
#home .hero-form { padding: 35px 35px 0px; }
#home .hero-form h2 { font-size: 36px; }
#home .hero-form .lead-form { gap: 19px; }
#home .hero-picture { margin-top: 90px; }
}
@media (max-width: 1279px) {
#home { column-gap: 45px; grid-template-columns: minmax(0px, 1fr) 330px; padding-top: 155px; }
#home h1 { font-size: clamp(42px, 4.5vw, 59px); }
#home .hero-form { padding: 25px 23px 0px; }
#home .hero-form h2 { font-size: 30px; }
#home .hero-footer { gap: 24px; }
#home .hero-footer > span { display: none; }
}
@media (max-width: 1023px) {
#home { grid-template-columns: 1fr 320px; gap: 30px; height: auto; min-height: 920px; padding-top: 145px; }
#home h1 { font-size: 43px; }
#home .hero-heading .eyebrow { font-size: 13px; max-width: 300px; line-height: 1.7; }
#home .hero-picture { grid-template-columns: 110px 1fr; gap: 10px 15px; margin-top: 70px; }
#home .picture-bottom { font-size: 17px; }
#home .photo-label { font-size: 13px; }
#home .hero-footer { font-size: 13px; gap: 25px; flex-wrap: wrap; align-content: center; }
#home .hero-footer a:last-child { display: none; }
}
@media (max-width: 599px) {
#home { display: flex; flex-direction: column; min-height: 0px; max-height: none; height: auto; padding: 122px var(--gutter) 0; gap: 0px; overflow: clip; }
#home .hero-atmosphere { height: 735px; bottom: auto; }
#home .hero-atmosphere img { object-position: 49% center; }
#home::before { background: linear-gradient(0deg, rgb(18, 20, 23) 42%, transparent 73%), linear-gradient(90deg, rgba(9, 14, 22, 0.72), rgba(9, 14, 22, 0.314)); z-index: -2; }
#home .hero-heading { padding: 0px; width: 100%; }
#home .hero-heading .eyebrow { font-size: 12px; max-width: none; line-height: 1.8; letter-spacing: 0.025em; margin-bottom: 25px; }
#home h1 { font-size: clamp(30px, 8.1vw, 48px); line-height: 1.2; letter-spacing: -0.01em; max-width: 100%; }
#home .hero-picture { grid-template-columns: 100px 1fr; gap: 8px 15px; margin-top: 46px; padding: 14px; background: rgba(14, 20, 28, 0.56); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.19); max-width: none; }
#home .photo-label { font-size: 12px; line-height: 1.45; margin-bottom: 0px; letter-spacing: 0.02em; }
#home .picture-bottom { font-size: 17px; }
#home .hero-form { margin-top: 40px; width: 100%; padding: 25px 23px 0px; background: rgba(27, 32, 40, 0.8); }
#home .hero-form .eyebrow { font-size: 12px; letter-spacing: 0.04em; }
#home .hero-form h2 { font-size: 31px; }
#home .hero-form > p { font-size: 14px; margin: 17px 0px 25px; }
#home .hero-form .lead-form { gap: 18px; }
#home .hero-form .lead-form > label:not(.consent) { font-size: 13px; }
#home .lead-form input:not([type="checkbox"], [type="hidden"]) { font-size: 16px; }
#home .consent { font-size: 12px; line-height: 1.6; }
#home .consent input { margin-top: 2px; }
#home .form-promise { font-size: 12px; margin: 18px 0px 24px; line-height: 1.65; }
#home .hero-form .person { grid-template-columns: 36px 1fr; gap: 10px 12px; padding: 20px 0px; }
#home .person strong, #home .person span, #home .person > a { font-size: 12px; }
#home .portrait-placeholder { font-size: 14px; }
#home .hero-footer { position: static; display: grid; grid-template-columns: 1fr; height: auto; width: 100%; font-size: 15px; gap: 0px; margin-top: 40px; border-top: 0px; }
#home .hero-footer > span { display: block; font-size: 12px; letter-spacing: 0.08em; padding: 0px 0px 18px; }
#home .hero-footer > a { min-height: 58px; border-top: 1px solid var(--line); padding: 17px 0px; display: flex; justify-content: space-between; align-items: center; line-height: 1.4; }
#home .hero-footer > a:not(:last-child)::after { content: "↗"; font-size: 21px; color: var(--glow); }
#home .hero-footer a:last-child { display: flex; margin: 15px 0px 0px; font-size: 12px; border: 0px; justify-content: flex-start; color: var(--muted); }
#home .level-line { top: 407px; left: 0px; right: 0px; gap: 12px; opacity: 0.7; }
#home .level-line span { font-size: 18px; }
#home h2 { font-size: 32px; line-height: 1.22; }
#home .eyebrow { font-size: 12px; margin-bottom: 22px; letter-spacing: 0.075em; }
}
@media (prefers-reduced-motion: reduce) {
#home * { animation: auto ease 0s 1 normal none running none !important; transition: none !important; }
#home .level-line, #home .hero-atmosphere img { transform: none !important; }
}
@media (min-width: 1024px) and (max-height: 940px) {
#home { padding-top: 130px; }
#home .hero-heading { padding-top: 25px; }
#home .hero-form > p { margin: 12px 0px 16px; }
#home .hero-form .lead-form { gap: 12px; }
#home .hero-form .form-promise { margin: 14px 0px 16px; }
#home .hero-form .person { padding: 14px 0px; }
#home .hero-picture { margin-top: 60px; }
}
@media (min-width: 600px) and (max-width: 1023px) {
#home { min-height: 980px; }
}
#home .hero-scheme { display: grid; grid-template-columns: minmax(0px, 360px); grid-template-rows: auto auto; row-gap: 14px; max-width: 420px; }
#home .hero-scheme svg { width: 100%; height: auto; display: block; overflow: visible; }
#home .hero-scheme .scheme-caption { display: flex; flex-direction: column; gap: 6px; }
#home .hero-scheme .photo-label { margin: 0px; }
#home .hero-scheme .picture-bottom { font-size: 20px; }
#home .scheme-lines path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: 2.6s cubic-bezier(0.4, 0.1, 0.2, 1) 0.3s 1 normal forwards running scheme-draw; }
#home .scheme-lines path:nth-child(2) { animation-delay: 0.6s; }
#home .scheme-lines path:nth-child(3) { animation-delay: 0.9s; }
#home .scheme-lines path:nth-child(4) { animation-delay: 1.2s; }
#home .scheme-lines path:nth-child(n+5) { animation-delay: 1.5s; }
#home .scheme-text { opacity: 0; animation: 0.8s ease 2s 1 normal forwards running scheme-fade; }
@keyframes scheme-draw {
  100% { stroke-dashoffset: 0; }
}
@keyframes scheme-fade {
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
#home .scheme-lines path { animation: auto ease 0s 1 normal none running none; stroke-dashoffset: 0; }
#home .scheme-text { animation: auto ease 0s 1 normal none running none; opacity: 1; }
}
#home .level-line { display: none; }
#home { height: auto; min-height: clamp(900px, 100svh, 1200px); max-height: none; }
@media (min-width: 1024px) {
#home .hero-scheme { grid-template-columns: 290px minmax(0px, 1fr); grid-template-rows: auto; column-gap: 28px; align-items: end; max-width: 640px; margin-top: 40px; }
#home .hero-scheme .scheme-caption { padding-bottom: 6px; }
}
@media (min-width: 1024px) and (max-height: 940px) {
#home .hero-scheme { margin-top: 28px; }
}
#home .hero-footer a:last-child { margin-left: 0px; }
@media (min-width: 1280px) {
#home .hero-footer { right: calc(var(--gutter) + 352px + 80px); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
#home .hero-footer { right: calc(var(--gutter) + 330px + 45px); }
}
#home .hero-footer a:last-child { margin-left: 0px; color: inherit; font-size: inherit; }
#home .hero-scheme .scheme-caption { text-align: left; align-items: flex-start; }
#home .hero-scheme .photo-label { text-align: left; align-self: auto; }
#home h1 { letter-spacing: 0px; }
#home .consent input { width: 20px; height: 20px; flex-basis: 20px; margin-top: 0px; }
#home .request-context { margin: 0px 0px 24px; padding: 15px; border: 1px solid var(--line); }
#home .request-context > span { color: var(--glow); font-size: 13px; }
#home .request-context p { color: var(--ink); font-size: 14px; margin: 6px 0px; }
#home .context-clear { background: none; padding: 10px 0px; min-height: 44px; font-size: 13px; text-decoration: underline; }
@media (min-width: 600px) and (max-width: 767px) {
#home { grid-template-columns: minmax(0px, 1fr); min-height: 0px; padding-bottom: 0px; }
#home .hero-form { width: 100%; margin-top: 15px; }
#home .hero-footer { position: static; width: 100%; height: auto; padding: 24px 0px; margin-top: 20px; }
#home .hero-scheme { margin-top: 35px; }
}

/* Header overlays the restored photograph, as in v5. */
.site-header { position:absolute; height:96px; background:linear-gradient(180deg,rgba(12,15,18,.75),rgba(12,15,18,.25)); }
.site-header.scrolled { position:fixed; height:80px; background:rgba(18,20,23,.97); backdrop-filter:blur(18px); }
.header-contact span { display:none; }
.nav-dropdown { top:96px; }
.site-header.scrolled .nav-dropdown { top:80px; }
@media(max-width:1199px) {
  .site-header,.site-header.scrolled { height:80px; }
  .nav-dropdown { top:auto; }
}
@media(max-width:599px) {
  .site-header,.site-header.scrolled { height:76px; }
}

/* An outlined secondary action leaves the blue calculation button primary. */
#home .hero-configurator {
  width:fit-content; justify-content:flex-start; gap:12px; margin-top:18px;
  background:rgba(18,24,32,.4); border:1px solid #c5d6ed; color:#f3f1eb;
  backdrop-filter:blur(8px);
}
#home .hero-configurator:hover { background:rgba(255,255,255,.12); }
#home .hero-configurator svg { flex:0 0 24px; }
#home .hero-configurator::after { margin-left:12px; }
/* Keep v5's mobile gutter local to the hero; lower v6 sections retain theirs. */
@media(max-width:599px) { #home { --gutter:20px; } }
