/* Original close for the portfolio, inspired by Resend's ending composition.
   All contact text remains readable without JS. The oversized signature is
   decorative; --footer-reveal (0..1) moves its local silver reflection. */
.site-footer.footer-reference {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  margin: clamp(64px, 8vw, 128px) 0 0;
  padding: 0;
  overflow: clip;
  border-top: 1px solid #25272a;
  background: #000000;
  color: #f1f1ed;
  isolation: isolate;
}
.site-footer.footer-reference::before { content: none; }
.footer-reference .footer-reference__invitation {
  position: relative;
  z-index: 1;
  max-width: var(--shell, 1580px);
  margin: 0 auto;
  padding: clamp(96px, 11vw, 172px) var(--gut, 32px) clamp(52px, 5vw, 80px);
  text-align: center;
}
.footer-reference .footer-reference__title {
  margin: 0;
  color: #eeece7;
  font-family: var(--font, sans-serif);
  font-size: clamp(44px, 5.8vw, 88px);
  font-weight: var(--w-display, 800);
  line-height: 1.19;
  letter-spacing: -0.025em;
  text-wrap: balance;
  font-feature-settings: normal;
}
.footer-reference__title > span { display: block; }
.footer-reference__title > span + span { margin-top: 0.08em; }
.footer-reference .footer-reference__actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.footer-reference .footer-reference__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 46px;
  padding: 12px 19px;
  border: 1px solid #3d4044;
  border-radius: var(--r, 6px);
  background: #0c0e10;
  color: #e7e8e9;
  font-family: var(--font, sans-serif);
  font-size: 13px;
  font-weight: var(--w-head, 700);
  line-height: 1.4;
  letter-spacing: 0.015em;
  text-decoration: none;
  overflow-wrap: normal;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
