/* ==========================================================================
   Alpha Capital Management, LLC — alphacap.co
   Institutional system: harbor navy, cream, champagne. Fraunces + Inter.
   ========================================================================== */

:root {
  --cream: #F6F3EC;
  --cream-soft: #EFEAE0;
  --card: #FBF9F3;
  --ink: #16202C;
  --ink-2: #55606E;
  --line: rgba(22, 32, 44, 0.14);
  --navy: #101E2D;
  --navy-2: #16283A;
  --line-dark: rgba(242, 239, 231, 0.16);
  --cream-on-dark: #F2EFE7;
  --mute-on-dark: #9FAAB6;
  --gold: #8E6D34;         /* accessible on cream */
  --gold-mid: #B08A47;
  --gold-bright: #D9B877;  /* on navy */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --nav-h: 76px;
}

/* ---------- Reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul, ol { list-style: none; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold-mid); color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

.container { width: min(1160px, 100% - 3rem); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.06; letter-spacing: -0.015em; }
h1 em, h2 em { font-style: italic; font-weight: 500; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--gold-mid); flex-shrink: 0; }
.on-dark .eyebrow { color: var(--gold-bright); }
.on-dark .eyebrow::before { background: var(--gold-bright); }

.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 58ch; }
.on-dark .lead { color: var(--mute-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  padding: 0.95rem 1.7rem; border-radius: 3px;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-solid { background: var(--gold-mid); color: #101E2D; }
.btn-solid:hover { background: var(--gold-bright); }
.btn-ghost { border: 1px solid rgba(242, 239, 231, 0.35); color: var(--cream-on-dark); }
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-ghost-ink { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost-ink:hover { border-color: var(--gold-mid); color: var(--gold); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s, color 0.35s;
  color: var(--cream-on-dark);
  border-bottom: 1px solid transparent;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav.scrolled {
  background: rgba(246, 243, 236, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; letter-spacing: 0.005em; }
.brand .dot { color: var(--gold-mid); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.92rem; font-weight: 500; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--gold-mid); }
.nav-cta {
  font-size: 0.88rem; font-weight: 600;
  border: 1px solid currentColor; border-radius: 3px;
  padding: 0.5rem 1.05rem; opacity: 0.95;
}
.nav-cta:hover { color: var(--gold-mid); }

.menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 120; }
.menu-btn span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--navy);
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.mobile-menu a {
  font-family: var(--serif); font-size: 2.1rem; font-weight: 500;
  color: var(--cream-on-dark); padding: 0.55rem 0;
}
.mobile-menu a:hover { color: var(--gold-bright); }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open .menu-btn { color: var(--cream-on-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--cream-on-dark);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 92svh;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(900px 520px at 18% 12%, rgba(217, 184, 119, 0.07), transparent 60%),
              radial-gradient(720px 480px at 92% 88%, rgba(22, 40, 58, 0.55), transparent 70%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  opacity: 0.55;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 30, 45, 0.95) 0%, rgba(16, 30, 45, 0.78) 38%, rgba(16, 30, 45, 0.42) 72%, rgba(16, 30, 45, 0.5) 100%),
    linear-gradient(0deg, var(--navy) 2%, rgba(16, 30, 45, 0) 36%),
    linear-gradient(180deg, rgba(16, 30, 45, 0.8) 0%, rgba(16, 30, 45, 0) 24%);
}
.hero-mark {
  position: absolute; right: -4%; bottom: -14%; z-index: 1;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(18rem, 38vw, 34rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 184, 119, 0.10);
  pointer-events: none; user-select: none;
}
.hero-inner {
  flex: 1;
  display: flex; align-items: center;
  position: relative; z-index: 2;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 3rem;
}
.hero-copy { max-width: 720px; }
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.6rem);
  color: var(--cream-on-dark);
  margin: 0.5rem 0 1.6rem;
}
.hero h1 em { color: var(--gold-bright); }
.hero .dek {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--mute-on-dark);
  max-width: 58ch;
  margin-bottom: 2.3rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero-stats {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-dark);
}
.hero-stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; padding-block: 1.5rem;
}
.stat .num { display: block; font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--gold-bright); line-height: 1.1; }
.stat .lbl { display: block; font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--mute-on-dark); margin-top: 0.3rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(5rem, 11vh, 8rem); }
.section-dark { background: var(--navy); color: var(--cream-on-dark); }
.section-soft { background: var(--cream-soft); }
.section-head { max-width: 740px; margin-bottom: 3.2rem; }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: 1.1rem; }
.section-head h2 em { color: var(--gold); }
.section-dark .section-head h2 em { color: var(--gold-bright); }

/* ---------- Pillars (the model) ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: var(--cream);
  padding: 2.5rem 2.2rem;
  transition: background 0.3s var(--ease);
}
.pillar:hover { background: var(--card); }
.pillar .num {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--gold);
  display: block; margin-bottom: 1.5rem;
}
.pillar h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.pillar p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.platform {
  border: 1px solid var(--line); background: var(--card);
  padding: 2.5rem 2.4rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.platform:hover { transform: translateY(-4px); border-color: var(--gold-mid); }
.platform .tag {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 1.1rem;
}
.platform h3 { font-size: 1.55rem; margin-bottom: 0.6rem; }
.platform p { color: var(--ink-2); font-size: 0.99rem; }
.platform-tagline {
  margin-top: 2.6rem;
  font-family: var(--serif); font-style: italic;
  font-size: 1.35rem; color: var(--ink);
  display: flex; align-items: center; gap: 1rem;
}
.platform-tagline::before { content: ""; width: 2.2rem; height: 1px; background: var(--gold-mid); flex-shrink: 0; }

/* ---------- Founder band ---------- */
.founder-band { position: relative; overflow: hidden; }
.band-bg { position: absolute; inset: 0; z-index: 0; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.band-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(16, 30, 45, 0.5) 42%, rgba(16, 30, 45, 0.72) 100%);
}
.founder-band .container { position: relative; z-index: 2; }
.founder-grid {
  display: grid; grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.portrait-card { position: relative; max-width: 400px; }
.portrait-card img { width: 100%; border-radius: 2px; }
.portrait-card::after {
  content: "";
  position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold-bright);
  border-radius: 2px;
  opacity: 0.55;
  pointer-events: none;
}
.founder-copy h2 { font-size: clamp(2rem, 4vw, 2.9rem); color: var(--cream-on-dark); margin-bottom: 0.4rem; }
.founder-copy .role {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-bright); display: block; margin-bottom: 1.4rem;
}
.founder-copy p { color: var(--mute-on-dark); margin-bottom: 1.2rem; max-width: 58ch; }
.founder-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

