/* Resume / consulting page — builds on style.css (load that first). */

.nav a[aria-current="page"] { color: var(--accent); }

/* Hero: pitch on the left, cutout portrait standing on the section's bottom rule */
.cv-hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: 0; border-bottom: 1px solid var(--line); }
.cv-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 24px clamp(12px, calc(5vw - 20px), 44px); align-items: end; }
.cv-hero-text { display: grid; gap: 24px; padding-bottom: clamp(48px, 7vw, 88px); }
.cv-hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 0.95; }
.cv-hero h1 em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }
.cv-hero .lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 36rem; }
.cv-hero-photo { width: 100%; max-width: 414px; justify-self: start; }
/* Pull the photo slightly under the text column so the two read as one unit; text stays on top */
.cv-hero-photo { position: relative; z-index: 0; }
@media (min-width: 1200px) { .cv-hero-photo { margin-left: -100px; } }
.cv-hero-text { position: relative; z-index: 1; }

/* Numbered offer list */
.offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.offer { background: var(--surface); border-radius: 16px; padding: 24px 24px 28px; display: grid; gap: 12px; align-content: start; }
.offer .num { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--accent); }
.offer h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.1rem); line-height: 1.05; }
.offer ul { margin: 4px 0 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 0.98rem; }
.offer li::marker { color: var(--muted); }

.intro-line { max-width: 44rem; font-size: 1.1rem; margin-bottom: 32px; }

/* Case study */
.case { background: var(--ink); color: var(--bg); }
.case h2, .case h3 { color: var(--bg); }
.case .label { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.case-copy { display: grid; gap: 18px; }
.case-copy h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; }
.case-copy p { color: color-mix(in srgb, var(--bg) 82%, transparent); max-width: 34rem; }
.case-copy a { color: var(--bg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 6px 0 0; padding: 20px 0 0; border-top: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); }
.case-stats div { display: grid; gap: 4px; }
.case-stats dt { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.6rem); line-height: 1; color: var(--bg); }
.case-stats dd { margin: 0; font-size: 0.9rem; color: color-mix(in srgb, var(--bg) 70%, transparent); }
.case-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.case-photos figure { margin: 0; display: grid; gap: 8px; }
.case-photos figure:first-child { grid-column: 1 / -1; }
.case-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-photos figcaption { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 55%, transparent); }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(32px, 5vw, 56px); padding-top: 32px; border-top: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); }
.quotes blockquote { margin: 0; display: grid; gap: 12px; }
.quotes p { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.2; color: var(--bg); }
.quotes footer { font-size: 0.9rem; color: color-mix(in srgb, var(--bg) 65%, transparent); }

/* Proof: ruled list with years in mono */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ledger .when { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.ledger strong { display: block; color: var(--ink); font-weight: 600; }
.ledger p { font-size: 0.98rem; max-width: 46rem; }
.ledger a { text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Two-column experience + education */
.cv-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(28px, 5vw, 72px); }
.cv-cols h3 { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.cv-side { display: grid; gap: 36px; align-content: start; }
.cv-side .ledger li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.cv-side .ledger .when { padding-top: 0; }

/* Contact band */
.cta { background: var(--surface); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta p { max-width: 36rem; margin-top: 16px; font-size: 1.1rem; }

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .cv-hero .wrap, .case-grid, .cv-cols, .cta .wrap { grid-template-columns: minmax(0, 1fr); }
  .cv-hero-text { padding-bottom: 8px; }
  .cv-hero-photo { max-width: 300px; justify-self: center; margin-left: 0; }
  .offers, .quotes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .case-stats { grid-template-columns: minmax(0, 1fr); }
  .ledger li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ledger .when { padding-top: 0; }
}

@media print {
  .site-header nav, .cta .btn-row, .case-photos, .cv-hero-photo { display: none; }
  .case { background: none; color: var(--text); }
  .case h2, .case h3, .quotes p, .case-stats dt { color: var(--ink); }
  section { padding-block: 24px; }
}
