/* Self-hosted variable fonts — no external requests, nothing to break offline. */
@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #15243A;
  --paper: #FBFAF8;
  --navy: #00336F;
  --azure: #3A8ADF;
  --slate: #55637A;
  --limestone: #D9DBE0;
  --limestone-soft: #ECEEF2;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 720px; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--limestone);
  background: var(--paper);
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 20px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--navy);
}
.wordmark img { height: 44px; width: auto; }
.wordmark .name {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.wordmark .name em { font-style: normal; color: var(--slate); }

.nav { display: flex; flex-wrap: wrap; gap: 24px; }
.nav a {
  color: var(--slate);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--azure); }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 3.55rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.18; }
h3 { font-size: 1.28rem; line-height: 1.25; }

p { margin: 0 0 1.05em; max-width: var(--measure); }
.lede {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.12rem, 2.1vw, 1.34rem);
  line-height: 1.55;
  font-weight: 300;
  color: var(--slate);
  max-width: 60ch;
}

section { padding: 68px 0; }
section + section { border-top: 1px solid var(--limestone); }

.hero { padding: 84px 0 62px; }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 26px; }

/* ---------- era band ---------- */

.eras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 54px;
  border-top: 2px solid var(--ink);
}
.era { padding: 22px 26px 26px 0; border-right: 1px solid var(--limestone); }
.era:last-child { border-right: 0; }
.era .years {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.5rem;
  color: var(--azure);
  display: block;
  line-height: 1.1;
}
.era .place { font-weight: 600; margin-top: 8px; display: block; font-size: 15.5px; }
.era .what { color: var(--slate); font-size: 15px; margin-top: 5px; display: block; line-height: 1.45; }

/* ---------- property entries ---------- */

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 58px;
}
.entry:last-child { margin-bottom: 0; }
.entry.flip .entry-media { order: 2; }
.entry-media img {
  border: 1px solid var(--limestone);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.entry h3 { margin-bottom: 4px; }
.entry .meta {
  color: var(--slate);
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 14px;
}
.entry p { font-size: 16.5px; }

.nophoto {
  border: 1px solid var(--limestone);
  background: var(--limestone-soft);
  padding: 28px;
}
.nophoto dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 20px; }
.nophoto dt { color: var(--slate); font-size: 14.5px; }
.nophoto dd { margin: 0; font-weight: 500; font-size: 14.5px; text-align: right; }

/* ---------- record table ---------- */

.record { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 15.5px; }
.record caption { text-align: left; color: var(--slate); font-size: 15px; padding-bottom: 12px; }
.record th, .record td {
  text-align: left;
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--limestone);
  vertical-align: top;
}
.record th { font-weight: 600; border-bottom-color: var(--ink); }
.record td:last-child, .record th:last-child { padding-right: 0; }

/* ---------- misc ---------- */

.standfirst { max-width: 62ch; }
.wrap.standfirst { max-width: 1080px; }
.wrap.standfirst > * { max-width: 62ch; }
.standfirst h2 { margin-bottom: 16px; }

.cta {
  display: inline-block;
  margin-top: 10px;
  background: var(--navy);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 13px 26px;
}
.cta:hover { background: #002450; }

.field { display: block; margin-bottom: 20px; max-width: 520px; }
.field span { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 11px 13px;
  border: 1px solid var(--slate);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}
.field textarea { min-height: 150px; resize: vertical; }

.colophon {
  border-top: 1px solid var(--limestone);
  padding: 34px 0 56px;
  color: var(--slate);
  font-size: 14.5px;
}
.colophon p { max-width: 70ch; margin-bottom: 0.6em; }

@media (max-width: 720px) {
  .wordmark img { height: 62px; }
  .nav { gap: 18px; }
  .nav a { font-size: 15px; }
  .entry { grid-template-columns: 1fr; gap: 22px; }
  .entry.flip .entry-media { order: 0; }
  .era { border-right: 0; border-bottom: 1px solid var(--limestone); padding-right: 0; }
  .era:last-child { border-bottom: 0; }
  .record th:nth-child(3), .record td:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* ---------- stat panel ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--limestone);
  border: 1px solid var(--limestone);
  margin-top: 52px;
}
.stat { background: var(--paper); padding: 26px 24px 28px; }
.stat .figure {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1;
  color: var(--navy);
  display: block;
}
.stat .label {
  display: block;
  margin-top: 11px;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--slate);
}

/* ---------- assertion grid ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px 44px;
  margin-top: 8px;
}
.tile h3 { font-size: 1.14rem; margin-bottom: 7px; }
.tile p { font-size: 16px; color: var(--slate); margin: 0; max-width: 42ch; }

/* ---------- compact property cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 34px;
  margin-top: 40px;
}
.card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--limestone);
}
.card h3 { margin-top: 16px; font-size: 1.16rem; }
.card .meta { color: var(--slate); font-size: 14.5px; margin: 5px 0 0; }


/* ---------- principal portrait ---------- */

