/* TN46 public styles. Component rules own appearance; responsive tokens own type sizes. */

@font-face {
  font-family: Inter;
  src: url('assets/fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Theme and type tokens. Change responsive type values in the media sections below. */
:root {
  --ink: #080f1d;
  --navy: #0b172a;
  --cyan: #b8fbff;
  --paper: #e7edf5;
  --muted: #9ba9b9;
  --line: #d0e5ff26;
  --pad: clamp(22px,4.4vw,84px);
  font-family: Inter,Arial,sans-serif;
  font-weight: 300;
  color: var(--paper);
  background: var(--ink);
  color-scheme: dark;
  font-synthesis: none;
  --headline-size: 64px;
  --font-intro: 16px;
  --font-story: 40px;
  --font-progress: 64px;
  --font-percent-unit: 30px;
  --font-stat-value: 36px;
  --font-donation-cta: 48px;
  --font-detail-title: 64px;
  --font-panel-title: 36px;
  --font-input: 18px;
  --font-placeholder: 14px;
  --font-checkbox: 15px;
  --font-checkbox-help: 12px;
  --font-success-title: 44px;
  --font-success-copy: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  border: 0;
  color: inherit;
}

input {
  font: inherit;
}

a {
  -webkit-tap-highlight-color: transparent;
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0;
}

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

/* Hidden form states must override component display rules. */
[hidden] {
  display: none !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #76e7ff;
  outline-offset: 5px;
}

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

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 15px;
}

.skip:focus {
  top: 20px;
}

.section-pad {
  padding: 100px var(--pad);
}

/* Hero layout. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 74px var(--pad) 40px;
  isolation: isolate;
  height: 100svh;
  min-height: 850px;
  background: #041333;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(180deg,#04133330,transparent 40%,#080f1da8);
}

.hero h1 {
  font-weight: 700;
  position: relative;
  z-index: 1;
  line-height: 1.08;
  letter-spacing: -2px;
  max-width: 70%;
  font-size: var(--headline-size);
}

.hero h1 span {
  display: block;
  animation: none;
}

.hero h1 span+span {
  animation-delay: .14s;
}

.hero-bottom {
  position: absolute;
  bottom: 40px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: flex-end;
  gap: 20px;
  justify-content: flex-end;
}

.hero-bottom p {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
}

.round-arrow {
  border: 1px solid #ffffff60;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  transition: background .2s,transform .2s;
}

.scroll-link:hover .round-arrow {
  background: var(--cyan);
  color: var(--ink);
  transform: translateY(4px);
}

/* Story and reading reveal. */
.story {
  background: var(--ink);
  padding-top: 160px;
  padding-bottom: 100px;
  padding-inline: 0;
}

.reading-copy {
  text-align: center;
  margin: 0 auto;
  width: 65%;
  max-width: 1000px;
}

.reading-copy h2 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 90px;
  font-size: var(--headline-size);
}

.reading-copy p {
  font-weight: 700;
  margin: 0 auto 76px;
  text-wrap: pretty;
  letter-spacing: -1.5px;
  line-height: 1.25;
  max-width: none;
  font-size: var(--font-story);
}

.reading-copy p:last-child {
  margin-bottom: 0;
}

.read-word {
  color: var(--paper);
}

.reading-active .read-word {
  color: var(--read-color,#354254);
}

/* Funding category cards. */
.funding {
  background: var(--ink);
  padding-top: 15px;
  padding-bottom: 75px;
}

.funding-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
}

.funding-card {
  display: block;
  background: none;
  padding: 0;
  min-width: 0;
  text-align: left;
}

.card-art {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #0c2c61;
  position: relative;
}

.card-art img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.7,.2,1),filter .5s;
}

.funding-card:hover .card-art img {
  transform: scale(1.045);
  filter: brightness(1.1);
}

.funding-card:focus-visible {
  outline-offset: 6px;
}

/* Pixel reveal inspired by the supplied transition reference. */
.funding-pixel-curtain {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8,1fr);
  grid-template-rows: repeat(10,1fr);
  pointer-events: none;
}

.funding-pixel-tile {
  margin: -1px;
  background: #0c2c61;
  transform: scale(1.04);
  transform-origin: center;
  transition: transform .8s cubic-bezier(.22,1,.36,1),opacity .48s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--funding-card-delay) + var(--pixel-delay));
}

