:root {
  --purple: #45116b;
  --teal: #087f98;
  --gold: #f5b51b;
  --white: #ffffff;
  --lavender: #f2eff9;
  --charcoal: #26232b;
  --soft-grey: #f8f7f5;
  --muted: #5f5867;
  --border: rgba(69, 17, 107, 0.12);
  --shadow: 0 22px 60px rgba(69, 17, 107, 0.12);
  --radius: 28px;
  --max-width: 1200px;
  --body-font: "Inter", "Segoe UI", sans-serif;
  --heading-font: "Manrope", "Segoe UI", sans-serif;
  --accent-font: "Parisienne", "Segoe Script", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.text-link,
a[href^="https://www.pembinatrails.ca/"] {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.section-shell {
  padding: 6rem 0;
}

.js .reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

html:not(.js) .reveal,
html:not(.js) .impact-card {
  opacity: 1;
  transform: none;
}

.chapter-panel {
  position: relative;
  overflow: hidden;
  min-height: clamp(260px, 32vw, 400px);
  width: 100%;
  border-top: 1px solid rgba(69, 17, 107, 0.08);
  border-bottom: 1px solid rgba(69, 17, 107, 0.08);
}

.chapter-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  filter: saturate(0.9) contrast(1.02);
  transition: transform 1.1s ease, filter 1.1s ease, opacity 1.1s ease;
  opacity: 0.9;
}

.chapter-panel.is-visible .chapter-photo {
  transform: scale(1);
}

.chapter-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38, 35, 43, 0.52), rgba(38, 35, 43, 0.3), rgba(38, 35, 43, 0.5));
}

.chapter-photo-one {
  background-image: url("Image/TM1.jpg");
}

.chapter-photo-two {
  background-image: url("Image/TM2.jpg");
}

.chapter-photo-three {
  background-image: url("Image/TM3.jpg");
}

.chapter-overlay {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem;
}

.chapter-overlay p {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.8rem, 4.2vw, 3.5rem);
  line-height: 1.08;
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -0.06em;
  max-width: 800px;
  padding: 0 1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
}

.lede-accent {
  font-family: var(--accent-font);
  font-size: clamp(1.9rem, 2.5vw, 2.7rem);
  line-height: 1;
  color: var(--purple);
  margin: 0 0 1.5rem;
}

.eyebrow.two,
.eyebrow.light {
  color: var(--teal);
}

.light {
  color: rgba(255, 255, 255, 0.8);
}

h1,
h2,
h3 {
  font-family: var(--heading-font);
  line-height: 0.98;
  margin: 0 0 1rem;
  letter-spacing: -0.06em;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 800;
  color: var(--purple);
  max-width: 560px;
}

h1 span {
  color: var(--teal);
}

h2 {
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  color: var(--charcoal);
  max-width: 680px;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.2;
}

p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.text-center {
  text-align: center;
}

.narrow {
  max-width: 760px;
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 72px;
  height: 72px;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(69, 17, 107, 0.08);
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(69, 17, 107, 0.12);
}

.scroll-progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scroll-progress-ring-bg,
.scroll-progress-ring-fill {
  fill: none;
  stroke-width: 8;
  cx: 60;
  cy: 60;
  r: 48;
}

.scroll-progress-ring-bg {
  stroke: rgba(69, 17, 107, 0.12);
}

.scroll-progress-ring-fill {
  stroke: url(#ringGradient);
  stroke-linecap: round;
  stroke-dasharray: 301.5928947;
  stroke-dashoffset: 301.5928947;
  transition: stroke-dashoffset 120ms ease-out;
}

.scroll-progress-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--purple);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38, 35, 43, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 88px;
  gap: 1.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
  font-size: 0.9rem;
  color: var(--charcoal);
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  transition: color 180ms ease, opacity 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.site-nav a:not(.nav-cta):hover,
.site-nav a:not(.nav-cta):focus-visible {
  color: var(--purple);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav .nav-cta {
  font-size: 0.72rem;
  min-height: 2.8rem;
  padding: 0.7rem 1.2rem;
  color: var(--white) !important;
  background: var(--purple);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(69, 17, 107, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-nav .nav-cta::after {
  display: none;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--white) !important;
  background: #341050;
  box-shadow: 0 16px 32px rgba(69, 17, 107, 0.22);
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--charcoal);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(69, 17, 107, 0.14);
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(69, 17, 107, 0.2);
  color: var(--purple);
}

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}

