/* ==============================================================
   LEVEL29 ROOFING — Homepage styles
   Black layout + brand gold (#CE993B from the logo / current site)
   Fonts: Inter (headings) + Roboto (text) — same as current site
   ============================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --black: #070707;
  --black-2: #0e0e0e;
  --panel: #141414;
  --panel-2: #1b1b1b;
  --gold: #ce993b;
  --gold-light: #f3d38b;
  --gold-deep: #8c6522;
  --gold-grad: linear-gradient(120deg, #f3d38b 0%, #ce993b 45%, #a67828 100%);
  --text: #ededed;
  --muted: #9b968d;
  --line: rgba(255,255,255,.09);
  --line-gold: rgba(206,153,59,.35);

  --f-head: 'Inter', system-ui, sans-serif;
  --f-body: 'Roboto', system-ui, sans-serif;

  --radius: 16px;
  --ease: cubic-bezier(.2,.75,.2,1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--text); font-family: var(--f-body); font-weight: 400; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--f-head); color: #fff; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 em, h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-head); font-size: .75rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ''; width: 34px; height: 1px; background: var(--gold); }

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; border-radius: 6px; font-family: var(--f-head); font-weight: 600; font-size: .92rem; letter-spacing: .02em; cursor: pointer; border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .35s, background .35s, color .35s, border-color .35s; }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { padding: 11px 20px; font-size: .85rem; }
.btn-full { width: 100%; }
.btn-gold { background: var(--gold-grad); color: #111; box-shadow: 0 12px 34px -12px rgba(206,153,59,.7); }
.btn-gold::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(206,153,59,.9); }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn-line { border-color: var(--line-gold); color: var(--gold-light); }
.btn-line:hover { background: rgba(206,153,59,.1); border-color: var(--gold); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; font-size: .9rem; color: var(--gold); }
.link-arrow svg { transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 3. Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 20px 0; transition: padding .4s var(--ease); }
.site-header::before { content: ''; position: absolute; inset: 0; background: rgba(7,7,7,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .4s; }
.site-header.is-scrolled { padding: 10px 0; }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { position: relative; display: flex; align-items: center; gap: 36px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: #fff; }
.logo img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-gold); transition: transform .6s var(--ease); }
.logo:hover img { transform: rotate(-12deg); }
.logo b { color: var(--gold); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a { position: relative; display: block; padding: 8px 16px; font-size: .92rem; color: rgba(255,255,255,.78); transition: color .3s; }
.main-nav a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; font-size: .9rem; }
.header-phone svg { color: var(--gold); }
.header-phone:hover { color: var(--gold-light); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line-gold); background: transparent; cursor: pointer; position: relative; margin-left: auto; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--gold); transition: transform .35s var(--ease), top .35s; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- 4. Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 110px; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--black); }
.hero-glow { position: absolute; z-index: -1; width: 900px; height: 900px; right: -200px; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, rgba(206,153,59,.22), transparent 60%); filter: blur(10px); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .6; transform: translateY(-50%) scale(1.08); } }

.hero-lines { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 75%; z-index: -1; }
.rl { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linejoin: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; opacity: .5; }
.rl-2 { opacity: .22; }
.rl-3 { stroke-dasharray: 4 8; stroke-dashoffset: 0; opacity: 0; transition: opacity 1s 2.4s; }
.is-loaded .rl-1 { animation: draw 3s var(--ease) .3s forwards; }
.is-loaded .rl-2 { animation: draw 3.4s var(--ease) .7s forwards; }
.is-loaded .rl-3 { opacity: .25; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero-title { font-size: clamp(3rem, 7.2vw, 6.2rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin-bottom: 28px; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease) var(--d); }
.hero-title .ln.small { font-size: .42em; font-weight: 600; letter-spacing: -.02em; color: rgba(255,255,255,.85); margin-top: 12px; }
.is-loaded .hero-title .ln > span { transform: none; }
.hero-title em { background-size: 200% 100%; animation: goldflow 6s ease-in-out infinite; }
@keyframes goldflow { 50% { background-position: 100% 0; } }

.hero-lead { max-width: 520px; color: var(--muted); font-size: 1.08rem; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; color: rgba(255,255,255,.75); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--gold); }

.hero-in { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease) var(--d), transform 1s var(--ease) var(--d); }
.is-loaded .hero-in { opacity: 1; transform: none; }

/* Logo medallion */
.hero-visual { position: relative; display: grid; justify-items: center; }
.medallion { position: relative; width: min(420px, 90%); aspect-ratio: 1; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite; }
.ring text { font-family: var(--f-head); font-size: 9.2px; font-weight: 600; letter-spacing: 3.6px; fill: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.medal-core { position: relative; width: 76%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line-gold), 0 0 80px -10px rgba(206,153,59,.55), 0 40px 80px -30px #000; }
.medal-core { background: #000; }
.medal-core img { width: 100%; height: 100%; object-fit: contain; padding: 7%; }
.medal-core::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,236,190,.35) 50%, transparent 65%); transform: translateX(-120%); animation: sweep 5s ease-in-out 1.5s infinite; }
@keyframes sweep { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.orbit { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed var(--line-gold); animation: spin 50s linear infinite reverse; }
.orbit::before { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 16px var(--gold); }

/* Spirit level */
.spirit { position: absolute; bottom: 4%; left: 0; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: rgba(20,20,20,.85); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 20px 40px -20px #000; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.vial { position: relative; width: 120px; height: 22px; border-radius: 99px; background: linear-gradient(180deg, #c9e6a5, #8fbf55); box-shadow: inset 0 2px 4px rgba(0,0,0,.35), 0 0 0 3px #2a2a2a, 0 0 0 4px var(--gold-deep); overflow: hidden; }
.vial i { position: absolute; top: 2px; bottom: 2px; width: 2px; background: rgba(0,0,0,.55); }
.vial i:first-of-type { left: calc(50% - 18px); }
.vial i:last-of-type { left: calc(50% + 16px); }
.bubble { position: absolute; top: 4px; left: 6%; width: 30px; height: 14px; border-radius: 99px; background: radial-gradient(ellipse at 40% 35%, #fff, rgba(255,255,255,.55) 60%, rgba(255,255,255,.2)); animation: settle 3.4s var(--ease) 1.2s forwards; }
@keyframes settle { 0% { left: 6%; } 40% { left: 68%; } 65% { left: 38%; } 82% { left: 52%; } 100% { left: calc(50% - 15px); } }
.spirit p { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.spirit b { display: block; font-family: var(--f-head); color: var(--gold-light); font-size: .95rem; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid var(--line-gold); border-radius: 99px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- 5. Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--black-2); padding: 22px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; align-items: center; gap: 30px; width: max-content; animation: ticker 40s linear infinite; font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.ticker-track span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); transition: color .3s; }
.ticker-track span:nth-of-type(3n+1) { color: var(--gold); -webkit-text-stroke: 0; }
.ticker-track i { font-style: normal; font-size: .6rem; color: var(--gold); }
@keyframes ticker { to { transform: translateX(calc(-50% - 15px)); } }

/* ---------- 6. About ---------- */
.about { padding: 130px 0; }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(50px, 7vw, 100px); align-items: center; }
.about-media { position: relative; padding: 22px; }
.frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); transform: scale(1.15); transition: transform 1.6s var(--ease), filter .8s; }
.about-media.is-visible .frame img { transform: scale(1); }
.about-media:hover .frame img { filter: none; }
.corner { position: absolute; width: 90px; height: 90px; border: 0 solid var(--gold); transition: width 1s var(--ease) .3s, height 1s var(--ease) .3s; }
.c-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.c-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }
.js-reveal .about-media:not(.is-visible) .corner { width: 0; height: 0; }
.about-badge { position: absolute; right: -10px; top: 48px; display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line-gold); border-radius: 12px; box-shadow: 0 20px 40px -20px #000; }
.about-badge b { font-family: var(--f-head); font-size: 2.6rem; font-weight: 800; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-badge span { font-size: .78rem; line-height: 1.35; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.about-copy h2 { margin-bottom: 22px; }
.about-copy > p { color: var(--muted); margin-bottom: 16px; }
.values { display: grid; gap: 12px; margin-top: 30px; }
.value { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(90deg, rgba(206,153,59,.06), transparent 60%); transition: border-color .35s, transform .35s var(--ease); }
.value:hover { border-color: var(--line-gold); transform: translateX(6px); }
.v-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(206,153,59,.12); color: var(--gold); font-size: 1.25rem; flex-shrink: 0; }
.value b { display: block; font-family: var(--f-head); font-weight: 600; color: #fff; }
.value small { color: var(--muted); font-size: .88rem; }

/* ---------- 7. Services ---------- */
.services { padding: 130px 0; background: var(--black-2); border-top: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .5s, box-shadow .5s; }
.service::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--gold) 85%, transparent 100%); -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 .4s; pointer-events: none; }
.service:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(206,153,59,.35); }
.service:hover::after { opacity: 1; animation: border-run 2.4s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes border-run { to { --a: 360deg; } }
.s-img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.s-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.8); transition: transform 1.2s var(--ease), filter .6s; }
.s-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel), transparent 60%); }
.service:hover .s-img img { transform: scale(1.08); filter: none; }
.s-body { position: relative; padding: 0 28px 30px; flex: 1; display: flex; flex-direction: column; }
.s-num { position: absolute; right: 24px; top: -26px; font-family: var(--f-head); font-weight: 800; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-gold); z-index: 1; }
.s-ic { position: relative; z-index: 1; width: 54px; height: 54px; margin-top: -27px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-grad); color: #111; font-size: 1.4rem; box-shadow: 0 10px 24px -8px rgba(206,153,59,.7); margin-bottom: 22px; }
.s-body h3 { font-size: 1.3rem; margin-bottom: 12px; letter-spacing: -.015em; }
.s-body p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; flex: 1; }

