/* Beyond December: Hands Behind the Light. Scoped to this route only. */
.community-page {
  --community-night: #03060c;
  --community-raised: #08111c;
  --community-snow: #f7f3e9;
  --community-copy: #bdc8d4;
  --community-muted: #8291a2;
  --community-ice: #75e1ff;
  --community-gold: #ffc76b;
  --community-line: rgba(184, 220, 235, 0.2);
  color: var(--community-snow);
  background: var(--community-night);
}

.community-page main {
  overflow: visible;
  background: var(--community-night);
}

.community-page main::before {
  display: none;
}

.community-kicker {
  margin: 0;
  color: var(--community-gold);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.community-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--community-night);
}

.community-hero::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--gutter);
  width: 1px;
  background: linear-gradient(transparent 7rem, rgba(117, 225, 255, 0.3) 7rem, rgba(117, 225, 255, 0.08) 100%);
  pointer-events: none;
}

.community-hero-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.community-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 45%;
  filter: brightness(0.74) saturate(0.9) contrast(1.08);
}

.community-hero-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 12, 0.97) 0%, rgba(3, 6, 12, 0.82) 30%, rgba(3, 6, 12, 0.18) 65%, rgba(3, 6, 12, 0.16) 100%),
    linear-gradient(180deg, rgba(3, 6, 12, 0.62) 0%, transparent 28%, transparent 67%, rgba(3, 6, 12, 0.86) 100%);
}

