/* ================================================================
   KEYSTONE HORIZON — dark, premium, architectural
   ================================================================ */

:root {
  --bg: #0b0d10;
  --bg-raise: #10131a;
  --bg-panel: #0e1117;
  --ink: #e9e5dd;
  --ink-dim: #9aa0a8;
  --accent: #c9a26b;
  --accent-deep: #a97f43;
  --line: rgba(190, 205, 228, 0.10);
  --line-strong: rgba(190, 205, 228, 0.18);
  --blueprint: rgba(120, 150, 200, 0.055);
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1180px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0b0d10; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}

/* ---------- blueprint grid overlay ---------- */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.7));
}

main, .site-footer { position: relative; z-index: 1; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-name em { font-style: normal; color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
}

.site-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a.nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent-deep);
  padding: 9px 18px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a.nav-cta:hover { background: var(--accent); color: #0b0d10; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-solid {
  background: var(--accent);
  color: #0b0d10;
  border: 1px solid var(--accent);
}

.btn-solid:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 162, 107, 0.07), transparent 60%),
    linear-gradient(to bottom, transparent 40%, rgba(11, 13, 16, 0.85));
}

.hero-keystone {
  position: absolute;
  top: 8%;
  right: -4%;
  width: clamp(280px, 34vw, 520px);
  height: auto;
  color: rgba(201, 162, 107, 0.10);
}

.hero-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 42%;
  color: rgba(140, 165, 205, 0.16);
}

.hero-inner {
  position: relative;
  width: 100%;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 10.5vw, 148px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.hero-title .line { display: block; }

.accent-dot { color: var(--accent); }

.hero-sub {
  max-width: 560px;
  margin-top: 32px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-dim);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

.hero-meta {
  position: absolute;
  bottom: 32px;
  left: clamp(20px, 4vw, 48px);
  right: clamp(20px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  bottom: 90px;
  right: clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.55); opacity: 0.4; }
}

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: var(--bg-panel);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 46s linear infinite;
}

.ticker-track span {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(190, 205, 228, 0.22);
}

@keyframes tick {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
.section {
  padding: clamp(90px, 12vw, 150px) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  position: relative;
  max-width: 720px;
  margin-bottom: clamp(48px, 7vw, 84px);
  padding-top: 18px;
}

.section-index {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
}

.section-index::after {
  content: "";
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--accent-deep);
  margin-left: 12px;
  vertical-align: middle;
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.02;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 18px;
}

.section-lede {
  margin-top: 22px;
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 580px;
}

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg-panel);
  padding: clamp(32px, 3.5vw, 48px);
  position: relative;
  transition: background 0.3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover { background: var(--bg-raise); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 26px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 400;
  margin-bottom: 14px;
}

.service-card > p {
  color: var(--ink-dim);
  font-size: 15px;
  margin-bottom: 22px;
}

.service-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* ---------- investor mentoring ---------- */
.mentoring { background: var(--bg-panel); }

.mentoring-panel {
  border: 1px solid var(--line-strong);
  position: relative;
  padding: clamp(36px, 5.5vw, 72px);
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(201, 162, 107, 0.08), transparent 60%),
    var(--bg-raise);
}

.mentoring-panel::before,
.mentoring-panel::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--accent);
  opacity: 0.7;
}

.mentoring-panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.mentoring-panel::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.mentoring-head {
  position: relative;
  max-width: 640px;
  padding-top: 18px;
}

.mentoring-head .eyebrow { margin-bottom: 0; margin-top: 18px; }
.mentoring-head .section-title { margin-top: 10px; }

.path {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(48px, 6vw, 72px);
  counter-reset: step;
}

.path-step {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.path-step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--bg-raise);
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.path-step:hover::before { background: var(--accent); }

.path-num { color: var(--accent); display: block; margin-bottom: 12px; }

.path-step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.path-step p { font-size: 14px; color: var(--ink-dim); }

.mentoring-cta {
  margin-top: clamp(48px, 6vw, 64px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.mentoring-cta p {
  font-size: 17px;
  color: var(--ink);
  max-width: 420px;
}

/* ---------- track record ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  background: var(--bg-panel);
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 108px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-plus { color: var(--accent); }

.stat-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 6px;
}

.stat-note { margin-top: 4px; }

/* ---------- about ---------- */
.about { background: var(--bg-panel); }

.principals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 56px);
  max-width: 860px;
}

.principal { display: flex; flex-direction: column; }

.headshot {
  position: relative;
  aspect-ratio: 4 / 4.6;
  background:
    linear-gradient(160deg, rgba(201, 162, 107, 0.06), transparent 55%),
    repeating-linear-gradient(0deg, var(--blueprint), var(--blueprint) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, var(--blueprint), var(--blueprint) 1px, transparent 1px, transparent 24px),
    var(--bg-raise);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  overflow: hidden;
}

.headshot-initials {
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 96px);
  color: rgba(201, 162, 107, 0.55);
  letter-spacing: 0.04em;
}

.headshot-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.principal h3 {
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.principal-role { color: var(--accent); margin: 8px 0 14px; }

.principal-bio { color: var(--ink-dim); font-size: 15px; max-width: 380px; }

/* ---------- contact ---------- */
.contact { border-bottom: none; }

.contact-inner { position: relative; padding-top: 18px; }

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 124px);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 18px;
}

.contact .section-lede { margin-top: 26px; }

.contact-links {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-strong);
}

.contact-link {
  display: flex;
  align-items: baseline;
  gap: clamp(24px, 4vw, 64px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.3s ease;
}

a.contact-link:hover { padding-left: 16px; }
a.contact-link:hover .contact-value { color: var(--accent); }

.contact-label { width: 110px; flex: none; }

.contact-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 34px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.25s ease;
  word-break: break-word;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.24s; }
.d3 { transition-delay: 0.36s; }
.d4 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue i { animation: none; }
  .ticker-track { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; }
  .path { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(11, 13, 16, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px clamp(20px, 4vw, 48px) 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .site-nav.open { opacity: 1; transform: none; visibility: visible; }

  .site-nav a { padding: 14px 0; font-size: 15px; width: 100%; }

  .site-nav a.nav-cta {
    margin-top: 12px;
    text-align: center;
    padding: 14px 18px;
  }

  .nav-toggle { display: flex; }

  .scroll-cue { display: none; }

  .hero-meta { flex-direction: column; gap: 6px; }

  .path { grid-template-columns: 1fr; }

  .principals { grid-template-columns: 1fr; }

  .headshot { max-width: 340px; }

  .mentoring-cta { flex-direction: column; align-items: flex-start; }

  .contact-link { flex-direction: column; gap: 6px; }
}
