/* The solar page's own layers, over the film layout of fire-film.css (stage, copy, wait ring, iOS bleed). */
.film-live[data-film="solar"] { height: 1900vh; }
@media (max-width: 800px) { .film-live[data-film="solar"] { height: 1600vh; } }
.sf-charge, .sf-glow, .sf-big, .sf-arrival { display: none; }

/* the copy sits over bright day frames too: a deeper shade under it than the fire page needs */
.film-live[data-film="solar"] .film-vignette {
    background: linear-gradient(to top, rgba(5, 11, 20, .72), rgba(5, 11, 20, .3) 28%, rgba(5, 11, 20, 0) 50%);
}

/* the cut layers sit over street-off: each is street-on where one group's lights make a difference */
.film-live .sf-cut { will-change: opacity; }

/* the one lit house, blooming a little in the dark city */
.film-live .sf-glow {
    display: block; left: var(--gx, 50%); top: var(--gy, 60%); width: 56vmin; height: 56vmin; margin: -28vmin 0 0 -28vmin;
    border-radius: 50%; opacity: 0; pointer-events: none; mix-blend-mode: screen; will-change: transform, opacity;
    background: radial-gradient(closest-side, rgba(255, 186, 104, .28), rgba(255, 150, 64, .1) 45%, rgba(255, 140, 50, 0));
}

/* the battery's charge: big digits, each a window on the technical room */
.film-live .sf-charge { display: flex; inset: 0; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; z-index: 2; }
.sf-charge-label { font-family: var(--f-ui, "Space Grotesk", system-ui, sans-serif); font-size: clamp(12px, 1.1vw, 15px); letter-spacing: .28em; text-transform: uppercase; color: rgba(244, 242, 236, .9); }
.sf-charge-digits {
    font-family: var(--f-serif, "Playfair Display", Georgia, serif); font-weight: 500; font-size: min(34vw, 46vh); line-height: 1; letter-spacing: -.04em;
    font-variant-numeric: lining-nums tabular-nums; color: transparent; -webkit-background-clip: text; background-clip: text;
    background-color: #9fe0b0; background-size: cover; background-position: 50% 50%; padding: 0 .12em; will-change: transform;
}
.sf-charge-pc { font-size: .42em; margin-left: .04em; color: rgba(244, 242, 236, .85); -webkit-text-fill-color: rgba(244, 242, 236, .85); }

/* the bills and the years: big plain digits over a darkened frame */
.film-live .sf-big { display: flex; inset: 0; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; z-index: 2; }
.sf-big-digits {
    font-family: var(--f-serif, "Playfair Display", Georgia, serif); font-weight: 500; font-size: min(30vw, 40vh); line-height: 1; letter-spacing: -.04em;
    font-variant-numeric: lining-nums tabular-nums; color: #F4F2EC; text-shadow: 0 2px 40px rgba(5, 11, 20, .7); will-change: transform;
}
.sf-years .sf-big-digits, .sf-once .sf-big-digits { color: #F2C77E; }

/* the last beat asks for the survey */
.film-copy .sf-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 22px; pointer-events: auto; }

