/* ==========================================================================
   FOOTER — the site's closing scene, in the hero's language: the night
   ground, the gold blueprint floor from the menu, an architect's line sketch
   of three rising towers that draws itself (the dive's "sketch to home" in
   miniature), and the wordmark standing on the floor.
   js/footer.js sets on .ftr:
     ftr--armed  motion is allowed: the sketch starts undrawn
     is-in       the footer has come into view: the sketch draws, rules run
   ========================================================================== */

.ftr {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(70% 50% at 82% 18%, rgb(143 106 62 / .16), transparent 60%),
    radial-gradient(120% 90% at 50% 100%, #0f2740 0%, #071324 55%, #040d18 100%);
  color: var(--c-ivory);
}

/* the gold seam at the top edge */
.ftr::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold) 30%, #f3dfae 50%, var(--c-gold) 70%, transparent);
  opacity: .7;
}

/* The blueprint floor, receding under the wordmark and drifting slowly.
   As in the menu: the frame holds still and the grid inside it moves by
   transform (GPU), rather than repainting the layer every frame. */
.ftr__floor {
  position: absolute;
  z-index: -1;
  inset-inline: -70%;
  bottom: 0;
  height: 62%;
  overflow: hidden;
  transform: perspective(760px) rotateX(66deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgb(0 0 0 / .45) 34%, transparent 70%);
          mask-image: linear-gradient(to top, #000 0%, rgb(0 0 0 / .45) 34%, transparent 70%);
  pointer-events: none;
}
.ftr__floor::before {
  content: "";
  position: absolute;
  inset: -84px 0 0;
  background-image:
    linear-gradient(rgb(208 173 103 / .26) 2px, transparent 2px),
    linear-gradient(90deg, rgb(208 173 103 / .18) 1px, transparent 1px);
  background-size: 84px 84px;
  animation: ftr-floor 10s linear infinite;
}
@keyframes ftr-floor { to { transform: translateY(84px); } }

.ftr__in {
  position: relative;
  padding-block-start: clamp(88px, 10vw, 150px);
}

/* --- 1. the closing call -------------------------------------------------- */
/* the landing point for every "Contact" and "Book a call" link: clear of
   the sticky header when scrolled to */
.ftr__cta {
  scroll-margin-top: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: var(--sp-xl);
}

.ftr__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-gold);
}
.ftr__eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.ftr__h {
  margin-block-start: var(--sp-sm);
  font-family: var(--font-display);
  font-size: clamp(44px, 5.6vw, 96px);
  font-weight: var(--fw-medium);
  line-height: 1.0;
  letter-spacing: -.02em;
  color: var(--c-ivory);
  text-wrap: balance;
}
.ftr__h em { font-style: italic; color: var(--c-gold); }

.ftr__lead {
  max-width: 46ch;
  margin-block-start: var(--sp-md);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--c-mist);
}

.ftr__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-md) var(--sp-lg);
  margin-block-start: var(--sp-lg);
}

.ftr__call { display: grid; gap: 4px; }
.ftr__call-k {
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-mist);
}
.ftr__call-v {
  font-family: var(--font-body);
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: var(--fw-semi);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  color: var(--c-ivory);
  background: linear-gradient(var(--c-gold), var(--c-gold)) left bottom / 0 1px no-repeat;
  transition: color var(--dur-fast) var(--ease-css), background-size .5s var(--ease-css);
}
.ftr__call-v:hover,
.ftr__call-v:focus-visible { color: var(--c-gold); background-size: 100% 1px; }

