:root {
  --bg: #f4f4ef;
  --surface: #ffffff;
  --surface-soft: #f6f6f1;
  --line: #d8ddd2;
  --text: #1f2a21;
  --muted: #5f6b61;
  --green: #295b37;
  --green-dark: #183722;
  --green-soft: #dfe8dc;
  --warm: #bc9766;
  --shadow: 0 20px 48px rgba(26, 36, 28, 0.09);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shell: min(1180px, calc(100% - 32px));
  --site-bg-image-1: none;
  --site-bg-image-2: none;
  --site-bg-image-3: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 16%, rgba(207, 224, 197, 0.82), transparent 24%),
    radial-gradient(circle at 78% 10%, rgba(195, 214, 200, 0.44), transparent 20%),
    radial-gradient(circle at 52% 72%, rgba(228, 220, 196, 0.34), transparent 26%),
    linear-gradient(180deg, #f8f6ef 0%, #eef1e8 48%, #edf2eb 100%);
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

body::before {
  opacity: 0.3;
  background-image:
    var(--site-bg-image-1),
    var(--site-bg-image-2),
    var(--site-bg-image-3),
    repeating-radial-gradient(circle at 18% 22%, rgba(41, 91, 55, 0.1) 0 1px, transparent 1px 18px),
    repeating-radial-gradient(circle at 76% 34%, rgba(41, 91, 55, 0.075) 0 1px, transparent 1px 22px),
    linear-gradient(120deg, rgba(255, 255, 255, 0.28), rgba(189, 209, 193, 0.08) 44%, rgba(188, 151, 102, 0.05) 100%);
  background-size: cover, cover, cover, 820px 820px, 960px 960px, 100% 100%;
  background-position: center top, center center, center bottom, 0 0, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-blend-mode: multiply, screen, soft-light, normal, normal, normal;
  animation: driftField 44s ease-in-out infinite alternate;
  filter: saturate(0.7) contrast(0.88) brightness(1.05);
}

body.has-photo-backgrounds::before {
  opacity: 0.24;
}

body::after {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(41, 91, 55, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 91, 55, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.52), transparent 18%),
    radial-gradient(circle at 82% 72%, rgba(217, 228, 213, 0.34), transparent 20%),
    radial-gradient(circle at 48% 58%, rgba(188, 151, 102, 0.08), transparent 16%);
  background-size: 128px 128px, 128px 128px, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  animation: gridFloat 36s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.topline {
  padding: 10px 16px;
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 241, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(95, 107, 97, 0.12);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(260px, auto) 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 8px 14px 8px 10px;
  border-radius: 22px;
  transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.brand img {
  width: auto;
  max-width: clamp(154px, 19vw, 248px);
  height: 86px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 18px rgba(21, 39, 26, 0.12));
  transform-origin: center;
  transition: transform 260ms ease, filter 260ms ease;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.04rem;
}

.brand-copy small {
  color: var(--muted);
}

.brand:hover,
.brand:focus-visible {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 34px rgba(27, 51, 32, 0.08);
}

.brand:hover img,
.brand:focus-visible img {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 14px 24px rgba(21, 39, 26, 0.16));
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  font-weight: 600;
  font-size: 1.03rem;
  letter-spacing: 0.01em;
  transition: color 180ms ease;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--green-dark);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-identity {
  display: flex;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(24, 55, 34, 0.12);
}

.button-primary {
  background: var(--green);
  color: #fff;
}

.button-secondary {
  background: #fff;
  border-color: var(--line);
}

.page {
  padding: 42px 0 80px;
}

.hero-stage {
  width: 100%;
}

.hero-shell {
  width: var(--shell);
  margin: 0 auto;
}

.hero-stack,
.card,
.hero-media-frame,
.contact-card,
.section-panel,
.admin-shell,
.admin-login,
.admin-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-stack {
  padding: 42px;
}