/* the calculator: the visitor's own bills, multiplied */
.sf-calc-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 30px; }
.sf-calc-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: rgba(244, 242, 236, .75); }
.sf-calc-field { display: flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid rgba(244, 242, 236, .22); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.sf-calc-field:focus-within { border-color: #7FA8D8; }
.sf-calc-field i { font-style: normal; color: rgba(244, 242, 236, .55); }
.sf-calc-field input { flex: 1; min-width: 0; height: 54px; border: 0; outline: 0; background: transparent; color: #F4F2EC; font-size: 20px; font-variant-numeric: tabular-nums; }
.sf-calc-field input { -moz-appearance: textfield; appearance: textfield; }
.sf-calc-field input::-webkit-inner-spin-button, .sf-calc-field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sf-calc { scroll-margin-top: 40px; }
.sf-calc-out { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 18px; margin: 0 0 22px; }
.sf-calc-out div { padding: 20px 22px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(244, 242, 236, .08); }
.sf-calc-out dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(244, 242, 236, .6); }
.sf-calc-out dd { margin: 8px 0 0; font-family: var(--f-serif, "Playfair Display", Georgia, serif); font-size: clamp(28px, 3vw, 44px); line-height: 1.1; color: #F4F2EC; font-variant-numeric: lining-nums tabular-nums; }
.sf-calc-out .is-big dd { color: #F2C77E; }
[dir="rtl"] .sf-calc-out dd { text-align: right; }
.sf-calc-note { max-width: 62ch; margin: 0 0 26px; color: rgba(244, 242, 236, .8); line-height: 1.6; }

@media (max-width: 800px) {
    .sf-charge-digits { font-size: min(46vw, 34vh); }
    .sf-big-digits { font-size: min(36vw, 30vh); }
    .sf-calc-form, .sf-calc-out { grid-template-columns: 1fr; }
    .sf-calc-form { gap: 14px; margin: 22px 0; }
    .sf-calc-field input { height: 50px; }
    .sf-calc-out { gap: 10px; }
    .sf-calc-out div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; }
    .sf-calc-out dd { margin: 0; font-size: 26px; }
    .sf-calc-out .is-big dd { font-size: 32px; }
}

/* ── "Invest in your home": the turn of the story, staged alone in the middle of the screen ── */
.sf-sunburst { display: none; }
.film-live .sf-sunburst {
    display: block; position: absolute; left: var(--sx, 50%); top: var(--sy, 50%); width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax;
    border-radius: 50%; pointer-events: none; z-index: 2; opacity: 0; mix-blend-mode: screen; will-change: transform, opacity;
    background: radial-gradient(closest-side, rgba(255, 236, 190, .95), rgba(255, 196, 120, .55) 18%, rgba(255, 170, 90, .18) 42%, rgba(255, 160, 80, 0) 70%);
}
.film-live .film-copy.sf-invest {
    left: 50%; right: auto; bottom: auto; top: 50%; width: min(92vw, 1180px); transform: translate(-50%, -50%);
    text-align: center; z-index: 4;
}
.film-live .sf-invest::before {
    content: ""; position: absolute; inset: -18% -12%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(5, 11, 20, .5), rgba(5, 11, 20, .22) 55%, rgba(5, 11, 20, 0));
}
.sf-invest-kicker {
    font-family: var(--f-ui, "Space Grotesk", system-ui, sans-serif); font-size: clamp(13px, 1.1vw, 16px) !important;
    letter-spacing: .32em; text-transform: uppercase; color: rgba(244, 242, 236, .85) !important; margin: 0 auto 18px !important;
}
.film-live .sf-invest h2 { font-size: clamp(44px, 7.2vw, 124px); line-height: 1; letter-spacing: -.025em; margin: 0 0 26px; max-width: none; }
.sf-w.is-key { display: block; font-size: 1.32em; line-height: .95; padding-bottom: .16em; }
.sf-w { display: inline-block; overflow: hidden; padding: .04em .1em .16em; margin: -.04em -.1em -.16em; vertical-align: top; }
.sf-w > span { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.sf-w.is-key > span { font-style: italic; color: #F2C77E; padding-right: .06em; }
.film-live .sf-invest p:not(.sf-invest-kicker) { margin: 0 auto; max-width: 40ch; }

/* headlines break into even lines, never one long line and an orphan word */
.film-live[data-film="solar"] .film-copy h1, .film-live[data-film="solar"] .film-copy h2 { text-wrap: balance; }

/* ── the opening: the hook is the visible line; the h1 (the service name) is for search and screen readers ── */
.film-copy-intro h1.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.film-copy .sf-hook {
    font-family: var(--f-serif, "Playfair Display", Georgia, serif); font-size: clamp(30px, 3.3vw, 54px) !important; line-height: 1.1 !important;
    letter-spacing: -.02em; color: #F4F2EC !important; max-width: 22ch !important; margin: 0 0 16px !important; text-wrap: balance;
}
.film-live .film-copy-intro { max-width: 900px; }

/* the arrival: street-off and the cut layers over the poster, lit group by group, then removed */
.film-live .sf-arrival { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sf-arrival-cut { opacity: 0; }
.sf-arrival-dark { position: absolute; inset: 0; background: #050b14; }

/* until the arrival starts the poster and the opening copy wait in the dark; never longer than 4 s */
html.sf-arrive .film-stage { background: #050b14; }
html.sf-arrive .film-poster, html.sf-arrive .film-copy-intro { visibility: hidden; animation: sf-arrive-fallback 0s 4s forwards; }
@keyframes sf-arrive-fallback { to { visibility: visible; } }

/* the breadcrumb sits over the lit city: lighter text and a firmer shadow keep it readable */
.film-live[data-film="solar"] .film-copy-intro nav,
.film-live[data-film="solar"] .film-copy-intro nav a,
.film-live[data-film="solar"] .film-copy-intro nav li { color: rgba(244, 242, 236, .92); text-shadow: 0 1px 10px rgba(5, 11, 20, .95), 0 0 2px rgba(5, 11, 20, .9); }

/* after the film closes into its card, a breath before the calculator */
.shs-panel.sf-calc { padding-top: clamp(104px, 12vw, 168px); }