/* ---------- Insights ---------- */
.insights-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.insights-head .section-head { margin-bottom: 0; }
.cornerstone {
  display: block;
  border: 1px solid var(--line); background: var(--card);
  padding: 2.5rem 2.6rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
  max-width: 780px;
}
.cornerstone:hover { transform: translateY(-4px); border-color: var(--gold-mid); }
.cornerstone .tag { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 1rem; }
.cornerstone h3 { font-size: 1.7rem; margin-bottom: 0.7rem; }
.cornerstone p { color: var(--ink-2); max-width: 62ch; }
.cornerstone .more { display: inline-block; margin-top: 1.3rem; font-size: 0.92rem; font-weight: 600; color: var(--gold); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.4rem; }
.post-card {
  border: 1px solid var(--line); background: var(--card);
  padding: 1.8rem; display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--gold-mid); }
.post-card time { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.post-card h3 { font-size: 1.26rem; line-height: 1.25; }
.post-card p { font-size: 0.93rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .more { margin-top: auto; font-size: 0.88rem; font-weight: 600; color: var(--gold); }

/* ---------- Contact ---------- */
.connect { text-align: center; }
.connect .eyebrow { justify-content: center; }
.connect .eyebrow::after { content: ""; width: 2.2rem; height: 1px; background: var(--gold-bright); flex-shrink: 0; }
.connect h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 1.4rem; }
.connect h2 em { color: var(--gold-bright); }
.connect .lead { margin-inline: auto; margin-bottom: 2.6rem; }
.connect-loc { margin-top: 2.6rem; font-size: 0.84rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mute-on-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--mute-on-dark); border-top: 1px solid var(--line-dark); }
.footer-main {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 3.2rem 2.4rem;
}
.footer .brand { color: var(--cream-on-dark); font-size: 1.25rem; }
.footer-tag { font-size: 0.88rem; margin-top: 0.6rem; max-width: 36ch; }
.footer h4 {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 1rem;
}
.footer-col a { display: block; font-size: 0.92rem; color: var(--cream-on-dark); opacity: 0.75; padding: 0.28rem 0; }
.footer-col a:hover { opacity: 1; color: var(--gold-bright); }
.footer-col .soon { opacity: 0.45; cursor: default; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem;
  font-size: 0.78rem;
}
.footer-bottom .legal { max-width: 90ch; margin-top: 0.6rem; line-height: 1.6; opacity: 0.8; }