.page-ready .hero-stack {
  animation: heroLift 680ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.lead,
.copy,
.muted {
  color: var(--muted);
  line-height: 1.8;
}

.hero-intro {
  max-width: 70ch;
}

.hero-media-frame {
  overflow: hidden;
  margin-top: 28px;
  position: relative;
}

.hero-media-live .media-box,
.showcase-media .media-box {
  transition: transform 600ms ease;
  will-change: transform;
}

.hero-media-frame video,
.hero-media-frame img,
.showcase-media video,
.showcase-media img,
.gallery-media video,
.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-frame .media-box-image,
.showcase-media .media-box-image {
  background: rgba(20, 36, 25, 0.24);
}

.hero-media-frame .media-box-image img,
.showcase-media .media-box-image img {
  object-fit: contain;
  object-position: center center;
}

.hero-media-frame .media-box {
  aspect-ratio: 16 / 8;
  background: linear-gradient(135deg, #2f5a39, #b89263);
}

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

.hero-overlay-panel {
  display: grid;
  gap: 18px;
}

.hero-media-note {
  padding: 18px 22px 22px;
}

.hero-metrics,
.hero-counters,
.grid-2,
.grid-3,
.grid-4,
.region-list,
.gallery-grid,
.client-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.hero-counters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.card,
.metric-card,
.region-pill {
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card h3 {
  line-height: 1.18;
}

.title-accent {
  display: inline;
  padding: 0 0.2em 0.28em 0.34em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: 1.24;
  border-radius: 0.18em;
  background-image: linear-gradient(180deg, transparent 0, transparent calc(100% - 0.34em), rgba(223, 232, 220, 0.98) calc(100% - 0.34em), rgba(223, 232, 220, 0.98) calc(100% - 0.08em), transparent calc(100% - 0.08em), transparent 100%);
}

.card:hover,
.gallery-card:hover,
.metric-card:hover,
.region-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(24, 55, 34, 0.1);
}

.metric-card,
.region-pill {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
}

.metric-card span,
.tag {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 800;
}

.counter-card strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  color: var(--green-dark);
}

.map-section {
  position: relative;
  isolation: isolate;
}

.map-section::before {
  content: "";
  position: absolute;
  inset: -18px -14px;
  z-index: -1;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(244, 246, 240, 0.98), rgba(239, 243, 236, 0.98));
  box-shadow: 0 18px 40px rgba(24, 55, 34, 0.05);
}

.map-section .section-split {
  margin-bottom: 18px;
  align-items: end;
}

.map-section .section-split .copy {
  max-width: 44ch;
}

.map-layout {
  --map-panel-height: clamp(500px, 58vh, 680px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.map-frame,
.map-legend-scroll,
.map-legend {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.map-frame,
.map-legend-shell,
.map-legend-scroll,
.map-legend,
.map-point-card,
.map-point-summary {
  min-width: 0;
}

.map-legend-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  height: var(--map-panel-height);
  min-height: var(--map-panel-height);
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(41, 91, 55, 0.1);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(24, 55, 34, 0.06);
}

.map-legend-toolbar {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 4px 2px 0;
}

.map-points-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-filter-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.map-filter-chip strong {
  display: inline-flex;
  min-width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(41, 91, 55, 0.08);
  color: var(--green-dark);
  font-size: 0.78rem;
}

.map-points-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-frame {
  padding: 14px;
  height: var(--map-panel-height);
  overflow: hidden;
}

.realizations-map {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(223, 232, 220, 0.95), transparent 18%),
    radial-gradient(circle at 82% 76%, rgba(188, 151, 102, 0.12), transparent 18%),
    linear-gradient(180deg, #f6f6f1 0%, #eef2e8 100%);
}

.realizations-map.leaflet-container {
  width: 100%;
  height: 100%;
  background: #eef2e8;
}

.realizations-map-static {
  display: grid;
  place-items: center;
}

.realizations-map-static-shell {
  display: grid;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 26px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.92), transparent 22%),
    linear-gradient(160deg, #eef5ea 0%, #d7e6d0 100%);
}

.realizations-map-static-svg {
  width: 100%;
  height: 100%;
}

.realizations-map-static-shadow {
  fill: rgba(21, 47, 30, 0.14);
  transform: translate(8px, 10px);
}

.realizations-map-static-fill {
  fill: #c9dfc1;
}

.realizations-map-static-outline {
  fill: none;
  stroke: #1f5f35;
  stroke-width: 4;
}

.static-map-marker-ring {
  fill: rgba(21, 77, 45, 0.2);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
}

.static-map-marker-dot {
  fill: #0f6f39;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 4;
}

.static-map-office-ring {
  fill: rgba(172, 43, 43, 0.16);
}

.static-map-office-dot {
  fill: #b93a3a;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 4;
}

.static-map-office-house {
  fill: #fff7f3;
}

.static-map-office-roof {
  fill: none;
  stroke: #fff7f3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.realizations-map-static-note {
  align-self: end;
  justify-self: start;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #174525;
  font-weight: 800;
}

.leaflet-container img,
.leaflet-container svg,
.leaflet-container canvas {
  max-width: none !important;
}

.realizations-map .leaflet-pane,
.realizations-map .leaflet-tile-pane,
.realizations-map .leaflet-map-pane {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.leaflet-container .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
  width: auto;
  height: auto;
  padding: 0;
}

.leaflet-container img.leaflet-tile,
.realizations-map .leaflet-tile-pane img {
  max-width: none !important;
  max-height: none !important;
  mix-blend-mode: normal !important;
}

.office-map-marker-wrap {
  background: transparent;
  border: 0;
}

.office-map-marker {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #b93a3a;
  border: 3px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(115, 31, 31, 0.28);
}

.office-map-marker-house {
  color: #fff7f3;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-1px);
}

.admin-map-picker-shell {
  display: grid;
  gap: 10px;
}

.admin-map-picker-head {
  display: grid;
  gap: 4px;
}

.admin-map-picker {
  width: 100%;
  min-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(41, 91, 55, 0.12);
  background:
    radial-gradient(circle at 18% 22%, rgba(223, 232, 220, 0.95), transparent 18%),
    linear-gradient(180deg, #f6f6f1 0%, #eef2e8 100%);
}

.map-legend-scroll {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.map-legend {
  height: 100%;
  min-height: 0;
  padding: 4px;
  display: grid;
  grid-auto-rows: max-content;
  gap: 14px;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.map-point-card {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 0;
  padding: 20px 22px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(24, 55, 34, 0.08);
  display: grid;
  gap: 12px;
  text-align: left;
  justify-items: start;
  align-content: start;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease,
    background-color 240ms ease;
}

.map-point-card:hover,
.map-point-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(41, 91, 55, 0.24);
  box-shadow: 0 20px 36px rgba(24, 55, 34, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 242, 0.94));
}

.map-point-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(223, 232, 220, 0.92);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.map-point-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  justify-items: start;
  width: 100%;
}

.map-point-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.map-point-meta {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.map-point-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.map-point-summary h3,
.map-point-meta h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.18;
  color: var(--green-dark);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: pretty;
}

.map-point-card .tag,
.map-point-card h3,
.map-point-card p,
.map-point-card span {
  text-align: left;
}

.map-point-card h3,
.map-point-meta h3 {
  display: block;
  padding: 0;
  background: none;
  letter-spacing: -0.02em;
  white-space: normal;
}

.map-point-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 0.96rem;
  max-width: 52ch;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.map-point-date {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  color: var(--green-dark);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(188, 151, 102, 0.08);
  border: 1px solid rgba(188, 151, 102, 0.14);
}

.map-point-date span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(77, 63, 39, 0.72);
}

