/* ─────────────────────────────────────────────────────────────────────────
   SITE CHROME — styles for the shared footer's "let's build" CTA block.
   (The header + thin footer bar are already styled per page; this carries the
   CTA section so it can live on every page via chrome.js.) Uses each page's
   existing design tokens (--fd, --fb, --accent, --ink, --muted, --faint…).
   ───────────────────────────────────────────────────────────────────────── */
.cta {
  padding: clamp(96px, 14vh, 160px) var(--pad-x) clamp(80px, 12vh, 120px);
  position: relative; text-align: left;
}
.cta-hl {
  font-family: var(--fd); font-weight: 400;
  font-size: clamp(54px, 7.6vw, 116px);
  line-height: .98; letter-spacing: -.025em;
  max-width: 1100px; margin: 0 0 56px;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.cta-hl em { color: var(--accent); font-style: normal; }
.cta-row {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--hair, rgba(20,20,25,.1));
}
.cta-email {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--fb); font-weight: 500;
  font-size: clamp(17px, 1.8vw, 22px);
  letter-spacing: -.015em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color .2s, border-color .2s, gap .3s var(--ease);
}
.cta-email:hover { color: var(--accent); border-color: var(--accent); gap: 20px; }
.cta-meta { display: flex; gap: 48px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.cta-meta dt {
  font-size: 10px; text-transform: uppercase; letter-spacing: .2em;
  color: var(--faint); margin-bottom: 4px;
}
.cta-meta dd { font-family: var(--fb); font-weight: 500; font-size: 13px; letter-spacing: -.005em; color: var(--ink); margin: 0; }
.cta-meta dd a { color: inherit; text-decoration: none; }
.cta-meta dd a:hover { color: var(--accent); }
@media (max-width: 700px) {
  .cta-row { flex-direction: column; align-items: flex-start; }
  .cta-meta { gap: 24px; }
}

/* ─── HEADER (canonical — identical on every page) ──────────────────────
   This file loads after each page's inline <style>, so these win and the
   top nav is byte-for-byte the same everywhere. The `none/0` resets undo
   per-page extras (e.g. the scroll backdrop-blur some pages added). */
.header { position: fixed; inset: 0 0 auto 0; z-index: 200; transition: transform .4s var(--ease); }
.header.hidden { transform: translateY(-110%); }
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--pad-x);
  background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: padding .5s var(--ease), background .4s, border-color .4s;
}
.header.scrolled .header-row {
  padding: 16px var(--pad-x);
  background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.brand {
  display: inline-flex; flex-direction: column; font-family: var(--fb);
  font-size: 15px; font-weight: 500; letter-spacing: -.005em; line-height: 1.05; color: var(--ink);
}
.brand b { font-weight: 500; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  position: relative; font-family: var(--fb); font-size: 13px;
  color: var(--muted); letter-spacing: .01em; transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::before {
  content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.theme-toggle {
  background: none; border: none; padding: 4px; cursor: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: color .25s;
}
.theme-toggle svg { display: block; overflow: visible; }
.theme-toggle .tt-disc { fill: currentColor; }
.theme-toggle .tt-cut { fill: black; transform-origin: 16.5px 9px; transform: scale(0); transition: transform .35s var(--ease); }
.theme-toggle:hover .tt-cut { transform: scale(1); }
[data-theme="dark"] .theme-toggle .tt-cut { transform: scale(1); }
[data-theme="dark"] .theme-toggle:hover .tt-cut { transform: scale(0); }
@media (max-width: 720px) {
  .header.scrolled .header-row { padding: 14px var(--pad-x); }
  .nav { gap: 18px; }
  .nav a { font-size: 12px; }
  .nav a.active::before { display: none; }
}

/* ─── FOOTER BAR ────────────────────────────────────────────────────────
   Brand removed; copyright sits on the left, socials on the right.
   Resets (width/margin/align-self) undo per-page quirks that offset or
   constrained the bar; the per-page 3-column grid is replaced with flex. */
footer {
  display: flex; justify-content: space-between; align-items: center;
  width: auto; max-width: none; margin: 0; align-self: stretch;
}
.ft-center { text-align: left; margin: 0; }
.ft-right { margin-left: auto; }

/* ─── CUSTOM CURSOR ─────────────────────────────────────────────────────
   On desktop pages that have the site's custom cursor (#cur), hide the OS
   cursor everywhere — incl. buttons/links that set cursor:pointer — so only
   the pink dot + ring show. Scoped so the 404 page (no #cur) keeps a normal
   cursor, and touch devices are unaffected. */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor *,
  body:has(#cur), body:has(#cur) * { cursor: none !important; }
}
/* identical pink dot + ring on every page (overrides per-page cursor styling) */
#cur { width: 6px; height: 6px; background: #d14eae; border-radius: 50%; transition: background .25s; }
#cur-ring {
  width: 30px; height: 30px; border: 1.5px solid rgba(209,78,174,.4); border-radius: 50%;
  transition: width .4s var(--ease), height .4s var(--ease), border-color .25s, background .25s;
}
.h-target #cur-ring { width: 50px; height: 50px; background: rgba(209,78,174,.08); border-color: rgba(209,78,174,.6); }
[data-theme="dark"] #cur-ring { border-color: rgba(209,78,174,.45); }
