.dglm-footer,
.dglm-footer * {
  box-sizing: border-box;
}

.dglm-footer {
  --dglm-footer-cream: #f3e8e1;
  --dglm-footer-paper: #fcf6f0;
  --dglm-footer-rose: #d2a5a1;
  --dglm-footer-gold: #c5a079;
  --dglm-footer-line: rgba(243, 232, 225, 0.11);
  --dglm-footer-muted: rgba(243, 232, 225, 0.61);
  --dglm-footer-x: 0px;
  --dglm-footer-y: 0px;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: clamp(82px, 9vw, 126px) clamp(20px, 5vw, 72px) 30px;
  color: var(--dglm-footer-cream);
  background:
    radial-gradient(circle at 8% 6%, rgba(144, 87, 91, 0.15), transparent 26%),
    linear-gradient(155deg, #291d20 0%, #23181b 55%, #1d1417 100%);
  font-family: "DM Sans", sans-serif;
}

.dglm-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 165, 161, 0.55), transparent);
}

.dglm-footer__inner {
  position: relative;
  z-index: 2;
  width: min(1230px, 100%);
  margin: 0 auto;
}

.dglm-footer__primary {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(48px, 8vw, 130px);
  padding-bottom: clamp(58px, 7vw, 92px);
  border-bottom: 1px solid var(--dglm-footer-line);
}

.dglm-footer__identity {
  min-width: 0;
}

.dglm-footer__brand {
  display: flex;
  align-items: center;
  gap: clamp(17px, 2.5vw, 27px);
}

.dglm-footer__mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(72px, 8vw, 96px);
  height: clamp(72px, 8vw, 96px);
  border: 1px solid rgba(210, 165, 161, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
}

.dglm-footer__mark::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid transparent;
  border-top-color: rgba(197, 160, 121, 0.48);
  border-radius: 50%;
  animation: dglm-footer-spin 15s linear infinite;
}

.dglm-footer__mark img {
  display: block;
  width: 83%;
  height: 83%;
  object-fit: contain;
}

.dglm-footer__brand div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.dglm-footer__brand strong {
  color: var(--dglm-footer-paper);
  font-family: "Instrument Serif", serif;
  font-size: clamp(31px, 4vw, 52px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.dglm-footer__brand div > span {
  color: var(--dglm-footer-rose);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dglm-footer__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 33px;
}

.dglm-footer__credentials span {
  padding: 9px 12px;
  border: 1px solid rgba(243, 232, 225, 0.1);
  border-radius: 999px;
  color: rgba(243, 232, 225, 0.72);
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  letter-spacing: 0.035em;
}

.dglm-footer__instagram {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  color: var(--dglm-footer-cream);
  text-decoration: none;
}

.dglm-footer__instagram > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.dglm-footer__instagram small,
.dglm-footer__location-block small {
  color: var(--dglm-footer-rose);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dglm-footer__instagram i {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(210, 165, 161, 0.25);
  border-radius: 50%;
  color: var(--dglm-footer-rose);
  font-size: 12px;
  font-style: normal;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.dglm-footer__instagram:hover i {
  color: #2b1d20;
  background: var(--dglm-footer-rose);
  transform: rotate(45deg);
}

.dglm-footer__label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--dglm-footer-rose);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dglm-footer__label > span {
  width: 27px;
  height: 1px;
  background: rgba(210, 165, 161, 0.6);
}

.dglm-footer__navigation ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 26px;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
}

.dglm-footer__navigation li {
  border-bottom: 1px solid var(--dglm-footer-line);
}

.dglm-footer__navigation a {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  color: rgba(243, 232, 225, 0.78);
  font-size: 11px;
  text-decoration: none;
  transition: color 0.25s ease, padding 0.25s ease;
}

.dglm-footer__navigation a small {
  color: rgba(210, 165, 161, 0.55);
  font-size: 7px;
}

.dglm-footer__navigation a i {
  color: rgba(210, 165, 161, 0.45);
  font-size: 10px;
  font-style: normal;
  opacity: 0;
  transform: translate(-5px, -5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dglm-footer__navigation a:hover {
  padding-left: 4px;
  color: var(--dglm-footer-paper);
}

.dglm-footer__navigation a:hover i {
  opacity: 1;
  transform: translate(0, 0);
}

.dglm-footer__locations {
  padding: clamp(54px, 6vw, 76px) 0;
  border-bottom: 1px solid var(--dglm-footer-line);
}

.dglm-footer__locations-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.dglm-footer__locations-heading > small {
  color: rgba(243, 232, 225, 0.36);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

.dglm-footer__location {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 340px;
  flex-direction: column;
  padding: clamp(25px, 3vw, 35px);
  overflow: hidden;
  border: 1px solid rgba(243, 232, 225, 0.1);
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.015));
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.dglm-footer__location::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--dglm-footer-rose), transparent);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.dglm-footer__location:hover {
  border-color: rgba(210, 165, 161, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.057), rgba(255, 255, 255, 0.022));
  transform: translateY(-4px);
}

.dglm-footer__location:hover::before {
  width: 72%;
}

.dglm-footer__location-number {
  color: var(--dglm-footer-gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.dglm-footer__location h2 {
  max-width: 280px;
  margin: 14px 0 25px;
  color: var(--dglm-footer-paper);
  font-family: "Instrument Serif", serif;
  font-size: clamp(27px, 2.5vw, 37px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}

.dglm-footer__location-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 19px;
  color: var(--dglm-footer-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.55;
}

.dglm-footer__location-block a {
  width: fit-content;
  color: var(--dglm-footer-cream);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}

.dglm-footer__location-block a:hover {
  color: var(--dglm-footer-rose);
}

.dglm-footer__location-service {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(243, 232, 225, 0.08);
  color: rgba(243, 232, 225, 0.44);
  font-size: 9px;
}

.dglm-footer__location-service i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dglm-footer-gold);
  box-shadow: 0 0 0 4px rgba(197, 160, 121, 0.08);
}

.dglm-footer__institutional {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 20px;
  padding: 34px 0;
  border-bottom: 1px solid var(--dglm-footer-line);
}

.dglm-footer__institutional-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(210, 165, 161, 0.24);
  border-radius: 50%;
  color: var(--dglm-footer-rose);
  font-family: "Instrument Serif", serif;
  font-size: 17px;
}

.dglm-footer__institutional > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 88px);
}