.funding-pixel-tile[style*="--pixel-tone: 1"] {
  background: #123b78;
}

.funding-pixel-tile[style*="--pixel-tone: 2"] {
  background: #071f49;
}

.js-motion .funding-pixel-card:not(.is-revealed) .card-art img {
  transform: scale(1.1);
  filter: brightness(.72) saturate(.8);
}

.funding-pixel-card.is-revealed .card-art img {
  transition-duration: 1.35s,.8s;
  transition-delay: calc(var(--funding-card-delay) + 120ms);
}

.funding-pixel-card.is-revealed .funding-pixel-tile {
  opacity: 0;
  transform: scale(.16);
}

.funding-pixel-card.is-revealed .funding-pixel-curtain {
  visibility: hidden;
  transition: visibility 0s linear calc(var(--funding-card-delay) + 1.15s);
}

/* Campaign progress. */
.progress-section {
  background: var(--ink);
  padding-top: 45px;
  padding-bottom: 35px;
}

.progress-content {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border: 0;
  padding-top: 0;
}

.progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.progress-percent {
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  letter-spacing: -1.5px;
  font-size: var(--font-progress);
}

.progress-percent span {
  margin-left: 4px;
  font-size: var(--font-percent-unit);
}

.funding-meter {
  height: 5px;
  background: #dcefff20;
  margin: 27px 0 35px;
  overflow: hidden;
}

.funding-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,#3673e5,var(--cyan));
  transition: width .8s ease;
  width: 0;
}

.stats {
  display: grid;
  grid-template-columns: 1fr .85fr 1fr;
  gap: 30px;
}

.stat-label {
  display: block;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 300;
  font-size: 12px;
}

.stats strong {
  display: block;
  font-weight: 700;
  margin-top: 10px;
  line-height: 1.2;
  letter-spacing: -1.5px;
  font-size: var(--font-stat-value);
}

.stats small {
  font-size: .48em;
  font-weight: 300;
}

#donation-form {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  max-width: 1120px;
  margin: 0 auto;
  gap: 80px;
}

.form-fields {
  padding-top: 0;
}

.field-label {
  display: block;
  margin: 27px 0 10px;
  font-weight: 300;
  font-size: 12px;
}

.field-label:first-child {
  margin-top: 0;
}

input:not([type=checkbox]) {
  border: 0;
  border-bottom: 1px solid #62798d;
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  width: 100%;
  padding: 14px 0;
  font-weight: 300;
  font-size: var(--font-input);
}

input::placeholder {
  color: #8496ab;
  font-size: var(--font-placeholder);
}

input:disabled {
  opacity: .45;
}

.form-fields small {
  display: block;
  color: #95a7bb;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 10px;
  font-weight: 300;
}

.amount-fieldset {
  margin: 38px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.amount-fieldset legend {
  padding: 0;
  margin-bottom: 17px;
  font-weight: 300;
  font-size: 12px;
}

.amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amount-options button {
  background: #1a2b40;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid transparent;
  font-weight: 300;
  transition: background .2s;
  flex: 1 1 calc(25% - 8px);
  min-width: 0;
  padding: 14px 4px;
  font-size: 12px;
}

.amount-options button[aria-pressed=true] {
  background: var(--cyan);
  color: var(--ink);
  border-color: var(--cyan);
  font-weight: 700;
}

.amount-input {
  position: relative;
  margin-top: 16px;
}

.amount-input input {
  padding-right: 45px;
}

.amount-input>span {
  position: absolute;
  right: 0;
  top: 18px;
  color: #92aac0;
  font-size: 12px;
}

#amount-readable {
  display: block;
  font-size: 12px;
  color: #9fc5e2;
  margin-top: 12px;
  min-height: 16px;
  font-weight: 300;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 12px 0;
  cursor: pointer;
  margin-top: 22px;
  line-height: 1.5;
}

.checkbox-row input {
  accent-color: var(--cyan);
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin: 2px 0 0;
}

.checkbox-row>span {
  font-weight: 300;
  font-size: var(--font-checkbox);
}

.checkbox-row small {
  display: block;
  line-height: 1.6;
  color: #99afc4;
  margin-top: 6px;
  font-weight: 300;
  font-size: var(--font-checkbox-help);
}

