/* Footer: curtain reveal, company card, link columns, filling wordmark */
.site-footer {
  --reveal: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--ink);
  color: var(--cream-on-dark);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Curtain: the page slides up and uncovers the footer (set by footer.js when it fits the viewport) */
.has-footer-reveal main {
  position: relative; z-index: 1;
  background: var(--egg);
  border-radius: 0 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
  box-shadow: 0 40px 70px -40px rgba(18, 19, 43, .45);
}
.has-footer-reveal .site-footer { position: sticky; bottom: 0; z-index: 0; margin-top: 0; border-radius: 0; }
.has-footer-reveal .footer__inner {
  translate: 0 calc((1 - var(--reveal)) * -90px);
  scale: calc(.94 + var(--reveal) * .06);
  opacity: calc(.35 + var(--reveal) * .65);
}
.footer__inner { position: relative; z-index: 1; transform-origin: 50% 100%; }

/* Ambient glows + pointer spotlight (transform only) */
.footer__glow { position: absolute; z-index: -1; aspect-ratio: 1; pointer-events: none; }
.footer__glow--a { width: 46vw; right: -12vw; top: -16vw; background: radial-gradient(circle at 40% 40%, var(--magenta), transparent 62%); opacity: .3; filter: blur(20px); }
.footer__glow--b { width: 36vw; left: -14vw; bottom: -12vw; background: radial-gradient(circle at 50% 50%, var(--indigo-2), transparent 65%); opacity: .28; filter: blur(24px); animation-delay: -7s; }
.footer__spot {
  position: absolute; z-index: -1; left: 0; top: 0;
  width: 520px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 23, 111, .2), transparent 65%);
  translate: calc(var(--fx, -600px) - 50%) calc(var(--fy, -600px) - 50%);
  transition: translate .9s var(--ease-out), opacity .4s;
  pointer-events: none;
}

/* Top: company card + three link columns */
.footer__top {
  display: grid;
  /* link columns take the width of their longest link; the company card takes the rest */
  grid-template-columns: minmax(0, 1fr) repeat(3, max-content);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.footer__card {
  display: grid; gap: 1.4rem;
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  border-radius: 28px;
  color: var(--cream-on-dark);
  transition: transform .5s var(--ease-out);
}
.footer__logo { display: inline-flex; justify-self: start; }
.footer__logo img { width: 170px; height: auto; }
.footer__company { display: grid; gap: .8rem; font-style: normal; }
.footer__line.footer__company-name {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--cream-on-dark);
}
.footer__line {
  display: grid; grid-template-columns: 36px 1fr; gap: .8rem; align-items: center;
  font-size: .93rem; line-height: 1.45;
  color: rgba(var(--on-rgb), .82);
}
a.footer__line { font-weight: 600; color: var(--cream-on-dark); transition: color .25s; }
.footer__ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(var(--on-rgb), .28);
  border-radius: 12px;
  transition: background .3s, border-color .3s, rotate .45s var(--ease-spring);
}
.footer__ico svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
a.footer__line:hover .footer__ico, a.footer__line:focus-visible .footer__ico { background: var(--magenta); border-color: var(--magenta); color: #f2eef6; rotate: -10deg; }
a.footer__line:hover { color: var(--magenta); }

.footer__col { padding-top: .4rem; }
.footer__title {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blush-fixed);
  margin-bottom: 1.2rem;
}
.footer__links { display: grid; gap: .75rem; }
.footer__links a {
  position: relative;
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(var(--on-rgb), .86);
  transition: color .25s, translate .35s var(--ease-out);
}
/* A line grows in front of the hovered or current link, in the margin, so the text never moves or wraps */
.footer__links a::before {
  content: "";
  position: absolute; right: calc(100% + .45rem); top: 50%;
  width: 0; height: 2px; margin-top: -1px; border-radius: 2px;
  background: var(--magenta);
  transition: width .35s var(--ease-out);
}
.footer__links a:hover, .footer__links a:focus-visible, .footer__links a[aria-current="page"] { color: var(--cream-on-dark); }
.footer__links a:hover::before, .footer__links a:focus-visible::before, .footer__links a[aria-current="page"]::before { width: 14px; }
.footer__swatch {
  flex-shrink: 0;
  width: 12px; height: 12px;
  border: 1.5px solid rgba(var(--on-rgb), .55);
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  background: var(--c);
  transition: rotate .5s var(--ease-spring), scale .35s var(--ease-spring);
}
.footer__links a:hover .footer__swatch { rotate: 90deg; scale: 1.3; }

/* Giant wordmark: faint tint, --reveal sweeps the brand gradient across it */
.footer__wordmark {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-inline: 2vw;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 18.6vw, 19rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  padding-bottom: .14em;
  color: transparent;
  background:
    linear-gradient(100deg, var(--magenta) 0%, var(--indigo-2) 45%, var(--orchid) 75%, var(--magenta) 100%) 0 0 / calc(var(--reveal) * 100%) 100% no-repeat,
    linear-gradient(rgba(var(--on-rgb), .08), rgba(var(--on-rgb), .08));
  -webkit-background-clip: text;
  background-clip: text;
}
.footer__wordmark .char { color: transparent; transition: color .4s, font-variation-settings .4s; }

/* Bottom bar */
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.4rem 1.6rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(var(--on-rgb), .15);
  font-size: var(--fs-small);
  color: rgba(var(--on-rgb), .7);
}
.footer__bottom .brand-name { color: var(--magenta); font-weight: 600; }
.footer__tools { display: flex; align-items: center; gap: .8rem; }
.footer__tool {
  padding: .55rem 1.05rem;
  border: 1.5px solid rgba(var(--on-rgb), .3);
  border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  transition: background .25s, color .25s, border-color .25s;
}
.footer__tool:hover { background: var(--cream-on-dark); color: var(--egg); border-color: var(--cream-on-dark); }

/* Back to top: ring shows how far down the page you are */
.footer__totop { display: inline-flex; align-items: center; gap: .7rem; font-size: .82rem; font-weight: 600; color: var(--cream-on-dark); }
.footer__ring { position: relative; width: 48px; height: 48px; display: grid; place-items: center; }
.footer__ring svg:first-child { position: absolute; inset: 0; rotate: -90deg; }
.footer__ring-track { fill: none; stroke: rgba(var(--on-rgb), .2); stroke-width: 2; }
.footer__ring-bar { fill: none; stroke: var(--magenta); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--sp, 0)); }
@supports (animation-timeline: scroll()) {
  .footer__ring-bar { animation: ring-fill linear both; animation-timeline: scroll(root); }
}
@keyframes ring-fill { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.footer__ring-arrow { width: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: translate .4s var(--ease-spring); }
.footer__totop:hover .footer__ring-arrow { translate: 0 -4px; }
.footer__totop:hover .footer__ring-track { stroke: var(--magenta); }

/* Responsive */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: repeat(3, max-content); justify-content: space-between; }
  .footer__card { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: start; gap: 1.4rem 3rem; }
}
@media (max-width: 720px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__links a { white-space: normal; }
  .footer__card { grid-template-columns: 1fr; }
  .footer__col:first-of-type { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