.dglm-footer__institutional p {
  margin: 0;
  color: rgba(243, 232, 225, 0.48);
  font-size: 10px;
  line-height: 1.65;
}

.dglm-footer__legal {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 34px;
  padding-top: 28px;
}

.dglm-footer__legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 24px;
}

.dglm-footer__legal nav a {
  position: relative;
  color: rgba(243, 232, 225, 0.5);
  font-size: 9px;
  text-decoration: none;
  transition: color 0.25s ease;
}

.dglm-footer__legal nav a:hover {
  color: var(--dglm-footer-cream);
}

.dglm-footer__signature {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
  color: rgba(243, 232, 225, 0.38);
  font-size: 9px;
  text-align: right;
}

.dglm-footer__signature a {
  position: relative;
  color: var(--dglm-footer-rose);
  font-weight: 700;
  text-decoration: none;
}

.dglm-footer__signature a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: var(--dglm-footer-rose);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.dglm-footer__signature a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.dglm-footer__ambient,
.dglm-footer__ambient > span {
  position: absolute;
  pointer-events: none;
}

.dglm-footer__ambient {
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.dglm-footer__glow {
  border-radius: 50%;
}

.dglm-footer__glow--one {
  top: -190px;
  right: -130px;
  width: 450px;
  height: 450px;
  background: rgba(152, 93, 97, 0.08);
  transform: translate3d(var(--dglm-footer-x), var(--dglm-footer-y), 0);
  transition: transform 0.8s ease-out;
}

.dglm-footer__glow--two {
  bottom: -220px;
  left: -170px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(210, 165, 161, 0.07);
  transform: translate3d(calc(var(--dglm-footer-x) * -0.7), calc(var(--dglm-footer-y) * -0.7), 0);
  transition: transform 0.8s ease-out;
}

.dglm-footer__contour {
  border: 1px solid rgba(210, 165, 161, 0.055);
  border-radius: 42% 58% 67% 33% / 46% 35% 65% 54%;
}

.dglm-footer__contour--one {
  top: 28%;
  left: -65px;
  width: 180px;
  height: 180px;
  animation: dglm-footer-spin 29s linear infinite;
}

.dglm-footer__contour--two {
  right: -40px;
  bottom: 20%;
  width: 130px;
  height: 130px;
  animation: dglm-footer-spin 23s linear infinite reverse;
}

.dglm-footer-motion [data-dglm-footer-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--dglm-footer-order, 0) * 70ms);
}

.dglm-footer-motion.is-visible [data-dglm-footer-reveal] {
  opacity: 1;
  transform: translateY(0);
}

@keyframes dglm-footer-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .dglm-footer__primary {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .dglm-footer__navigation {
    max-width: 620px;
  }

  .dglm-footer__location-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dglm-footer__location:last-child {
    grid-column: 1 / -1;
    min-height: 300px;
  }

  .dglm-footer__legal {
    grid-template-columns: 1fr;
  }

  .dglm-footer__signature {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 650px) {
  .dglm-footer {
    padding: 72px 20px 25px;
  }

  .dglm-footer__primary {
    gap: 48px;
    padding-bottom: 56px;
  }

  .dglm-footer__brand {
    align-items: flex-start;
  }

  .dglm-footer__mark {
    width: 64px;
    height: 64px;
  }

  .dglm-footer__brand strong {
    font-size: clamp(30px, 9.4vw, 41px);
  }

  .dglm-footer__brand div > span {
    font-size: 7px;
    line-height: 1.5;
  }

  .dglm-footer__credentials {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 27px;
  }

  .dglm-footer__navigation ul {
    gap: 0 18px;
  }

  .dglm-footer__locations {
    padding: 51px 0;
  }

  .dglm-footer__locations-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dglm-footer__location-grid {
    grid-template-columns: 1fr;
  }

  .dglm-footer__location,
  .dglm-footer__location:last-child {
    grid-column: auto;
    min-height: 315px;
    padding: 28px 24px;
  }

  .dglm-footer__location h2 {
    font-size: 33px;
  }

  .dglm-footer__institutional {
    grid-template-columns: 1fr;
  }

  .dglm-footer__institutional > div {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dglm-footer__legal nav {
    display: grid;
  }

  .dglm-footer__signature {
    line-height: 1.55;
  }
}

@media (max-width: 400px) {
  .dglm-footer__brand {
    gap: 14px;
  }

  .dglm-footer__mark {
    width: 55px;
    height: 55px;
  }

  .dglm-footer__brand strong {
    font-size: 29px;
  }

  .dglm-footer__navigation ul {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dglm-footer *,
  .dglm-footer *::before,
  .dglm-footer *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .dglm-footer-motion [data-dglm-footer-reveal] {
    opacity: 1;
    transform: none;
  }
}
