.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 5.5vw, 5rem) 0 clamp(2.5rem, 4vw, 4rem);
  background: var(--cream);
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto 40%;
  height: 80%;
  background:
    radial-gradient(closest-side, rgba(239, 124, 44, 0.18), rgba(239, 124, 44, 0) 70%),
    radial-gradient(closest-side at 30% 60%, rgba(91, 158, 62, 0.14), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 28, 56, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(120deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(120deg, transparent 35%, #000 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.75rem, 5vw, 4.55rem);
  line-height: 1.01;
  letter-spacing: -0.028em;
}

.hero h1 em {
  display: inline;
  font-style: italic;
  color: var(--orange-deep);
  background-image: linear-gradient(transparent 74%, rgba(239, 124, 44, 0.22) 74%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lede {
  max-width: 48ch;
  margin-top: 1.5rem;
  font-size: 1.06rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero__note .icon {
  width: 15px;
  height: 15px;
  color: var(--green-deep);
}

.hero__stage {
  position: relative;
  min-width: 0;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(11, 28, 56, 0.08);
  border-radius: 26px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}

.hero-slider__viewport {
  position: relative;
  aspect-ratio: 5 / 4.1;
  background: var(--ink);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease), visibility 0.7s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 28, 56, 0) 30%, rgba(8, 20, 40, 0.35) 55%, rgba(8, 20, 40, 0.92) 100%);
}

.hero-slide__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(250, 245, 234, 0.92);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-slide__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 1.35rem 1.4rem;
}

.hero-slide__kicker {
  margin-bottom: 0.4rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-slide__title {
  max-width: 22ch;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.15;
  color: #fff;
}

.hero-slide__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid rgba(255, 253, 248, 0.35);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 253, 248, 0.9);
  transition: color 0.2s, border-color 0.2s;
}

.hero-slide__link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-slide__link .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s;
}

.hero-slide__link:hover .icon {
  transform: translateX(3px);
}

.hero-slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid rgba(250, 245, 234, 0.1);
  background: var(--ink);
  color: var(--cream);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(250, 245, 234, 0.32);
  transition: width 0.3s, background 0.3s;
}

.hero-dot.is-active {
  width: 26px;
  background: var(--orange);
}

.hero-slider__nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-slider__count {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(250, 245, 234, 0.6);
  font-variant-numeric: tabular-nums;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(250, 245, 234, 0.22);
  border-radius: 50%;
  color: var(--cream);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.icon-btn .icon {
  width: 15px;
  height: 15px;
}

.hero-progress {
  height: 3px;
  overflow: hidden;
  background: rgba(250, 245, 234, 0.12);
}

.hero-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
}

.hero-progress__bar.is-running {
  animation: sliderProgress 7s linear forwards;
}

.hero-progress__bar.is-paused {
  animation-play-state: paused;
}

@keyframes sliderProgress {
  from { width: 0; }
  to { width: 100%; }
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.15fr;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--line);
}

.hero-stat:nth-child(3) {
  border-right: 0;
}

.hero-stat__num {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-stat__label {
  max-width: 24ch;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.hero-stat__note {
  display: flex;
  align-self: center;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
}

.upcoming-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: stretch;
  gap: 1.5rem;
}

.featured-event {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.featured-event__media {
  position: relative;
  min-height: 360px;
  background: var(--cream-2);
}

.featured-event__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-event__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 28, 56, 0.12), rgba(11, 28, 56, 0.45));
}

.featured-event__edition {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 28, 56, 0.72);
  color: var(--cream);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.date-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 0.5rem 0.55rem;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1;
  box-shadow: 0 10px 24px -12px rgba(11, 28, 56, 0.5);
}

.date-badge strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.date-badge span {
  margin-top: 0.18rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

.event-card__media .date-badge {
  top: 0.85rem;
  left: 0.85rem;
}

.date-badge--lg {
  left: 1rem;
  bottom: 1rem;
  min-width: 64px;
  padding: 0.6rem 0.7rem;
}

.date-badge--lg strong {
  font-size: 1.35rem;
}

.date-badge--lg span {
  font-size: 0.6rem;
}

.featured-event__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: clamp(1.5rem, 2.8vw, 2.2rem);
}

.featured-event__body h3 {
  max-width: 24ch;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.12;
}

.featured-event__body > p {
  font-size: 0.93rem;
  color: var(--muted);
}

.featured-event__note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(239, 124, 44, 0.18);
  border-radius: 10px;
  background: rgba(239, 124, 44, 0.08);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--orange-deep);
}

.featured-event__note .icon {
  width: 14px;
  height: 14px;
  margin-top: 0.12rem;
}

