@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,650..850&display=swap");

:root {
  --ink: #17221f;
  --body: #3c4944;
  --muted: #6d7771;
  --paper: #faf8f0;
  --surface: #ffffff;
  --line: #dfe4dc;
  --green: #003b6f;
  --green-dark: #013261;
  --blue: #006ac6;
  --terracotta: #bd6046;
  --gold: #c89635;
  --soft-green: #e0edff;
  --soft-blue: #ecf3fd;
  --soft-terracotta: #fff0ea;
  --shadow: 0 16px 42px rgba(23, 34, 31, 0.12);
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-snap: cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--body);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
}

body.menu-open {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

body.nav-scrolled .site-header,
body.menu-open .site-header {
  background: rgba(250, 248, 240, 0.94);
  border-bottom-color: rgba(223, 228, 220, 0.86);
  box-shadow: 0 12px 30px rgba(23, 34, 31, 0.08);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: clamp(142px, 14vw, 190px);
  color: #fff;
  text-decoration: none;
  transition: color 220ms ease, opacity 220ms ease;
}

body:not(.nav-scrolled):not(.menu-open) .brand {
  opacity: 0;
  pointer-events: none;
}

.brand img {
  width: clamp(142px, 14vw, 190px);
  height: auto;
  max-height: 54px;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.brand > span {
  display: none;
}

body.nav-scrolled .brand,
body.menu-open .brand {
  color: var(--ink);
}

body.nav-scrolled .brand img,
body.menu-open .brand img {
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  outline: none;
}

body.nav-scrolled .nav-links a,
body.menu-open .nav-links a {
  color: var(--body);
}

body.nav-scrolled .nav-links a:hover,
body.nav-scrolled .nav-links a:focus-visible,
body.nav-scrolled .nav-links a.active,
body.menu-open .nav-links a:hover,
body.menu-open .nav-links a:focus-visible,
body.menu-open .nav-links a.active {
  background: var(--soft-green);
  color: var(--green);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

body.nav-scrolled .menu-button,
body.menu-open .menu-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 10px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--motion-ease), box-shadow 180ms var(--motion-ease), background 180ms ease;
  white-space: nowrap;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(33, 77, 56, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--green-dark);
}

.button.secondary {
  color: var(--green);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.7);
}

.button.outline {
  color: var(--green);
  background: var(--surface);
  border-color: var(--line);
}

.hero {
  --hero-image: url("assets/european-village-aerial-hero.webp");
  --hero-overlay: linear-gradient(90deg, rgba(17, 35, 28, 0.74), rgba(17, 35, 28, 0.42), rgba(17, 35, 28, 0.12));
  --hero-position: center;
  --hero-size: cover;
  position: relative;
  isolation: isolate;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #10231c;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: -22px;
  z-index: 0;
  background: var(--hero-overlay), var(--hero-image) var(--hero-position) / var(--hero-size);
  animation: ev-hero-drift 18s ease-in-out infinite alternate;
  transform: scale(1.02);
  will-change: transform, background-position;
}

.hero::after {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 62%, rgba(200, 150, 53, 0.24), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(0, 106, 198, 0.18), transparent 26%);
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: ev-hero-glow 8s ease-in-out infinite;
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero.architecture {
  --hero-image: url("assets/european-village-architecture.webp");
  --hero-overlay: linear-gradient(90deg, rgba(17, 35, 28, 0.88), rgba(17, 35, 28, 0.50));
  min-height: 420px;
}

.hero.events-hero {
  --hero-image: url("assets/events/european-village-events-hero.webp");
  --hero-overlay: linear-gradient(90deg, rgba(17, 35, 28, 0.78), rgba(17, 35, 28, 0.42), rgba(17, 35, 28, 0.14));
  --hero-position: center 52%;
  min-height: 420px;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 740px;
  padding: 132px 0 88px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  font-weight: 750;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero p,
.page-hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.section {
  position: relative;
  isolation: isolate;
  padding: 82px 0;
}

.section:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  height: 1px;
  background: rgba(0, 59, 111, 0.13);
  transform: translateX(-50%);
  pointer-events: none;
}

