.page-home {
  --home-border: 3px solid var(--c-navy);
  --home-shadow: 6px 6px 0 rgba(27, 47, 92, 0.2);
  --home-gap: 14px;
  overflow-x: clip;
  color: var(--c-ink);
  font-family: var(--font-body);
}

.page-home img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-home .home-section {
  padding: 56px 0;
}

.page-home [id] {
  scroll-margin-top: 96px;
}

.page-home .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-red);
}

.page-home .section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--c-navy);
}

.page-home .section-note {
  max-width: 56ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(36, 26, 22, 0.82);
}

.page-home .section-head {
  margin-bottom: 26px;
}

.page-home .home-hero {
  position: relative;
  padding: 24px 0 0;
  background:
    radial-gradient(circle at 86% 8%, rgba(43, 111, 214, 0.28), transparent 34%),
    radial-gradient(circle at 12% 82%, rgba(217, 154, 43, 0.14), transparent 32%),
    linear-gradient(180deg, var(--c-snow) 0%, #eaf2fb 52%, var(--c-snow) 100%);
  border-bottom: var(--home-border);
}

.page-home .hero-top {
  margin-bottom: 20px;
}

.page-home .hero-grid {
  display: grid;
  gap: 28px;
  padding: 12px 0 34px;
}

.page-home .hero-copy {
  min-width: 0;
}

.page-home .hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-navy);
}

.page-home .hero-kicker .mono {
  padding: 3px 8px;
  background: var(--c-navy);
  color: var(--c-snow);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.page-home .hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 13vw, 8.2rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--c-navy);
}

.page-home .hero-title span {
  color: var(--c-red);
}

.page-home .hero-lede {
  max-width: 42ch;
  margin: 0 0 22px;
  padding-left: 16px;
  border-left: 4px solid var(--c-gold);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.9;
  color: var(--c-ink);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.page-home .hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 14px;
  border-top: var(--home-border);
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-ink);
}

.page-home .hero-meta .mono {
  color: var(--c-red);
  font-weight: 700;
}

.page-home .hero-media {
  position: relative;
  min-height: 280px;
  margin-top: 12px;
}

.page-home .hero-image {
  position: relative;
  z-index: 1;
  border: var(--home-border);
  background: var(--c-sky);
  box-shadow: var(--shadow-hard);
}

.page-home .hero-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-home .hero-version {
  position: absolute;
  right: 10px;
  bottom: -24px;
  z-index: 3;
  padding: 10px 16px;
  border: var(--home-border);
  background: var(--c-gold);
  box-shadow: 6px 6px 0 rgba(27, 47, 92, 0.25);
  text-align: center;
  transform: rotate(-3deg);
}

.page-home .hero-version .mono {
  display: block;
  font-size: clamp(2.8rem, 12vw, 6.5rem);
  font-weight: 800;
  line-height: 0.82;
  color: var(--c-night);
}

.page-home .hero-version small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-ink);
}

.page-home .hero-orbit {
  position: absolute;
  top: -18px;
  left: -12px;
  z-index: 2;
  width: 82px;
  height: 82px;
  border: 3px dashed var(--c-gold);
  border-radius: 50%;
  opacity: 0.85;
  pointer-events: none;
}

.page-home .support-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 20px 0 0;
  padding: 14px 16px;
  background: var(--c-navy);
  color: var(--c-snow);
  border: 3px solid var(--c-gold);
  box-shadow: var(--home-shadow);
  text-decoration: none;
}

.page-home .support-strip__label {
  padding: 4px 10px;
  background: var(--c-red);
  color: var(--c-snow);
  font-size: 12px;
  font-weight: 800;
}

.page-home .support-strip__text {
  font-size: 14px;
  line-height: 1.6;
}

.page-home .support-strip__arrow {
  margin-left: auto;
  font-size: 24px;
  line-height: 1;
  color: var(--c-gold);
}

.page-home .entry-index {
  background: var(--c-mist);
  border-bottom: var(--home-border);
}

.page-home .entry-index__head {
  max-width: 720px;
  margin-bottom: 24px;
}

.page-home .entry-index__note {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(36, 26, 22, 0.82);
}

.page-home .index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--home-gap);
}

.page-home .index-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px;
  background: var(--c-snow);
  border: var(--home-border);
  box-shadow: 5px 5px 0 rgba(27, 47, 92, 0.18);
  color: var(--c-ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.page-home .index-card:hover,
.page-home .index-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(27, 47, 92, 0.22);
  background: var(--c-clay);
}

.page-home .index-card__num {
  color: var(--c-gold);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.page-home .index-card__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--c-navy);
}

.page-home .index-card__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(36, 26, 22, 0.82);
}

