/* marsdepinski.com — fractional CTO advisory site */
:root {
  --ink: #0b1220;
  --ink-2: #37435c;
  --ink-3: #5b6884;
  --paper: #f7f8fb;
  --card: #ffffff;
  --line: #e3e8f2;
  --accent: #0e5fd6;
  --accent-2: #0a3f8f;
  --accent-soft: #e8f0ff;
  --gold: #c99a2e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.65 "Fira Sans", "Fira Sans Fallback", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-2);
  background: var(--paper);
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0.4em 0 0.5em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.55), rgba(11, 18, 32, 0.35)), url("/images/mars.png") center / cover no-repeat, var(--accent-2);
  color: #fff; font-weight: 800; letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.brand-text { display: grid; line-height: 1.25; }
.brand-text small { color: var(--ink-3); font-size: 0.72rem; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 600; color: var(--ink-2);
}
.site-header nav a:hover, .site-header nav a[aria-current] { background: var(--accent-soft); color: var(--accent-2); text-decoration: none; }
.cta-small {
  white-space: nowrap; font-size: 0.88rem; font-weight: 700; color: #fff !important;
  background: var(--ink); padding: 10px 18px; border-radius: 999px;
}
.cta-small:hover { background: var(--accent-2); text-decoration: none; }

/* hero */
.hero { padding: clamp(48px, 8vw, 96px) 0; background: linear-gradient(180deg, #fff 0%, var(--paper) 130%); }
.hero.tight { padding: 48px 0 40px; background: #fff; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; color: var(--gold); }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.lede { color: var(--ink-2); max-width: 62ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 48px; align-items: center; }
.btn {
  display: inline-block; font-weight: 700; color: #fff; background: var(--accent);
  padding: 12px 22px; border-radius: 999px;
}
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent-2); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; }
.stats > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stats dt { font-size: 1.6rem; font-weight: 800; color: var(--accent-2); }
.stats dd { margin: 2px 0 0; font-size: 0.82rem; color: var(--ink-3); }

/* bands */
.band { padding: clamp(44px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.band.alt { background: #fff; }
.band h2 { margin-top: 0; }
.band.alt h2 { color: var(--ink); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-3 article, .quote-card, .card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.grid-3 article h3 { display: flex; align-items: baseline; gap: 10px; }
.num { color: var(--gold); font-size: 0.8rem; font-weight: 800; }
.grid-3 p, .grid-3 ul { font-size: 0.92rem; }
.grid-3 ul { padding-left: 18px; }
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.quote-card { background: linear-gradient(160deg, var(--ink) 0%, #16223c 100%); border: none; color: #d9e2f4; }
.quote-card h2, .quote-card blockquote { color: #fff; }
.quote-card blockquote { margin: 0 0 12px; font-size: 1.05rem; font-style: italic; line-height: 1.55; }
.quote-card .who { font-size: 0.82rem; color: #93a3c4; margin: 0 0 16px; }
.quote-card .btn { margin-top: 14px; }
.proof { padding-left: 20px; }
.proof li { margin-bottom: 10px; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 10px; }
.steps strong { color: var(--ink); }
.note { font-size: 0.88rem; color: var(--ink-3); }
.period { display: block; color: var(--gold); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.timeline article { border-left: 3px solid var(--line); padding: 0 0 26px 22px; position: relative; }
.timeline article::before { content: ""; position: absolute; left: -8px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); }
.timeline small { color: var(--ink-3); font-weight: 400; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.contact-list dt { font-weight: 700; color: var(--ink); }
.contact-list dd { margin: 0; }
.card { background: linear-gradient(160deg, var(--ink) 0%, #16223c 100%); border: none; color: #cfd9ee; padding: 24px; }
.card h2 { color: #fff; margin: 0 0 4px; }
.card .role { color: #93a3c4; font-size: 0.85rem; margin: 0 0 14px; }
.card-face { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.card .qr { background: #fff; padding: 10px; border-radius: 12px; width: max-content; }
.card a { color: #dbe6ff; }
.scan-note { font-size: 0.78rem; color: #93a3c4; }
.card .btn { margin-top: 16px; }

/* footer */
.site-footer { background: var(--ink); color: #93a3c4; padding: 28px 0; font-size: 0.88rem; }
.footer-wrap { display: flex; justify-content: space-between; gap: 24px; }
.site-footer a { color: #dbe6ff; }
.footer-meta { text-align: right; white-space: nowrap; }

/* blog */
.post-teaser { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.post-teaser .eyebrow { color: var(--gold); }
.post-teaser h2 { margin: 6px 0 8px; }
.post-teaser h2 a { color: var(--ink); }
.post-teaser h2 a:hover { color: var(--accent-2); }
.post-teaser p { font-size: 0.95rem; margin: 0 0 12px; }
.read-more { font-weight: 700; font-size: 0.9rem; }
.portrait { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.portrait img { width: 100%; height: auto; border-radius: 10px; display: block; }
.portrait figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--ink-3); }
.bio-grid { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.meet .portrait { align-self: start; }
.post { padding: 0 0 24px; }
.post h1 { max-width: 60ch; }
.post-body { max-width: 68ch; font-size: 1.02rem; }
.post-body h2 { margin-top: 1.6em; }
.post-body ol { padding-left: 22px; }
.post-footer { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.post-footer p { margin: 0; font-size: 0.9rem; }

/* responsive */
@media (max-width: 940px) {
  .header-wrap { flex-wrap: wrap; }
  .hero-grid, .split, .bio-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .site-header nav { order: 3; width: 100%; overflow-x: auto; }
  .footer-wrap { flex-direction: column; }
  .footer-meta { text-align: left; }
}