.community-hero-copy {
  position: relative;
  z-index: 3;
  width: min(92rem, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding-top: clamp(9rem, 17vh, 13rem);
}

.community-hero h1 {
  max-width: 7ch;
  margin: clamp(1.3rem, 3vh, 2.5rem) 0 0;
  color: var(--community-snow);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(5.2rem, 12.8vw, 13.5rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.74;
}

.community-hero h1 span {
  color: var(--community-ice);
}

.community-hero-lede {
  max-width: 25rem;
  margin: clamp(2rem, 5vh, 4rem) 0 0;
  color: var(--community-snow);
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  font-weight: 600;
  line-height: 1.45;
}

.community-purpose {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: clamp(4.5rem, 9vh, 7rem);
  width: min(33rem, 37vw);
  padding: 1.5rem 0 0 1.8rem;
  border-top: 1px solid rgba(247, 243, 233, 0.5);
  border-left: 1px solid rgba(247, 243, 233, 0.5);
}

.community-purpose p {
  margin: 0;
  color: rgba(247, 243, 233, 0.74);
  font-size: clamp(0.78rem, 0.9vw, 0.95rem);
  line-height: 1.72;
}

.community-purpose p + p {
  margin-top: 0.9rem;
}

.community-purpose strong {
  color: var(--community-snow);
}

.community-hero-caption {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  top: clamp(7rem, 14vh, 10rem);
  margin: 0;
  color: rgba(247, 243, 233, 0.64);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.community-hero-caption span {
  color: var(--community-gold);
}

.community-scroll {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: clamp(2rem, 4vh, 3.5rem);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  color: var(--community-snow);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.community-scroll i {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(247, 243, 233, 0.5);
  border-radius: 50%;
  color: var(--community-ice);
  font-size: 1rem;
  font-style: normal;
}

.community-exhibit {
  position: relative;
  z-index: 2;
  padding: clamp(7rem, 12vw, 13rem) var(--gutter) clamp(8rem, 14vw, 15rem);
  scroll-margin-top: 4.4rem;
  background:
    radial-gradient(circle at 13% 34%, rgba(117, 225, 255, 0.075), transparent 28rem),
    var(--community-night);
}

.community-exhibit-heading {
  display: grid;
  grid-template-columns: minmax(10rem, 0.45fr) minmax(25rem, 1.25fr) minmax(16rem, 0.55fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
  max-width: 106rem;
  margin: 0 auto clamp(6rem, 11vw, 11rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
  border-bottom: 1px solid var(--community-line);
}

.community-exhibit-heading h2,
.community-closing h2 {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.community-exhibit-heading h2 {
  font-size: clamp(3.6rem, 7vw, 7.6rem);
  line-height: 0.86;
}

.community-exhibit-heading h2 span,
.community-closing h2 span {
  color: var(--community-ice);
}

.community-exhibit-heading > p:last-child {
  margin: 0;
  color: var(--community-copy);
  font-size: 0.88rem;
  line-height: 1.8;
}

.community-exhibit-layout {
  display: grid;
  grid-template-columns: minmax(26rem, 1.3fr) minmax(22rem, 0.7fr);
  align-items: start;
  gap: clamp(3rem, 6vw, 7rem);
  max-width: 106rem;
  margin: 0 auto;
}

.community-stage {
  position: sticky;
  top: 5.4rem;
  height: calc(100svh - 7.4rem);
  min-height: 35rem;
  max-height: 54rem;
}

.community-stage-stack {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--community-line);
  background: #02050a;
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.36);
}

.community-panel {
  position: relative;
  min-height: 34rem;
  margin: 0;
  overflow: hidden;
  background: #02050a;
}

.community-enhanced .community-panel {
  position: absolute;
  inset: 0;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  clip-path: inset(7% 7% 7% 7%);
  transform: scale(1.035);
  transition: opacity 480ms ease, clip-path 760ms cubic-bezier(0.22, 1, 0.36, 1), transform 760ms cubic-bezier(0.22, 1, 0.36, 1), visibility 480ms;
}

.community-enhanced .community-panel.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  clip-path: inset(0);
  transform: scale(1);
}

.community-panel-photo img,
.community-rehearsal-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-panel-photo img {
  object-position: center;
}

.community-panel-photo::after,
.community-panel-rehearsal::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 5, 10, 0.85) 100%);
}

.community-panel figcaption {
  position: absolute;
  z-index: 2;
  right: clamp(1.2rem, 3vw, 2.5rem);
  bottom: clamp(1.2rem, 3vw, 2.5rem);
  left: clamp(1.2rem, 3vw, 2.5rem);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  color: var(--community-snow);
}

.community-panel figcaption span {
  color: var(--community-gold);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.community-panel figcaption strong {
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  text-align: right;
}

.community-panel figcaption cite {
  font-style: normal;
}

.community-panel-study {
  display: grid;
  align-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  isolation: isolate;
}

.community-panel-study > p:first-of-type {
  position: relative;
  z-index: 2;
  margin: 0 0 2rem;
  color: var(--community-gold);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.community-panel-study h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(3.5rem, 7.6vw, 8.2rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.78;
  text-transform: uppercase;
}

.community-panel-study h3 span {
  display: block;
}

.community-study-note {
  position: absolute;
  z-index: 2;
  right: clamp(1.2rem, 3vw, 2.5rem);
  bottom: clamp(1.2rem, 3vw, 2.5rem);
  left: clamp(1.2rem, 3vw, 2.5rem);
  margin: 0;
  color: var(--community-muted);
  font-size: 0.67rem;
  line-height: 1.5;
}

.community-study-note strong {
  margin-right: 0.45rem;
  color: var(--community-snow);
  text-transform: uppercase;
}

.community-study-rain {
  color: var(--community-snow);
  background:
    linear-gradient(135deg, rgba(117, 225, 255, 0.1), transparent 44%),
    #070d16;
}

.community-study-rain h3 span:nth-child(2) {
  color: rgba(247, 243, 233, 0.34);
  font-size: 0.36em;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.community-study-rain h3 span:last-child {
  color: var(--community-ice);
}

.community-rain-field {
  position: absolute;
  z-index: 0;
  inset: -20% -10%;
  opacity: 0.36;
  background: repeating-linear-gradient(105deg, transparent 0 2.25rem, rgba(117, 225, 255, 0.44) 2.3rem 2.36rem, transparent 2.42rem 4.8rem);
  transform: skewX(-8deg);
  mask-image: linear-gradient(90deg, transparent, black 45%, black 80%, transparent);
}

.community-study-flood {
  color: var(--community-snow);
  background: #071019;
}

.community-study-flood svg {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.58;
  stroke: var(--community-ice);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.community-study-flood h3 span:last-child {
  color: var(--community-gold);
}

.community-panel-rehearsal {
  background: #05080e;
}

.community-rehearsal-pair {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  width: 100%;
  height: 100%;
}

.community-rehearsal-pair img:first-child {
  object-position: 48% center;
}

.community-rehearsal-pair img:last-child {
  border-left: 4px solid var(--community-night);
  object-position: 55% center;
}

.community-index {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--community-line);
}

.community-index-entry {
  position: relative;
  min-height: 48svh;
  border-bottom: 1px solid var(--community-line);
}

.community-index-entry::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--community-ice);
  box-shadow: 0 0 1.4rem rgba(117, 225, 255, 0.5);
  transition: width 500ms ease;
}

.community-index-entry.is-active::before {
  width: 100%;
}

.community-index [data-community-tab] {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 1.4rem;
  width: 100%;
  min-height: 48svh;
  padding: clamp(2.2rem, 5vw, 5rem) 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.community-index-number {
  align-self: start;
  color: var(--community-gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.community-index-copy {
  display: grid;
  gap: 0.8rem;
}

.community-index-copy small {
  color: var(--community-ice);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.community-index-copy strong {
  color: rgba(247, 243, 233, 0.5);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(1.7rem, 3.3vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
  transition: color 280ms ease;
}

.community-index-copy cite {
  font-style: normal;
}

.community-index-copy em {
  max-width: 34rem;
  color: var(--community-muted);
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.72;
}

.community-index [data-community-tab] > i {
  align-self: start;
  color: var(--community-muted);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-0.5rem);
  transition: opacity 280ms ease, transform 280ms ease;
}

.community-index-entry.is-active .community-index-copy strong,
.community-index [data-community-tab]:is(:hover, :focus-visible) .community-index-copy strong {
  color: var(--community-snow);
}

.community-index-entry.is-active button > i,
.community-index [data-community-tab]:is(:hover, :focus-visible) > i {
  color: var(--community-gold);
  opacity: 1;
  transform: translateX(0);
}

.community-closing {
  display: grid;
  grid-template-columns: minmax(10rem, 0.4fr) minmax(22rem, 1.2fr) minmax(16rem, 0.55fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(7rem, 13vw, 14rem) var(--gutter);
  color: var(--community-snow);
  background:
    linear-gradient(135deg, rgba(117, 225, 255, 0.08), transparent 38%),
    #07101a;
}

.community-closing h2 {
  font-size: clamp(4rem, 8vw, 8.5rem);
  line-height: 0.84;
}

.community-closing > p:not(.community-kicker) {
  margin: 0;
  color: var(--community-copy);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.8;
}

.community-closing > div {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.community-closing a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  padding: 0 1.5rem;
  border: 1px solid var(--community-line);
  color: var(--community-snow);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 220ms ease, background-color 220ms ease;
}

.community-closing a:hover {
  color: var(--community-night);
  background: var(--community-gold);
}

.community-closing a span {
  color: var(--community-ice);
  font-size: 1.15rem;
}

.community-closing a:hover span {
  color: var(--community-night);
}

@media (max-width: 1050px) {
  .community-purpose {
    width: min(28rem, 43vw);
  }

  .community-exhibit-heading,
  .community-closing {
    grid-template-columns: minmax(9rem, 0.35fr) minmax(22rem, 1.3fr);
  }

  .community-exhibit-heading > p:last-child,
  .community-closing > p:not(.community-kicker) {
    grid-column: 2;
  }

  .community-exhibit-layout {
    grid-template-columns: minmax(23rem, 1.05fr) minmax(19rem, 0.75fr);
    gap: 2.5rem;
  }

  .community-stage {
    min-height: 32rem;
  }

  .community-index [data-community-tab] {
    grid-template-columns: 2.3rem minmax(0, 1fr);
  }

  .community-index [data-community-tab] > i {
    display: none;
  }
}

@media (max-width: 760px) {
  .community-hero {
    min-height: 55rem;
  }

  .community-hero::after {
    display: none;
  }

  .community-hero-photo img {
    object-position: 53% 38%;
  }

  .community-hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 6, 12, 0.8) 0%, rgba(3, 6, 12, 0.26) 28%, rgba(3, 6, 12, 0.5) 56%, rgba(3, 6, 12, 0.98) 100%),
      linear-gradient(90deg, rgba(3, 6, 12, 0.55), transparent 75%);
  }

  .community-hero-copy {
    width: auto;
    margin: 0 var(--gutter);
    padding-top: 7.5rem;
  }

  .community-hero h1 {
    font-size: clamp(4.5rem, 22vw, 7rem);
    line-height: 0.78;
  }

  .community-hero-lede {
    max-width: 18rem;
    margin-top: 1.5rem;
    font-size: 1.05rem;
  }

  .community-purpose {
    right: var(--gutter);
    bottom: 5.8rem;
    left: var(--gutter);
    width: auto;
    padding: 1.1rem 0 0 1rem;
    background: linear-gradient(90deg, rgba(3, 6, 12, 0.74), transparent);
  }

  .community-purpose p {
    font-size: 0.73rem;
    line-height: 1.58;
  }

  .community-hero-caption {
    display: none;
  }

  .community-scroll {
    bottom: 1.1rem;
  }

  .community-exhibit {
    padding: 6rem 0 8rem;
  }

  .community-exhibit-heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0 var(--gutter) 4rem;
    padding-bottom: 2rem;
  }

  .community-exhibit-heading h2 {
    font-size: clamp(3.4rem, 15vw, 5.6rem);
  }

  .community-exhibit-heading > p:last-child {
    grid-column: 1;
  }

  .community-exhibit-layout {
    display: block;
  }

  .community-stage {
    z-index: 5;
    top: 4.7rem;
    height: 46svh;
    min-height: 20rem;
    max-height: 29rem;
    margin-bottom: 0;
  }

  .community-stage-stack {
    border-right: 0;
    border-left: 0;
  }

  .community-panel {
    min-height: 26rem;
  }

  .community-panel-study {
    padding: 2rem var(--gutter);
  }

  .community-panel-study h3 {
    font-size: clamp(3.2rem, 15vw, 5.5rem);
  }

  .community-panel figcaption {
    right: var(--gutter);
    bottom: 1rem;
    left: var(--gutter);
  }

  .community-panel figcaption strong {
    max-width: 13rem;
  }

  .community-study-note {
    right: var(--gutter);
    bottom: 1rem;
    left: var(--gutter);
  }

  .community-index {
    position: relative;
    z-index: 1;
    margin: 0 var(--gutter);
    background: var(--community-night);
  }

  .community-index-entry,
  .community-index [data-community-tab] {
    min-height: 38svh;
  }

  .community-index [data-community-tab] {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.8rem;
    padding: 2.5rem 0;
  }

  .community-index-copy strong {
    font-size: clamp(1.75rem, 8.5vw, 2.7rem);
  }

  .community-index-copy em {
    font-size: 0.74rem;
  }

  .community-closing {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 7rem var(--gutter);
  }

  .community-closing h2 {
    font-size: clamp(3.8rem, 17vw, 6.2rem);
  }

  .community-closing > p:not(.community-kicker),
  .community-closing > div {
    grid-column: 1;
  }

  .community-closing > div {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }
}

@media (max-width: 420px) {
  .community-hero {
    min-height: 51rem;
  }

  .community-purpose p:first-child {
    display: none;
  }

  .community-purpose p + p {
    margin-top: 0;
  }

  .community-stage {
    height: 43svh;
    min-height: 18rem;
  }

  .community-panel figcaption {
    display: grid;
    gap: 0.35rem;
  }

  .community-panel figcaption strong {
    text-align: left;
  }
}

/* Static fallback also covers a partial script failure after app.js runs. */
html:not(.community-enhanced) .community-exhibit-layout {
  display: flex;
  flex-direction: column;
}

html:not(.community-enhanced) .community-stage {
  position: relative;
  top: auto;
  height: auto;
  min-height: 0;
  max-height: none;
}

html:not(.community-enhanced) .community-stage-stack {
  display: grid;
  height: auto;
  gap: 1rem;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html:not(.community-enhanced) .community-panel {
  min-height: clamp(22rem, 55vw, 42rem);
  border: 1px solid var(--community-line);
  scroll-margin-top: 6rem;
}

html:not(.community-enhanced) .community-index {
  order: -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  max-width: 106rem;
  margin: 0 auto 3rem;
}

html:not(.community-enhanced) .community-index-entry,
html:not(.community-enhanced) .community-index [data-community-tab] {
  min-height: 0;
}

@media (max-width: 760px) and (max-height: 600px) {
  .community-enhanced .community-stage {
    position: relative;
    top: auto;
    height: calc(100svh - 9.85rem);
    min-height: 0;
  }
}

@media (max-width: 620px) {
  html:not(.community-enhanced) .community-index {
    grid-template-columns: minmax(0, 1fr);
    margin-inline: var(--gutter);
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-enhanced .community-panel,
  .community-index-entry::before,
  .community-index-copy strong,
  .community-index [data-community-tab] > i,
  .community-closing a {
    transition: none;
  }
}

.community-panel-study h3 { line-height:.98; }
@media(max-width:760px) {
  .content-page.community-page main > .community-hero:first-child { padding-top:0; }
  .community-hero h1 { font-size:clamp(3.2rem,18.5vw,6rem);line-height:.92; }
}

/* Projection studio experience */
.community-page {
  --project-accent: #7be7ff;
  --project-warm: #ffd383;
  --project-ink: #07131e;
  --stage-pitch: 0deg;
  --stage-yaw: 0deg;
  --stage-content-y: 0px;
  --hero-shift: 0px;
}

.community-hero-photo img {
  transform: translate3d(0, var(--hero-shift), 0) scale(1.055);
  transform-origin: 50% 42%;
  transition: filter 700ms ease;
  will-change: transform;
}

.community-hero-optics {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(5rem, 11vw, 13rem);
  width: clamp(15rem, 29vw, 33rem);
  aspect-ratio: 1;
  border: 1px solid rgba(126, 231, 255, 0.28);
  border-radius: 50%;
  opacity: 0.82;
  mix-blend-mode: screen;
  transform: translateY(-45%);
  pointer-events: none;
}

.community-hero-optics::before,
.community-hero-optics::after,
.community-focus-ring,
.community-focus-cross {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.community-hero-optics::before {
  inset: 7.5%;
  border: 1px solid rgba(255, 211, 131, 0.3);
  box-shadow: inset 0 0 3rem rgba(117, 225, 255, 0.08), 0 0 4rem rgba(117, 225, 255, 0.05);
}

.community-hero-optics::after {
  inset: 23%;
  border: 1px dashed rgba(247, 243, 233, 0.36);
}

.community-focus-ring {
  inset: 38%;
  border: 1px solid rgba(247, 243, 233, 0.72);
  box-shadow: 0 0 1.8rem rgba(117, 225, 255, 0.18);
}

.community-focus-cross {
  inset: 49.8% 3%;
  height: 1px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(117, 225, 255, 0.46) 28%, transparent 28.2%, transparent 71.8%, rgba(117, 225, 255, 0.46) 72%, transparent);
}

.community-focus-cross::after {
  content: "";
  position: absolute;
  top: calc(-47% + .5px);
  left: 50%;
  width: 1px;
  height: 0;
  padding-top: 94%;
  background: linear-gradient(transparent, rgba(117, 225, 255, 0.4) 28%, transparent 28.2%, transparent 71.8%, rgba(117, 225, 255, 0.4) 72%, transparent);
  transform: translate(-50%, -50%);
}

.community-focus-readout {
  position: absolute;
  right: 9%;
  bottom: 10%;
  color: rgba(247, 243, 233, 0.78);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.community-exhibit::before {
  content: "";
  position: absolute;
  top: clamp(3rem, 6vw, 6rem);
  right: var(--gutter);
  left: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, var(--project-accent), transparent 32%, transparent 72%, rgba(255, 211, 131, 0.42));
  opacity: 0.55;
}

.community-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  perspective: 1400px;
}

.community-stage-rig {
  position: relative;
  min-height: 0;
  padding: clamp(1.25rem, 2vw, 2rem);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--project-accent) 31%, transparent);
  background:
    radial-gradient(circle at 17% 8%, color-mix(in srgb, var(--project-accent) 17%, transparent), transparent 35%),
    linear-gradient(145deg, color-mix(in srgb, var(--project-ink) 92%, black), #010307);
  box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, 0.48), inset 0 0 5rem rgba(0, 0, 0, 0.42);
  transform: rotateX(var(--stage-pitch)) rotateY(var(--stage-yaw));
  transform-origin: 50% 70%;
  transition: border-color 700ms ease, background 700ms ease, transform 240ms linear;
}

.community-stage-rig::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--project-accent), transparent 18%) top left / 34% 1px no-repeat,
    linear-gradient(180deg, var(--project-accent), transparent 18%) top left / 1px 34% no-repeat,
    linear-gradient(270deg, var(--project-warm), transparent 18%) bottom right / 34% 1px no-repeat,
    linear-gradient(0deg, var(--project-warm), transparent 18%) bottom right / 1px 34% no-repeat;
  opacity: .88;
}