.map-point-date strong {
  font-size: 0.86rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.map-point-head .tag,
.map-point-head .map-point-date {
  margin-top: 0;
}

.map-point-head .tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(41, 91, 55, 0.06);
  border: 1px solid rgba(41, 91, 55, 0.08);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.map-point-card .tag {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(41, 91, 55, 0.7);
}

.map-point-card-empty {
  cursor: default;
}

.map-point-card-empty:hover,
.map-point-card-empty:focus-visible {
  transform: none;
}

.map-point-link,
.map-popup-link {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
  word-break: break-word;
}


.section {
  margin-top: 34px;
}

.section-header {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.section-split {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.section-split .copy {
  max-width: 48ch;
}

.region-board,
.showcase {
  display: grid;
  gap: 22px;
}

.region-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.region-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.region-pill strong {
  display: block;
}

.region-pill-main strong {
  font-size: 1.35rem;
  line-height: 1.15;
}

.region-pill-main .copy,
.region-pill-value .copy {
  margin-top: 6px;
}

.region-pill-value {
  text-align: right;
  flex-shrink: 0;
}

.region-pill-value strong {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--green-dark);
}

.showcase {
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
}

.showcase-media {
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #2f5a39, #b89263);
}

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

.gallery-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.gallery-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #4f6b53, #c29a68);
  overflow: hidden;
}

.gallery-media .media-box,
.gallery-media img,
.gallery-media video {
  transition: transform 380ms ease;
}

.gallery-card:hover .gallery-media .media-box,
.gallery-card:hover .gallery-media img,
.gallery-card:hover .gallery-media video {
  transform: scale(1.04);
}

.gallery-content {
  padding: 20px;
}

.badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(22, 31, 24, 0.78);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.chip:hover,
.chip:focus-visible {
  transform: translateY(-1px);
}

.chip.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 32px;
}

.stack {
  display: grid;
  gap: 18px;
}

