/* ==========================================================================
   Nani Power Solutions — Neo-classical / Midnight · Cobalt · Acid Lime
   ========================================================================== */

:root {
    /* Palette — change these to restyle the whole site */
    --midnight:     #070A14;
    --midnight-2:   #0C1122;
    --midnight-3:   #121A31;
    --cobalt:       #1F4FFF;   /* electric cobalt */
    --cobalt-deep:  #0B2CB8;
    --cobalt-soft:  #9DB4FF;
    --cobalt-glow:  rgba(31, 79, 255, .35);
    --lime:         #C8FF2E;   /* acid lime */
    --lime-dim:     #A9D920;
    --ink:          #ECEFF8;
    --muted:        #9AA3BF;
    --line:         rgba(236, 239, 248, .10);
    --line-strong:  rgba(236, 239, 248, .22);

    --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "Archivo", "Arial Black", "Helvetica Neue", sans-serif; /* heavy, extra-wide headlines */
    --dots: radial-gradient(circle, rgba(31, 79, 255, .55) 1.2px, transparent 1.6px) 0 0 / 56px 56px;

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --radius: 4px;
    --section: clamp(4rem, 8vw, 6.5rem);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--midnight); color: var(--ink);
    font-family: var(--sans); font-size: 16px; line-height: 1.7;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
    background-image: radial-gradient(circle, rgba(31, 79, 255, .32) 1.1px, transparent 1.5px);
    background-size: 56px 56px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3 { margin: 0 0 .55em; }
h1, h2 {
    font-family: var(--display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125;
    text-transform: uppercase; line-height: .94; letter-spacing: -.015em; overflow-wrap: break-word;
}
h1 { font-size: clamp(2.3rem, 6.6vw, 6.4rem); }
h2 { font-size: clamp(1.65rem, 3.3vw, 3rem); }
h3 { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-variation-settings: "wdth" 110; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.15; letter-spacing: -.005em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 600; font-stretch: 100%; font-variation-settings: normal; text-transform: none; letter-spacing: 0; font-size: 1.12em; color: var(--lime); }
p { margin: 0 0 1.1em; color: var(--muted); }
strong.hl { color: var(--lime); font-weight: 700; }
.text-link { color: var(--lime); border-bottom: 1px solid rgba(200, 255, 46, .4); }
.text-link:hover { border-color: var(--lime); }
.note { font-size: .9rem; font-style: italic; border-left: 2px solid var(--cobalt); padding-left: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.center, .center-block { text-align: center; }
.center-block p { max-width: 44rem; margin-left: auto; margin-right: auto; }
.anchor { scroll-margin-top: calc(var(--header-h) + 10px); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--midnight); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* Tagline — classical small caps with rules */
.tagline {
    display: inline-flex; align-items: center; gap: .8rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
    color: var(--lime); margin: -.2rem 0 1.4rem;
}
.tagline::before { content: ""; width: 32px; height: 1px; background: currentColor; }

/* Roman numeral label */
.numeral { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--lime); letter-spacing: .18em; margin-bottom: .9rem; }

/* Ornament divider */
.ornament {
    display: block; width: 120px; height: 14px; margin: 1.1rem auto 0; position: relative;
    background:
        linear-gradient(var(--line-strong), var(--line-strong)) left center / 46px 1px no-repeat,
        linear-gradient(var(--line-strong), var(--line-strong)) right center / 46px 1px no-repeat;
}
.ornament::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border: 1px solid var(--lime); transform: translate(-50%, -50%) rotate(45deg); }
.center-block .ornament { margin-bottom: 2rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem 1.7rem; border-radius: var(--radius); background: transparent;
    font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-align: center;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn-lime { background: var(--lime); color: var(--midnight); }
.btn-lime:hover { background: #D8FF66; box-shadow: 0 10px 30px rgba(200, 255, 46, .25); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--cobalt); background: rgba(31, 79, 255, .14); }
.btn-sm { padding: .6rem 1.1rem; font-size: .72rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow.back { margin-bottom: 1.5rem; }
.link-arrow.back::after { content: none; }
.link-arrow.back::before { content: "←"; }

/* ---------- Image slots (show alt text until the image is added) ---------- */
.img-slot { margin: 0; position: relative; overflow: hidden; background: var(--midnight-3); aspect-ratio: 3 / 2; }
.img-slot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.img-slot.missing {
    display: grid; place-items: center; text-align: center; padding: 1rem;
    background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(31, 79, 255, .07) 14px 15px), var(--midnight-3);
    border: 1px dashed rgba(31, 79, 255, .5);
}
.img-slot.missing::after { content: attr(data-alt); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); max-width: 26ch; line-height: 1.5; }

/* Frames */
.arch { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; border: 1px solid var(--line-strong); padding: 10px; max-width: 460px; margin: 0 auto; }
.arch .img-slot { border-radius: 999px 999px 2px 2px; aspect-ratio: 4 / 5; }
.frame { position: relative; border: 1px solid var(--line-strong); padding: 10px; }
.frame::before { content: ""; position: absolute; inset: -8px 8px 8px -8px; border: 1px solid rgba(31, 79, 255, .45); pointer-events: none; }
.frame .img-slot { aspect-ratio: 3 / 2; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--cobalt-deep); font-size: .76rem; letter-spacing: .06em; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: .45rem; padding-bottom: .45rem; gap: 1rem; }
.topbar-contact { display: flex; gap: 1.5rem; font-weight: 600; }
.topbar a:hover { color: var(--lime); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
/* Blur lives on a pseudo-element: a blur on the header itself would trap the fixed mobile menu inside the header bar */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 10, 20, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.nav-open .site-header { transform: none !important; }
.site-header.scrolled { box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
/* Logo: scales with the screen, never squashed */
.brand-logo { display: block; height: clamp(34px, 3.4vw, 50px); width: auto; max-width: 46vw; }
.footer-logo { display: block; width: clamp(170px, 18vw, 230px); height: auto; }
.brand-name { font-family: var(--serif); font-size: 1.65rem; font-weight: 700; color: var(--ink); margin: 0; line-height: 1; }
.brand-sub { font-size: .6rem; letter-spacing: .32em; text-transform: uppercase; color: var(--lime); margin: .3rem 0 0; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 1.4rem; }
.site-nav > ul > li { position: relative; display: flex; align-items: center; }
.site-nav > ul > li > a { font-size: .86rem; font-weight: 600; letter-spacing: .03em; padding: .5rem 0; position: relative; white-space: nowrap; }
.site-nav > ul > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lime); transform: scaleX(0); transition: transform .3s var(--ease); }
.site-nav > ul > li > a:hover::after, .site-nav > ul > li > a.active::after { transform: scaleX(1); }
.site-nav > ul > li > a.active { color: var(--lime); }

