/* One iron footer for the home and every public project/photo page. */
footer.atelier-footer {
  --footer-gold: #c7a774;
  display: block;
  position: relative;
  isolation: isolate;
  padding: 42px max(5.5%, calc((100vw - 1424px) / 2)) 24px;
  border-top: 5px solid #1b2927;
  color: #d0d1c5;
  background:
    radial-gradient(ellipse at 9% 0, #9a784214, transparent 57%),
    repeating-linear-gradient(0deg, #d4d4c703 0 1px, transparent 1px 4px),
    linear-gradient(120deg, #15201f, #0c1717 60%, #15201f);
  box-shadow: inset 0 1px #ad946268, 0 -1px #71817255;
  font: 14px/1.7 Arial, Helvetica, sans-serif;
}
.atelier-footer::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 5.5%;
  width: 170px;
  height: 4px;
  background: linear-gradient(90deg, #486c76 0 26%, #142021 26% 29%, #a48248 29% 52%, #142021 52% 55%, #4a6855 55% 77%, #142021 77% 80%, #496c77 80%);
}
/* Continue the home page's inset panels and their inner content gutters. */
.atelier-home {
  --footer-panel-inset: 30px;
  --footer-content-gutter: calc((100vw - 2 * var(--footer-panel-inset)) * .055);
}
.atelier-home main { margin-inline: var(--footer-panel-inset); }
.atelier-home footer.atelier-footer {
  margin-inline: var(--footer-panel-inset);
  padding-inline: var(--footer-content-gutter);
  border-bottom: 3px solid #1b2927;
}
.atelier-home #contacto { border-bottom: 0; }
.atelier-home .atelier-footer::before { left: var(--footer-content-gutter); }
@media (min-width: 1600px) {
  .atelier-home { --footer-content-gutter: max(calc((100vw - 2 * var(--footer-panel-inset)) * .055), calc((100vw - 1390px) / 2)); }
}
@media (max-width: 1050px) {
  .atelier-home { --footer-panel-inset: 22px; }
}
@media (max-width: 760px) {
  .atelier-home {
    --footer-panel-inset: 0px;
    --footer-content-gutter: calc((100vw - 2 * var(--footer-panel-inset)) * .06);
  }
}
.atelier-footer p { margin: 0; }
.atelier-footer a { text-decoration: none; }
.atelier-footer__main, .atelier-footer__base {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
  column-gap: clamp(32px, 6vw, 96px);
}
.atelier-footer__main { padding-bottom: 26px; }
.atelier-footer__eyebrow {
  color: var(--footer-gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
}
.atelier-footer__brand {
  display: inline-block;
  margin: 12px 0 13px;
  color: #e9e0cb;
  font: 400 clamp(28px, 2.6vw, 36px)/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -1.4px;
}
.atelier-footer__brand em { color: var(--footer-gold); font-weight: 400; }
.atelier-footer .atelier-footer__story { max-width: 460px; font-size: 13px; line-height: 1.85; color: #abb7ac; }
.atelier-footer .atelier-footer__author { margin-top: 17px; color: #e2dbc8; font: italic 28px/1.4 Georgia, "Times New Roman", serif; }
.atelier-footer__author span { display: block; margin-top: 3px; color: #a9b4a8; font: 12px/1.7 Arial, Helvetica, sans-serif; }
.atelier-footer__whatsapp { display: inline-flex; gap: 26px; align-items: center; min-height: 44px; margin-top: 11px; border-bottom: 1px solid #96805680; color: #e1c18a; font-size: 13px; }
.atelier-footer__whatsapp span { font-size: 20px; }
.atelier-footer__nav { display: flex; gap: 5px 22px; flex-wrap: wrap; margin-top: 12px; }
.atelier-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: #b9c0b2; }
.atelier-footer__base { align-items: start; padding-top: 20px; border-top: 1px solid #7a7a5345; }
.atelier-footer__legal { font-size: 12px; line-height: 1.85; color: #aab5a9; }
.atelier-footer__legal p:first-child { color: #d4d6c5; }
.atelier-footer__utility { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 7px; }
.atelier-footer__utility a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: #9fab9c; font-size: 11px; }
.atelier-footer__nav a:hover, .atelier-footer__utility a:hover, .atelier-footer__whatsapp:hover { color: #f1cf95; }

/* Brushed iron, a raised edge, stamped lettering and four slotted rivets. */
.footer-maker { display: flex; align-items: center; justify-self: end; align-self: end; gap: 8px; }
.footer-maker__label { color: #9fab9c; font-size: 10px; }
.footer-maker__link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; padding: 0 4px; }
.atelier-footer .maker-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  width: 84px;
  height: 22px;
  opacity: .8;
  padding: 0 7px;
  overflow: hidden;
  border: 1px solid #60695c;
  border-radius: 1px;
  background:
    linear-gradient(112deg, transparent 24%, #e3ddbc0b 46%, transparent 64%),
    repeating-linear-gradient(0deg, #c5c9b307 0 1px, #080f1005 1px 3px),
    linear-gradient(150deg, #39413a, #202b27 46%, #18201e 80%, #2a332c);
  box-shadow: inset 0 1px #bec2a833, inset 0 -1px #050c0b, 0 2px 3px #0004;
  color: #cbd0bc;
  text-decoration: none;
  transition: border-color .25s, box-shadow .25s;
}
.maker-plate::before { content: ""; position: absolute; inset: 2px; border: 1px solid #0a151a80; border-bottom-color: #9aa18d22; border-right-color: #9aa18d22; pointer-events: none; }
.maker-plate__name { display: block; text-align: center; font: 700 8px/1.2 Arial, Helvetica, sans-serif; letter-spacing: .7px; text-shadow: 0 1px 0 #c6cfb433, 0 -1px 0 #010706; }
.maker-plate__rivet { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #788372; box-shadow: 0 1px #0007; }
.maker-plate__rivet--tl { top: 4px; left: 4px; }
.maker-plate__rivet--tr { top: 4px; right: 4px; }
.maker-plate__rivet--bl { bottom: 4px; left: 4px; }
.maker-plate__rivet--br { bottom: 4px; right: 4px; }
.atelier-footer .footer-maker__link:hover .maker-plate { border-color: #b5ad87; box-shadow: inset 0 1px #d5d7b544, inset 0 -1px #050c0b, 0 2px 3px #0004; }
.atelier-footer a:focus-visible { outline: 2px solid #edc686; outline-offset: 5px; }
@media (max-width: 760px) {
  footer.atelier-footer { padding: 30px 6% 18px; }
  .atelier-footer__main, .atelier-footer__base { grid-template-columns: minmax(0, 1fr); }
  .atelier-footer__main { gap: 20px; padding-bottom: 18px; }
  .atelier-footer__brand { font-size: 28px; }
  .atelier-footer .atelier-footer__story { font-size: 12px; line-height: 1.75; }
  .atelier-footer .atelier-footer__author { margin-top: 10px; font-size: 25px; }
  .atelier-footer__contact { border: 0; padding: 0; }
  .atelier-footer__whatsapp { margin-top: 6px; }
  .atelier-footer__nav { gap: 4px 20px; margin-top: 4px; }
  .atelier-footer__base { row-gap: 6px; padding-top: 17px; }
  .atelier-footer__legal { font-size: 11px; }
  .atelier-footer .maker-plate { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .atelier-footer .maker-plate { transition: none; } }

/* The last half of Contact returns to the entrance's front-facing glazing.
   These layers stay behind the content and exist only on the home page. */
.atelier-home #contacto {
  position: relative;
  isolation: isolate;
}
.atelier-home #contacto::after,
.atelier-home footer.atelier-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  pointer-events: none;
  background-image: url("/assets/vectores/closing-window.svg");
  background-repeat: repeat;
  background-size: 480px 320px;
  opacity: .5;
}
.atelier-home #contacto::after {
  top: 48%;
  bottom: 0;
  background-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 78%);
  mask-image: linear-gradient(to bottom, transparent, #000 78%);
}
.atelier-home footer.atelier-footer {
  border-top: 0;
  box-shadow: inset 1px 0 #68807024, inset -1px 0 #68807024;
  background: linear-gradient(100deg, #151c1e, #1c2525);
}
.atelier-home footer.atelier-footer::before { content: none; }
.atelier-home footer.atelier-footer::after {
  top: 0;
  bottom: 0;
  background-position: center top;
}

/* A full-width iron sill closes the glazing. The legal text and maker credit
   retain precisely the same content gutters as Contact and the main footer. */
.atelier-home .atelier-footer__base {
  position: relative;
  isolation: isolate;
  border-top-color: transparent;
}
.atelier-home .atelier-footer__base::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: calc(-1 * var(--footer-content-gutter));
  bottom: -24px;
  left: calc(-1 * var(--footer-content-gutter));
  pointer-events: none;
  background: linear-gradient(180deg, #0d1717, #080f10 28%);
  border-top: 4px solid #26322f;
  box-shadow: 0 -1px #80907866, inset 0 1px #080e0f;
}
.atelier-home .footer-maker__label { color: #b2b9a9; }
@media (max-width: 760px) {
  .atelier-home #contacto::after,
  .atelier-home footer.atelier-footer::after {
    background-size: 360px 240px;
  }
  .atelier-home .atelier-footer__base::before { bottom: -18px; }
}
