/* =========================================================
   INSTALTERMES — Boletines de luz, agua y gas
   Design tokens · base · components · motion
   ========================================================= */

/* Type after Apple: SF Pro where the device has it (Apple's system font), Inter (SIL OFL 1.1, self-hosted) elsewhere */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --primary: #0B5FD7;
  --primary-ink: #0847A6;
  --primary-soft: #E8F0FD;
  --navy: #0B1B33;
  --navy-2: #12284A;

  /* Utility tones (luz · agua · gas) */
  --elec: #F5B301;  --elec-ink: #8A5A00;  --elec-soft: #FFF5D6;
  --water: #1593E6; --water-ink: #0A6CB0; --water-soft: #E4F2FD;
  --gas: #F26A1B;   --gas-ink: #B4470A;   --gas-soft: #FFEDE2;

  /* Neutrals */
  --bg: #FBFBFD;
  --surface: #FFFFFF;
  --tint: #F5F5F7;
  --ink: #1D1D1F;
  --ink-2: #424245;
  --ink-3: #6E6E73;
  --line: #E8E8ED;
  --line-2: #D2D2D7;
  --success: #12805C;
  --danger: #C62828;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Space (8pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Shape & elevation */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --sh-1: 0 1px 2px rgba(11, 27, 51, .06), 0 1px 1px rgba(11, 27, 51, .04);
  --sh-2: 0 6px 20px -8px rgba(11, 27, 51, .18), 0 2px 6px rgba(11, 27, 51, .05);
  --sh-3: 0 24px 60px -20px rgba(11, 27, 51, .28), 0 8px 20px -10px rgba(11, 27, 51, .12);

  /* Motion */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 700ms;

  /* Layers */
  --z-header: 40;
  --z-menu: 39;
  --z-bar: 30;

  --header-h: 72px;
  --container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
/* Lenis (smooth scroll) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.47059;
  letter-spacing: -.022em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -.015em; font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, summary, [role="tab"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--primary); color: #fff; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 820px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }


.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 16px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons · liquid glass ---------- */
.btn, .actionbar__btn {
  --bg: linear-gradient(180deg, #1A6FE0, #0B5FD7 60%, #0A55C2);
  --fg: #fff;
  --rim: rgba(255, 255, 255, .6);
  --glow: rgba(255, 255, 255, .5);
  --lift: 0 10px 24px -10px rgba(11, 95, 215, .65), 0 2px 6px rgba(11, 60, 140, .12);
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--bg); color: var(--fg);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  box-shadow:
    inset 0 1px 1px var(--rim),
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 -3px 8px rgba(0, 30, 90, .2),
    var(--lift);
  transition: color var(--t-fast) ease, box-shadow var(--t-med) var(--ease), transform 450ms cubic-bezier(.3, 1.6, .5, 1), filter var(--t-med) ease;
  -webkit-tap-highlight-color: transparent;
}
/* specular highlight — the curved top of the water */
.btn::before, .actionbar__btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(120% 140% at 30% -20%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 52%),
    radial-gradient(90% 60% at 70% 120%, rgba(126, 232, 255, .28), rgba(126, 232, 255, 0) 60%);
}
/* meniscus that follows the pointer */
.btn::after, .actionbar__btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 62%);
  opacity: 0; transition: opacity var(--t-med) ease;
}
.btn__ripple {
  position: absolute; z-index: -1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, .15) 60%, transparent 70%);
  animation: btnRipple 700ms cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes btnRipple { from { transform: scale(0); opacity: 1; } to { transform: scale(var(--rs, 30)); opacity: 0; } }
@media (hover: hover) {
  .btn:hover, .actionbar__btn:hover { transform: translateY(-1px); filter: saturate(1.08) brightness(1.04); }
  .btn:hover::after, .actionbar__btn:hover::after { opacity: .45; }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}
