/* =========================================================
   11 · FOOTER — marquee, call to action, live studio clocks,
   and a giant metallic wordmark lit by the cursor.
   ========================================================= */
.site-footer {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 1.6rem);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 40% at 50% 100%, rgba(199,166,106,.10), transparent 70%),
    linear-gradient(180deg, var(--obsidian), #0b0b0d 60%, #0d0c0a);
}
.site-footer::before {
  /* thin gold horizon that brightens where the cursor is */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 2;
  background: radial-gradient(30% 100% at var(--mx, 50%) 0, rgba(255,230,180,.9), rgba(229,197,139,.2) 40%, transparent 70%);
}

/* marquee */
.footer-marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding-block: 1.1rem 1.25rem; }
/* Each word is a flex item whose gradient is clipped to its own box, so the box
   must be tall enough for descenders (g, j, p, q, y): roomy line-height plus a
   little padding below the baseline. Slightly smaller type keeps the band slim. */
.footer-marquee__track {
  display: flex; align-items: center; gap: 2.2rem; width: max-content;
  animation: marquee 42s linear infinite;
  font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.9rem); line-height: 1.24; white-space: nowrap;
}
.footer-marquee__track span {
  display: block; padding: .02em .04em .1em;
  color: transparent; -webkit-text-fill-color: transparent;
  background-image: var(--sheen), var(--chrome); background-size: 260% 100%, 100% 1lh; background-repeat: no-repeat, repeat-y;
  -webkit-background-clip: text; background-clip: text;
  animation: metalSheen 6s var(--ease-in-out) infinite;
}
.footer-marquee__track span:nth-of-type(2n) { font-style: italic; background-image: var(--sheen), var(--gold-metal); }
.footer-marquee__track i { font-style: normal; font-size: .4em; color: var(--gold); }
.site-footer:hover .footer-marquee__track { animation-duration: 70s; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* grid */
.site-footer__grid {
  display: grid; gap: 2.6rem 3rem; padding: 3.5rem var(--gutter);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } }
.site-footer__brand { display: grid; gap: 1.3rem; align-content: start; }
.site-footer__tagline { font-family: var(--sans); font-size: 1rem; line-height: 1.6; max-width: 34ch; margin: 0; }
.site-footer__col { display: grid; gap: .75rem; align-content: start; }
.site-footer__head { font-size: .62rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; margin-bottom: .4rem; }
.site-footer__col > a {
  position: relative; width: max-content; font-size: .92rem; color: var(--silver);
  transition: color .4s var(--ease), transform .5s var(--ease);
}
.site-footer__col > a::before {
  content: ""; position: absolute; left: -1.1rem; top: 50%; width: .6rem; height: 1px; background: var(--gold-hi);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease);
}
.site-footer__col > a:hover { color: var(--white); transform: translateX(1.1rem); }
.site-footer__col > a:hover::before { transform: scaleX(1); }

@keyframes blink { 50% { opacity: .2; } }

/* the official wordmark, as a mask over moving gold, lit by the cursor */
.footer-word {
  position: relative; width: min(340px, 78vw); aspect-ratio: 980 / 200;
  -webkit-mask: url("../assets/engrave-hd.png") center / 100% 100% no-repeat;
  mask: url("../assets/engrave-hd.png") center / 100% 100% no-repeat;
}
.footer-word__metal, .footer-word__spot { position: absolute; inset: 0; }
.footer-word__metal {
  background: linear-gradient(100deg, #6d5530 0%, #c7a66a 12%, #fff4da 18%, #c7a66a 26%, #6d5530 38%, #e5c58b 50%, #fffaf0 55%, #b8955a 62%, #6d5530 74%, #e5c58b 86%, #fff3d4 91%, #6d5530 100%);
  background-size: 300% 100%;
  animation: giantMetal 12s linear infinite;
}
.footer-word__spot {
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,252,240,.95) 0%, rgba(255,230,180,.45) 12%, transparent 30%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .6s var(--ease);
}
.site-footer__brand:hover .footer-word__spot { opacity: 1; }
@keyframes giantMetal { to { background-position: -300% 0; } }