.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(circle at top left, rgba(8, 127, 152, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(242, 239, 249, 0.4), rgba(255, 255, 255, 0));
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.hero-image-wrap {
  position: relative;
  background: linear-gradient(135deg, rgba(69, 17, 107, 0.06), rgba(8, 127, 152, 0.08));
  border-radius: 2rem 2rem 0 2rem;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: auto 10% -2rem 10%;
  height: 5rem;
  background: rgba(69, 17, 107, 0.08);
  border-radius: 50%;
  filter: blur(22px);
}

.hero-image-wrap img {
  width: 100%;
  object-fit: cover;
  border-radius: 1.5rem 1.5rem 0 1.5rem;
  background: #f0f3f5;
}

.hero-copy {
  max-width: 640px;
}

.lead {
  font-size: 1.08rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
  max-width: 650px;
}

.candidate-block {
  display: grid;
  gap: 0.15rem;
  margin: 0 0 1.8rem;
  color: var(--charcoal);
}

.candidate-name {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0;
  color: var(--purple);
  font-family: var(--heading-font);
  letter-spacing: -0.05em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.countdown {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(69, 17, 107, 0.08);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1rem;
  box-shadow: 0 18px 44px rgba(38, 35, 43, 0.04);
}

.countdown-heading {
  font-family: "Manrope", sans-serif;
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.countdown-subhead {
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 0.8rem;
}

.time-box {
  background: linear-gradient(180deg, rgba(69, 17, 107, 0.04), rgba(8, 127, 152, 0.04));
  border: 1px solid rgba(69, 17, 107, 0.1);
  border-radius: 1rem;
  padding: 0.9rem 0.5rem;
  text-align: center;
}

.time-box span {
  display: block;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  color: var(--purple);
  line-height: 1.1;
}

.time-box label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-message {
  margin-top: 1rem;
  color: var(--purple);
  font-weight: 700;
}

.hidden {
  display: none;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.about-copy h2 {
  margin-bottom: 1rem;
}

.mini-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 2rem;
}

.mini-highlights span {
  display: inline-flex;
  padding: 0.6rem 0.9rem;
  background: rgba(8, 127, 152, 0.07);
  color: var(--purple);
  border: 1px solid rgba(69, 17, 107, 0.1);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.about-image-wrap {
  position: sticky;
  top: 120px;
  border-radius: 2rem 2rem 2rem 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.impact {
  background: linear-gradient(180deg, #faf9fc, #ffffff);
}

.section-title {
  margin: 0 auto 0.8rem;
  letter-spacing: -0.05em;
  display: block;
  max-width: 760px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.js .impact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 12px 26px rgba(38, 35, 43, 0.04);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js .impact-card:nth-child(1) { transition-delay: 80ms; }
.js .impact-card:nth-child(2) { transition-delay: 160ms; }
.js .impact-card:nth-child(3) { transition-delay: 240ms; }

.js .impact.is-visible .impact-card {
  opacity: 1;
  transform: translateY(0);
}

.impact-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(69, 17, 107, 0.08);
  color: var(--purple);
  font-weight: 800;
  margin-bottom: 1rem;
}

.impact-closing {
  max-width: 740px;
  margin: 2.3rem auto 0;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-family: var(--heading-font);
  color: var(--purple);
  font-weight: 700;
  line-height: 1.4;
}

.priorities {
  background: linear-gradient(180deg, rgba(242, 239, 249, 0.4), rgba(255, 255, 255, 0));
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
}

.priority-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 1.3rem;
  padding: 1.5rem 1.4rem;
}

.priority-number {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
}

.priority-item h3 {
  margin-bottom: 0.45rem;
}

.priority-highlight {
  margin-top: 2.4rem;
  text-align: center;
  color: var(--purple);
  font-size: clamp(1.3rem, 2vw, 2.2rem);
  font-weight: 800;
  font-family: var(--heading-font);
}

.endorsements {
  background: rgba(242, 239, 249, 0.35);
}

.endorsement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
  margin-top: 2rem;
}

.endorsement-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(38, 35, 43, 0.04);
}

.endorsement-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 35%;
}

.endorsement-copy {
  padding: 1.5rem;
}

.endorsement-name {
  margin-bottom: 0.3rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--purple);
  font-family: "Manrope", sans-serif;
}

.endorsement-role {
  margin-bottom: 0.5rem;
  color: var(--teal);
  font-weight: 700;
}

.read-more-toggle {
  padding: 0;
  border: 0;
  margin-top: 0.5rem;
  background: transparent;
  color: var(--purple);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  cursor: pointer;
}

.read-more-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.committee-heading {
  margin: 1.5rem 0 0.5rem;
  color: var(--purple);
  font-family: var(--heading-font);
  font-size: 1rem;
}

.committee-list {
  margin: 0;
  padding-left: 1.25rem;
}

.community-gallery {
  background: linear-gradient(180deg, #faf9fc, #ffffff);
}

.community-gallery-carousel {
  max-width: 900px;
  margin: 2rem auto 0;
}

.community-gallery-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--purple) var(--lavender);
  scrollbar-width: thin;
  border-radius: 1.25rem;
}