.transfer-panel {
  background: #102339;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.primary {
  background: var(--cyan);
  text-transform: uppercase;
  color: var(--ink);
  padding: 20px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  text-align: left;
  min-height: 60px;
  font-size: 15px;
  font-weight: 500;
  transition: background .2s,transform .2s;
}

.primary:hover {
  background: white;
  transform: translateY(-2px);
}

.primary span {
  font-size: 22px;
}

.submit-button {
  width: 100%;
  padding: 19px 20px;
  font-size: 14px;
}

.form-success {
  padding: 15px 0 50px;
  max-width: 800px;
  margin: 0 auto;
  outline: none;
}

.success-mark {
  font-size: 44px;
  color: var(--cyan);
}

.form-success h3 {
  font-weight: 700;
  margin: 18px 0;
  letter-spacing: -2px;
  font-size: var(--font-success-title);
}

.form-success>p {
  line-height: 1.65;
  font-size: var(--font-success-copy);
}

.form-success dl {
  margin: 30px 0;
}

.form-success dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-size: 14px;
}

.form-success dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.text-button {
  background: none;
  color: var(--paper);
  font-size: 13px;
  text-decoration: underline;
  margin-top: 20px;
  padding: 12px 0;
}

/* Detail dialog. */
dialog {
  max-width: none;
  max-height: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--paper);
  background: var(--ink);
}

dialog::backdrop {
  background: #020817c9;
  backdrop-filter: blur(12px);
}

body.modal-open {
  overflow: hidden;
}

.close-button {
  position: sticky;
  z-index: 8;
  top: 20px;
  float: right;
  margin: 20px 20px -68px 0;
  width: 48px;
  height: 48px;
  background: #eef2ed;
  color: #07172f;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  display: grid;
  place-items: center;
}

.close-button:hover {
  background: var(--cyan);
}

.detail-dialog {
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow-y: auto;
  isolation: isolate;
}

.detail-media {
  inset: 0;
  z-index: -2;
  overflow: hidden;
  position: fixed;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
  opacity: .9;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#031226b0,transparent 45%,#031226e8 78%),linear-gradient(0deg,#03122699,transparent);
}

.detail-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 10%;
  padding: 130px var(--pad) 70px;
  min-height: 100dvh;
  padding-bottom: 160px;
}

.detail-left {
  align-self: center;
}

.detail-left h2 {
  font-weight: 700;
  white-space: pre-line;
  letter-spacing: -2px;
  margin-top: 0;
  line-height: 1.08;
  font-size: var(--font-detail-title);
}

.detail-right>p {
  font-weight: 300;
  margin: 0 0 34px;
  line-height: 1.65;
  white-space: pre-line;
  font-size: 16px;
}

.detail-cost {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
  margin-bottom: 28px;
}

.detail-cost>span {
  letter-spacing: normal;
  font-size: 12px;
}

.detail-cost strong {
  display: block;
  font-weight: 700;
  margin-top: 15px;
  letter-spacing: -1px;
  font-size: var(--font-stat-value);
}

.detail-cost p {
  font-size: 14px;
  color: #b7c9d9;
  margin-top: 12px;
}

.reveal {
  transition: opacity .7s,transform .8s;
}

.js-motion .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(22px);
}

.funding-card:nth-child(2) {
  transition-delay: 90ms;
}

.funding-card:nth-child(3) {
  transition-delay: 180ms;
}

/* Donation section and form. */
.donation-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--ink);
  padding-top: 65px;
  --closing-space: clamp(280px,25vw,450px);
  padding-bottom: 110px;
}

.closing-art {
  position: absolute;
  z-index: -2;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(650px,72vw,1120px);
  object-fit: cover;
  object-position: 50% 60%;
  mask-image: linear-gradient(180deg,transparent 3%,#000 38%,#000 67%,transparent 99%);
}

.donation-section:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg,var(--ink),transparent 48%,#080f1d18);
  pointer-events: none;
}

/* Donation invitation and panel. */
.donation-invitation {
  text-align: center;
  padding: 25px 0 40px;
  position: relative;
  padding-bottom: 0;
  z-index: 1;
}

.donation-trigger {
  background: transparent;
  border-bottom: 1px solid #c3f1ff66;
  padding: 16px 0;
  color: var(--paper);
  font-weight: 500;
  line-height: normal;
  letter-spacing: -2px;
  display: inline-flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  transition: color .2s,border-color .2s;
  position: relative;
  isolation: isolate;
  padding-inline: 10px;
  max-width: 100%;
  border: 0;
  font-size: var(--font-donation-cta);
}

