/* Shared Bunq-style footer for the homepage and the work catalog. */

.site-foot {
  --foot-bg: #f7f6f2;
  --foot-ink: #16140f;
  --foot-mute: rgb(22 20 15 / 0.56);
  --foot-line: rgb(22 20 15 / 0.12);
  --foot-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  z-index: 2;
  background: var(--foot-bg);
  color: var(--foot-ink);
  font-family: var(--sans-tight, "Inter Tight", Inter, system-ui, sans-serif);
}

html.dark .site-foot {
  --foot-bg: #141311;
  --foot-ink: #f1efea;
  --foot-mute: rgb(241 239 234 / 0.58);
  --foot-line: rgb(255 255 255 / 0.12);
}

.site-foot__ask {
  padding: clamp(4.5rem, 11vw, 7.5rem) clamp(1.25rem, 4vw, 4rem) clamp(3rem, 7vw, 4.75rem);
  text-align: center;
}

.site-foot__line {
  max-width: 14em;
  margin: 0 auto;
  font-family: "Bricolage Grotesque", var(--sans-tight, Inter, sans-serif);
  font-size: clamp(2.5rem, 6.4vw, 5.15rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.site-foot .ph-ruled {
  display: inline-block;
  position: relative;
}

.site-foot .ph-rule {
  position: absolute;
  top: 0.82em;
  left: -0.08em;
  width: calc(100% + 0.2em);
  height: auto;
  aspect-ratio: 445 / 36;
  overflow: visible;
  fill: none;
  stroke: var(--nav-accent, #ff4d2e);
  stroke-width: 7px;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.site-foot .ph-rule path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.site-foot__ask.is-in .ph-rule path {
  animation: site-foot-draw 0.62s cubic-bezier(0.65, 0, 0.35, 1) 0.26s forwards;
}

@keyframes site-foot-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.site-foot__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 0.85rem;
  margin-top: 2.1rem;
}

.site-foot__cta,
.site-foot__ghost,
.site-foot__mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font: 500 0.98rem/1 var(--sans-tight, Inter, sans-serif);
  text-decoration: none;
  cursor: pointer;
}

.site-foot__cta {
  border: 0;
  background: #262626;
  color: #fff;
}

html.dark .site-foot__cta {
  background: #f1efea;
  color: #1a1916;
}

.site-foot__ghost {
  border: 1px solid var(--foot-line);
  background: transparent;
  color: var(--foot-ink);
}

.site-foot__mail {
  border: 0;
  background: transparent;
  color: var(--foot-mute);
}

.site-foot__cta:hover,
.site-foot__ghost:hover,
.site-foot__mail:hover {
  color: var(--nav-accent, #ff4d2e);
}

.site-foot__cta:hover {
  color: #fff;
}

html.dark .site-foot__cta:hover {
  color: #1a1916;
}

.site-foot__band {
  border-top: 1px solid var(--foot-line);
}

.site-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.75rem;
  margin: 0;
  padding: 2.4rem clamp(1.25rem, 4vw, 4rem) 2.2rem;
}

.site-index__title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--foot-line);
  color: var(--foot-mute);
  font: 500 0.68rem/1 var(--mono-geist, ui-monospace, monospace);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-index__list {
  display: grid;
  gap: 0.48rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-index__list a,
.site-index__list span {
  color: var(--foot-ink);
  font: 500 0.96rem/1.35 var(--sans-tight, Inter, sans-serif);
  text-decoration: none;
}

.site-index__list a:hover,
.site-index__list a:focus-visible {
  color: var(--nav-accent, #ff4d2e);
}

.site-index__list a[aria-current="page"] {
  color: var(--nav-accent, #ff4d2e);
}

.site-index__note {
  margin: 0.15rem 0 0;
  color: var(--foot-mute);
  font: 500 0.78rem/1.45 var(--mono-geist, ui-monospace, monospace);
  letter-spacing: 0.02em;
}

.site-foot__meta {
  margin: 0;
  padding: 0.95rem clamp(1.25rem, 4vw, 4rem) 1.35rem;
  border-top: 1px solid var(--foot-line);
  color: var(--foot-mute);
  font: 500 0.72rem/1.4 var(--mono-geist, ui-monospace, monospace);
  letter-spacing: 0.04em;
}

.site-foot [data-bunq-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--foot-ease), transform 0.6s var(--foot-ease);
}

.site-foot [data-bunq-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .site-index {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .site-index {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-foot [data-bunq-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-foot .ph-rule path {
    stroke-dashoffset: 0;
    animation: none;
  }
}

@media print {
  .site-foot {
    background: #fff;
    color: #16140f;
  }

  .site-foot [data-bunq-reveal] {
    opacity: 1;
    transform: none;
  }

  .site-foot .ph-rule path {
    stroke-dashoffset: 0;
    animation: none;
  }
}
