/* ==========================================================================
   JCMS Construction — Holiday Lighting landing
   Base: modernist.css (brand tokens + components). This file adds the
   page layout and the festive "night" accent layer.
   ========================================================================== */

:root {
  /* Festive night layer */
  --night-950: #1a191b;
  --night-900: #262427;
  --night-800: #312f32;
  --night-line: rgba(243, 242, 242, .18);
  --gold-200: #ffe7b3;
  --gold-400: #ffcb6b;
  --gold-500: #f5b13d;
  --gold-glow: rgba(255, 190, 90, .55);

  --paper: #f3f2f2;   /* light text on dark areas (fixed in both themes) */
  --ink: #201e1d;     /* fixed dark (footer) */
  --field-bg: #fff;

  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 56px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-size: 16px; text-wrap: pretty; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: var(--color-accent-700); }
a:not(.btn):hover { color: var(--color-accent-600); }
img { height: auto; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--color-text); color: var(--color-bg); padding: 12px 16px; }
.skip:focus { left: 16px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* — Buttons (brand .btn + glow) — */
.btn { min-height: 48px; padding: 12px 18px; font-size: 15px; gap: 10px; justify-content: flex-start; text-align: left;
  transition: background .2s, color .2s, box-shadow .3s var(--ease), transform .2s var(--ease); }
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-primary:hover, .nav .btn-primary { color: var(--paper); }
.btn-primary:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 22%, transparent), 0 10px 32px -6px color-mix(in srgb, var(--color-accent) 75%, transparent); }
.btn-secondary { border-width: 2px; border-color: var(--color-text); color: var(--color-text); }
.btn-gold { background: var(--gold-400); color: var(--night-950); }
.btn-gold:hover { background: var(--gold-200); color: var(--night-950); box-shadow: 0 0 0 3px rgba(255, 203, 107, .25), 0 0 36px rgba(255, 190, 90, .55); }
.btn-light { border: 2px solid var(--paper); color: var(--paper); }
.btn-light:hover { background: rgba(243, 242, 242, .1); color: var(--paper); box-shadow: 0 0 28px rgba(255, 220, 160, .25); }
.btn-lg { min-height: 56px; padding-inline: 22px; font-size: 16px; }

/* — Header — */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-bg); border-bottom: 2px solid var(--color-text); }
.site-header .nav { max-width: var(--wrap); margin: 0 auto; min-height: var(--header-h); padding: 10px var(--gutter); border: 0; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--color-text) !important; }
.logo .logo-dog { height: 54px; width: auto; margin-block: -4px; }
/* Logo lockup: JCMS + skyline on one line, HOLIDAY LIGHTING underneath */
.logo .logo-word { display: block; }
.logo-word .lw-name { grid-column: 1; line-height: .9; }
.logo-word small { grid-column: 1 / -1; }
.logo-word { font-family: var(--font-heading); font-weight: 800; font-size: 19px; line-height: 1; letter-spacing: -.01em; }
.logo-word small { display: block; margin-top: 3px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-700); }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav .nav-links a { display: block; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.nav .nav-links a.is-active { color: var(--color-accent); }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 0; justify-content: center; border: 2px solid var(--color-text); }
.menu-toggle .icon-x { display: none; }
.menu-toggle[aria-expanded="true"] .icon-x { display: block; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
@media (max-width: 959px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 4px var(--gutter) 20px; background: var(--color-bg); border-bottom: 2px solid var(--color-text); }
  .nav-links.open { display: flex; animation: drop .3s var(--ease); }
  .nav .nav-links a { padding: 16px 0; font-size: 18px; border-bottom: 2px solid var(--color-divider); }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 479px) { .nav .btn-quote { display: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* — Hero — */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: calc(100svh - var(--header-h)); background: var(--night-950); color: var(--paper); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#heroCanvas { z-index: -3; }
.hero-scrim { position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(to top, rgba(30,29,31,.9) 0%, rgba(30,29,31,.5) 36%, rgba(30,29,31,0) 66%),
              linear-gradient(to right, rgba(30,29,31,.6) 0%, rgba(30,29,31,0) 58%); }
#snowCanvas { z-index: -1; pointer-events: none; }
.hero-content { width: 100%; display: flex; flex-direction: column; gap: 22px; padding-block: 56px 48px; }
.hero h1 { margin: 0; font-size: clamp(40px, 8vw, 92px); line-height: .95; letter-spacing: -.03em; max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--gold-400); text-shadow: 0 0 28px var(--gold-glow); }
.hero-sub { margin: 0; max-width: 44ch; font-size: clamp(17px, 2.1vw, 20px); line-height: 1.5; color: #e7e4e2; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 18px 0 0; list-style: none; border-top: 2px solid var(--night-line); font-size: 14px; color: #d6d2cf; }
.hero-note li { display: flex; align-items: center; gap: 8px; }
.hero-note .icon { width: 16px; height: 16px; color: var(--gold-400); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.kicker::before { content: ""; width: 10px; height: 10px; background: var(--gold-400); box-shadow: 0 0 14px var(--gold-glow); }

/* — Sections — */
.section { padding-block: clamp(64px, 9vw, 120px); border-top: 2px solid var(--color-text); }
.section-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 0; font-size: clamp(36px, 5.6vw, 64px); line-height: 1; letter-spacing: -.025em; max-width: 15ch; }
.section-head p { margin: 0; max-width: 46ch; font-size: 17px; color: color-mix(in srgb, var(--color-text) 80%, transparent); }
.eyebrow { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent-700); }

/* — Services — */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0; border-top: 2px solid var(--color-text); border-left: 2px solid var(--color-text); }
.svc { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 320px; padding: 26px;
  border-right: 2px solid var(--color-text); border-bottom: 2px solid var(--color-text); background: var(--color-bg);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s var(--ease), background .3s, color .3s; }
.svc::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(236, 48, 19, .22), transparent 60%); }
.svc::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--color-accent); pointer-events: none;
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.svc-icon .icon { transition: transform .45s var(--ease); }
.svc-link .icon { transition: transform .3s var(--ease); }
.svc-num { font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: var(--color-accent); font-feature-settings: "tnum" 1; }
.svc-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid currentColor; transition: color .3s, box-shadow .3s, border-color .3s; }
.svc-icon .icon { width: 26px; height: 26px; }
.svc h3 { margin: auto 0 0; font-size: 24px; line-height: 1.1; }
.svc p { margin: 0; font-size: 15px; color: color-mix(in srgb, currentColor 78%, transparent); }
.svc-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: inherit !important; text-decoration: none; }
/* Hover (mouse) or scroll-into-focus (phones): JCMS black / white / red */
.svc:hover, .svc.is-active { background: var(--ink); color: var(--paper); z-index: 1; }
html[data-theme="dark"] .svc:hover, html[data-theme="dark"] .svc.is-active { background: var(--paper); color: var(--ink); }
.svc:hover::after, .svc.is-active::after { opacity: 1; }
.svc:hover::before, .svc.is-active::before { transform: scaleX(1); }
.svc:hover .svc-icon, .svc.is-active .svc-icon { color: #fff; background: var(--color-accent); border-color: var(--color-accent); box-shadow: 0 0 26px rgba(236, 48, 19, .45); }
.svc:hover .svc-icon .icon, .svc.is-active .svc-icon .icon { transform: scale(1.12) rotate(-6deg); }
.svc:hover .svc-num, .svc.is-active .svc-num { color: var(--color-accent); }
.svc:hover .svc-link .icon, .svc.is-active .svc-link .icon { transform: translateX(5px); }

/* — Visualizer (night layer) — */
.viz { background: var(--night-900); color: var(--paper); border-top-color: var(--night-950); }
.viz .eyebrow { color: var(--gold-400); }
.viz .section-head p { color: #d6d2cf; }
.viz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; border: 2px solid var(--night-line); background: var(--night-950); }
@media (max-width: 959px) { .viz-grid { grid-template-columns: minmax(0, 1fr); } }
.viz-stage { display: flex; flex-direction: column; min-width: 0; }
.viz-toolbar { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--night-line); }
.tool { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 16px; flex: 1 1 auto;
  background: transparent; color: var(--paper); border: 0; border-right: 2px solid var(--night-line); font: 600 14px var(--font-body); cursor: pointer; transition: background .2s, color .2s; }