.btn:active, .actionbar__btn:active { transform: scale(.96, .94); transition-duration: 120ms; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 999px;
  font-weight: 500; font-size: 1.0625rem; letter-spacing: -.022em; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
}
.btn__arrow { transition: transform var(--t-med) var(--ease); }
.btn--ghost {
  --bg: rgba(255, 255, 255, .55); --fg: var(--ink); --rim: rgba(255, 255, 255, .95); --glow: rgba(126, 200, 255, .55);
  --lift: 0 10px 24px -14px rgba(0, 40, 90, .4), 0 2px 6px rgba(0, 40, 90, .06);
  box-shadow: inset 0 1px 1px var(--rim), inset 0 0 0 1px rgba(11, 27, 51, .1), inset 0 -2px 6px rgba(0, 162, 255, .12), var(--lift);
}
.btn--ghost::before { background: radial-gradient(120% 140% at 30% -20%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 55%); }
@media (hover: hover) { .btn--ghost:hover { --bg: rgba(255, 255, 255, .8); } }
.btn--link { --bg: transparent; --fg: var(--ink-2); --lift: none; min-height: 44px; padding: 8px 12px; text-decoration: underline; font-weight: 600; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn--link::before, .btn--link::after { display: none; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(1.0625rem, .3vw + 1rem, 1.3125rem); font-weight: 600; letter-spacing: -.01em;
  color: var(--primary);
}
.eyebrow--light { color: #8EC0FF; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(247, 250, 253, 0);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) ease, box-shadow var(--t-med) ease, background-color var(--t-med) ease, translate .45s cubic-bezier(.5, 0, .1, 1);
}
.header.is-hidden { translate: 0 calc(-100% - 28px); }
/* the frosting comes with the scroll: at the top the header sits on the hero's picture */
.header.is-scrolled { -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); background: rgba(255, 255, 255, .9); border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11,27,51,.35); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand__mark { width: 42px; height: auto; transition: transform var(--t-slow) var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__name { font-weight: 600; font-size: 1.15rem; letter-spacing: -.006em; }
.brand__name span { color: var(--primary); }
.brand--light { color: #fff; }
.brand--light .brand__mark { width: 50px; padding: 5px; border-radius: 14px; background: #fff; }
.brand--light .brand__name span { color: #8EC0FF; }

/* Liquid glass navigation — vanilla port of Nimbus UI "Waterline" (guglielmogiannattasio.it) */
.nimbus-nav {
  --n-tint: rgba(255, 255, 255, .18); --n-fg: var(--ink); --n-fg-soft: rgba(11, 27, 51, .62); --n-rim: rgba(255, 255, 255, .75);
  position: relative; display: none; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; isolation: isolate;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
@media (min-width: 1024px) { .nimbus-nav { display: inline-flex; } }
.nimbus-glass {
  position: absolute; inset: 0; z-index: -2; overflow: hidden; border-radius: inherit; background: var(--n-tint);
  -webkit-backdrop-filter: blur(10px) saturate(1.2) brightness(1.08); backdrop-filter: blur(10px) saturate(1.2) brightness(1.08);
  box-shadow: inset 0 1px 1px var(--n-rim), inset 0 0 0 1px rgba(11, 27, 51, .07), 0 12px 32px -14px rgba(0, 40, 90, .45), 0 2px 6px rgba(0, 40, 90, .08);
}
.nimbus-nav[data-refract="on"] .nimbus-glass { -webkit-backdrop-filter: url(#nimbus-refract) blur(2px) saturate(1.2) brightness(1.08); backdrop-filter: url(#nimbus-refract) blur(2px) saturate(1.2) brightness(1.08); }
.nimbus-water { position: absolute; left: -14px; top: -14px; z-index: -1; pointer-events: none; }
.nimbus-nav[data-gl="off"] .nimbus-water { display: none; }
.nimbus-drop {
  display: none; position: absolute; top: 5px; bottom: 5px; left: 0; z-index: -1; border-radius: 999px; pointer-events: none; will-change: transform, width, opacity;
  background: radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 55%), rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .95), inset 0 -2px 6px rgba(0, 162, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .55), 0 6px 16px -6px rgba(0, 70, 140, .45);
}
.nimbus-nav[data-gl="off"] .nimbus-drop { display: block; }
.nimbus-item {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 15px; border-radius: 999px;
  color: var(--n-fg-soft); font-weight: 600; font-size: .925rem; line-height: 1; letter-spacing: -.006em; text-decoration: none; white-space: nowrap;
  transition: color .25s;
}
.nimbus-item:hover, .nimbus-item[aria-current] { color: var(--n-fg); }
.nimbus-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nv-ico { position: relative; display: inline-flex; flex: none; }
.nv-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.nimbus-item[aria-current] .nv-ico svg { transform: translateY(-1px) scale(1.08); }
.nimbus-item[aria-current] .nv-ico { color: var(--primary); }
.nv-ico[data-fx="pop"] svg { animation: nvPop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes nvPop { 0% { transform: scale(.72); } 60% { transform: scale(1.2); } 100% { transform: translateY(-1px) scale(1.08); } }
.nv-ico[data-fx="drop"] svg { animation: nvDrop .95s cubic-bezier(.4, 0, .3, 1) both; transform-origin: 50% 100%; }
@keyframes nvDrop { 0% { transform: translateY(-1px); } 26% { transform: translateY(-13px) scale(.88, 1.12); } 46% { transform: translateY(3px) scale(1.3, .68); } 62% { transform: translateY(-3px) scale(.92, 1.08); } 80% { transform: translateY(0) scale(1.04, .97); } 100% { transform: translateY(-1px) scale(1.08); } }
.nv-ico[data-fx="drop"]::before, .nv-ico[data-fx="drop"]::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; opacity: 0; pointer-events: none; }
.nv-ico[data-fx="drop"]::before { animation: nvSplashL .95s ease-out both; }
.nv-ico[data-fx="drop"]::after { animation: nvSplashR .95s ease-out both; }
@keyframes nvSplashL { 0%, 44% { opacity: 0; transform: none; } 50% { opacity: .9; transform: translate(-5px, -6px); } 75%, 100% { opacity: 0; transform: translate(-11px, 1px) scale(.4); } }
@keyframes nvSplashR { 0%, 44% { opacity: 0; transform: none; } 50% { opacity: .9; transform: translate(5px, -7px); } 75%, 100% { opacity: 0; transform: translate(12px, 1px) scale(.4); } }
.nv-ico[data-fx="spin"] svg { animation: nvSpin 1s cubic-bezier(.2, .75, .25, 1) both; }
@keyframes nvSpin { 0% { transform: perspective(80px) rotateY(0); } 100% { transform: perspective(80px) rotateY(360deg) translateY(-1px) scale(1.08); } }
.nv-ico[data-fx="hop"] svg { animation: nvHop .8s cubic-bezier(.3, 1.4, .5, 1) both; transform-origin: 50% 100%; }
@keyframes nvHop { 0% { transform: none; } 30% { transform: translateY(-5px) scale(1.04, .96); } 55% { transform: translateY(0) scale(1.12, .88); } 75% { transform: translateY(-2px) scale(.98, 1.04); } 100% { transform: translateY(-1px) scale(1.08); } }
.nv-ico[data-fx="wave"] svg { animation: nvWave .9s ease-in-out both; transform-origin: 50% 92%; }
@keyframes nvWave { 0% { transform: none; } 20% { transform: rotate(-15deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } 100% { transform: translateY(-1px) scale(1.08); } }
@media (min-width: 1024px) and (max-width: 1339px) { .nimbus-item { padding: 0 10px; gap: 6px; } }

.header__actions { display: flex; align-items: center; gap: 8px; }
.header__phone {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px;
  color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.header__phone .ic { color: var(--primary); }
.header__cta { display: none; }

.menu-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--ink);
}
.menu-btn .ic { width: 22px; height: 22px; grid-area: 1 / 1; transition: transform var(--t-med) var(--ease), opacity var(--t-fast) ease; }
.menu-btn .ic--close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.menu-btn[aria-expanded="true"] .ic--open { opacity: 0; transform: rotate(90deg) scale(.6); }
.menu-btn[aria-expanded="true"] .ic--close { opacity: 1; transform: none; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu);
  background: var(--surface); padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  opacity: 0; transform: translateY(-12px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
/* its display:flex would otherwise beat [hidden] and leave an invisible layer over the page */
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu ul li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.mobile-menu.is-open ul li { opacity: 1; transform: none; }
.mobile-menu.is-open ul li:nth-child(2) { transition-delay: 40ms; }
.mobile-menu.is-open ul li:nth-child(3) { transition-delay: 80ms; }
.mobile-menu.is-open ul li:nth-child(4) { transition-delay: 120ms; }
.mobile-menu.is-open ul li:nth-child(5) { transition-delay: 160ms; }
.mobile-menu.is-open ul li:nth-child(6) { transition-delay: 200ms; }
.mobile-menu ul a { display: flex; align-items: center; min-height: 60px; font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -.012em; }
.mobile-menu__foot { display: grid; gap: 12px; padding-top: 24px; }
.mobile-menu__foot p { text-align: center; color: var(--ink-3); font-size: .9rem; }

@media (min-width: 640px) { .header__phone { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .header__cta { display: inline-flex; }
  .mobile-menu { display: none !important; }
}
/* the phone number always stays in the header: the bar runs a little wider than the page, and on narrower
   laptops it tightens up and the menu gives up its icons */
@media (min-width: 1024px) {
  .header__inner { max-width: 1330px; }
  .header__inner > * { flex-shrink: 0; }
}
@media (min-width: 1024px) and (max-width: 1339px) {
  .header__inner { gap: 12px; }
  .header__phone { padding: 0 4px; }
}
@media (min-width: 1024px) and (max-width: 1239px) { .nimbus-item .nv-ico { display: none; } }
@media (min-width: 1024px) and (max-width: 1119px) {
  .header__inner { padding-inline: 20px; }
  .nimbus-item { padding: 0 7px; }
}
@media (min-width: 1024px) and (max-width: 1069px) {
  .header .brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Hero ----------
   White, editorial: the wordmark across the full width, and the house pulled up underneath it so the wordmark
   sits on the footage's white-faded top. The stage sticks while the second section takes it over (motion.js).
   At the top of the page the scroll plays the footage instead of moving the page (main.js); the top row,
   the wordmark and the labels leave by the edges as it runs. */
.hero { position: relative; margin-top: calc(-1 * var(--header-h)); }
.hero__stage {
  --gut: clamp(18px, 2.2vw, 32px);
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; overflow: hidden;
  padding: calc(var(--header-h) + 14px) var(--gut) 0;
  background: #fff; container-type: inline-size;
}
.hero__top { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero__kicker, .hero__note { font-size: .9375rem; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2); will-change: transform; }
.hero__note { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); }
/* one unbroken line in container units: it spans the stage at every width */
.hero__word {
  position: relative; z-index: 3; margin: 10px calc(-1 * var(--gut)) 0; text-align: center;
  font-size: 12.8cqw; font-weight: 600; letter-spacing: -.045em; line-height: .78; white-space: nowrap;
  color: var(--ink); pointer-events: none; will-change: transform;
}
/* matte ceramic: no shine, light falling softly from above, a fine clay grain, and a soft shadow below */
.hero__word, .hero__word > span:not(.sr-only) { color: transparent; -webkit-background-clip: text; background-clip: text; }
.hero__word {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .4 -.16'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(180deg, #2E3036 0%, #1A1B1F 45%, #0E0F11 100%);
  background-size: 140px 140px, 100% 100%;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .7)) drop-shadow(0 14px 22px rgba(11, 27, 51, .14));
}
.hero__word > span:not(.sr-only) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .4 -.16'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(180deg, #2F82F0 0%, #0B5FD7 45%, #0847A6 100%);
  background-size: 140px 140px, 100% 100%;
}
/* the percentage resolves against the stage's width, so the footage rides up under the wordmark in proportion */
.hero__film { position: relative; z-index: 2; margin: -18% calc(-1 * var(--gut)) 0; }
.hero__frame { position: relative; width: 100%; height: 100vh; height: 100svh; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transform-origin: 50% 45%; }
.hero__fade {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 26%; pointer-events: none; will-change: opacity;
  background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, .82) 28%, rgba(255, 255, 255, .42) 60%, rgba(255, 255, 255, 0) 100%);
}
/* the labels sit on the bottom of the screen, over the footage */
.hero__foot {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 18px; z-index: 4;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none;
}
/* the daylight patio is bright: a low shade behind the labels keeps them readable */
.hero__foot::before {
  content: ""; position: absolute; z-index: -1; left: calc(-1 * var(--gut)); right: calc(-1 * var(--gut)); bottom: -18px; height: 190px;
  background: linear-gradient(to top, rgba(5, 11, 22, .5), rgba(5, 11, 22, 0));
}
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; will-change: transform; }
.hero__chip { pointer-events: auto; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); color: #fff; font-size: .8125rem; font-weight: 500; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .08); }
.hero__chip--solid { background: #fff; border-color: transparent; color: var(--ink); }
.hero__loc { display: inline-flex; align-items: center; gap: 9px; font-size: .8125rem; font-weight: 500; color: #fff; white-space: nowrap; will-change: transform; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
/* the end of the footage: the room keeps drifting, darkens from below, and the promise rises line by line */
.hero__end {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(22px, 3vh, 32px);
  padding: 0 var(--gut) clamp(64px, 11vh, 120px); color: #fff; pointer-events: none;
  visibility: hidden; transition: visibility 0s .7s;
}
.hero__end::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease;
  background: linear-gradient(to top, rgba(5, 11, 22, .82) 0%, rgba(5, 11, 22, .45) 38%, rgba(5, 11, 22, 0) 68%);
}
.hero__end > * { position: relative; }
.hero__end-title { font-size: clamp(2.6rem, 6.4vw, 6.25rem); font-weight: 600; letter-spacing: -.04em; line-height: .98; }
.hero__end .ln { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__end .ln > span { display: inline-block; transform: translateY(110%); transition: transform .6s cubic-bezier(.5, 0, .75, 0); }
.hero__end .ln--accent { color: #8EC0FF; }
.hero__end-ctas { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; transform: translateY(18px); transition: opacity .4s ease, transform .4s ease; }
.hero__stage.is-told .hero__end { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.hero__stage.is-told .hero__end::before { opacity: 1; }
.hero__stage.is-told .hero__end .ln > span { transform: none; transition: transform .9s cubic-bezier(.2, .7, .1, 1); }
.hero__stage.is-told .hero__end .ln:nth-child(2) > span { transition-delay: .08s; }
.hero__stage.is-told .hero__end .ln:nth-child(3) > span { transition-delay: .16s; }
.hero__stage.is-told .hero__end-ctas { opacity: 1; transform: none; transition: opacity .6s ease .3s, transform .8s cubic-bezier(.2, .7, .1, 1) .3s; }
/* the room drifts slowly in and across, so the last frame never sits still */
.hero__stage.is-done .hero__video { animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: scale(1.06); }
  to { transform: scale(1.2) translate(-2.5%, -1.5%); }
}
@media (max-width: 479px) { .hero__end-ctas .btn { flex: 1 1 auto; padding-inline: 18px; } }

/* the green "we're on" light, as before: a dot and a ring that keeps spreading from it */
.pulse { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #2FD18F; box-shadow: 0 0 10px rgba(47, 209, 143, .8); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2FD18F; animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } }
@media (max-width: 767px) {
  .hero__stage { padding-top: calc(var(--header-h) + 10px); }
  .hero__top { align-items: flex-start; }
  .hero__kicker { font-size: .875rem; max-width: 34ch; line-height: 1.3; }
  .hero__note { font-size: .8125rem; padding: 6px 12px; white-space: nowrap; }
  .hero__word { margin-top: 14px; font-size: 15.3cqw; }
  .hero__film { margin-top: -16%; }
  .hero__foot { bottom: 14px; }
  .hero__chips { gap: 6px; }
  .hero__chip { font-size: .75rem; padding: 6px 11px; }
  .hero__foot { align-items: flex-end; }
  .hero__loc { font-size: .75rem; }
}
/* on phones the chips get the full width and the place sits beside their last row */
@media (max-width: 479px) { .hero__loc { position: absolute; right: 0; bottom: 6px; } }

.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11, 95, 215, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 95, 215, .07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}

/* ---------- The second section ----------
   Navy, copy on the left and the room on the right. With motion (.motion-hero, set by motion.js) it sticks over
   the hero for a stretch of scroll: the stage turns navy, the footage the camera ended in shrinks into the
   picture slot, and the copy rises beside it. Without motion it is a plain section after the house. */
.hero__about {
  --gut: clamp(18px, 2.2vw, 32px);
  position: relative; z-index: 5; display: grid; gap: clamp(28px, 5vw, 88px); align-items: center;
  padding: clamp(88px, 13vh, 150px) var(--gut) clamp(72px, 11vh, 120px);
  background: var(--navy); color: #fff; overflow: clip;
}
.hero__about-copy { display: grid; justify-items: start; gap: clamp(16px, 2.4vh, 26px); max-width: 660px; }
.hero__about-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.hero__about-statement { font-size: clamp(1.45rem, 1.5vw + .95rem, 2.55rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.17; text-wrap: pretty; }
.hero__about-statement em { font-style: normal; color: #8EC0FF; }
.night__ribbon { display: flex; align-items: baseline; gap: .16em; white-space: nowrap; font-size: clamp(2.4rem, 5vw, 5.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.night__w--elec { color: var(--elec); }
.night__w--water { color: #6EC1FF; }
.night__w--gas { color: #FF9A5C; }
.night__dot { color: rgba(255, 255, 255, .22); }
.night__rule { width: min(320px, 60vw); height: 1px; background: rgba(255, 255, 255, .3); transform-origin: 0 50%; }
.night__close { max-width: 40ch; color: #B5C3D8; }
.hero__about-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__about .btn--ghost, .hero__end .btn--ghost { --bg: rgba(255, 255, 255, .1); --fg: #fff; --rim: rgba(255, 255, 255, .4); box-shadow: inset 0 1px 1px var(--rim), inset 0 0 0 1px rgba(255, 255, 255, .22), var(--lift); }
.hero__about .btn--ghost::before, .hero__end .btn--ghost::before { background: radial-gradient(120% 140% at 30% -20%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%); }
@media (hover: hover) { .hero__about .btn--ghost:hover, .hero__end .btn--ghost:hover { --bg: rgba(255, 255, 255, .18); } }
/* the picture: the room lands in this slot (motion.js), then gives way to the air conditioner on its wall */
/* its corners follow the casing's own outline: tight at the top, long soft curves at the bottom */
.hero__about-media { position: relative; width: 100%; aspect-ratio: 1670 / 634; border-radius: 2.5% 2.5% 4.5% 4.5% / 8.7% 8.7% 42.6% 42.6%; box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .7); }
.hero__about-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); pointer-events: none; }
@media (min-width: 900px) { .hero__about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); } }
@media (max-width: 899px) { .hero__about-media { order: -1; } }

/* warm plaster lit from a downlight above, its grain, and the room's dusk falling off at the edges */
.ac {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit; container-type: size;
  background:
    radial-gradient(60% 70% at 50% -10%, rgba(255, 249, 238, .9), rgba(255, 249, 238, 0) 70%),
    radial-gradient(80% 95% at 50% 38%, #FBF7F1 0%, #F2E9DC 42%, #DCCAB2 78%, #B59D80 100%);
}
.ac::before {
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ac::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 80px 10px rgba(60, 38, 18, .35); pointer-events: none; }
/* the card has the unit's own shape (the casing spans x 2–1672 and y 134–768 of the 1674 × 939 picture),
   so the picture is placed to put the casing edge to edge in it */
.ac__unit { position: absolute; left: -.12%; top: -21.14%; width: 100.24%; height: 148.1%; }
/* a touch brighter, so the casing reads white rather than grey */
.ac__unit img { position: relative; display: block; width: 100%; height: 100%; filter: brightness(1.07) contrast(1.04) saturate(.9); }
/* the display's blue glow, breathing */
.ac__glow { position: absolute; left: 84.5%; top: 34%; width: 10%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 125, 255, .38), rgba(40, 125, 255, 0)); mix-blend-mode: screen; animation: acGlow 4.2s ease-in-out infinite; }
@keyframes acGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
/* cool air falling from the vent and spreading as it goes */
.ac__air { position: absolute; left: 7%; right: 7%; top: 76%; height: 90%; pointer-events: none; }
.ac__air i {
  position: absolute; top: 0; width: 22%; height: 70%; border-radius: 50%;
  background: linear-gradient(to bottom, rgba(196, 228, 255, .7), rgba(196, 228, 255, 0));
  filter: blur(9px); opacity: 0; transform-origin: 50% 0; animation: acAir 3.8s cubic-bezier(.3, .1, .4, 1) infinite;
}
.ac__air i:nth-child(1) { left: 0; animation-delay: 0s; }
.ac__air i:nth-child(2) { left: 20%; animation-delay: .75s; }
.ac__air i:nth-child(3) { left: 40%; animation-delay: 1.5s; }
.ac__air i:nth-child(4) { left: 60%; animation-delay: 2.25s; }
.ac__air i:nth-child(5) { left: 78%; animation-delay: 3s; }
@keyframes acAir {
  0% { opacity: 0; transform: translateY(-8%) scaleY(.35) scaleX(.8); }
  30% { opacity: .75; }
  100% { opacity: 0; transform: translateY(30%) scaleY(1.1) scaleX(1.35) skewX(-6deg); }
}
@media (prefers-reduced-motion: reduce) { .ac__glow, .ac__air i { animation: none; } .ac__air { display: none; } }
@media (max-width: 479px) { .hero__about-ctas .btn { flex: 1 1 auto; padding-inline: 18px; } }

/* with motion: the section sits over the stuck hero while the page scrolls through the scene */
.motion-hero .hero { height: 220vh; height: 220svh; }
.motion-hero .hero__about {
  position: sticky; top: 0; height: 100vh; height: 100svh; margin-top: -100vh; margin-top: -100svh;
  padding: calc(var(--header-h) + 4vh) var(--gut) 6vh; background: none; pointer-events: none;
}
/* only what can be seen takes taps: the empty block would otherwise sit over the buttons of the hero */
.motion-hero .hero__about-copy > * { pointer-events: auto; }
@media (max-width: 899px) {
  .motion-hero .hero__about { align-content: start; gap: 22px; padding-top: calc(var(--header-h) + 14px); }
  .motion-hero .night__close { display: none; }
}
@media (max-width: 899px) and (max-height: 760px) { .motion-hero .night__rule { display: none; } .motion-hero .hero__about-statement { font-size: 1.3rem; } }

/* ---------- Towns marquee ---------- */
.towns { position: relative; display: flex; align-items: center; border-block: 1px solid var(--line); background: var(--surface); }
.towns__track-wrap {
  flex: 1; display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.towns__track { display: flex; flex: none; gap: 0; animation: marquee 38s linear infinite; }
.towns__track li { display: inline-flex; align-items: center; gap: 28px; padding: 20px 14px; font-weight: 600; font-size: 1.05rem; color: var(--ink-2); white-space: nowrap; letter-spacing: -.006em; }
.towns__track li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); margin-left: 14px; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 7vw + 48px, 168px) 0; position: relative; }
.section--tint { background: var(--tint); }
.section__head { max-width: 860px; margin: 0 auto clamp(48px, 5vw, 80px); text-align: center; }
.section__head--left { text-align: left; margin: 0; }
.section__head h2 { margin-top: 10px; font-size: clamp(2.25rem, 3.4vw + 1rem, 3.5rem); font-weight: 600; line-height: 1.07; letter-spacing: -.02em; }
.section__lead { margin-top: 18px; font-size: clamp(1.1875rem, .5vw + 1rem, 1.3125rem); line-height: 1.38; letter-spacing: .004em; color: var(--ink-3); max-width: 40em; text-wrap: pretty; }
.section__head .section__lead { margin-inline: auto; }
.section__head--left .section__lead { margin-inline: 0; }
.section__head--left .btn { margin-top: 28px; }
@media (max-width: 767px) { .section { padding: 88px 0; } .section__head { margin-bottom: 44px; } }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: .9fr 1.1fr; gap: 72px; } }

/* ---------- Tabs ---------- */
.tabs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: 10px; }
.tabs__list { --cols: 2; --rows: 2; position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); background: var(--tint); border-radius: 22px; padding: 6px; }
.tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 12px; border: 0; background: none; border-radius: 16px;
  font-weight: 600; font-size: .95rem; color: var(--ink-2);
  transition: color var(--t-med) ease;
}
.tab[aria-selected="true"] { color: var(--ink); }
.tab__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface); transition: background-color var(--t-med) ease, color var(--t-med) ease, transform var(--t-med) var(--ease); }
.tab__icon .ic { width: 18px; height: 18px; }
.tab[data-tone="elec"] .tab__icon { color: var(--elec-ink); }
.tab[data-tone="water"] .tab__icon { color: var(--water-ink); }
.tab[data-tone="gas"] .tab__icon { color: var(--gas-ink); }
.tab[data-tone="inst"] .tab__icon { color: var(--primary); }
.tab[aria-selected="true"][data-tone="elec"] .tab__icon { background: var(--elec); color: var(--navy); }
.tab[aria-selected="true"][data-tone="water"] .tab__icon { background: var(--water); color: #fff; }
.tab[aria-selected="true"][data-tone="gas"] .tab__icon { background: var(--gas); color: #fff; }
.tab[aria-selected="true"][data-tone="inst"] .tab__icon { background: var(--primary); color: #fff; }
.tab[aria-selected="true"] .tab__icon { transform: rotate(-6deg) scale(1.06); }
.tabs__indicator {
  position: absolute; top: 6px; left: 6px; z-index: 0;
  width: calc((100% - 12px) / var(--cols)); height: calc((100% - 12px) / var(--rows));
  background: var(--surface); border-radius: 16px; box-shadow: var(--sh-2);
  transform: translate(calc(var(--col, 0) * 100%), calc(var(--row, 0) * 100%));
  transition: transform 520ms var(--ease-out);
}
@media (min-width: 768px) { .tabs__list { --cols: 4; --rows: 1; } .tab { font-size: 1rem; } }
/* phones: icon over label, so the longest names fit half the width */
@media (max-width: 767px) {
  .tab { flex-direction: column; gap: 6px; min-height: 72px; padding: 10px 6px; font-size: .875rem; line-height: 1.2; text-align: center; }
}

/* the four panels share one cell, so the card is always as tall as the longest and nothing below it
   (or the page's line) moves when the tab changes; the others are there but unseen and unreachable */
.tabs__panels { display: grid; padding: 28px 18px 18px; }
.panel { display: grid; gap: 28px; grid-area: 1 / 1; align-content: start; }
.panel[hidden] { visibility: hidden; }
.panel.is-active { animation: panelIn 520ms var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel:focus-visible { outline-offset: 6px; }
.panel__intro h3 { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem); font-weight: 600; }
.panel__intro p { margin-top: 12px; color: var(--ink-2); font-size: 1.05rem; }
.panel__intro .btn { margin-top: 24px; }
.panel__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 20px !important; color: var(--ink-2) !important; }
.panel__price strong { font-size: 2rem; font-weight: 600; color: var(--ink); letter-spacing: -.018em; }
.panel__price span { font-size: .9rem; padding: 4px 10px; border-radius: 999px; background: var(--tone-soft, var(--tint)); color: var(--tone-ink, var(--ink-2)); font-weight: 600; }
.panel[data-tone="elec"] { --tone: var(--elec); --tone-ink: var(--elec-ink); --tone-soft: var(--elec-soft); }
.panel[data-tone="water"] { --tone: var(--water); --tone-ink: var(--water-ink); --tone-soft: var(--water-soft); }
.panel[data-tone="gas"] { --tone: var(--gas); --tone-ink: var(--gas-ink); --tone-soft: var(--gas-soft); }
.panel[data-tone="inst"] { --tone: var(--primary); --tone-ink: var(--primary-ink); --tone-soft: var(--primary-soft); }

.checklist { display: grid; gap: 4px; align-content: start; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
  background: var(--bg); font-weight: 500;
  opacity: 0; transform: translateX(-8px);
}
.panel.is-active .checklist li { animation: itemIn 500ms var(--ease-out) forwards; }
.panel.is-active .checklist li:nth-child(2) { animation-delay: 45ms; }
.panel.is-active .checklist li:nth-child(3) { animation-delay: 90ms; }
.panel.is-active .checklist li:nth-child(4) { animation-delay: 135ms; }
.panel.is-active .checklist li:nth-child(5) { animation-delay: 180ms; }
.panel.is-active .checklist li:nth-child(6) { animation-delay: 225ms; }
.panel.is-active .checklist li:nth-child(7) { animation-delay: 270ms; }
@keyframes itemIn { to { opacity: 1; transform: none; } }
.checklist .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--tone, var(--primary)); color: #fff; stroke-width: 3; margin-top: 1px; }
.panel[data-tone="elec"] .checklist .ic { color: var(--navy); }
.checklist strong { font-weight: 600; }
@media (min-width: 640px) { .checklist--cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .tabs__panels { padding: 44px 40px 36px; }
  .panel { grid-template-columns: .9fr 1.1fr; gap: 56px; }
}

/* ---------- Cases ---------- */
.cases { position: relative; display: grid; gap: 16px; }
@media (min-width: 640px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cases { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.case {
  position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: translate var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) ease, opacity var(--t-slow) var(--ease);
}
@media (hover: hover) { .case:hover { translate: 0 -4px; box-shadow: var(--sh-2); border-color: var(--line-2); } }
.case__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); margin-bottom: 20px; transition: transform var(--t-med) var(--ease); }
.case:hover .case__icon { transform: rotate(-8deg); }
.case__icon .ic { width: 22px; height: 22px; }
.case h3 { font-size: 1.2rem; font-weight: 600; }
.case p { margin-top: 8px; color: var(--ink-2); }

