/* =============================================================================
   COUNSELCRAFT — shared stylesheet
   Light editorial palette · cream + navy + electric blue accent
   ============================================================================= */

:root {
  --bg: #fafaf6;            /* warm off-white, magazine-feel */
  --bg-2: #f0ede4;          /* alt section bg (subtly warmer) */
  --bg-3: #ffffff;          /* pure white for cards/elevated surfaces */
  --bg-deep: #0c1830;       /* deep navy, used for inverted sections */

  --ink: #0c1830;           /* deep navy primary text */
  --ink-dim: #475569;       /* slate gray for secondary text */
  --ink-muted: #94a3b8;     /* light slate for labels/meta */
  --ink-on-deep: #f5f0e4;   /* cream text on navy bg */

  --line: #e5e7eb;          /* subtle borders */
  --line-dark: #cbd5e1;     /* slightly stronger borders */

  --accent: #1e3a8a;        /* deep authoritative navy-blue */
  --accent-bright: #2563eb; /* electric blue for hover/emphasis */
  --accent-soft: #dbeafe;   /* very pale blue for backgrounds */

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Subtle paper grain on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.1 0 0 0 0 0.18 0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* ============ NAV ============ */
header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  background: rgba(250, 250, 246, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.logo-mark {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.04em;
  transform: rotate(-3deg);
  background: var(--bg);
}
.logo-text { letter-spacing: -0.005em; }
.logo-text b { font-weight: 700; }

nav.primary {
  display: flex;
  gap: 32px;
  align-items: center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
nav.primary a { transition: color 0.2s; position: relative; }
nav.primary a:hover { color: var(--accent-bright); }
nav.primary a.active { color: var(--ink); font-weight: 500; }
nav.primary a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent-bright);
}

/* Mobile nav */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}
@media (max-width: 880px) {
  nav.primary {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav.primary.open { max-height: 480px; padding: 12px 32px 24px; }
  nav.primary a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  nav.primary .btn { margin-top: 12px; }
  .menu-toggle { display: block; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #fff;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-dark);
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn.on-dark {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.btn.on-dark:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #fff;
}
.btn.ghost.on-dark {
  background: transparent;
  color: var(--ink-on-deep);
  border-color: rgba(245, 240, 228, 0.25);
}
.btn.ghost.on-dark:hover {
  border-color: var(--ink-on-deep);
  background: transparent;
  color: var(--ink-on-deep);
}
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ SECTION PRIMITIVES ============ */
section.band {
  padding: 120px 0;
  position: relative;
}
@media (max-width: 768px) { section.band { padding: 80px 0; } }
section.band.tight { padding: 80px 0; }
section.band.alt { background: var(--bg-2); }
section.band.deep {
  background: var(--bg-deep);
  color: var(--ink-on-deep);
}
section.band.deep .section-lead { color: rgba(245, 240, 228, 0.75); }
section.band.deep .section-eyebrow { color: var(--accent-soft); }
section.band.deep .section-eyebrow::before { background: var(--accent-soft); }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.section-eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
}
.section-eyebrow.center { justify-content: center; }
.section-eyebrow.center::before { display: none; }

.section-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 900px;
  color: inherit;
}
.section-title em {
  font-style: normal; color: var(--accent); font-weight: 700;
}
section.band.deep .section-title em { color: #93c5fd; }

.section-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 720px;
}

/* ============ HERO ============ */
section.hero {
  padding: 170px 0 130px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  section.hero { padding: 130px 0 80px; }
}
.hero::before {
  content: "";
  position: absolute;
  top: 30%;
  right: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.hero-eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.99;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
  max-width: 1100px;
}
.hero h1 em {
  font-style: normal;
  font-weight: 800;
  color: var(--accent);
}
.hero h1 .strike {
  position: relative;
  display: inline-block;
  color: var(--ink-muted);
}
.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 55%;
  height: 4px;
  background: var(--accent-bright);
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 680px;
  margin-bottom: 44px;
}
.hero-sub b { color: var(--ink); font-weight: 500; }
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
@media (max-width: 768px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}
.stat-value {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-value em {
  color: var(--accent);
}

/* Page-header (smaller hero for non-home pages) */
section.page-header {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
@media (max-width: 768px) { section.page-header { padding: 120px 0 56px; } }
.page-header h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 1000px;
}
.page-header h1 em {
  font-style: normal; color: var(--accent); font-weight: 700;
}
.page-header p.lead {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--ink-dim);
  max-width: 720px;
}