.tool:hover { background: rgba(243, 242, 242, .08); }
.tool[aria-pressed="true"] { background: var(--gold-400); color: var(--night-950); }
.tool:disabled { opacity: .4; cursor: not-allowed; background: transparent; }
.tool-upload { background: var(--color-accent); }
.tool-upload:hover { background: var(--color-accent-600); }
.tool-upload:focus-within { outline: 2px solid var(--gold-400); outline-offset: -4px; }
.viz-canvas-wrap { position: relative; background: #000; }
#vizCanvas { display: block; width: 100%; max-height: 82vh; aspect-ratio: 16 / 10; }
.viz-canvas-wrap.drawing #vizCanvas { cursor: crosshair; touch-action: none; }
.viz-hint { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 10px 14px; max-width: 44ch;
  background: rgba(26, 25, 27, .86); border-left: 0; font-size: 14px; line-height: 1.4; pointer-events: none; transition: opacity .4s; }
.viz-hint:empty { opacity: 0; }
.viz-hint.is-error { background: var(--color-accent-700); }
.viz-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px; border-top: 2px solid var(--night-line); font-size: 13px; color: #bdb8b5; }
.viz-foot .lock { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.viz-foot .icon { width: 14px; height: 14px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--gold-400); font: 600 13px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.viz-panel { display: flex; flex-direction: column; border-left: 2px solid var(--night-line); }
@media (max-width: 959px) { .viz-panel { border-left: 0; border-top: 2px solid var(--night-line); } }
.ctrl { margin: 0; padding: 18px; border: 0; border-bottom: 2px solid var(--night-line); min-width: 0; }
.ctrl-label { float: left; width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 0; margin-bottom: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #bdb8b5; }
.ctrl-label output { color: var(--paper); letter-spacing: .04em; }
.opts { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 2px solid var(--night-line); cursor: pointer; font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s; }
.opt:hover { border-color: rgba(255, 255, 255, .6); }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt:has(input:checked) { border-color: #fff; background: rgba(255, 255, 255, .1); box-shadow: 0 0 14px rgba(255, 255, 255, .25); }
.opt:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.swatch { display: flex; width: 20px; height: 20px; flex: none; outline: 1px solid rgba(255,255,255,.25); }
.swatch i { flex: 1; }
.ctrl input[type="range"] { clear: both; display: block; width: 100%; height: 32px; margin: 0; accent-color: var(--gold-400); cursor: pointer; }
.power { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 0 16px; cursor: pointer;
  background: transparent; color: var(--paper); border: 2px solid var(--color-accent); font: 800 21px var(--font-heading); text-align: left;
  transition: background .35s, color .35s, border-color .35s, box-shadow .5s; }
.power-knob { width: 44px; height: 44px; display: grid; place-items: center; flex: none; background: var(--color-accent); color: #fff; transition: background .35s, color .35s; }
.power-knob .icon { width: 24px; height: 24px; stroke-width: 2.6; }
.power:hover { box-shadow: 0 0 30px color-mix(in srgb, var(--color-accent) 40%, transparent); }
.power[aria-pressed="true"] { background: #1f9d4c; border-color: #1f9d4c; color: #fff; box-shadow: 0 0 0 4px rgba(37, 211, 102, .18), 0 0 44px rgba(37, 211, 102, .45); }
.power[aria-pressed="true"] .power-knob { background: #fff; color: var(--color-accent); }
.power[aria-pressed="false"] .power-knob { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(236, 48, 19, .6); } 100% { box-shadow: 0 0 0 14px rgba(236, 48, 19, 0); } }
.viz-actions { display: flex; flex-direction: column; gap: 8px; padding: 18px; margin-top: auto; }
.viz-actions .btn { width: 100%; }

/* — How it works — */
.steps { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.steps::before, .steps::after { content: ""; pointer-events: none; position: absolute; left: 0; top: 20px; height: 2px; background: var(--color-divider); right: 0; }
.steps::after { background: var(--color-accent); right: auto; width: calc(var(--p) * 100%); box-shadow: 0 0 12px color-mix(in srgb, var(--color-accent) 60%, transparent); }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 64px 28px 0 0; }
.step-dot { position: absolute; top: 10px; left: 0; width: 22px; height: 22px; background: var(--color-bg); border: 2px solid var(--color-text); transition: background .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease); }
.step.is-lit .step-dot { background: var(--color-accent); border-color: var(--color-accent); transform: rotate(45deg); box-shadow: 0 0 18px color-mix(in srgb, var(--color-accent) 70%, transparent); }
.step-num { font-family: var(--font-heading); font-weight: 800; font-size: 64px; line-height: 1; color: var(--color-divider); transition: color .4s; }
.step.is-lit .step-num { color: var(--color-accent); }
.step h3 { margin: 0; font-size: 22px; }
.step p { margin: 0; font-size: 15px; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
@media (max-width: 799px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps::before, .steps::after { top: 0; bottom: 0; left: 10px; width: 2px; height: auto; right: auto; }
  .steps::after { height: calc(var(--p) * 100%); bottom: auto; }
  .step { padding: 0 0 40px 52px; }
  .step-dot { top: 4px; }
  .step-num { font-size: 44px; }
}

/* — Promotions — */
.promo-banner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 48px; align-items: end; padding: clamp(28px, 5vw, 56px); background: var(--color-accent); color: var(--paper); }
.promo-banner h3 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 60px); line-height: .98; letter-spacing: -.025em; }
.promo-banner p { margin: 0; font-size: 17px; max-width: 40ch; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--paper); }
.cd-cell { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-right: 2px solid var(--paper); }
.cd-cell:last-child { border-right: 0; }
.cd-num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(32px, 6vw, 58px); line-height: 1; font-feature-settings: "tnum" 1; }
.cd-lab { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.cd-ended { grid-column: 1 / -1; padding: 18px; font-weight: 800; font-size: 18px; }
.promo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-left: 2px solid var(--color-text); }
.promo { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-right: 2px solid var(--color-text); border-bottom: 2px solid var(--color-text); transition: background .3s; }
.promo:hover { background: var(--color-surface); }
.promo .tag { align-self: flex-start; font-weight: 600; }
.promo-price { font-family: var(--font-heading); font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1; letter-spacing: -.02em; }
.promo h3 { margin: 0; font-size: 20px; }
.promo p { margin: 0; font-size: 15px; flex: 1; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

/* — Service area — */
.area-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 24px; padding: 16px 0; border-top: 2px solid var(--color-text); border-bottom: 2px solid var(--color-divider); font-weight: 600; }
.area-meta .icon { color: var(--color-accent); }
.area-meta span { display: inline-flex; align-items: center; gap: 8px; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.town { padding: 10px 14px; border: 2px solid var(--color-text); font-weight: 600; font-size: 15px; transition: background .2s, color .2s, box-shadow .3s; }
.town:hover { background: var(--color-text); color: var(--color-bg); box-shadow: 0 0 22px rgba(255, 190, 90, .35); }
.town.is-anchor { background: var(--color-accent); border-color: var(--color-accent); color: var(--paper); }

/* — Why — */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 2px solid var(--color-text); border-left: 2px solid var(--color-text); }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-right: 2px solid var(--color-text); border-bottom: 2px solid var(--color-text); }
.stat-num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(56px, 8vw, 96px); line-height: .9; letter-spacing: -.03em; font-feature-settings: "tnum" 1; }
.stat-num small { font-size: .45em; letter-spacing: 0; }
.stat-word { font-size: clamp(44px, 6vw, 72px); color: var(--color-accent); }
.stat p { margin: 0; font-size: 16px; font-weight: 600; }

