/* ==========================================================================
   BRAND — shared with The Mortgage Lens
   --------------------------------------------------------------------------
   Same forest-green ink, same gold, same three typefaces as
   themortgagelens.org. Loaded by every page on this site — index, links,
   seller-checklist and 404 — so they can never drift apart. The nav, footer
   and skip link below are the shared chrome; site.js wires up their
   behaviour and compass.js draws the compass.

   This site's own flair is the BRASS INSTRUMENT: it is the only site in the
   family that runs dark, and the compass is its centrepiece — a brass needle
   on a green dial. Where the Lens is a printed broadsheet and the realty site
   is an archival plat book, this one is the machined instrument on the desk.

   Family rules that never change:
     · Playfair Display for names and headlines, italic as the accent voice
     · IBM Plex Mono, uppercase, 0.2em tracked, for every label
     · Source Serif 4 for body copy
     · Square corners. Hairline rules. Gold gradient strokes.
   ========================================================================== */

:root {
  /* Ground — the Lens's ink, taken darker so type can sit on top of it */
  --bg: #14301f;
  --bg-2: #0f2418;
  --panel: #1a3d2b;

  --surface: rgba(255, 255, 255, 0.04);
  --surface-h: rgba(255, 255, 255, 0.075);

  /* Type colours */
  --ink: #f4f8f5;          /* the Lens's paper */
  --muted: #a0c4b0;        /* the Lens's rule colour, used as muted text here */
  --line: rgba(160, 196, 176, 0.18);

  /* Gold — identical to the Lens */
  --gold: #c9922a;
  --gold-light: #e8b85a;

  /* The three practices. Gold is the Lens itself; the other two are pulled
     toward the family palette rather than borrowed from elsewhere. */
  --lens: #e8b85a;      --lens-dk: #c9922a;
  --realty: #7fbf9e;    --realty-dk: #4e8f6d;
  --alira: #8fb4cc;     --alira-dk: #5d8aa6;

  --flag: #d15b5b;
  --neutral: #a0c4b0;

  --accent: var(--lens);
  --radius: 0px;          /* the family never rounds a rectangle */
  --maxw: 1120px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
html, body { margin: 0; padding: 0 }

/* The nav is sticky and 62px tall, so an anchor jump would otherwise park
   its heading underneath it. Applies to /#ventures, the guide's contents
   links — anything with an id. */
[id] { scroll-margin-top: 78px }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background:
    radial-gradient(1100px 650px at 50% -12%, rgba(232, 184, 90, 0.07), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  /* The shorthand above resets background-color to transparent, and both
     layers are attachment:fixed — so anywhere the fixed layer doesn't paint
     (a long page mid-scroll, a print or screenshot pass) fell through to
     white. A solid ground underneath costs nothing and can't. */
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
}

img { max-width: 100%; display: block }
a { color: inherit }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px }

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 0;
}

/* The label voice. Identical rule on all three sites. */
.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.lede { color: var(--muted); font-size: 16.5px; line-height: 1.7 }

/* The Lens's signature stroke. */
.gold-rule {
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
}

/* ── SKIP LINK ─────────────────────────────────────────────────────────── */
/* Every page opens with a sticky nav, so a keyboard or screen-reader user
   otherwise tabs the whole menu before reaching the content. Off-screen
   until focused, then it lands on top of the nav. */
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--gold-light); color: var(--panel);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 18px; text-decoration: none;
  transition: top .15s ease;
}
.skip:focus { top: 8px }

/* ── NAV ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 36, 24, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 18px; height: 62px }

.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
  font-family: 'Playfair Display', serif; font-weight: 900; font-size: 17px;
}
.brand .mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--gold);
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 15px; color: var(--gold-light);
}

.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center }
.nav-links a {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding: 8px 12px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--gold-light) }
/* Marked by site.js, so the nav markup stays byte-identical on every page. */
.nav-links a[aria-current="page"] { color: var(--gold-light); box-shadow: inset 0 -2px 0 var(--gold) }
.nav-links a.cta[aria-current="page"] { box-shadow: none }
.nav-links a.cta {
  background: var(--gold-light); color: var(--panel); font-weight: 500;
}
.nav-links a.cta:hover { background: #fff; color: var(--panel) }

.nav-toggle {
  display: none; margin-left: auto;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); width: 38px; height: 34px;
  cursor: pointer; align-items: center; justify-content: center;
}

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 14px 24px; text-decoration: none;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 15px; height: 15px }
.btn-primary { background: var(--gold-light); border-color: var(--gold-light); color: var(--panel) }
.btn-primary:hover { background: #fff; border-color: #fff }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink) }
.btn-ghost:hover { background: var(--surface-h); border-color: var(--muted) }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px }

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 76px; padding: 36px 0 46px;
  background: rgba(0, 0, 0, 0.15);
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start }
.foot-grid > :first-child { min-width: 0; flex: 1 1 320px }
.foot-nav { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 14px }
.foot-nav a {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.foot-nav a:hover { color: var(--gold-light) }

.disclosures {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--muted); font-size: 10px; line-height: 1.9;
  letter-spacing: 0.04em; max-width: 760px;
}
.disclosures a { color: var(--gold-light); text-underline-offset: 2px }
.ehl { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; opacity: .85 }