.media-empty {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 420ms ease var(--reveal-delay, 0ms),
    transform 420ms ease var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-page {
  min-height: 100vh;
  padding: 38px 0 60px;
}

.admin-login {
  width: min(460px, calc(100% - 32px));
  margin: 80px auto 0;
  padding: 24px;
}

.admin-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-nav,
.admin-sections {
  display: grid;
  gap: 16px;
}

.admin-nav {
  align-content: start;
  position: sticky;
  top: 112px;
}

.admin-nav button {
  justify-content: flex-start;
  width: 100%;
  min-height: 62px;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-card {
  padding: 22px;
  animation: fadePanel 220ms ease;
}

.admin-form,
.admin-grid,
.admin-fields {
  display: grid;
  gap: 14px;
}

.admin-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-grid.cols-region {
  grid-template-columns: minmax(0, 1.2fr) 180px auto;
  align-items: end;
}

.admin-fields label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.admin-fields input,
.admin-fields textarea,
.admin-fields select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.admin-fields textarea {
  min-height: 110px;
  resize: vertical;
}

.help {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-subsection {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.admin-subsection strong {
  font-size: 1rem;
}

.admin-subsection-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.admin-repeater,
.admin-client-stack {
  display: grid;
  gap: 14px;
}

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

.background-preset-panel {
  display: grid;
  gap: 14px;
}

.background-preset-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.background-preset-picker {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.background-preset-picker label {
  flex: 1 1 320px;
}

.background-preset-picker select {
  width: 100%;
}

.background-preset-preview-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(41, 91, 55, 0.12);
  box-shadow: 0 10px 24px rgba(24, 55, 34, 0.04);
}

.background-preset-preview {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid rgba(41, 91, 55, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    #edf2e7;
  background-size: cover, cover, cover;
  background-position: center top, center center, center bottom;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-blend-mode: normal, normal, normal;
}

.background-preset-copy {
  display: grid;
  gap: 6px;
}

.background-preset-copy .tag,
.background-preset-copy .help,
.background-preset-copy strong {
  margin: 0;
}

.background-upload-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(41, 91, 55, 0.12);
  box-shadow: 0 10px 24px rgba(24, 55, 34, 0.04);
}

.background-upload-head {
  display: grid;
  gap: 4px;
}

.background-upload-head .tag {
  margin: 0;
}

.background-upload-card .status {
  min-height: 1.2em;
  margin: 0;
}

.admin-repeater-item,
.admin-client-card {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.admin-client-card textarea {
  min-height: 140px;
}

.button-inline {
  width: auto;
  min-height: 44px;
  padding: 0 16px;
}

.upload-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.upload-dropzone {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px dashed rgba(41, 91, 55, 0.35);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 247, 241, 0.96)),
    radial-gradient(circle at top left, rgba(217, 231, 212, 0.32), transparent 45%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.upload-dropzone.compact {
  min-height: 100%;
}

.upload-dropzone-inline {
  padding: 14px 16px;
  gap: 8px;
}

.upload-dropzone-inline.compact {
  min-height: auto;
}

.upload-inline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.map-reference-panel {
  padding: 16px 18px;
  border-style: solid;
  background: var(--surface-soft);
}

.upload-dropzone-inline .upload-row {
  align-items: center;
}

.upload-dropzone-inline .button {
  width: auto;
}

.upload-dropzone.is-dragover {
  border-color: var(--green);
  box-shadow: 0 16px 30px rgba(24, 55, 34, 0.08);
  transform: translateY(-1px);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-dropzone-title {
  margin: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.status {
  margin: 0;
  color: var(--muted);
}

.upload-progress {
  width: min(360px, 100%);
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(41, 91, 55, 0.12);
}

.upload-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6a41, #bc9766);
  transition: width 180ms ease;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.admin-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(24, 55, 34, 0.08);
}

.gallery-admin-item {
  cursor: grab;
}

.gallery-admin-item.is-dragging {
  opacity: 0.55;
}

.gallery-admin-item.is-drop-target {
  border-color: rgba(41, 91, 55, 0.42);
  box-shadow: 0 18px 36px rgba(24, 55, 34, 0.12);
}

.gallery-admin-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.gallery-admin-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(223, 232, 220, 0.85);
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-admin-content {
  display: grid;
  gap: 8px;
}

.gallery-admin-editor textarea {
  min-height: 96px;
}

.gallery-admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: start;
}

.site-footer {
  margin-top: 56px;
  padding: 20px 0 62px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 30px;
  align-items: stretch;
}

.site-footer-main,
.site-footer-panel {
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(41, 91, 55, 0.1);
  box-shadow: 0 22px 48px rgba(24, 55, 34, 0.07);
  backdrop-filter: blur(12px);
}

.site-footer-main {
  display: grid;
  gap: 20px;
}

.site-footer-panel {
  display: grid;
  gap: 20px;
  align-content: start;
}

.footer-location-list {
  display: grid;
  gap: 14px;
}

.footer-location-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(245, 247, 241, 0.95);
  border: 1px solid rgba(41, 91, 55, 0.08);
}

.footer-location-card strong {
  font-size: 1rem;
  line-height: 1.42;
}

.footer-location-lines {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-contact-stack {
  display: grid;
  gap: 12px;
}

.footer-map-shell {
  position: relative;
  min-height: 100%;
  display: grid;
  align-content: stretch;
  gap: 14px;
}

.footer-map {
  min-height: 380px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 18%, rgba(223, 232, 220, 0.82), transparent 28%),
    radial-gradient(circle at 78% 78%, rgba(188, 151, 102, 0.14), transparent 24%),
    linear-gradient(180deg, #fbfbf7 0%, #f0f4eb 100%);
  border: 1px solid rgba(41, 91, 55, 0.08);
}

.footer-map-svg {
  width: 100%;
  height: 100%;
}

.footer-map-shape {
  fill: #cad9c3;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 6;
  stroke-linejoin: round;
}

.footer-map-marker {
  filter: drop-shadow(0 10px 18px rgba(24, 55, 34, 0.12));
}

.footer-map-dot {
  fill: #295b37;
  stroke: #e8f0e5;
  stroke-width: 4;
}

.footer-map-label {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  fill: #295b37;
}

.footer-map-caption {
  align-self: end;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(31, 42, 33, 0.58);
  text-align: right;
}

.footer-region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-region-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(223, 232, 220, 0.82);
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-presence {
  display: grid;
  gap: 22px;
  padding: 34px 36px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(201, 164, 113, 0.16), transparent 22%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.04), transparent 26%),
    linear-gradient(135deg, #11251b 0%, #173329 52%, #0b1712 100%);
  color: #f6f0e7;
  box-shadow: 0 34px 72px rgba(8, 18, 13, 0.32);
}

.footer-presence .eyebrow,
.footer-presence .copy,
.footer-presence .tag,
.footer-presence a,
.footer-presence strong,
.footer-presence h2,
.footer-presence h3 {
  color: inherit;
}

.footer-presence-hero {
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.footer-presence-hero h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.44rem, 2vw, 2.02rem);
  line-height: 1.04;
  color: #fff8ee;
}

.footer-presence-hero .copy {
  max-width: 52ch;
  color: rgba(246, 240, 231, 0.74);
  font-size: 0.98rem;
}

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

.footer-process-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 22px;
  min-height: 168px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(201, 164, 113, 0.07), transparent 36%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(6, 14, 10, 0.12);
}

.footer-process-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.15;
  color: #fff8ee;
}

.footer-process-card .copy {
  color: rgba(246, 240, 231, 0.76);
  font-size: 0.96rem;
}

.footer-presence-contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 16px;
  align-items: start;
  padding: 8px 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 18px 0;
  background:
    none;
  border: 0;
  box-shadow: none;
}

