@font-face { font-family: "Footer Montreal"; src: url("assets/NeueMontreal-Regular.otf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Footer Montreal"; src: url("assets/NeueMontreal-Medium.otf"); font-weight: 500; font-display: swap; }
@font-face {
  font-family: "Footer Instrument Sans";
  src: url("assets/InstrumentSans-Medium.ttf");
  font-weight: 500;
  font-display: swap;
}
.site-shared-footer {
  position: relative;
  z-index: 1;
  inset: auto;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0;
  padding: clamp(24px, 4.25vw, 65px) 3.46vw 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  color: #080808;
  box-shadow: 0 4px 5px #0004;
  font: 500 clamp(13px, 1.307vw, 20px)/1.1 "Footer Instrument Sans", sans-serif;
}
/* Footer info: "Follow" on the left, "Contact" on the right — grey italic labels over
   uppercase links, as in the about page's Figma frame. */
.site-shared-footer .footer-links {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-top: clamp(8px, 1.2vw, 20px);
  padding-bottom: clamp(36px, 5.1vw, 78px);
}
.site-shared-footer p { margin: 0; }
.site-shared-footer .footer-label {
  margin-bottom: clamp(10px, 1.1vw, 17px);
  color: #999;
  font: italic 400 clamp(14px, 1.307vw, 20px)/1.24 "Footer Montreal", Arial, sans-serif;
  letter-spacing: -.02em;
}
.site-shared-footer .footer-contact { text-align: right; }
.site-shared-footer nav {
  position: static;
  inset: auto;
  transform: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.37vw, 21px);
}
.site-shared-footer a {
  color: inherit;
  font: 500 clamp(13px, 1.176vw, 18px)/1.08 "Footer Montreal", Arial, sans-serif;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-shared-footer a:hover, .site-shared-footer a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.doormat-handle {
  display: grid;
  place-items: center;
  width: 92px;
  height: 44px;
  margin: 0 auto;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: grab;
  touch-action: none;
}
.doormat-handle:active { cursor: grabbing; }
.doormat-handle:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.doormat-handle::before {
  content: "";
  width: 38px;
  height: 4px;
  border-radius: 8px;
  background: currentColor;
  opacity: .32;
}
.doormat-reveal {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1530 / 666;
  margin: 0;
  overflow: hidden;
  clip-path: inset(0);
  background: #eee9dd;
}
.doormat-floor {
  position: fixed;
  inset: auto 0 0;
  aspect-ratio: 1530 / 666;
  pointer-events: none;
}
.doormat-scene {
  position: fixed;
  inset: auto 0 0;
  aspect-ratio: 1530 / 666;
}
.doormat-scene img { display: block; max-width: none; }
.doormat-tiles {
  position: absolute;
  top: -15.77%;
  left: -.13%;
  width: 100.78%;
  height: 115.77%;
  object-fit: cover;
}
.doormat-mat {
  position: absolute;
  top: 17.12%;
  left: 17.06%;
  width: 62.88%;
  height: 50.15%;
  overflow: visible;
  transform: rotate(var(--doormat-angle, 0deg));
  filter: drop-shadow(3px 4px 3px #0006);
}
.doormat-mat img {
  position: absolute;
  top: -13.17%;
  left: -1.70%;
  width: 103.44%;
  height: 126.93%;
}
@media (max-width: 600px) {
  .site-shared-footer { padding-inline: 20px; }
  .site-shared-footer .footer-links { align-items: flex-start; flex-direction: column; gap: 28px; }
  .site-shared-footer .footer-contact { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .doormat-floor { position: absolute; inset: 0; }
  .doormat-scene { position: absolute; inset: 0; }
  .doormat-mat { transform: rotate(-2.75deg); }
}

.doormat-scene:focus-visible { outline: 2px solid #111; outline-offset: -4px; }
.doormat-mat {
  transform: translate(var(--mat-x, 0px), var(--mat-y, 0px)) rotate(var(--doormat-angle, 0deg));
  user-select: none;
}
.doormat-reveal[data-draggable] .doormat-mat { cursor: grab; touch-action: none; }
.doormat-reveal[data-dragging] .doormat-mat { cursor: grabbing; }
.doormat-mat img { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .doormat-mat { transform: translate(var(--mat-x, 0px), var(--mat-y, 0px)) rotate(-2.75deg); }
}

/* Revised footer sizing from the Figma board: a shorter strip of floor tiles and a smaller mat. */
.doormat-reveal, .doormat-floor, .doormat-scene { aspect-ratio: 1514 / 415.5; }
.doormat-tiles { top: -82.13%; left: .04%; width: 99.96%; height: 182.13%; }
.doormat-mat { top: 12.62%; left: 24.84%; width: 47.51%; height: 63.42%; }

/* Light footers (case studies, about): a thin dark rule above the footer info, separating it from
   the page above — the same line the dark footers carry, in the page's ink. */
.site-shared-footer .footer-links {
  border-top: 1px solid #0000002e;
  padding-top: clamp(22px, 2.4vw, 38px);
}

/* Dark footers (homepage, kitchen): a thin light rule above the footer info, separating it from
   the black page above. */
.homepage .site-shared-footer .footer-links,
.kitchen-dark .site-shared-footer .footer-links,
.cred-dark .site-shared-footer .footer-links,
.saree-dark .site-shared-footer .footer-links {
  border-top: 0.5px solid rgba(255, 255, 255, .21);
  padding-top: clamp(22px, 2.4vw, 38px);
}

/* CRED: a black case study, so its footer is black with white type too. */
.cred-dark .site-shared-footer,
.saree-dark .site-shared-footer { background: #000; color: #fff; box-shadow: 0 4px 5px #0008; }
