:root {
  --ink: #202c33;
  --purple: #664caa;
  --accent: #075e50;
  --lighting-bg: #14272b;
  --lighting-ink: #ecf8f4;
  --lighting-muted: #bfd0ce;
}

.paper-hero {
  padding-top: clamp(34px, 6vw, 82px);
  position: relative;
  isolation: isolate;
}
.paper-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 -3% 35%;
  background: radial-gradient(ellipse at 30% 22%, #f2edfcb8, transparent 56%), radial-gradient(ellipse at 72% 25%, #e5f6eac2, transparent 57%);
  pointer-events: none;
}
.paper-hero h1 > .gradient {
  background-image: linear-gradient(100deg, #554197 12%, #664caa 50%, #16735d 95%);
  font-size: clamp(43px, 6.8vw, 82px);
  letter-spacing: -.065em;
}
.paper-hero .tagline { color: #4e665f; }
.paper-hero .resources { margin-bottom: clamp(24px, 4vw, 38px); }
.author-note-mark { margin-left: .15em; font-weight: 700; line-height: 0; }
.equal-note { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.2em; }
.paper-hero .pill.primary { background: #185f50; border-color: #185f50; font-weight: 650; }
.paper-hero .pill.primary:hover { background: #114a3e; }
.paper-hero .resource-pending:disabled { cursor: default; opacity: 1; color: #364943; background: #f5f8f7; border-color: #dce5e1; }
.paper-hero .resource-pending:disabled:hover { transform: none; box-shadow: none; }
.resource-pending span { color: #55665f; font-size: .84em; white-space: nowrap; }
.paper-stats { margin: 0 0 24px; background: #fff; border-color: #dce9e4; box-shadow: 0 12px 40px #243f3010; }
.paper-stats strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.paper-stats p { color: #304743; font-weight: 650; }
.paper-stats small { color: #586e68; }
.hero-figure { margin-bottom: clamp(34px, 7vw, 74px); }
.hero-figure .figure-button { box-shadow: 0 18px 46px #243f3014; }
.figure-compact { max-width: 780px; margin-inline: auto; }
.sequence-details { --sequence-text-inset: 22px; }
.sequence-details > summary { padding-inline: var(--sequence-text-inset); }
.sequence-details > .section-intro { margin: 18px var(--sequence-text-inset); }
.abstract-section h2 { text-wrap: balance; }
.abstract-text { color: #47545b; }

.lighting-band {
  color: var(--lighting-ink);
  background: radial-gradient(ellipse at 17% 3%, #244442, transparent 65%), var(--lighting-bg);
}
.wrap.lighting-section { padding-block: clamp(36px, 7vw, 78px); }
.lighting-header { display: flex; justify-content: space-between; align-items: end; gap: 20px 32px; margin-bottom: 28px; }
.lighting-header .section-kicker, .lighting-condition { color: #a2e5cd; font-weight: 650; }
.lighting-header h2 { color: var(--lighting-ink); margin: 9px 0 0; font-size: clamp(28px, 4.2vw, 50px); line-height: 1.12; letter-spacing: -.04em; }
.lighting-header h2 span { color: #a6c1bd; letter-spacing: .05em; display: block; margin: 10px 0 0; }
.lighting-header p { max-width: 33ch; margin: 0 0 3px; color: var(--lighting-muted); font-size: 14px; line-height: 1.6; }
#lighting-gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); align-items: start; gap: 18px; }
.lighting-panel { border: 1px solid #42605e; border-radius: 16px; overflow: hidden; background: #192e31; box-shadow: 0 18px 30px #09101135; }
.lighting-stage.demo-stage { aspect-ratio: 1280 / 784; background: #0c151c; }
.lighting-stage .demo-video { object-fit: contain; }
.lighting-stage .demo-play-circle { background: #ecfff6; color: #185f50; }
.lighting-stage .demo-play-label { color: #fff; }
.lighting-meta { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 20px; }
.lighting-condition { text-transform: uppercase; font-size: 10px; letter-spacing: .13em; margin: 0; }
.lighting-meta h3 { font-size: clamp(17px, 2.6vw, 23px); margin: 3px 0 1px; line-height: 1.3; }
.lighting-timing { margin: 4px 0 0; color: var(--lighting-muted); font-size: 11px; }
.lighting-expand { display: inline-flex; flex: none; gap: 6px; align-items: center; border: 1px solid #5e7874; border-radius: 100px; background: #223a3b; color: var(--lighting-ink); padding: 7px 11px; font-size: 11px; }
.lighting-expand svg { width: 14px; height: 14px; }
.lighting-picker { display: grid; gap: 8px; }
.lighting-option {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 60px;
  padding: 8px 10px;
  text-align: left;
  border: 1px solid #3e5856;
  border-radius: 11px;
  color: var(--lighting-ink);
  background: #1d3336;
}
.lighting-option:hover, .lighting-expand:hover { background: #29484a; }
.lighting-option[aria-pressed=true] { border-color: #a2e5cd; background: #274b45; box-shadow: inset 3px 0 #a2e5cd; }
.lighting-option:focus-visible, .lighting-expand:focus-visible, .lighting-stage .demo-play:focus-visible { outline-color: #a2e5cd; outline-offset: 2px; }
.lighting-thumbnail { width: 58px; aspect-ratio: 1280 / 784; border-radius: 4px; object-fit: cover; }
.lighting-option-text { display: grid; gap: 3px; line-height: 1.25; }
.lighting-option-text strong { font-size: 13px; font-weight: 650; }
.lighting-option-text small, .lighting-option-duration { font-size: 10px; color: var(--lighting-muted); }
.lighting-option-duration { font-variant-numeric: tabular-nums; }
.lighting-footnote { margin: 17px 0 0; color: var(--lighting-muted); font-size: 12px; }
.lighting-footnote a, .lighting-section noscript a { color: #b5f4db; text-decoration: underline; text-underline-offset: 3px; }
.lighting-warning, .modal-warning { margin: 0; padding: 9px 16px; font-size: 12px; font-weight: 650; background: #fff1ca; color: #594115; }
.demo-tactile-note { margin: 0; padding: 12px 16px; font-size: 13px; line-height: 1.5; background: #14222b; color: #ffdf9a; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

.table-group th { background: #eff5f3; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.trajectory-figure { border: 1px solid #e6e2ec; border-radius: 14px; padding: clamp(9px, 3vw, 22px); }
.trajectory-figure figcaption { margin-left: 0; }

.lighting-sidebar { display: grid; gap: 14px; min-width: 0; }
.lighting-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lighting-group { border: 1px solid #496562; border-radius: 9px; padding: 7px 8px; color: var(--lighting-ink); background: #1d3336; font-size: 11px; text-align: left; line-height: 1.4; }
.lighting-group:hover { background: #29484a; }
.lighting-group[aria-pressed=true] { border-color: #a2e5cd; color: #c3f5e2; background: #274b45; }
.lighting-group:focus-visible { outline-color: #a2e5cd; outline-offset: 2px; }
.lighting-option[hidden] { display: none; }

@media (max-width: 780px) {
  .lighting-header { flex-direction: column; align-items: start; gap: 13px; }
  .lighting-header p { max-width: none; }
  #lighting-gallery { grid-template-columns: minmax(0, 1fr); }
  .lighting-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sequence-details { --sequence-text-inset: 16px; }
}
@media (max-width: 480px) {
  .paper-hero::before { inset-inline: 0; }
  .lighting-meta { padding: 12px; }
  .lighting-picker { gap: 6px; }
  .lighting-option { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px; }
  .lighting-thumbnail { display: none; }
  .lighting-option-text strong { font-size: 12px; }
}