/* ---------- 8. Inspection scan ---------- */
.scan { padding: 130px 0; position: relative; }
.scan-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.scan-copy h2 { margin-bottom: 18px; }
.scan-copy > p { color: var(--muted); margin-bottom: 30px; }
.scan-steps { list-style: none; display: grid; gap: 18px; margin-bottom: 34px; }
.scan-steps li { display: flex; gap: 16px; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.scan-steps li span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-family: var(--f-head); font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.scan-steps b { display: block; color: #fff; font-family: var(--f-head); font-weight: 600; }

.scan-view { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.2; border: 1px solid var(--line-gold); }
.scan-view > img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) brightness(.6) contrast(1.1); transition: filter 2s var(--ease); }
.scan-view.done > img { filter: grayscale(.1) brightness(.85); }
.scan-grid-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(206,153,59,.12) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(206,153,59,.12) 1px, transparent 1px) 0 0 / 40px 40px; opacity: .6; transition: opacity 1.2s; }
.scan-view.done .scan-grid-overlay { opacity: .15; }
.scan-line { position: absolute; left: 0; right: 0; top: -100px; height: 90px; background: linear-gradient(180deg, transparent, rgba(206,153,59,.28) 85%, var(--gold-light)); border-bottom: 2px solid var(--gold-light); box-shadow: 0 6px 22px rgba(243,211,139,.6); opacity: 0; }
.scan-view.is-visible .scan-line { animation: scanline 3s var(--ease) .2s forwards; }
@keyframes scanline { 0% { top: -100px; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.hotspot { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) scale(0); transition: transform .6s var(--ease) var(--hd); z-index: 2; }
.scan-view.is-visible .hotspot { transform: translate(-50%, -50%) scale(1); }
.hotspot i { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid #111; box-shadow: 0 0 0 0 rgba(206,153,59,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 16px rgba(206,153,59,0); } 100% { box-shadow: 0 0 0 0 rgba(206,153,59,0); } }
.hotspot em { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-style: normal; font-family: var(--f-head); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(7,7,7,.8); border: 1px solid var(--line-gold); padding: 5px 10px; border-radius: 6px; }

.scan-hud { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: rgba(7,7,7,.8); border: 1px solid var(--line); border-radius: 8px; font-family: var(--f-head); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.scan-hud .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: blink 1s infinite; }
.scan-view.done .scan-hud .dot { background: #5fd38a; animation: none; }
.scan-hud b { color: var(--gold-light); min-width: 38px; }
@keyframes blink { 50% { opacity: .2; } }
.bracket { position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold); z-index: 2; }
.b1 { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.b2 { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.b3 { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.b4 { bottom: 14px; left: 14px; border-right: 0; border-top: 0; opacity: 0; }

/* ---------- 9. Who we serve ---------- */
.serve { padding: 120px 0; background: var(--black-2); border-block: 1px solid var(--line); }
.serve-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.serve-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px 14px; text-align: center; border-right: 1px solid var(--line); isolation: isolate; transition: color .4s; }
.serve-item:last-child { border-right: 0; }
.serve-item::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(206,153,59,.16), transparent); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.serve-item:hover::before { transform: scaleY(1); }
.serve-item svg { font-size: 2.6rem; color: var(--gold); transition: transform .5s var(--ease); }
.serve-item:hover svg { transform: translateY(-6px) scale(1.08); }
.serve-item span { font-family: var(--f-head); font-weight: 600; font-size: .95rem; color: #fff; line-height: 1.3; }

/* ---------- 10. Roof systems ---------- */
.systems { padding: 130px 0; }
.systems-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.systems-copy h2 { margin-bottom: 18px; }
.systems-copy > p { color: var(--muted); margin-bottom: 30px; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border: 1px solid var(--line-gold); border-radius: 10px; margin-bottom: 26px; }
.switch button { position: relative; z-index: 1; padding: 11px 26px; background: none; border: 0; cursor: pointer; font-family: var(--f-head); font-weight: 600; font-size: .9rem; color: var(--muted); transition: color .4s; }
.switch button[aria-selected="true"] { color: #111; }
.switch-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 7px; background: var(--gold-grad); transition: transform .5s var(--ease); }
.switch.right .switch-pill { transform: translateX(100%); }
.chips { list-style: none; display: none; flex-wrap: wrap; gap: 10px; }
.chips.is-active { display: flex; }
.chips li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; font-size: .92rem; color: rgba(255,255,255,.85); background: var(--panel); animation: chipIn .5s var(--ease) both; transition: border-color .3s, color .3s; }
.chips li:hover { border-color: var(--gold); color: var(--gold-light); }
.chips li:nth-child(2) { animation-delay: .05s; } .chips li:nth-child(3) { animation-delay: .1s; } .chips li:nth-child(4) { animation-delay: .15s; } .chips li:nth-child(5) { animation-delay: .2s; } .chips li:nth-child(6) { animation-delay: .25s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px); } }

.roof-art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(70% 60% at 50% 40%, rgba(206,153,59,.12), transparent 70%), var(--black-2); display: grid; place-items: center; padding: 30px; }
.roof-art svg { width: 100%; height: 100%; overflow: visible; }
.roof-art .ground { fill: var(--line-gold); }
.roof-art .walls { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2; stroke-linejoin: round; }
.roof-art .door, .roof-art .win { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 2; }
.roof-art .roof { fill: none; stroke: url(#gold); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; transition: stroke-dashoffset 1.1s var(--ease), opacity .4s; }
.roof-flat { stroke-dashoffset: 0; }
.roof-sloped { stroke-dashoffset: 420; opacity: 0; }
.roof-art.sloped .roof-flat { stroke-dashoffset: 420; opacity: 0; }
.roof-art.sloped .roof-sloped { stroke-dashoffset: 0; opacity: 1; }
.rain line { stroke: rgba(170,190,220,.45); stroke-width: 2; stroke-linecap: round; animation: rain 1.2s linear infinite; }
.rain line:nth-child(2) { animation-delay: .3s; } .rain line:nth-child(3) { animation-delay: .6s; } .rain line:nth-child(4) { animation-delay: .9s; } .rain line:nth-child(5) { animation-delay: .45s; }
@keyframes rain { from { transform: translateY(-10px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(70px); opacity: 0; } }
.roof-label { position: absolute; left: 20px; top: 18px; font-family: var(--f-head); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* ---------- 11. Contact ---------- */
.contact { padding: 130px 0; background:
  radial-gradient(60% 60% at 0% 100%, rgba(206,153,59,.12), transparent 70%), var(--black-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--muted); margin-bottom: 32px; }
.info-list { list-style: none; display: grid; gap: 18px; margin-bottom: 30px; }
.info-list li { display: flex; gap: 16px; align-items: center; }
.info-list li > span { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-gold); color: var(--gold); font-size: 1.2rem; flex-shrink: 0; }
.info-list small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.info-list a, .info-list div { color: #fff; font-family: var(--f-head); font-weight: 500; word-break: break-word; }
.info-list a:hover { color: var(--gold-light); }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 1.1rem; transition: background .3s, color .3s, transform .35s var(--ease), border-color .3s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: #111; transform: translateY(-3px); }

.contact-form { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: 0 40px 80px -40px #000; }
.contact-form::before { content: ''; position: absolute; left: 36px; right: 36px; top: -1px; height: 2px; background: var(--gold-grad); }
.form-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.form-top b { font-family: var(--f-head); font-size: 1.3rem; color: #fff; }
.form-top span { font-size: .8rem; color: var(--muted); }
.field { position: relative; display: block; margin-bottom: 16px; }
.field input, .field textarea { width: 100%; background: var(--black-2); border: 1px solid var(--line); border-radius: 10px; padding: 24px 16px 10px; color: #fff; outline: 0; resize: vertical; transition: border-color .3s, box-shadow .3s; }
.field span { position: absolute; left: 17px; top: 17px; font-size: .95rem; color: var(--muted); pointer-events: none; transition: top .25s var(--ease), font-size .25s, color .25s; }
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(206,153,59,.12); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 7px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.form-ok { display: none; align-items: center; gap: 8px; margin-top: 14px; color: #6fdc96; font-size: .92rem; }
.contact-form.sent .form-ok { display: flex; }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--black); padding: 60px 0 28px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-tag { color: var(--muted); font-size: .92rem; }
.footer-nav { display: flex; gap: 24px; font-size: .92rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: .82rem; color: var(--muted); }

/* ---------- 13. Scroll reveal ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease) var(--rd, 0s), transform 1s var(--ease) var(--rd, 0s); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1100px) {
  .header-phone { display: none; }
  .serve-grid { grid-template-columns: repeat(3, 1fr); }
  .serve-item:nth-child(3) { border-right: 0; }
  .serve-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .header-actions { display: none; }
  .main-nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line-gold); border-radius: 14px; padding: 12px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .35s, transform .35s var(--ease), visibility 0s .35s; box-shadow: 0 30px 60px #000; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s var(--ease); }
  .nav-open .site-header::before { opacity: 1; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-cta-mobile { display: block; margin-top: 8px; }
  .nav-cta-mobile a { background: var(--gold-grad); color: #111; border-radius: 8px; text-align: center; font-weight: 600; border: 0; }

  .hero { padding: 130px 0 100px; }
  .hero-grid, .about-grid, .scan-grid, .systems-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .about-media { max-width: 560px; }
  .service-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 640px) {
  .container { width: min(1200px, 100% - 32px); }
  .hero { padding: 116px 0 90px; min-height: auto; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-trust { flex-direction: column; }
  .scroll-cue { display: none; }
  .spirit { left: 50%; transform: translateX(-50%); bottom: -4%; animation: none; }
  .vial { width: 96px; }
  .about, .services, .scan, .systems, .contact { padding: 90px 0; }
  .serve { padding: 90px 0; }
  .about-media { padding: 14px; }
  .about-badge { right: 0; top: 30px; padding: 12px 14px; }
  .about-badge b { font-size: 2rem; }
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
  .serve-item { padding: 30px 10px; }
  .serve-item:nth-child(3) { border-right: 1px solid var(--line); }
  .serve-item:nth-child(2n) { border-right: 0; }
  .serve-item:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .scan-view { aspect-ratio: 4 / 3.6; }
  .switch { display: grid; width: 100%; }
  .switch button { padding: 11px 10px; }
  .contact-form { padding: 26px 20px; }
  .contact-form::before { left: 20px; right: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-in, .hero-title .ln > span, .js-reveal .reveal { opacity: 1; transform: none; }
  .rl { stroke-dashoffset: 0; }
  .bubble { left: calc(50% - 15px); }
}
