/* Site-wide design layer: shared nav, footer and editorial type.
   Loaded last on every page so it wins over style.css and page-local styles. */
:root {
  --serif: "Instrument Serif", Georgia, serif;
  --s-ink: #171713;
  --s-muted: #686257;
  --s-paper: #fbf5ea;
  --s-line: #e8d9c3;
  --s-green: #b4532f;
  --s-copper: #6f8440;
  --s-night: #231d33;
  --s-mint: #bcd98f;
  --s-sand: #efeadc;
  --s-mono: "JetBrains Mono", monospace;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(216, 207, 189, .8);
  background: rgba(247, 243, 233, .84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.site-nav-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { color: var(--s-ink); font: 500 14px/1 var(--s-mono); letter-spacing: .14em; text-decoration: none; }
.site-brand b { color: var(--s-green); font-weight: 500; }
.site-nav-links { display: flex; align-items: center; gap: 26px; }
.site-nav-link { color: var(--s-muted); font: 500 13px/1 var(--s-mono); letter-spacing: .04em; text-decoration: none; transition: color .2s; }
.site-nav-link:hover, .site-nav-link:focus-visible { color: var(--s-green); }
.site-nav-link[aria-current="page"] { color: var(--s-ink); text-decoration: underline; text-decoration-color: var(--s-copper); text-underline-offset: 6px; }

/* ---------- Footer ---------- */
.site-foot { padding: 72px 0 40px; background: var(--s-night); color: #b9b4a6; border: 0; }
.site-foot-top { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(239, 234, 220, .12); }
.site-foot-top p { margin: 0; max-width: 620px; color: var(--s-sand); font: 400 clamp(30px, 3.6vw, 48px)/1.05 var(--serif); letter-spacing: -.02em; }
.site-foot-top p em { color: var(--s-mint); }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 10px; }
.site-foot-links a { padding: 10px 14px; border: 1px solid rgba(239, 234, 220, .2); border-radius: 2px; color: var(--s-sand); font: 500 12px/1 var(--s-mono); text-decoration: none; transition: border-color .2s, color .2s; }
.site-foot-links a:hover, .site-foot-links a:focus-visible { border-color: var(--s-mint); color: var(--s-mint); }
.site-foot-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; color: #7a766b; font: 500 12px/1.6 var(--s-mono); }
.site-foot-bottom a { color: inherit; text-decoration: none; }
.site-foot-bottom a:hover { color: var(--s-sand); }

/* ---------- Editorial type for content pages ---------- */
.page h1,
.page .section-title,
.page .section-heading h2,
.page .audit-section h2,
.page .proof-copy h2,
.page .contact-copy h2,
.page .final-cta h2,
.page .channel-item h3,
.page .route-item h3,
.page .career-entry h3,
.page .offer-card h3,
.page .price {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.025em;
}
.page h1 { font-size: clamp(54px, 8vw, 108px); line-height: .94; letter-spacing: -.035em; }
.page .section-title, .page .audit-section h2, .page .section-heading h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.page .career-entry h3 { font-size: 28px; }
.page .channel-item h3 { font-size: 34px; line-height: 1.05; }
.page .work-item h3, .page .deliverable h3, .page .timeline-step h3, .page .method h3, .page .audience-card h3 { font-weight: 500; }

.page .eyebrow, .page .price-label, .page .offer-kicker, .page .route-audience {
  color: var(--s-copper);
  font: 500 12px/1.3 var(--s-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.page .crumb a { color: var(--s-green); }

/* Hero gets the same faint grid as the homepage */
.page .audit-hero, .page .personal-hero { position: relative; overflow: hidden; }
.page .audit-hero::before, .page .personal-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--s-line) 1px, transparent 1px), linear-gradient(90deg, var(--s-line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .3;
  mask-image: radial-gradient(ellipse 70% 60% at 25% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 25% 30%, #000 20%, transparent 75%);
}
.page .audit-hero > *, .page .personal-hero > * { position: relative; }

/* Dark accents match the homepage thesis block */
.page .final-cta { background: #3a2b4d; }
.page .final-cta h2 { color: var(--s-sand); }
.page .final-cta p { color: #c5d3ce; }
.page .audit-proof { background: var(--s-night); border-left: 2px solid #f2a57e; }
.page .audit-proof p { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; color: var(--s-sand); }

/* Panels: crisper, less gradient */
.page .price-panel { background: #fffdf7; border-color: var(--s-line); border-top: 3px solid var(--s-copper); border-radius: 3px; }
.page .price { font-size: clamp(54px, 6vw, 76px); }
.page .deliverable, .page .offer-card, .page .inquiry { border-radius: 3px; }
.page .portrait { border-radius: 3px; }

/* ---------- How I think (page-local styles get aligned) ---------- */
.think h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 7.6vw, 100px); line-height: .94; letter-spacing: -.035em; }
.think .eyebrow { color: var(--s-copper); font: 500 12px/1.3 var(--s-mono); letter-spacing: .1em; text-transform: uppercase; }
.think .principle-item h2, .think .closing-panel h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
.think .principle-item h2 { font-size: 30px; line-height: 1.12; }
.think .principle-item.featured { background: var(--s-night); }
.think .thesis-card b { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.think .principle-item, .think .whiteboard { border-radius: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 650px) {
  .site-wrap { width: calc(100% - 32px); }
  .site-nav-inner { min-height: 60px; }
  .site-brand { font-size: 12px; letter-spacing: .08em; }
  .site-nav-links { gap: 14px; }
  .site-nav-link { font-size: 11px; }
  .site-nav-link.wide { display: none; }
  .site-foot-top, .site-foot-bottom { flex-direction: column; align-items: start; }
  .page h1, .think h1 { font-size: 54px; }
}

/* ---------- About page ---------- */
.ab-label { display: inline-block; color: var(--s-copper); font: 500 12px/1.3 var(--s-mono); letter-spacing: .1em; text-transform: uppercase; }
.ab-label.light { color: #f2a57e; }
.ab-hero { position: relative; overflow: hidden; padding: 88px 0 104px; border-bottom: 1px solid var(--s-line); }
.ab-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--s-line) 1px, transparent 1px), linear-gradient(90deg, var(--s-line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .3;
  mask-image: radial-gradient(ellipse 60% 60% at 20% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 20% 30%, #000 20%, transparent 75%);
}
.ab-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 80px; align-items: center; }
.ab-hero-grid > * { min-width: 0; }
.ab-title { max-width: none; margin: 22px 0 30px; font: 400 clamp(54px, 7.6vw, 104px)/.94 var(--serif); letter-spacing: -.035em; }
.ab-title em { color: var(--s-green); }
.ab-lede { max-width: 640px; margin: 0 0 16px; color: var(--s-ink); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; }
.ab-lede.muted { color: var(--s-muted); font-size: 18px; }
.ab-photo { position: relative; margin: 0; width: 100%; max-width: 380px; justify-self: end; }
.ab-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
.ab-photo::after { content: ""; position: absolute; top: 16px; left: -16px; right: 16px; bottom: -16px; border: 1px solid var(--s-copper); border-radius: 3px; z-index: -1; }

.ab-section { padding: 112px 0; border-bottom: 1px solid var(--s-line); }
.ab-split { display: grid; grid-template-columns: .7fr 1.3fr; gap: 72px; align-items: start; }
.ab-split > * { min-width: 0; }
.ab-side { position: sticky; top: 108px; }
.ab-side h2, .ab-dark h2 { margin: 14px 0 14px; font: 400 clamp(40px, 5vw, 64px)/1 var(--serif); letter-spacing: -.03em; }
.ab-side p { margin: 0; color: var(--s-muted); }

.ab-timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--s-ink); }
.ab-timeline li { position: relative; padding: 30px 0 30px 34px; border-bottom: 1px solid var(--s-line); }
.ab-timeline li::before { content: ""; position: absolute; left: 0; top: 40px; width: 9px; height: 9px; border-radius: 50%; background: var(--s-green); box-shadow: 0 0 0 4px rgba(180, 83, 47, .14); }
.ab-timeline li.ab-edu::before { background: var(--s-line); box-shadow: none; }
.ab-org { font: 400 clamp(30px, 3vw, 38px)/1.05 var(--serif); letter-spacing: -.02em; }
.ab-role { margin-top: 8px; color: var(--s-green); font: 500 12px/1.4 var(--s-mono); letter-spacing: .04em; }
.ab-timeline p { max-width: 640px; margin: 12px 0 0; color: var(--s-muted); font-size: 16px; }

.ab-dark { padding: 112px 0; background: var(--s-night); color: var(--s-sand); }
.ab-dark h2 { max-width: 760px; margin-bottom: 56px; }
.ab-beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(239, 234, 220, .12); border: 1px solid rgba(239, 234, 220, .12); }
.ab-beliefs article { padding: 34px 30px 38px; background: var(--s-night); }
.ab-num { color: #7a766b; font: 500 12px/1 var(--s-mono); }
.ab-beliefs h3 { margin: 44px 0 14px; font: 400 clamp(26px, 2.4vw, 32px)/1.1 var(--serif); letter-spacing: -.015em; color: var(--s-sand); }
.ab-beliefs article:first-child h3 { color: var(--s-mint); }
.ab-beliefs p { margin: 0; color: #a7a295; font-size: 15px; }
.ab-more { display: inline-block; margin-top: 32px; color: var(--s-mint); font: 600 14px/1 var(--body, "Inter", sans-serif); text-decoration: none; }
.ab-more:hover { text-decoration: underline; text-underline-offset: 4px; }

.ab-now { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-now-item { display: block; padding: 28px; border: 1px solid var(--s-line); border-radius: 3px; background: #fffdf7; color: var(--s-ink); text-decoration: none; transition: border-color .2s, transform .2s; }
a.ab-now-item:hover { border-color: var(--s-green); transform: translateY(-3px); }
.ab-now-item:first-child { background: var(--s-night); border-color: var(--s-night); color: var(--s-sand); }
.ab-now-item b { display: block; font: 400 28px/1.1 var(--serif); letter-spacing: -.015em; }
.ab-now-item p { margin: 12px 0 0; color: var(--s-muted); font-size: 15px; }
.ab-now-item:first-child p { color: #a7a295; }

@media (max-width: 900px) {
  .ab-hero-grid, .ab-split { grid-template-columns: 1fr; gap: 48px; }
  .ab-photo { justify-self: start; max-width: 320px; margin-left: 16px; }
  .ab-side { position: static; }
  .ab-beliefs { grid-template-columns: 1fr; }
  .ab-beliefs h3 { margin-top: 20px; }
}
@media (max-width: 650px) {
  .ab-hero { padding: 56px 0 72px; }
  .ab-title { font-size: 52px; }
  .ab-section, .ab-dark { padding: 76px 0; }
  .ab-now { grid-template-columns: 1fr; }
  .ab-timeline li { padding-left: 26px; }
}
.ab-bios { display: grid; gap: 16px; }
.ab-bio-card { padding: 26px 28px; border: 1px solid var(--s-line); border-radius: 3px; background: #fffdf7; }
.ab-bio-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; color: var(--s-muted); font: 500 11px/1 var(--s-mono); letter-spacing: .08em; text-transform: uppercase; }
.ab-copy { padding: 8px 12px; border: 1px solid var(--s-line); border-radius: 2px; background: transparent; color: var(--s-green); font: 500 11px/1 var(--s-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.ab-copy:hover { border-color: var(--s-green); }
.ab-bio-card p { margin: 0; color: var(--s-ink); font-size: 16px; line-height: 1.6; }