/* ============ MARQUEE ============ */
.marquee {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-2);
}
.marquee-track {
  display: inline-block;
  animation: marquee 40s linear infinite;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.marquee-track span { padding: 0 32px; }
.marquee-track .dot {
  color: var(--accent-bright);
  padding: 0 8px;
  font-style: normal;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ PROBLEM LIST ============ */
.problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; gap: 48px; }
}
.problem-list { list-style: none; margin-top: 8px; }
.problem-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 24px;
  align-items: start;
}
.problem-list li:last-child { border-bottom: none; }
.problem-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  padding-top: 6px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.problem-text {
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
}
.problem-text b {
  color: var(--accent);
  font-weight: 700;
}

/* ============ DUALITY (two pillars) ============ */
.duality-hero {
  text-align: center;
  margin-bottom: 80px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.duality-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  position: relative;
}
@media (max-width: 900px) {
  .duality-pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--bg-3);
  padding: 48px 40px;
  position: relative;
  transition: background 0.3s;
}
.pillar:hover { background: #fcfcfa; }
.pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-weight: 500;
}
.pillar-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
}
.pillar-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.pillar-title em { font-style: normal; color: var(--accent); font-weight: 700; }
.pillar-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 32px;
}
.pillar-list { list-style: none; }
.pillar-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.pillar-list li:last-child { border-bottom: none; }
.pillar-list .check {
  color: var(--accent-bright);
  font-family: var(--mono);
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 2px;
}
.pillar-attribution {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-dark);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.pillar-attribution b { color: var(--ink-dim); font-weight: 500; }
.duality-seam {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 20px;
  color: var(--accent);
  z-index: 5;
}
@media (max-width: 900px) { .duality-seam { display: none; } }

/* ============ FOUNDERS ============ */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 64px;
}
@media (max-width: 900px) { .founders-grid { grid-template-columns: 1fr; } }
.founder {
  padding: 40px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.founder:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.founder-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.founder-role::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent-bright);
  border-radius: 50%;
}
.founder-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.founder-name em { font-style: normal; font-weight: 400; color: var(--accent); }
.founder-title {
  font-size: 14px;
  color: var(--ink-dim);
  margin-bottom: 28px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.founder-bio {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin-bottom: 28px;
}
.founder-bio b { color: var(--ink); font-weight: 500; }
.founder-bio + .founder-bio { margin-top: -12px; }
.founder-creds {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.cred {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13px;
  color: var(--ink);
}
.cred-label {
  font-family: var(--mono);
  color: var(--ink-muted);
  min-width: 90px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  font-weight: 500;
}
.cred-value b { color: var(--accent); font-weight: 500; }

/* ============ PROCESS ============ */
.process-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
@media (max-width: 900px) { .process-track { grid-template-columns: 1fr; } }
.process-step {
  padding: 36px 32px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.3s;
}
.process-step:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.step-num {
  font-family: var(--sans);
  
  font-size: 48px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}
.step-title {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.15;
}
.step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 20px;
}
.step-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
  padding-top: 16px;
  border-top: 1px dashed var(--line-dark);
  font-weight: 500;
}
.step-meta b { color: var(--ink-dim); }