.dropdown-toggle { background: none; border: 0; padding: .4rem; color: var(--muted); display: flex; }
.dropdown { position: absolute; top: 100%; left: -1rem; min-width: 250px; list-style: none; margin: 0; padding: .6rem; background: var(--midnight-2); border: 1px solid var(--line-strong); border-top: 2px solid var(--cobalt); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease); }
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: .6rem .8rem; font-size: .88rem; border-radius: 2px; }
.dropdown a:hover { background: rgba(31, 79, 255, .15); color: var(--lime); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); width: 46px; height: 46px; border-radius: var(--radius); padding: 0 11px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Banner (hero with background image) ---------- */
.banner { position: relative; display: flex; align-items: center; min-height: 480px; padding: clamp(4rem, 8vw, 6rem) 0; overflow: hidden; isolation: isolate; }
.banner-lg { min-height: min(720px, 86vh); }
.banner > .banner-img { position: absolute; inset: 0; aspect-ratio: auto; z-index: -2; }
.banner > .banner-img.missing { place-items: end; padding: 1.5rem 2rem; border: 0; border-bottom: 1px dashed rgba(31, 79, 255, .5); }
.banner::before { /* dark overlay so text stays readable on any photo */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 10, 20, .95) 0%, rgba(7, 10, 20, .82) 45%, rgba(7, 10, 20, .35) 100%),
        radial-gradient(60% 80% at 90% 10%, var(--cobalt-glow), transparent 70%);
}
.banner::after { /* classical column fluting */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background: repeating-linear-gradient(90deg, transparent 0 79px, var(--line) 79px 80px);
    mask-image: linear-gradient(to right, #000 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 60%);
}
.banner-content { position: relative; }
.banner-content h1, .banner-content .lead { max-width: 40rem; }
.lead { font-size: clamp(1.02rem, 1.35vw, 1.16rem); color: #B6BDD6; max-width: 42rem; }

/* Plain page hero (no image) */
.page-hero { padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4rem); background: radial-gradient(50% 80% at 100% 0%, var(--cobalt-glow), transparent 70%), var(--midnight); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18ch; }
.page-hero.center h1, .page-hero.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section.alt { background: var(--midnight-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head.center { text-align: center; }
.section-lead { max-width: 40rem; margin: 0 auto; }
.section-lead.left { margin: 0; }
.section-foot { margin: 3rem 0 0; }

/* Image + text split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-body > :last-child { margin-bottom: 0; }
.split-body .btn { margin-top: .8rem; }

/* Cards */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: var(--midnight-2); border: 1px solid var(--line); padding: 1.6rem; transition: border-color .35s, transform .35s var(--ease); }
.section.alt .card { background: var(--midnight); }
.card::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: -1px; height: 2px; background: var(--cobalt); transform: scaleX(.3); transform-origin: left; transition: transform .45s var(--ease); }
.card:hover { border-color: rgba(31, 79, 255, .5); transform: translateY(-4px); }
.card:hover::before { transform: scaleX(1); }
.card:hover .img-slot img { transform: scale(1.05); }
.card .img-slot { margin: 0 0 1.4rem; aspect-ratio: 4 / 3; }
.card p:last-child { margin-bottom: 0; }
.card.plain { padding: clamp(1.6rem, 3vw, 2.4rem); }
.card-link h3 { transition: color .25s; }
.card-link:hover h3 { color: var(--lime); }
.h-card { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.column-card { border-top: 0; }
.column-card::after { /* fluted column base */ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }

/* Icon cards (benefits) */
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.icon-card { padding: 2rem 1.6rem; border-right: 1px solid var(--line); transition: background .3s; }
.icon-card:last-child { border-right: 0; }
.icon-card:hover { background: rgba(31, 79, 255, .08); }
.icon-card svg { width: 46px; height: 46px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.3rem; }
.icon-card h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.icon-card p { margin: 0; font-size: .95rem; }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .6rem; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; }
.check-list li { position: relative; padding-left: 1.6rem; color: var(--ink); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border: 1.5px solid var(--lime); transform: rotate(45deg); }

/* Tables (pricing / subsidy) */
.table-wrap { border: 1px solid var(--line-strong); padding: 10px; overflow-x: auto; }
.classic-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.classic-table th { text-align: left; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); padding: 1rem 1.3rem; border-bottom: 1px solid var(--line-strong); background: rgba(31, 79, 255, .12); }
.classic-table td { padding: 1.05rem 1.3rem; border-bottom: 1px solid var(--line); }
.classic-table tr:last-child td { border-bottom: 0; }
.classic-table td:first-child { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.classic-table td:last-child { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; }
.classic-table th:last-child { text-align: right; }
.classic-table tbody tr { transition: background .2s; }
.classic-table tbody tr:hover { background: rgba(200, 255, 46, .05); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.45rem); }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 1.05rem; color: var(--lime); font-size: 1.6rem; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.3rem; margin: 0; }