.footer-contact-card strong {
  font-size: 0.98rem;
  line-height: 1.35;
  color: #fffaf0;
}

.footer-contact-card a {
  font-weight: 700;
  color: #f4d8ab;
}

.footer-contact-card .footer-region-list {
  margin-top: 4px;
}

.footer-contact-card .footer-region-chip {
  background: rgba(255, 255, 255, 0.1);
  color: #fffaf0;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

@keyframes heroLift {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadePanel {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes driftField {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-20px, 14px, 0) scale(1.025);
  }
}

@keyframes gridFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(10px, -8px, 0) scale(1.02);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1280px) {
  :root {
    --shell: min(1380px, calc(100% - 72px));
  }

  .page {
    padding: 52px 0 104px;
  }

  .section {
    margin-top: 42px;
  }

  .hero-stack {
    padding: 0;
    overflow: hidden;
  }

  .hero-shell {
    width: min(1480px, calc(100% - 48px));
  }

  h1 {
    max-width: 9.8ch;
    font-size: clamp(3rem, 3.7vw, 4.7rem);
  }

  h2 {
    max-width: 16ch;
    font-size: clamp(2rem, 2.8vw, 3.2rem);
  }

  .lead,
  .copy,
  .muted {
    font-size: 1.02rem;
    line-height: 1.9;
  }

  .hero-intro {
    max-width: 50ch;
  }

  .hero-media-frame {
    margin-top: 0;
    min-height: 78vh;
    display: flex;
    align-items: stretch;
  }

  .hero-media-frame .media-box {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .hero-media-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(19, 37, 24, 0.48) 0%, rgba(28, 55, 35, 0.34) 24%, rgba(28, 55, 35, 0.16) 42%, rgba(28, 55, 35, 0.05) 64%, rgba(28, 55, 35, 0) 100%),
      linear-gradient(180deg, rgba(11, 20, 14, 0.2) 0%, rgba(11, 20, 14, 0.05) 100%);
    z-index: 0;
    pointer-events: none;
  }

  .hero-overlay {
    display: flex;
    align-items: center;
    min-height: 78vh;
    width: 100%;
    max-width: none;
    padding: 48px 52px;
  }

  .hero-overlay-panel {
    width: min(100%, 520px);
    padding: 28px 30px 30px;
    border: 1px solid rgba(227, 236, 226, 0.14);
    border-radius: 30px;
    background:
      linear-gradient(180deg, rgba(34, 57, 39, 0.52) 0%, rgba(20, 36, 25, 0.68) 100%),
      rgba(26, 43, 30, 0.32);
    backdrop-filter: blur(10px);
    box-shadow: 0 26px 64px rgba(10, 21, 13, 0.22);
  }

  .hero-stage[data-hero-layout="horizontal"] .hero-overlay-panel {
    width: min(100%, 860px);
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(220px, 0.82fr);
    grid-template-areas:
      "eyebrow support"
      "title support"
      "title counters"
      "note counters";
    align-items: end;
    gap: 16px 28px;
    padding: 30px 32px 32px;
  }

  .hero-stage[data-hero-layout="horizontal"] #hero-kicker {
    grid-area: eyebrow;
    margin-bottom: 0;
  }

  .hero-stage[data-hero-layout="horizontal"] #hero-title {
    grid-area: title;
    max-width: 11.8ch;
    font-size: clamp(3rem, 3.2vw, 4.2rem);
  }

  .hero-stage[data-hero-layout="horizontal"] #hero-lead {
    grid-area: support;
    align-self: start;
    max-width: 28ch;
    margin-top: 2px;
  }

  .hero-stage[data-hero-layout="horizontal"] .hero-media-note {
    grid-area: note;
    max-width: 40ch;
  }

  .hero-stage[data-hero-layout="horizontal"] .hero-counters {
    grid-area: counters;
    grid-template-columns: 1fr;
    max-width: 220px;
    margin-top: 0;
    align-self: start;
  }

  .hero-stage[data-hero-layout="horizontal"] .hero-overlay {
    align-items: center;
  }

  .hero-overlay-panel .eyebrow,
  .hero-overlay-panel .tag {
    color: rgba(220, 235, 220, 0.9);
  }

  .hero-overlay-panel h1,
  .hero-overlay-panel .lead,
  .hero-overlay-panel .copy,
  .hero-overlay-panel strong,
  .hero-overlay-panel span {
    color: #f8f8f3;
  }

  .hero-media-note {
    padding: 0;
  }

  .hero-counters {
    grid-template-columns: repeat(2, minmax(170px, 220px));
    gap: 16px;
    justify-content: start;
    margin-top: 6px;
  }

  .hero-counters .metric-card {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(240, 246, 238, 0.1);
    box-shadow: none;
  }

  .hero-counters .metric-card span,
  .hero-counters .counter-card strong {
    color: #f8f8f3;
  }

  .hero-counters .counter-card strong {
    font-size: clamp(2rem, 2.4vw, 2.8rem);
  }

  .card,
  .metric-card,
  .region-pill {
    padding: 30px;
  }

  .section-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    align-items: start;
    gap: 46px;
    margin-bottom: 28px;
  }

  .section-split .copy {
    max-width: 36ch;
    justify-self: end;
  }

  .grid-2,
  .gallery-grid,
  .client-grid,
  .process-grid,
  .region-list,
  .map-layout,
  .showcase {
    gap: 24px;
  }

  .map-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  }

  .showcase {
    grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
  }

  .contact-card {
    grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
    gap: 32px;
    padding: 38px 42px;
  }

  .map-point-card,
  .gallery-content {
    padding: 24px;
  }
}