/* ---------- Prices ---------- */
.prices { display: grid; gap: 16px; }
@media (min-width: 640px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .prices { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.price {
  --tone: var(--primary); --tone-ink: var(--primary-ink); --tone-soft: var(--primary-soft);
  position: relative; overflow: hidden; padding: 28px 24px 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: translate var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), opacity var(--t-slow) var(--ease);
}
.price::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tone); transform: scaleX(.25); transform-origin: left; transition: transform 600ms var(--ease-out); }
@media (hover: hover) { .price:hover { translate: 0 -6px; box-shadow: var(--sh-3); } .price:hover::before { transform: scaleX(1); } }
.price.is-in::before { transform: scaleX(1); transition-delay: .35s; }
.price[data-tone="elec"] { --tone: var(--elec); --tone-ink: var(--elec-ink); --tone-soft: var(--elec-soft); }
.price[data-tone="water"] { --tone: var(--water); --tone-ink: var(--water-ink); --tone-soft: var(--water-soft); }
.price[data-tone="gas"] { --tone: var(--gas); --tone-ink: var(--gas-ink); --tone-soft: var(--gas-soft); }
.price__tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: var(--tone-soft); color: var(--tone-ink); font-weight: 600; font-size: .8rem; }
.price__tag .ic { width: 16px; height: 16px; }
.price h3 { margin-top: 20px; font-size: 1.15rem; font-weight: 600; }
.price__amount { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; font-size: 3rem; font-weight: 600; letter-spacing: -.027em; line-height: 1; font-variant-numeric: tabular-nums; }
.price__amount small { font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.price__note { margin-top: 14px; color: var(--ink-2); font-size: .95rem; }
.price--featured { background: linear-gradient(180deg, var(--surface), var(--elec-soft)); }
/* the cards keep moving: a light runs along each colour bar, the supply icons live (a spark, a falling drop,
   a flickering flame), the price settles with a small bounce once counted, and on desktop the card tilts
   towards the pointer with a glow of its colour under it (motion.js) */
.price::before {
  background: linear-gradient(90deg, var(--tone) 0%, var(--tone) 42%, rgba(255, 255, 255, .85) 50%, var(--tone) 58%, var(--tone) 100%);
  background-size: 260% 100%; animation: priceSheen 4.2s linear infinite; animation-delay: calc(var(--i, 0) * -1.05s);
}
.prices > .price:nth-child(2) { --i: 1; } .prices > .price:nth-child(3) { --i: 2; } .prices > .price:nth-child(4) { --i: 3; }
@keyframes priceSheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.price::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--t-med) ease;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 0%), color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%);
}
@media (hover: hover) { .price:hover::after { opacity: 1; } }
.price > * { position: relative; z-index: 1; }
.price[data-tone="elec"] .price__tag .ic { animation: priceSpark 3.2s ease-in-out infinite; }
.price[data-tone="water"] .price__tag .ic { animation: priceDrop 2.6s cubic-bezier(.4, 0, .2, 1) infinite; }
.price[data-tone="gas"] .price__tag .ic { transform-origin: 50% 90%; animation: priceFlame 1.6s ease-in-out infinite; }
@keyframes priceSpark { 0%, 70%, 100% { opacity: 1; transform: none; } 74% { opacity: .35; transform: scale(.9); } 78% { opacity: 1; transform: scale(1.18) rotate(-8deg); } 84% { transform: none; } }
@keyframes priceDrop { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(2.5px) scaleY(.94); } 60% { transform: translateY(-1px); } }
@keyframes priceFlame { 0%, 100% { transform: scale(1, 1) rotate(0deg); } 30% { transform: scale(.94, 1.08) rotate(-4deg); } 60% { transform: scale(1.04, .95) rotate(3deg); } }
.price.is-in .price__amount [data-count] { display: inline-block; animation: pricePop .6s 1.15s var(--ease-out) both; }
@keyframes pricePop { 0% { transform: none; } 45% { transform: translateY(-6px) scale(1.06); } 100% { transform: none; } }
/* the featured card breathes a little light */
.price--featured { animation: priceGlow 3.6s ease-in-out infinite; }
@keyframes priceGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 179, 1, 0); } 50% { box-shadow: 0 18px 50px -22px rgba(245, 179, 1, .55); } }
@media (prefers-reduced-motion: reduce) {
  .price::before, .price .price__tag .ic, .price--featured, .price.is-in .price__amount [data-count] { animation: none; }
}
.prices__foot { margin-top: 28px; text-align: center; color: var(--ink-3); font-size: .95rem; }
.prices__foot a { font-weight: 600; }

