:root {
  --green: #1a3a2a;
  --green-deep: #102c20;
  --gold: #e8a020;
  --cream: #fdfcf8;
  --sand: #f5f0e8;
  --ink: #193426;
  --muted: #746f66;
  --line: rgba(26, 58, 42, .15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.works-hero {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(24px, 8vw, 150px) 34px;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 78% 18%, rgba(232, 160, 32, .08), transparent 25%),
    linear-gradient(135deg, var(--green-deep), var(--green));
}

.works-nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(253, 252, 248, .14);
}

.works-brand,
.breadcrumbs a,
.works-footer a {
  text-decoration: none;
}

.works-brand {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.works-brand img {
  width: 100%;
  height: 100%;
  display: block;
}

.works-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
}

.works-nav-links a {
  color: rgba(253, 252, 248, .78);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}

.works-nav-links a:hover,
.works-nav-links a[aria-current="page"] {
  color: var(--gold);
}

.works-menu-button {
  display: none;
}

.works-menu-panel {
  display: none;
}

.works-hero-content {
  width: min(100%, 1100px);
  margin: auto 0;
  padding: 54px 0 48px;
}

.works-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.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;
}

.brand-art-slot {
  display: block;
  position: relative;
}

.brand-art-source {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 758 / 73;
  overflow: visible !important;
}

.works-hero-brand-art {
  width: min(100%, 860px);
  margin: 4px 0 24px;
}

.works-hero-content>p:last-child {
  margin: 0;
  color: rgba(253, 252, 248, .72);
  font-size: 14px;
  line-height: 1.65;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(253, 252, 248, .54);
  font-size: 11px;
}

.breadcrumbs span:last-child {
  color: var(--cream);
  font-weight: 600;
}

.works-main {
  width: min(1180px, calc(100% - 48px));
  min-height: 460px;
  margin: 0 auto;
  padding: 72px 0 105px;
}

.works-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.works-heading-count-only {
  justify-content: flex-end;
  margin-bottom: 20px;
}

.works-heading h2 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
}

.works-count {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
}

.works-map-section {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 30px;
  align-items: stretch;
  margin: 14px 0 52px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(232, 160, 32, .08), transparent 24%),
    linear-gradient(180deg, #fff, #fbf7ef);
  box-shadow: 0 14px 32px rgba(26, 58, 42, .05);
}

.works-map-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.works-map-copy h2 {
  margin: 0;
  color: var(--green-deep);
  font-family: "DM Serif Display", serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1.02;
}

.works-map-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.works-map-link {
  align-self: flex-start;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.works-map-link:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}

.works-map-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 12px;
}

.works-map-legend {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: map-legend;
}

.works-map-legend li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 11px 13px;
  border: 1px solid rgba(26, 58, 42, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.works-map-legend li::before {
  content: counter(map-legend);
  counter-increment: map-legend;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.works-map-legend strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.works-map-legend span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.works-map-legend .works-map-legend-likes {
  align-self: center;
  color: #c94d3f;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.works-map-legend-button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.works-map-legend-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 12px;
}

.works-map-stage {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 20px;
  background: #dfead5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 18px 40px rgba(26, 58, 42, .14);
}

.works-map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.works-map-town {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 400;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(253, 252, 248, .9);
  border: 1px solid rgba(26, 58, 42, .12);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.works-map-town span {
  display: block;
}

.works-map-pin-shell {
  background: transparent;
  border: 0;
}

.works-map-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24), 0 0 0 6px rgba(232, 160, 32, .12);
  transform: rotate(-45deg);
}

.works-map-pin::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.works-map-pin span {
  position: relative;
  transform: rotate(45deg);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.works-map-pin.is-active {
  background: var(--gold);
  color: var(--green-deep);
}

.leaflet-container {
  background: linear-gradient(180deg, #dfead5, #c8dbbf);
  font-family: "DM Sans", sans-serif;
}

.leaflet-control-zoom {
  border: 0;
  box-shadow: 0 10px 24px rgba(26, 58, 42, .16);
}

.leaflet-control-zoom a {
  border-radius: 10px !important;
  color: var(--green-deep) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border-radius: 16px;
}

.leaflet-popup-content {
  margin: 14px 16px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 6px;
  font-family: "DM Serif Display", serif;
  font-size: 17px;
  font-weight: 400;
}

.leaflet-popup-content a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}


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

.work-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(26, 58, 42, .04);
  transition: transform .28s ease, box-shadow .28s ease;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(26, 58, 42, .12);
}

.work-card.is-highlighted {
  outline: 2px solid rgba(232, 160, 32, .7);
  box-shadow: 0 0 0 6px rgba(232, 160, 32, .14), 0 16px 34px rgba(26, 58, 42, .12);
}

.work-card-media {
  position: relative;
  aspect-ratio: 1.48 / 1;
  overflow: hidden;
  background: linear-gradient(145deg, #d8cfbd, #eee9df);
}

.work-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.work-card:hover .work-card-media img {
  transform: scale(1.045);
}

.work-card-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(26, 58, 42, .5);
  font-family: "DM Serif Display", serif;
  font-size: 58px;
}

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

.work-card h3 {
  margin: 0 0 8px;
  font-family: "DM Serif Display", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.14;
}

.work-likes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 11px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.work-likes span:first-child {
  color: #c94d3f;
  font-size: 12px;
}

.work-likes strong {
  font-size: 12px;
}

.work-likes span:last-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: lowercase;
}

