/* ==========================================================================
   Saizen Acuity — shared footer (menus/sz-footer.js builds it)
   A light block that closes the page: crest and London clock, the closing
   line, the site map, and the wordmark. Crisp: hairlines, small radii,
   gold only as a metal. Self-contained; scoped under .szf.
   ========================================================================== */
.szf {
  --szf-bg: #F4F0E7;
  --szf-card: #FFFFFF;
  --szf-ink: #17130E;
  --szf-ink-2: #3F382F;
  --szf-mute: #7D7466;
  --szf-line: rgba(23, 19, 14, 0.12);
  --szf-gold: #B8892B;
  --szf-gold-2: #E2AE36;
  --szf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --szf-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --szf-gutter: clamp(16px, 4vw, 56px);

  position: relative; overflow: hidden; isolation: isolate;
  background: var(--szf-bg); color: var(--szf-ink); border-top: 1px solid var(--szf-line);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.szf *, .szf *::before, .szf *::after { box-sizing: border-box; }
/* a fine gold grid in the top corner, fading out: the same hand as the nav cards */
.szf::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(184, 137, 43, 0.1) 31px 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(184, 137, 43, 0.07) 31px 32px);
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 45%); mask-image: linear-gradient(200deg, #000 0%, transparent 45%);
}
.szf a { color: inherit; }
.szf__in { max-width: 1320px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--szf-gutter) 22px; }

/* ── top row ───────────────────────────────────────────── */
.szf__top { display: flex; align-items: center; gap: 18px; }
.szf__brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.szf__brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px rgba(23, 19, 14, 0.18); }
.szf__brand span { font: 400 20px/1 'Playfair Display SC', 'Playfair Display', Georgia, serif; letter-spacing: 0.03em; }
.szf__brand b { font-weight: 700; color: var(--szf-gold); }
.szf__clock { margin: 0; display: inline-flex; align-items: center; gap: 9px; font: 400 10.5px/1 'DM Mono', ui-monospace, monospace; letter-spacing: 0.18em; text-transform: uppercase; color: var(--szf-mute); }
.szf__clock i { width: 6px; height: 6px; border-radius: 50%; background: #0E9F6E; }
.szf__clock b { font-weight: 400; color: var(--szf-ink); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.szf__clock small { font-size: inherit; }
.szf__up { position: relative; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--szf-card); color: var(--szf-ink); cursor: pointer; display: grid; place-items: center; }
.szf__up svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.szf__up circle { fill: none; stroke-width: 1.5; }
.szf__up .trk { stroke: var(--szf-line); }
.szf__up .bar { stroke: var(--szf-gold); stroke-linecap: round; }
.szf__up-arr { width: 16px; height: 16px; transition: transform 0.5s var(--szf-spring); }
.szf__up:hover .szf__up-arr { transform: translateY(-3px); }
.szf__up:focus-visible { outline: 2px solid var(--szf-gold); outline-offset: 3px; }

/* ── the closing line ──────────────────────────────────── */
.szf__lead { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; margin-top: clamp(44px, 6vw, 84px); padding-bottom: clamp(36px, 4.5vw, 56px); border-bottom: 1px solid var(--szf-line); }
.szf__say { margin: 0; max-width: 13ch; font: 400 clamp(40px, 5.6vw, 84px)/1 'Playfair Display SC', 'Playfair Display', Georgia, serif; letter-spacing: -0.005em; }
.szf__say em { font-style: normal; color: var(--szf-gold); }
.szf__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.szf__btn, .szf__mail {
  display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 7px 0 20px; border: 0; border-radius: 3px;
  font: 500 14.5px/1 'DM Sans', system-ui, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}
.szf .szf__btn { background: var(--szf-ink); color: #FFF8EA; } /* beats .szf a's inherited ink */
.szf__btn:hover { background: #2A241C; }
.szf__mail { background: var(--szf-card); color: var(--szf-ink); box-shadow: inset 0 0 0 1px var(--szf-line); }
.szf__mail:hover { box-shadow: inset 0 0 0 1px var(--szf-ink); }
.szf__mail.is-copied { color: var(--szf-gold); box-shadow: inset 0 0 0 1px var(--szf-gold); }
.szf__btn i, .szf__mail i { width: 40px; height: 40px; border-radius: 2px; display: grid; place-items: center; }
.szf__btn i { background: var(--szf-gold-2); color: var(--szf-ink); }
.szf__mail i { background: var(--szf-bg); }
.szf__btn svg, .szf__mail svg { width: 14px; height: 14px; transition: transform 0.5s var(--szf-spring); }
.szf__btn:hover svg { transform: rotate(45deg); }

/* ── site map ──────────────────────────────────────────── */
.szf__map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 24px; padding: clamp(32px, 4vw, 48px) 0; }
.szf__col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.szf__col h4 { margin: 0 0 12px; font: 400 10px/1 'DM Mono', ui-monospace, monospace; letter-spacing: 0.22em; text-transform: uppercase; color: var(--szf-mute); }
.szf__col--page h4 { color: var(--szf-gold); }
.szf__col a { position: relative; align-self: flex-start; padding: 5px 0; text-decoration: none; font-size: 15px; color: var(--szf-ink-2); transition: color 0.25s; }
.szf__col a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--szf-gold); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--szf-ease); }
.szf__col a:hover { color: var(--szf-ink); }
.szf__col a:hover::after { transform: scaleX(1); }

/* ── the wordmark ──────────────────────────────────────── */
.szf__mark {
  display: flex; justify-content: space-between; gap: 0.25em; padding-top: 6px; overflow: hidden;
  font: 400 min(11vw, 180px)/0.86 'Playfair Display SC', 'Playfair Display', Georgia, serif; letter-spacing: -0.01em;
  user-select: none; -webkit-user-select: none; white-space: nowrap;
}
.szf__w { display: inline-flex; }
.szf__w--gold { color: var(--szf-gold); font-weight: 700; }
.szf__ch { display: inline-block; overflow: hidden; padding-bottom: 0.04em; transition: transform 0.45s var(--szf-ease); will-change: transform; }
.szf__ch > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--szf-ease); }
.szf.is-in .szf__ch > span { transform: none; }

/* ── base line ─────────────────────────────────────────── */
.szf__base { display: flex; justify-content: space-between; gap: 10px 28px; flex-wrap: wrap; margin-top: clamp(18px, 2vw, 26px); padding-top: 18px; border-top: 1px solid var(--szf-line); font: 400 10.5px/1.6 'DM Mono', ui-monospace, monospace; letter-spacing: 0.08em; color: var(--szf-mute); }
.szf__legal { display: flex; gap: 18px; margin-right: auto; }
.szf__legal a { color: var(--szf-ink, inherit); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .15s ease; }
.szf__legal a:hover { color: var(--szf-gold, #B8892B); }

/* ── smaller screens ───────────────────────────────────── */
@media (max-width: 1000px) {
  .szf__map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .szf__top { flex-wrap: wrap; }
  .szf__clock { order: 3; width: 100%; }
  .szf__brand span { font-size: 18px; }
  .szf__acts, .szf__btn, .szf__mail { width: 100%; }
  .szf__btn, .szf__mail { justify-content: space-between; }
  .szf__map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .szf__col--page { grid-column: 1 / -1; }
  .szf__col a { font-size: 14.5px; }
  .szf__mark { gap: 0.18em; }
}
@media (prefers-reduced-motion: reduce) {
  .szf__ch > span { transform: none; transition: none; }
}