.section.compact {
  padding: 58px 0;
}

.section.surface {
  background: var(--surface);
}

.village-day-section {
  z-index: 2;
  min-height: 820px;
  display: grid;
  align-items: center;
  overflow: visible;
  padding: 128px 0 176px;
}

.village-day-section .section-header {
  margin-bottom: 42px;
}

.village-day-section + .section.soft-green {
  padding-top: 152px;
}

.section.soft-green {
  background: var(--soft-green);
}

.section.soft-blue {
  background: var(--soft-blue);
}

.section-header {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-header.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-header h2,
.content-block h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.06;
  font-weight: 740;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.section-header p,
.content-block p {
  margin: 16px 0 0;
  color: var(--body);
  font-size: 18px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.experience-card {
  min-height: 306px;
  padding: 0;
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  background: var(--green);
  box-shadow: var(--shadow);
  transition: transform 340ms var(--motion-ease), box-shadow 340ms var(--motion-ease);
  will-change: transform;
}

.experience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(23, 34, 31, 0.16);
}

.experience-card + .experience-card {
  border-left: 0;
}

.experience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 35, 28, 0.05), rgba(17, 35, 28, 0.84));
}

.experience-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.18), transparent 56%);
  transform: translateX(-120%);
  transition: transform 900ms var(--motion-ease);
}

.experience-card:hover::after,
.experience-card:focus-within::after {
  transform: translateX(120%);
}

.experience-card.food {
  background: url("assets/businesses/red-clover-bg.webp") center / cover;
}

.experience-card.retail {
  background: url("assets/businesses/blooming-flowers-bg.webp") center / cover;
}

.experience-card.services {
  background: url("assets/european-village-architecture.webp") center / cover;
}

.experience-card-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 132px;
  padding: 20px 24px 22px;
  background: rgba(10, 22, 19, 0.76);
  box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  transition: transform 340ms var(--motion-ease), background 340ms ease;
}

.experience-card:hover .experience-card-copy,
.experience-card:focus-within .experience-card-copy {
  background: rgba(10, 22, 19, 0.82);
  transform: translateY(-3px);
}

.experience-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 28px);
  line-height: 1.08;
  font-weight: 740;
  color: #fff;
}

.experience-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.village-signup {
  width: min(780px, 100%);
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 5;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(0, 59, 111, 0.14);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 22px 54px rgba(23, 34, 31, 0.08);
  transform: translate(-50%, 50%);
}

.village-signup-copy,
.village-signup-field {
  min-width: 0;
}

.village-signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  align-items: center;
  gap: 24px;
}

.village-signup-copy {
  padding: 12px 8px 12px 14px;
}

.village-signup-copy h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.08;
  font-weight: 740;
}

.village-signup-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.village-signup-field {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(0, 59, 111, 0.15);
  border-radius: 8px;
  background: #fff;
}

.village-signup-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  padding: 0 12px;
}

.village-signup-field input::placeholder {
  color: rgba(60, 73, 68, 0.58);
}

.village-signup-field button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms var(--motion-ease);
}

.village-signup-field button:hover,
.village-signup-field button:focus-visible {
  background: var(--green-dark);
  transform: translateY(-1px);
  outline: none;
}

.village-signup .form-note {
  grid-column: 1 / -1;
  margin: -2px 8px 8px 14px;
}

/* Honeypot — visually hidden, kept in the layout tree so real input events
   still fire if a bot fills it. Real users never see this. */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Consent checkbox row for the village newsletter signup. */
.village-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 12px 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.village-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.form-error {
  color: #d94f4f;
}

.directory-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 20px;
  align-items: center;
}

.directory-count {
  color: var(--body);
  font-size: 15px;
  white-space: nowrap;
}

.search-field,
.select-field,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 132px;
  padding: 12px 14px;
  resize: vertical;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pills button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--body);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms var(--motion-ease), background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.filter-pills button:hover,
.filter-pills button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.filter-pills button.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  animation: ev-filter-settle 260ms var(--motion-snap);
}

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