.work-meta {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.work-meta::before {
  content: "◉";
  margin-right: 7px;
  color: var(--gold);
  font-size: 7px;
}

.work-summary {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.work-cta {
  align-self: flex-end;
  margin-top: auto;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.work-cta:hover {
  background: var(--green-deep);
  transform: translateX(2px);
}

.work-cta span {
  margin-left: 7px;
}

.works-status {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.works-status:not(:empty) {
  padding: 48px 20px;
}

.works-status.is-error {
  color: #8c352d;
}

.retry-button,
.load-more {
  border: 1px solid var(--green);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: 600 12px "DM Sans", sans-serif;
}

.retry-button {
  margin-top: 15px;
  padding: 10px 16px;
}

.works-actions {
  display: flex;
  justify-content: center;
  padding-top: 45px;
}

.load-more {
  padding: 13px 20px;
}

.load-more:hover, .retry-button:hover {
  background: var(--green);
  color: #fff;
}

.load-more:disabled {
  cursor: wait;
  opacity: .55;
}

.skeleton {
  min-height: 470px;
  border-color: transparent;
  background: #f3efe7;
  animation: pulse 1.35s ease-in-out infinite alternate;
}

@keyframes pulse {
  to {
    opacity: .48;
  }
}

.works-footer {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 35px clamp(24px, 8vw, 150px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.works-footer-title {
  width: min(100%, 285px);
}

.works-footer p {
  margin: 0;
  text-align: center;
}

.works-footer>a:last-child {
  justify-self: end;
}

.go-to-top {
  position: fixed;
  z-index: 80;
  right: 28px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(245, 170, 28, .6);
  border-radius: 50%;
  color: #f5aa1c;
  background: #173f2f;
  box-shadow: 0 12px 30px rgba(11, 43, 32, .25);
  cursor: pointer;
  font: 400 28px/1 "DM Sans", sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}

.go-to-top:hover {
  color: #173f2f;
  background: #f5aa1c;
}

.go-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@media (max-width: 767px) {
  .works-nav {
    position: relative;
    z-index: 40;
  }

  .works-nav-links {
    display: none;
  }

  .works-menu-button {
    display: grid;
    place-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
  }

  .works-menu-button span {
    display: block;
    width: 17px;
    height: 1px;
    background: currentColor;
    transition: transform .25s ease, opacity .2s ease;
  }

  .works-menu-button.is-open span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .works-menu-button.is-open span:nth-child(2) {
    opacity: 0;
  }

  .works-menu-button.is-open span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .works-menu-panel {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: grid;
    align-content: end;
    padding: 100px 20px 28px;
    color: #fff;
    background: rgba(11, 43, 32, .97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }

  .works-menu-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .works-menu-panel>p {
    margin: 0 0 18px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .works-menu-panel nav {
    display: grid;
    border-top: 1px solid rgba(255, 255, 255, .16);
  }

  .works-menu-panel a {
    min-height: 62px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font: 400 23px/1 "DM Serif Display", serif;
    text-decoration: none;
  }

  .works-menu-panel a[aria-current="page"] {
    color: var(--gold);
  }

  body.works-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 880px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works-footer {
    grid-template-columns: 1fr auto;
  }

  .works-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .works-map-section {
    grid-template-columns: 1fr;
  }

  .works-map-stage {
    min-height: 420px;
  }
}

@media (max-width: 600px) {
  .works-hero {
    min-height: 380px;
    padding: 0 20px 25px;
  }

  .works-nav {
    height: 66px;
  }

  .works-hero-content {
    padding: 48px 0 42px;
  }

  .works-hero-brand-art {
    margin-bottom: 22px;
  }

  .works-hero-content>p:last-child {
    font-size: 12px;
  }

  .works-main {
    width: calc(100% - 32px);
    padding: 55px 0 75px;
  }

  .works-heading {
    display: block;
    margin-bottom: 25px;
  }

  .works-count {
    margin: 12px 0 0;
  }

  .works-map-section {
    margin: 10px 0 40px;
    padding: 20px;
    gap: 20px;
    border-radius: 20px;
  }

  .works-map-stage {
    min-height: 320px;
    border-radius: 16px;
  }

  .works-map-legend li {
    padding: 10px 11px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-card h3 {
    font-size: 24px;
  }

  .works-footer {
    min-height: 190px;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 35px 20px;
    text-align: center;
  }

  .works-footer>a:last-child {
    justify-self: center;
  }

  .works-footer p {
    grid-column: auto;
    grid-row: auto;
  }

  .go-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
