/* Light section: flood, beam, red. Scoped to #light / .lx- */
#light { overflow-x: clip; }
#light .lx-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); align-items: center; }
#light .lx-copy { min-width: 0; }
#light .lx-switch {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 28px 0 24px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); max-width: 420px;
}
#light .lx-tab {
  min-height: 48px; min-width: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--mute);
  font: 500 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .25s, color .25s; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
#light .lx-tab:hover { color: var(--bone); }
#light .lx-tab[aria-selected="true"] { background: var(--bone); color: var(--ink); }
#light .lx-tab[data-mode="red"][aria-selected="true"] { background: var(--red); color: #fff; }
#light .lx-lines { display: grid; min-height: 7.5em; max-width: 28em; }
#light .lx-line {
  grid-area: 1 / 1; margin: 0; font: 400 clamp(19px, 1.9vw, 24px)/1.4 var(--f-body);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-out), visibility 0s .45s;
}
#light .lx-line.is-on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-out); }
#light .lx-line sup { font-size: .6em; }
#light .lx-line sup a { display: inline-block; padding: 0 3px; color: var(--beam); text-decoration: none; }

#light .lx-stagewrap { min-width: 0; }
#light .lx-stage {
  position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 4 / 5;
  border-radius: var(--radius); background: var(--ink-2); overflow: hidden; isolation: isolate;
}
#light .lx-wash { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease-out); z-index: 0; }
#light .lx-wash.is-on { opacity: 1; }
#light .lx-wash--flood { background: radial-gradient(70% 60% at 50% 38%, rgba(214,228,255,.20), rgba(214,228,255,0) 72%); }
#light .lx-wash--beam  { background: radial-gradient(60% 65% at 50% 34%, rgba(255,200,130,.26), rgba(255,200,130,0) 72%); }
#light .lx-wash--red   { background: radial-gradient(70% 62% at 50% 40%, rgba(226,58,46,.30), rgba(226,58,46,0) 74%); }
#light .lx-frame { position: absolute; inset: 0; z-index: 1; }
#light .lx-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease-out); }
#light .lx-img.is-on { opacity: 1; }

#light .lx-compare { margin-top: clamp(48px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--line); }
#light .lx-compare__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
#light .lx-compare__note { margin: 0; }
#light .lx-pp { min-width: 96px; }
#light .lx-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
#light .lx-fig { margin: 0; min-width: 0; }
#light .lx-fig__box { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
#light .lx-anim { width: 100%; height: 100%; object-fit: cover; }
#light .lx-fig figcaption { margin-top: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }

@media (min-width: 900px) {
  #light .lx-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
  #light .lx-stage { margin-inline-end: 0; }
  #light .lx-pair { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #light .lx-wash, #light .lx-img, #light .lx-line { transition: none !important; }
}