.page-home .index-card__link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--c-red);
  font-size: 13px;
  font-weight: 800;
}

.page-home .theme-map {
  position: relative;
  overflow: hidden;
  background: var(--c-snow);
}

.page-home .theme-map__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  pointer-events: none;
}

.page-home .theme-map__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .theme-map__inner {
  position: relative;
  z-index: 1;
}

.page-home .theme-grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .theme-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: rgba(247, 245, 239, 0.94);
  border: var(--home-border);
  box-shadow: var(--home-shadow);
  color: var(--c-ink);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.page-home .theme-item:hover,
.page-home .theme-item:focus-visible {
  transform: translateY(-3px);
  background: var(--c-snow);
}

.page-home .theme-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--c-gold);
  transform: rotate(-12deg);
  transform-origin: left center;
}

.page-home .theme-item__num {
  color: var(--c-red);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.page-home .theme-item__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-navy);
}

.page-home .theme-item__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(36, 26, 22, 0.84);
}

.page-home .theme-item__tags {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-jade);
}

.page-home .theme-item__link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--c-red);
  font-size: 13px;
  font-weight: 800;
}

.page-home .theme-map__foot {
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 4px solid var(--c-red);
  font-size: 14px;
  line-height: 1.8;
}

.page-home .theme-map__foot a,
.page-home .trust-notes a,
.page-home .legal-mini a {
  color: var(--c-red);
  font-weight: 800;
  text-underline-offset: 3px;
}

.page-home .version-section {
  border-top: var(--home-border);
  border-bottom: var(--home-border);
  background:
    linear-gradient(135deg, var(--c-mist) 0%, var(--c-snow) 68%),
    radial-gradient(circle at 92% 12%, rgba(43, 111, 214, 0.16), transparent 30%);
}

.page-home .version-grid {
  display: grid;
  gap: 28px;
}

.page-home .version-copy > p {
  max-width: 44ch;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.85;
}

.page-home .version-card {
  margin: 18px 0 20px;
  padding: 18px;
  background: var(--c-navy);
  color: var(--c-snow);
  border: 3px solid var(--c-gold);
  box-shadow: var(--home-shadow);
}

.page-home .version-card__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  background: var(--c-red);
  color: var(--c-snow);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.page-home .version-card p {
  margin: 0 0 6px;
  color: rgba(247, 245, 239, 0.92);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .version-card p:last-child {
  margin-bottom: 0;
}

.page-home .version-tabs {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.page-home .version-detail {
  border: var(--home-border);
  background: var(--c-snow);
  box-shadow: 4px 4px 0 rgba(27, 47, 92, 0.16);
}

.page-home .version-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--c-navy);
  list-style: none;
}

.page-home .version-detail summary::-webkit-details-marker {
  display: none;
}

.page-home .version-detail summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--c-red);
}

.page-home .version-detail[open] summary::after {
  content: "−";
}

.page-home .version-detail__body {
  padding: 0 14px 14px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(36, 26, 22, 0.84);
}

.page-home .version-media {
  align-self: start;
}

.page-home .version-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .event-section {
  background: var(--c-snow);
}

.page-home .event-banner {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: 24px 20px;
  background:
    linear-gradient(125deg, var(--c-red) 0%, #8f271e 100%);
  color: var(--c-snow);
  border: var(--home-border);
  box-shadow: 8px 8px 0 var(--c-gold);
}

.page-home .event-banner .section-eyebrow {
  color: var(--c-gold);
}

.page-home .event-banner h2 {
  max-width: 18ch;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.page-home .event-banner p {
  max-width: 56ch;
  margin: 0 0 18px;
  color: rgba(247, 245, 239, 0.9);
  font-size: 14.5px;
  line-height: 1.85;
}

.page-home .event-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .event-banner__actions .btn {
  flex: 1 1 auto;
  text-align: center;
}

.page-home .event-banner .btn--outline,
.page-home .support-actions .btn--outline {
  --btn-fg: var(--c-snow);
  --btn-bd: var(--c-snow);
  --btn-bg: transparent;
}

.page-home .event-banner__mark {
  display: none;
  align-self: center;
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 900;
  line-height: 0.8;
  color: rgba(247, 245, 239, 0.14);
  text-align: right;
  user-select: none;
}

.page-home .trust-section {
  background: var(--c-snow);
}

.page-home .trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .trust-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  background: var(--c-mist);
  border: var(--home-border);
  box-shadow: 5px 5px 0 rgba(27, 47, 92, 0.14);
}

.page-home .trust-item:nth-child(2n) {
  background: var(--c-clay);
}

.page-home .trust-item__num {
  color: var(--c-red);
  font-size: clamp(1.9rem, 6vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
}

.page-home .trust-item__label {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--c-navy);
}

.page-home .trust-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(36, 26, 22, 0.82);
}