.business-card {
  min-height: 380px;
  border: 1px solid rgba(223, 228, 220, 0.9);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 34, 31, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 260ms var(--motion-ease), box-shadow 260ms var(--motion-ease), border-color 260ms ease;
  will-change: transform;
}

.business-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 59, 111, 0.18);
  box-shadow: 0 18px 36px rgba(23, 34, 31, 0.12);
}

.business-media {
  min-height: 220px;
  position: relative;
  background: var(--soft-blue);
  overflow: hidden;
}

.business-media img.cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transform: scale(var(--image-scale, 1));
  transform-origin: center center;
  transition: transform 760ms var(--motion-ease), filter 760ms var(--motion-ease);
  will-change: transform;
}

.business-card:hover .business-media img.cover,
.business-card:focus-within .business-media img.cover {
  filter: saturate(1.08) contrast(1.02);
  transform: scale(var(--image-hover-scale, var(--image-scale, 1.05)));
}

.business-logo {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
}

.business-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 260ms var(--motion-ease);
}

.business-card:hover .business-logo img,
.business-card:focus-within .business-logo img {
  transform: translateY(-2px) scale(1.03);
}

.business-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
}

.business-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.business-body h3 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.14;
  font-weight: 740;
}

.business-visit-link {
  min-height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms var(--motion-ease);
}

.business-visit-link:hover,
.business-visit-link:focus-visible {
  background: var(--green-dark);
  transform: translateY(-1px);
  outline: none;
}

.business-body p {
  margin: 10px 0 0;
  color: var(--body);
  font-size: 15px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.business-footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
}

.image-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.image-frame img,
.image-frame iframe {
  width: 100%;
  border: 0;
}

.image-frame img {
  transition: transform 900ms var(--motion-ease), filter 900ms var(--motion-ease);
}

.image-frame:hover img,
.image-frame:focus-within img {
  filter: saturate(1.04);
  transform: scale(1.025);
}

.map-frame img {
  width: 100%;
  background: var(--surface);
}

.event-list {
  display: grid;
  gap: 18px;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 34, 31, 0.08);
}

.event-card__media {
  min-width: 0;
}

.event-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.event-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

.event-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.event-card h2,
.event-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 740;
}

.event-card p {
  margin: 10px 0 0;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: var(--surface);
  border-radius: 8px;
}

.form-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 34, 31, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.form-note {
  display: none;
  margin-top: 14px;
  color: var(--green);
  font-weight: 750;
}

.form-note.visible {
  display: block;
  animation: ev-note-pop 360ms var(--motion-snap);
}

.site-footer {
  flex-shrink: 0;
  padding: 44px 0;
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.82);
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(8px);
  transition-property: opacity, transform, filter;
  transition-duration: 820ms;
  transition-timing-function: var(--motion-ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal-ready [data-reveal="image"] {
  transform: translate3d(-20px, 20px, 0) scale(0.985);
}

.reveal-ready [data-reveal="card"] {
  transform: translate3d(0, 30px, 0) scale(0.985);
}

.reveal-ready [data-reveal="text"] {
  transform: translate3d(18px, 20px, 0);
}

.reveal-ready .hero [data-reveal],
.reveal-ready .page-hero [data-reveal] {
  transform: translate3d(0, 18px, 0);
}

.reveal-ready .is-visible [data-reveal] {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.reveal-ready .village-signup[data-reveal] {
  transform: translate(-50%, calc(50% + 24px));
}

.reveal-ready .is-visible .village-signup[data-reveal] {
  transform: translate(-50%, 50%);
}

.reveal-ready .is-visible .business-card:hover,
.reveal-ready .is-visible .experience-card:hover {
  transform: translateY(-3px);
}

.motion-ready .hero h1,
.motion-ready .hero p,
.motion-ready .hero-actions {
  animation: ev-copy-rise 880ms var(--motion-snap) both;
}

.motion-ready .hero p {
  animation-delay: 120ms;
}

.motion-ready .hero-actions {
  animation-delay: 220ms;
}

.motion-ready .business-card.motion-enter {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.985);
}

.motion-ready .business-card.motion-enter.motion-enter-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 460ms var(--motion-ease), transform 460ms var(--motion-ease);
  transition-delay: var(--motion-delay, 0ms);
}