/* — FAQ — */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px 64px; align-items: start; }
@media (max-width: 859px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.faq-grid .section-head { display: block; margin: 0; }
.faq-grid .section-head p { margin-top: 16px; }
.faq-list details { border-top: 2px solid var(--color-text); }
.faq-list details:last-child { border-bottom: 2px solid var(--color-text); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.25; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--color-accent-700); }
.faq-plus { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 2px solid currentColor; transition: transform .35s var(--ease), background .2s, color .2s; }
.faq-list details[open] .faq-plus { transform: rotate(45deg); background: var(--color-accent); border-color: var(--color-accent); color: var(--paper); }
.faq-body { padding: 0 52px 24px 0; max-width: 64ch; font-size: 16px; color: color-mix(in srgb, var(--color-text) 82%, transparent); }
.faq-list details[open] .faq-body { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* — Contact / form — */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 599px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field > label, .field > .label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--color-text); }
.req { color: var(--color-accent-700); }
.input { min-height: 52px; padding: 10px 14px; font-size: 16px; border-width: 2px; background: var(--field-bg); }
select.input { appearance: none; padding-right: 40px; background: var(--field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23201e1d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
textarea.input { min-height: 120px; }
.field.has-error .input { border-color: var(--color-accent-700); background: var(--color-accent-100); }
.field-error { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--color-accent-700); }
.field-error:empty { display: none; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 2px solid var(--color-divider); background: var(--field-bg); cursor: pointer; font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s; }
.check:hover { border-color: var(--color-text); }
.check:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-100); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-accent); }
.seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-width: 2px; background: var(--field-bg); }
.seg-opt { min-height: 48px; min-width: 0; padding: 0 10px; gap: 6px; font-size: 14px; font-weight: 600; }
.seg-opt .icon { width: 16px; height: 16px; }
.seg-opt + .seg-opt { border-left-width: 2px; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--color-accent); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.design-chip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--night-900); color: var(--paper); font-size: 14px; }
.design-chip .icon { color: var(--gold-400); }
.design-chip[hidden] { display: none; }
.btn-submit { width: 100%; justify-content: space-between; min-height: 58px; font-size: 17px; }
.btn-submit[aria-busy="true"] { pointer-events: none; opacity: .85; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn-submit[aria-busy="true"] .spinner { display: block; }
.btn-submit[aria-busy="true"] .icon-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { margin: 0; font-size: 13px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.form-alert { padding: 16px 18px; border: 2px solid var(--color-accent-700); background: var(--color-accent-100); color: var(--color-accent-900); font-size: 15px; }
.form-alert a { font-weight: 800; color: var(--color-accent-800); }
.form-success { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 40px); background: var(--night-900); color: var(--paper); animation: pop .6s var(--ease); }
.form-success h3 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; }
.form-success p { margin: 0; color: #d6d2cf; }
.success-mark { width: 60px; height: 60px; display: grid; place-items: center; background: #25d366; color: #0b2e18; box-shadow: 0 0 40px rgba(37, 211, 102, .45); animation: pop .6s .15s var(--ease) both; }
.success-mark .icon { width: 30px; height: 30px; stroke-width: 3; }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
.contact-aside { display: flex; flex-direction: column; border-top: 2px solid var(--color-text); }
.contact-aside h3 { margin: 20px 0 8px; font-size: 24px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 2px solid var(--color-divider); color: var(--color-text) !important; text-decoration: none; transition: color .2s, padding .3s var(--ease); }
a.contact-item:hover { color: var(--color-accent-700) !important; padding-left: 6px; }
.contact-item .ci-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: none; background: var(--color-text); color: var(--paper); }
.contact-item small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 65%, transparent); }
.contact-item strong { font-size: 17px; }

