/* ==========================================================================
   Aurem — Footer (curtain reveal, live clock, proximity-weight wordmark).
   Uses brand tokens from hero.css (:root --ah-*) and shared components.
   ========================================================================== */

/* The wrapper clips the footer. With .is-reveal (added by footer.js on desktop)
   the footer becomes fixed underneath and the page scrolls up off it. */
.ah-footer-wrap { position: relative; z-index: 0; clip-path: inset(0); }
.ah-footer-wrap.is-reveal { height: var(--fh, auto); }
.ah-footer-wrap.is-reveal .ah-footer { position: fixed; left: 0; right: 0; bottom: 0; }

.ah-footer {
  --veil: 0;
  overflow: hidden;
  isolation: isolate;
  background: #0b070a;
  border-top: 1px solid var(--ah-line);
}
/* darkening veil driven by scroll (fades away as the footer is uncovered) */
.ah-footer::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: var(--ah-ink); opacity: var(--veil);
}
.ah-footer__glow {
  position: absolute; left: 50%; bottom: -30%; z-index: -1;
  width: 110vw; height: 70vw; max-height: 1100px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 16, 46, .45), rgba(255, 90, 42, .12) 55%, transparent);
  filter: blur(40px);
  pointer-events: none;
}
.ah-footer > .ah-grain { z-index: 0; opacity: .07; }

.ah-footer__inner {
  position: relative; z-index: 1;
  max-width: 1680px; margin: 0 auto;
  padding: clamp(48px, 7vh, 120px) var(--ah-gutter) 22px;
}

/* ---------- Top: CTA ---------- */
.ah-footer__top {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 40px;
}
.ah-footer__title {
  margin-top: 8px;
  font-family: var(--ah-display); font-variation-settings: "opsz" 96;
  font-weight: 600; font-size: clamp(2.6rem, min(7vw, 9vh), 8.5rem);
  line-height: .92; letter-spacing: -.055em;
}
.ah-footer__line { display: block; overflow: hidden; padding: 0 .05em .1em; margin: 0 -.05em -.1em; }
.ah-footer__line > span { display: inline-block; }
.ah-footer__title em { font-family: var(--ah-serif); font-style: italic; font-weight: 400; color: var(--ah-ember); letter-spacing: -.02em; }

.ah-footer__contact { display: grid; justify-items: end; gap: 14px; text-align: right; }
.ah-footer__email {
  display: block;
  font-family: var(--ah-display); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 3rem); letter-spacing: -.04em; line-height: 1.15;
}
.ah-footer__roll { position: relative; display: block; height: 1.15em; overflow: hidden; }
.ah-footer__roll > span { display: block; transition: transform .7s var(--ah-ease); }
.ah-footer__roll > span:last-child { color: var(--ah-ember); }
.ah-footer__email:hover .ah-footer__roll > span { transform: translateY(-100%); }
.ah-footer__phone { font-size: 16px; color: var(--ah-muted); transition: color .3s; }
.ah-footer__phone:hover { color: var(--ah-text); }
.ah-footer__contact .ah-btn { margin-top: 10px; }

/* ---------- Columns ---------- */
.ah-footer__cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(24px, 4vh, 90px);
  padding-top: 28px;
  border-top: 1px solid var(--ah-line);
}
.ah-footer__col ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.ah-footer__link {
  position: relative; display: inline-flex; align-items: center;
  font-size: 16px; font-weight: 500;
  transition: color .3s, transform .6s var(--ah-ease);
}
.ah-footer__link::before {
  content: ""; width: 0; height: 1px; margin-right: 0; background: var(--ah-ember);
  transition: width .6s var(--ah-ease), margin-right .6s var(--ah-ease);
}
.ah-footer__link:hover { color: var(--ah-blush); }
.ah-footer__link:hover::before { width: 18px; margin-right: 8px; }
.ah-footer__link i { margin-left: 6px; font-style: normal; font-size: 13px; color: var(--ah-ember); transition: transform .6s var(--ah-ease); }
.ah-footer__link:hover i { transform: translate(3px, -3px); }
.ah-footer__address { margin: 16px 0 18px; font-style: normal; font-size: 16px; line-height: 1.6; color: var(--ah-muted); }

.ah-footer__time {
  margin-top: 14px;
  font-family: var(--ah-display); font-weight: 600;
  font-size: clamp(2.2rem, 3.4vw, 3.4rem); line-height: 1; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.ah-footer__time span { color: var(--ah-ember); }
.ah-footer__status { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--ah-muted); }
.ah-footer__status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ah-muted); }
.ah-footer__status.is-open .ah-footer__status-dot { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .15); }

/* ---------- Giant wordmark ---------- */
.ah-footer__brand {
  display: flex; justify-content: center; align-items: flex-start;
  margin-top: clamp(20px, 4vh, 64px);
  overflow: hidden;
  font-family: var(--ah-display);
  font-size: clamp(5rem, min(24vw, 28vh), 30rem);
  line-height: .78; letter-spacing: 0;
  user-select: none;
}
.ah-fl {
  --w: 600;
  display: inline-block;
  padding: 0 .02em .06em; /* room so background-clip:text never cuts glyph edges */
  margin-right: -.07em; /* tight tracking via margin, not letter-spacing */
  font-weight: 600; /* fallback */
  font-variation-settings: "opsz" 96, "wght" var(--w);
  background: linear-gradient(180deg, var(--ah-text) 0%, var(--ah-gold) 38%, var(--ah-ember) 70%, var(--ah-crimson) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  will-change: transform;
}
.ah-fl--r { font-size: .16em; margin: .9em 0 0 .6em; padding: 0 .1em; line-height: 1; color: transparent; }

/* ---------- Bottom bar ---------- */
.ah-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: 16px; padding-top: 20px;
  border-top: 1px solid var(--ah-line);
  font-size: 13px; color: var(--ah-muted);
}
.ah-footer__legal { display: flex; gap: 24px; }
.ah-footer__legal a { transition: color .3s; }
.ah-footer__legal a:hover { color: var(--ah-text); }

.ah-totop {
  position: relative; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  color: var(--ah-text); font-size: 18px;
  transition: transform .6s var(--ah-ease), background-color .4s;
}
.ah-totop svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ah-totop circle { fill: none; stroke-width: 1.5; }
.ah-totop__track { stroke: var(--ah-line); }
.ah-totop__ring { stroke: var(--ah-ember); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--p, 1); }
.ah-totop:hover { transform: translateY(-4px); background: rgba(255, 90, 42, .12); }
.ah-totop span { transition: transform .6s var(--ah-ease); }
.ah-totop:hover span { transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ah-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .ah-footer__contact { justify-items: start; text-align: left; }
}
@media (max-width: 560px) {
  .ah-footer__cols { grid-template-columns: 1fr 1fr; }
  .ah-footer__bottom { flex-direction: column; align-items: flex-start; }
  .ah-totop { position: absolute; right: var(--ah-gutter); bottom: 24px; }
}
