/* Shared site header: brand, nav with live indicator, SF clock, "Say hi", and a full-screen menu on phones. */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--gutter); transition: padding .45s cubic-bezier(.16,1,.3,1), background .45s ease, border-color .45s ease, transform .5s cubic-bezier(.16,1,.3,1);
  border-bottom: 1px solid transparent; }
.hd.scrolled { padding-top: 11px; padding-bottom: 11px; background: rgba(10, 11, 10, 0.58); border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
.hd.hidden { transform: translateY(-110%); }

.hd .brand { display: flex; flex-direction: column; line-height: 1.1; }
.hd .brand .nm { font-family: var(--serif); font-size: 23px; letter-spacing: -0.01em; }
.hd .brand .nm i { color: var(--glow); font-style: italic; }
.hd .brand .rl { margin-top: 4px; font-size: 12px; color: var(--dim); letter-spacing: var(--tr-label); transition: opacity .35s, margin .35s, max-height .35s; max-height: 20px; overflow: hidden; }
.hd.scrolled .brand .rl { opacity: 0; max-height: 0; margin-top: 0; }

.hd .nav { position: relative; display: flex; gap: clamp(16px, 2.2vw, 30px); font-size: 14px; }
.hd .nav a { position: relative; padding: 4px 0; color: var(--dim); transition: color .25s; }
.hd .nav a:hover, .hd .nav a.on { color: var(--ink); }
.hd .nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.hd .nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
.hd .nav a.on::before { content: ''; position: absolute; left: -11px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }

.hd .aside { display: flex; align-items: center; gap: 16px; }
.hd .clock { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: var(--tr-label); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd .clock i { width: 6px; height: 6px; border-radius: 50%; background: var(--glow); opacity: .8; }
.hd .hi { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; border: 1px solid rgba(214, 245, 168, .45); font-size: 13px; font-weight: 500; color: var(--ink);
  transition: background .3s, color .3s, border-color .3s; }
.hd .hi:hover { background: var(--glow); color: #111; border-color: var(--glow); }
.hd .menu-btn { display: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }

/* full-screen menu for small screens */
.site-menu { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: space-between; padding: 22px var(--gutter) 34px;
  background: rgba(10, 11, 10, 0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.site-menu[hidden] { display: none; }
.site-menu .top { display: flex; justify-content: space-between; align-items: center; }
.site-menu .top .nm { font-family: var(--serif); font-size: 23px; }
.site-menu .close { font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.site-menu nav { display: flex; flex-direction: column; gap: 6px; }
.site-menu nav a { font-family: var(--serif); font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1.02; letter-spacing: -0.02em; }
.site-menu nav a.on { color: var(--glow); font-style: italic; }
.site-menu .bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; font-size: 13px; color: var(--dim); }
.site-menu .bottom .meta { align-self: stretch; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-menu .li { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 500; transition: background .25s, border-color .25s; }
.site-menu .li svg { width: 16px; height: 16px; }
.site-menu .li span { color: var(--glow); }
.site-menu .li:active, .site-menu .li:hover { background: rgba(239, 238, 232, .06); border-color: var(--glow); }

@media (max-width: 860px) {
  .hd .nav, .hd .clock, .hd .hi { display: none; }
  .hd .menu-btn { display: inline-flex; }
}
@media (max-width: 1100px) { .hd .clock { display: none; } }
@media (prefers-reduced-motion: reduce) { .hd, .hd .brand .rl { transition: none; } }

/* ---------- the sign-off at the foot of every page (same as the homepage's contact block) ---------- */
.site-foot { display: block; padding: clamp(90px, 15vh, 180px) var(--gutter) 120px; }
.site-foot .lead { margin: 0 0 22px; max-width: 44ch; font-size: var(--t-lead, clamp(1.12rem, 1.02rem + 0.4vw, 1.32rem)); line-height: 1.5; color: var(--dim); }
.site-foot h2 { margin: 0 0 0 -0.045em; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 0.8rem + 5.2vw, 6.4rem); line-height: 1.02; letter-spacing: var(--tr-display); color: var(--ink); text-wrap: balance; }
.site-foot .mail { white-space: nowrap; padding-bottom: .04em; background: linear-gradient(var(--glow), var(--glow)) 0 100% / 100% 2px no-repeat; transition: color .35s ease; }
.site-foot .mail:hover { color: var(--glow); }
.site-foot .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 70px; font-size: var(--t-label); font-weight: 500; color: var(--faint); }
.site-foot .row nav { display: flex; gap: 22px; }
.site-foot .row a { transition: color .25s; }
.site-foot .row a:hover { color: var(--ink); }