/* ---------- Process (dark) ---------- */
.section--dark { background: var(--navy); color: #fff; overflow: clip; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.section--dark::after { content: ""; position: absolute; width: 700px; height: 700px; left: -260px; bottom: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(11,95,215,.45), transparent 65%); pointer-events: none; }
.section--dark .container { position: relative; z-index: 1; }
.section--dark .section__head h2 { color: #fff; }

.steps-wrap { position: relative; }
.steps { display: grid; gap: 36px; position: relative; padding-left: 64px; counter-reset: s; }
.steps__rail { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.steps__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--elec), var(--water) 40%, var(--gas) 72%, #2FD18F); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform 120ms linear; }
/* each step takes a supply colour: luz, agua, gas, and green for the finished boletín */
.step { position: relative; --c: var(--elec); --on: var(--navy); }
.step:nth-child(2) { --c: var(--water); --on: #fff; }
.step:nth-child(3) { --c: var(--gas); --on: #fff; }
.step:nth-child(4) { --c: #2FD18F; --on: var(--navy); }
.step__num {
  position: absolute; left: -64px; top: -4px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-2); border: 1.5px solid rgba(255,255,255,.18); font-weight: 600; font-size: 1.1rem; color: rgba(255, 255, 255, .5);
  transition: background-color 400ms ease, border-color 400ms ease, color 400ms ease, box-shadow 500ms ease;
}
.step__num > span { display: inline-block; }
.step__ic { display: none; }
.step h3 { font-size: 1.2rem; font-weight: 600; color: #fff; }
.step p { margin-top: 8px; color: #B5C3D8; }
.step h3, .step p { transition: opacity 500ms ease, translate 600ms var(--ease-out); }

/* lit by the scroll: the circle pops and fills with its colour, a ring goes out, the digit rises into place,
   the current step keeps breathing, and its text comes up from dim */
#proceso:not([data-hours]) .step.is-lit .step__num {
  background: var(--c); border-color: var(--c); color: var(--on); transform: scale(1.08);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent), 0 0 30px color-mix(in srgb, var(--c) 60%, transparent);
  animation: numPop 750ms cubic-bezier(.3, 1.6, .5, 1);
}
#proceso:not([data-hours]) .step.is-lit .step__num > span { animation: digitUp 650ms var(--ease-out); }
#proceso:not([data-hours]) .step__num::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; pointer-events: none;
}
#proceso:not([data-hours]) .step.is-lit .step__num::after { animation: numRing 1.2s var(--ease-out); }
#proceso:not([data-hours]) .step__num::before {
  content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent), transparent 68%);
}
#proceso:not([data-hours]) .step.is-lit:not(:has(+ .step.is-lit)) .step__num::before { animation: numGlow 2.4s ease-in-out infinite; }
html.js #proceso:not([data-hours]) .step:not(.is-lit) :is(h3, p) { opacity: .38; translate: 12px 0; }
@keyframes numPop { 0% { transform: scale(.7); } 55% { transform: scale(1.28); } 100% { transform: scale(1.08); } }
@keyframes digitUp { from { opacity: 0; transform: translateY(80%); } to { opacity: 1; transform: none; } }
@keyframes numRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.3); } }
@keyframes numGlow { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; padding-left: 0; padding-top: 76px; }
  .steps__rail { left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 2px; }
  .steps__fill { background: linear-gradient(90deg, var(--elec), var(--water) 40%, var(--gas) 72%, #2FD18F); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .step__num { left: 0; top: -76px; }
}

/* Desktop: the steps become panels that slide sideways while the stage holds (motion.js sets data-hours) */
#proceso[data-hours] .steps-wrap { height: calc(100svh + (var(--panels, 4) - 1) * 80svh); }
#proceso[data-hours] .steps-stage {
  position: sticky; top: 0; height: 100svh; display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 12px) 32px; overflow: clip; container-type: inline-size;
}
#proceso[data-hours] .steps__rail { display: none; }
#proceso[data-hours] .steps { display: flex; gap: 24px; width: max-content; height: 100%; max-height: 600px; padding: 0; }
#proceso[data-hours] .step {
  flex: 0 0 100cqw; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto auto; column-gap: 32px;
  padding: clamp(36px, 4.4cqw, 64px); border-radius: var(--r-xl); overflow: clip;
  background: var(--navy-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
#proceso[data-hours] .step__num {
  position: static; grid-area: 1 / 1; align-self: start; justify-self: start; display: block; width: auto; height: auto;
  border: 0; border-radius: 0; background: none; transform: none;
  font-size: clamp(7rem, 17cqw, 14rem); font-weight: 600; letter-spacing: -.042em; line-height: .8; color: var(--elec);
}
#proceso[data-hours] .step__num::before { content: "0"; }
#proceso[data-hours] .step__ic {
  display: block; grid-area: 1 / 2; align-self: start; width: clamp(88px, 10cqw, 132px); height: auto; aspect-ratio: 1;
  padding: clamp(22px, 2.6cqw, 34px); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; stroke-width: 1.6;
}
#proceso[data-hours] .step h3 { grid-column: 1 / -1; font-size: clamp(2rem, 3.6cqw, 3.2rem); letter-spacing: -.021em; line-height: 1.08; }
#proceso[data-hours] .step p { grid-column: 1 / -1; max-width: 40ch; margin-top: 14px; font-size: 1.15rem; color: rgba(255, 255, 255, .78); }
#proceso[data-hours] .step:nth-child(2) { background: var(--primary); }
#proceso[data-hours] .step:nth-child(2) .step__num { color: #fff; }
#proceso[data-hours] .step:nth-child(3) { background: #0A4F8F; }
#proceso[data-hours] .step:nth-child(3) .step__num { color: #FF9A5C; }
#proceso[data-hours] .step:nth-child(4) { background: #fff; color: var(--ink); }
#proceso[data-hours] .step:nth-child(4) h3 { color: var(--ink); }
#proceso[data-hours] .step:nth-child(4) p { color: var(--ink-2); }
#proceso[data-hours] .step:nth-child(4) .step__num { color: var(--primary); }
#proceso[data-hours] .step:nth-child(4) .step__ic { background: var(--primary-soft); color: var(--primary); }
#proceso[data-hours] .stats { margin-top: 24px; }
/* the step's photo: desktop only. In the sliding panels it fills the right half, the number and the text
   take the left; in the still grid (reduced motion) it sits on top of each step */