.featured-event__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.featured-event__actions .btn {
  padding: 0.82rem 1.2rem;
  font-size: 0.85rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip--civic {
  background: rgba(31, 79, 160, 0.1);
  color: #173e80;
}

.chip--livelihoods {
  background: rgba(91, 158, 62, 0.13);
  color: #3f7a2a;
}

.chip--sports {
  background: rgba(239, 124, 44, 0.13);
  color: #b95c16;
}

.chip--health {
  background: rgba(15, 118, 110, 0.11);
  color: #0b5e58;
}

.chip--capacity {
  background: rgba(232, 169, 62, 0.16);
  color: #8a6212;
}

.chip--provisional {
  background: rgba(232, 169, 62, 0.16);
  color: #8a6212;
}

.chip--open {
  background: rgba(91, 158, 62, 0.14);
  color: #3f7a2a;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.event-meta .icon {
  width: 13px;
  height: 13px;
  color: var(--orange-deep);
}

.agenda {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.agenda__title {
  padding: 0 0.35rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.agenda-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.95rem 0.35rem;
  border-top: 1px solid var(--line);
  text-align: left;
  transition: background 0.2s;
}

.agenda-item:hover {
  background: rgba(250, 245, 234, 0.7);
}

.agenda-item__date {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  line-height: 1;
}

.agenda-item__date strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
}

.agenda-item__date span {
  margin-top: 0.2rem;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.agenda-item__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 0;
}

.agenda-item__name {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
}

.agenda-item__meta {
  font-size: 0.73rem;
  color: var(--muted);
}

.agenda-item__arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.agenda-item:hover .agenda-item__arrow {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.agenda__foot {
  margin-top: auto;
  padding: 1rem 0.35rem 0.1rem;
  border-top: 1px solid var(--line);
}

.agenda__foot p {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.agenda__foot .link-arrow {
  font-size: 0.8rem;
}

.alerts {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--cream);
}

.alerts::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(239, 124, 44, 0.35), transparent);
  pointer-events: none;
}

.alerts__copy {
  position: relative;
  z-index: 1;
}

.alerts__copy .eyebrow {
  margin-bottom: 0.5rem;
}

.alerts__copy h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.alerts__copy p:last-child {
  max-width: 46ch;
  font-size: 0.87rem;
  color: rgba(250, 245, 234, 0.68);
}

.alerts__form {
  position: relative;
  z-index: 1;
}

.alerts__field {
  display: flex;
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid rgba(250, 245, 234, 0.16);
  border-radius: 999px;
  background: rgba(250, 245, 234, 0.08);
}

.alerts__field input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: 0.9rem;
  outline: none;
}

.alerts__field input::placeholder {
  color: rgba(250, 245, 234, 0.45);
}

.alerts__field .btn {
  flex: none;
}

.form-note {
  min-height: 1.1em;
  margin: 0.55rem 0.9rem 0;
  font-size: 0.76rem;
  color: var(--gold);
}

.form-note.is-error {
  color: #ffb4a1;
}

.events-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-chip {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-chip:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.search {
  position: relative;
  flex: none;
}

.search .icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search input {
  width: 250px;
  height: 42px;
  padding: 0 1rem 0 2.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(239, 124, 44, 0.14);
}

.search input::placeholder {
  color: var(--muted);
}

.events-count {
  margin-bottom: 1.4rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.event-card:hover {
  border-color: rgba(11, 28, 56, 0.18);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.event-card.is-hidden {
  display: none;
}

.event-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
}

.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.event-card:hover .event-card__media img {
  transform: scale(1.05);
}

.event-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 28, 56, 0.1), transparent 40%);
  pointer-events: none;
}

.event-card__media .chip {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  background: rgba(255, 253, 248, 0.93);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.event-card__media .chip--civic { color: #173e80; }
.event-card__media .chip--livelihoods { color: #3f7a2a; }
.event-card__media .chip--sports { color: #b95c16; }
.event-card__media .chip--health { color: #0b5e58; }
.event-card__media .chip--capacity { color: #8a6212; }

.event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
}

.event-card__body h3 {
  font-size: 1.09rem;
  line-height: 1.22;
}

.event-card__body h3 a {
  transition: color 0.2s;
}

.event-card__body h3 a:hover {
  color: var(--orange-deep);
}

.event-card__excerpt {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.event-card__link {
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.8rem;
}

.events-empty {
  margin: 2rem 0;
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
  color: var(--muted);
}

.events-empty button {
  font-weight: 600;
  color: var(--orange-deep);
  text-decoration: underline;
}

.events-more {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
}

.events-more.is-hidden {
  display: none;
}