.bio {
  display: grid;
  grid-template-columns: minmax(0, 295px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.bio-portrait img { width: 100%; }
.bio .tiles { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 0; }

@media (max-width: 800px) {
  .bio { grid-template-columns: 1fr; gap: 28px; }
  .bio-portrait { max-width: 260px; }
}

/* ---------- bio tiles, scaled to the portrait ---------- */

.bio .tiles { row-gap: 78px; }
.bio .tile h3 { font-size: 1.3rem; margin-bottom: 9px; }
.bio .tile p { font-size: 18.5px; line-height: 1.68; max-width: 40ch; }

@media (max-width: 800px) {
  .bio .tiles { row-gap: 34px; }
  .bio .tile p { font-size: 17px; line-height: 1.6; }
}

.stat .figure.team-figure { font-size:clamp(1.05rem,2.2vw,1.8rem); line-height:1.15; overflow-wrap:anywhere; }

.experience-hero { position:relative; overflow:hidden; background:linear-gradient(120deg,#fbfaf8 35%,#edf3fa); }
.experience-hero::before { content:''; position:absolute; inset:0; background:url('img/analytics-background.svg') right center / auto 100% no-repeat; opacity:.24; pointer-events:none; }
.experience-hero .wrap { position:relative; z-index:1; }
.experience-hero .lede { max-width:55ch; }
.analytics-panel { background:#f2f5f9; }
.analytics-grid { display:grid; grid-template-columns:1.3fr 1fr .85fr; gap:20px; margin-top:28px; }
.analytic-card { padding:24px; background:var(--paper); border:1px solid var(--limestone); min-width:0; }
.analytic-card h3 { font-size:1.15rem; margin-bottom:5px; }
.analytic-card p { font-size:12px; color:var(--slate); margin-bottom:18px; }
.analytic-card svg { display:block; width:100%; height:auto; }
.analytics-note { margin-top:18px; color:var(--slate); font-size:12px; }
@media(max-width:800px) { .analytics-grid { grid-template-columns:1fr 1fr; } .analytic-card:first-child { grid-column:1 / -1; } }
@media(max-width:600px) { .analytics-grid { grid-template-columns:1fr; } .analytic-card:first-child { grid-column:auto; } .experience-hero::before { opacity:.12; } }

.tech-figure { margin:0; }
.tech-figure img { width:100%; aspect-ratio:16/7; object-fit:cover; border:1px solid var(--limestone); }
.tech-figure figcaption { font-size:12px; color:var(--slate); margin-top:11px; }
.tech-split { align-items:center; }
.tech-split .tech-figure img { aspect-ratio:3/2; }
.resume-intro { max-width:80ch; margin-bottom:34px; }
.resume-role { border-top:1px solid var(--limestone); padding-top:32px; margin-top:34px; }
.resume-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:30px; }
.resume-heading h3 { font-size:1.55rem; margin-bottom:8px; }
.role-title { font-size:16px; color:var(--navy); font-weight:500; margin-bottom:0; }
.role-period { font-size:14px; text-align:right; flex-shrink:0; color:var(--slate); }
.role-period span { font-size:13px; }
.resume-role .list { max-width:92ch; font-size:15.5px; }
.environment { font-size:13px; color:var(--slate); max-width:100ch; margin-top:20px; }
@media(max-width:600px) { .resume-heading { display:block; } .role-period { text-align:left; margin-top:10px; } .tech-figure img { aspect-ratio:4/3; } }

/* Consulting refinements: preserve the original Blue Virtue design system. */
html { scroll-behavior: smooth; }
.skip { position:absolute; left:20px; top:-80px; background:var(--navy); color:white; padding:12px 20px; z-index:20; }
.skip:focus { top:12px; }
.eyebrow { font-size:12px; font-weight:600; letter-spacing:.13em; text-transform:uppercase; color:var(--slate); margin-bottom:20px; }
.hero h1 { max-width:20ch; }
.hero .lede { max-width:62ch; }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:18px 26px; margin-top:26px; }
.hero-actions .cta { margin:0; }
.text-link { font-size:15px; }
.section-top { display:flex; justify-content:space-between; gap:20px; align-items:baseline; margin-bottom:32px; }
.section-top p { color:var(--slate); font-size:14px; margin:0; }
.stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.stat { padding:28px; }
.stat-note { color:var(--slate); font-size:12.5px; margin-top:13px; }
.tile h3 { font-size:1.32rem; }
.tiles { grid-template-columns:repeat(3,minmax(0,1fr)); gap:38px; }
.tile p { font-size:15.5px; }
.capability { border-top:2px solid var(--navy); padding-top:20px; }
.capability .number { font-family:'Archivo',sans-serif; font-size:12px; color:var(--slate); display:block; margin-bottom:12px; }
.capability .text-link { display:inline-block; margin-top:18px; }
.split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:60px; }
.split h2 { margin-bottom:20px; }
.list { padding-left:19px; margin:20px 0 0; }
.list li { padding-left:5px; margin:0 0 12px; }
.list li::marker { color:var(--navy); }
.callout { background:#f0f3f7; border-left:3px solid var(--navy); padding:30px; }
.callout h3 { margin-bottom:14px; }
.callout p { font-size:15.5px; margin-bottom:0; color:var(--slate); }
.process { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:34px; margin-top:32px; counter-reset:process; }
.process article { border-top:1px solid var(--limestone); padding-top:18px; }
.process article::before { counter-increment:process; content:'0' counter(process); font-size:12px; color:var(--slate); display:block; margin-bottom:12px; }
.process h3 { margin-bottom:10px; }
.process p { font-size:15.5px; color:var(--slate); }
.detail { display:grid; grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); gap:60px; }
.detail + .detail { margin-top:44px; padding-top:44px; border-top:1px solid var(--limestone); }
.detail h2 { font-size:1.7rem; }
.detail .meta { color:var(--slate); font-size:13px; margin:13px 0 0; }
.detail h3 { font-size:1.2rem; margin-bottom:12px; }
.detail p { font-size:16px; }
.tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.tag { padding:5px 10px; border:1px solid var(--limestone); color:var(--slate); font-size:12px; }
.record td { font-size:14.5px; }
.table-wrap { overflow-x:auto; }
.bio { grid-template-columns:minmax(0,310px) minmax(0,1fr); align-items:start; }
.bio-portrait img { width:100%; aspect-ratio:3/4; object-fit:cover; object-position:center top; border:1px solid var(--limestone); }
.bio .tiles { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:30px; }
.bio .tile p { font-size:15.5px; line-height:1.6; }
.bio .tile h3 { font-size:1.3rem; }
.bio-intro { margin-bottom:30px; }
.bio-intro h2 { margin-bottom:12px; }
.bio-intro p { font-size:16px; }
.brand-footer { display:flex; align-items:center; gap:12px; margin-bottom:18px; color:var(--navy); }
.brand-footer img { width:34px; }
.footer-bottom { display:flex; flex-wrap:wrap; gap:14px 28px; align-items:center; margin-top:22px; font-size:12px; }
.colophon p { font-size:13px; max-width:85ch; }
.contact-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr); gap:60px; }
.contact-grid .field { max-width:none; }
.contact-aside { border-top:2px solid var(--navy); padding-top:22px; }
.contact-aside h2 { font-size:1.5rem; margin-bottom:18px; }
.contact-aside p, .contact-aside li { font-size:15px; }
.email { overflow-wrap:anywhere; }
button.cta { border:0; cursor:pointer; font-family:inherit; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline:2px solid var(--navy); outline-offset:3px; }
.field select { width:100%; font:inherit; padding:11px 13px; background:white; color:var(--ink); border:1px solid var(--slate); }
.help { font-size:13px; color:var(--slate); margin-top:16px; }
.form-status { margin-top:14px; font-size:14px; }
.error-page { min-height:55vh; }
@media(max-width:800px) { .tiles { grid-template-columns:repeat(2,minmax(0,1fr)); } .bio { grid-template-columns:1fr; } .bio-portrait { max-width:300px; } .detail { gap:32px; } .contact-grid { grid-template-columns:1fr; gap:40px; } }
@media(max-width:600px) {
  body { font-size:16px; } .wrap { padding-left:22px; padding-right:22px; }
  section { padding:44px 0; } .hero { padding:54px 0 40px; }
  .wordmark img { height:42px; } .wordmark .name { font-size:23px; }
  .masthead .wrap { gap:20px; } .nav { gap:16px; } .nav a { font-size:13px; }
  .stats { margin-top:36px; } .stat { padding:20px 13px; } .stat .figure { font-size:2rem; } .stat .label { font-size:12px; }
  .tiles, .split, .detail, .process, .bio .tiles { grid-template-columns:1fr; }
  .split { gap:28px; } .detail { gap:22px; } .section-top { display:block; } .section-top p { margin-top:10px; }
  .record th:nth-child(3), .record td:nth-child(3) { display:table-cell; }
  .record { min-width:550px; } .contact-aside { max-width:none; }
}
@media(max-width:360px) { .wordmark .name { font-size:20px; } .wordmark img { height:36px; } .wordmark { gap:9px; } .nav { gap:12px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