.donation-trigger>.donation-arrow {
  font-size: .8em;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 1px solid #b8fbff77;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .2s,color .2s,transform .2s;
  letter-spacing: 0;
  line-height: 1;
  transform: none;
  background: transparent;
  border-color: #b8fbff77;
}

.donation-trigger:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.donation-trigger:hover>.donation-arrow {
  background: var(--cyan);
  color: var(--ink);
  transform: rotate(45deg);
}

.donation-invitation>p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: #a1b1c5;
  margin-top: 24px;
}

.donation-panel {
  position: relative;
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 40px;
  background: #081322eb;
  border: 1px solid #9abddd1c;
  backdrop-filter: blur(20px);
  border-color: #9fcde880;
  box-shadow: 0 0 0 1px #9fcde81a;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.panel-heading h3 {
  font-weight: 500;
  letter-spacing: -1px;
  outline: none;
  font-size: var(--font-panel-title);
}

.panel-heading button {
  background: none;
  color: #a0bed4;
  padding: 12px 0;
  font-size: 12px;
  font-weight: 300;
  white-space: nowrap;
}

.panel-heading button>span {
  padding-left: 12px;
}

.donation-panel #donation-form {
  gap: 55px;
}

.gallery-controls {
  z-index: 5;
  bottom: 22px;
  left: var(--pad);
  right: var(--pad);
  position: absolute;
  inset: auto 0 auto auto;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  background: none;
  border: 0;
  backdrop-filter: none;
  pointer-events: auto;
}

.gallery-arrow {
  font-size: 24px;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #081322bf;
  border: 1px solid #a8cde766;
  transition: background .2s,color .2s;
}

.paid-row {
  margin-top: 0;
  margin-bottom: 22px;
}

.closing-thanks {
  bottom: 60px;
  left: var(--pad);
  right: var(--pad);
  text-align: center;
  font-weight: 700;
  text-wrap: balance;
  position: relative;
  inset: auto;
  max-width: 900px;
  line-height: normal;
  letter-spacing: -1px;
  z-index: 1;
  margin: var(--closing-space) auto 0;
  transform: translateY(-50px);
  margin-top: calc(var(--closing-space) + 100px);
  font-size: 36px;
}

.closing-emojis {
  display: block;
  margin-top: 18px;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.4;
  letter-spacing: 0;
}

.qr-link {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

.transfer-qr {
  display: block;
  width: 100%;
  height: auto;
}

.qr-download {
  text-align: center;
  display: block;
  margin: 16px 0 26px;
  color: var(--cyan);
  font-size: 12px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#form-error,
#campaign-status,
#progress-status {
  line-height: 1.5;
  color: #b3dfeb;
  font-size: 14px;
}

#form-error:not(:empty) {
  padding: 14px 0;
  color: #ffc5b9;
}

button:disabled {
  opacity: .5;
  cursor: wait;
}

.progress-heading h2 {
  line-height: 1.08;
  letter-spacing: -2px;
  max-width: none;
  font-size: var(--headline-size);
}

.hero-intro {
  position: absolute;
  right: var(--pad);
  top: 80px;
  max-width: 300px;
  line-height: 1.55;
  font-weight: 300;
  text-transform: uppercase;
  text-align: right;
  letter-spacing: 0;
  font-size: var(--font-intro);
}

.reading-copy + .reading-copy {
  margin-top: 76px;
}

.reading-copy a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

#funding {
  padding-inline: 0;
}

.closing-visual {
  overflow: hidden;
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
  z-index: -1;
  top: 50px;
  bottom: 50px;
}

.closing-visual .closing-art {
  max-width: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  mask-image: linear-gradient(180deg,transparent,#000 18%,#000 82%,transparent);
  object-position: center 60%;
}

.square-close,
.panel-heading .square-close {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 0;
  max-width: none;
  background: #eef2ed;
  color: #07172f;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 300;
  border-radius: 0;
  transition: border-radius .3s,background .3s;
}

.square-close>span,
.panel-heading .square-close>span {
  display: block;
  padding: 0;
  line-height: 1;
  transition: transform .35s;
}

.square-close:hover,
.square-close:focus-visible {
  border-radius: 50%;
  background: var(--cyan);
}

.square-close:hover>span,
.square-close:focus-visible>span {
  transform: rotate(90deg);
}

.detail-bottom {
  position: fixed;
  z-index: 6;
  bottom: 24px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  pointer-events: none;
}

#detail-donate {
  width: min(440px,calc(100% - 260px));
  pointer-events: auto;
  font-size: 16px;
}

