/* Stage 9 — approved contact and shared footer. Figma 100:2409,
   128:2485, 143:2568, 143:2781, 150:2653/150:2867.
   No new JS, no third-party requests. */
.contacts {
  --contact-art-width: 748.8px;
  --contact-art-height: 468px;
  --contact-art-window: 364px;
  --contact-art-crop: 62.4px;
  --contact-glow-size: 430.5px;
  --contact-glow-offset: 0px;
  --footer-fade-height: 83.2px;
  --footer-fade-before: 41.6px;
  --footer-fade-crop: 351px;
  position: relative;
  display: grid;
  align-items: center;
  min-block-size: var(--contact-min-height);
  padding-block: var(--space-11);
  background: var(--color-background);
  text-align: center;
}
.contacts__lighting { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.contacts__art {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  inline-size: max(100%, var(--contact-art-width));
  block-size: var(--contact-art-window);
  transform: translate(-50%, -50%);
  overflow: hidden;
}
.contacts__art::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(-1 * var(--contact-art-crop));
  block-size: var(--contact-art-height);
  background: url("../images/dream-light.jpg") center / cover no-repeat;
  opacity: .48;
}
.contacts__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #100d25 0%, rgb(16 13 37 / 85.1%) 18%, rgb(16 13 37 / 66.7%) 46%, rgb(16 13 37 / 65.9%) 72%, #100d25 100%);
}
.contacts__glow {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: calc(50% + var(--contact-glow-offset));
  inline-size: var(--contact-glow-size);
  block-size: auto;
  max-inline-size: none;
  transform: translate(-50%, -50%);
}
.contacts__footer-fade {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  inset-block-start: calc(100% - var(--footer-fade-before));
  block-size: var(--footer-fade-height);
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, transparent, rgb(0 0 0 / 18.824%) 22%, rgb(0 0 0 / 37%) 50%, rgb(0 0 0 / 21.961%) 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, rgb(0 0 0 / 18.824%) 22%, rgb(0 0 0 / 37%) 50%, rgb(0 0 0 / 21.961%) 75%, transparent);
}
.contacts__footer-fade::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: calc(-1 * var(--footer-fade-crop));
  inline-size: max(100%, var(--contact-art-width));
  block-size: var(--contact-art-height);
  transform: translateX(-50%) scaleX(-1);
  background: url("../images/dream-light.jpg") center / cover no-repeat;
}
@supports not ((mask-image: linear-gradient(black, transparent)) or (-webkit-mask-image: linear-gradient(black, transparent))) {
  .contacts__footer-fade { display: none; }
}
.contacts > .contact-content { position: relative; z-index: 2; gap: 0; }
.contacts .type-contact-title {
  inline-size: min(100%, var(--contact-title-max));
  font-variation-settings: "CRSV" 0, "SHRP" 0;
}
.contacts .type-contact-title span, .contacts .type-contact-copy span { display: block; }
.contacts .type-contact-copy {
  inline-size: min(100%, var(--contact-copy-max));
  margin-block-start: var(--contact-description-gap);
  overflow-wrap: break-word;
}
.contacts .contact-channels { gap: 33px; }
.contact-channel { display: flex; flex-direction: column; align-items: center; min-inline-size: 0; gap: 2px; }
.contact-channel .contact-link { display: inline-flex; align-items: center; min-inline-size: 0; min-block-size: 44px; max-inline-size: 100%; }
.contact-channel .type-channel-label { text-align: center; }
.contact-link--pending { cursor: default; } /* Figma labels only; no invented destinations. */
@media (min-width: 768px) {
  .contacts {
    --contact-art-width: 1152px;
    --contact-art-height: 720px;
    --contact-art-window: 560px;
    --contact-art-crop: 96px;
    --contact-glow-size: 615px;
    --footer-fade-height: 128px;
    --footer-fade-before: 64px;
    --footer-fade-crop: 540px;
    align-items: start;
    padding-block: 182px var(--space-11);
  }
  .contacts .contact-channels { gap: 10px; min-block-size: 130px; }
  .contact-channel { gap: 12px; }
  .contact-channel .contact-link { min-block-size: 29px; }
}
@media (min-width: 1200px) {
  .contacts {
    --contact-art-width: 100%;
    --contact-art-height: 900px;
    --contact-art-window: 700px;
    --contact-art-crop: 120px;
    --contact-glow-size: 820px;
    --contact-glow-offset: -10px;
    --footer-fade-height: 160px;
    --footer-fade-before: 80px;
    --footer-fade-crop: 675px;
    padding-block-start: 183px;
  }
  .contacts .contact-channels { gap: 40px; }
}

/* Shared footer, on the two home and two privacy routes. Content is
   laid out in flow and can grow rather than clipping zoomed text. */