.community-stage-rail {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  height: 1.9rem;
  color: color-mix(in srgb, var(--project-accent) 80%, white);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.community-stage-stack {
  height: calc(100% - 1.9rem);
  overflow: visible;
  border-color: color-mix(in srgb, var(--project-accent) 32%, transparent);
  clip-path: inset(0 round .55rem);
  background: #02050a;
  box-shadow:
    0 1.6rem 3rem rgba(0, 0, 0, 0.48),
    0 0 4rem color-mix(in srgb, var(--project-accent) 18%, transparent);
  transform: translateZ(22px);
  transition: border-color 650ms ease, box-shadow 650ms ease;
}

.community-stage-stack::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), inset 0 0 4rem rgba(0, 0, 0, .24);
  pointer-events: none;
}

.community-stage-stack::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, transparent 52%, rgba(1, 4, 8, .2) 92%),
    linear-gradient(112deg, rgba(255, 255, 255, .07), transparent 28% 72%, rgba(117, 225, 255, .045));
  pointer-events: none;
}

.community-stage-aperture {
  position: absolute;
  z-index: 6;
  inset: calc(1.25rem + 1.9rem) 1.25rem 1.25rem;
  pointer-events: none;
}

.community-stage-aperture i {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border-color: var(--project-warm);
  border-style: solid;
  opacity: 1;
  transition: border-color 650ms ease;
}

