/* ============================================================
   VANTAGE DELIVERY — shared stylesheet
   Used by: index.html, blog.html, and every post in /posts/
   ============================================================ */

:root {
  --ink: #0E2A38;
  --ink-deep: #081C26;
  --paper: #FBFAF6;
  --bone: #F1ECE2;
  --brass: #C08A3E;
  --brass-soft: #D8B486;
  --slate: #5C6B72;
  --line: rgba(14, 42, 56, 0.12);
  --line-light: rgba(241, 236, 226, 0.16);
  --font-display: 'Spectral', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.brand .mark { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px;
  color: var(--slate);
  font-weight: 500;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-on-dark { border-color: var(--brass); background: var(--brass); color: var(--ink-deep); }
.btn-on-dark:hover { background: transparent; color: var(--brass-soft); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 4px 0; transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 104px; }
.hero-grid { max-width: 720px; }
.hero .eyebrow { color: var(--brass-soft); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 22px 0 0;
}
.hero h1 em { font-style: italic; color: var(--brass-soft); }
.hero p.lead {
  font-size: clamp(17px, 2.1vw, 20px);
  color: rgba(241, 236, 226, 0.82);
  max-width: 560px;
  margin-top: 26px;
  line-height: 1.62;
}
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--paper); border-color: var(--line-light); }
.hero .btn-ghost:hover { color: var(--paper); border-color: var(--brass-soft); }
.sightline { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.9; }

/* ---------- Stat band ---------- */
.stats { background: var(--ink-deep); color: var(--paper); border-top: 1px solid var(--line-light); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 38px 30px; border-left: 1px solid var(--line-light); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 500; color: var(--brass-soft);
  line-height: 1; letter-spacing: -0.01em;
}
.stat .label { font-size: 13.5px; color: rgba(241, 236, 226, 0.66); margin-top: 12px; line-height: 1.45; }

/* ---------- Section scaffold ---------- */
section.block { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1; letter-spacing: -0.015em; margin-top: 16px;
}
.section-head p { color: var(--slate); font-size: 17px; margin-top: 16px; max-width: 560px; }

/* ---------- Services ---------- */
.services { background: var(--bone); }
.svc-row {
  display: grid; grid-template-columns: 88px 1fr auto;
  gap: 28px; align-items: baseline; padding: 30px 4px;
  border-top: 1px solid var(--line); transition: padding-left 0.25s ease;
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row:hover { padding-left: 14px; }
.svc-alt {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--brass); text-transform: uppercase; padding-top: 7px;
}
.svc-body h3 { font-family: var(--font-display); font-size: 25px; font-weight: 500; letter-spacing: -0.01em; }
.svc-body p { color: var(--slate); font-size: 15.5px; margin-top: 8px; max-width: 600px; }
.svc-tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); white-space: nowrap; padding-top: 8px; opacity: 0.8; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.portrait {
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, rgba(192,138,62,0.10), rgba(14,42,56,0.04)), var(--bone);
  border: 1px solid var(--line); border-radius: 3px;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 26px;
}
.portrait .ph {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--slate);
}
.portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.portrait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-body h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12;
  letter-spacing: -0.015em; margin: 14px 0 0;
}
.about-body p { color: #34474f; font-size: 16.5px; margin-top: 18px; }
.about-body p strong { color: var(--ink); font-weight: 600; }
.creds-eyebrow {
  display: block; margin-top: 28px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--slate); font-weight: 500;
}
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cred {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px; padding: 7px 11px; background: var(--bone);
  text-decoration: none; transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
a.cred:hover { border-color: var(--brass); color: var(--brass); background: var(--paper); }

/* ---------- Insights (home — dark teaser) ---------- */
.insights { background: var(--ink); color: var(--paper); }
.insights .eyebrow { color: var(--brass-soft); }
.insights .section-head h2 { color: var(--paper); }
.insights .section-head p { color: rgba(241,236,226,0.7); }
.insights .section-head { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 24px; }
.insights .section-head > div { max-width: 560px; }
.view-all {
  font-family: var(--font-mono); font-size: 13px; color: var(--brass-soft);
  white-space: nowrap; letter-spacing: 0.04em; padding-bottom: 6px;
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease;
}
.view-all:hover { border-color: var(--brass-soft); }

/* ---------- Post cards (shared structure) ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  border-radius: 3px; padding: 28px 26px 30px;
  display: flex; flex-direction: column; text-align: left;
  transition: background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.post-card .post-meta {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 16px;
}
.post-card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; line-height: 1.22; letter-spacing: -0.01em;
}
.post-card p { font-size: 14.5px; margin-top: 14px; flex-grow: 1; }
.post-card .read { font-family: var(--font-mono); font-size: 12px; margin-top: 22px; letter-spacing: 0.04em; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }

/* dark cards (home insights) */
.insights .post-card { background: rgba(241, 236, 226, 0.03); border: 1px solid var(--line-light); }
.insights .post-card:hover { background: rgba(241, 236, 226, 0.06); border-color: rgba(216, 180, 134, 0.5); transform: translateY(-3px); }
.insights .post-card .post-meta { color: var(--brass-soft); }
.insights .post-card h3 { color: var(--paper); }
.insights .post-card p { color: rgba(241, 236, 226, 0.72); }
.insights .post-card .read { color: var(--brass-soft); }

/* light cards (blog index) */
.blog-list .post-card { background: var(--paper); border: 1px solid var(--line); }
.blog-list .post-card:hover { border-color: rgba(14, 42, 56, 0.32); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(8, 28, 38, 0.08); }
.blog-list .post-card .post-meta { color: var(--brass); }
.blog-list .post-card h3 { color: var(--ink); }
.blog-list .post-card p { color: var(--slate); }
.blog-list .post-card .read { color: var(--brass); }

/* ---------- Tag chips ---------- */
.tag-chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 4px 9px; border-radius: 2px; border: 1px solid var(--line);
  color: var(--slate); background: var(--bone); white-space: nowrap;
}
.insights .tag-chip { border-color: var(--line-light); color: var(--brass-soft); background: transparent; }