/* Products page jump navigation */
.jump-nav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(12, 17, 34, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.jump-nav .container { display: flex; gap: .5rem; overflow-x: auto; padding-top: .7rem; padding-bottom: .7rem; scrollbar-width: none; }
.jump-nav .container::-webkit-scrollbar { display: none; }
.jump-nav a { white-space: nowrap; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .5rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px; transition: .25s; }
.jump-nav a:hover, .jump-nav a.active { background: var(--lime); color: var(--midnight); border-color: var(--lime); }
.jump-nav ~ .section.anchor { scroll-margin-top: calc(var(--header-h) + 60px); }

/* Gallery */
.gallery-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.gallery-pair .img-slot { border: 1px solid var(--line-strong); }
.gallery-pair .img-slot:hover img { transform: scale(1.04); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.blog-card { background: var(--midnight-2); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.blog-card:hover { border-color: rgba(31, 79, 255, .5); transform: translateY(-4px); }
.blog-card .img-slot { aspect-ratio: 3 / 2; }
.blog-body { padding: 1.7rem; }
.blog-body h3 a:hover { color: var(--lime); }
.prose { margin-top: 2.5rem; font-size: 1.05rem; }
.prose h2 { font-size: 2rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { color: #C2C8DE; }
.prose a { color: var(--lime); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th, .prose td { border: 1px solid var(--line-strong); padding: .7rem 1rem; text-align: left; }
.empty-state { text-align: center; border: 1px dashed var(--line-strong); padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; }

/* ---------- Interactive solar flow ---------- */
.flow-wrap { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.flow { background: var(--midnight-2); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2rem); }
.section.alt .flow { background: var(--midnight); }
.flow-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.mode-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; }
.mode-btn { background: none; border: 0; padding: .5rem 1.1rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); transition: .25s; }
.mode-btn.active { background: var(--cobalt); color: #fff; }

.flow-stage { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.5rem; align-items: stretch; }
.flow-svg { width: 100%; height: auto; display: block; }
.flow-svg .ground { stroke: var(--line-strong); stroke-width: 1.5; }
.flow-svg .ground.thin { stroke-width: .6; }
.flow-svg .sky-night { opacity: 0; transition: opacity .6s; }
.flow.is-night .sky-night { opacity: 1; }

.flow-line { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 12; animation: flowDash 1.1s linear infinite; filter: drop-shadow(0 0 4px rgba(200, 255, 46, .7)); transition: opacity .4s; }
.flow-line.off { opacity: 0; }
.flow-line.dim { opacity: .18; }
@keyframes flowDash { to { stroke-dashoffset: -28; } }

.node { cursor: pointer; outline: none; }
.node .node-label { fill: var(--muted); font: 600 13px var(--sans); letter-spacing: .14em; text-anchor: middle; text-transform: uppercase; transition: fill .3s; }
.node:hover .node-label, .node.active .node-label, .node:focus-visible .node-label { fill: var(--lime); }
.node .box { fill: var(--midnight-3); stroke: var(--line-strong); stroke-width: 1.5; transition: stroke .3s; }
.node.active .box, .node:hover .box { stroke: var(--lime); }

.sun-core { fill: var(--lime); transition: opacity .6s; }
.sun-glow { animation: pulse 3.5s ease-in-out infinite; transform-origin: 110px 100px; transition: opacity .6s; }
.sun-rays line { stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; transition: opacity .6s; }
.moon { fill: #D7DDF2; opacity: 0; transition: opacity .6s; }
.flow.is-night .sun-core, .flow.is-night .sun-glow, .flow.is-night .sun-rays { opacity: 0; }
.flow.is-night .moon { opacity: 1; }
@keyframes pulse { 50% { transform: scale(1.12); } }

.house-body { fill: var(--midnight-3); stroke: var(--line-strong); stroke-width: 1.5; }
.house-roof { fill: var(--midnight); stroke: var(--line-strong); stroke-width: 1.5; }
.house-cornice { stroke: var(--line-strong); stroke-width: 2; }
.column { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.door { fill: var(--midnight); stroke: var(--line-strong); }
.node[data-node="home"].active .house-body, .node[data-node="home"]:hover .house-body { stroke: var(--lime); }
.bulb circle { fill: var(--lime); filter: drop-shadow(0 0 10px var(--lime)); }
.bulb rect { fill: var(--muted); }

.panel { fill: url(#panelGrad); stroke: #8FA9FF; stroke-width: 1; transition: filter .3s; }
.node[data-node="panels"].active .panel, .node[data-node="panels"]:hover .panel { filter: drop-shadow(0 0 8px var(--cobalt)); stroke: var(--lime); }
.flow.is-night .panel { filter: brightness(.55); }

.ac-wave { fill: none; stroke: var(--cobalt); stroke-width: 2.5; }
.led { fill: var(--lime); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.battery-cap { fill: var(--line-strong); }
.battery-level { fill: var(--cobalt); transform-origin: 669px 366px; transition: transform 1s var(--ease); }
.flow:not(.is-night) .battery-level { animation: charge 3s ease-in-out infinite; }
.flow.is-night .battery-level { transform: scaleY(.55); fill: var(--lime-dim); }
@keyframes charge { 0% { transform: scaleY(.35); } 100% { transform: scaleY(1); } }

.meter-text { fill: var(--lime); font: 700 10px var(--sans); text-anchor: middle; }
.pylon { fill: none; stroke: var(--muted); stroke-width: 2; }
.node[data-node="grid"]:hover .pylon, .node[data-node="grid"].active .pylon { stroke: var(--lime); }

.flow-info { border-left: 2px solid var(--cobalt); padding: 1.5rem 1.6rem; background: linear-gradient(180deg, rgba(31, 79, 255, .08), transparent); display: flex; flex-direction: column; justify-content: center; }
.flow-info h3 { font-size: 1.8rem; }
.flow-info .flow-step { font-size: .74rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--lime); margin-bottom: .8rem; }
.flow-info .flow-text { margin-bottom: 1.2rem; }
.flow-dots { display: flex; gap: .5rem; }
.flow-dots button { width: 9px; height: 9px; padding: 0; border: 1px solid var(--line-strong); background: none; transform: rotate(45deg); }
.flow-dots button.active { background: var(--lime); border-color: var(--lime); }
.flow-info.swap { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.info-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; color: var(--ink); }
.info-list .label { font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--lime); margin-bottom: .25rem; }
.info-list a:hover { color: var(--lime); }
.contact-info .btn-row { margin-top: 1.5rem; }

.form-card { background: var(--midnight-2); border: 1px solid var(--line); border-top: 2px solid var(--lime); padding: clamp(1.5rem, 4vw, 2.6rem); }
.form-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.3rem; display: flex; flex-direction: column; }
.field label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.field input, .field select, .field textarea { background: var(--midnight); border: 1px solid var(--line-strong); color: var(--ink); padding: .85rem 1rem; border-radius: var(--radius); font: inherit; transition: border-color .25s, box-shadow .25s; width: 100%; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%), linear-gradient(135deg, var(--lime) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-glow); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #FF6B6B; }
.field .error { color: #FF8A8A; font-size: .82rem; margin-top: .4rem; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-left: 3px solid; }
.alert-success { background: rgba(200, 255, 46, .1); border-color: var(--lime); color: var(--ink); }
.alert-error { background: rgba(255, 107, 107, .1); border-color: #FF6B6B; color: var(--ink); }

.map-section { padding-bottom: 0; }
.map-embed { border-top: 1px solid var(--line-strong); height: clamp(320px, 45vw, 460px); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }

/* ---------- CTA band & footer ---------- */
.cta-band { background: linear-gradient(120deg, var(--cobalt-deep), var(--cobalt) 60%, #3A66FF); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .06) 79px 80px); }
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .4rem; }
.cta-inner p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 36rem; }
.cta-inner .cta-call { margin-top: .7rem; font-weight: 700; color: #fff; }
.cta-call a { color: var(--lime); }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.site-footer { background: #04060D; padding-top: clamp(3.5rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-about { margin-top: 1.2rem; font-size: .92rem; max-width: 22rem; }
.footer-h { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--lime); margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; font-size: .92rem; color: var(--muted); }
.site-footer a:hover { color: var(--lime); }
.social { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); border: 1px solid var(--line-strong); padding: .45rem .9rem; border-radius: 999px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; }
.footer-bottom p { margin: 0; }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--midnight); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 0 6px rgba(200, 255, 46, .15); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Petrillo-style look + GSAP effects (see js/effects.js)
   ========================================================================== */

/* Header hides when scrolling down */
.site-header { transition: box-shadow .3s, transform .45s var(--ease); }
.site-header.hide { transform: translateY(-100%); }
.jump-nav { transition: top .45s var(--ease); }
.header-hidden .jump-nav { top: 0; }

/* Sections become stacked panels with rounded tops */
.section.alt { border-radius: 40px 40px 0 0; border-bottom: 0; position: relative; z-index: 1; }
.section { position: relative; }
.section:not(.alt) { background-color: var(--midnight); background-image: radial-gradient(circle, rgba(31, 79, 255, .32) 1.1px, transparent 1.5px); background-size: 56px 56px; }
.section.alt + .section:not(.alt), .section:not(.alt) + .section.alt, .ribbons + .section, .banner + .section { border-radius: 40px 40px 0 0; margin-top: -40px; z-index: 1; }
.banner, .page-hero { padding-bottom: calc(clamp(3rem, 6vw, 4rem) + 40px); }
.cta-band { border-radius: 40px 40px 0 0; margin-top: -40px; z-index: 2; }

/* ---------- Home: sunrise → solar panel → power scene ---------- */
.intro-wrap { position: relative; }
.scene-track { position: relative; }
.scene { position: sticky; top: var(--header-h); width: 100%; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 480px; overflow: hidden; background: #FFFFFF; }
/* While GSAP runs, the track is tall so the scene stays on screen while its story plays */
.motion-ready .scene-track { height: calc(100vh - var(--header-h) + 230vh); height: calc(100svh - var(--header-h) + 230svh); }
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
/* Finished (daylight) state. GSAP starts everything at night and plays the sunrise as you scroll. */
.sky-night, .sky-dawn, .sky-golden, .sky-stars { opacity: 0; }
.sky-day { opacity: 1; }
.horizon-glow { opacity: .12; }
.cloud ellipse { fill: #FFFFFF; }
.clouds { opacity: .9; }
.sun-disc { fill: #FFF3C4; }
.scene .sun-hot { opacity: 1; }
.scene .sun-warm { opacity: .3; }
.sun-bloom { transform-box: fill-box; transform-origin: center; animation: halo 5s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.06); } }
.hill-far { fill: #DCE6F4; }
.hill-back { fill: #BCCDE6; }
.hill-front { fill: #93ACD0; }
.mist { opacity: 0; }
.beam, .beam-glow, .beam-photons { stroke-linecap: round; fill: none; }
.beam { stroke: rgba(255, 226, 150, .85); stroke-width: 3; }
.beam-glow { stroke: rgba(255, 214, 120, .45); stroke-width: 18; }
.beam-photons { stroke: #FFFFFF; stroke-width: 3; stroke-dasharray: .015 .12; animation: photons 1.4s linear infinite; }
@keyframes photons { to { stroke-dashoffset: -.135; } }
.stand line { stroke: #5B6F94; stroke-width: 8; stroke-linecap: round; }
.panel-frame { fill: #0A1236; stroke: #C9D3E6; stroke-width: 5; stroke-linejoin: round; }
.cell { fill: url(#cellOff); }
.cell-on { fill: url(#cellOn); opacity: .95; }
.panel-shine { fill: rgba(255, 255, 255, .06); pointer-events: none; }
.cable { fill: none; stroke: #33436E; stroke-width: 10; stroke-linecap: round; }
.cable-live { fill: none; stroke: var(--lime); stroke-width: 5; stroke-linecap: round; }
.cable-pulse { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: .05 .2; animation: photons .8s linear infinite; }

.scene-ui { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(2rem, 6vh, 4rem); padding-bottom: calc(clamp(2rem, 5vh, 3.5rem) + 34px); pointer-events: none; }
.scene-caps { position: relative; height: clamp(7rem, 22vh, 13rem); }
.scene-cap { position: absolute; top: 0; left: 0; margin: 0; max-width: 9ch; color: #fff; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 6.4rem); line-height: .9; letter-spacing: -.02em; }
.scene-cap { color: var(--midnight); }
.scene-cap span { display: block; }
.scene-cap em { font-family: var(--serif); font-style: italic; font-weight: 600; text-transform: none; color: var(--cobalt); font-size: 1.15em; letter-spacing: 0; }
.scene-cap.cap-1, .scene-cap.cap-2 { opacity: 0; }
.scene-meter { display: flex; align-items: center; gap: 1rem; align-self: flex-start; background: rgba(255, 255, 255, .75); backdrop-filter: blur(8px); border: 1px solid rgba(7, 10, 20, .12); color: var(--midnight); padding: .7rem 1rem; border-radius: 999px; }
.meter-label { font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.meter-bar { width: clamp(90px, 16vw, 200px); height: 6px; border-radius: 6px; background: rgba(7, 10, 20, .12); overflow: hidden; }
.meter-bar i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--cobalt), var(--lime)); transform-origin: left; }
.meter-value { font-family: var(--display); font-weight: 900; font-stretch: 125%; color: var(--cobalt); min-width: 4ch; }
.scroll-arrow { position: absolute; left: 50%; bottom: 2.2vh; z-index: 3; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .2rem; color: var(--midnight); font-size: .66rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.scroll-arrow span { font-size: 1.4rem; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 50% { translate: 0 6px; } }

/* Hero panel that slides over the scene */
.hero-panel {
    position: relative; z-index: 2; border-radius: 40px 40px 0 0; margin-top: -40px;
    background-color: var(--midnight); background-image: radial-gradient(circle, rgba(31, 79, 255, .32) 1.1px, transparent 1.5px); background-size: 56px 56px;
    padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    box-shadow: 0 -30px 60px rgba(0, 0, 0, .35);
}
.hero-panel h1 { color: var(--lime); max-width: 13ch; }
.hero-panel h1 em { color: var(--ink); }
.hero-copy { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem 4rem; align-items: start; margin: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero-copy .tagline { margin-top: .5rem; }
.hero-copy .btn-row { margin-top: 1.5rem; }
.media-card { border-radius: 28px; overflow: hidden; border: 1px solid var(--line-strong); }
.media-card .img-slot { aspect-ratio: 16 / 7; }

/* Crossing ribbons */
.ribbons { position: relative; z-index: 2; background: var(--midnight); padding: clamp(4rem, 8vw, 6rem) 0 calc(clamp(4rem, 8vw, 6rem) + 40px); overflow: hidden; }
.ribbon { position: relative; width: 110%; margin-left: -5%; padding: .9rem 0; overflow: hidden; }
.ribbon-lime { background: var(--lime); color: var(--midnight); transform: rotate(-3deg); z-index: 2; }
.ribbon-cobalt { background: var(--cobalt); color: #fff; transform: rotate(2.5deg); margin-top: -1.6rem; }
.ribbon-track { display: flex; width: max-content; animation: ribbon 40s linear infinite; }
.ribbon.reverse .ribbon-track { animation-direction: reverse; }
.ribbon-group { display: flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; }
.ribbon span, .ribbon b { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 3.2rem); line-height: 1; white-space: nowrap; }
.ribbon b { font-weight: 500; }
@keyframes ribbon { to { translate: -50% 0; } }

/* Products that scroll sideways (pinned on desktop by GSAP, swipeable everywhere else) */
.h-track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--cobalt) transparent; }
.h-track > .card { flex: 0 0 min(78vw, 380px); scroll-snap-align: start; }
.h-track > .card .img-slot { aspect-ratio: 16 / 11; }
.gsap-hscroll .h-track { overflow: visible; scroll-snap-type: none; padding-bottom: 0; width: max-content; }
.gsap-hscroll .h-track > .card { flex-basis: clamp(320px, 31vw, 460px); }
.gsap-hscroll.section { padding: clamp(3rem, 6vh, 4.5rem) 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.gsap-hscroll .section-head { margin-bottom: 2rem; }
.gsap-hscroll { overflow: hidden; }
.gsap-hscroll .section-foot { margin-top: 2rem; }

/* Edge labels (like a sticky "HELLO!") */
.edge-label { position: fixed; top: 50%; z-index: 45; writing-mode: vertical-rl; font-family: var(--display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; }
.edge-right { right: 8px; transform: translateY(-50%) rotate(180deg); color: var(--lime); font-size: 1.15rem; letter-spacing: .02em; background: var(--midnight); padding: .9rem .45rem; border-radius: 999px; border: 1px solid rgba(200, 255, 46, .35); box-shadow: 0 8px 24px rgba(7, 10, 20, .25); }
.edge-right:hover { color: #fff; }
.edge-left { left: 12px; transform: translateY(-50%) rotate(180deg); color: var(--muted); font-size: .68rem; letter-spacing: .3em; font-family: var(--sans); font-weight: 700; }

/* Bigger roman numerals feel more editorial */
.split-body .numeral, .section-head .numeral { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: linear-gradient(90deg, var(--cobalt), var(--lime)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
html:not(.motion-ready) .scroll-progress { display: none; }

/* Curtain (intro + page transitions) */
.curtain { display: none; position: fixed; inset: 0; z-index: 250; background: var(--cobalt); color: var(--midnight); pointer-events: none; }
.motion-ready .curtain { display: flex; align-items: center; justify-content: center; }
.curtain-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.curtain-brand { display: block; overflow: hidden; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: clamp(4rem, 16vw, 13rem); line-height: .85; letter-spacing: -.04em; }
.curtain-brand > span { display: block; }
.curtain-line { width: min(60vw, 520px); height: 3px; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.curtain-sub { font-weight: 800; font-size: .78rem; letter-spacing: .5em; text-transform: uppercase; }
.curtain-brand, .curtain-line, .curtain-sub { opacity: 0; }

/* Hidden until GSAP animates them in (only while html has .motion-ready) */
.motion-ready :is(h1, .section-head h2, .split-body h2, .center-block h2, .card.plain h2, .contact-info h2, .form-card h2, .cta-inner h2) { visibility: hidden; }
.motion-ready :is(.banner-content, .page-hero .container) > :not(h1),
.motion-ready :is(.hero-copy > *, .media-card),
.motion-ready :is(.section-head, .split-body, .center-block, .form-card, .contact-info, .cta-inner) > :not(h2),
.motion-ready :is(.card-grid, .icon-grid, .blog-grid, .check-list, .info-list, .faq, .h-track) > *,
.motion-ready .classic-table tbody tr,
.motion-ready :is(.flow, .empty-state, .table-wrap, .map-embed),
.motion-ready .scroll-arrow { opacity: 0; }
.motion-ready .ribbon-track { animation: none; }

/* SplitText line masks */
.split-line { padding-bottom: .06em; margin-bottom: -.06em; }

/* Hover transforms are handled by GSAP (magnetic buttons, card tilt) */
.motion-ready .btn, .motion-ready .card, .motion-ready .blog-card, .motion-ready .wa-float { transition-property: background, box-shadow, color, border-color, opacity; }
.motion-ready .btn-lime:hover, .motion-ready .card:hover, .motion-ready .blog-card:hover, .motion-ready .wa-float:hover { transform: none; }
.motion-ready .card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(200, 255, 46, .09), transparent 70%); }
.motion-ready .card:hover::after { opacity: 1; }
.motion-ready .column-card::after { background: none; }

/* Custom cursor (desktop with a mouse only) */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; border-radius: 50%; }
.cursor { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid var(--lime); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s, opacity .3s; }
.cursor-text { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: .72rem; text-transform: uppercase; color: var(--midnight); opacity: 0; transition: opacity .2s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--lime); transition: opacity .3s; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(200, 255, 46, .12); }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--lime); }
.cursor.is-label .cursor-text { opacity: 1; }
.cursor.is-label + .cursor-dot { opacity: 0; }
.cursor.is-text { width: 4px; height: 30px; margin: -15px 0 0 -2px; border-radius: 2px; background: var(--lime); }
.cursor.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor.is-out, .cursor-dot.is-out { opacity: 0; }


/* Paragraphs that light up word by word as you scroll */
.scrub-words .w-dim { opacity: .18; }

/* Button text rolls up on hover */
.btn .roll { display: inline-block; overflow: hidden; vertical-align: top; height: 1.2em; line-height: 1.2em; }
.btn .roll > span { display: block; transition: transform .45s var(--ease); }
.btn .roll > span + span { position: relative; }
.btn:hover .roll > span { transform: translateY(-100%); }

/* Giant brand word in the footer */
.footer-giant { margin: 3rem 0 0; padding: 0 var(--gutter); overflow: hidden; text-align: center; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: clamp(3.4rem, 15.5vw, 16rem); line-height: .82; letter-spacing: -.045em; color: transparent; -webkit-text-stroke: 1.5px rgba(200, 255, 46, .55); white-space: nowrap; }
.footer-giant span { display: inline-block; }
.footer-giant span + span { color: var(--lime); -webkit-text-stroke: 0; }

/* Banner image opens from the centre */
.motion-ready .banner > .banner-img { clip-path: inset(18% 22% 18% 22% round 40px); }


/* Keep side-swinging images from widening the page */
main { overflow-x: clip; }


/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1140px) {
    .edge-label { display: none; }
    .site-nav { gap: 1rem; }
    .site-nav > ul { gap: 1rem; }
    .card-grid.four { grid-template-columns: repeat(2, 1fr); }
    .icon-grid { grid-template-columns: repeat(2, 1fr); }
    .icon-card:nth-child(2) { border-right: 0; }
    .icon-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1020px) {
    :root { --header-h: 72px; }
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
        flex-direction: column; align-items: stretch; gap: 1.5rem;
        background: var(--midnight); padding: 1.5rem var(--gutter) 2rem; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-12px);
        transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
    }
    .site-nav.open { opacity: 1; visibility: visible; transform: none; }
    .site-nav > ul { flex-direction: column; gap: 0; }
    .site-nav > ul > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
    .site-nav > ul > li > a { flex: 1; padding: 1rem 0; font-family: var(--serif); font-size: 1.5rem; }
    .site-nav > ul > li > a::after { display: none; }
    .dropdown { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; display: none; border: 0; background: var(--midnight-2); margin-bottom: 1rem; }
    .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: none; }
    .has-dropdown.open .dropdown { display: block; }
    .dropdown-toggle { padding: 1rem; }
    body.nav-open { overflow: hidden; }
}

@media (max-width: 900px) {
    .hero-copy { grid-template-columns: 1fr; gap: 1rem; }
    .split, .contact-grid, .flow-stage { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .split-media { max-width: 560px; width: 100%; margin: 0 auto; }
    .card-grid.three, .card-grid.two { grid-template-columns: 1fr; }
    .card-grid.three { max-width: 560px; margin: 0 auto; }
    .blog-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
    .banner::before { background: linear-gradient(180deg, rgba(7, 10, 20, .7), rgba(7, 10, 20, .92)); }
}

@media (max-width: 640px) {
    .topbar span:first-child { display: none; }
    .topbar-inner { justify-content: center; }
    .brand-logo { height: 34px; }
    .banner { min-height: 0; }
    .banner-lg { min-height: 82vh; }
    .btn-row .btn { flex: 1 1 100%; }
    .card-grid.four, .icon-grid, .gallery-pair, .form-row, .footer-grid, .check-list.cols-2 { grid-template-columns: 1fr; }
    .icon-card { border-right: 0 !important; border-bottom: 1px solid var(--line); }
    .icon-card:last-child { border-bottom: 0; }
    .classic-table th, .classic-table td { padding: .9rem .8rem; }
    .classic-table td:first-child { font-size: 1.15rem; }
    .flow-svg .node-label { font-size: 15px; }
    .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
    .scene-meter { gap: .6rem; padding: .55rem .8rem; }
    .scene-ui { justify-content: flex-start; gap: .5rem; }
    .scene-caps { height: 7.5rem; }
    .scene .scroll-arrow { display: none; }
    .meter-label { display: none; }
    .edge-label { display: none; }
    .hero-copy { grid-template-columns: 1fr; }
    .media-card .img-slot { aspect-ratio: 4 / 3; }
    .section.alt, .hero-panel, .cta-band { border-radius: 26px 26px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