.copyright {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--muted); font-size: 10px; letter-spacing: 0.08em; margin-top: 12px;
}

/* ── SOCIALS ───────────────────────────────────────────────────────────── */
.socials { display: flex; gap: 10px; flex-wrap: wrap }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.socials a:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--panel) }
.socials a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px }
.socials svg { width: 18px; height: 18px }

@keyframes rise { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: translateY(0) } }

@media (max-width: 720px) {
  .nav-toggle { display: flex }
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(15, 36, 24, 0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 6px 22px 16px; margin: 0; display: none;
  }
  .nav-links.open { display: flex }
  .nav-links a { padding: 14px 2px; border-bottom: 1px solid var(--line) }
  .nav-links a[aria-current="page"] { box-shadow: none }
  .nav-links a.cta { text-align: center; margin-top: 10px; border-bottom: 0; padding: 14px }
}

/* ==========================================================================
   THE COMPASS — this site's flair
   A brass needle on a green dial. Shared by index.html and links.html.
   ========================================================================== */

.compass-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px }
.compass {
  position: relative; width: var(--size, 280px); height: var(--size, 280px);
  touch-action: none; cursor: grab;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.compass.dragging { cursor: grabbing }
.compass:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 50% }
.compass svg { width: 100%; height: 100%; display: block; overflow: visible }

.cp-bezel { fill: rgba(255, 255, 255, 0.02); stroke: var(--gold); stroke-opacity: .35; stroke-width: 1 }
.cp-face { fill: url(#faceGrad); stroke: rgba(160, 196, 176, 0.14); stroke-width: 1 }
.cp-tick { stroke: rgba(160, 196, 176, 0.28); stroke-width: 1 }
.cp-tick.maj { stroke: rgba(232, 184, 90, 0.55); stroke-width: 1.6 }
.cp-cardinal {
  fill: var(--muted);
  font: 500 8px 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 1.4px; text-anchor: middle;
}

.cp-needle { transition: transform .85s cubic-bezier(.32, 1.5, .55, 1) }
.compass.dragging .cp-needle { transition: none }
.cp-needle-n { fill: var(--needle, #e8b85a) }
.cp-needle-s { fill: rgba(255, 255, 255, 0.18) }
.cp-hub { fill: #10281a; stroke: rgba(232, 184, 90, 0.5); stroke-width: 1.5 }
.cp-hub-dot { fill: var(--needle, #e8b85a) }

.cp-marker { cursor: pointer }
.cp-marker .halo { fill: transparent; transition: fill .2s ease }
.cp-marker .dot { fill: #10281a; stroke-width: 1.5; transition: stroke .2s ease, fill .2s ease }
.cp-marker .gl { opacity: 0; transition: opacity .25s ease }
/* The artwork inside a marker is inert so the transparent hit circle below
   collects the pointer instead. That circle has to out-rank this rule: as
   plain ".cp-hit" (0,1,0) it lost to ".cp-marker circle" (0,1,1) and the
   bearings were unclickable — hover and click both did nothing, and only
   dragging the face still worked. Qualify it and it wins. */
.cp-marker svg, .cp-marker path, .cp-marker circle, .cp-marker rect { pointer-events: none }
.cp-marker:hover .halo, .cp-marker.on .halo { fill: rgba(255, 255, 255, 0.06) }
.cp-marker.on .gl { opacity: .5 }
.cp-marker .ico { transition: opacity .2s ease }
.cp-marker .cp-hit { fill: transparent; cursor: pointer; pointer-events: all }

.cp-cap { text-align: center; min-height: 56px }
.cp-cap .k {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--needle, #e8b85a); margin-bottom: 5px; transition: color .3s ease;
}
.cp-cap .t { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; margin-bottom: 3px }
.cp-cap .d { color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 250px; margin: 0 auto }
.cp-hint {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(160, 196, 176, .6);
}

@media (prefers-reduced-motion: reduce) {
  .cp-needle { transition: none }
}