/* ---------- Page header (blog index + article top) ---------- */
.page-head { background: var(--bone); padding: 72px 0 0; }
.page-head .wrap { padding-top: 24px; padding-bottom: 8px; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 5vw, 54px); line-height: 1.06;
  letter-spacing: -0.02em; margin-top: 16px;
}
.page-head p { color: var(--slate); font-size: 17px; margin-top: 16px; max-width: 560px; }

/* ---------- Tag filter bar ---------- */
.tagbar {
  background: var(--bone); border-bottom: 1px solid var(--line);
  position: sticky; top: 68px; z-index: 40;
}
.tagbar .wrap { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 26px; padding-bottom: 26px; align-items: center; }
.tagbar-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--slate); margin-right: 4px;
}
.tag-btn {
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 8px 14px; border-radius: 2px; border: 1px solid var(--line);
  background: transparent; color: var(--slate); cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.tag-btn:hover { border-color: var(--ink); color: var(--ink); }
.tag-btn.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
/* a tag that would yield no results when added to the current selection */
.tag-btn.dim { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.tag-btn .count { opacity: 0.55; margin-left: 5px; }

/* ---------- Blog list section ---------- */
.blog-list { background: var(--paper); padding: 64px 0 96px; }
.blog-list .posts { grid-template-columns: repeat(3, 1fr); }
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 60px 0;
  color: var(--slate); font-family: var(--font-mono); font-size: 14px;
}

/* ---------- Article page ---------- */
.article-wrap { background: var(--paper); padding: 56px 0 88px; }
.article { max-width: 720px; margin: 0 auto; padding: 0 28px; }
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--slate);
  letter-spacing: 0.04em; transition: color 0.18s ease;
}
.back-link:hover { color: var(--brass); }
.article-meta {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brass); margin: 34px 0 18px;
}
.article h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.1;
  letter-spacing: -0.02em;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.article-body { margin-top: 36px; }
.article-body p { font-size: 17.5px; color: #2c3e46; margin-bottom: 22px; line-height: 1.72; }
.article-body p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 58px; float: left;
  line-height: 0.8; padding: 6px 12px 0 0; color: var(--brass); font-weight: 600;
}
.article-foot {
  margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px;
}
.article-foot .sig { font-family: var(--font-mono); font-size: 13px; color: var(--slate); }

/* ---------- Contact ---------- */
.contact { background: var(--bone); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.contact h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08;
  letter-spacing: -0.015em; margin-top: 16px;
}
.contact p.sub { color: var(--slate); font-size: 17px; margin-top: 18px; max-width: 480px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 32px; }
.contact-card .row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-card .row:last-of-type { border-bottom: 0; }
.contact-card .k {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate);
}
.contact-card .v { font-size: 16px; font-weight: 600; margin-top: 3px; }
.contact-card .v a:hover { color: var(--brass); }
.contact-card .btn { width: 100%; justify-content: center; margin-top: 22px; }

/* ---------- Footer ---------- */
footer { background: var(--ink-deep); color: rgba(241, 236, 226, 0.7); padding: 48px 0 40px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.foot .brand { color: var(--paper); font-size: 17px; }
.foot .legal { font-size: 13px; }
.foot .legal a { color: var(--brass-soft); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 0.85s; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.show {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 20px 28px 28px; gap: 18px; align-items: flex-start;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-top: 1px solid var(--line-light); }
  .stat:first-child { padding-left: 30px; }
  .stat:nth-child(odd) { border-left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 340px; }
  .posts { grid-template-columns: 1fr; }
  .blog-list .posts { grid-template-columns: 1fr; }
  .insights .section-head { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-row { grid-template-columns: 64px 1fr; }
  .svc-tag { display: none; }
  .tagbar { position: static; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat:first-child { padding-left: 30px; }
  .svc-row { grid-template-columns: 1fr; gap: 8px; }
  .svc-alt { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
