/* The shared site footer ("Lead your market."), on every page: templates/footer.html, this file, footer/footer.js.
   The handoff's "1e Living terrain" layout and behaviour, skinned in the Atlas system: oxblood ground, paper type, gold lines,
   Cormorant Garamond, DM Sans and DM Mono, the paper button language and the Ridge wordmark. Self-contained: every token
   falls back to its Atlas value, so the page around it only has to load the fonts. */
.l29f {
  --f-ground: var(--foundation, #431B23);
  --f-ground-2: var(--foundation-2, #55252F);
  --f-paper: var(--paper, #E9DECA);
  --f-ink: var(--ink, #1E1517);
  --f-2: var(--on-dark-2, rgba(233, 222, 202, .84));
  --f-metal: var(--metal, #C9A570);
  --f-rule: var(--rule-dark, rgba(233, 222, 202, .2));
  --f-rule-2: var(--rule-dark-2, rgba(233, 222, 202, .34));
  --f-display: var(--display, "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif);
  --f-sans: var(--sans, "DM Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif);
  --f-mono: var(--mono, "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  --f-ease: cubic-bezier(.2, .7, .1, 1);
  --f-ease-io: cubic-bezier(.7, 0, .2, 1);
  --f-pop: cubic-bezier(.34, 1.56, .64, 1);
  --f-l: max(clamp(20px, 4vw, 72px), env(safe-area-inset-left, 0px));
  --f-r: max(clamp(20px, 4vw, 72px), env(safe-area-inset-right, 0px));
  position: relative; overflow: clip; isolation: isolate;
  background: var(--f-ground); color: var(--f-paper);
  box-shadow: inset 0 1px 0 rgba(201, 165, 112, .18);   /* the gold seam every dark band opens with */
  font: 400 17px/1.5 var(--f-sans); letter-spacing: normal; text-align: left;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.l29f *, .l29f *::before, .l29f *::after { box-sizing: border-box; }
.l29f :focus-visible { outline: 2px solid var(--f-metal); outline-offset: 4px; border-radius: 2px; }
.l29f__terrain { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; }
.l29f__in { position: relative; display: flex; flex-direction: column; gap: clamp(48px, 8vh, 96px); padding: clamp(110px, 16vh, 170px) var(--f-r) 0 var(--f-l); }

/* ---------- Headline and the booking pill ---------- */
.l29f__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.l29f__head { margin: 0; font: 500 clamp(56px, 9.6vw, 188px)/.9 var(--f-display); letter-spacing: -.022em; color: var(--f-paper); text-shadow: 0 0 40px var(--f-ground), 0 0 14px var(--f-ground); }
.l29f__line { display: block; }
.l29f__line > * { display: inline-block; }
.l29f__head em { font-style: italic; font-weight: 500; color: var(--f-metal); padding-right: .04em; }

.l29f__pill {
  position: relative; flex-shrink: 0; display: flex; align-items: center; gap: 16px; padding: 12px 32px 12px 12px;
  border-radius: 999px; background: var(--f-paper); color: var(--f-ink); text-decoration: none; will-change: transform;
  box-shadow: 0 20px 50px rgba(18, 3, 6, .42), 0 2px 6px rgba(18, 3, 6, .18);
  transition: background-color .35s var(--f-ease);
}
.l29f__pill:hover { background: #F6EFE2; }
.l29f__pill:focus-visible { outline-offset: 5px; border-radius: 999px; }
.l29f__orb {
  position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #F3D08F 0%, var(--f-metal) 52%, #B48C55 100%); color: var(--f-ground);
  box-shadow: inset 0 1px 1px rgba(255, 241, 201, .45), inset 0 -2px 6px rgba(67, 27, 35, .14);
}
.l29f__orb svg { position: relative; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg); transition: transform .6s var(--f-ease); }
.l29f__pill:hover .l29f__orb svg, .l29f__orb.is-flaring svg { transform: rotate(0deg); }
.l29f__orb > .tp { position: absolute; left: 50%; top: 50%; display: block; width: 0; height: 0; pointer-events: none; }   /* the trace's end: measured at the centre (scale-proof), it stops one radius short, on the rim */
/* the landing: a glow that blooms and settles while the trace rests on the rim, two rings that roll off it */
.l29f__halo { position: absolute; inset: -72%; z-index: -1; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .9s var(--f-ease);
  background: radial-gradient(closest-side, rgba(255, 241, 201, .9), rgba(243, 208, 143, .55) 28%, rgba(217, 162, 79, .2) 56%, rgba(217, 162, 79, 0) 100%); }
.l29f__orb.is-lit .l29f__halo { opacity: .5; }
.l29f__ring { position: absolute; inset: -2px; border: 1.5px solid #F3D08F; border-radius: 50%; opacity: 0; pointer-events: none; }
.l29f__cta { display: flex; flex-direction: column; gap: 3px; }
.l29f__cta-t { font: 500 18px/1.25 var(--f-sans); }
.l29f__cta-s { font: 400 15px/1.3 var(--f-sans); color: var(--f-ground-2); }

/* ---------- Info columns, on a solid panel so the lines never sit under the reading ---------- */
.l29f__panel { background: rgba(67, 27, 35, .9); border-radius: 16px; padding: clamp(4px, 1vh, 8px) clamp(16px, 2vw, 32px) 28px; }
.l29f__cols { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 36px clamp(24px, 3vw, 56px); padding-top: clamp(28px, 4vh, 44px); }
.l29f__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.l29f__label { margin: 0 0 2px; font: 500 12px/16px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--f-metal); }
.l29f__a, .l29f__t { margin: 0; font: 400 17px/1.45 var(--f-sans); color: var(--f-paper); }
.l29f__a {
  text-decoration: none; overflow-wrap: anywhere; padding-bottom: 3px;
  background: linear-gradient(var(--f-metal), var(--f-metal)) 0 100% / 0% 1px no-repeat;
  transition: background-size .45s cubic-bezier(.2, .7, .2, 1), color .3s;
}
.l29f__a:hover { background-size: 100% 1px; color: var(--f-metal); }
.l29f__copy { margin-top: 4px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--f-rule-2); color: var(--f-paper); font: 500 14px/1.2 var(--f-sans); cursor: pointer; transition: box-shadow .3s; }
.l29f__copy:hover { box-shadow: inset 0 0 0 1px var(--f-metal); }
.l29f__copy[hidden] { display: none; }
.l29f__time { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.l29f__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--f-metal); box-shadow: 0 0 0 4px rgba(201, 165, 112, .2); }

/* ---------- The wordmark: the Ridge and LATITUDE 29, full width, with a gold shine (footer.js moves the gradients) ---------- */
.l29f__mark { padding-top: 8px; }
.l29f__word { display: block; width: 100%; height: auto; overflow: visible; }
.l29f__letters { fill: url(#l29fShine); }   /* the supplied lettering, placed by the build (never type) */
.l29f__ridge path { fill: none; stroke: url(#l29fShine); stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.l29f__ridge path.is-gold { stroke: url(#l29fShineGold); stroke-width: 28; }

/* ---------- Legal row ---------- */
.l29f__legal { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin: 0 var(--f-r) 0 var(--f-l); padding: 20px 0 calc(24px + env(safe-area-inset-bottom, 0px)); font: 400 14px/1.5 var(--f-sans); color: var(--f-2); }
.l29f__legal p { margin: 0; }
.l29f__legal .l29f__a { font: inherit; color: inherit; }
.l29f__legal .l29f__a:hover { color: var(--f-metal); }
.l29f__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Phones and touch: the headline and the pill stack, the pill spans the width with its orb on the right
   (where the trace runs down the page), every link is a 44px target ---------- */
@media (max-width: 640px) {
  .l29f__top { flex-direction: column; align-items: stretch; gap: 28px; }
  .l29f__head { font-size: clamp(52px, 15vw, 88px); }
  .l29f__pill { flex-direction: row-reverse; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 24px; }
  .l29f__orb { width: 60px; height: 60px; }
  .l29f__cta-s { font-size: 16px; }
  .l29f__legal { flex-direction: column; gap: 2px; font-size: 16px; }
  .l29f__copy { font-size: 16px; }   /* Copy email, as the legal row's Privacy settings: no DM Sans under 16px on phones */
}
@media (max-width: 640px), (pointer: coarse) {
  .l29f__col { gap: 0; }
  .l29f__label { margin-bottom: 8px; }
  .l29f__a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0; background: none; }
  .l29f__t { padding: 10px 0; }
  .l29f__copy { min-height: 44px; margin-top: 6px; padding: 0 20px; }
}

/* ---------- Entrance (footer.js arms it; never under reduced motion or without JS) ---------- */
.l29f.is-armed .l29f__line { overflow-y: clip; overflow-x: visible; padding-bottom: .12em; margin-bottom: -.12em; }
.l29f.is-armed .l29f__line > * { transition: transform 1.3s var(--f-ease); }
.l29f.is-armed .l29f__line + .l29f__line > * { transition-delay: .1s; }
.l29f.is-armed .l29f__pill { transition: opacity .9s var(--f-ease) .3s, background-color .35s var(--f-ease); }
.l29f.is-armed .l29f__orb { transition: transform .9s var(--f-pop) .38s; }
.l29f.is-armed .l29f__col > * { transition: opacity .9s var(--f-ease) var(--d, .3s), transform .9s var(--f-ease) var(--d, .3s); }
.l29f.is-armed :is(.l29f__mark, .l29f__legal) { transition: opacity 1.2s var(--f-ease) .45s, transform 1.2s var(--f-ease) .45s; }
.l29f.is-armed:not(.is-in) .l29f__line > * { transform: translateY(112%); }
.l29f.is-armed:not(.is-in) .l29f__pill { opacity: 0; }
.l29f.is-armed:not(.is-in) .l29f__orb { transform: scale(.4); }
.l29f.is-armed:not(.is-in) .l29f__col > * { opacity: 0; transform: translateY(14px); }
.l29f.is-armed:not(.is-in) :is(.l29f__mark, .l29f__legal) { opacity: 0; transform: translateY(28px); }
/* a keyboard jump into the footer shows the pill at once, before the entrance has played */
.l29f:focus-within .l29f__pill { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  .l29f__pill, .l29f__orb svg, .l29f__a, .l29f__halo { transition: none; }
}