.community-gallery-item {
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--lavender);
  box-shadow: 0 12px 26px rgba(38, 35, 43, 0.08);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.community-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 300ms ease;
}

.community-gallery-item--portrait-focus img {
  object-position: center 22%;
}

.community-gallery-item:hover img {
  transform: scale(1.04);
}

.community-gallery-grid:focus-visible,
.community-gallery-button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.community-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.community-gallery-button {
  min-width: 6rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--purple);
  border-radius: 999px;
  color: var(--purple);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.community-gallery-button:hover:not(:disabled) {
  color: var(--white);
  background: var(--purple);
}

.community-gallery-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.community-gallery-play-toggle {
  display: block;
  margin: 0.75rem auto 0;
}

.community-gallery-status {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.community-gallery-status {
  min-width: 6.5rem;
  font-weight: 700;
}

.wellness {
  position: relative;
  background: var(--lavender);
  overflow: hidden;
}

.wellness-curve {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(8, 127, 152, 0.11), transparent 20%),
    radial-gradient(circle at 85% 15%, rgba(69, 17, 107, 0.08), transparent 25%);
}

.wellness-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.wellness-photo-wrap {
  border-radius: 2.4rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.wellness-photo {
  min-height: 620px;
  background-image: url("Image/TM3.jpg");
  background-size: cover;
  background-position: center;
}

.wellness-copy {
  position: relative;
  z-index: 1;
}

.wellness-themes {
  display: grid;
  gap: 1rem;
  margin: 1.6rem 0 1.5rem;
}

.wellness-themes div {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(69, 17, 107, 0.08);
  line-height: 1.5;
}

.wellness-themes strong {
  display: inline-block;
  min-width: 4.5rem;
  color: var(--purple);
}

.wellness-closing {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  color: var(--purple);
  font-weight: 800;
  font-family: var(--heading-font);
  margin-bottom: 0;
}

.vote-cta {
  background: linear-gradient(135deg, var(--purple), #3a0f58);
  color: var(--white);
  padding: 4rem 0 2.8rem;
  position: relative;
  overflow: hidden;
}

.vote-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(245, 181, 27, 0.18), transparent 38%);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.vote-cta.is-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.vote-cta .container {
  position: relative;
  z-index: 1;
}

.vote-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.vote-inner h2 {
  color: var(--white);
  max-width: 540px;
}

.vote-inner p {
  color: rgba(255, 255, 255, 0.82);
}

.candidate-line {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--heading-font);
}

.vote-actions {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.vote-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
  font-weight: 700;
}

.vote-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  text-align: center;
}

.vote-date span {
  font-size: clamp(1.4rem, 2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.vote-date p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.site-footer {
  background: #1b1720;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 920px) {
  .hero-inner,
  .about-inner,
  .wellness-inner,
  .vote-inner,
  .impact-grid,
  .priority-grid,
  .endorsement-grid {
    grid-template-columns: 1fr;
  }

  .chapter-panel {
    min-height: 300px;
  }

  .chapter-overlay {
    min-height: inherit;
  }

  .about-image-wrap {
    position: relative;
    top: 0;
  }

  .hero-inner {
    display: grid;
  }

  .nav-wrap {
    justify-content: flex-end;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    padding: 1rem 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    display: none;
    gap: 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.5rem 0.25rem;
    text-align: left;
    font-size: 0.78rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .vote-inner {
    display: grid;
  }
}

@media (max-width: 640px) {
  .section-shell {
    padding: 4rem 0;
  }

  .chapter-panel {
    min-height: 240px;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .site-header {
    min-height: 74px;
  }

  .nav-wrap {
    min-height: 74px;
  }

  .nav-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }

  .community-gallery-item {
    aspect-ratio: 4 / 3;
  }

  .community-gallery-controls {
    gap: 0.65rem;
  }

  .community-gallery-button {
    min-width: 5.25rem;
    padding: 0.6rem 0.75rem;
  }

  .hero-actions,
  .vote-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .vote-actions .btn {
    width: 100%;
  }

  .scroll-progress {
    width: 62px;
    height: 62px;
    right: 0.9rem;
    bottom: 0.9rem;
  }

  .footer-inner,
  .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