/* --- the sketch ------------------------------------------------------------ */
.ftr__sketch {
  width: 100%;
  height: auto;
  overflow: visible;
}
.ftr__sketch .ln {
  fill: none;
  stroke: var(--c-gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ftr__sketch .o  { stroke-width: 1.4; }                       /* outlines */
.ftr__sketch .f  { stroke-width: .8; stroke-opacity: .55; }    /* floor lines */
.ftr__sketch .m  { stroke-width: .6; stroke-opacity: .35; stroke-dasharray: 2 4; }   /* mullions */
.ftr__sketch .g  { stroke-width: .8; stroke-opacity: .4; }     /* ground, dimension */
.ftr__sketch .s  { stroke: #f3dfae; stroke-width: 2.4; filter: drop-shadow(0 0 6px rgb(208 173 103 / .7)); }   /* the swoosh */
.ftr__sketch .w  { fill: #ffc47a; opacity: .85; }              /* lit windows */
.ftr__sketch .dim-t {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  fill: var(--c-gold);
  opacity: .7;
}

/* armed: everything starts undrawn; in view: it draws in order */
.ftr--armed .ftr__sketch .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ftr--armed .ftr__sketch .m  { stroke-dasharray: 1; }
.ftr--armed .ftr__sketch .w,
.ftr--armed .ftr__sketch .dim-t { opacity: 0; }

.ftr.is-in .ftr__sketch .ln { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.65, 0, .35, 1); }
.ftr.is-in .ftr__sketch .g { transition-delay: 0s; }
.ftr.is-in .ftr__sketch .o { transition-delay: .25s; }
.ftr.is-in .ftr__sketch .f { transition-delay: .9s; transition-duration: 1.1s; }
.ftr.is-in .ftr__sketch .m { transition-delay: 1.3s; }
.ftr.is-in .ftr__sketch .s { transition-delay: 1.7s; transition-duration: 1.4s; }
.ftr.is-in .ftr__sketch .w { opacity: .85; transition: opacity .6s var(--ease-css) 2s; }
/* rooms switch on in a scattered order rather than all at once */
.ftr.is-in .ftr__sketch .w:nth-child(5n + 1) { transition-delay: 2.1s; }
.ftr.is-in .ftr__sketch .w:nth-child(5n + 2) { transition-delay: 2.5s; }
.ftr.is-in .ftr__sketch .w:nth-child(5n + 3) { transition-delay: 2.3s; }
.ftr.is-in .ftr__sketch .w:nth-child(5n + 4) { transition-delay: 2.8s; }
.ftr.is-in .ftr__sketch .w:nth-child(5n)     { transition-delay: 3.1s; }
.ftr.is-in .ftr__sketch .dim-t { opacity: .7; transition: opacity .8s var(--ease-css) 1.6s; }

/* --- the run of gold between the call and the columns --------------------- */
.ftr__rule {
  height: 1px;
  margin-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 72px);
  background: linear-gradient(90deg, var(--c-gold), rgb(208 173 103 / .25) 55%, transparent);
  transform-origin: left center;
}
.ftr--armed .ftr__rule { transform: scaleX(0); }
.ftr.is-in .ftr__rule { transform: scaleX(1); transition: transform 1.6s var(--ease-css) .3s; }

/* --- 2. the columns ------------------------------------------------------- */
.ftr__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-lg) var(--sp-xl);
}

.ftr__brand { display: grid; align-content: start; gap: var(--sp-md); }
.ftr__mark { width: 48px; height: auto; }
.ftr__statement {
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: clamp(22px, 1.7vw, 28px);
  font-weight: var(--fw-medium);
  line-height: 1.25;
  color: var(--c-ivory);
}

.ftr__k {
  margin-block-end: var(--sp-sm);
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-gold);
}

.ftr__links { display: grid; gap: 2px; }
.ftr__links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: var(--fs-text);
  color: var(--c-mist);
  transition: color var(--dur-fast) var(--ease-css);
}
/* a short gold dash slides in ahead of the name */
.ftr__links a::before {
  content: "";
  width: 0;
  height: 1px;
  margin-inline-end: 0;
  background: var(--c-gold);
  transition: width .35s var(--ease-css), margin .35s var(--ease-css);
}
.ftr__links a:hover,
.ftr__links a:focus-visible { color: var(--c-ivory); }
.ftr__links a:hover::before,
.ftr__links a:focus-visible::before { width: 14px; margin-inline-end: 10px; }

.ftr__addr {
  font-style: normal;
  font-size: var(--fs-text);
  line-height: 1.65;
  color: var(--c-ivory);
}
.ftr__hours { margin-block-start: var(--sp-xs); font-size: var(--fs-small); color: var(--c-mist); }
.ftr__dir {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-block-start: var(--sp-sm);
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-gold);
}
.ftr__dir svg { width: 22px; height: 10px; transition: translate var(--dur-fast) var(--ease-css); }
.ftr__dir:hover svg,
.ftr__dir:focus-visible svg { translate: 4px 0; }

/* --- 3. the wordmark, standing on the floor ------------------------------- */
/* The logo file is the mask, so the letters take a fill: ivory into gold,
   fading into the floor, with a slow sheen passing over them. The letters
   occupy the middle 69% of the file, hence the oversized mask. */
