/* =====================================================================================
   BRIGHT RED, WHITE & BLUE (2026-11-23, draft) — options D, E, F. No dark or navy page backgrounds.
   D Old Glory White · E American Blue · F Stars & Stripes.  html[data-bright] is set in the <head> script.
   ===================================================================================== */
html[data-bright] {
  --red: #C8102E; --red2: #DE1B3A; --navy: #1557C9; --bg: #fff; --bg2: #f4f7fc;
  --ink: #0a2f6b; --tx2: #415476; --tx3: #6d7d99; --ice: #1557C9; --ice2: #0f47a8;
  --glass: #ffffff; --glass2: #ffffff; --edge: rgba(10, 47, 107, .13); --edge2: rgba(10, 47, 107, .25);
}
html[data-pal="d"] { --page: #fff; --t-abyss: 255, 255, 255; --t-night: 250, 251, 254; --t-deep: 236, 243, 252; --t-midnight: 244, 247, 252; }
html[data-pal="e"] { --page: #1e66d8; --t-abyss: 30, 102, 216; --t-night: 255, 255, 255; --t-deep: 224, 236, 252; --t-midnight: 30, 102, 216; }
html[data-pal="f"] { --page: #fff; --t-abyss: 255, 255, 255; --t-night: 255, 255, 255; --t-deep: 234, 242, 252; --t-midnight: 200, 16, 46; }
html[data-bright] body { color: var(--ink); }
html[data-bright] body::before { display: none; }
/* a slim red, white and blue ribbon at the very top */
html[data-bright] body::after { content: ''; position: fixed; inset: 0 0 auto; height: 5px; z-index: 60; pointer-events: none; background: linear-gradient(90deg, #C8102E 0 33.33%, #fff 33.33% 66.66%, #1557C9 66.66%); box-shadow: 0 1px 3px rgba(10, 47, 107, .2); }
/* white stars in the page colour: they show on the blue and red areas and vanish on white */
html:is([data-pal="e"], [data-pal="f"]) .pagebg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104'%3E%3Cg fill='%23fff' fill-opacity='.11'%3E%3Cpath id='s' d='M20 8l2.9 8.9h9.4l-7.6 5.5 2.9 8.9-7.6-5.5-7.6 5.5 2.9-8.9-7.6-5.5h9.4z'/%3E%3Cpath transform='translate(60 52)' d='M20 8l2.9 8.9h9.4l-7.6 5.5 2.9 8.9-7.6-5.5-7.6 5.5 2.9-8.9-7.6-5.5h9.4z'/%3E%3C/g%3E%3C/svg%3E"); }

/* sections sitting on a strong colour (E's blue heroes and footer, F's red finale) */
:is(html[data-pal="e"] :is([data-tone="abyss"], [data-tone="midnight"]), html[data-pal="f"] [data-tone="midnight"]) {
  --ink: #fff; --tx2: rgba(255, 255, 255, .9); --tx3: rgba(255, 255, 255, .76); --ice: #fff; --ice2: #fff;
  --glass: rgba(255, 255, 255, .14); --glass2: rgba(255, 255, 255, .22); --edge: rgba(255, 255, 255, .28); --edge2: rgba(255, 255, 255, .46); color: #fff;
}
:is(html[data-pal="e"] :is([data-tone="abyss"], [data-tone="midnight"]), html[data-pal="f"] [data-tone="midnight"]) :is(.btn--red, .arc__btn--red) { background: #fff; border-color: #fff; color: #C8102E; box-shadow: 0 16px 34px -16px rgba(10, 30, 70, .55); }
:is(html[data-pal="e"] :is([data-tone="abyss"], [data-tone="midnight"]), html[data-pal="f"] [data-tone="midnight"]) :is(.btn--red, .arc__btn--red):hover { background: #fff1f3; }
html[data-bright] .btn--glass { background: rgba(21, 87, 201, .07); border-color: var(--edge2); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-bright] .btn--glass:hover { background: rgba(21, 87, 201, .14); }
:is(html[data-pal="e"] :is([data-tone="abyss"], [data-tone="midnight"]), html[data-pal="f"] [data-tone="midnight"]) .btn--glass { background: rgba(255, 255, 255, .15); color: #fff; }
html[data-bright] .btn--navy { background: #1557C9; border-color: #1557C9; color: #fff; }

/* ---------- menu ---------- */
html[data-bright] .hd { color: var(--ink); }
html[data-bright] .hd__in, html[data-bright] .hd.is-scrolled .hd__in { background: rgba(255, 255, 255, .95); border-color: rgba(10, 47, 107, .12); box-shadow: 0 18px 44px -24px rgba(10, 40, 90, .45); }
html[data-bright] .hd__logo img { filter: none; opacity: 1; }
html[data-bright] .hd__nav { color: #314668; }
html[data-bright] :is(.hd__nav > a:hover, .hd__dd > a:hover, .hd__dd.open > a) { color: var(--ink); background: rgba(21, 87, 201, .08); }
html[data-bright] :is(.hd__nav > a[aria-current="page"], .hd__dd > a[aria-current="page"]) { color: #C8102E; background: rgba(200, 16, 46, .08); }
html[data-bright] .hd__tel svg { color: #C8102E; }
html[data-bright] .burger { border-color: rgba(10, 47, 107, .25); }
html[data-bright] .dd__in { background: #fff; }
html[data-bright] .mnav { background: rgba(255, 255, 255, .985); color: var(--ink); }

/* ---------- headline accents ---------- */
html[data-bright] :is(.pw__h span:last-child, .out__h[data-out="2"], .sx-hero__h span, .sx-end__h span, .vh__h span, .mh__h span, .ob-hero__h span, .nf__h span, .bh__h span, .plug__h--full) { background: none; color: #C8102E; -webkit-text-fill-color: #C8102E; }
html[data-pal="e"] [data-tone="abyss"] :is(.vh__h span, .mh__h span, .ob-hero__h span, .nf__h span, .bh__h span) { color: #fff; -webkit-text-fill-color: #fff; }
html[data-bright] :is(.vh__h, .mh__h, .sx-hero__h, .sx-end__h, .sx-hero__l, .g-h--xl, .g-txt--0 .g-p, .flow__h) { text-shadow: none; }

/* ---------- cards, forms and controls ---------- */
html[data-bright] :is(.qt__panel, .rv__card, .tile, .ig__pts li, .fq__it, .st3__list li, .lf__grid li, .ot__it, .ic, .tc, .bc, .ar1__end, .sc, .sv, .ab__card, .ar__ok, .proof__row li, .tw, .qc, .pc, .ob-val, .g-fig__b, .g-ph, .fa__ph) { background: #fff; border-color: rgba(10, 47, 107, .13); box-shadow: 0 22px 46px -32px rgba(10, 40, 90, .42); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-bright] .ch .qt__panel { --ink: #0a2f6b; --tx2: #415476; --tx3: #6d7d99; --edge: rgba(10, 47, 107, .13); --edge2: rgba(10, 47, 107, .25); --ice: #1557C9; --ice2: #0f47a8; color: #0a2f6b; }
html[data-bright] :is(.qc[aria-pressed="true"], .tw.on, .fq__it[open] summary i, .sc:hover .sc__go, .ic:hover .ic__go, .tc:hover .tc__go, .fa__t:hover .fa__go, .g-lab:hover svg) { background: #1557C9; border-color: #1557C9; color: #fff; }
html[data-bright] .tw.on em { color: #fff; background: rgba(255, 255, 255, .2); }
html[data-bright] :is(.qt input, .qt select, .qt textarea, .qt__other textarea), html[data-bright] :is(.qt input:focus, .qt select:focus, .qt textarea:focus) { background: #f4f7fc; border-color: rgba(10, 47, 107, .18); color: #0a2f6b; }
html[data-bright] :is(.qt input:focus, .qt select:focus, .qt textarea:focus) { border-color: #1557C9; }
html[data-bright] .qt select option { background: #fff; color: #0a2f6b; }
html[data-bright] .qt__fin { background: rgba(200, 16, 46, .055); border-color: rgba(200, 16, 46, .32); color: #0a2f6b; }
html[data-bright] .qt__fin[aria-pressed="true"] { background: rgba(200, 16, 46, .11); }
html[data-bright] .qt__box { border-color: rgba(10, 47, 107, .35); }
html[data-bright] .qt__finlink { background: rgba(200, 16, 46, .07); border-color: rgba(200, 16, 46, .32); color: #C8102E; }
html[data-bright] .proof__offer { background: rgba(200, 16, 46, .07) !important; border-color: rgba(200, 16, 46, .32) !important; color: #C8102E !important; }
html[data-bright] .proof__fin { background: #1557C9 !important; border-color: #1557C9 !important; color: #fff !important; }
html[data-bright] :is(.fa__n em, .tc__n em, .tw:not(.on) em) { color: #C8102E; background: rgba(200, 16, 46, .09); }
html[data-bright] .lf__offer { background: rgba(200, 16, 46, .06) !important; border-color: rgba(200, 16, 46, .3) !important; }
html[data-bright] .lf__offer span { color: #8f1026; }
html[data-bright] .cx__card { background: rgba(200, 16, 46, .055); border-color: rgba(200, 16, 46, .26); }
html[data-bright] :is(.sc__ph::after, .sv__ph::after) { display: none; }
html[data-bright] :is(.sc__ph img, .sv__ph img, .ic__ph img, .fa__ph img, .wk__ph img, .pg__ph img, .g-ph img, .g-fig__b img, .bc__ph img, .lf__air img) { filter: none; }
html[data-bright] .rv__av { background: #1557C9; color: #fff; }
html[data-bright] .rg-bg { stroke: rgba(10, 47, 107, .12); }
html[data-bright] :is(.load__bar, .bk__line, .tg) { background: rgba(10, 47, 107, .12); }
html[data-bright] .tg i { background: #fff; }
html[data-bright] .tile[data-bk="bat"] .bk__bat { background: #1557C9; border-color: #1557C9; color: #fff; }
html[data-bright] .how__rail { background: rgba(10, 47, 107, .12); }
html[data-bright] .how__rail span { background: linear-gradient(90deg, #1557C9, #C8102E); box-shadow: none; }
html[data-bright] .how__dot { background: #fff; border-color: rgba(10, 47, 107, .25); }
html[data-bright] .how__steps li.on .how__dot { background: #C8102E; border-color: #C8102E; box-shadow: 0 0 0 6px rgba(200, 16, 46, .1); }

/* financing: the loudest block on the page in every option */
html[data-bright] .fin__card { --ink: #fff; --tx3: rgba(255, 255, 255, .78); color: #fff; border-color: transparent; background: linear-gradient(120deg, #1557C9 0%, #2472e8 100%); box-shadow: 0 40px 80px -44px rgba(21, 87, 201, .85); }
html[data-pal="e"] .fin__card, html[data-pal="f"] .fin__card { background: linear-gradient(120deg, #C8102E 0%, #e02a48 100%); box-shadow: 0 40px 80px -44px rgba(200, 16, 46, .8); }
html[data-bright] .fin__card .btn--red { background: #fff; color: #C8102E; box-shadow: none; }
html[data-bright] .fin__card .btn--glass { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); color: #fff; }
/* F: the review in flag blue */
html[data-pal="f"] .rv__card { --ink: #fff; --tx2: rgba(255, 255, 255, .85); color: #fff; background: linear-gradient(130deg, #1557C9, #2472e8); border-color: transparent; }
html[data-pal="f"] .rv__card .lnk { color: #fff; border-color: rgba(255, 255, 255, .5); }
html[data-pal="f"] .rv__av { background: #fff; color: #1557C9; }

/* ---------- home hero ---------- */
html[data-bright] .arc { color: var(--ink); }
html[data-bright] .arc__stick { background: none; }
html[data-bright] .arc__cv { mix-blend-mode: normal; }
html[data-bright] .arc__flash { mix-blend-mode: normal; background: radial-gradient(70% 60% at 50% 45%, rgba(21, 87, 201, .16) 0%, transparent 75%); }
html[data-bright] .arc__photo img { filter: none; }
html[data-bright] .arc__photo::after { background: rgba(255, 255, 255, .8); }
html[data-bright] .arc__w, html[data-bright] .arc__w--r { color: #0a2f6b; text-shadow: none; }
html[data-bright] .arc__w--r { color: #C8102E; }
html[data-bright] .arc__sub { color: #415476; }
html[data-bright] .arc__btn { color: #0a2f6b; background: rgba(21, 87, 201, .07); border-color: rgba(10, 47, 107, .25); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-bright] .arc__btn--red { background: #C8102E; border-color: #C8102E; color: #fff; }
html[data-bright] .arc__btn--red:hover { background: #DE1B3A; }
html[data-bright] .arc__cue { background: rgba(10, 47, 107, .16); }
html[data-bright] .arc__cue span { background: linear-gradient(transparent, #C8102E); }
html[data-pal="e"] .arc__photo::after { background: rgba(30, 102, 216, .84); }
html[data-pal="e"] .arc__flash { background: radial-gradient(70% 60% at 50% 45%, rgba(255, 255, 255, .34) 0%, transparent 75%); }
html[data-pal="e"] .arc__cv { mix-blend-mode: screen; }
html[data-pal="e"] :is(.arc__w, .arc__w--r) { color: #fff; }
html[data-pal="e"] .arc__sub { color: rgba(255, 255, 255, .92); }
html[data-pal="e"] .arc__btn { color: #fff; background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .5); }
html[data-pal="e"] .arc__btn--red, html[data-pal="e"] .arc__btn--red:hover { background: #fff; border-color: #fff; color: #C8102E; }
html[data-pal="e"] .arc__cue { background: rgba(255, 255, 255, .3); }
html[data-pal="e"] .arc__cue span { background: linear-gradient(transparent, #fff); }
/* F: the flag behind the hero, with a clean white centre for the words */
.pflag { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html[data-pal="f"] .arc__photo { display: none; }
html[data-pal="f"] .arc__stick::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(58% 46% at 50% 50%, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .94) 58%, rgba(255, 255, 255, .34) 86%, rgba(255, 255, 255, 0) 100%); }
html[data-pal="f"] .arc__cv { z-index: 1; }
html[data-pal="f"] .arc__flash { z-index: 1; }
@media (max-width: 760px) {
  html[data-pal="f"] .pflag { height: 46%; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  html[data-pal="f"] .arc__stick::after { background: linear-gradient(180deg, transparent 26%, rgba(255, 255, 255, .9) 42%, #fff 52%); }
}

/* ---------- page heroes ---------- */
html[data-bright] .vh__win img { filter: brightness(calc((.45 + var(--pw) * .6) * (1 - var(--p) * .04))) saturate(calc(.6 + var(--pw) * .5)); }
html[data-bright] .vh__win::before { box-shadow: inset 0 0 0 1px rgba(10, 47, 107, calc(.12 * var(--q))); }
html[data-bright] .mh__map { background: #e6eefa; }
html[data-bright] .mh__map canvas { filter: saturate(1.5) brightness(1.24) contrast(.96); }
html[data-bright] .mh__fb { filter: none; }
html[data-bright] .pin svg { filter: drop-shadow(0 8px 14px rgba(10, 40, 90, .5)); }
html[data-bright] .pin svg path:first-child { fill: #C8102E; stroke: #fff; }
html[data-bright] .pin svg path:last-child { stroke: #fff; }
html[data-bright] .mt { background: rgba(255, 255, 255, .95); border-color: rgba(10, 47, 107, .2); color: #0a2f6b; }
html[data-bright] .mt--home { background: #C8102E; border-color: #C8102E; color: #fff; }
html[data-bright] .mt:hover { background: #1557C9; border-color: #1557C9; color: #fff; }
html[data-bright] .ch__bg { filter: none; }
html[data-pal="d"] .mh__shade, html[data-pal="f"] .mh__shade, html[data-pal="d"] .ah__shade, html[data-pal="f"] .ah__shade { background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .9) 34%, rgba(255, 255, 255, .24) 58%, transparent 72%); }
html[data-pal="e"] .mh__shade, html[data-pal="e"] .ah__shade { background: linear-gradient(90deg, rgba(30, 102, 216, .97) 0%, rgba(30, 102, 216, .88) 34%, rgba(30, 102, 216, .22) 58%, transparent 72%); }
html[data-pal="d"] .ch__shade, html[data-pal="f"] .ch__shade { background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .84) 46%, rgba(255, 255, 255, .5) 100%); }
html[data-pal="e"] .ch__shade { background: linear-gradient(90deg, rgba(30, 102, 216, .96) 0%, rgba(30, 102, 216, .84) 46%, rgba(30, 102, 216, .55) 100%); }
@media (max-width: 760px) {
  html[data-pal="d"] :is(.mh__shade, .ah__shade), html[data-pal="f"] :is(.mh__shade, .ah__shade) { background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, .92) 42%, transparent 66%); }
  html[data-pal="e"] :is(.mh__shade, .ah__shade) { background: linear-gradient(0deg, #1e66d8 0%, rgba(30, 102, 216, .92) 42%, transparent 66%); }
  html[data-bright] .vh__shade { background: linear-gradient(0deg, color-mix(in srgb, var(--page) 96%, transparent) 0%, color-mix(in srgb, var(--page) 78%, transparent) 46%, transparent 72%); }
}

/* ---------- the "grid drops" moment stays light: the photo greys out, then comes back ---------- */
/* the grid drops: the patio's real lights switch off (a lights-off copy of the same photo flickers in), then the
   Powerwall brings them back. No grey filter. */
html[data-bright] .out__ph img { filter: none; }
.out__off { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.out[data-state="off"] .out__off { animation: out-lights-off .55s steps(1) forwards; }
.out[data-state="bat"] .out__off { animation: out-lights-on .8s steps(1) forwards; }
@keyframes out-lights-off { 0% { opacity: 0; } 18% { opacity: 1; } 30% { opacity: .25; } 44% { opacity: 1; } 58% { opacity: .6; } 70%, 100% { opacity: 1; } }
@keyframes out-lights-on { 0% { opacity: 1; } 22% { opacity: .15; } 34% { opacity: .9; } 50% { opacity: .1; } 62%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .out[data-state="off"] .out__off { animation: none; opacity: 1; } .out[data-state="bat"] .out__off { animation: none; opacity: 0; } }
html[data-bright] .out__ph::after { background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .78) 38%, rgba(255, 255, 255, .08) 72%); }
html[data-bright] .out__pill { background: #fff; border-color: rgba(10, 47, 107, .2); color: #0a2f6b; }
html[data-bright] .out[data-state="off"] .out__pill { color: #C8102E; }
html[data-bright] .out[data-state="bat"] .out__pill { color: #1557C9; }

/* ---------- EV plug ---------- */
html[data-bright] .plug { --ice: #0a2f6b; --ice2: #1557C9; --tx2: #415476; --tx3: #6d7d99; color: #0a2f6b; }
html[data-bright] .plug__stick { background: radial-gradient(60% 60% at 66% 48%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .3) 60%, transparent 82%); }
html[data-bright] .plug__ticks span::before { background: rgba(10, 47, 107, .14); }
html[data-bright] .plug__vig { background: linear-gradient(90deg, color-mix(in srgb, var(--page) 70%, transparent) 0%, transparent 46%); }

/* ---------- 3D house on services ---------- */
html[data-bright] .sx__stick::before { background: radial-gradient(48% 42% at 62% 46%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .3) 45%, transparent 72%); }
html[data-bright] .sx-card { background: rgba(255, 255, 255, .97); border-color: rgba(10, 47, 107, .16); box-shadow: 0 26px 54px -28px rgba(10, 40, 90, .55); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-bright] .sx-card__a { color: #C8102E; }
html[data-bright] .sx__dot { background: #C8102E; box-shadow: 0 0 0 4px rgba(200, 16, 46, .22); }
html[data-bright] .sx-stages { background: rgba(255, 255, 255, .95); border-color: rgba(10, 47, 107, .14); }
html[data-bright] .sx-stages button.on::before { background: #C8102E; box-shadow: none; }

/* ---------- closing + footer ---------- */
html[data-bright] .flow__copy { color: var(--ink); }
html[data-bright] .flow__h em { color: #C8102E; }
html[data-bright] .flow__p { color: var(--tx2); }
html:is([data-pal="e"], [data-pal="f"]) .flow__h em { color: #fff; }
html[data-bright] .flow.no-gl .flow__stick { background: none; }
html[data-pal="d"] .ft__brand img, html[data-pal="f"] .ft__brand img { filter: none; opacity: 1; }
html[data-pal="f"] .ft__brand img { filter: brightness(0) invert(1); }
html[data-bright] .ft__towns > div { color: var(--tx2); }

/* ---------- drawer and photo viewer ---------- */
html[data-bright] .dw__panel { background: #fff; border-color: rgba(10, 47, 107, .14); box-shadow: -30px 0 70px -34px rgba(10, 40, 90, .5); }
html[data-bright] .dw__scrim { background: rgba(10, 47, 107, .24); }
html[data-bright] .dw__x { background: rgba(255, 255, 255, .92); color: #0a2f6b; }
html[data-bright] .dw__pts li { background: #f4f7fc; }
html[data-bright] .g-lb { background: rgba(255, 255, 255, .97); }
html[data-bright] :is(.g-lb__x, .g-lb__nav) { color: #0a2f6b; background: #fff; border-color: rgba(10, 47, 107, .2); }
html[data-bright] .ob-glow { opacity: calc(var(--og, 0) * .5); }
html[data-bright] .ob-verse { border-left-color: #C8102E; }
@media (max-width: 760px) { html[data-bright] .g-ph::after { background: linear-gradient(180deg, transparent 42%, rgba(255, 255, 255, .92) 100%); } html[data-bright] .g-lab { text-shadow: none; color: #0a2f6b; } }

/* ---------- fixes ---------- */
html[data-pal="f"][data-bright] .rv__card { --ink: #fff; --tx2: rgba(255, 255, 255, .85); color: #fff; background: linear-gradient(130deg, #1557C9, #2472e8); border-color: transparent; }
html[data-pal="f"] .arc__stick::after { background: radial-gradient(66% 52% at 50% 49%, #fff 0%, #fff 60%, rgba(255, 255, 255, .78) 76%, rgba(255, 255, 255, 0) 100%); }
/* E: short page heroes become full blue screens, so the white words always sit on solid blue */
html[data-pal="e"] .bh { min-height: 94vh; min-height: 94svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: calc(var(--hd) + 30px); }
@media (max-width: 760px) {
  html[data-pal="f"] .arc__stick::after { background: linear-gradient(180deg, transparent 26%, rgba(255, 255, 255, .9) 42%, #fff 52%); }
  html[data-pal="f"] .arc__h { color: #0a2f6b; }
}

/* draft switch: on phones it sits under the menu so it never covers a button */
@media (max-width: 760px) { .palsw { top: 76px; bottom: auto; padding: 3px 3px 3px 10px; font-size: 12px; } .palsw button { height: 26px; min-width: 26px; padding: 0 7px; } .palsw span { margin-right: 2px; } }
html[data-bright].no3d .sx__fallback { opacity: .22; }

/* E: the contact form is a white card on the blue hero, so its button stays red */
html[data-pal="e"] [data-tone="abyss"] .ch__in .qt__panel .btn--red, html[data-pal="e"] .ch .qt__panel .btn--red:hover { background: #C8102E; border-color: #C8102E; color: #fff; box-shadow: 0 12px 28px -14px rgba(200, 16, 46, .8); }
html[data-pal="e"] .ch .qt__panel .btn--glass { background: rgba(21, 87, 201, .07); color: #0a2f6b; border-color: rgba(10, 47, 107, .25); }

/* areas hero on phones and tablets: map on top, words underneath, in every colour option */
@media (max-width: 1020px) {
  html .ah__stick { align-items: flex-end; padding-bottom: 56px; }
  html .ah__copy { padding-top: 0; }
  html .ah .ah__shade { background: linear-gradient(0deg, var(--page) 0, color-mix(in srgb, var(--page) 94%, transparent) calc(var(--ch, 45%) - 8px), transparent calc(var(--ch, 45%) + 58px)) !important; }
}
@media (max-width: 760px) { html .ah__stick { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }
/* short phones: the map keeps room for every town */
@media (max-width: 760px) and (max-height: 720px) {
  html .ah__copy .mh__p, html .ah__copy .crumb { display: none; }
  html .ah__copy .mh__btns { flex-wrap: nowrap; margin-top: 12px; }
  html .ah__copy .mh__btns .btn { flex: 1 1 0; min-width: 0; height: 46px; padding: 0 10px; font-size: 13.5px; }
  html .ah__copy .mh__h { font-size: 36px; }
}

/* =====================================================================================
   PHONE POLISH for the picked colours (2026-11-23)
   ===================================================================================== */
/* page heroes: the photo fits its window instead of being a zoomed-in slice of a full-screen image */
html[data-bright] .vh { --wt: calc(var(--hd) + 7vh); --wr: var(--gut); --wb: 9vh; --wl: 52%; }
html[data-bright] .vh__win { clip-path: inset(calc(var(--wt) * var(--q)) calc(var(--wr) * var(--q)) calc(var(--wb) * var(--q)) calc(var(--wl) * var(--q)) round calc(30px * var(--q))); }
html[data-bright] .vh__win img { position: absolute; max-width: none; left: calc(var(--wl) * var(--q)); top: calc(var(--wt) * var(--q)); width: calc(100% - (var(--wl) + var(--wr)) * var(--q)); height: calc(100% - (var(--wt) + var(--wb)) * var(--q)); transform: scale(calc(1.02 - var(--p) * .02)); transform-origin: 50% 50%; }
@media (min-width: 761px) and (max-width: 1020px) { html[data-bright] .vh { --wl: 56%; } }
html[data-bright] .lf__air figcaption { background: rgba(255, 255, 255, .94); border-color: rgba(10, 47, 107, .14); color: #0a2f6b; }

@media (max-width: 760px) {
  html[data-bright] .vh { --wt: calc(var(--hd) + 8px); --wl: var(--gut); --wb: var(--vb, 54%); }
  html[data-bright] .vh__win { clip-path: inset(calc(var(--wt) * var(--q)) calc(var(--wr) * var(--q)) calc(var(--wb) * var(--q)) calc(var(--wl) * var(--q)) round calc(22px * var(--q))); }
  /* the first section rises straight out of the hero: no empty screen */
  html[data-bright] #after { margin-top: -38svh; }
  /* photo moments: words sit on a clean white fade at the bottom */
  html[data-bright] .out__ph::after { background: linear-gradient(0deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .95) 40%, rgba(255, 255, 255, .55) 56%, transparent 72%); }
  html[data-bright] .plug__vig { background: linear-gradient(0deg, color-mix(in srgb, var(--page) 96%, transparent) 0%, color-mix(in srgb, var(--page) 84%, transparent) 30%, transparent 52%); }
  html[data-bright] .out__p { color: #415476; opacity: 1; }
  /* comfortable thumbs */
  html[data-bright] .lnk { min-height: 40px; padding: 8px 0; align-items: center; border-bottom-width: 0; text-decoration: underline; text-decoration-color: var(--edge2); text-underline-offset: 4px; }
  html[data-bright] :is(.ft__col a, .ft__towns a) { display: inline-block; padding: 7px 0; }
  html[data-bright] .ft__col { gap: 2px; }
  html[data-bright] .ft__towns > div { gap: 0 14px; }
  html[data-bright] .ft__base a { display: inline-block; padding: 6px 0; }
  html[data-bright] .hd__logo { display: inline-flex; align-items: center; min-height: 44px; }
  html[data-bright] .mt { position: relative; }
  html[data-bright] .mt::after { content: ''; position: absolute; inset: -9px -3px; }
  html[data-bright] .sx-card__a { min-height: 40px; }
  /* small labels stay readable */
  html[data-bright] :is(.bk__src, .sc__st, .fa__n em, .tc__n em, .tw em) { font-size: 12px; }
  /* headlines break where they should */
  html[data-bright] .fh .bh__h span { display: block; }
  html[data-bright] .ch__h { font-size: clamp(52px, 15vw, 66px); }
  html[data-bright] .qt__foot { flex-wrap: wrap; }
  html[data-bright] .qt__foot .btn { width: 100%; }
  html[data-bright] .qt__row { gap: 10px; }
  html[data-bright] .qt__fin { padding: 13px 14px; }
}
@media (max-width: 350px) {
  html[data-bright] .qt__row { grid-template-columns: 1fr; }
  html[data-bright] .fa__towns, html[data-bright] .fa__towns--2, html[data-bright] .fa__towns--3 { gap: 10px; }
  html[data-bright] .fa__n { font-size: 15.5px; }
  html[data-bright] :is(.vh__btns, .mh__btns) .btn { flex: 1 1 100%; }
  html[data-bright] .qc { height: 40px; padding: 0 13px; font-size: 14px; }
}
/* phones held sideways: short screens get compact heroes */
@media (max-width: 960px) and (max-height: 500px) {
  html[data-bright] :is(.vh__h, .mh__h, .bh__h, .ch__h, .nf__h) { font-size: 38px; }
  html[data-bright] .arc__h { font-size: 52px; }
  html[data-bright] .arc__copy { padding: 76px 20px 22px; }
  html[data-bright] .arc__sub { margin-top: 8px; }
  html[data-bright] .arc__ctas { margin-top: 12px; }
  html[data-bright] .arc__btn { height: 44px; }
  html[data-bright] :is(.vh__p, .mh__p) { margin-top: 6px; font-size: 14px; }
  html[data-bright] :is(.vh__btns, .mh__btns) { margin-top: 10px; }
  html[data-bright] :is(.vh__btns, .mh__btns) .btn { height: 42px; font-size: 14px; }
  html[data-bright] .crumb { margin-bottom: 6px; }
  html[data-bright] .mh { min-height: 100svh; }
}

/* phones: after sending, the form collapses to the confirmation */
@media (max-width: 760px) {
  html[data-bright] .qt__panel.sent .qt__in { display: none; }
  html[data-bright] .qt__panel.sent .qt__done { position: static; min-height: 240px; }
}

/* ---------- SHORT AND SIDEWAYS phones ---------- */
@media (max-width: 760px) {
  html[data-pal="d"] .mh .mh__shade { background: linear-gradient(0deg, #fff 0, rgba(255, 255, 255, .97) calc(var(--mch, 48%) + 6px), rgba(255, 255, 255, 0) calc(var(--mch, 48%) + 66px)); }
}
@media (max-width: 960px) and (max-height: 500px) {
  .ob-cv, .ob-glow { display: none !important; }
  html[data-bright] .ob-hero { justify-content: center; padding-top: 86px; padding-bottom: 24px; }
  html[data-bright] .ob-hero__h { font-size: 42px; }
  html[data-bright] .ob-cta__h { position: static; margin-bottom: 16px; }
  html[data-bright] .ob-cta__ring { translate: 0 0 !important; }
  html[data-bright] .g-txt--0 { top: 58%; }
  html[data-bright] .g-h--xl { font-size: 42px; }
  html[data-bright] .g-txt--0 .g-p { margin-top: 6px; font-size: 14px; }
  html[data-bright] .g-txt--0 .g-btns { margin-top: 10px; }
  html[data-bright] .g-txt--0 .btn { height: 42px; font-size: 14px; padding: 0 16px; }
  html[data-bright] .g-ra__stick::after { background: radial-gradient(38% 46% at 50% 58%, #fff 0%, rgba(255, 255, 255, .94) 66%, rgba(255, 255, 255, 0) 100%); }
  html[data-bright] :is(.sx-hero, .sx-end) { padding-top: 84px; padding-bottom: 14px; }
  html[data-bright] :is(.sx-hero__h, .sx-end__h) { font-size: 36px; max-width: none; }
  html[data-bright] .sx-hero__l { margin: 6px 0 10px; font-size: 14px; }
  html[data-bright] .sx-hero__btns .btn { height: 42px; font-size: 14px; padding: 0 16px; }
  html[data-bright] .ch { padding-top: 92px; }
}

/* solid blue buttons always carry white text */
html[data-bright] .btn--ice { background: #1557C9; color: #fff; }
html[data-bright] .btn--ice:hover { background: #0f47a8; color: #fff; }

/* =====================================================================================
   CLEAR SKIES (2026-11-23, owner): no scroll fades, no blur, no see-through layers.
   Everything is simply visible. Photos and maps sit in clean frames.
   ===================================================================================== */
:root { --feather: 0px; --hd: 98px; }
html[data-pal="d"] { --t-abyss: 255, 255, 255; --t-night: 255, 255, 255; --t-deep: 255, 255, 255; --t-midnight: 255, 255, 255; --page: #fff; }
*, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
[data-rv], .g-fig { opacity: 1 !important; transform: none !important; filter: none !important; }
[data-in], .ob-hero [data-in], [data-flicker] { animation: none !important; }
.arc__w, .arc__sub, .arc__ctas { animation-name: calm-in !important; animation-duration: .45s !important; animation-delay: 0s !important; }
@keyframes calm-in { from { opacity: 0; } to { opacity: 1; } }
:is(.out__h, .plug__h, .sx-hero, .g-txt) { filter: none !important; }
:is(.out__ph, .plug__cv, .plug__fallback, .flow__cv, .sx__cv, .sx__fallback, .mh__map, .mh__fb, .ch__bg, .vh__win, .arc__photo) { -webkit-mask-image: none !important; mask-image: none !important; }
:is(.flow__fade, .vh__shade, .mh__shade, .ah__shade, .mh__tint, .ch__bg, .ch__shade, .plug__vig, .out__glow, .g-ra__stick::before, .g-ra__stick::after, .vh__cue, .g-cue, .sx-cue, .ob-cue, .arc__cue) { display: none !important; }
html[data-bright] :is(.sx-hero::before, .sx-end::before) { display: none; }
html[data-bright] .hd__in, html[data-bright] .hd.is-scrolled .hd__in { background: #fff; border-color: rgba(10, 47, 107, .13); box-shadow: 0 10px 26px -14px rgba(10, 40, 90, .42); }
html[data-bright] .mnav { background: #fff; }
html[data-bright] :is(.dd__in, .sx-card, .sx-stages, .dw__panel) { background: #fff; }
html[data-bright] .dw__scrim { background: rgba(10, 47, 107, .42); }
body { padding-bottom: 0 !important; }
.mbar { display: none !important; }

/* framed media */
html[data-bright] :is(.mh__map, .mh__fb, .out__ph, .vh__win) { border-radius: 30px; overflow: hidden; box-shadow: 0 24px 54px -34px rgba(10, 40, 90, .5); }

/* ---------- page heroes: words left, photo right, nothing moving ---------- */
html[data-bright] .vh { height: auto; }
html[data-bright] .vh__stick { position: relative; min-height: 100vh; min-height: 100svh; }
html[data-bright] .vh__win { inset: calc(var(--hd) + 16px) var(--gut) 34px 52%; clip-path: none; }
html[data-bright] .vh__win img { position: static; width: 100%; height: 100%; object-fit: cover; transform: none; filter: none; }
html[data-bright] .vh__win::before, html[data-bright] .vh__win::after { display: none; }

/* ---------- town + areas: the map is the picture ---------- */
html[data-bright] .mh .mh__map, html[data-bright] .mh .mh__fb, html[data-bright] .ah .mh__map { position: absolute; inset: calc(var(--hd) + 16px) var(--gut) 34px 47%; width: auto; height: auto; }
html[data-bright] .mh__map canvas { filter: saturate(1.25) brightness(1.08); }
html[data-bright] .mh__copy { transform: none; opacity: 1; }
html[data-bright] .mh__copy > *, html[data-bright] .ah__copy > * { max-width: min(40vw, 560px); }
html[data-bright] .mh__h { font-size: clamp(46px, min(5.2vw, 10vh), 92px); }

/* ---------- when the grid drops: photo in a frame ---------- */
html[data-bright] .out__ph { inset: calc(var(--hd) + 16px) var(--gut) 34px 47%; }
html[data-bright] .out__ph::after { display: none; }
html[data-bright] .out__ph img { transform: none; }
html[data-bright] .out__p { opacity: 1; }
html[data-bright] .out__btns { opacity: 1; transform: none; pointer-events: auto; }
html[data-bright] .plug__stick { background: none; }

/* ---------- menu foot: Call now + Free quote ---------- */
.mnav__foot { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.mnav__foot .btn { width: 100%; }

/* ---------- service sheet ---------- */
.dw__panel { overflow: hidden auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
.dw__grab, .dw__ph { touch-action: none; }
html[data-bright] .dw__grab { background: rgba(255, 255, 255, .9); }

/* ---------- tablets + phones: picture on top, words below, in normal page flow ---------- */
@media (max-width: 1020px) {
  html[data-bright] .mh { display: block; height: auto; min-height: 0; padding: 0; overflow: visible; }
  html[data-bright] .mh .mh__map, html[data-bright] .mh .mh__fb { position: relative; inset: auto; display: block; width: 100%; height: 64vh; height: 64svh; border-radius: 0 0 28px 28px; }
  html[data-bright] .mh .mh__fb { position: absolute; top: 0; left: 0; }
  html[data-bright] .mh__copy { padding-top: 22px; padding-bottom: 8px; }
  html[data-bright] .mh__copy > *, html[data-bright] .ah__copy > * { max-width: 620px; }
  html[data-bright] .mh__h { font-size: clamp(40px, 10.6vw, 64px); }
  html[data-bright] .mh .crumb, html[data-bright] .ah .crumb { display: none; }
  html[data-bright] .ah .mh__map { inset: 0 0 auto 0; height: 58vh; height: 58svh; border-radius: 0 0 28px 28px; }
  html[data-bright] .ah__stick { align-items: flex-end; padding-bottom: calc(22px + var(--tb, 0px)); }
  html[data-bright] .ah .ah__copy { padding-top: 0; }
  html[data-bright] .out__ph { inset: calc(var(--hd) + 8px) var(--gut) auto var(--gut); height: 40vh; height: 40svh; border-radius: 24px; }
  html[data-bright] .out__stick { align-items: flex-end; padding-bottom: calc(24px + var(--tb, 0px)); }
}
@media (max-width: 760px) {
  :root { --hd: 78px; }
  html[data-bright] .vh__stick { display: block; min-height: 0; overflow: visible; padding: 0; }
  html[data-bright] .vh__win { position: relative; inset: auto; display: block; margin: calc(var(--hd) + 6px) var(--gut) 0; height: 42vh; height: 42svh; border-radius: 24px; }
  /* town pages: the map is a framed card under the menu (nothing hides behind it), like the photo windows */
  html[data-bright] .mh .mh__map, html[data-bright] .mh .mh__fb { margin: calc(var(--hd) + 6px) var(--gut) 0; width: auto; height: 44vh; height: 44svh; border-radius: 24px; }
  html[data-bright] .mh .mh__fb { top: 0; left: 0; right: 0; width: calc(100% - 2 * var(--gut)); }
  html[data-bright] .vh__copy { padding-top: 20px; padding-bottom: 6px; }
  html[data-bright] .vh__copy > *, html[data-bright] .vh--post .vh__copy > * { max-width: none; }
  html[data-bright] .arc__copy { padding-bottom: 34px; }
  html[data-bright] .plug__copy { padding-bottom: calc(30px + var(--tb, 0px)); }
  html[data-bright] .flow { height: 165svh; }
  html[data-bright] .flow__copy { justify-content: flex-start; padding-top: 57svh; padding-bottom: 0; }   /* title just under the power mark, so no screen is only lines */
  html[data-bright] .ob-cta { padding-bottom: 28px; }
  html[data-bright] .ah__stick { padding-bottom: calc(20px + var(--tb, 0px)); }
  html[data-bright] .mh__btns .btn, html[data-bright] .vh__btns .btn { height: 50px; }
  /* the sheet shows its whole content, and scrolls if a phone is short */
  html[data-bright] .dw__panel { max-height: calc(100% - 28px); }
  html[data-bright] .dw__ph { height: 150px; }
  html[data-bright] .dw__body { padding: 16px 18px calc(22px + env(safe-area-inset-bottom)); gap: 10px; }
  html[data-bright] .dw__n { font-size: 27px; }
  html[data-bright] .dw__pts { gap: 6px; margin: 2px 0; }
  html[data-bright] .dw__pts li { padding: 9px 13px; font-size: 14.5px; }
  html[data-bright] .dw__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  html[data-bright] .dw__btns .btn { width: 100%; height: 48px; padding: 0 10px; font-size: 14.5px; }
  html[data-bright] .dw__more { align-self: center; margin-top: 0; }
}
@media (max-width: 760px) and (max-height: 720px) {
  html[data-bright] .mh .mh__map, html[data-bright] .mh .mh__fb { height: 38svh; }
  html[data-bright] .ah .mh__map { height: 56svh; }
  html[data-bright] .vh__win { height: 36svh; }
}
@media (max-width: 960px) and (max-height: 500px) {
  html[data-bright] .mh .mh__map, html[data-bright] .mh .mh__fb { height: 72svh; }
  html[data-bright] .ah .mh__map { inset: calc(var(--hd) + 2px) var(--gut) 10px 48%; height: auto; border-radius: 22px; }
  html[data-bright] .ah__stick { align-items: center; padding-bottom: 0; padding-top: 72px; }
  html[data-bright] .ah__copy > * { max-width: 42vw; }
  html[data-bright] .vh__stick { display: block; }
  html[data-bright] .vh__win { height: 70svh; }
  html[data-bright] .out__ph { inset: 76px var(--gut) 10px 50%; height: auto; }
  html[data-bright] .out__stick { align-items: center; padding-top: 70px; padding-bottom: 0; }
}
html[data-bright] .ob-glow { display: none; }

img { height: auto; }
h1.sx-hero__l, h1.g-p, h1.arc__sub { font-weight: 400; letter-spacing: inherit; }
h1.arc__sub { margin: 26px 0 0; }
@media (max-width: 760px) { h1.arc__sub { margin-top: 20px; } }
.foot-credit { margin-top: 16px; text-align: center; font-size: 12.5px; color: var(--tx3); } .foot-credit a { color: var(--red); }
html[data-bright] .prose a.btn--red { color: #fff; border-color: transparent; }
html[data-bright] .prose a.btn--glass { color: var(--ink); border-color: var(--edge2); }

/* forms */
.qt__err { margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(200, 16, 46, .07); border: 1px solid rgba(200, 16, 46, .3); color: #8f1026; font-size: 14.5px; }
.qt__err a { color: #C8102E; font-weight: 500; text-decoration: underline; }
.qt__hp { display: none !important; }
button[type="submit"]:disabled { opacity: .7; cursor: progress; }

/* TAP TARGETS (launch pass 2026-12-01): small links get an invisible 24px+ hit area; nothing changes visually */
.ch__facts dd a { position: relative; }
.g-lab::after, .ch__facts dd a::after { content: ''; position: absolute; inset: -8px -4px; }
@media (max-width: 760px) { html[data-bright] .mt::after { content: ''; position: absolute; inset: -8px -4px; } }
.ch__facts dd a { display: inline-block; }

/* CONTACT BACKGROUND (back by request 2026-12-01): the lit house at dusk behind "Let's talk.", washed with white only on
   the words' side, blending into the page at the bottom. Static: nothing changes while scrolling. */
html[data-bright] .ch .ch__bg, html[data-bright] .ch .ch__shade { display: block !important; }
html[data-bright] .ch .ch__bg, html[data-bright] .ch .ch__shade { height: 100vh; height: 100svh; max-height: 1000px; }
html[data-bright] .ch .ch__bg { filter: none; object-position: 30% 60%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 74%, transparent 100%) !important; mask-image: linear-gradient(180deg, #000 0%, #000 74%, transparent 100%) !important; }
html[data-bright] .ch .ch__shade { background: linear-gradient(90deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .7) 30%, rgba(255, 255, 255, .25) 48%, rgba(255, 255, 255, 0) 62%),
  linear-gradient(180deg, transparent 70%, #fff 100%); }
@media (max-width: 1020px) {
  html[data-bright] .ch .ch__bg { height: 760px; object-position: 22% 50%; }
  html[data-bright] .ch .ch__shade { height: 760px; background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .62) 30%, rgba(255, 255, 255, .8) 55%, #fff 100%); }
  html[data-bright] .ch .ch__bg { -webkit-mask-image: none !important; mask-image: none !important; }
}

/* PINNED STAGES FILL THE PHONE (2026-12-01): when a phone's address bar slides away the screen grows; pinned stages are
   sized to that tall screen (100lvh) so no strip of page shows under them, and bottom-aligned words keep clear of the bar
   with --tb (the bar's height). Desktop: lvh = svh, nothing changes. */
@supports (height: 100lvh) {
  :root { --tb: calc(100lvh - 100svh); }
  html :is(.fsc__stick, .out__stick, .plug__stick, .flow__stick, .g-ra__stick, .arc__stick, .ah__stick) { height: 100lvh; }
}