@keyframes ev-hero-drift {
  from {
    transform: scale(1.02) translate3d(-8px, -4px, 0);
    background-position: var(--hero-position);
  }
  to {
    transform: scale(1.075) translate3d(12px, 6px, 0);
    background-position: 55% 48%;
  }
}

@keyframes ev-hero-glow {
  0%,
  100% {
    opacity: 0.46;
    transform: translate3d(-1%, 1%, 0) scale(1);
  }
  50% {
    opacity: 0.76;
    transform: translate3d(2%, -1%, 0) scale(1.06);
  }
}

@keyframes ev-copy-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ev-filter-settle {
  0% {
    transform: translateY(0) scale(0.96);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes ev-note-pop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer-grid strong {
  color: #fff;
}

.footer-grid a {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #fff;
}

@media (max-width: 920px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 82px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
  }

  .experience-grid,
  .business-grid,
  .event-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .village-signup {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 620px;
  }

  .split,
  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card,
  .event-card:not(.event-card--recurring-market),
  .event-card.event-card--recurring-market,
  .event-card--recurring-market {
    grid-column: auto;
    grid-row: auto;
    width: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .directory-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .directory-count {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .nav,
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 128px;
    height: auto;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 600px;
    --hero-overlay: linear-gradient(90deg, rgba(17, 35, 28, 0.44), rgba(17, 35, 28, 0.16), rgba(17, 35, 28, 0.02));
    --hero-position: 42% center;
  }

  .hero.architecture {
    min-height: 520px;
    --hero-overlay: linear-gradient(90deg, rgba(17, 35, 28, 0.44), rgba(17, 35, 28, 0.16), rgba(17, 35, 28, 0.02));
    --hero-position: center;
  }

  .hero.events-hero {
    min-height: 520px;
    --hero-overlay: linear-gradient(90deg, rgba(17, 35, 28, 0.66), rgba(17, 35, 28, 0.32), rgba(17, 35, 28, 0.12));
    --hero-position: center;
  }

  .hero-copy {
    padding: 58px 0 70px;
  }

  .hero h1,
  .hero p {
    text-shadow: 0 2px 14px rgba(4, 12, 10, 0.62), 0 1px 3px rgba(4, 12, 10, 0.7);
  }

  .hero h1,
  .page-hero h1 {
    max-width: 9ch;
    font-size: clamp(40px, 11vw, 46px);
  }

  .hero p,
  .page-hero p {
    max-width: 29ch;
    font-size: 17px;
  }

  .section-header h2,
  .content-block h2 {
    font-size: clamp(28px, 8vw, 34px);
  }

  .section-header p,
  .content-block p {
    font-size: 16px;
  }

  .section-header.center h2 {
    max-width: 12ch;
    margin-right: auto;
    margin-left: auto;
  }

  .section-header.center p {
    max-width: 26ch;
    margin-right: auto;
    margin-left: auto;
  }

  .section {
    padding: 58px 0;
  }

  .village-day-section {
    min-height: 900px;
    padding: 86px 0 180px;
  }

  .village-day-section + .section.soft-green {
    padding-top: 190px;
  }

  .village-signup {
    width: min(100% - 28px, 620px);
    padding: 8px;
  }

  .village-signup-copy {
    padding: 10px 10px 2px;
    text-align: center;
  }

  .village-signup-field {
    grid-template-columns: 1fr;
  }

  .village-signup-field input {
    min-height: 44px;
    text-align: center;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .event-card__actions .button {
    width: auto;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .reveal-ready .village-signup[data-reveal] {
    transform: translate(-50%, 50%);
  }

  .hero::before,
  .hero::after,
  .motion-ready .hero h1,
  .motion-ready .hero p,
  .motion-ready .hero-actions,
  .form-note.visible,
  .filter-pills button.active {
    animation: none;
  }

  .hero::before,
  .image-frame:hover img,
  .image-frame:focus-within img,
  .business-card:hover .business-media img.cover,
  .business-card:focus-within .business-media img.cover,
  .business-card:hover .business-logo img,
  .business-card:focus-within .business-logo img {
    transform: none;
  }
}
