.ymi-site-footer {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0 !important;
  color: #f5ead2;
  background-color: #050817;
  background-position: center;
  background-size: cover;
  border-top: 1px solid rgba(231, 164, 48, 0.3);
  isolation: isolate;
}

.ymi-site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(5, 8, 23, 0.98) 0%, rgba(5, 8, 23, 0.93) 58%, rgba(11, 14, 36, 0.9) 100%),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(255, 255, 255, 0.015) 78px 79px);
}

.ymi-footer-glow {
  position: absolute;
  width: 430px;
  height: 430px;
  right: -190px;
  top: -230px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 164, 48, 0.22), rgba(231, 164, 48, 0) 68%);
  pointer-events: none;
}

.ymi-footer-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 26px;
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(320px, 1.3fr) minmax(180px, 0.65fr);
  grid-template-areas:
    "brand connect nav"
    "brand follow nav"
    "bottom bottom bottom";
  column-gap: clamp(42px, 7vw, 105px);
  row-gap: 34px;
}

.ymi-footer-brand-block { grid-area: brand; }
.ymi-footer-connect { grid-area: connect; }
.ymi-footer-navigation { grid-area: nav; }
.ymi-footer-follow { grid-area: follow; }
.ymi-footer-bottom { grid-area: bottom; }

.ymi-footer-brand {
  display: inline-block;
  color: #f8ecd3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.7vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.ymi-footer-brand-block > p {
  max-width: 330px;
  margin: 24px 0 28px;
  color: #a8acc5;
  font-size: 16px;
  line-height: 1.75;
}

.ymi-footer-rule {
  display: block;
  width: 74px;
  height: 2px;
  background: linear-gradient(90deg, #efa429, rgba(239, 164, 41, 0));
}

.ymi-footer-eyebrow {
  margin: 0 0 13px !important;
  color: #efa429 !important;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1.2 !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ymi-footer-connect h2 {
  max-width: 520px;
  margin: 0;
  color: #f7ecd6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  font-weight: 500;
}

.ymi-footer-connect > p:not(.ymi-footer-eyebrow) {
  max-width: 560px;
  margin: 20px 0 24px;
  color: #a8acc5;
  line-height: 1.75;
}

.ymi-footer-email {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  min-width: min(100%, 330px);
  padding: 15px 18px;
  color: #f7ecd6;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(239, 164, 41, 0.34);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ymi-footer-email:hover,
.ymi-footer-email:focus-visible {
  border-color: #efa429;
  background: rgba(239, 164, 41, 0.08);
  transform: translateY(-2px);
}

.ymi-footer-email span {
  color: #8e93ad;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ymi-footer-email strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 600;
}

.ymi-footer-navigation > div {
  display: grid;
  gap: 12px;
}

.ymi-footer-navigation a {
  width: fit-content;
  color: #d8d2c6;
  font-size: 15px;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.ymi-footer-navigation a:hover,
.ymi-footer-navigation a:focus-visible {
  color: #efa429;
  transform: translateX(4px);
}

.ymi-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ymi-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  color: #f4e9d2;
  text-decoration: none;
  border: 1px solid rgba(244, 233, 210, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  transition: color 170ms ease, border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

.ymi-footer-social-link:hover,
.ymi-footer-social-link:focus-visible {
  color: #060918;
  border-color: #efa429;
  background: #efa429;
  transform: translateY(-3px);
}

.ymi-footer-social-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ymi-footer-social-link svg .fill { fill: currentColor; stroke: none; }
.ymi-footer-social-link > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ymi-footer-social-placeholder { color: #7f849d; font-size: 13px; }

.ymi-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 24px;
  color: #777d98;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ymi-footer-bottom small,
.ymi-footer-bottom span {
  font-size: 12px;
  letter-spacing: 0.03em;
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .ymi-footer-shell {
    width: min(100% - 34px, 760px);
    padding-top: 54px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "connect connect"
      "nav follow"
      "bottom bottom";
    column-gap: 34px;
  }

  .ymi-footer-brand-block > p { max-width: 560px; }
}

@media (max-width: 580px) {
  .ymi-footer-shell {
    width: min(100% - 28px, 520px);
    padding: 44px 0 22px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "connect"
      "nav"
      "follow"
      "bottom";
    row-gap: 34px;
  }

  .ymi-footer-brand { font-size: 39px; }
  .ymi-footer-connect h2 { font-size: 31px; }
  .ymi-footer-navigation > div { grid-template-columns: 1fr 1fr; }
  .ymi-footer-bottom { align-items: flex-start; flex-direction: column; }
}