.step__media { display: none; }
@media (min-width: 1024px) {
  .step__media { display: block; overflow: clip; aspect-ratio: 4 / 3; margin-bottom: 18px; border-radius: 18px; background: var(--navy-2); }
  .step__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
  #proceso[data-hours] .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  #proceso[data-hours] .step__ic { display: none; }
  #proceso[data-hours] .step h3, #proceso[data-hours] .step p { grid-column: 1; }
  #proceso[data-hours] .step__media {
    grid-column: 2; grid-row: 1 / -1; aspect-ratio: auto; height: 100%; min-height: 0; margin: 0;
    border-radius: calc(var(--r-xl) - 10px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
  }
  #proceso[data-hours] .step:nth-child(4) .step__media { box-shadow: 0 30px 60px -30px rgba(11, 27, 51, .35); }
}

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 72px; border-radius: var(--r-lg); overflow: hidden; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.stats li { padding: 28px 20px; background: var(--navy); }
.stats strong { display: block; white-space: nowrap; font-size: clamp(2rem, 2.5vw + 1rem, 3rem); font-weight: 600; letter-spacing: -.024em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats li > span { display: block; margin-top: 8px; color: #B5C3D8; font-size: .95rem; }
.stats li:nth-child(1) strong { color: var(--elec); }
.stats li:nth-child(2) strong { color: #6EC1FF; }
.stats li:nth-child(3) strong { color: #FF9A5C; }
.stats li:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd one out fills its row */
@media (min-width: 960px) { .stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; } .stats li { padding: 36px 32px; } .stats li:last-child:nth-child(odd) { grid-column: auto; } }

/* ---------- Audience ---------- */
/* the audience and case cards come in from the sides (motion.js): clipped so they never widen the page on phones */
.section--audience, .section--cases { overflow-x: clip; }
.audience { display: grid; gap: 14px; }
@media (min-width: 640px) { .audience { grid-template-columns: 1fr 1fr; } }
.audience li {
  display: flex; gap: 16px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: translate var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), opacity var(--t-slow) var(--ease);
}
@media (hover: hover) { .audience li:hover { translate: 0 -4px; box-shadow: var(--sh-2); } }
.audience .ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.audience h3 { font-size: 1.1rem; font-weight: 600; }
.audience p { margin-top: 6px; color: var(--ink-2); font-size: .95rem; }

/* ---------- Testimonials (port of "unique-testimonial") ---------- */
.reviews { background: var(--surface); border-block: 1px solid var(--line); }
.rating {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-top: 22px;
  padding: 10px 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
  color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: border-color var(--t-fast) ease, transform var(--t-med) var(--ease);
}
.rating strong { color: var(--ink); font-size: 1.15rem; font-weight: 600; }
.rating:hover { border-color: var(--line-2); transform: translateY(-1px); }
.rating__stars, .testimonial__stars { display: inline-flex; gap: 2px; color: var(--elec); }
.rating__stars .ic, .testimonial__stars .ic { width: 18px; height: 18px; fill: currentColor; stroke: none; }

.testimonial { display: flex; flex-direction: column; align-items: center; gap: 36px; padding-top: 8px; }
.testimonial__quote-wrap { position: relative; width: 100%; max-width: 680px; padding: 0 12px; }
.testimonial__mark { position: absolute; font-family: Georgia, "Times New Roman", serif; font-size: 7rem; line-height: 1; color: rgba(11, 95, 215, .1); pointer-events: none; user-select: none; }
.testimonial__mark--open { left: -10px; top: -44px; }
.testimonial__mark--close { right: -10px; bottom: -78px; }
@media (min-width: 768px) { .testimonial__mark--open { left: -36px; } .testimonial__mark--close { right: -36px; } }
@media (max-width: 767px) { .testimonial__mark { font-size: 5rem; } .testimonial__mark--open { left: -4px; top: -40px; } .testimonial__mark--close { right: -4px; bottom: -96px; } }

/* every quote sits in the same grid cell: the box keeps the tallest height, so switching never shifts the layout */
.testimonial__quotes, .testimonial__roles { display: grid; }
.testimonial__quote, .testimonial__role { grid-area: 1 / 1; margin: 0; }
.testimonial__quote p {
  margin: 0; text-align: center; color: var(--ink);
  font-size: clamp(1.3rem, 1.1vw + 1rem, 1.85rem); font-weight: 400; line-height: 1.45; letter-spacing: -.012em; text-wrap: balance;
}
.testimonial__quote {
  opacity: 0; filter: blur(6px); transform: scale(.98); visibility: hidden;
  transition: opacity 200ms ease-in, filter 200ms ease-in, transform 200ms ease-in, visibility 0s linear 200ms;
}
.testimonial__quote.is-active {
  opacity: 1; filter: blur(0); transform: none; visibility: visible;
  transition: opacity 450ms var(--ease-out) 180ms, filter 450ms var(--ease-out) 180ms, transform 450ms var(--ease-out) 180ms, visibility 0s linear 0s;
}

.testimonial__meta { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 8px; }
.testimonial__role {
  text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
  opacity: 0; transform: translateY(8px); transition: opacity 250ms ease-in, transform 250ms ease-in;
}
.testimonial__role.is-active { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out) 200ms, transform 500ms var(--ease-out) 200ms; }

.testimonial__people { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.person {
  --tone: var(--primary); --tone-soft: var(--primary-soft); --tone-ink: var(--primary-ink);
  display: inline-flex; align-items: center; min-height: 48px; padding: 4px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink); font-weight: 600; font-size: .9rem;
  transition: background-color 500ms cubic-bezier(.4, 0, .2, 1), padding 500ms cubic-bezier(.4, 0, .2, 1), box-shadow 500ms cubic-bezier(.4, 0, .2, 1), color 300ms ease;
}
.person[data-tone="elec"] { --tone: var(--elec); --tone-soft: var(--elec-soft); --tone-ink: var(--elec-ink); }
.person[data-tone="water"] { --tone: var(--water); --tone-soft: var(--water-soft); --tone-ink: var(--water-ink); }
.person[data-tone="gas"] { --tone: var(--gas); --tone-soft: var(--gas-soft); --tone-ink: var(--gas-ink); }
.person__avatar {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tone-soft); color: var(--tone-ink); font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 0 0 0 transparent; transition: box-shadow 500ms cubic-bezier(.4, 0, .2, 1), transform 400ms var(--ease);
}
.person__name { display: grid; grid-template-columns: 0fr; opacity: 0; margin-left: 0; transition: grid-template-columns 500ms cubic-bezier(.4, 0, .2, 1), opacity 400ms ease, margin 500ms cubic-bezier(.4, 0, .2, 1); }
.person__name > span { overflow: hidden; white-space: nowrap; }
.person.is-active { background: var(--ink); color: #fff; padding: 4px 18px 4px 4px; box-shadow: 0 10px 24px -10px rgba(11, 27, 51, .55); }
.person.is-active .person__avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.person.is-active .person__name { grid-template-columns: 1fr; opacity: 1; margin-left: 10px; }
@media (hover: hover) {
  .person:not(.is-active):hover { background: var(--tint); padding: 4px 18px 4px 4px; }
  .person:not(.is-active):hover .person__name { grid-template-columns: 1fr; opacity: 1; margin-left: 10px; }
  .person:not(.is-active):hover .person__avatar { transform: scale(1.05); }
}
.reviews__note { margin-top: 40px; text-align: center; font-size: .85rem; color: var(--ink-3); }

.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; }