@media (min-width: 1520px) {
  :root {
    --shell: min(1460px, calc(100% - 88px));
  }

  .hero-media-frame,
  .hero-overlay {
    min-height: 82vh;
  }

  .hero-shell {
    width: min(1600px, calc(100% - 56px));
  }

  .hero-overlay {
    padding: 58px 64px;
  }

  .hero-overlay-panel {
    width: min(100%, 560px);
    padding: 30px 32px 32px;
  }

  .hero-stage[data-hero-layout="horizontal"] .hero-overlay-panel {
    width: min(100%, 920px);
    grid-template-columns: minmax(0, 1.24fr) minmax(240px, 0.76fr);
    gap: 18px 30px;
    padding: 34px 36px 36px;
  }

  .hero-stage[data-hero-layout="horizontal"] #hero-title {
    max-width: 12.6ch;
    font-size: clamp(3.2rem, 3vw, 4.35rem);
  }

  .card,
  .metric-card,
  .region-pill {
    padding: 32px;
  }

  .section-split {
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
    gap: 56px;
  }

  .section-split .copy {
    max-width: 38ch;
  }
}

@media (max-width: 1080px) {
  .header-inner,
  .showcase,
  .map-layout,
  .contact-card,
  .admin-layout,
  .section-split {
    grid-template-columns: 1fr;
    display: grid;
  }

  .main-nav,
  .header-cta {
    justify-content: flex-start;
  }

  .admin-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-3,
  .client-grid,
  .gallery-grid,
  .grid-4,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .hero-metrics,
  .hero-counters,
  .grid-2,
  .grid-3,
  .grid-4,
  .process-grid,
  .client-grid,
  .gallery-grid,
  .region-list,
  .map-layout,
  .contact-card,
  .admin-grid.cols-2,
  .admin-grid.cols-3,
  .admin-grid.cols-region,
  .background-upload-grid,
  .admin-nav {
    grid-template-columns: 1fr;
  }

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

  .footer-presence {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .footer-process-grid,
  .footer-presence-contact {
    grid-template-columns: 1fr;
  }

  .footer-presence-hero h2 {
    max-width: none;
  }

  .header-inner {
    display: grid;
    gap: 14px;
  }

  .brand {
    width: 100%;
    justify-content: center;
    padding: 6px 8px;
  }

  .brand img {
    max-width: min(58vw, 220px);
    height: 70px;
  }

  .brand-copy {
    text-align: left;
  }

  .main-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 0.94rem;
  }

  .hero-shell {
    width: min(100%, calc(100% - 20px));
  }

  .hero-stack {
    padding: 20px;
  }

  .hero-media-frame {
    display: grid;
    gap: 18px;
    margin-top: 0;
    overflow: visible;
  }

  .hero-overlay {
    order: 1;
    min-height: auto;
    width: 100%;
    padding: 0;
  }

  .hero-overlay-panel {
    display: grid;
    gap: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .hero-overlay-panel h1,
  .hero-overlay-panel .lead,
  .hero-overlay-panel .copy,
  .hero-overlay-panel strong,
  .hero-overlay-panel span {
    color: inherit;
  }

  .hero-overlay-panel .eyebrow,
  .hero-overlay-panel .tag {
    color: var(--green);
  }

  .hero-stage[data-hero-layout="horizontal"] .hero-overlay-panel,
  .hero-overlay-panel {
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-areas: none;
    align-content: start;
  }

  .hero-stage[data-hero-layout="horizontal"] #hero-kicker,
  .hero-stage[data-hero-layout="horizontal"] #hero-title,
  .hero-stage[data-hero-layout="horizontal"] #hero-lead,
  .hero-stage[data-hero-layout="horizontal"] .hero-media-note,
  .hero-stage[data-hero-layout="horizontal"] .hero-counters {
    grid-area: auto;
    max-width: none;
    align-self: auto;
  }

  .hero-stage[data-hero-layout="horizontal"] #hero-title,
  h1 {
    max-width: 11ch;
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-intro,
  .hero-stage[data-hero-layout="horizontal"] #hero-lead {
    max-width: none;
  }

  #hero-media {
    order: 2;
  }

  .hero-media-frame .media-box {
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    overflow: hidden;
  }

  .hero-media-note {
    padding: 0;
  }

  .region-pill {
    align-items: flex-start;
  }

  .region-pill-value {
    text-align: left;
  }

  .button {
    width: 100%;
  }

  .realizations-map,
  .realizations-map.leaflet-container {
    height: 420px;
    min-height: 420px;
  }

  .map-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .map-frame,
  .map-legend-shell {
    height: auto;
    min-height: 0;
  }

  .map-legend-shell {
    gap: 12px;
    height: auto;
    max-height: 560px;
    overflow: hidden;
  }

  .map-legend-scroll {
    height: min(420px, 70vh);
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(41, 91, 55, 0.1);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
  }

  .map-legend {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 4px;
  }

  .map-point-card,
  .map-legend .map-point-card.card {
    min-height: 0;
    height: auto;
    overflow: visible;
    align-content: start;
    justify-items: start;
    text-align: left;
    padding: 16px 18px;
  }

  .map-point-summary {
    width: 100%;
    justify-items: start;
    text-align: left;
    gap: 6px;
  }

  .map-point-card .tag,
  .map-point-card h3,
  .map-point-card p,
  .map-point-card span {
    text-align: left;
  }

  .map-point-card h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-wrap: pretty;
  }

  .map-point-description,
  .map-point-link {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .projects-map-board {
    padding: 20px;
  }

  .projects-map-grid,
  .projects-map-shape {
    inset: 14px;
  }

  .projects-map-header {
    top: 18px;
    left: 18px;
    max-width: 200px;
  }

  .header-cta,
  .upload-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-subsection-head {
    flex-direction: column;
  }

  .gallery-admin-row {
    grid-template-columns: 1fr;
  }

  .gallery-admin-actions {
    justify-content: stretch;
  }

  .hero-stack,
  .contact-card,
  .admin-shell,
  .admin-login,
  .admin-card {
    border-radius: 20px;
  }
}