.community-stage-aperture i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.community-stage-aperture i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.community-stage-aperture i:nth-child(3) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.community-stage-aperture i:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }

.community-enhanced .community-panel {
  filter: brightness(1) saturate(1);
  transition: opacity 520ms ease, clip-path 880ms cubic-bezier(0.22, 1, 0.36, 1), transform 880ms cubic-bezier(0.22, 1, 0.36, 1), visibility 520ms;
}

.community-enhanced .community-panel.is-active {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: translate3d(0, var(--stage-content-y), 0) scale(1.008);
}

.community-enhanced .community-panel figcaption,
.community-enhanced .community-study-note {
  right: clamp(1.2rem, 3vw, 2.5rem);
  bottom: clamp(1.2rem, 3vw, 2.5rem);
  left: clamp(1.2rem, 3vw, 2.5rem);
}

.community-enhanced .community-stage[data-active-project="1"] .community-panel.is-active {
  clip-path: polygon(2% 0, 100% 2%, 97% 100%, 0 97%);
}

.community-enhanced .community-stage[data-active-project="2"] .community-panel.is-active {
  clip-path: polygon(0 3%, 97% 0, 100% 96%, 3% 100%);
}

.community-enhanced .community-stage[data-active-project="3"] .community-panel.is-active {
  clip-path: polygon(1% 1%, 99% 0, 97% 99%, 2% 100%);
}

