.hd-references {
  background:
    radial-gradient(circle at 88% 8%, rgba(144, 190, 52, 0.12), transparent 32%),
    radial-gradient(circle at 12% 82%, rgba(144, 190, 52, 0.06), transparent 30%),
    linear-gradient(135deg, #1f242b 0%, #252a31 48%, #1d2228 100%);
  color: #fff;
  overflow: hidden;
}

.hd-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hd-eyebrow {
  margin: 0 0 14px;
  color: #8fbd38;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hd-ref-hero {
  padding: 150px 0 76px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 80% 30%, rgba(143,189,56,.14), transparent 32%),
    rgba(255,255,255,.015);
}

.hd-ref-hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: "Archivo Black", Arial, sans-serif;
  font-size: clamp(44px, 6vw, 86px);
  line-height: .96;
  text-transform: uppercase;
  letter-spacing: -2px;
}

.hd-ref-hero h1::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: #8fbd38;
  margin-top: 22px;
}

.hd-ref-hero p:last-child {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.75;
}

.hd-ref-gallery-section {
  padding: 82px 0 96px;
}

.hd-ref-grid {
  columns: 4;
  column-gap: 20px;
}

.hd-ref-item {
  display: block;
  margin-bottom: 20px;
  break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.025);
  cursor: zoom-in;
}

.hd-ref-item img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition:
    transform .35s ease,
    filter .35s ease,
    opacity .35s ease;
}

.hd-ref-item:hover img {
  transform: scale(1.045);
  filter: brightness(1.08);
}

.hd-ref-empty {
  padding: 42px;
  border: 1px dashed rgba(143,189,56,.35);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.hd-ref-empty h2 {
  margin: 0 0 12px;
  font-family: "Archivo Black", Arial, sans-serif;
  text-transform: uppercase;
}

.hd-ref-empty p {
  margin: 0;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}

.hd-ref-cta {
  padding: 70px 0;
  background:
    radial-gradient(circle at 88% 50%, rgba(154,205,50,.2), transparent 28%),
    rgba(255,255,255,.035);
  border-top: 1px solid rgba(255,255,255,.08);
}

.hd-ref-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hd-ref-cta__inner div {
  max-width: 760px;
}

.hd-ref-cta h2 {
  margin: 0;
  font-family: "Archivo Black", Arial, sans-serif;
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1.05;
  text-transform: uppercase;
}

.hd-ref-cta h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: #8fbd38;
  margin-top: 14px;
}

.hd-ref-cta p:not(.hd-eyebrow) {
  margin: 20px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 16px;
  line-height: 1.7;
}

.hd-ref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 4px;
  background: linear-gradient(135deg, #9acd32, #78a81f);
  color: #101419;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .5px;
  box-shadow: 0 12px 35px rgba(154,205,50,.18);
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

.hd-ref-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(154,205,50,.25);
}

/* LIGHTBOX */

body.hd-lightbox-open {
  overflow: hidden;
}

.hd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 70px 90px;
  background: rgba(10, 13, 16, .92);
  backdrop-filter: blur(12px);
}

.hd-lightbox.is-open {
  display: flex;
}

.hd-lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.hd-lightbox__close,
.hd-lightbox__nav {
  border: 1px solid rgba(143,189,56,.45);
  background: rgba(28,33,39,.86);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.hd-lightbox__close:hover,
.hd-lightbox__nav:hover {
  background: rgba(143,189,56,.16);
  color: #8fbd38;
  border-color: rgba(143,189,56,.8);
}

.hd-lightbox__close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}

.hd-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 74px;
  border-radius: 12px;
  font-size: 54px;
  line-height: 1;
}

.hd-lightbox__prev {
  left: 24px;
}

.hd-lightbox__next {
  right: 24px;
}

@media (max-width: 1100px) {
  .hd-ref-grid {
    columns: 3;
  }
}

@media (max-width: 800px) {
  .hd-container {
    width: min(100% - 28px, 1180px);
  }

  .hd-ref-hero {
    padding: 120px 0 64px;
  }

  .hd-ref-hero h1 {
    font-size: clamp(40px, 12vw, 64px);
    letter-spacing: -1px;
  }

  .hd-ref-gallery-section {
    padding: 64px 0;
  }

  .hd-ref-grid {
    columns: 2;
    column-gap: 14px;
  }

  .hd-ref-item {
    margin-bottom: 14px;
    border-radius: 10px;
  }

  .hd-ref-item img {
    border-radius: 10px;
  }

  .hd-ref-cta__inner {
    display: block;
  }

  .hd-ref-btn {
    margin-top: 26px;
  }

  .hd-lightbox {
    padding: 56px 18px;
  }

  .hd-lightbox__nav {
    width: 44px;
    height: 58px;
    font-size: 42px;
  }

  .hd-lightbox__prev {
    left: 10px;
  }

  .hd-lightbox__next {
    right: 10px;
  }

  .hd-lightbox__close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 30px;
  }
}

@media (max-width: 520px) {
  .hd-ref-grid {
    columns: 1;
  }

  .hd-ref-hero p:last-child {
    font-size: 16px;
  }
}