/* ============ MARKET FIGURES ============ */
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .market-grid { grid-template-columns: 1fr; gap: 48px; }
}
.market-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.market-fig {
  padding: 28px 24px;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.fig-value {
  font-family: var(--sans);
  font-size: 52px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 14px;
}
.fig-value sub {
  font-size: 18px;
  color: var(--ink);
  vertical-align: baseline;
  margin-left: 4px;
}
.fig-label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.fig-label b { color: var(--ink); }

/* ============ PULL QUOTE ============ */
.pullquote {
  padding: 100px 0;
  text-align: center;
  position: relative;
  background: var(--bg);
}
.pullquote::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 180px;
  color: var(--accent-bright);
  opacity: 0.12;
  line-height: 1;
}
.pullquote blockquote {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.pullquote blockquote em { font-style: normal; color: var(--accent); font-weight: 700; }
.pullquote cite {
  display: block;
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  font-style: normal;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============ CTA SECTION ============ */
.cta {
  background: var(--bg-deep);
  padding: 130px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--ink-on-deep);
}
.cta::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 1100px; height: 1100px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.cta h2 em { font-style: normal; color: #93c5fd; font-weight: 800; }
.cta p {
  font-size: 18px;
  color: rgba(245, 240, 228, 0.75);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.cta-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ INSIGHTS / BLOG ============ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.post-card .post-cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}
.post-card h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.post-card .post-dek {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin-bottom: 32px;
  flex: 1;
}
.post-card .post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.post-card .read-arrow {
  color: var(--accent-bright);
  font-size: 14px;
  transition: transform 0.2s;
}
.post-card:hover .read-arrow { transform: translateX(4px); }

/* ============ ARTICLE / POST PAGE ============ */
article.post {
  padding: 140px 0 100px;
}
.post-header {
  max-width: 820px;
  margin: 0 auto 60px;
  padding: 0 32px;
}
.post-header .breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 28px;
  font-weight: 500;
}
.post-header .breadcrumb a:hover { color: var(--accent-bright); }
.post-header h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.post-header h1 em { font-style: normal; color: var(--accent); font-weight: 700; }
.post-header .dek {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink-dim);
  margin-bottom: 40px;
}
.post-header .post-byline {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.post-header .post-byline b { color: var(--ink); font-weight: 500; }

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.prose p { margin-bottom: 24px; }
.prose p.lead-para {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 36px;
}
.prose h2 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 56px 0 20px;
  color: var(--ink);
}
.prose h2 em { font-style: normal; color: var(--accent); font-weight: 700; }
.prose h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin: 36px 0 14px;
  color: var(--ink);
}
.prose ul, .prose ol {
  margin: 0 0 28px 0;
  padding-left: 0;
  list-style: none;
}
.prose ul li, .prose ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.65;
}
.prose ul li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-bright);
  font-weight: 500;
}
.prose ol { counter-reset: ol-counter; }
.prose ol li {
  counter-increment: ol-counter;
}
.prose ol li::before {
  content: counter(ol-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}
.prose blockquote {
  border-left: 3px solid var(--accent-bright);
  padding: 8px 0 8px 28px;
  margin: 36px 0;
  font-family: var(--sans);
  
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 600;
}
.prose strong { font-weight: 500; color: var(--ink); }
.prose a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--accent); }
.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}

/* Article footer / author / related */
.article-footer {
  max-width: 720px;
  margin: 80px auto 0;
  padding: 56px 32px 0;
  border-top: 1px solid var(--line);
}
.author-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.author-mark {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border: 1px solid var(--accent);
  background: var(--bg-3);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-2deg);
}
.author-info h4 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}
.author-info p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.55;
}

.related {
  margin-top: 80px;
}
.related h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 500;
}

/* ============ CONTACT FORM ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
.contact-info { padding-top: 8px; }
.contact-info h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.contact-info h2 em { font-style: normal; color: var(--accent); font-weight: 700; }
.contact-info p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 32px;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.channel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.channel-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-weight: 500;
}
.channel-value {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
}
.channel-value a:hover { color: var(--accent-bright); }

.form-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}
.form-row.single { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.form-field textarea {
  resize: vertical;
  min-height: 130px;
  font-family: var(--sans);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: var(--bg-3);
}
.form-field input.invalid {
  border-color: #dc2626;
  background: #fef2f2;
}
.form-error {
  display: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #dc2626;
  margin-top: 6px;
  line-height: 1.5;
  font-weight: 500;
}
.form-error.show { display: block; }
.form-submit {
  width: 100%;
  justify-content: center;
  padding: 16px 22px;
  font-size: 14px;
}
.form-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
  text-align: center;
  margin-top: 18px;
  font-weight: 500;
}

/* ============ FOOTER ============ */
footer.site {
  background: var(--bg-2);
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-left { max-width: 380px; }
.footer-tag {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink-dim);
  margin-top: 18px;
  line-height: 1.5;
}
.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li {
  padding: 5px 0;
  font-size: 14px;
  color: var(--ink-dim);
}
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Hero entrance */
.hero-eyebrow, .hero h1, .hero-sub, .hero-ctas, .hero-stats,
.page-header .breadcrumb, .page-header h1, .page-header p.lead {
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-eyebrow      { animation-delay: 0.1s; }
.hero h1           { animation-delay: 0.2s; }
.hero-sub          { animation-delay: 0.4s; }
.hero-ctas         { animation-delay: 0.55s; }
.hero-stats        { animation-delay: 0.7s; }
.page-header .breadcrumb { animation-delay: 0.05s; }
.page-header h1    { animation-delay: 0.15s; }
.page-header p.lead { animation-delay: 0.35s; }

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

/* ============ SELECTION ============ */
::selection {
  background: var(--accent-bright);
  color: #fff;
}