.page-home .trust-notes {
  margin-top: 20px;
  padding: 16px;
  background: var(--c-clay);
  border-left: 4px solid var(--c-gold);
  font-size: 14px;
  line-height: 1.85;
}

.page-home .trust-notes p {
  margin: 0 0 8px;
}

.page-home .trust-notes p:last-child {
  margin-bottom: 0;
}

.page-home .support-section {
  border-top: 3px solid var(--c-gold);
  background:
    radial-gradient(circle at 90% 10%, rgba(43, 111, 214, 0.28), transparent 34%),
    linear-gradient(135deg, var(--c-night) 0%, #172544 100%);
  color: var(--c-snow);
}

.page-home .support-grid {
  display: grid;
  gap: 28px;
}

.page-home .support-copy {
  min-width: 0;
}

.page-home .support-section .section-eyebrow {
  color: var(--c-gold);
}

.page-home .support-copy h2 {
  max-width: 16ch;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--c-snow);
}

.page-home .support-copy > p {
  max-width: 48ch;
  margin: 0 0 16px;
  color: rgba(247, 245, 239, 0.86);
  font-size: 14.5px;
  line-height: 1.85;
}

.page-home .support-contact {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  background: rgba(247, 245, 239, 0.06);
  border: 3px solid rgba(247, 245, 239, 0.3);
}

.page-home .contact-row {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(247, 245, 239, 0.18);
}

.page-home .contact-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .contact-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-gold);
}

.page-home .contact-value {
  color: var(--c-snow);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.page-home .support-hours {
  margin: 0 0 18px;
  color: rgba(247, 245, 239, 0.76);
  font-size: 13.5px;
  line-height: 1.7;
}

.page-home .support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.page-home .support-actions .btn {
  flex: 1 1 auto;
  text-align: center;
}

.page-home .legal-mini {
  margin: 0;
  color: rgba(247, 245, 239, 0.74);
  font-size: 13px;
  line-height: 1.7;
}

.page-home .legal-mini a {
  color: var(--c-gold);
}

.page-home .support-media {
  align-self: start;
  border-color: var(--c-gold);
}

.page-home .support-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (min-width: 760px) {
  .page-home .home-section {
    padding: 72px 0;
  }

  .page-home .home-hero {
    padding-top: 30px;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 36px;
    padding: 18px 0 44px;
  }

  .page-home .hero-title {
    font-size: clamp(4.8rem, 9vw, 8.2rem);
  }

  .page-home .hero-media {
    margin-top: 0;
  }

  .page-home .hero-version {
    right: -12px;
  }

  .page-home .index-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .theme-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-home .theme-item:nth-child(1) {
    grid-column: span 7;
  }

  .page-home .theme-item:nth-child(2) {
    grid-column: span 5;
  }

  .page-home .theme-item:nth-child(3),
  .page-home .theme-item:nth-child(4),
  .page-home .theme-item:nth-child(5) {
    grid-column: span 4;
  }

  .page-home .theme-item:nth-child(6) {
    grid-column: span 12;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
    background: var(--c-clay);
  }

  .page-home .theme-item:nth-child(6) .theme-item__num {
    grid-row: span 2;
    font-size: 2.4rem;
  }

  .page-home .theme-item:nth-child(6) .theme-item__desc,
  .page-home .theme-item:nth-child(6) .theme-item__tags,
  .page-home .theme-item:nth-child(6) .theme-item__link {
    grid-column: 2;
  }

  .page-home .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .event-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 30px 28px;
  }

  .page-home .event-banner__mark {
    display: block;
  }
}

@media (min-width: 1024px) {
  .page-home .home-section {
    padding: 88px 0;
  }

  .page-home .version-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: start;
    gap: 40px;
  }

  .page-home .support-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: 44px;
  }

  .page-home .trust-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-home .trust-item:nth-child(1) {
    grid-column: span 4;
  }

  .page-home .trust-item:nth-child(2) {
    grid-column: span 4;
  }

  .page-home .trust-item:nth-child(3) {
    grid-column: span 4;
  }

  .page-home .trust-item:nth-child(4) {
    grid-column: span 5;
  }

  .page-home .trust-item:nth-child(5) {
    grid-column: span 3;
  }

  .page-home .trust-item:nth-child(6) {
    grid-column: span 4;
  }

  .page-home .support-media {
    justify-self: end;
    width: 100%;
    max-width: 440px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .index-card,
  .page-home .theme-item {
    transition: none;
  }
}
</main>
