/* Kala Art Wrap — shared site footer (uses the colour tokens each page defines on :root) */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 14vh, 150px) 5vw 0;
  background:
    radial-gradient(55% 60% at 50% 100%, rgba(140, 22, 49, .45), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-3) 100%);
  border-top: 1px solid var(--line);
  color: var(--ink);
  content-visibility: auto;
  contain-intrinsic-size: auto 1100px;
}
.sf-cta {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: 4vw;
  padding-bottom: clamp(56px, 9vh, 96px);
  border-bottom: 1px solid var(--line);
}
.sf-cta h2 {
  margin: .45em 0 0;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(38px, 4.6vw, 84px);
  line-height: 1;
  letter-spacing: -.01em;
}
.sf-cta h2 em {
  font-style: italic;
  background: linear-gradient(180deg, #ffd6df, #e8718d);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .06em;
}
.sf-eyebrow {
  display: inline-flex; align-items: center; gap: .9em; margin: 0;
  font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.sf-eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.sf-cta__side { display: grid; gap: 22px; justify-items: start; }
.sf-cta__side p { margin: 0; color: var(--ink-mute); font-size: 16px; line-height: 1.65; max-width: 36ch; }
.sf-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.sf-btn {
  display: inline-flex; align-items: center; gap: .6em;
  height: 52px; padding: 0 1.5em; border-radius: 999px;
  font-weight: 500; letter-spacing: .02em; white-space: nowrap;
  transition: transform .4s var(--orb-soft), background-color .4s var(--orb-soft), border-color .4s var(--orb-soft), color .4s var(--orb-soft);
}
.sf-btn svg { width: 18px; height: 18px; fill: currentColor; }
.sf-btn--solid { background: var(--ink); color: var(--surface); }
.sf-btn--solid:hover { background: var(--blush); transform: translateY(-2px); }
.sf-btn--ghost { border: 1px solid rgb(var(--gold-rgb) / .45); color: var(--gold-soft); }
.sf-btn--ghost:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }

.sf-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px 4vw;
  padding: clamp(48px, 8vh, 80px) 0 clamp(40px, 6vh, 64px);
}
.sf-brand img { height: 86px; width: auto; filter: drop-shadow(0 10px 30px rgba(140, 22, 49, .5)); }
.sf-brand p { margin: 18px 0 22px; max-width: 34ch; color: var(--ink-mute); line-height: 1.65; font-size: 15px; }
.sf-social { display: flex; gap: 10px; }
.sf-social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: rgb(var(--fg-rgb) / .03);
  transition: background-color .35s var(--orb-soft), border-color .35s var(--orb-soft), transform .35s var(--orb-soft);
}
.sf-social a:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-3px); }
.sf-social a:hover svg { fill: var(--surface); }
.sf-social svg { width: 18px; height: 18px; fill: var(--ink); transition: fill .35s var(--orb-soft); }
.sf-col h3 {
  margin: 0 0 18px;
  font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.sf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sf-col a, .sf-col span { color: var(--ink-soft); font-size: 15px; }
.sf-col a { position: relative; transition: color .3s var(--orb-soft); }
.sf-col a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--blush);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--orb-reveal);
}
.sf-col a:hover { color: var(--blush); }
.sf-col a:hover::after { transform: scaleX(1); transform-origin: left; }
.sf-col small { display: block; margin-top: 2px; font-size: 12px; color: rgb(var(--fg-rgb) / .45); }

.sf-word {
  margin: 0 -5vw;
  text-align: center;
  font-family: var(--f-deva);
  font-size: clamp(160px, 30vw, 520px);
  line-height: .78;
  height: .56em;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(var(--line-rgb) / .22) 0%, rgb(var(--line-rgb) / .06) 60%, rgb(var(--line-rgb) / 0) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sf-bottom {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: rgb(var(--fg-rgb) / .5);
}
.sf-bottom a:hover { color: var(--blush); }
.sf-top { display: inline-flex; align-items: center; gap: .5em; }
.sf-top i {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font-style: normal; transition: transform .35s var(--orb-soft);
}
.sf-top:hover i { transform: translateY(-3px); }

@media (max-width: 900px) {
  .sf-cta { grid-template-columns: 1fr; gap: 26px; }
  .sf-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .sf-brand { grid-column: 1 / -1; }
  .sf-btn { height: 48px; }
}
@media (max-width: 420px) {
  .sf-grid { grid-template-columns: 1fr; }
  .sf-btns { width: 100%; }
  .sf-btn { flex: 1; justify-content: center; }
}

.sf-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.sf-legal a { transition: color .3s; }
.sf-lock {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line);
  opacity: .7;
  transition: opacity .3s, border-color .3s, transform .3s;
}
.sf-lock svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sf-lock:hover { opacity: 1; border-color: var(--gold); transform: translateY(-2px); }
html[data-theme="light"] .sf-cta h2 em { background-image: linear-gradient(180deg, #d04a70, #8c1631); }
html[data-theme="light"] .sf-brand img { filter: brightness(.62) saturate(1.5) drop-shadow(0 8px 20px rgba(140, 22, 49, .25)); }
