/* Contact footer, after Dennis Snellenberg's: big "Let's work together", a round magnetic
   button riding a rule, contact pills, and a bottom bar with live local time and socials.
   The section above curves into it; the footer itself trails the scroll (parallax). */
@font-face {
  font-family: 'Footer Sans';
  src: url(../assets/fonts/archivo-latin-wght-normal.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

.footer-wrap {
  --f-bg: #191b14;             /* footer: a shade darker than the page's #282c20 */
  --f-deep: #11120d;           /* shows below the footer while it trails the scroll */
  --f-text: #f4f4ed;
  --f-muted: rgba(244, 244, 237, 0.5);
  --f-line: rgba(244, 244, 237, 0.225);
  --f-accent: #d2ff00;         /* the round button and the pill hover fill */
  --f-accent-deep: #b9e000;    /* round button hover fill */
  --f-on-accent: #282c20;
  --f-ease: cubic-bezier(0.455, 0.03, 0.515, 0.955);   /* Power2.easeInOut */

  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--f-deep);
  font: 450 clamp(16px, 1.2vw, 19px) / 1.6 'Footer Sans', Arial, sans-serif;
  color: var(--f-text);
  -webkit-font-smoothing: antialiased;
}

/* the section above bulges down into the footer and flattens as the footer arrives */
.footer-curve { position: relative; z-index: 2; height: 0; }
.footer-curve__wrap {
  position: relative;
  height: 10vh;
  overflow: hidden;
  transform: translateY(-1px);
  will-change: height;
}
.footer-curve__shape {
  position: absolute;
  left: 50%;
  width: 150%;
  height: 750%;
  border-radius: 50%;
  background: #282c20;          /* = the section above */
  transform: translate(-50%, -86.666%);
}

.footer {
  width: 100%;
  min-height: 101vh;
  padding-top: 21vh;
  background: var(--f-bg);
  will-change: transform;
}
.footer__inner { padding: 0 16vw; }            /* reference: 245.76px at 1536 */

.footer__head { position: relative; padding-bottom: 10.5vh; }
.footer__title {
  margin: 0;
  font-weight: 450;
  font-size: calc(clamp(3.25em, 7vw, 8em) * 0.875);
  line-height: 1.065;
  letter-spacing: -0.01em;
}
.footer__title span { display: block; }
.footer__avatar {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.125em;
  border-radius: 50%;
  background: center / cover url(../assets/avatar.webp);
  vertical-align: baseline;
  transform: translateY(0.09em);
}
.footer__arrow {
  position: absolute;
  right: 0;
  bottom: 18.7vh;               /* level with the second line, as on the reference */
  width: 14px;
  height: 14px;
  stroke: var(--f-text);
  stroke-width: 1.5;
  fill: none;
  will-change: transform;
}

.footer__rule { position: relative; padding-bottom: 10vh; }
.footer__stripe { height: 1px; background: var(--f-line); }
.footer__round-pos {
  position: absolute;
  top: 0;
  right: 12vw;
  transform: translate(50%, -50%);
  z-index: 3;
}

/* ---- buttons (magnetic; a circle fills them from below on hover) ---- */
.mag {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  will-change: transform;
}
.mag__fill {
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  border-radius: 50%;
  transform: translate3d(0, -76%, 0);
  pointer-events: none;
}
.mag__text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: transform;
  white-space: nowrap;
}

.btn-round {
  width: clamp(9em, 12vw, 11em);
  height: clamp(9em, 12vw, 11em);
  border-radius: 50%;
  background: var(--f-accent);
  color: var(--f-on-accent);
}
.btn-round .mag__fill { background: var(--f-accent-deep); }
.btn-round .mag__text { padding: 0 1em; text-align: center; }

.footer__pills { display: flex; gap: 0.5em; }
.btn-pill {
  height: 4.25em;
  border-radius: 2.125em;
  box-shadow: inset 0 0 0 1px var(--f-line);
}
.btn-pill .mag__fill { background: var(--f-accent); }
.btn-pill .mag__text { padding: 0 2.5em; transition: color 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19) 0.3s; }
.btn-pill.is-hover .mag__text { color: var(--f-on-accent); transition-delay: 0s; }

/* ---- bottom bar ---- */
.footer__bar {
  display: flex;
  justify-content: space-between;
  padding: 16.2vh calc(clamp(1.5em, 4vw, 2.5em) / 1.33) calc(clamp(1.5em, 4vw, 2.5em) / 1.75) clamp(1.5em, 4vw, 2.5em);
}
.footer__col { display: flex; gap: clamp(1.5em, 4vw, 2.5em); }
.footer__label {
  margin: 0 0 1.5em;
  font-size: 0.6em;
  font-weight: 450;
  line-height: 1.065;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--f-muted);
}
.footer__value { margin: 0; font-size: 0.85em; }
.footer__time { text-transform: uppercase; }
.footer__socials { display: flex; margin: 0 calc(clamp(1.5em, 4vw, 2.5em) / -3); padding: 0; list-style: none; }
.link-under {
  position: relative;
  height: 2.25em;
  margin: 0 calc(clamp(1.5em, 4vw, 2.5em) / 3);
  overflow: visible;
  font-size: 0.85em;
}
.link-under::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--f-text);
  transform: translate(-50%, -50%) scaleX(0);
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}
.link-under:hover::after, .link-under:focus-visible::after { transform: translate(-50%, -50%) scaleX(1); }
.footer__socials .footer__label { margin-left: calc(clamp(1.5em, 4vw, 2.5em) / 3); }

.mag:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 4px; }

/* ---- phone ---- */
@media (max-width: 720px) {
  .footer-curve__wrap { height: 7.5vh; }
  .footer__inner { padding: 0 clamp(1.25em, 4vw, 2.5em); }
  .footer__head { padding-bottom: 9vh; }
  .footer__avatar { width: 0.95em; height: 0.95em; transform: translateY(0.1em); }
  .footer__arrow { bottom: 1em; }
  .footer__rule { padding-bottom: 15vh; }
  .footer__round-pos { right: 0; transform: translate(-20%, -50%); }
  .footer__pills { flex-direction: column; gap: 0.75em; }
  .btn-pill { width: 100%; }
  .footer__bar { flex-direction: column; gap: 2.5em; padding: 5vh clamp(1.25em, 4vw, 2.5em) 1.5em; }
  .footer__col:last-child { order: -1; }
  .footer__value, .link-under { font-size: 1em; }
}
@media (prefers-reduced-motion: reduce) {
  .mag__fill, .mag__text, .link-under::after { transition: none !important; }
}

/* helmet credit: on phones it lives here instead of on the photo */
.footer__credit { display: none; margin: 0; padding: 0 clamp(1.25em, 4vw, 2.5em) 1.6em; font-size: 0.7em; line-height: 1.5; color: var(--f-muted); }
.footer__credit a { color: inherit; }
@media (max-width: 720px) { .footer__credit { display: block; } }