.gallery-arrow:hover {
  background: var(--cyan);
  color: var(--ink);
}

/* Running photo marquee; movement is controlled by app.js. */
.running-marquee {
  position: relative;
  overflow: hidden;
  margin: 80px 0;
  width: 100%;
  --moment-width: clamp(220px,23vw,360px);
  --moment-gap: 12px;
  --moment-height: 380px;
  cursor: grab;
  touch-action: pan-y;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation-duration: var(--marquee-duration,240s);
  animation: none;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 0;
  padding-right: 0;
}

.marquee-group img {
  max-width: none;
  height: var(--moment-height);
  width: calc(var(--moment-height) * var(--moment-ratio));
  object-fit: contain;
  flex: none;
  user-select: none;
  -webkit-user-drag: none;
}

.marquee-pause {
  font-size: 12px;
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid #b8fbff99;
  border-radius: 50%;
  background: #081322c9;
  backdrop-filter: blur(12px);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s,background .2s;
}

.running-marquee:hover .marquee-track,
.running-marquee:focus-within .marquee-track {
  animation-play-state: running;
}

.running-marquee.is-paused .marquee-track,
.running-marquee.is-offscreen .marquee-track,
.running-marquee.is-loading .marquee-track {
  animation-play-state: paused;
}

.hero-intro strong {
  font-weight: 700;
}

.donation-section:has(.donation-panel:not([hidden])) .closing-visual {
  top: auto;
  height: calc(var(--closing-space) + 300px);
}

.detail-dialog[data-item="bib"] #detail-copy {
  white-space: pre-line;
}

#detail-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.donation-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: scaleY(.012);
  transform-origin: bottom;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  z-index: -1;
}

.donation-trigger .donation-label {
  display: block;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}

.donation-arrow svg {
  width: 26px;
  height: 26px;
  display: block;
  transition: transform .35s;
  transform-origin: center;
}

.donation-trigger:is(:hover,:focus-visible) {
  color: var(--ink);
}

.donation-trigger:is(:hover,:focus-visible)::before {
  transform: scaleY(1);
}

.donation-trigger:is(:hover,:focus-visible) .donation-label {
  transform: translateX(10px);
}

.donation-trigger:is(:hover,:focus-visible)>.donation-arrow {
  transform: none;
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.donation-trigger:is(:hover,:focus-visible) .donation-arrow svg {
  transform: rotate(45deg);
}

#collapse-donation {
  display: grid;
  place-items: center;
  line-height: 1;
  letter-spacing: 0;
  padding: 0;
}

#collapse-donation svg {
  width: 22px;
  height: 22px;
  display: block;
  transform-origin: center;
  transition: transform .35s;
}

#collapse-donation:is(:hover,:focus-visible) svg {
  transform: rotate(90deg);
}

.running-marquee.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.marquee-pause svg {
  display: block;
  width: 22px;
  height: 22px;
}

.marquee-pause .play-symbol,
.marquee-pause[aria-pressed="true"] .pause-symbol {
  display: none;
}

.marquee-pause[aria-pressed="true"] .play-symbol {
  display: block;
}

.marquee-pause:is(:hover,:focus-visible) {
  background: var(--cyan);
  color: var(--ink);
}

#progress .stat-label {
  text-transform: uppercase;
}

.detail-media picture {
  display: contents;
}

.detail-dialog[data-single-image="true"] .gallery-controls {
  display: none;
}

.detail-dialog[data-single-image="true"] #detail-donate {
  width: min(440px,100%);
}

.detail-dialog[data-single-image="true"] .detail-bottom {
  justify-content: center;
}

.detail-word-mask {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  padding-bottom: .15em;
  margin-bottom: -.15em;
}

.detail-word {
  display: inline-block;
  will-change: transform;
}

.detail-dialog .square-close {
  padding: 0;
  line-height: 1;
  letter-spacing: 0;
}

.detail-dialog .square-close svg {
  display: block;
  width: 22px;
  height: 22px;
  transform-origin: center;
  transition: transform .35s;
}