.community-index-entry {
  isolation: isolate;
}

.community-index-entry::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% -1.5rem;
  background: linear-gradient(90deg, color-mix(in srgb, var(--project-accent) 8%, transparent), transparent 72%);
  opacity: 0;
  transform: translateX(-1rem);
  transition: opacity 480ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.community-index-entry.is-active::after {
  opacity: 1;
  transform: translateX(0);
}

.community-index-entry.is-active .community-index-number {
  color: var(--project-accent);
  text-shadow: 0 0 1.2rem color-mix(in srgb, var(--project-accent) 60%, transparent);
}

.community-index-entry.is-active [data-community-tab] > i {
  color: var(--project-warm);
  opacity: 1;
  transform: translateX(0);
}

.community-closing {
  position: relative;
  overflow: hidden;
}

.community-closing::before {
  content: "VOLUNTEER";
  position: absolute;
  right: -0.08em;
  bottom: -0.12em;
  color: rgba(117, 225, 255, 0.035);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(6rem, 19vw, 20rem);
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 0.72;
  pointer-events: none;
}

html.motion-paused .community-hero-photo img,
html.motion-paused .community-stage-rig {
  transform: none;
}

html.motion-paused .community-enhanced .community-panel.is-active {
  transform: scale(1.008);
}

html:not(.community-enhanced) .community-stage-aperture {
  display: none;
}