/* ---------- Map ---------- */
.town-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.town-list li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.town-list__more { background: transparent !important; border-style: dashed !important; }

/* blue sections: the service area shares the contact's colour */
.section--blue { background: linear-gradient(160deg, #0A4FB5 0%, var(--primary) 45%, #1477E0 100%); color: #fff; overflow: clip; }
.section--blue .eyebrow { color: #CFE3FF; }
.section--blue h2 { color: #fff; }
.section--blue .section__lead { color: #D6E6FB; }
.section--blue .town-list li { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.section--blue .town-list__more { border-color: rgba(255, 255, 255, .5) !important; color: #D6E6FB !important; }
.section--blue :focus-visible { outline-color: #fff; }

/* ---------- The service area map, night style ----------
   Navy, a faint grid, Reus glowing in the middle; the routes to each town carry the supply colours
   (luz, agua, gas) and keep flowing outwards (.is-flowing, set by motion.js) */
.map { margin: 0; padding: 18px; overflow: clip; border-radius: var(--r-xl); background: var(--navy); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(3, 12, 30, .8); }
.map > svg { width: 100%; height: auto; border-radius: var(--r-lg); background:
  radial-gradient(42% 46% at 54.5% 49%, rgba(11, 95, 215, .38), rgba(11, 95, 215, 0) 70%),
  linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 32px 32px, #0E2240; }
.map__sea { fill: #0A1A33; }
.map__coast { fill: none; stroke: #3D8EEA; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(61, 142, 234, .7)); }
.map__sea-label { fill: #4F7FBF; font-size: 13px; font-weight: 600; font-style: italic; text-anchor: middle; letter-spacing: .02em; }
.map__links path { --c: var(--elec); fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--c)); opacity: .9; }
/* each route takes its town's colour: Tarragona, Valls, Salou, Cambrils, Vila-seca, Montbrió, Torredembarra, Tortosa */
.map__links path:nth-child(2), .map__links path:nth-child(4), .map__links path:nth-child(8) { --c: #4FB3FF; }
.map__links path:nth-child(5), .map__links path:nth-child(6) { --c: #FF8A3D; }
.map .map__links path { stroke-dasharray: 5 7; }
.map.is-flowing .map__links path { animation: mapFlow 1.4s linear infinite; }
@keyframes mapFlow { to { stroke-dashoffset: -24; } }
.map__towns g { --c: var(--elec); }
.map__towns g:nth-child(2), .map__towns g:nth-child(5), .map__towns g:nth-child(8) { --c: #4FB3FF; }
.map__towns g:nth-child(3), .map__towns g:nth-child(6) { --c: #FF8A3D; }
.map__towns circle { fill: #0E2240; stroke: var(--c); stroke-width: 2.5; filter: drop-shadow(0 0 5px var(--c)); transform-box: fill-box; transform-origin: center; }
.map__towns text { fill: #fff; font-size: 14px; font-weight: 600; }
.map__towns text.sm { font-size: 12.5px; font-weight: 600; fill: #B5C3D8; }
.map__hq circle:first-child { fill: var(--primary); filter: drop-shadow(0 0 10px rgba(79, 179, 255, .9)); }
.map__hq .hq { fill: #8EC0FF; font-size: 18px; font-weight: 600; }
.map__rings circle { fill: none; stroke: #8EC0FF; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.map.is-in .map__rings circle { animation: ring 3.6s var(--ease-out) infinite; }
.map.is-in .map__rings circle:nth-child(2) { animation-delay: 1.2s; }
.map.is-in .map__rings circle:nth-child(3) { animation-delay: 2.4s; }
@keyframes ring { 0% { opacity: .6; transform: scale(.3); } 100% { opacity: 0; transform: scale(3.4); } }
.map__towns g { opacity: 0; transform: translateY(6px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.map.is-in .map__towns g { opacity: 1; transform: none; }
.map.is-in .map__towns g:nth-child(2) { transition-delay: 80ms; }
.map.is-in .map__towns g:nth-child(3) { transition-delay: 160ms; }
.map.is-in .map__towns g:nth-child(4) { transition-delay: 240ms; }
.map.is-in .map__towns g:nth-child(5) { transition-delay: 320ms; }
.map.is-in .map__towns g:nth-child(6) { transition-delay: 400ms; }
.map.is-in .map__towns g:nth-child(7) { transition-delay: 480ms; }
.map.is-in .map__towns g:nth-child(8) { transition-delay: 560ms; }
/* with motion the map is shown finished, with no fade-in of the towns */
.map.is-driven .map__towns g { opacity: 1; transform: none; transition: none; }
.map figcaption { display: flex; align-items: center; gap: 8px; justify-content: center; padding-top: 16px; color: #DCE6F5; font-weight: 600; font-size: .95rem; text-align: center; }
.map figcaption .ic { color: #8EC0FF; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t-med) ease, box-shadow var(--t-med) ease; }
.faq__item[open] { border-color: var(--line-2); box-shadow: var(--sh-2); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 20px 16px 24px;
  font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; border-radius: var(--r-md);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ic { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--tint); color: var(--primary); transition: transform var(--t-med) var(--ease), background-color var(--t-med) ease, color var(--t-med) ease; }
.faq__item.is-open summary .ic, html:not(.js) .faq__item[open] summary .ic { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq__body { display: grid; grid-template-rows: 1fr; }
html.js .faq__body { grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease); }
html.js .faq__item.is-open .faq__body { grid-template-rows: 1fr; }
.faq__body > div { overflow: hidden; }
.faq__body p { padding: 0 24px 22px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, #0A4FB5 0%, var(--primary) 45%, #1477E0 100%); color: #fff; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%); pointer-events: none; }
.contact__inner { position: relative; display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .contact__inner { grid-template-columns: 1fr 1fr; gap: 64px; } }
.contact .eyebrow--light { color: #CFE3FF; }
.contact h2 { margin-top: 10px; font-size: clamp(2.25rem, 3.4vw + 1rem, 3.5rem); font-weight: 600; line-height: 1.07; letter-spacing: -.02em; color: #fff; }
.contact__lead { margin-top: 16px; font-size: 1.1rem; color: #DCE9FF; max-width: 32em; }
.contact__list { display: grid; gap: 10px; margin-top: 32px; }
.contact__list a {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; font-weight: 600;
  transition: background-color var(--t-fast) ease, transform var(--t-med) var(--ease);
  overflow-wrap: anywhere;
}
@media (hover: hover) { .contact__list a:hover { background: rgba(255,255,255,.16); transform: translateX(4px); } }
.contact__list small { display: block; font-weight: 600; font-size: .8rem; color: #CFE3FF; }
.contact__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--primary); }
.contact :focus-visible { outline-color: #fff; }

.form { padding: 28px 22px; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(3, 20, 60, .55); }
@media (min-width: 640px) { .form { padding: 36px; } }
.form :focus-visible { outline-color: var(--primary); }
.form__title { font-size: 1.4rem; font-weight: 600; margin-bottom: 20px; }
.form__summary { margin-bottom: 16px; padding: 12px 16px; border-radius: var(--r-sm); background: #FDECEC; color: var(--danger); font-weight: 600; font-size: .95rem; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: .925rem; }
.field label span { color: var(--danger); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: var(--bg); font-size: 1rem;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, background-color var(--t-fast) ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2347566B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(11, 95, 215, .14); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; background: #FFF8F8 !important; }
.field__error { color: var(--danger); font-size: .875rem; font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 4px 12px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--primary); }
.field--check label { font-weight: 500; color: var(--ink-2); }
.field--check .field__error { grid-column: 2; }
.form__actions { display: grid; gap: 4px; justify-items: center; margin-top: 8px; }
.form__hint { margin-top: 8px; font-size: .85rem; color: var(--ink-3); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #B5C3D8; padding: 72px 0 0; }
.footer__inner { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer__inner { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand p { margin-top: 16px; max-width: 30em; }
.footer h2 { color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: -.005em; margin-bottom: 14px; }
.footer__col li { padding: 6px 0; }
.footer a { color: #DCE6F5; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer :focus-visible { outline-color: #8EC0FF; }
.footer { overflow: clip; }
.footer__mark { position: relative; display: flex; justify-content: center; padding: 8px 0 clamp(20px, 3vw, 40px); font-size: 12.65vw; font-weight: 700; letter-spacing: -.039em; line-height: .78; user-select: none; }
.footer__mark-a { color: #fff; }
.footer__mark-b { color: var(--primary); }
.footer__mark-bar { position: absolute; left: 2.5vw; right: 2.5vw; bottom: clamp(8px, 1.4vw, 20px); height: max(4px, .5vw); border-radius: 99px; background: linear-gradient(90deg, var(--elec), var(--water), var(--gas)); transform-origin: 0 50%; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; }
.footer__legal ul { display: flex; gap: 20px; }

/* ---------- Mobile action bar ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translateY(110%); transition: transform 420ms var(--ease-out);
}
.actionbar.is-visible { transform: none; }
.actionbar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 16px; font-weight: 600; text-decoration: none; }
.actionbar__btn--wa { --bg: linear-gradient(180deg, #179A55, #128C4A 60%, #0F7A40); --lift: 0 10px 24px -10px rgba(18, 140, 74, .6), 0 2px 6px rgba(10, 80, 40, .12); }
@media (max-width: 767px) { body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); } }
@media (min-width: 768px) { .actionbar { display: none; } }

/* ---------- Lusion-style motion helpers (motion.js) ---------- */
/* a word in its mask: room above and below so accents and descenders are not cut */
.w-mask { display: inline-block; overflow: clip; vertical-align: top; padding: .08em 0 .14em; margin: -.08em 0 -.14em; }
.w { display: inline-block; transform-origin: 0 100%; will-change: transform; }
/* the page's ribbon: over each section's background, under its content */
.ribbon { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.section > :not(.ribbon) { position: relative; z-index: 1; }
.ribbon path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ribbon__body { stroke-width: clamp(22px, 3.4vw, 56px); }
/* the pointer's ribbon of light: above the content, under the header and the menu */
.trail { position: fixed; inset: 0; z-index: 35; width: 100vw; height: 100vh; pointer-events: none; }

/* ---------- Scroll reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) ease; transition-delay: calc(var(--stagger, 0) * 70ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
/* cards moved by scroll (motion.js) skip the fade-up: their transform belongs to the scroll */
html.js .is-drifting[data-reveal] { opacity: 1; transform: none; transition: translate var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) ease; }
/* they stay on their own layer before, during and after the move: dropping it as the card lands redraws the card, a visible blink */
html.js .is-drifting, html.js #contact-form { will-change: transform; }
#proceso[data-hours] .step[data-reveal] { opacity: 1; transform: none; transition: none; }
/* a section focused after a keyboard jump needs no ring of its own */
section[tabindex="-1"]:focus { outline: none; }
@media (hover: hover) {
  html.js .case[data-reveal].is-in:hover, html.js .audience li[data-reveal].is-in:hover, html.js .price[data-reveal].is-in:hover { transition-delay: 0s; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .towns__track-wrap { -webkit-mask-image: none; mask-image: none; }
  .towns__track { animation: none !important; flex-wrap: wrap; justify-content: center; }
  .towns__track[aria-hidden="true"] { display: none; }
  .towns__track-wrap { justify-content: center; }
  .map__rings { display: none; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .checklist li { opacity: 1; transform: none; }
  .nv-ico svg, .nv-ico::before, .nv-ico::after { animation: none !important; }
  .btn__ripple { display: none; }
}

/* ---------- Legal pages ---------- */
.legal-header .header__inner { gap: 12px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; transition: color var(--t-fast) ease, background-color var(--t-fast) ease; }
.legal-back .ic { transform: rotate(180deg); transition: transform var(--t-med) var(--ease); }
/* phones: just the arrow, so the brand keeps its room; the words stay for screen readers */
@media (max-width: 479px) { .legal-back { width: 44px; padding: 0; justify-content: center; font-size: 0; } .legal-back .ic { width: 20px; height: 20px; } }
.legal-back:hover { color: var(--ink); background: var(--surface); }
.legal-back:hover .ic { transform: rotate(180deg) translateX(3px); }

.legal-hero { position: relative; overflow: hidden; padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.legal-hero .hero__grid-bg { -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 70% 90% at 80% 0%, #000 10%, transparent 70%); }
.legal-hero .container { position: relative; }
.legal-hero h1 { margin-top: 14px; font-size: clamp(2.2rem, 3vw + 1.2rem, 3.4rem); font-weight: 600; letter-spacing: -.024em; }
.legal-hero p:not(.eyebrow) { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; max-width: 40em; }
.legal-hero p.legal-updated { font-size: .9rem; color: var(--ink-3); }

.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 48px 96px; }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; } }
.legal-toc { display: none; }
@media (min-width: 1024px) {
  .legal-toc { display: block; position: sticky; top: calc(var(--header-h) + 24px); }
  .legal-toc p { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
  .legal-toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); color: var(--ink-2); font-size: .925rem; font-weight: 600; text-decoration: none; transition: color var(--t-fast) ease, border-color var(--t-fast) ease; }
  .legal-toc a:hover, .legal-toc a.is-active { color: var(--primary); border-left-color: var(--primary); }
}

.prose { max-width: 72ch; color: var(--ink-2); font-size: 1.025rem; }
.prose h2 { margin: 48px 0 14px; color: var(--ink); font-size: clamp(1.35rem, .6vw + 1.15rem, 1.6rem); font-weight: 600; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; color: var(--ink); font-size: 1.1rem; font-weight: 600; }
.prose p, .prose ul, .prose table { margin-top: 14px; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li { margin-top: 6px; padding-left: 4px; }
.prose li::marker { color: var(--primary); }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; overflow-wrap: anywhere; }

.data-card { margin-top: 18px; padding: 8px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.data-card dl { margin: 0; }
.data-card div { display: grid; gap: 2px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.data-card div:last-child { border-bottom: 0; }
@media (min-width: 640px) { .data-card div { grid-template-columns: 200px 1fr; } }
.data-card dt { font-weight: 600; color: var(--ink); font-size: .95rem; }
.data-card dd { margin: 0; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; margin-top: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.prose table { width: 100%; min-width: 560px; margin: 0; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--tint); color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

.callout { display: flex; gap: 14px; margin-top: 20px; padding: 18px 20px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--ink); }
.callout .ic { color: var(--primary); margin-top: 3px; }
.callout p { margin: 0; }

.prose ul ul { margin-top: 6px; list-style: circle; }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--tint); color: var(--ink); font-size: .88em; overflow-wrap: anywhere; }
.prose .legal-actions { margin-top: 18px; }
.prose .legal-actions .btn { max-width: 100%; white-space: normal; text-align: center; }
.prose .legal-status { color: var(--ink); font-weight: 600; }
.prose .legal-status[hidden] { display: none; }

mark.todo { padding: 1px 6px; border-radius: 6px; background: #FFF1B8; color: #6B4A00; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Form first-layer privacy notice */
.form__privacy { margin-top: 4px; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font-size: .85rem; line-height: 1.55; color: var(--ink-2); }
.form__privacy strong { color: var(--ink); }

/* ---------- Liquid glass for every white control ----------
   The recipe of .btn--ghost: clear water over the page, a bright rim, a specular top and a meniscus
   that follows the pointer (main.js / legal.js set --mx and --my). */
.glass {
  isolation: isolate; overflow: hidden; border: 0;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px) saturate(1.8) brightness(1.06); backdrop-filter: blur(6px) saturate(1.8) brightness(1.06);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .95), inset 0 -1px 1px rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .55),
    inset 0 0 0 1.5px rgba(11, 27, 51, .06), inset 0 -6px 14px -6px rgba(0, 162, 255, .18), inset 0 8px 14px -8px rgba(255, 255, 255, .7),
    0 10px 24px -14px rgba(0, 40, 90, .35), 0 2px 6px rgba(0, 40, 90, .05);
}
.glass::before, .glass::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.glass::before {
  background:
    radial-gradient(120% 140% at 30% -20%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 55%),
    radial-gradient(90% 60% at 70% 120%, rgba(126, 232, 255, .22), rgba(126, 232, 255, 0) 60%);
}
.glass::after {
  background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), rgba(126, 200, 255, .55), transparent 62%);
  opacity: 0; transition: opacity var(--t-med) ease;
}
@media (hover: hover) { .glass:hover::after { opacity: .45; } }
.menu-btn.glass, .legal-back.glass, .lang__btn { position: relative; }
/* the selected-tab marker: clear water on the grey track, read by its rim, its light and its shadow */
.tabs__indicator.glass { background: rgba(255, 255, 255, .22); }
/* the icon tiles in the tabs are glass drops too */
.tab__icon { position: relative; isolation: isolate; overflow: hidden; background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(4px) saturate(1.6); backdrop-filter: blur(4px) saturate(1.6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .6), inset 0 -4px 8px -4px rgba(0, 162, 255, .2), 0 4px 10px -6px rgba(0, 40, 90, .35); }
.tab__icon::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(120% 120% at 30% -10%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 55%); }
.legal-back.glass:hover { background: rgba(255, 255, 255, .78); }

/* ---------- Language menu ---------- */
.lang { position: relative; }
.lang > summary { list-style: none; }
.lang > summary::-webkit-details-marker { display: none; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 13px 0 11px; border-radius: 999px;
  color: var(--ink); font-size: .875rem; font-weight: 600; letter-spacing: .02em; cursor: pointer; user-select: none;
}
.lang__btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.flag { flex: none; width: 22px; height: 15px; border-radius: 3.5px; box-shadow: 0 0 0 1px rgba(11, 27, 51, .14), 0 1px 2px rgba(11, 27, 51, .15); }
.lang__chev { width: 7px; height: 7px; margin: -3px 1px 0 1px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; rotate: 45deg; opacity: .7; transition: rotate var(--t-med) var(--ease), margin var(--t-med) var(--ease); }
.lang[open] .lang__chev { rotate: 225deg; margin-top: 3px; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; display: grid; gap: 2px; min-width: 184px; padding: 6px; border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(11, 27, 51, .08), 0 24px 50px -18px rgba(0, 40, 90, .45), 0 4px 12px rgba(0, 40, 90, .08);
  transform-origin: 85% 0; animation: langIn 320ms cubic-bezier(.3, 1.4, .5, 1);
}
@keyframes langIn { from { opacity: 0; transform: translateY(-6px) scale(.94); } to { opacity: 1; transform: none; } }
.lang__opt {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 14px;
  color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) ease;
}
.lang__opt .flag { width: 24px; height: 16px; }
@media (hover: hover) { .lang__opt:hover { background: rgba(255, 255, 255, .85); } }
.lang__opt[aria-current="true"] { background: rgba(11, 95, 215, .09); color: var(--primary); font-weight: 600; }
.lang__opt[aria-current="true"]::after { content: ""; width: 9px; height: 5px; margin-left: auto; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: -45deg; translate: 0 -2px; }
@media (max-width: 479px) { .lang__btn { padding: 0 10px 0 9px; gap: 6px; } .lang__chev { display: none; } }

/* ---------- Between the home page and the online request (transicion.js) ----------
   Leaving: yellow, blue, orange and then the navy with the logo sweep up over the page. Arriving: the page
   starts under them and they lift off it, the navy first. */
.page-wipe { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.page-wipe span { position: absolute; inset: 0; transform: translateY(100%); }
.page-wipe span:nth-child(1) { background: var(--elec); }
.page-wipe span:nth-child(2) { background: var(--water); }
.page-wipe span:nth-child(3) { background: var(--gas); }
.page-wipe span:nth-child(4) { display: grid; place-items: center; background: var(--navy); }
.page-wipe img { width: 76px; height: auto; opacity: 0; }
html.is-leaving .page-wipe { pointer-events: auto; }
html.is-leaving .page-wipe span { animation: wipeCover .62s cubic-bezier(.7, 0, .25, 1) forwards; }
html.is-leaving .page-wipe span:nth-child(2) { animation-delay: .05s; }
html.is-leaving .page-wipe span:nth-child(3) { animation-delay: .1s; }
html.is-leaving .page-wipe span:nth-child(4) { animation-delay: .15s; }
html.is-leaving .page-wipe img { animation: wipeLogoIn .35s .5s ease forwards; }
html.is-arriving .page-wipe span { transform: none; animation: wipeLift .75s cubic-bezier(.7, 0, .25, 1) forwards; }
html.is-arriving .page-wipe span:nth-child(4) { animation-delay: .12s; }
html.is-arriving .page-wipe span:nth-child(3) { animation-delay: .2s; }
html.is-arriving .page-wipe span:nth-child(2) { animation-delay: .26s; }
html.is-arriving .page-wipe span:nth-child(1) { animation-delay: .32s; }
html.is-arriving .page-wipe img { opacity: 1; animation: wipeLogoOut .3s ease forwards; }
@keyframes wipeCover { from { transform: translateY(100%); } to { transform: none; } }
@keyframes wipeLift { from { transform: none; } to { transform: translateY(-100%); } }
@keyframes wipeLogoIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes wipeLogoOut { to { opacity: 0; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .page-wipe { display: none; } }

/* Phones: the number sits under the name, beside the logo. Sizes follow the screen, so a phone set to large text or
   display zoom keeps the header in one piece */
@media (max-width: 639px) {
  .header__inner { position: relative; gap: 8px; }
  .header .brand { min-width: 0; }
  .header .brand__name { min-width: 0; overflow: hidden; white-space: nowrap; font-size: min(1.15rem, 4.9vw); transform: translateY(-9px); }
  .header__phone { display: inline-flex; position: absolute; top: 50%; left: 72px; gap: 4px; min-height: 26px; padding: 0; font-size: min(.875rem, 3.8vw); }
  .header__phone .ic { width: 14px; height: 14px; }
  .lang__code { font-size: min(.875rem, 3.7vw); }
}
@media (max-width: 345px) { .lang__code { display: none; } }

/* the second section on phones: one column that can't grow past the screen, so the air conditioner stays centred */
@media (max-width: 899px) {
  .hero__about { grid-template-columns: minmax(0, 1fr); }
  .night__ribbon { flex-wrap: wrap; font-size: min(2.4rem, 11.6vw); }
}

/* the service tabs on phones: a long button wraps instead of pushing the whole page wider than the screen */
@media (max-width: 767px) {
  .tabs__panels, .panel { grid-template-columns: minmax(0, 1fr); }
  .panel__intro .btn { max-width: 100%; white-space: normal; text-align: center; }
}
@media (max-width: 479px) { .tabs__panels { padding-inline: 8px; } }

/* words that fill a fixed space keep their size when the browser is set to enlarge text */
.hero__word, .header .brand__name, .header__phone, .lang__code { -webkit-text-size-adjust: none; text-size-adjust: none; }
@media (max-width: 899px) and (max-height: 640px) { .motion-hero .night__ribbon { display: none; } }
.prose { overflow-wrap: break-word; }
.prose a, .prose dd { overflow-wrap: anywhere; }

/* the footage is on its way: something moves, so the page never looks stuck */
.hero__stage.is-waiting .hero__film::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: filmWait .8s linear infinite;
}
@keyframes filmWait { to { transform: rotate(360deg); } }

/* once the footage has moved, a pull at the top rewinds it instead of reloading the page */
html.film-moved { overscroll-behavior-y: none; }