/* ---------- Subpage hero ---------- */
.page-hero {
  background: var(--navy); color: var(--cream-on-dark);
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 9vh, 6rem));
  padding-bottom: clamp(3.5rem, 8vh, 5.5rem);
  position: relative; overflow: hidden;
}
.page-hero .hero-mark { font-size: clamp(14rem, 30vw, 26rem); bottom: -34%; }
.page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); color: var(--cream-on-dark); max-width: 18ch; position: relative; z-index: 2; }
.page-hero h1 em { color: var(--gold-bright); }
.page-hero .dek { margin-top: 1.4rem; font-size: 1.12rem; color: var(--mute-on-dark); max-width: 60ch; position: relative; z-index: 2; }
.page-hero .eyebrow { position: relative; z-index: 2; }

/* ---------- Article ---------- */
.article { max-width: 720px; margin-inline: auto; }
.article-figure { margin: 0 0 3rem; }
.article-figure img { width: 100%; max-width: 400px; border-radius: 2px; }
.article-figure figcaption {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); margin-top: 0.9rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.article-figure figcaption::before { content: ""; width: 1.8rem; height: 1px; background: var(--gold-mid); }
.article h2 { font-size: 1.85rem; margin: 2.8rem 0 1rem; }
.article p { color: #333E4C; margin-bottom: 1.35rem; }
.article ul { margin: 0 0 1.35rem 1.2rem; color: #333E4C; }
.article ul li { list-style: disc; margin-bottom: 0.55rem; }
.article .defn {
  font-size: 1.15rem; line-height: 1.65; color: var(--ink);
  border-left: 2px solid var(--gold-mid);
  padding-left: 1.6rem; margin-bottom: 2rem;
}
.article .pull {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.6rem; line-height: 1.35; color: var(--ink);
  border-left: 2px solid var(--gold-mid);
  padding-left: 1.6rem; margin: 2.4rem 0;
}
.article .note {
  margin-top: 3rem; padding: 1.4rem 1.6rem;
  border: 1px solid var(--line); background: var(--card);
  font-size: 0.88rem; color: var(--ink-2);
}
.article-meta {
  display: flex; gap: 1.2rem; align-items: center;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 2.4rem;
}
.about-cta { text-align: center; }
.about-cta h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 1.8rem; }
.about-cta h2 em { color: var(--gold-bright); }
.about-cta .hero-actions { justify-content: center; }

/* ---------- 404 ---------- */
.err {
  min-height: 100svh; background: var(--navy); color: var(--cream-on-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.err .eyebrow { justify-content: center; }
.err .eyebrow::after { content: ""; width: 2.2rem; height: 1px; background: var(--gold-bright); }
.err h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); font-style: italic; font-weight: 500; color: var(--cream-on-dark); margin-bottom: 1rem; }
.err p { color: var(--mute-on-dark); margin-bottom: 2.4rem; }

/* ---------- Reveal (progressive) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); }
html.js .revealed { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .btn, .post-card, .platform, .cornerstone { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .hero { min-height: auto; }
  .founder-grid { grid-template-columns: 1fr; }
  .portrait-card { max-width: 340px; }
  .hero-stats .container { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 2.4rem); }
  .pillar, .platform, .cornerstone { padding: 2rem 1.5rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