.site-footer { position: relative; text-align: center; }
.site-footer__inner { position: relative; z-index: 2; }
.site-footer__rule { block-size: 1px; background: var(--color-divider); }
.site-footer__upper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "brand" "menu" "top";
  justify-items: center;
  padding-block: 23px 24px;
  gap: 14px;
}
.site-footer__brand { grid-area: brand; display: flex; flex-direction: column; align-items: center; gap: 14px; min-inline-size: 0; }
.site-footer__brand-link { display: inline-flex; max-inline-size: 100%; align-items: center; }
.site-footer__logo { display: block; inline-size: 199.52px; block-size: auto; }
html:lang(en) .site-footer__logo { inline-size: 219.3px; }
.site-footer .footer-nav { grid-area: menu; min-inline-size: 0; row-gap: 4px; }
.site-footer .footer-nav .text-link { white-space: nowrap; }
.site-footer__top { grid-area: top; justify-self: center; white-space: nowrap; }
.site-footer__lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copyright" "policy" "credit";
  justify-items: center;
  padding-block: 24px 33px;
  gap: 8px;
}
.site-footer__copyright { grid-area: copyright; }
.site-footer__policy { grid-area: policy; justify-content: center; max-inline-size: 100%; text-align: center; font-size: .9375rem; }
.site-footer__credit { grid-area: credit; justify-self: center; max-inline-size: 100%; }
.site-footer .developer-credit__link--en { font-weight: var(--weight-regular); }
.site-footer .developer-credit__link--en .developer-credit__name { font-weight: var(--weight-medium); }
.site-footer .developer-credit__link--en:focus-visible { color: var(--color-kiber); }
.site-footer .developer-credit__link--en:focus-visible .developer-credit__name { color: var(--color-kiber-hover); }
@media (hover: hover) and (pointer: fine) {
  .site-footer .developer-credit__link--en:hover { color: var(--color-kiber); }
  .site-footer .developer-credit__link--en:hover .developer-credit__name { color: var(--color-kiber-hover); }
}
@media (max-width: 767px) {
  .site-footer__lower { row-gap: 0; }
  .site-footer__copyright { margin-block-end: 9px; }
  .site-footer__credit { min-block-size: 44px; }
}
@media (min-width: 768px) {
  .site-footer__upper {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand top" "menu menu";
    align-items: start;
    justify-items: start;
    padding-block: 23px 34px;
    gap: 34px 16px;
  }
  .site-footer__brand { align-items: flex-start; text-align: start; gap: 12px; }
  .site-footer__brand-link { margin-inline-start: -12px; }
  .site-footer__logo { inline-size: 232px; }
  html:lang(en) .site-footer__logo { inline-size: 255px; }
  .site-footer .footer-nav { justify-self: center; }
  .site-footer__top { justify-self: end; margin-block-start: 6px; }
  .site-footer__lower {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "copyright credit" "policy policy";
    justify-items: start;
    align-items: center;
    padding-block: 24px 36px;
    gap: 24px 12px;
  }
  .site-footer__credit { justify-self: end; }
  .site-footer__policy { justify-self: center; }
}
@media (min-width: 1200px) {
  .site-footer__upper {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "brand menu top";
    padding-block: 41px 46px;
    gap: 0;
  }
  .site-footer__brand { gap: 16px; }
  .site-footer .footer-nav { margin-block-start: 20px; }
  .site-footer__top { margin-block-start: 9px; }
  .site-footer__lower {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "copyright policy credit";
    padding-block: 30px 36px;
    gap: 12px;
  }
}
@media (max-width: 359px) {
  .site-footer .footer-nav { column-gap: 14px; }
}

/* Stage 12: reflow long localized links at narrow widths and text zoom. */
.site-footer__brand-link { min-inline-size: 0; }
.site-footer .footer-nav { max-inline-size: 100%; }
.site-footer .footer-nav .text-link { white-space: normal; text-align: center; overflow-wrap: anywhere; }
.site-footer .developer-credit__link { max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; }
.site-footer .developer-credit__link--en > span:first-child { min-inline-size: 0; }
.site-footer__copyright, .site-footer__policy, .type-footer-slogan { overflow-wrap: anywhere; }
.site-footer__top { white-space: normal; }

/* Stage 14: JPEG fallback remains in the original declarations. */
@media (max-width: 767px) { .contacts__art::before, .contacts__footer-fade::before { background-image: image-set(url("../images/dream-light-768.avif") type("image/avif") 1x, url("../images/dream-light-768.webp") type("image/webp") 1x, url("../images/dream-light-1536.avif") type("image/avif") 2x, url("../images/dream-light-1536.webp") type("image/webp") 2x); } }
@media (min-width: 768px) and (max-width: 1199px) { .contacts__art::before, .contacts__footer-fade::before { background-image: image-set(url("../images/dream-light-1152.avif") type("image/avif") 1x, url("../images/dream-light-1152.webp") type("image/webp") 1x, url("../images/dream-light-1536.avif") type("image/avif") 2x, url("../images/dream-light-1536.webp") type("image/webp") 2x); } }
@media (min-width: 1200px) { .contacts__art::before, .contacts__footer-fade::before { background-image: image-set(url("../images/dream-light-1536.avif") type("image/avif") 1x, url("../images/dream-light-1536.webp") type("image/webp") 1x); } }