/* bottom bar */
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; justify-content: space-between;
  padding: 1.4rem var(--gutter) 0;
  font-size: .64rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--silver-dim);
}
.to-top {
  position: relative; display: inline-flex; align-items: center; gap: .8rem; padding: .4rem 0;
  font-size: .64rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--silver);
  transition: color .35s var(--ease);
}
.to-top__arrow { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold); transition: border-color .35s var(--ease), box-shadow .35s var(--ease); overflow: hidden; }
.to-top__arrow svg { width: 9px; height: 12px; transition: transform .35s var(--ease); }
.to-top img { width: 30px; height: auto; transition: transform .9s var(--ease); }
.to-top:hover, .to-top:focus-visible { color: var(--white); }
.to-top:hover .to-top__arrow, .to-top:focus-visible .to-top__arrow { border-color: rgba(229,197,139,.6); box-shadow: 0 0 14px -4px rgba(229,197,139,.6); }
.to-top:hover .to-top__arrow svg, .to-top:focus-visible .to-top__arrow svg { transform: translateY(-3px); }
.to-top:hover img, .to-top:focus-visible img { transform: translateY(-4px) rotate(-6deg); }
.to-top:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 6px; }

@media (prefers-reduced-motion: reduce) {
  .footer-marquee__track, .footer-word__metal { animation: none; }
}


/* ---------- footer links: sliding underline in addition to the gold lead-in ---------- */
.site-footer__col > a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: color .35s var(--ease), transform .45s var(--ease), background-size .45s var(--ease); }
.site-footer__col > a:hover, .site-footer__col > a:focus-visible { background-size: 100% 1px; }
.site-footer__col > a:focus-visible { color: var(--white); outline: none; transform: translateX(1.1rem); }
.site-footer__col > a:focus-visible::before { transform: scaleX(1); }

/* ---------- social icons ---------- */
.social { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.social__link {
  display: inline-flex; align-items: center; gap: .8rem; width: max-content;
  font-size: .92rem; color: var(--silver);
  transition: color .35s var(--ease), transform .35s var(--ease);
}
.social__icon {
  position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--white);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), background-color .35s var(--ease);
}
.social__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.social__icon svg .dot { fill: currentColor; }
.social__label { position: relative; padding-bottom: 2px; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), transform .35s var(--ease); }
a.social__link:hover, a.social__link:focus-visible { color: var(--white); outline: none; }
a.social__link:hover .social__icon, a.social__link:focus-visible .social__icon {
  transform: translateY(-3px); color: var(--gold-hi); border-color: rgba(229,197,139,.65);
  background: rgba(229,197,139,.06); box-shadow: 0 0 0 1px rgba(229,197,139,.12), 0 6px 18px -8px rgba(229,197,139,.55);
}
a.social__link:hover .social__label, a.social__link:focus-visible .social__label { background-size: 100% 1px; transform: translateX(2px); }
a.social__link:focus-visible .social__icon { outline: 1px solid var(--gold-hi); outline-offset: 3px; }
/* not yet configured: present, quiet, not interactive */
.social__link.is-disabled { color: var(--silver); opacity: .62; cursor: default; }
.social__link.is-disabled .social__icon { color: var(--white); border-style: dashed; border-color: rgba(244,242,237,.28); }

/* ---------- city clocks: a full-width band under the columns ---------- */
.footer-cities { padding: 1.6rem var(--gutter); border-bottom: 1px solid var(--line); }
.footer-clocks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer-clocks li { display: grid; gap: .25rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.footer-clocks__city { font-size: .58rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--silver-dim); }
.footer-clocks b { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.15; color: var(--white); font-variant-numeric: tabular-nums; }
.footer-clocks b i { font-style: normal; animation: blink 2s steps(2) infinite; color: var(--gold); }
@media (max-width: 899px) { .footer-clocks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-clocks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; } .footer-clocks b { font-size: 1.4rem; } }

@media (prefers-reduced-motion: reduce) {
  .footer-clocks b i { animation: none; }
  a.social__link:hover .social__icon, a.social__link:focus-visible .social__icon, .to-top:hover .to-top__arrow svg, .to-top:hover img { transform: none; }
}
/* the city band now closes the grid; the bottom bar sits right under it */
.site-footer__bottom { margin-top: 0; border-top: 0; }
@media (max-width: 899px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 1.6rem; }
  .site-footer__brand, .site-footer__col--social { grid-column: 1 / -1; }
  .site-footer__col--social .social { grid-template-columns: repeat(2, max-content); gap: .7rem 1.6rem; }
  .site-footer__col > a { width: auto; max-width: 100%; line-height: 1.35; }
}
@media (max-width: 379px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* "New project?" + public email, under the tagline */
.footer-mail { display: grid; gap: .35rem; margin: .2rem 0 0; }
.footer-mail__label { font-size: .58rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--silver-dim); }
.footer-mail__link {
  width: max-content; max-width: 100%; font-size: .98rem; color: var(--white); padding-bottom: 2px;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat;
  transition: color .35s var(--ease), background-size .45s var(--ease);
}
.footer-mail__link:hover, .footer-mail__link:focus-visible { color: var(--gold-hi); background-size: 100% 1px; outline: none; }
.footer-mail__link:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 4px; }
