/* ============================================================
   AMO Investment Group, LLC — landing site
   Dark private-office aesthetic · Newsreader + IBM Plex Mono
   ============================================================ */

:root {
  --ink: #080b10;
  --ink-panel: #0b0f15;
  --text-primary: #e9e5db;
  --text-body: #b7bcc4;
  --text-body-alt: #c8ccd3;
  --text-muted: #a8adb6;
  --text-faint: #8a8f99;
  --text-faint-2: #8f97a2;
  --text-faintest: #61666f;
  --gold: #c6a35b;
  --gold-hover: #e4c988;
  --gold-light: #d8be86;
  --hairline: rgba(255, 255, 255, 0.11);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --maxw: 1280px;
  --pad-x: clamp(24px, 5vw, 68px);
  --section-y: clamp(64px, 8vw, 120px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-primary);
  font-family: var(--serif);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold-hover); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

::selection { background: rgba(198, 163, 91, .28); color: #fff; }

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(1100px 720px at 72% 34%, rgba(28, 40, 58, .55), rgba(8, 11, 16, 0) 62%),
    var(--ink);
}

/* ---- shared type utilities ---- */
.eyebrow,
.section-index,
.kicker,
.site-nav,
.wordmark-sub {
  font-family: var(--mono);
  text-transform: uppercase;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px var(--pad-x);
}

.wordmark { display: flex; align-items: baseline; gap: 12px; color: var(--text-primary); }
.wordmark:hover { color: var(--text-primary); }
.wordmark-a { font-size: 23px; letter-spacing: .30em; font-weight: 400; }
.wordmark-sub { font-size: 10px; letter-spacing: .30em; color: var(--text-faint); }

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  font-size: 11px;
  letter-spacing: .18em;
}
.site-nav a { color: var(--text-muted); }
.site-nav a:hover { color: var(--gold-hover); }
.site-nav a.nav-accent { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 54px) var(--pad-x) clamp(56px, 7vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  min-height: 74vh;
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--gold);
}
.eyebrow-rule { width: 34px; height: 1px; background: var(--gold); opacity: .7; }

.hero h1 {
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.03;
  letter-spacing: -.015em;
  margin: 26px 0 0;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }

.hero-lede {
  max-width: 44ch;
  margin: 30px 0 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.62;
  color: var(--text-body);
  font-weight: 300;
}

.hero-links { display: flex; align-items: center; gap: 26px; margin-top: 38px; }
.hero-links a { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding-bottom: 6px; }
.link-underline { color: var(--text-primary); border-bottom: 1px solid rgba(233, 229, 219, .3); }
.link-underline:hover { color: var(--gold-hover); }
.link-muted { color: var(--text-faint); }

/* ---- hero map ---- */
.hero-map { position: relative; min-width: 0; height: clamp(360px, 46vw, 600px); }
.map-frame { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .09); overflow: hidden; }
#map { position: absolute; inset: 0; background: var(--ink-panel); }
.map-vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px 10px rgba(8, 11, 16, .85); }

.map-coords {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--text-faint-2);
  line-height: 1.9;
  pointer-events: none;
}
.map-coords-city { color: var(--gold); letter-spacing: .22em; }

.map-hq {
  position: absolute;
  right: 14px;
  top: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--text-faintest);
  text-transform: uppercase;
  pointer-events: none;
}

/* ---- Leaflet dark theming (CARTO dark tiles — no invert hack) ---- */
.leaflet-container { background: var(--ink-panel); font-family: var(--mono); }
.leaflet-control-attribution {
  background: rgba(8, 11, 16, .5) !important;
  color: #5a616b !important;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
}
.leaflet-control-attribution a { color: #7f8894 !important; }

.sd-marker { position: relative; width: 14px; height: 14px; }
.sd-marker .dot {
  position: absolute; inset: 0; margin: auto;
  width: 9px; height: 9px; border-radius: 50%;
  background: #f0d493; box-shadow: 0 0 10px 2px rgba(198, 163, 91, .7);
}
.sd-marker .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--gold);
  animation: sd-pulse 2.4s ease-out infinite;
}
@keyframes sd-pulse {
  0% { transform: scale(.6); opacity: .8; }
  70% { opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}
.sd-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--gold-hover);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
  transform: translate(16px, -8px);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.rule-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.rule {
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    var(--hairline) 22%,
    var(--hairline) 78%,
    rgba(255, 255, 255, 0) 100%);
}

.section {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-y) var(--pad-x);
}

.section-index {
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--text-faint);
  margin-bottom: 44px;
}

/* ---- practice ---- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 5vw, 80px);
}
.kicker { font-size: 11px; letter-spacing: .2em; color: var(--gold); margin-bottom: 20px; }
.practice-grid h3 {
  font-weight: 300;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 18px;
}
.practice-grid p {
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.66;
  color: var(--text-body);
  font-weight: 300;
  margin: 0;
}

/* ---- philosophy ---- */
.lead-statement {
  max-width: 20ch;
  font-weight: 300;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--text-primary);
  margin: 0 0 clamp(48px, 6vw, 80px);
}
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.principle { border-top: 1px solid rgba(198, 163, 91, .4); padding-top: 24px; }
.principle-num { font-family: var(--mono); font-size: 12px; color: var(--gold); margin-bottom: 16px; }
.principle h4 { font-weight: 400; font-size: 21px; margin: 0 0 12px; letter-spacing: -.01em; }
.principle p { font-size: 15.5px; line-height: 1.62; color: var(--text-muted); font-weight: 300; margin: 0; }

/* ---- family ---- */
.section.family {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.family .section-index { margin-bottom: 24px; }
.family-heading {
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0;
}
.family-lead {
  max-width: 52ch;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.6;
  color: var(--text-body-alt);
  font-weight: 300;
  margin: 0 0 22px;
}
.family-body {
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.66;
  color: var(--text-muted);
  font-weight: 300;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(18, 26, 38, .35));
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  align-items: end;
}
.email {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: -.01em;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(198, 163, 91, .45);
  padding-bottom: 4px;
}
.email:hover { color: var(--gold-hover); }
.footer-hq {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 2.1;
  color: var(--text-faint);
  text-transform: uppercase;
}
.footer-hq-label { color: var(--gold); margin-bottom: 6px; }

.footer-fine {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x) 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faintest);
}

/* ============================================================
   ENTRANCE ANIMATION
   ============================================================ */
.fade { opacity: 0; animation: amo-fade 1s ease both; animation-delay: var(--d, 0s); }
@keyframes amo-fade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 40px;
    align-items: start;
  }
  .hero-map { order: 2; height: clamp(320px, 70vw, 460px); }
  .section.family { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header { padding-top: 22px; padding-bottom: 22px; }
  .site-nav { gap: 18px; }
  .hero h1 { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; animation: none; }
  .sd-marker .ring { animation: none; }
}