@media (min-width: 1280px) {
  :root {
    --shell: calc(100% - 56px);
  }

  .page {
    padding: 12px 0 120px;
  }

  .hero-shell {
    width: calc(100% - 24px);
  }

  .page > .shell {
    width: calc(100% - 56px);
  }

  .hero-stack {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .page > .shell > .section {
    margin-top: 0;
    padding: 42px 0;
    border-top: 1px solid rgba(41, 91, 55, 0.14);
  }

  .page > .shell > .section:first-child {
    padding-top: 28px;
    border-top: 0;
  }

  .card,
  .region-pill,
  .contact-card,
  .map-frame,
  .map-legend,
  .gallery-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .process-grid,
  .client-grid,
  .gallery-grid,
  .region-list {
    column-gap: 40px;
    row-gap: 0;
  }

  .grid-2 > .card,
  .grid-3 > .card,
  .grid-4 > .card,
  .process-grid > .card,
  .client-grid > .card,
  .region-list > .region-pill {
    padding: 28px 0;
    border-top: 1px solid rgba(41, 91, 55, 0.14);
  }

  .gallery-card {
    padding: 0 0 26px;
    border-top: 1px solid rgba(41, 91, 55, 0.14);
  }

  .gallery-content {
    padding: 18px 0 0;
  }

  .gallery-media {
    border-radius: 26px;
  }

  .showcase {
    gap: 40px;
    align-items: stretch;
  }

  .showcase > .card {
    padding: 0 36px 0 0;
    border-right: 1px solid rgba(41, 91, 55, 0.14);
  }

  .showcase-media {
    min-height: 520px;
    border-radius: 28px;
  }

  .map-layout {
    --map-panel-height: clamp(520px, 62vh, 700px);
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
    gap: 28px;
    align-items: stretch;
  }

  .map-frame {
    width: 100%;
    padding: 12px;
    height: var(--map-panel-height);
    min-height: var(--map-panel-height);
    max-width: none;
    margin: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 241, 0.94));
    border: 1px solid rgba(41, 91, 55, 0.1);
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(24, 55, 34, 0.06);
  }

  .realizations-map,
  .realizations-map.leaflet-container {
    height: 100%;
    min-height: 0;
    border-radius: 22px;
  }

  .map-legend-shell {
    gap: 14px;
    height: var(--map-panel-height);
  }

  .map-legend-scroll {
    min-height: 0;
    height: 100%;
  }

  .map-legend {
    grid-template-columns: 1fr;
    align-self: stretch;
    padding: 4px;
    height: 100%;
    max-height: none;
    overflow-y: auto;
    gap: 12px;
  }