.detail-dialog .square-close:is(:hover,:focus-visible) svg {
  transform: rotate(90deg);
}

.animated-cta {
  transform: none;
}

.animated-cta:is(:hover,:focus-visible) {
  transform: none;
  background: white;
}

.animated-cta .cta-label {
  font-size: inherit;
  transition: transform .35s cubic-bezier(.165,.84,.44,1);
}

.animated-cta svg {
  width: 22px;
  height: 22px;
  flex: none;
  transform-origin: center;
  transition: transform .35s cubic-bezier(.165,.84,.44,1);
}

.animated-cta:is(:hover,:focus-visible) .cta-label {
  transform: translateX(10px);
}

.animated-cta:is(:hover,:focus-visible) svg {
  transform: rotate(45deg);
}

.heading-word-mask,
.hero h1 .heading-word-mask {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  padding-bottom: .15em;
  margin-bottom: -.15em;
}

.heading-word,
.hero h1 .heading-word {
  display: inline-block;
  will-change: transform;
}

#donation-form .field-label,
#donation-form .amount-fieldset legend {
  text-transform: uppercase;
}

/* Donor acknowledgement. */
.donor-thanks {
  text-align: center;
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.donor-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 14px 0;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  line-height: 1.65;
  font-weight: 500;
  font-size: 14px;
}

.donor-names li {
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
  min-width: 0;
}

.donor-name {
  color: var(--paper,#e7edf5);
  overflow-wrap: anywhere;
}

.donor-name.is-anonymous {
  color: #8d9aa9;
  font-weight: 400;
}

.donor-star {
  color: var(--cyan);
  margin: 0 6px;
  flex-shrink: 0;
  align-self: center;
  font-size: 10px;
}

.funding-detail-icon {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #b8fbff99;
  border-radius: 50%;
  background: #081322c9;
  backdrop-filter: blur(12px);
  color: var(--paper);
  pointer-events: none;
  transition: background .35s,color .35s,border-color .35s;
}

.funding-detail-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  transform-origin: center;
  transition: transform .35s cubic-bezier(.25,1,.5,1);
}

.funding-card:is(:hover,:focus-visible) .funding-detail-icon {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.funding-card:is(:hover,:focus-visible) .funding-detail-icon svg {
  transform: rotate(45deg);
}

.hero-background,
.hero-background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -4;
}

.hero-stage {
  position: absolute;
  top: 29%;
  bottom: 90px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: -1;
}

.hero-graphic {
  position: relative;
  width: min(86vw,1050px);
  aspect-ratio: 16/9;
  flex-shrink: 0;
}

.hero-graphic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-graphic-dim {
  opacity: .15;
}

.hero-graphic-fill {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0);
  will-change: clip-path;
}

.hero-progress {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--cyan);
  text-align: center;
  margin-top: 8px;
  min-height: 24px;
}

.hero-trail {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;
}

.hero-trail img {
  position: absolute;
  width: 172.5px;
  height: 218.5px;
  object-fit: cover;
  border: 1px solid #b8fbff55;
  box-shadow: 0 12px 40px #0005;
  opacity: 0;
  will-change: transform,opacity;
}

.celebration-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.effects-preview {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 1010;
  padding: 14px 18px;
  max-width: calc(100vw - 32px);
  border: 1px solid var(--cyan);
  background: #081322f5;
  box-shadow: 0 8px 28px #0008;
  font-size: 13px;
}

.effects-preview p {
  margin-bottom: 10px;
  max-width: 380px;
  line-height: 1.5;
}

.effects-preview button {
  background: var(--cyan);
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 14px;
  margin: 0 8px 8px 0;
}

.effects-preview a {
  text-decoration: underline;
}

.effects-preview small {
  display: block;
  max-width: 380px;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width:1600px) {
  .hero-graphic {
    width: min(76vw,1350px);
  }
}

/* Compact desktop. */
@media (max-width:1199px) {
  .hero h1 {
    max-width: 66%;
  }

  .hero-intro {
    max-width: 250px;
  }

  .reading-copy {
    width: 78%;
  }

  .detail-inner {
    gap: 5%;
  }
}