html:not(.community-enhanced) .community-stage-rig {
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

html:not(.community-enhanced) .community-stage-rail {
  display: none;
}

html:not(.community-enhanced) .community-stage-stack {
  height: auto;
  clip-path: none;
  transform: none;
}

@media (max-width: 1050px) {
  .community-stage-rig {
    padding: 1.1rem;
  }

  .community-stage-aperture {
    inset: 3rem 1.1rem 1.1rem;
  }
}

@media (max-width: 760px) {
  .community-hero-optics {
    top: 37%;
    right: -4.5rem;
    width: min(80vw, 22rem);
    opacity: 0.57;
  }

  .community-hero-photo img {
    transform: translate3d(0, var(--hero-shift), 0) scale(1.085);
  }

  .community-stage {
    height: calc(52svh - 4.35rem);
    min-height: 17.65rem;
    max-height: 26.65rem;
  }

  .community-stage-rig {
    padding: .7rem;
    border-right: 0;
    border-left: 0;
    transform: none;
  }

  .community-stage-rail {
    height: 1.5rem;
    font-size: .44rem;
  }

  .community-stage-stack {
    height: calc(100% - 1.5rem);
    border-right: 1px solid color-mix(in srgb, var(--project-accent) 32%, transparent);
    border-left: 1px solid color-mix(in srgb, var(--project-accent) 32%, transparent);
    transform: none;
  }

  .community-stage-aperture {
    inset: 2.2rem .7rem .7rem;
  }

  .community-enhanced .community-panel figcaption,
  .community-enhanced .community-study-note {
    right: var(--gutter);
    bottom: 1rem;
    left: var(--gutter);
  }

  .community-index-entry,
  .community-index [data-community-tab] {
    min-height: 41svh;
  }

  .community-index-entry::after {
    inset-inline: calc(-1 * var(--gutter));
  }
}

@media (max-width: 420px) {
  .community-stage {
    height: calc(49svh - 4.35rem);
    min-height: 15.65rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .community-hero-photo img,
  .community-stage-rig {
    transform: none;
    will-change: auto;
  }

  .community-stage-rig,
  .community-stage-stack,
  .community-stage-aperture i,
  .community-enhanced .community-panel,
  .community-index-entry::after {
    transition: none;
  }

  .community-enhanced .community-panel.is-active {
    transform: scale(1.008);
  }
}

/* Let the work lead the exhibit, with a calmer introductory scale. */
.community-exhibit-heading { grid-template-columns:1fr 1.45fr 1fr;gap:3vw;margin-bottom:4rem; }
.community-exhibit-heading h2 { font-size:clamp(2.8rem,4.6vw,5.2rem);line-height:1.08;font-weight:600; }
@media(max-width:760px) { .community-exhibit-heading { display:block;margin-bottom:3rem; } .community-exhibit-heading h2 { font-size:10vw;margin-block:1.5rem; } }
@media(max-width:760px) { .community-enhanced .community-stage { background:#04090f; } }

/* Keep the desktop hero copy clear in short browser windows. */
@media (max-width: 760px) {
  .community-focus-readout {
    display: none;
  }
}

@media (min-width: 761px) and (max-height: 800px) {
  .community-hero {
    min-height: 50rem;
  }

  .community-focus-readout {
    display: none;
  }
}

/* Keep the title, introduction and invitation in flow at every viewport size. */
.content-page.community-page main > .community-hero:first-child {
  padding-top: 0;
}

.community-hero-copy {
  padding-bottom: clamp(3rem, 6vh, 5rem);
}

.community-hero-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(33rem, 37vw));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: clamp(3.5rem, 5vw, 5rem);
}

.community-hero-details .community-hero-lede {
  margin: 0;
}

.community-hero-details .community-scroll {
  position: relative;
  inset: auto;
  margin-top: 1.5rem;
}

.community-hero-details .community-purpose {
  position: relative;
  inset: auto;
  width: auto;
}

@media (max-width: 760px) {
  .community-hero-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
  }

  .community-hero-details .community-purpose p:first-child {
    display: block;
  }
}
