/* Aurora Permanent Lighting */

:root {
  /* palette: taken from the logo — black field, white type, green-to-violet aurora */
  --black: #000000;
  --bg: #0C0D10;
  --surface: #16181C;
  --text: #F5F6F7;
  --muted: #A2A8B1;
  --green: #2EE89C;
  --green-hot: #7DF5C4;
  --green-ink: #00170D;
  --violet: #9D72D9;
  --aurora: linear-gradient(100deg, var(--green) 0%, #5FC7C0 55%, var(--violet) 100%);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.26);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* headings: Montserrat, the typeface of the AURORA wordmark in the logo */
  --font-display: "Montserrat", "Archivo", system-ui, sans-serif;

  /* type scale: 14 / 16 / 18 / 21 / 24 / 36 / 48 / 72 */
  --fs-small: 0.875rem;
  --fs-body: 1.125rem;
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --fs-h1: clamp(2.5rem, 1.3rem + 4.8vw, 4.5rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-variation-settings: "wdth" 100;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: 0; }

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: var(--green-ink);
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--green);
  color: var(--green-ink);
  box-shadow: 0 0 0 0 rgba(46, 232, 156, 0);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-primary:hover {
  background: var(--green-hot);
  box-shadow: 0 0 28px 2px rgba(46, 232, 156, 0.45);
}
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
.text-link:hover { text-decoration-color: var(--green); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo { width: auto; height: 64px; }
@media (max-width: 820px) {
  .brand-logo { height: 52px; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.site-nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.site-nav a:not(.btn):hover { color: var(--text); }

.menu-toggle {
  display: none;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--black);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .site-nav .btn { margin-top: 16px; min-height: 48px; }
}

/* ---------- hero ---------- */

/* as the page scrolls, the hero drifts up at about half speed and fades, while Our Work comes up
   over it at full speed and blends in through a tall, soft gradient; main.js sets --hero-shift/--hero-fade */
.curtain { position: relative; }
.curtain > .hero {
  z-index: 0;
  transform: translate3d(0, var(--hero-shift, 0px), 0);
  opacity: var(--hero-fade, 1);
  will-change: transform, opacity;
}
.curtain > .work {
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.curtain > .work::before {
  /* the hero dissolves into Our Work instead of meeting it at an edge */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: clamp(160px, 22vw, 320px);
  background: linear-gradient(
    180deg,
    rgba(12, 13, 16, 0) 0%,
    rgba(12, 13, 16, 0.35) 40%,
    rgba(12, 13, 16, 0.8) 75%,
    var(--bg) 100%
  );
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .curtain > .hero { transform: none; opacity: 1; }
}

.hero {
  position: relative;
  background:
    radial-gradient(70% 55% at 80% 6%, rgba(46, 232, 156, 0.17), transparent 70%),
    radial-gradient(45% 45% at 98% 0%, rgba(157, 114, 217, 0.22), transparent 70%),
    linear-gradient(180deg, var(--black) 0%, #050708 60%, #0C1113 100%);
  padding-top: clamp(40px, 6vw, 80px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: start;
  gap: 24px clamp(32px, 5vw, 72px);
}
/* two lines, always: the headline shrinks as needed so "Lights all year round," fits its column
   (that line is about 10.4 times the font size wide) */
.hero-copy h1 {
  max-width: none;
  font-size: min(var(--fs-h1), calc((100cqi - clamp(32px, 5vw, 72px)) * 7 / 12 / 10.6));
}
.lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 28px;
}

@media (max-width: 860px) {
  .hero-copy { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: min(var(--fs-h1), calc(100cqi / 10.6)); }
}

.house-stage {
  position: relative;
  z-index: 1;
  margin-top: clamp(24px, 3vw, 40px);
}
.hero-photo {
  position: relative;
  height: 250px;
  overflow: hidden;
  /* phones: the photo sits under the text; fade its sky into the hero and its lawn into the next section */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}

/* wider screens: the photo fills the whole hero and the text sits over its sky */
@media (min-width: 701px) {
  .hero {
    display: grid;
    padding-top: 0;
    min-height: clamp(560px, 58vw, 860px);
  }
  .hero-copy,
  .house-stage { grid-area: 1 / 1; }
  .hero-copy {
    align-self: start;
    padding-top: clamp(48px, 7vw, 104px);
  }
  .house-stage { margin-top: 0; }
  .hero-photo {
    height: 100%;
    /* only the lawn fades, into Our Work below */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
  }
  .hero-photo img { object-position: 50% 70%; }
  .hero-photo::after {
    /* darken the sky behind the headline so the text stays easy to read */
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 26%, rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0) 62%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 55%);
    pointer-events: none;
  }
  .lede { color: #D6DADF; }
}

/* ---------- sections ---------- */

.section { padding-block: var(--section-y); }
.section-night { background: var(--black); }

.section-head {
  display: grid;
  gap: 16px;
  max-width: 40rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head p { color: var(--muted); }

/* ---------- homes we've lit: full-width slideshow ---------- */

.work { padding-top: clamp(48px, 6vw, 96px); padding-bottom: 0; }
.slideshow {
  position: relative;
  height: clamp(320px, 56vw, 780px);
  overflow: hidden;
  background: var(--surface);
  touch-action: pan-y;
}
.slides { position: absolute; inset: 0; }
/* the section heading sits in the top-left corner of the photos */
.slideshow::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 45%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.slide-head {
  position: absolute;
  z-index: 2;
  top: clamp(28px, 4vw, 56px);
  left: var(--gutter);
  display: grid;
  gap: 14px;
  max-width: 36rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.slide-head p { color: #E3E6EA; }
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0s;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease-out;
}
/* a tall photo is shown whole, over a dim, blurred copy of itself */
.slide-portrait {
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("images/warm-white-rambler-blur.jpg") center / cover;
}
.slide-portrait img { object-fit: contain; }
/* a slow push-in while each photo is up */
.slide.is-active img { transform: scale(1); }
.slide::after {
  /* soft shade at the bottom so the caption and controls read on any photo */
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: -27px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.slide-arrow:hover { background: rgba(0, 0, 0, 0.65); border-color: var(--green); }
.slide-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slide-prev { left: var(--gutter); }
.slide-next { right: var(--gutter); }

.slide-bar {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.slide-dots { display: flex; gap: 4px; }
.slide-dot {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.slide-dot::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.slide-dot:hover::before { background: rgba(255, 255, 255, 0.8); }
.slide-dot[aria-current="true"]::before {
  background: var(--green);
  box-shadow: 0 0 10px 2px rgba(46, 232, 156, 0.55);
  transform: scale(1.2);
}
.slide-count { font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.85); }
.slide-play {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.slide-play:hover { border-color: var(--text); }
/* two bars while playing (click to pause), a triangle while paused */
.slide-play::before,
.slide-play::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 4px;
  height: 12px;
  border-radius: 1px;
  background: var(--text);
}
.slide-play::before { left: 12px; }
.slide-play::after { left: 18px; }
.slide-play[aria-pressed="true"]::before {
  left: 13px;
  width: 0;
  height: 0;
  border-radius: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--text);
  background: none;
}
.slide-play[aria-pressed="true"]::after { display: none; }

@media (max-width: 700px) {
  /* not enough room over a short photo: the heading sits just above it instead */
  .work { padding-top: var(--section-y); }
  .slideshow { height: auto; overflow: visible; }
  .slideshow::before { display: none; }
  .slide-head { position: static; padding: 0 var(--gutter) 24px; text-shadow: none; }
  .slide-head p { color: var(--muted); }
  .slides { position: relative; inset: auto; height: clamp(260px, 72vw, 420px); overflow: hidden; }
  .slideshow .slide-arrow { top: calc(100% - clamp(260px, 72vw, 420px) / 2); }
  .slide-arrow { width: 44px; height: 44px; margin-top: -22px; }
  .slide-bar { left: var(--gutter); justify-content: space-between; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide img { transition: none; transform: none; }
}

/* ---------- our work: before / after slider ---------- */

.compare-wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 112px) var(--section-y);
}
.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-label {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.compare-label-before { left: 14px; }
.compare-label-after { right: 14px; }
/* a label steps aside once the handle is about to run over it */
.compare.is-far-left .compare-label-before,
.compare.is-far-right .compare-label-after { opacity: 0; }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--text);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease;
}
.compare-knob svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.compare.is-dragging .compare-knob { transform: scale(1.08); }
/* the range input does the keyboard and screen reader work; pointer drags are handled in main.js */
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.compare:has(.compare-range:focus-visible) .compare-knob { outline: 3px solid var(--green); outline-offset: 3px; }
.compare-copy { display: grid; gap: 16px; }
.compare-copy h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 400; }
.compare-copy p { margin: 0; color: var(--muted); }

@media (max-width: 820px) {
  .compare-wrap { grid-template-columns: 1fr; }
  .compare-copy { order: -1; }
}
@media (max-width: 520px) {
  .compare { border-radius: 10px; }
  .compare-knob { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .compare-label { top: 10px; padding: 4px 10px; font-size: 0.75rem; }
  .compare-label-before { left: 10px; }
  .compare-label-after { right: 10px; }
}

/* ---------- why ---------- */

.why {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.why-intro { display: grid; gap: 24px; justify-items: start; }
.why-intro p { color: var(--muted); max-width: 30rem; }

.benefits { margin: 0; display: grid; }
.benefit {
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 18px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.benefit:last-child { border-bottom: 1px solid var(--line); }
.benefit::before {
  content: "";
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px 2px rgba(46, 232, 156, 0.55);
}
.benefit dt { font-weight: 700; font-size: 1.1875rem; }
.benefit dd { margin: 4px 0 0; color: var(--muted); max-width: 36rem; }

@media (max-width: 860px) {
  .why { grid-template-columns: 1fr; }
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step { counter-increment: step; position: relative; padding-top: 72px; }
.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3rem;
  line-height: 1;
  color: var(--green);
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step::after {
  /* the string of lights joining one step to the next */
  content: "";
  position: absolute;
  top: 22px;
  left: 56px;
  right: -24px;
  height: 6px;
  background: radial-gradient(circle, rgba(46, 232, 156, 0.55) 2.2px, transparent 2.8px) 0 0 / 16px 6px repeat-x;
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 1rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
}

/* ---------- reviews ---------- */

.review-summary { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.review-stars { margin: 0; color: var(--green); letter-spacing: 0.12em; font-size: 1.125rem; line-height: 1; }
/* reviews sit side by side (up to three per row) and only stack on narrow phones */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  margin-bottom: 40px;
}
.review {
  margin: 0;
  padding-top: 24px;
  border-top: 2px solid transparent;
  border-image: var(--aurora) 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review blockquote { margin: 0; display: grid; gap: 14px; font-size: 1.1875rem; line-height: 1.55; }
/* long reviews show their first six lines, fading out, with "Read more" to open them */
.review-text { position: relative; max-height: calc(1.55em * 6); overflow: hidden; }
.review-text.is-clamped::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3.1em;
  background: linear-gradient(180deg, rgba(12, 13, 16, 0), var(--bg));
  pointer-events: none;
}
.review.is-open .review-text { max-height: none; }
/* while one review is open, the others keep their own height instead of stretching to match */
.reviews:has(.is-open) { align-items: start; }
.review.is-open .review-text::after { display: none; }
.review-more {
  align-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
}
.review-more:hover { text-decoration: underline; }
.review-more[hidden] { display: none; }
/* names line up along the bottom of every card */
.review figcaption { margin-top: auto; font-size: 1rem; font-weight: 700; color: var(--text); }
.review figcaption a { color: inherit; text-decoration: none; }
.review figcaption a:hover { text-decoration: underline; text-decoration-color: var(--green); }
.review figcaption span { margin-left: 8px; font-size: var(--fs-small); font-weight: 500; color: var(--muted); }


/* ---------- faq ---------- */

.faq {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-list details[open] summary::after {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 10px 2px rgba(46, 232, 156, 0.55);
}
.faq-list summary:hover { color: var(--green-hot); }
.faq-list details p { padding-bottom: 22px; color: var(--muted); max-width: 40rem; }

@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
}

/* FAQ page */
.faq-page { padding-top: clamp(56px, 7vw, 96px); }
.faq-intro { display: grid; gap: 18px; align-content: start; }
.faq-intro h1 { font-size: var(--fs-h2); }
.faq-intro p { color: var(--muted); max-width: 26rem; }
.faq-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.faq-cta-inner > div { display: grid; gap: 12px; max-width: 40rem; }
.faq-cta-inner p { color: var(--muted); }
.site-nav a[aria-current="page"]:not(.btn),
.footer-nav a[aria-current="page"] { color: var(--text); }

/* ---------- quote ---------- */

/* the FAQ used to sit between reviews and the quote; a hairline keeps those two sections apart */
#how,
#quote { border-top: 1px solid var(--line); }
.quote {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.quote-intro { display: grid; gap: 20px; }
.quote-intro > p { color: var(--muted); max-width: 30rem; }
.contact { display: grid; gap: 12px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-label { font-weight: 700; }
.contact p:not(.contact-label) { color: var(--muted); }
.contact a { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }

.quote-form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field input::placeholder,
.field textarea::placeholder { color: #7F858E; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 0; border-color: var(--green); }
.field input[aria-invalid="true"] { border-color: #FF8A7A; }

.btn-submit { justify-self: start; }
.form-status { font-size: 1rem; color: var(--muted); min-height: 1.5em; }
.form-status.is-error { color: #FFB1A6; }
.form-status.is-success { color: var(--green-hot); font-weight: 600; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .quote { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .btn-submit { justify-self: stretch; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding-block: 48px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.footer-logo { width: auto; height: 72px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 0.9375rem; font-weight: 600; }
.footer-nav a { text-decoration: none; color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.footer-meta { width: 100%; font-size: var(--fs-small); color: var(--muted); }

/* ---------- controller demo ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* App showcase: the live house fills the section, the controller runs on a phone beside the copy */
.showcase { position: relative; overflow-x: clip; background: var(--black); }
.showcase-stage {
  position: relative;
  overflow: clip;
  display: flex;
  align-items: center;
  min-height: min(820px, calc(100vh - 84px));
  padding-block: clamp(48px, 6vw, 80px);
}
.showcase-photo { position: absolute; inset: 0; background: var(--surface); }
.showcase-photo img,
.showcase-photo canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.showcase-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.74) 26%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 64%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 28%);
}
.showcase-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}
.showcase-copy { display: grid; gap: 22px; max-width: 470px; }
.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1.2;
}
.eyebrow-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--black);
  box-shadow: 0 0 0 1px var(--line-strong), 0 8px 22px rgba(0, 0, 0, 0.7);
}
.eyebrow-icon img { width: 44px; height: 44px; }
.showcase-lede { color: #E6E9ED; font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.4375rem); line-height: 1.5; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  color: #D6DADF;
}
.checklist li::before {
  content: "";
  width: 26px;
  height: 22px;
  margin-top: 1px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M2.5 12.5l7 7L23.5 2.5' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M2.5 12.5l7 7L23.5 2.5' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checklist strong { color: var(--text); }

.led-map { display: grid; gap: 6px; margin-top: 6px; }
.led-map[hidden] { display: none; }
.led-map-label { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.led-strip {
  width: 100%;
  height: 12px;
  border-radius: 4px;
  background: var(--black);
  box-shadow: 0 0 0 1px var(--line);
}
.demo-note { padding-block: 14px 28px; font-size: var(--fs-small); color: var(--muted); text-align: center; }

/* the phone the controller runs on */
.showcase-phone {
  position: relative;
  width: 312px;
  height: 640px;
  padding: 11px;
  border-radius: 50px;
  background: #0B0B0C;
  box-shadow: 0 0 0 1px #3A3A3E, 0 0 0 3px #111113, 0 30px 70px rgba(0, 0, 0, 0.75);
}
.showcase-phone::before {
  /* aurora glow behind the phone, from the logo */
  content: "";
  position: absolute;
  inset: -90px -110px;
  z-index: -1;
  background:
    radial-gradient(45% 40% at 62% 72%, rgba(157, 114, 217, 0.5), transparent 70%),
    radial-gradient(40% 35% at 38% 38%, rgba(46, 232, 156, 0.3), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}
.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background: #111111;
}
.phone-status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 36px;
  padding: 0 22px 0 26px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #FFFFFF;
}
.phone-island { width: 92px; height: 26px; border-radius: 13px; background: #000000; }
.phone-icons {
  justify-self: end;
  width: 42px;
  height: 11px;
  background:
    linear-gradient(#FFF, #FFF) 0 7px / 3px 4px no-repeat,
    linear-gradient(#FFF, #FFF) 5px 5px / 3px 6px no-repeat,
    linear-gradient(#FFF, #FFF) 10px 3px / 3px 8px no-repeat,
    linear-gradient(#FFF, #FFF) 15px 1px / 3px 10px no-repeat,
    linear-gradient(#FFF, #FFF) 22px 1px / 18px 10px no-repeat;
  border-radius: 2px;
}
.phone-title {
  padding: 2px 0 8px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  color: #FFFFFF;
}
.phone-app { flex: 1; min-height: 0; display: flex; }
.phone-app .wled { flex: 1; display: flex; flex-direction: column; border: 0; border-radius: 0; font-size: 0.875rem; }
.phone-app .wl-top { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
.phone-app .wl-toolbar { overflow: hidden; }
.phone-app .wl-tool { flex: 1 1 0; min-width: 0; height: 48px; padding: 0 1px; font-size: 0.5625rem !important; line-height: 1.1; }
.phone-app .wl-tool svg { width: 18px; height: 18px; }
.phone-app .wl-bri { width: 100%; padding: 2px 16px 8px; }
.phone-app .wl-bri-label { display: none; }
.phone-app .wl-body { flex: 1; min-height: 0; height: auto; }
.phone-app .wl-col { padding: 14px 14px 20px; }
.phone-app .wl-info dl { grid-template-columns: 1fr 1fr; }
.phone-app .wl-toast { bottom: 64px; }

/* PC Mode: the phone steps aside and the full controller sits under the photo */
.showcase.is-pc .showcase-phone { display: none; }
.pc-slot { padding-top: 24px; }
.pc-slot[hidden] { display: none; }

/* ---------- the controller: a working copy of the WLED web app ---------- */

.wl-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wled {
  --wl-bg: #111111;
  --wl-bar: #1D1D1D;
  --wl-btn: #333333;
  --wl-btn-hover: #444444;
  --wl-btn-on: #666666;
  --wl-text: #FFFFFF;
  --wl-dim: #AAAAAA;
  position: relative;
  overflow: hidden;
  border: 1px solid #2A2A2A;
  border-radius: 14px;
  background: var(--wl-bg);
  color: var(--wl-text);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.wled svg { width: 22px; height: 22px; flex: none; }
.wled :focus-visible { outline: 2px solid var(--wl-text); outline-offset: 2px; }
.wled button { font: inherit; color: inherit; }

.wl-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-right: 20px;
  background: var(--wl-bar);
}
.wl-toolbar { display: flex; overflow-x: auto; scrollbar-width: none; }
.wl-tool {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-width: 58px;
  height: 58px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  font-size: 0.75rem !important;
  cursor: pointer;
}
.wl-tool:hover { background: var(--wl-btn); }
.wl-tool[hidden] { display: none; }
.wl-tool[aria-pressed="true"],
.wl-tool[aria-expanded="true"] { background: #3A3A3A; }
#wl-power[aria-pressed="false"] svg { color: #777; }

.wl-bri { display: grid; justify-items: center; gap: 2px; padding-block: 6px; width: min(240px, 100%); }
.wl-bri-label { font-size: 0.8125rem; }
.wl-bri-row, .wl-slider-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.wl-bri-row svg, .wl-slider-row svg { width: 20px; height: 20px; }

/* sliders: thin track, white fill, white knob */
.wl-range {
  --p: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.wl-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 3px;
  background: var(--track, linear-gradient(90deg, #FFFFFF 0 var(--p), #4A4A4A var(--p) 100%));
}
.wl-range::-moz-range-track {
  height: 5px;
  border-radius: 3px;
  background: var(--track, linear-gradient(90deg, #FFFFFF 0 var(--p), #4A4A4A var(--p) 100%));
}
.wl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5.5px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.wl-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.wl-range:disabled { opacity: 0.35; cursor: not-allowed; }
.wl-range-kelvin { --track: linear-gradient(90deg, #FF8A12, #FFC58F 25%, #FFF1E4 55%, #DDE6FF); }

.wl-info {
  padding: 14px 20px;
  border-bottom: 1px solid #2A2A2A;
  background: #181818;
}
.wl-info dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px 24px;
  margin: 0;
}
.wl-info dt { font-size: 0.75rem; color: var(--wl-dim); }
.wl-info dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* PC mode: four columns side by side; otherwise one at a time with tabs */
.wl-body { height: 480px; }
.wl-col {
  display: none;
  height: 100%;
  overflow-y: auto;
  padding: 16px 16px 24px;
  scrollbar-color: #444 transparent;
  scrollbar-width: thin;
}
.wl-col.is-active { display: grid; align-content: start; gap: 12px; }
.wled.is-pc .wl-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
}
.wled.is-pc .wl-col { display: grid; align-content: start; gap: 12px; }
.wled.is-pc .wl-col + .wl-col { border-left: 1px solid #1E1E1E; }
.wled.is-pc .wl-tabs { display: none; }

.wl-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--wl-bar);
}
.wl-tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  font-size: 0.75rem !important;
  cursor: pointer;
}
.wl-tab[aria-pressed="true"] { background: #3A3A3A; }

/* colors */
.wl-wheel-wrap { position: relative; width: min(200px, 80%); aspect-ratio: 1; margin: 4px auto 6px; }
.wl-wheel { width: 100%; height: 100%; border-radius: 50%; cursor: crosshair; touch-action: none; }
.wl-wheel:focus-visible { outline-offset: 4px; }
.wl-wheel-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.wl-slider { display: grid; gap: 2px; }
.wl-labeled > span:first-child { justify-self: center; font-size: 0.8125rem; }

.wl-quick {
  display: grid;
  grid-template-columns: repeat(6, 26px);
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.wl-qc {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  cursor: pointer;
}
.wl-qc.is-black { box-shadow: inset 0 0 0 2px #FFFFFF; }
.wl-qc.is-random { background: var(--wl-btn); font-weight: 700; font-size: 0.8125rem !important; }
.wl-qc:hover { transform: scale(1.12); }

.wl-slots { display: flex; justify-content: center; gap: 12px; margin-block: 4px; }
.wl-slot {
  width: 38px;
  height: 38px;
  border: 2px solid var(--c, #FFFFFF);
  border-radius: 50%;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.wl-slot[aria-pressed="true"] { background: var(--c, #FFFFFF); color: var(--ink, #111111); }
.wl-slot:disabled { opacity: 0.35; cursor: not-allowed; }

.wl-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.875rem;
}
.wl-head svg { width: 18px; height: 18px; }
.wl-note { font-size: 0.8125rem; color: var(--wl-dim); text-align: center; }

.wl-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 17px;
  background: var(--wl-btn);
  color: var(--wl-dim);
}
.wl-search svg { width: 16px; height: 16px; }
.wl-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--wl-text);
  font: inherit;
  font-size: 0.875rem;
}
.wl-search input::placeholder { color: var(--wl-dim); }
.wl-search input:focus { outline: none; }
.wl-search:focus-within { box-shadow: 0 0 0 2px #FFFFFF; }

.wl-list { display: grid; gap: 8px; }
.wl-item {
  position: relative;
  min-height: 32px;
  padding: 6px 28px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--wl-btn);
  font-size: 0.875rem !important;
  text-align: center;
  cursor: pointer;
}
.wl-item:hover { background: var(--wl-btn-hover); }
.wl-item[aria-pressed="true"] { background: var(--wl-btn-on); }
.wl-item[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #FFFFFF;
}
.wl-item[hidden] { display: none; }
.wl-list.is-muted .wl-item { opacity: 0.45; }
.wl-pal { padding-bottom: 10px; }
.wl-pal::after {
  /* the palette itself, shown as a strip under its name */
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 4px;
  border-radius: 2px;
  background: var(--g);
}
.wl-preset { display: flex; align-items: center; justify-content: center; }
.wl-preset-del {
  position: absolute;
  right: 4px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  color: var(--wl-dim);
}
.wl-preset-del:hover { background: #555555; color: #FFFFFF; }
.wl-preset-del svg { width: 15px; height: 15px; }

.wl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: center;
  width: min(100%, 220px);
  min-height: 34px;
  padding: 6px 16px;
  border: 0;
  border-radius: 17px;
  background: var(--wl-btn);
  font-size: 0.875rem !important;
  cursor: pointer;
}
.wl-btn:hover:not(:disabled) { background: var(--wl-btn-hover); }
.wl-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.wl-btn svg { width: 16px; height: 16px; }
.wl-btn-small { width: auto; }

.wl-preset-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #1D1D1D;
  font-size: 0.8125rem;
}
.wl-preset-form[hidden] { display: none; }
.wl-form-row { display: flex; justify-content: center; gap: 8px; }

.wl-toast {
  position: absolute;
  left: 50%;
  bottom: 70px;
  max-width: calc(100% - 32px);
  padding: 8px 16px;
  border-radius: 18px;
  background: #3A3A3A;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  font-size: 0.875rem;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.wl-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.wled.is-pc .wl-toast { bottom: 20px; }

@media (max-width: 700px) {
  .pc-slot .wl-top { padding-right: 0; }
}
@media (max-width: 900px) {
  /* stacked: house on top (pinned while you use the phone), then the copy, then the phone */
  .showcase-stage { display: block; min-height: 0; padding: 0; overflow: visible; }
  .showcase-photo { position: sticky; top: 84px; z-index: 5; aspect-ratio: 2 / 1; border-bottom: 1px solid var(--line); }
  .showcase-shade { display: none; }
  .showcase-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 16px; }
  .showcase-copy { max-width: none; }
  .showcase-phone { justify-self: center; width: min(312px, 86vw); height: clamp(460px, calc(100svh - 84px - 50vw - 24px), 620px); }
}

/* ---------- motion ---------- */

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