/* Form and detail column spacing. */
@media (max-width:1000px) {
  #donation-form {
    gap: 35px;
  }

  .transfer-panel {
    padding: 25px;
  }

  .detail-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 5%;
  }

  .donation-panel {
    padding: 28px;
  }

  .donation-panel #donation-form {
    gap: 28px;
  }
}

/* Two-column detail layout. */
@media (min-width:801px) {
  .detail-inner {
    align-items: center;
    align-content: center;
    padding-top: 130px;
    padding-bottom: 130px;
    row-gap: 34px;
  }

  .detail-left {
    align-self: center;
    grid-column: 1;
    grid-row: 1;
  }

  .detail-right {
    align-self: center;
    display: contents;
  }

  .detail-right>p {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0;
  }

  .detail-right .detail-cost {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }

  .hero {
    min-height: 640px;
  }

  .hero-graphic {
    width: min(86vw,1350px,calc((max(640px,100svh) * .71 - 130px) * 1.77778));
  }
}

/* Tablet and stacked detail layout. */
@media (max-width:800px) {
  .hero h1 {
    max-width: none;
  }

  .hero-intro {
    position: relative;
    inset: auto;
    max-width: 330px;
    margin-top: 32px;
    text-align: left;
  }

  .reading-copy {
    width: calc(100% - 48px);
  }

  .detail-inner {
    display: block;
    padding: 110px 24px 180px;
  }

  .detail-right {
    margin-top: 40px;
  }

  .detail-bottom {
    left: 20px;
    right: 20px;
    bottom: 20px;
    justify-content: flex-start;
    gap: 12px;
  }

  #detail-donate {
    width: calc(100% - 116px);
    padding: 16px;
    gap: 8px;
  }

  .gallery-arrow {
    width: 46px;
    height: 48px;
  }

  .gallery-controls {
    gap: 6px;
  }

  .stats>div:last-child {
    gap: 12px;
  }

  .stats>div:last-child .stat-label {
    max-width: 170px;
  }

  .hero-stage {
    top: 36%;
  }

  .hero-graphic {
    width: 96vw;
  }

  :root {
    --headline-size: 52px;
    --font-detail-title: 36px;
  }
}

@media (min-width:601px) {
  .donation-section {
    --closing-space: calc(clamp(280px,25vw,450px) + 100px);
  }
}