.footer-reference .footer-reference__button + .footer-reference__button { background: transparent; }
.footer-reference .footer-reference__button .icon { width: 14px; height: 14px; font-size: 14px; }
.footer-reference .footer-reference__button:hover {
  border-color: #7d838a;
  background: #171a1e;
  color: #fff;
}
.footer-reference .footer-reference__contacts {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 52px;
  font-style: normal;
}
.footer-reference .footer-reference__contacts a,
.footer-reference .footer-reference__contacts button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  color: #a5abb3;
  font-size: 12px;
  font-weight: var(--w-medium, 700);
  line-height: 1.5;
  letter-spacing: 0.015em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-reference .footer-reference__contacts :is(a, button):hover { color: #f1f1ed; }
.footer-reference .footer-reference__contacts .icon { width: 13px; height: 13px; }
.footer-reference .footer-reference__feedback {
  min-height: 21px;
  margin-top: 4px;
  color: #c4c8ce;
  font-size: 12px;
  line-height: 1.75;
}
.footer-reference .footer-reference__signature {
  --footer-reveal: 0.56;
  --footer-light-x: calc(8% + var(--footer-reveal) * 84%);
  position: relative;
  display: grid;
  width: calc(100% - var(--gut, 32px) * 2);
  max-width: 1580px;
  margin: 0 auto;
  padding: 0 0 clamp(28px, 4vw, 64px);
  text-align: center;
  user-select: none;
  pointer-events: none;
}
.footer-reference .footer-reference__word {
  display: block;
  grid-area: 1 / 1;
  margin: 0;
  padding: 0.045em 0.02em;
  font-family: "BDO Grotesk", sans-serif;
  font-size: clamp(68px, 19.8vw, 338px);
  font-weight: var(--w-display, 800);
  line-height: 0.88;
  letter-spacing: -0.04em;
  white-space: nowrap;
  font-kerning: normal;
}
.footer-reference .footer-reference__word--base {
  color: #111419;
  -webkit-text-stroke: 1px #252a31;
}
.footer-reference .footer-reference__word--light {
  color: #9ba3ae;
  -webkit-text-stroke: 1px #9ba3ae;
  background: linear-gradient(123deg, #262c34 12%, #747f8e 32%, #f6f8fa 46%, #adb7c4 49%, #353e4b 67%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-mask-image: radial-gradient(ellipse 27% 120% at var(--footer-light-x) 56%, #000 12%, rgb(0 0 0 / 0.92) 38%, transparent 78%);
  mask-image: radial-gradient(ellipse 27% 120% at var(--footer-light-x) 56%, #000 12%, rgb(0 0 0 / 0.92) 38%, transparent 78%);
}
.footer-reference .footer-reference__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  width: calc(100% - var(--gut, 32px) * 2);
  max-width: 1580px;
  margin: 0 auto;
  padding: 24px 0 32px;
  border-top: 1px solid #23262b;
  color: #969da7;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.015em;
}
.footer-reference .footer-reference__bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #b0b6bf;
}
.footer-reference .footer-reference__bottom a:hover { color: #fff; }
.footer-reference :is(a, button):focus-visible {
  outline: 2px solid #c2c8d1;
  outline-offset: 5px;
}
.footer-reference ::selection { background: #cbd0d8; color: #070809; }

@media (max-width: 820px) {
  .footer-reference .footer-reference__contacts { gap: 8px 22px; margin-top: 36px; }
  .footer-reference .footer-reference__word { font-size: 19.5vw; }
  .footer-reference .footer-reference__bottom { column-gap: 20px; }
}
@media (max-width: 620px) {
  .site-footer.footer-reference { margin-top: 64px; }
  .footer-reference .footer-reference__invitation { padding-top: 88px; padding-bottom: 44px; }
  .footer-reference .footer-reference__title { font-size: clamp(42px, 10vw, 58px); line-height: 1.24; }
  .footer-reference .footer-reference__actions { gap: 10px; margin-top: 28px; }
  .footer-reference .footer-reference__button { min-height: 46px; padding-inline: 16px; gap: 10px; }
  .footer-reference .footer-reference__contacts { display: grid; gap: 0; margin-top: 30px; }
  .footer-reference .footer-reference__feedback { margin-top: 6px; }
  .footer-reference .footer-reference__signature { width: calc(100% - 24px); padding-bottom: 32px; }
  .footer-reference .footer-reference__word { font-size: 20.2vw; letter-spacing: -0.04em; }
  .footer-reference .footer-reference__bottom { gap: 8px 20px; padding-top: 20px; padding-bottom: 88px; }
  .footer-reference .footer-reference__bottom > span:nth-child(2) { flex-basis: 100%; order: 3; }
  .footer-reference .footer-reference__bottom > a { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-reference .footer-reference__signature { --footer-reveal: 0.56 !important; }
  .footer-reference *, .footer-reference *::before, .footer-reference *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (forced-colors: active) {
  .site-footer.footer-reference { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .footer-reference .footer-reference__title { color: CanvasText; }
  .footer-reference .footer-reference__signature { display: none; }
  .footer-reference .footer-reference__button { border-color: ButtonText; color: LinkText; background: Canvas; }
  .footer-reference .footer-reference__contacts :is(a, button),
  .footer-reference .footer-reference__bottom a { color: LinkText; }
  .footer-reference .footer-reference__bottom { color: CanvasText; border-color: CanvasText; }
}
@media print {
  .site-footer.footer-reference { margin-top: 32px; border-top: 1px solid #777; background: #fff; color: #000; break-inside: avoid; }
  .footer-reference .footer-reference__invitation { padding: 24px 0 12px; }
  .footer-reference .footer-reference__title { color: #000; font-size: 26px; line-height: 1.2; }
  .footer-reference__title > span { display: inline; }
  .footer-reference__title > span + span { margin-left: 0.25em; }
  .footer-reference .footer-reference__actions,
  .footer-reference .footer-reference__signature,
  .footer-reference .footer-reference__feedback,
  .footer-reference .footer-reference__bottom > a { display: none; }
  .footer-reference .footer-reference__contacts { margin-top: 12px; gap: 12px 24px; }
  .footer-reference .footer-reference__contacts :is(a, button) { min-height: 0; color: #000; }
  .footer-reference .footer-reference__bottom { color: #333; border-color: #ccc; padding: 12px 0; }
}