.ftr__word {
  position: relative;
  aspect-ratio: 3.68;
  margin-block-start: clamp(64px, 8vw, 120px);
  /* The letters sit at 13.7%–82.9% of the file — a little left of its middle —
     so the mask is scaled to 138% and aligned at 43.8%, which centres them
     with a hair of margin either side. */
  -webkit-mask: url("../assets/img/hero-2.svg") 43.8% 50% / 138% auto no-repeat;
          mask: url("../assets/img/hero-2.svg") 43.8% 50% / 138% auto no-repeat;
  background: linear-gradient(180deg, rgb(248 245 239 / .96) 0%, rgb(243 223 174 / .92) 38%, rgb(208 173 103 / .7) 72%, rgb(208 173 103 / .28) 100%);
}
.ftr__word::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / .55) 50%, transparent 60%) -100% 0 / 60% 100% no-repeat;
  animation: ftr-sheen 7s var(--ease-css) infinite 1s;
}
@keyframes ftr-sheen {
  0%, 15% { background-position: -100% 0; }
  60%, 100% { background-position: 260% 0; }
}

/* --- 4. the bar ----------------------------------------------------------- */
.ftr__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm) var(--sp-md);
  padding-block: var(--sp-md) clamp(24px, 3vw, 36px);
  border-top: 1px solid rgb(248 245 239 / .1);
  font-size: var(--fs-small);
  color: var(--c-mist);
}
.ftr__legal { display: flex; flex-wrap: wrap; gap: 6px var(--sp-md); }
.ftr__legal a { display: inline-flex; align-items: center; min-height: 32px; transition: color var(--dur-fast) var(--ease-css); }
.ftr__legal a:hover,
.ftr__legal a:focus-visible { color: var(--c-gold); }

.ftr__end { display: flex; align-items: center; gap: var(--sp-md); }
.ftr__social { display: flex; gap: 8px; }
.ftr__social .btn-icon { width: 40px; height: 40px; border-color: rgb(248 245 239 / .22); color: var(--c-ivory); }
.ftr__social .btn-icon svg { width: 16px; height: 16px; stroke-width: 1.4; }

.ftr__top {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 6px 0 18px;
  border: 1px solid rgb(208 173 103 / .5);
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c-ivory);
  transition: border-color var(--dur-fast) var(--ease-css);
}
.ftr__top-i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-navy);
  transition: translate .35s var(--ease-css);
}
.ftr__top-i svg { width: 12px; height: 12px; }
.ftr__top:hover,
.ftr__top:focus-visible { border-color: var(--c-gold); }
.ftr__top:hover .ftr__top-i { translate: 0 -3px; }

/* --- reveal: columns and the bar rise in as each comes into view ---------- */
.ftr--armed .ftr__cols > *,
.ftr--armed .ftr__bar {
  opacity: 0;
  translate: 0 26px;
  transition: opacity .9s var(--ease-css), translate 1s var(--ease-css);
}
.ftr--armed .ftr__cols > :nth-child(2) { transition-delay: .08s; }
.ftr--armed .ftr__cols > :nth-child(3) { transition-delay: .16s; }
.ftr--armed .ftr__cols > :nth-child(4) { transition-delay: .24s; }
.ftr--armed .ftr__cols > .is-shown,
.ftr--armed .ftr__bar.is-shown { opacity: 1; translate: 0 0; }

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 1199px) {
  .ftr__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: var(--sp-md); }
  .ftr__brand .places { grid-column: 2; }
}

@media (max-width: 959px) {
  .ftr__cta { grid-template-columns: minmax(0, 1fr); gap: var(--sp-lg); }
  .ftr__sketch-wrap { order: -1; max-width: 520px; }
}

@media (max-width: 639px) {
  .ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-lg) var(--sp-md); }
  .ftr__brand { grid-template-columns: minmax(0, 1fr); }
  .ftr__brand .places { grid-column: auto; }
  .ftr__visit { grid-column: 1 / -1; }
  .ftr__actions { gap: var(--sp-md); }
  .ftr__actions .btn-gold { width: 100%; justify-content: space-between; }
  .ftr__bar { flex-direction: column; align-items: flex-start; }
  .ftr__end { width: 100%; justify-content: space-between; }
}

/* The narrowest phones: the call becomes the gold arrow alone; the words
   stay as its accessible name. */
@media (max-width: 419px) {
  .ftr__top { padding: 5px; border-color: transparent; }
  .ftr__top-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ftr__top-i { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .ftr__floor::before,
  .ftr__word::after { animation: none; }
}