/* Mobile layout and type tokens. */
@media (max-width:600px) {
  :root {
    --pad: 22px;
    --headline-size: 36px;
    --font-intro: 14px;
    --font-story: 28px;
    --font-progress: 40px;
    --font-percent-unit: 20px;
    --font-stat-value: 28px;
    --font-donation-cta: 26px;
    --font-panel-title: 28px;
    --font-input: 16px;
    --font-placeholder: 12px;
    --font-checkbox: 14px;
    --font-checkbox-help: 11px;
    --font-success-title: 36px;
    --font-success-copy: 16px;
  }

  .section-pad {
    padding: 60px var(--pad);
  }

  .hero-bottom {
    bottom: 36px;
    align-items: flex-end;
    gap: 20px;
  }

  .hero-bottom p {
    font-size: 17px;
    line-height: 1.55;
  }

  .round-arrow {
    height: 42px;
    width: 42px;
  }

  .story {
    padding-top: 100px;
    padding-bottom: 62px;
    padding-inline: 0;
  }

  .reading-copy p {
    margin-bottom: 52px;
    letter-spacing: -1px;
  }

  .card-art {
    aspect-ratio: 4/5;
  }

  .progress-heading {
    gap: 15px;
    align-items: center;
  }

  .funding-meter {
    margin: 25px 0;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 25px 18px;
  }

  .stats>div:last-child {
    grid-column: 1/-1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }

  .stats strong {
    margin-top: 9px;
  }

  .stats>div:last-child strong {
    margin: 0;
  }

  #donation-form {
    display: block;
  }

  .form-fields {
    padding-bottom: 36px;
  }

  .transfer-panel {
    padding: 26px 20px;
  }

  .submit-button {
    padding: 19px 15px;
  }

  .detail-media {
    height: 100dvh;
  }

  .detail-media img {
    object-position: center;
    opacity: .6;
  }

  .detail-shade {
    background: linear-gradient(180deg,#03122670,#031226dd);
  }

  .detail-inner {
    display: block;
    padding: 110px 24px 45px;
    padding-top: 96px;
    padding-bottom: 155px;
  }

  .close-button {
    top: 16px;
    margin: 16px 16px -60px 0;
  }

  .form-success {
    padding: 10px 0 40px;
  }

  .form-success .primary {
    width: 100%;
    font-size: 13px;
  }

  .funding {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .progress-section {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .donation-section {
    padding-top: 35px;
    padding-bottom: 50px;
    --closing-space: 290px;
  }

  .donation-trigger {
    letter-spacing: -1px;
    text-align: left;
    gap: 16px;
  }

  .donation-trigger>.donation-arrow {
    width: 44px;
    height: 44px;
  }

  .donation-invitation {
    padding: 20px 0 15px;
    padding-bottom: 0;
  }

  .donation-invitation>p {
    font-size: 15px;
    margin-top: 20px;
  }

  .closing-art {
    object-position: 50% 56%;
    width: 165%;
    max-width: none;
    left: -32.5%;
    height: auto;
    object-fit: contain;
    mask-image: linear-gradient(180deg,transparent,black 25%,black 70%,transparent);
    bottom: 185px;
  }

  .donation-panel {
    padding: 24px 18px;
    margin: 24px -6px 0;
    background: #081322f5;
  }

  .panel-heading {
    align-items: flex-start;
    gap: 15px;
  }

  .panel-heading h3 {
    letter-spacing: -1px;
  }

  .panel-heading button {
    font-size: 10px;
    padding-top: 8px;
    white-space: normal;
    max-width: 80px;
  }

  .donation-panel .transfer-panel {
    padding: 24px 16px;
    margin: 0 -10px;
  }

  .amount-options button {
    padding: 14px 3px;
  }

  .paid-row {
    margin-bottom: 18px;
  }

  .hero {
    padding-top: 48px;
    min-height: 720px;
  }

  .reading-copy h2 {
    margin-bottom: 60px;
    text-wrap: initial;
  }

  .hero-intro {
    max-width: 280px;
    margin-top: 26px;
  }

  .reading-copy h2 br {
    display: block;
  }

  .progress-heading h2 {
    max-width: 240px;
  }

  .closing-visual .closing-art {
    width: 165%;
    left: -32.5%;
    object-fit: contain;
    top: 40%;
    bottom: auto;
    height: auto;
    transform: translateY(-50%);
  }

  .panel-heading .square-close {
    width: 44px;
    height: 44px;
  }

  .detail-bottom {
    bottom: max(16px,env(safe-area-inset-bottom));
  }

  .running-marquee {
    margin: 55px 0;
    --moment-gap: 8px;
  }

  .marquee-pause {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .donation-arrow svg {
    width: 22px;
    height: 22px;
  }

  .funding-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .donor-thanks {
    margin-top: 28px;
    padding-top: 24px;
  }

  .donor-names {
    gap: 10px 0;
  }

  .donor-star {
    margin: 0 5px;
  }

  .funding-detail-icon {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .funding-detail-icon svg {
    width: 22px;
    height: 22px;
  }

  .hero-stage {
    top: 35%;
    bottom: 100px;
  }

  .hero-graphic {
    width: 100%;
    max-width: 600px;
  }

  .hero-progress {
    font-size: 12px;
    margin-top: 20px;
  }

  .hero-background img {
    object-position: 50% 50%;
  }

  .hero-shade {
    background: linear-gradient(180deg,#04133333,transparent 50%,#080f1dcc);
  }

  .hero-trail {
    display: none;
  }
}

/* Respect reduced motion, including runtime reveal styles. */
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }

  .js-motion .reveal:not(.visible) {
    opacity: 1;
    transform: none;
  }

  .reading-active .read-word {
    color: var(--paper);
  }

  .marquee-track {
    transform: none;
    will-change: auto;
  }

  .marquee-group[aria-hidden=true] {
    display: none;
  }

  .running-marquee {
    overflow-x: auto;
  }

  .marquee-pause {
    display: none;
  }

  .donation-trigger::before,
  .donation-trigger .donation-label,
  .donation-arrow svg,
  #collapse-donation svg {
    transition: none;
  }

  .detail-word {
    will-change: auto;
  }

  .animated-cta .cta-label,
  .animated-cta svg,
  .detail-dialog .square-close svg {
    transition: none;
  }

  .heading-word {
    will-change: auto;
  }

  .funding-detail-icon,
  .funding-detail-icon svg {
    transition: none;
  }
}

.hero-progress{display:none}
