.hero-sub {
  max-width: 640px;
}
.hero-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero-stat-strip b {
  display: block;
  font: 500 1.8rem var(--font-display);
  color: var(--green);
}
.hero-stat-strip span {
  color: var(--ink-muted);
  font-size: 0.84rem;
}
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.bg-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}
.bg-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgb(11 15 13 / 40%) 35%,
    rgb(11 15 13 / 40%) 65%,
    var(--bg) 100%
  );
}
.module-head {
  margin-top: 4rem;
}
.module-head h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.mod-item,
.gal-item {
  position: relative;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  cursor: zoom-in;
}
.mod-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  transition: transform 0.9s var(--ease);
}
.mod-item:hover img {
  transform: scale(1.05);
}
.mod-item:after,
.gal-item:before {
  content: "+";
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0b0f0db3;
  border: 1px solid rgb(255 255 255 / 25%);
  color: var(--green);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease);
}
.mod-item:hover:after,
.gal-item:hover:before,
.mod-item:focus-visible:after,
.gal-item:focus-visible:before {
  opacity: 1;
  transform: none;
}
.features {
  padding: 5.5rem 0 4rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  padding: 2rem 1.7rem 2.2rem;
  background: var(--surface);
  transition: background 0.3s var(--ease);
}
.feature:hover {
  background: var(--surface-2);
}
.feature svg {
  width: 30px;
  height: 30px;
  margin-bottom: 1.6rem;
  color: var(--green);
}
.feature:nth-child(2) svg {
  color: var(--amber);
}
.feature:nth-child(3) svg {
  color: var(--cyan);
}
.feature h3 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}
.feature p {
  margin: 0;
  font-size: 0.92rem;
}
.demo {
  padding: 4rem 0 6rem;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 3.5rem;
  align-items: center;
}
.demo-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.demo-modes button {
  padding: 0.55em 1.2em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink-muted);
  font: 500 0.88rem var(--font-body);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.demo-modes button:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
}
.demo-modes button[aria-pressed="true"] {
  color: var(--green-dark);
  background: var(--green);
  border-color: var(--green);
}
.led-frame {
  padding: 14px;
  border-radius: 18px;
  background: #030504;
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px #000,
    0 40px 90px -30px #66e40f47,
    0 30px 60px -30px #000;
}
#led-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 3;
  border-radius: 6px;
  background: #04070a;
}
.led-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
}
.gallery {
  padding: 4rem 0 6rem;
  border-top: 1px solid var(--line);
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.gal-item:hover img {
  transform: scale(1.05);
}
.gal-item:after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px #ffffff14;
  border-radius: inherit;
  pointer-events: none;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #040605f0;
  opacity: 0;
  transition: opacity 0.25s;
}
.lightbox[hidden] {
  display: none;
}
.lightbox.is-open {
  opacity: 1;
}
.lightbox figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  overflow: hidden;
  border-radius: 8px;
}
.lightbox-count {
  position: absolute;
  top: 1.7rem;
  left: 1.6rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.lightbox img {
  max-height: 80vh;
  max-height: 80svh;
  margin-inline: auto;
  cursor: zoom-in;
  transition: transform 0.35s var(--ease);
}
.lightbox img.is-zoomed {
  transform: scale(2);
  cursor: zoom-out;
}
.lightbox figcaption {
  margin-top: 0.8rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.lightbox button {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox button:hover {
  border-color: var(--green);
  color: var(--green);
}
.lightbox-close {
  top: 1.4rem;
  right: 1.4rem;
}
.lightbox-prev {
  left: 1.4rem;
  top: 50%;
}
.lightbox-next {
  right: 1.4rem;
  top: 50%;
}
.cta-band {
  padding: 5rem 0;
}
@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .led-frame {
    padding: 8px;
  }
}
.gallery-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.module-grid {
  margin-top: 1.4rem;
}
.gal-item,
.mod-item {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}
.mod-item img {
  aspect-ratio: auto;
}
.gallery-grid .reveal,
.module-grid .reveal {
  transition-duration: 0.5s;
}
@media (max-width: 560px) {
  .gallery-grid,
  .module-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .gal-item,
  .mod-item {
    aspect-ratio: 1;
    border-radius: 8px;
  }
  .mod-item:after,
  .gal-item:before {
    display: none;
  }
  .module-head {
    margin-top: 2.4rem;
  }
  .gallery,
  .demo {
    padding-bottom: 3.5rem;
  }
  .lightbox button {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1.2rem;
  }
  .lightbox-prev {
    left: calc(50% - 52px);
  }
  .lightbox-next {
    right: calc(50% - 52px);
  }
  .lightbox img {
    max-height: 68vh;
    max-height: 68svh;
  }
  .lightbox img.is-zoomed {
    transform: scale(1.7);
  }
  .lightbox figcaption {
    padding-inline: 1rem;
  }
}
body {
  counter-reset: ph;
}
.gallery-grid,
.module-grid {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  box-shadow:
    0 1px #ffffff0a inset,
    0 34px 60px -40px #000;
}
.gal-item,
.mod-item {
  counter-increment: ph;
  box-shadow: inset 0 0 0 1px #ffffff14;
  transition:
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.gal-item img,
.mod-item img {
  filter: saturate(0.78) brightness(0.86);
  transition:
    transform 0.9s var(--ease),
    filter 0.5s var(--ease);
}
.gal-item:hover,
.mod-item:hover,
.gal-item:focus-visible,
.mod-item:focus-visible {
  transform: translateY(-3px);
  z-index: 2;
  box-shadow:
    0 0 0 1px #66e40f8c,
    0 16px 32px -14px #66e40f61;
}
.gal-item:hover img,
.mod-item:hover img {
  filter: none;
}
.gal-item:after,
.mod-item:before {
  content: counter(ph, decimal-leading-zero);
  position: absolute;
  inset: auto auto 7px 10px;
  z-index: 1;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  opacity: 0.85;
  font: 500 0.7rem var(--font-display);
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow: 0 1px 6px #000;
  transform: none;
  display: block;
  pointer-events: none;
}
.gal-item:hover:after,
.mod-item:hover:before {
  color: var(--green);
  opacity: 1;
}
@media (max-width: 560px) {
  .gallery-grid,
  .module-grid {
    padding: 6px;
  }
  .gal-item:after,
  .mod-item:before {
    font-size: 0.62rem;
    left: 7px;
    bottom: 5px;
  }
}
.gallery-grid,
.module-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 28px,
    #000 calc(100% - 28px),
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.gallery-grid::-webkit-scrollbar,
.module-grid::-webkit-scrollbar {
  display: none;
}
.gal-item,
.mod-item {
  flex: 0 0 clamp(170px, 20vw, 230px);
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
}
.strip-ctl {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0.9rem;
}
.strip-ctl button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.strip-ctl button:hover {
  border-color: var(--green);
  color: var(--green);
}
@media (max-width: 560px) {
  .gallery-grid,
  .module-grid {
    gap: 8px;
    padding: 8px;
  }
  .gal-item,
  .mod-item {
    flex-basis: 128px;
    aspect-ratio: 1;
  }
  .strip-ctl {
    display: none;
  }
}