/* — Footer — */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 56px 28px; }
.site-footer a { color: var(--paper); }
.site-footer a:not(.btn):hover { color: var(--gold-400); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 36px; padding-bottom: 36px; border-bottom: 2px solid rgba(243, 242, 242, .2); }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-logo .logo-dog { height: 68px; width: auto; }
.footer-logo .logo-word { font-size: 24px; }
.footer-logo .logo-word small { color: var(--gold-400); }
.footer-grid h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #bdb8b5; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid li a { text-decoration: none; }
.footer-grid p { margin: 14px 0 0; color: #cfcac7; font-size: 15px; max-width: 32ch; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid rgba(243, 242, 242, .35); transition: background .2s, border-color .2s, box-shadow .3s; }
.social a:hover { background: var(--color-accent); border-color: var(--color-accent); box-shadow: 0 0 22px color-mix(in srgb, var(--color-accent) 60%, transparent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13px; color: #bdb8b5; }

/* — Floating mobile actions — */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; grid-template-columns: 1fr 1fr 1.5fr;
  background: var(--color-bg); border-top: 2px solid var(--color-text); padding-bottom: env(safe-area-inset-bottom); transform: translateY(0); transition: transform .35s var(--ease); }
.mobile-bar a { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 14px; border-right: 2px solid var(--color-text);
  font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: var(--color-text) !important; text-decoration: none; }
.mobile-bar a:last-child { border-right: 0; background: var(--color-accent); color: var(--paper) !important; justify-content: space-between; }
.mobile-bar a:active { background: var(--color-surface); }
.mobile-bar a:last-child:active { background: var(--color-accent-700); }
@media (max-width: 959px) {
  .mobile-bar { display: grid; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
}

/* — Scroll reveal (only when JS is running) — */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .svc { transform: none !important; }
}

/* — Brand colors: success, contact, social — */
.btn-green { background: #25d366; color: #0b2e18; }
.btn-green:hover { background: #4be083; color: #0b2e18; box-shadow: 0 0 0 3px rgba(37, 211, 102, .25), 0 0 32px rgba(37, 211, 102, .45); }
.form-success { border-top: 4px solid #25d366; }
.ci-phone { background: #1a73e8 !important; color: #fff !important; }
.ci-wa { background: #25d366 !important; color: #0b2e18 !important; }
.ci-maps { background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc04 0 100%) !important; color: #fff !important; }
.ci-maps .icon { filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); }
.social .s-ig .icon { stroke: url(#ig-grad); }
.social .s-fb { color: #1877f2; }
.social .s-tt { color: #fff; }
.social .s-tt .icon { filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55); }
.social a:hover .icon { stroke: currentColor; }
.social .s-ig:hover { color: #fff; }

/* — Header toggles: language + day/night — */
.toggles { display: flex; gap: 6px; }
.tgl { height: 44px; display: inline-flex; align-items: stretch; padding: 0; background: transparent; color: var(--color-text);
  border: 2px solid var(--color-text); font: 800 13px var(--font-heading); cursor: pointer; transition: background .2s, color .2s, box-shadow .3s; }
.tgl:hover { box-shadow: 0 0 18px rgba(255, 190, 90, .35); }
.lang-tgl span { display: grid; place-items: center; min-width: 36px; padding: 0 6px; transition: background .25s, color .25s; }
html[lang="en"] .lang-tgl [data-l="en"], html[lang="es"] .lang-tgl [data-l="es"] { background: var(--color-text); color: var(--color-bg); }
.theme-tgl { width: 44px; position: relative; align-items: center; justify-content: center; }
.theme-tgl .icon { position: absolute; transition: opacity .35s, transform .5s var(--ease); }
.theme-tgl .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); color: var(--gold-400); }
[data-theme="dark"] .theme-tgl .i-sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-tgl .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
@media (max-width: 380px) { .lang-tgl span { min-width: 30px; } .site-header .nav { gap: 8px; } .logo-word small { display: none; } }

/* — Night mode: only colors change, layout stays identical — */
html[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #1c1b1d;
  --color-surface: #262428;
  --color-text: #eeeceb;
  --color-divider: color-mix(in srgb, #eeeceb 32%, transparent);
  --color-accent-100: #3a1510;
  --color-accent-200: #4d170e;
  --color-accent-700: #ff9783;
  --color-accent-800: #ffc4b8;
  --color-accent-900: #ffe0d9;
  --field-bg: #2a282c;
  --night-900: #2a282b;
}
html[data-theme="dark"] select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23eeeceb' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.seg-opt:has(input:checked) { color: var(--paper); }
html[data-theme="dark"] .site-footer { border-top: 2px solid var(--color-divider); }
html[data-theme="dark"] .btn-gold, html[data-theme="dark"] .btn-gold:hover { color: #1a191b; }

/* — Language switch: text fits every box, smooth crossfade — */
.btn, .tool, .opt, .check, .seg-opt, .power, .tgl, .mobile-bar a, .svc-link, .contact-item, .nav .nav-links a { min-width: 0; overflow-wrap: anywhere; }
.btn, .tool, .opt, .check, .seg-opt, .power-label, .mobile-bar a { line-height: 1.2; }
.opt, .seg-opt { padding-block: 6px; }
.mobile-bar a { padding-block: 6px; font-size: 14px; }
.power-label { min-width: 0; }
.cd-lab { overflow-wrap: anywhere; letter-spacing: .06em; }
.site-header .nav { flex-wrap: nowrap; }
.site-header .btn-quote { white-space: nowrap; }
@media (max-width: 1100px) { .nav .nav-links a { padding-inline: 9px; } }
main, .site-footer, .site-header .nav-links, .btn-quote, .mobile-bar { transition: opacity .22s ease; }
html.lang-switching main, html.lang-switching .site-footer, html.lang-switching .site-header .nav-links,
html.lang-switching .btn-quote, html.lang-switching .mobile-bar { opacity: 0; }
.promo, .stat { min-width: 0; }
.promo-price, .stat-num { overflow-wrap: anywhere; }
.stat-word { font-size: clamp(36px, 4.6vw, 60px); }

/* ===================== Light remote (Visualizer) ===================== */
[data-edit][hidden] { display: none !important; }
.viz-grid { scroll-margin-top: var(--header-h); grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); align-items: stretch;
  height: clamp(560px, calc(100svh - var(--header-h) - 48px), 900px); }
.viz-stage { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #1e1d1f; }
.viz-canvas-wrap { position: relative; flex: 1 1 auto; min-height: 0; background: #1e1d1f; }
#vizCanvas { width: 100%; height: 100%; max-height: none; }
.viz-quote { position: absolute; top: 12px; right: 12px; z-index: 3; min-height: 44px; padding: 10px 14px; font-size: 14px; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .75); }
.viz-panel { display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; padding: 12px; }
html.viz-in .mobile-bar { transform: translateY(110%); }

.remote { --hue-c: #ffc977; --hue-pure: #ffc977; --r: 70px; position: relative; flex: none; width: 340px;
  display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; column-gap: 14px; row-gap: 15px; justify-items: center; align-items: center;
  grid-template-areas: "led led led" "lcd lcd lcd" "side side side" "sat ring bright" "sat temp bright" "scenes scenes scenes" "zones zones zones" "brand brand brand";
  padding: 22px 18px 18px; color: #eeeceb; background: linear-gradient(180deg, #2e2c30 0%, #1c1b1e 50%, #141316 100%);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 150px 150px 110px 110px / 96px 96px 72px 72px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -18px 40px rgba(0, 0, 0, .45), 0 40px 70px -30px rgba(0, 0, 0, .9);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: box-shadow .5s ease; }
.remote.is-on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -18px 40px rgba(0, 0, 0, .45), 0 40px 70px -30px rgba(0, 0, 0, .9), 0 0 90px -30px var(--hue-c); }
.rm-led { grid-area: led; } .rm-lcd { grid-area: lcd; } .rm-side { grid-area: side; } .vs-wrap-sat { grid-area: sat; } .vs-wrap-bright { grid-area: bright; }
.rm-ring { grid-area: ring; } .rm-temp { grid-area: temp; } .rm-scenes { grid-area: scenes; } .rm-zones { grid-area: zones; } .rm-brand { grid-area: brand; }

/* IR LED + RF bars light up on every command */
.rm-led { width: 9px; height: 9px; border-radius: 50%; background: #3b1714; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7); transition: background .25s, box-shadow .25s; }
.remote.tx .rm-led { background: #ff3b2f; box-shadow: 0 0 12px 3px rgba(255, 59, 47, .85); transition: none; }

/* LCD */
.rm-lcd { width: 100%; max-width: 262px; padding: 10px 13px 9px; border-radius: 12px; background: linear-gradient(180deg, #0a1311, #0e1916);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: inset 0 0 20px rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .06);
  color: #d6ffe6; font: 700 12px/1.35 var(--font-body); letter-spacing: .09em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.lcd-row { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.lcd-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcd-sub { color: #8ab8a0; font-weight: 600; font-size: 10px; }
.lcd-bar { height: 6px; margin: 6px 0 5px; border-radius: 3px; background: #26302b; transition: background .25s; }
.remote.is-on .lcd-bar { box-shadow: 0 0 12px color-mix(in srgb, var(--hue-c) 70%, transparent); }
.lcd-pow.on { color: #5dff9d; text-shadow: 0 0 8px rgba(93, 255, 157, .8); }
.lcd-pow.off { color: #ff7a6b; }
.remote.tx .rm-lcd { animation: lcdflick .18s steps(2); }
@keyframes lcdflick { 50% { filter: brightness(1.35); } }

/* Keys (shared) */
.rk { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0; min-width: 0;
  border: 1px solid rgba(255, 255, 255, .2); background: linear-gradient(180deg, #333136, #1f1e21); color: #eeeceb;
  font: 800 12px/1 var(--font-heading); letter-spacing: .06em; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 3px 0 #0b0a0c, 0 6px 14px rgba(0, 0, 0, .45);
  transition: transform .12s var(--ease), box-shadow .2s, background .25s, color .25s, border-color .25s; }
.rk:hover { border-color: rgba(255, 255, 255, .5); background: linear-gradient(180deg, #3b393e, #262428); }
.rk:active { transform: translateY(2px) scale(.96); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 0 #0b0a0c, 0 2px 6px rgba(0, 0, 0, .4); }
.rk:focus-visible, .rm-ring:focus-visible, .rm-temp:focus-visible, .vs:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rk .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.rip { position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .4); transform: translate(-50%, -50%) scale(0); animation: rip .6s ease-out forwards; }
@keyframes rip { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* Power, speed/mode, spacing */
.rm-side { width: 100%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 8px;
  grid-template-areas: "on on on off off off" "up up m m dn dn" "sp sp sp sp sp sp"; }
.rk-on { grid-area: on; } .rk-off { grid-area: off; } .rk-up { grid-area: up; } .rk-m { grid-area: m; } .rk-dn { grid-area: dn; } .rm-seg { grid-area: sp; }
.rk-pw { height: 50px; border-radius: 42% 42% 50% 50% / 30% 30% 70% 70%; font-size: 13px; }
.rk-on.lit { color: #062814; background: linear-gradient(180deg, #5cf092, #1f9d4c); border-color: #6ff5a0; box-shadow: 0 0 24px rgba(37, 211, 102, .6), 0 3px 0 #0b4421; }
.rk-off.lit { color: #fff; background: linear-gradient(180deg, #ff6a52, #c4200a); border-color: #ff7b66; box-shadow: 0 0 24px rgba(236, 48, 19, .55), 0 3px 0 #5a1104; }
.rk-s { height: 44px; border-radius: 34% 34% 50% 50% / 28% 28% 72% 72%; font-size: 14px; }
.rk-m { color: #1a191b; background: linear-gradient(180deg, #f6f4f3, #c9c5c3); border-color: #fff; }
.rk-m:hover { background: linear-gradient(180deg, #ffffff, #dad6d4); }
.rm-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.rk-sp { height: 38px; border-radius: 19px; }
.sp { display: block; height: 6px; background: radial-gradient(circle, currentColor 1.7px, transparent 2.2px) 0 50% / var(--p) 6px repeat-x; }
.sp-1 { --p: 4.5px; width: 13.5px; } .sp-2 { --p: 6.5px; width: 19.5px; } .sp-3 { --p: 8.5px; width: 25.5px; }
.rk-sp[aria-pressed="true"] { color: #1a191b; background: linear-gradient(180deg, #f6f4f3, #cfcbc9); }

/* Color ring */
.rm-ring { --ang: 32deg; position: relative; width: 100%; max-width: 212px; aspect-ratio: 1; border-radius: 50%; cursor: grab; touch-action: none; }
.rm-ring.drag { cursor: grabbing; }
.rm-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(hsl(0 100% 50%), hsl(30 100% 50%), hsl(60 100% 50%), hsl(90 100% 50%), hsl(120 100% 50%), hsl(150 100% 50%), hsl(180 100% 50%), hsl(210 100% 50%), hsl(240 100% 50%), hsl(270 100% 50%), hsl(300 100% 50%), hsl(330 100% 50%), hsl(360 100% 50%));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(62% - 1px), #000 62%); mask: radial-gradient(farthest-side, transparent calc(62% - 1px), #000 62%);
  transition: filter .3s; }
.rm-ring::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); pointer-events: none; }
.remote:not(.is-on) .rm-ring::before { filter: saturate(.55) brightness(.75); }
.ring-thumb { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; pointer-events: none;
  border: 3.5px solid #fff; background: var(--hue-pure); box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 4px 10px rgba(0, 0, 0, .5);
  transform: rotate(var(--ang)) translateY(calc(var(--r) * -1)) scale(.82); opacity: .55; transition: transform .35s var(--ease), opacity .25s, box-shadow .25s; }
.rm-ring.active .ring-thumb { opacity: 1; transform: rotate(var(--ang)) translateY(calc(var(--r) * -1)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 0 18px var(--hue-pure); }
.rm-ring.drag .ring-thumb { transition: opacity .2s; transform: rotate(var(--ang)) translateY(calc(var(--r) * -1)) scale(1.18); }
.rm-ring:hover .ring-thumb { opacity: 1; }
.ring-center { position: absolute; inset: 25%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid rgba(255, 255, 255, .18); background: radial-gradient(circle at 50% 35%, #302e33, #121114); color: #bdb8b5; cursor: pointer;
  font: 700 9px var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .4); transition: transform .12s var(--ease), box-shadow .3s; }
.ring-center i { width: 36%; aspect-ratio: 1; border-radius: 50%; background: var(--hue-c); box-shadow: 0 0 6px var(--hue-c); transition: background .2s, box-shadow .4s; }
.remote.is-on .ring-center i { box-shadow: 0 0 22px 4px var(--hue-c); }
.ring-center:hover { box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .25); }
.ring-center:active { transform: scale(.95); }
.ring-center[aria-pressed="true"] { color: #fff; }

/* Temperature arc (under the ring) */
.rm-temp { width: 100%; max-width: 212px; cursor: ew-resize; touch-action: none; align-self: start; }
.rm-temp svg { display: block; width: 100%; height: auto; overflow: visible; }
.rm-temp circle { transition: cx .3s var(--ease), cy .3s var(--ease); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55)); }
.rm-temp.drag circle { transition: none; }
.rm-temp:not(.active) circle { opacity: .55; }
.remote:not(.is-on) .rm-temp path { filter: brightness(.7); }

/* Vertical sliders */
.vs-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; height: 100%; min-height: 0; }
.vs { --v: .85; position: relative; flex: 1 1 auto; width: 38px; min-height: 140px; border-radius: 19px; cursor: ns-resize; touch-action: none;
  border: 1px solid rgba(255, 255, 255, .2); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45); }
.vs-sat { background: linear-gradient(to top, #ffffff, var(--hue-pure)); }
.vs-bright { background: linear-gradient(to top, #121316, color-mix(in srgb, var(--hue-c) 85%, #000) 60%, var(--hue-c)); }
.vs-dots { position: absolute; inset: 20px 0; background: radial-gradient(circle, rgba(255, 255, 255, .7) 1.6px, transparent 2.2px) center / 100% 20% repeat-y; pointer-events: none; opacity: .55; }
.vs-thumb { position: absolute; left: 50%; bottom: calc(var(--v) * (100% - 32px)); width: 32px; height: 32px; margin-left: -16px; border-radius: 50%;
  background: #fff; border: 3px solid #1a191b; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 4px 10px rgba(0, 0, 0, .5);
  transition: transform .15s var(--ease), bottom .25s var(--ease); pointer-events: none; }
.vs.drag .vs-thumb { transition: transform .15s var(--ease); transform: scale(1.14); }
.vs:hover .vs-thumb { transform: scale(1.08); }
.vs-ico { width: 14px; height: 14px; flex: none; color: #a8a3a6; }

/* Scenes + zones */
.rm-scenes, .rm-zones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; }
.rk-scene { flex-direction: column; gap: 6px; height: 56px; border-radius: 16px; font-size: 10.5px; letter-spacing: 0; padding: 0; }
.rk-scene .dots { display: flex; gap: 2px; }
.rk-scene .dots i { width: 9px; height: 9px; border-radius: 50%; }
.rk[aria-pressed="true"]:not(.rk-zone):not(.rk-sp) { border-color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 3px 0 #0b0a0c, 0 0 16px rgba(255, 255, 255, .28); }
.rk-zone { height: 48px; border-radius: 14px; gap: 6px; padding: 0 4px; font-size: 11px; letter-spacing: .03em; }
.rk-zone span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-zone b { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #ff6b5a; box-shadow: 0 0 6px rgba(255, 90, 70, .8); transition: background .25s, box-shadow .25s; }
.rk-zone[aria-pressed="true"] b { background: #5dff9d; box-shadow: 0 0 8px rgba(93, 255, 157, .9); }
.rk-zone[aria-pressed="false"] { color: #8f8a8d; }

/* Brand + RF */
.rm-brand { display: flex; align-items: center; gap: 12px; font: 800 11px var(--font-heading); letter-spacing: .2em; color: #8f8a8d; }
.rf { display: inline-flex; align-items: flex-end; gap: 2px; }
.rf i { display: block; width: 3px; border-radius: 1px; background: currentColor; opacity: .4; transition: opacity .3s, background .3s; }
.rf i:nth-child(1) { height: 4px; margin-left: 4px; } .rf i:nth-child(2) { height: 7px; } .rf i:nth-child(3) { height: 10px; }
.remote.tx .rf i { opacity: 1; background: #5dff9d; transition: none; }

.viz-intro { display: none; }

/* Phones (portrait): remote first; the house fades in above it when ON is pressed */
@media (orientation: portrait) and (max-width: 1024px) {
  .viz-grid { display: flex; flex-direction: column; height: calc(100svh - var(--header-h)); min-height: 520px; margin-inline: calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .viz-stage { position: relative; flex: 1 1 auto; }
  .viz-panel { flex: none; border-left: 0; border-top: 2px solid var(--night-line); padding: 8px; overflow: visible; }
  .viz-quote { top: 10px; right: 10px; min-height: 40px; padding: 8px 12px; font-size: 13px; }
  .viz-hint { display: none; }

  .viz-canvas-wrap { transition: opacity .7s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
  .viz-grid:not(.house-on) .viz-canvas-wrap { opacity: 0; transform: scale(.94) translateY(14px); filter: blur(10px); pointer-events: none; }
  .viz-intro { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px;
    text-align: center; color: var(--paper); transition: opacity .45s ease, transform .6s var(--ease); }
  .viz-intro strong { font: 800 clamp(26px, 7.5vw, 34px)/1.05 var(--font-heading); letter-spacing: -.02em; }
  .viz-intro span:not(.intro-bulb) { font-size: 15px; color: #cfcac7; }
  .intro-bulb { width: 64px; height: 64px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #5dff9d; color: #5dff9d;
    animation: introPulse 1.8s ease-out infinite; }
  .intro-bulb .icon { width: 28px; height: 28px; stroke-width: 2.4; }
  .intro-arrow { width: 26px; height: 26px; margin-top: 6px; color: #5dff9d; transform: rotate(90deg); animation: introBob 1.4s ease-in-out infinite; }
  .viz-grid.house-on .viz-intro { opacity: 0; transform: translateY(-12px) scale(.97); pointer-events: none; }

  .remote { width: 100%; grid-template-columns: 32px 150px 32px minmax(0, 1fr); column-gap: 8px; row-gap: 8px; justify-items: stretch;
    grid-template-areas: "lcd lcd lcd lcd" "sat ring bright side" "sat temp bright side" "scenes scenes scenes scenes" "zones zones zones zones";
    padding: 10px; border-radius: 24px; }
  .rm-led, .rm-brand, .lcd-sub { display: none; }
  .rm-lcd { max-width: none; padding: 8px 11px; }
  .lcd-bar { margin: 5px 0 0; height: 5px; }
  .rm-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "on off" "up dn" "m m" "sp sp"; gap: 6px; align-self: stretch; align-content: space-between; }
  .rk-pw { height: 46px; font-size: 12px; gap: 4px; }
  .rk-s { height: 44px; }
  .rm-seg { gap: 4px; }
  .rk-sp { height: 38px; }
  .vs { width: 32px; min-height: 0; border-radius: 16px; }
  .vs-thumb { width: 30px; height: 30px; margin-left: -15px; bottom: calc(var(--v) * (100% - 30px)); }
  .rm-ring, .rm-temp { max-width: 150px; justify-self: center; }
  .rk-scene { height: 46px; flex-direction: row; gap: 5px; }
  .rk-zone { height: 44px; }
}
@keyframes introPulse { 0% { box-shadow: 0 0 0 0 rgba(93, 255, 157, .55); } 100% { box-shadow: 0 0 0 18px rgba(93, 255, 157, 0); } }
@keyframes introBob { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(6px); } }


/* ===================== Premium layer v4 ===================== */
/* No sideways drift on phones */
html, body { max-width: 100%; overscroll-behavior-x: none; }
body { overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }
html.sheet-open { overflow: hidden; }

/* Day / night: circular reveal, nothing else animates or moves */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
.input { color: var(--color-text); background-color: var(--field-bg); }
.input::placeholder { color: color-mix(in srgb, var(--color-text) 50%, transparent); }
html[data-theme="dark"] .seg-opt:has(input:checked) { color: #fff; }
html[data-theme="dark"] .tag-accent { color: var(--color-accent-800); }

/* Scroll progress */
.site-header { position: sticky; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--color-accent); transform: scaleX(0); transform-origin: left;
  box-shadow: 0 0 12px color-mix(in srgb, var(--color-accent) 70%, transparent); pointer-events: none; will-change: transform; }

/* Sound toggle */
.snd-tgl { width: 44px; position: relative; align-items: center; justify-content: center; }
.snd-tgl .icon { position: absolute; transition: opacity .3s, transform .4s var(--ease); }
.snd-tgl .i-snd-off { opacity: 0; transform: scale(.6); }
.sound-off .snd-tgl .i-snd-on { opacity: 0; transform: scale(.6); }
.sound-off .snd-tgl .i-snd-off { opacity: 1; transform: none; }
@media (max-width: 420px) {
  .toggles { gap: 4px; }
  .tgl { height: 40px; }
  .theme-tgl, .snd-tgl { width: 40px; }
  .lang-tgl span { min-width: 28px; padding: 0 4px; }
  .menu-toggle { width: 44px; height: 44px; }
}

/* Buttons: shine, press colors, ripples */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.rip { z-index: 0; }
.btn-primary::after, .btn-green::after, .btn-call::after, .visit-btn::after, .mb-quote::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); transform: translateX(-130%); }
.btn-primary:hover::after, .btn-green:hover::after, .btn-call:hover::after, .visit-btn:hover::after { transform: translateX(130%); transition: transform .8s var(--ease); }
.btn.btn-primary:active, .nav .btn.btn-primary:active { background: var(--color-text); color: var(--color-bg);
  box-shadow: 0 0 0 3px var(--color-accent), 0 0 28px color-mix(in srgb, var(--color-accent) 55%, transparent); transform: translateY(1px) scale(.985); }
.btn-secondary:active { background: var(--color-text); color: var(--color-bg); }
.btn-light:active { background: var(--paper); color: var(--ink); }
.btn-green { background: #25d366; color: #0b2e18; }
.btn-green:active { background: #128c4a; color: #fff; box-shadow: 0 0 0 3px rgba(37, 211, 102, .35); }
.btn-call { background: #1a73e8; color: #fff; }
.btn-call:hover { background: #3a8bff; color: #fff; box-shadow: 0 0 0 3px rgba(26, 115, 232, .25), 0 0 30px rgba(26, 115, 232, .45); }
.btn-call:active { background: #0b4fb8; color: #fff; }

/* Section headings: red rule draws in */
.section-head h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 18px; background: var(--color-accent); transform-origin: left; transition: transform .9s var(--ease) .35s; }
.js .section-head [data-reveal] h2::after { transform: scaleX(0); }
.js .section-head [data-reveal].is-visible h2::after, .faq-grid .section-head h2::after { transform: scaleX(1); }

/* Reveal variants */
.js [data-reveal="scale"] { transform: translateY(18px) scale(.94); }
.js [data-reveal="wipe"] { transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease), opacity .4s; }
.js [data-reveal="wipe"].is-visible { clip-path: inset(0 0 0 0); }
.js .towns .town { opacity: 0; transform: translateY(14px) scale(.95); transition: opacity .5s var(--ease), transform .5s var(--ease), background .2s, color .2s, box-shadow .3s; transition-delay: calc(var(--i, 0) * 35ms); }
.js .towns.is-visible .town { opacity: 1; transform: none; }
.js .towns.done .town { transition-delay: 0s; }

/* Hero parallax */
#heroCanvas { transform: translateY(calc(var(--hy, 0) * .25px)) scale(1.04); }
.hero-content { opacity: var(--hf, 1); transform: translateY(calc(var(--hy, 0) * -.12px)); }

/* Service chips (form) */
.svc-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
@media (max-width: 380px) { .svc-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc-checks .check { min-height: 58px; padding: 0 40px 0 12px; gap: 8px; justify-content: flex-start; transition: border-color .2s, background .25s, transform .15s var(--ease), box-shadow .3s; }
.svc-checks .check > span:not(.tick):not(.rip) { min-width: 0; overflow-wrap: normal; word-break: normal; line-height: 1.15; }
.svc-checks .check > .icon { width: 20px; height: 20px; color: color-mix(in srgb, var(--color-text) 60%, transparent); transition: color .25s, transform .35s var(--ease); }
.check input, .chip input, .consent input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.check:has(input:focus-visible), .chip:has(input:focus-visible), .consent:has(input:focus-visible) .box { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.tick { position: absolute; right: 10px; top: 50%; width: 22px; height: 22px; margin-top: -11px; display: grid; place-items: center; border: 2px solid var(--color-divider); background: var(--field-bg); transition: background .2s, border-color .2s; }
.tick .icon { width: 14px; height: 14px; stroke-width: 3.2; color: #fff; transform: scale(0); transition: transform .3s var(--ease); }
.check:active { transform: scale(.97); }
.check:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-100); box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--color-accent) 80%, transparent); }
.check:has(input:checked) > .icon { color: var(--color-accent); transform: scale(1.12) rotate(-6deg); }
.check:has(input:checked) .tick { background: var(--color-accent); border-color: var(--color-accent); }
.check:has(input:checked) .tick .icon { transform: scale(1); }
.has-error .check, .has-error .chip { border-color: var(--color-accent-700); }

/* Heard-from chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; overflow: hidden; display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border: 2px solid var(--color-divider); background: var(--field-bg); cursor: pointer; font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s, color .2s, transform .15s var(--ease); }
.chip:hover { border-color: var(--color-text); }
.chip:active { transform: scale(.96); }
.chip:has(input:checked) { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }

/* Consent box */
.consent { position: relative; align-items: flex-start; }
.consent .box { width: 22px; height: 22px; flex: none; margin-top: 1px; display: grid; place-items: center; border: 2px solid var(--color-text); background: var(--field-bg); transition: background .2s, border-color .2s; }
.consent .box .icon { width: 14px; height: 14px; stroke-width: 3.2; color: #fff; transform: scale(0); transition: transform .3s var(--ease); }
.consent:has(input:checked) .box { background: var(--color-accent); border-color: var(--color-accent); }
.consent:has(input:checked) .box .icon { transform: scale(1); }

/* Date input looks the same on iPhone */
input[type="date"].input { -webkit-appearance: none; appearance: none; display: flex; align-items: center; min-height: 52px; text-align: left; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; }

/* Town picker */
.picker-field { position: relative; }
.picker-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; text-align: left; cursor: pointer; font: inherit; font-size: 16px; position: relative; overflow: hidden; }
.picker-btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.picker-btn[aria-expanded="true"] { border-color: var(--color-accent); }
.picker-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.picker-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-val.is-empty { color: color-mix(in srgb, var(--color-text) 50%, transparent); }
.picker { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; }
.picker-backdrop { display: none; }
.picker-panel { display: flex; flex-direction: column; max-height: 340px; background: var(--color-bg); border: 2px solid var(--color-text); box-shadow: var(--shadow-lg, 0 24px 48px -16px rgba(0,0,0,.35));
  opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .25s var(--ease); }
.picker.open .picker-panel { opacity: 1; transform: none; }
.picker-head { display: none; }
.picker-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 2px solid var(--color-divider); }
.picker-search .icon { width: 18px; height: 18px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.picker-search input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--color-text); outline: none; }
.picker-list { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; overscroll-behavior: contain; }
.picker-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 14px; cursor: pointer; font-weight: 600; font-size: 15px; outline: none; transition: background .15s, color .15s; }
.picker-opt .icon { width: 16px; height: 16px; stroke-width: 3; color: var(--color-accent); opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--ease); }
.picker-opt:hover, .picker-opt:focus { background: var(--color-surface); }
.picker-opt[aria-selected="true"] { color: var(--color-accent-700); }
.picker-opt[aria-selected="true"] .icon { opacity: 1; transform: none; }
.picker-empty { margin: 0; padding: 16px 14px; font-size: 14px; color: color-mix(in srgb, var(--color-text) 65%, transparent); }
@media (max-width: 959px) {
  .picker { position: fixed; inset: 0; top: 0; z-index: 120; }
  .picker-backdrop { display: block; position: absolute; inset: 0; background: rgba(20, 19, 18, .55); opacity: 0; transition: opacity .25s; }
  .picker.open .picker-backdrop { opacity: 1; }
  .picker-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78svh; border: 0; border-top: 2px solid var(--color-text);
    padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); opacity: 1; transition: transform .35s var(--ease); }
  .picker.open .picker-panel { transform: none; }
  .picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; font-family: var(--font-heading); font-weight: 800; font-size: 20px; }
  .picker-x { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 2px solid var(--color-text); color: var(--color-text); cursor: pointer; }
  .picker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 12px 16px 18px; }
  .picker-opt { min-height: 50px; border: 2px solid var(--color-divider); padding: 0 12px; font-size: 14px; }
  .picker-opt[aria-selected="true"] { border-color: var(--color-accent); background: var(--color-accent-100); }
  .picker-opt[hidden] { display: none; }
}

/* Service area: visit JCMS */
.visit-btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; padding: 10px 10px 10px 12px; min-height: 64px; max-width: 100%;
  border: 2px solid var(--color-text); color: var(--color-text) !important; text-decoration: none; transition: background .3s, color .3s, box-shadow .3s, transform .15s var(--ease); }
.visit-btn::after { animation: shine 4.5s ease-in-out infinite 1.5s; }
.visit-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--color-text); }
.visit-ico img { height: 36px; width: auto; transition: transform .4s var(--ease); }
.visit-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.visit-txt small { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent-700); }
.visit-txt strong { font-family: var(--font-heading); font-size: clamp(16px, 2vw, 19px); overflow-wrap: anywhere; }
.visit-arrow { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--color-accent); color: #fff; margin-left: 6px; }
.visit-arrow .icon { animation: nudge 1.6s ease-in-out infinite; }
.visit-btn:hover { background: var(--color-text); color: var(--color-bg) !important; box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--color-accent) 70%, transparent); }
.visit-btn:hover .visit-txt small { color: var(--color-accent); }
.visit-btn:hover .visit-ico img { transform: rotate(-8deg) scale(1.08); }
.visit-btn:active { transform: scale(.98); background: var(--color-accent); color: #fff !important; border-color: var(--color-accent); }
.visit-btn:active .visit-txt small { color: #fff; }
@keyframes shine { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes nudge { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }

/* Mobile floating bar */
@media (max-width: 959px) {
  .mobile-bar { grid-template-columns: 1fr 1fr 1.55fr; gap: 6px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--color-bg); border-top: 2px solid var(--color-text);
    box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .45); animation: barIn .6s var(--ease) .4s both; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
html.typing .mobile-bar { transform: translateY(115%); }
@keyframes barIn { from { transform: translateY(110%); } to { transform: none; } }
.mobile-bar a { position: relative; overflow: hidden; isolation: isolate; min-height: 56px; padding: 0 10px; gap: 8px; border: 0 !important; justify-content: flex-start;
  font-size: 14px; transition: background .2s, color .2s, transform .15s var(--ease), box-shadow .3s; }
.mobile-bar a:active { transform: scale(.96); }
.mb-ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.mb-ico .icon { width: 17px; height: 17px; stroke-width: 2.4; }
.mobile-bar .mb-call { background: #1a73e8; color: #fff !important; }
.mobile-bar .mb-call:active { background: #0b4fb8; }
.mobile-bar .mb-call .icon { animation: ring 5s ease-in-out infinite 2s; }
.mobile-bar .mb-wa { background: #25d366; color: #0b2e18 !important; }
.mobile-bar .mb-wa .mb-ico { background: rgba(11, 46, 24, .14); }
.mobile-bar .mb-wa:active { background: #128c4a; color: #fff !important; }
.mobile-bar .mb-wa .mb-ico { animation: waPulse 2.4s ease-out infinite; }
.mobile-bar .mb-quote { background: var(--color-accent); color: #fff !important; justify-content: space-between; padding-top: 6px; }
.mobile-bar .mb-quote::after { animation: shine 3.6s ease-in-out infinite 1s; }
.mobile-bar .mb-quote .icon-arrow { animation: nudge 1.4s ease-in-out infinite; }
.mobile-bar .mb-quote:active { background: var(--color-text); color: var(--color-bg) !important; box-shadow: inset 0 0 0 2px var(--color-accent); }
.mb-bulbs { position: absolute; left: 8px; right: 8px; top: 4px; display: flex; justify-content: space-between; pointer-events: none; }
.mb-bulbs i { width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, .9); animation: twk 1.6s ease-in-out infinite; }
.mb-bulbs i:nth-child(odd) { background: #ffc977; box-shadow: 0 0 6px 1px rgba(255, 201, 119, .9); }
.mb-bulbs i:nth-child(2n) { animation-delay: -.4s; } .mb-bulbs i:nth-child(3n) { animation-delay: -.9s; } .mb-bulbs i:nth-child(5n) { animation-delay: -1.2s; }
@keyframes twk { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-16deg); } 90% { transform: rotate(14deg); } 92% { transform: rotate(-12deg); } 94% { transform: rotate(8deg); } 96% { transform: rotate(-4deg); } }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(11, 46, 24, .35); } 70%, 100% { box-shadow: 0 0 0 9px rgba(11, 46, 24, 0); } }

/* Visualizer: ambient light spills into the section */
.viz { position: relative; isolation: isolate; }
.viz::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
  background: radial-gradient(60% 55% at 45% 60%, color-mix(in srgb, var(--amb, #ffc977) 26%, transparent), transparent 72%); }
.viz.is-lit::before { opacity: 1; }
.viz-grid { transition: box-shadow 1s ease; }
.viz.is-lit .viz-grid { box-shadow: 0 0 90px -24px var(--amb, #ffc977); }
.remote.surge { animation: surge .9s ease-out; }
@keyframes surge { 0% { box-shadow: 0 0 0 0 rgba(93, 255, 157, .6), 0 40px 70px -30px rgba(0, 0, 0, .9); } 100% { box-shadow: 0 0 0 26px rgba(93, 255, 157, 0), 0 40px 70px -30px rgba(0, 0, 0, .9); } }

/* Footer — premium */
.site-footer { position: relative; overflow: hidden; padding-block: 0 24px; }
.site-footer a:not(.btn):hover { color: var(--color-accent); }
.footer-logo .logo-word small { color: var(--color-accent); }
.ft-string { position: relative; height: 34px; display: flex; justify-content: space-between; padding: 0 clamp(10px, 2vw, 28px); }
.ft-string::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: #3d3a38; }
.ft-string i { position: relative; top: 12px; width: 10px; height: 14px; border-radius: 50% 50% 46% 46%; background: var(--b); box-shadow: 0 0 12px 2px var(--b);
  animation: ftTw 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); }
.ft-string i::before { content: ""; position: absolute; left: 2px; right: 2px; top: -5px; height: 5px; background: #55514e; }
@keyframes ftTw { 0%, 100% { opacity: 1; } 50% { opacity: .3; box-shadow: none; } }
.ft-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px 48px; align-items: end;
  padding: clamp(44px, 7vw, 92px) 0 clamp(36px, 5vw, 60px); border-bottom: 2px solid rgba(243, 242, 242, .2); }
.ft-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #bdb8b5; }
.ft-eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--color-accent); box-shadow: 0 0 12px var(--color-accent); animation: twk 1.8s ease-in-out infinite; }
.ft-title { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(40px, 7vw, 84px); line-height: .95; letter-spacing: -.03em; color: var(--paper); }
.ft-title em { display: block; font-style: normal; color: var(--color-accent); }
.ft-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ft-actions .btn { flex: 1 1 auto; }
.site-footer .footer-grid { padding-block: 40px; }
.site-footer .social a { position: relative; overflow: hidden; transition: background .2s, border-color .2s, box-shadow .3s, transform .2s var(--ease); }
.site-footer .social a:hover { transform: translateY(-3px); }
.ft-mark { margin: 6px 0 14px -.04em; font-family: var(--font-heading); font-weight: 800; font-size: clamp(92px, 27vw, 380px); line-height: .8; letter-spacing: -.05em; white-space: nowrap; user-select: none;
  color: transparent; -webkit-text-stroke: 2px rgba(243, 242, 242, .16);
  background: linear-gradient(90deg, var(--color-accent) var(--f, 0%), transparent var(--f, 0%)); -webkit-background-clip: text; background-clip: text; }
.footer-bottom { align-items: center; }
.to-top { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; background: transparent; color: var(--paper);
  border: 2px solid rgba(243, 242, 242, .35); font: 700 13px var(--font-body); cursor: pointer; transition: background .2s, border-color .2s; }
.to-top .icon { width: 16px; height: 16px; transform: rotate(-90deg); }
.to-top:hover { background: var(--color-accent); border-color: var(--color-accent); }
.to-top:hover .icon { animation: upBob .7s ease-in-out infinite; }
.to-top:active { background: var(--paper); color: var(--ink); }
@keyframes upBob { 0%, 100% { transform: rotate(-90deg) translateX(0); } 50% { transform: rotate(-90deg) translateX(4px); } }

@media (prefers-reduced-motion: reduce) {
  #heroCanvas, .hero-content { transform: none !important; opacity: 1 !important; }
  .js .towns .town { opacity: 1; transform: none; }
  .js [data-reveal="wipe"] { clip-path: none; }
}

/* Property type: labels never split mid-word */
.seg-opt { white-space: nowrap; overflow-wrap: normal; gap: 6px; padding-inline: 10px; }
.seg-opt .icon { width: 15px; height: 15px; }
@media (max-width: 380px) { .seg-opt { font-size: 13px; padding-inline: 8px; } .seg-opt .icon { display: none; } }

/* Form sent: confirmation overlays the form in place (no jump) */
.form-wrap { position: relative; }
#quoteForm { transition: opacity .45s ease, filter .45s ease; }
#quoteForm.is-sent { opacity: .12; filter: blur(3px); pointer-events: none; user-select: none; }
.form-success { position: absolute; inset: 0; z-index: 5; display: block; padding: 0; background: transparent; animation: none; }
.form-success[hidden] { display: none; }
.fs-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 4vw, 40px);
  background: var(--ink); color: var(--paper); border-top: 4px solid #25d366; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.form-success.show .fs-card { opacity: 1; transform: none; }
.fs-card h3 { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.05; color: var(--paper); }
.fs-card p { margin: 0; color: #d6d2cf; }
.fs-kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #5dff9d; }
.success-mark { width: 72px; height: 72px; display: block; background: none; box-shadow: none; animation: none; }
.success-mark svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sm-ring { stroke: #25d366; stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; transform: rotate(-90deg); transform-origin: center; }
.sm-check { stroke: #25d366; stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; }
.form-success.show .sm-ring { animation: smDraw .7s var(--ease) .15s forwards; }
.form-success.show .sm-check { animation: smDraw .45s var(--ease) .75s forwards; }
.form-success.show .success-mark { animation: smPop .5s var(--ease) 1.1s; }
@keyframes smDraw { to { stroke-dashoffset: 0; } }
@keyframes smPop { 50% { transform: scale(1.1); filter: drop-shadow(0 0 14px rgba(37, 211, 102, .7)); } }
html[data-theme="dark"] .fs-card { background: var(--color-surface); border: 2px solid var(--color-divider); border-top: 4px solid #25d366; }
@media (prefers-reduced-motion: reduce) { .sm-ring, .sm-check { stroke-dashoffset: 0; } }