.map-legend .map-point-card.card {
    min-height: 0;
    overflow: visible;
    padding: 18px 20px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 251, 247, 0.92));
    border: 1px solid rgba(41, 91, 55, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 22px rgba(24, 55, 34, 0.04);
    justify-items: start;
    text-align: left;
  }

  .map-point-summary {
    justify-items: start;
    text-align: left;
    gap: 9px;
    grid-template-columns: minmax(0, 1fr);
  }

  .map-point-card .tag,
  .map-point-card h3,
  .map-point-card p,
  .map-point-card span {
    text-align: left;
  }

  .map-point-card h3 {
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 0.98rem;
    line-height: 1.32;
    letter-spacing: -0.01em;
    font-weight: 800;
    color: var(--green-dark);
    text-wrap: pretty;
    padding: 0;
    background: none;
  }

  .map-point-card .tag {
    margin-top: 1px;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    color: rgba(41, 91, 55, 0.78);
  }

  .map-point-description {
    margin-top: 2px;
    font-size: 0.86rem;
    line-height: 1.46;
    color: #5d6b61;
    text-wrap: pretty;
  }

  .map-point-link {
    margin-top: 6px;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .site-footer-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  }

  .region-pill {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 22px;
  }

  .region-pill-value {
    text-align: left;
  }

  .contact-card {
    padding: 28px 0 0;
    border-top: 1px solid rgba(41, 91, 55, 0.14);
  }
}

@media (max-width: 1080px) {
  .upload-inline-head {
    flex-direction: column;
    align-items: stretch;
  }
}
