@font-face{font-family:"Manrope";src:url("/home-assets/manrope-variable.ttf") format("truetype");font-weight:200 800;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("/home-assets/ibmplexmono-regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url("/home-assets/instrumentserif-italic.ttf") format("truetype");font-style:italic;font-display:swap}

:root{
  --ink:#272A3D;--ink-2:#4A4D5C;--muted:#6B6E80;--faint:#9A9CAA;
  --paper:#F8F7F4;--tint:#EFEDE7;--line:#D3D0C7;--line-soft:#E2DFD6;--white:#FFFFFF;
  --sans:"Manrope",system-ui,sans-serif;--mono:"IBM Plex Mono",ui-monospace,monospace;--serif:"Instrument Serif",Georgia,serif;
  --gutter:80px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body.cv-page{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.cv-page img{max-width:100%;display:block}
.cv-page a{color:inherit}
.cv-page h1,.cv-page h2,.cv-page h3,.cv-page p{margin:0}

.cv-eyebrow,.cv-num,.cv-when,.stat-label,.row-meta,.tl-date,.tl-year{font-family:var(--mono);text-transform:uppercase;letter-spacing:.12em;font-size:12px;line-height:16px;color:var(--muted)}
.cv-when{text-transform:none;letter-spacing:0;font-size:13px;line-height:22px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:999px;padding:16px 26px;font:600 15px/18px var(--sans);text-decoration:none;white-space:nowrap;transition:transform .15s ease,background-color .15s ease}
.btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.btn-dark{background:var(--ink);color:var(--paper)!important}
.btn-dark:hover{background:#1a1c2b;transform:translateY(-1px)}
.btn-block{width:100%}

/* Hero */
.cv-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:48px;padding:56px var(--gutter) 40px}
.cv-hero-text{display:flex;flex-direction:column;gap:20px;max-width:860px}
.cv-hero h1{font-weight:500;font-size:96px;line-height:92px;letter-spacing:-.05em}
.cv-lede{font-size:22px;line-height:32px;color:var(--ink-2)}
.cv-meta{display:flex;flex-wrap:wrap;gap:8px 28px;font:12px/16px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2)}

/* Timeline (desktop: staggered skyline above an axis) */
.cv-timeline{background:var(--tint);border-block:1px solid var(--line-soft)}
.tl-wrap{position:relative;max-width:1440px;margin:0 auto;padding:28px var(--gutter) 40px}
.tl{--pad:62px;--card:122px;--pitch:96px;position:relative;list-style:none;margin:16px 0 0;padding:0;height:400px}
.tl-item{position:absolute;bottom:0;left:calc(var(--pad) + (100% - 2 * var(--pad)) * var(--i) / (var(--n) - 1));width:0;height:100%}
.tl-card{position:absolute;left:calc(var(--card) / -2);bottom:calc(26px + var(--tier) * var(--pitch));width:var(--card);display:flex;flex-direction:column;gap:4px;padding:12px;background:var(--white);border-radius:12px;box-shadow:0 1px 0 rgba(39,42,61,.04);transition:transform .2s ease,box-shadow .2s ease}
.tl-item::before{content:"";position:absolute;left:0;bottom:4px;width:1px;height:calc(22px + var(--tier) * var(--pitch));background:var(--ink)}
.tl-item::after{content:"";position:absolute;left:-6px;bottom:-6px;width:12px;height:12px;border-radius:50%;background:var(--paper);border:2px solid var(--ink)}
.tl-item.is-key::after{background:var(--ink)}
.tl-item.is-key .tl-card{background:var(--ink)}
.tl-item.is-key .tl-date{color:#B9BCCB}
.tl-item.is-key .tl-head{color:var(--white)}
.tl-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(39,42,61,.12)}
.tl-date{font-size:10px;line-height:13px;letter-spacing:.08em}
.tl-head{font:600 13px/17px var(--sans);color:var(--ink)}
.tl-axis{position:relative;height:30px;margin-top:0;border-top:2px solid var(--ink)}
.tl-axis::after{content:"";position:absolute;right:-2px;top:-7px;border-left:10px solid var(--ink);border-top:6px solid transparent;border-bottom:6px solid transparent}
.tl-axis .tl-year{position:absolute;top:10px;left:calc(var(--pad,62px) + (100% - 2 * 62px) * var(--i) / 17);letter-spacing:0;font-size:11px}
.tl-axis .tl-year::before{content:"";position:absolute;left:-6px;top:-16px;width:1px;height:14px;background:var(--ink)}
.tl-axis .tl-first{left:0}
.tl-axis .tl-first::before{display:none}
.tl-axis .tl-year:not(.tl-first){padding-left:0;transform:translateX(6px)}

/* Stat cards */
.cv-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;padding:64px var(--gutter) 32px}
.stat{display:flex;flex-direction:column;justify-content:space-between;gap:24px;min-height:156px;padding:22px;background:var(--tint);border-radius:16px}
.stat-label{font-size:11px;letter-spacing:.1em}
.stat-num{font-weight:500;font-size:40px;line-height:42px;letter-spacing:-.04em}
.stat-note{margin-top:4px!important;font-size:13px;line-height:18px;color:var(--muted)}

/* Body: sticky rail + record */
.cv-body{display:flex;gap:80px;padding:72px var(--gutter) 96px;align-items:flex-start}
.cv-rail{position:sticky;top:24px;flex:0 0 260px;display:flex;flex-direction:column;gap:28px}
.cv-portrait{width:260px;height:300px;object-fit:cover;object-position:50% 30%;border-radius:16px}
.cv-index{display:flex;flex-direction:column}
.cv-index a{display:flex;gap:14px;align-items:center;padding:9px 0;border-top:1px solid var(--line);text-decoration:none;font:500 14px/18px var(--sans);color:var(--muted);transition:color .15s ease}
.cv-index a:last-child{border-bottom:1px solid var(--line)}
.cv-index a span{font:11px/14px var(--mono);color:var(--faint)}
.cv-index a:hover,.cv-index a.is-active{color:var(--ink)}
.cv-index a.is-active{font-weight:700}
.cv-index a.is-active::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--ink)}
.cv-record{flex:1;min-width:0;display:flex;flex-direction:column;gap:72px}
.cv-section{display:flex;flex-direction:column;scroll-margin-top:24px}
.cv-section>h2{font-weight:600;font-size:36px;line-height:40px;letter-spacing:-.02em;margin:10px 0 28px}
.cv-num{letter-spacing:.14em}

.cv-entry{display:flex;gap:40px;padding:20px 0;border-top:1px solid var(--line)}
.cv-section .cv-entry:last-child{border-bottom:1px solid var(--line)}
.cv-entry .cv-when{flex:0 0 150px}
.cv-entry-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px}
.cv-entry h3{font-weight:600;font-size:20px;line-height:26px}
.cv-org{margin-top:-8px!important;font:italic 20px/26px var(--serif);color:var(--ink-2)}
.cv-entry-body>p:not(.cv-org):not(.cv-links){font-size:15px;line-height:25px;color:var(--ink-2)}
.cv-links{display:flex;flex-wrap:wrap;gap:8px 16px}
.cv-links a{font:600 14px/18px var(--sans);text-decoration:underline;text-underline-offset:4px}
.cv-chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.cv-chips li{border:1px solid var(--line);border-radius:999px;padding:6px 12px;font-size:13px;line-height:16px}
.cv-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:6px}
.cv-photos img,.cv-photo-stat{width:100%;height:auto;aspect-ratio:7/5;object-fit:cover;border-radius:16px}
.cv-photo-stat{min-width:0;overflow-wrap:anywhere;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:18px;background:var(--tint)}
.cv-photo-stat span{font-weight:500;font-size:28px;line-height:30px;letter-spacing:-.03em}
.cv-photo-stat small{font:10px/13px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}

.cv-paper{display:flex;flex-direction:column;gap:14px;padding:28px 32px;margin-bottom:28px;background:var(--white);border:1px solid var(--line-soft);border-radius:16px}
.cv-paper h3{font-weight:600;font-size:21px;line-height:28px}
.cv-paper p{font-size:15px;line-height:22px;color:var(--ink-2)}
.cv-paper strong{color:var(--ink)}
.cv-tags{display:flex;flex-wrap:wrap;gap:8px}
.tag{border:1px solid #C9CAD0;border-radius:4px;padding:5px 10px;font:11px/14px var(--mono);letter-spacing:.08em;text-transform:uppercase;text-decoration:none}
.tag-strong{border-color:var(--ink)}
.tag:hover{background:var(--white);border-color:var(--ink)}

.cv-rows{list-style:none;margin:0;padding:0}
.cv-rows li{display:flex;gap:40px;align-items:baseline;padding:15px 0;border-top:1px solid var(--line)}
.cv-rows li:last-child{border-bottom:1px solid var(--line)}
.cv-rows .cv-when{flex:0 0 150px}
.row-title{flex:1;font-weight:600;font-size:16px;line-height:22px}
.row-meta{font-size:11px;letter-spacing:.08em;line-height:14px;white-space:nowrap}

.cv-skills{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.cv-skills div{display:flex;flex-direction:column;gap:8px;padding:20px;background:var(--tint);border-radius:16px}
.cv-skills h3{font-weight:600;font-size:16px;line-height:22px}
.cv-skills p{font-size:13px;line-height:20px;color:var(--ink-2)}

/* Narrow desktop and tablet: timeline becomes a vertical list */
@media (max-width:1200px){
  :root{--gutter:48px}
  .cv-stats{grid-template-columns:repeat(3,1fr)}
  .tl{height:auto;margin-top:20px;padding-left:28px;border-left:2px solid var(--ink);display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px 16px}
  .tl-item{position:relative;left:auto;width:auto;height:auto}
  .tl-item::before{display:none}
  .tl-item::after{display:none}
  .tl-card{position:relative;left:auto;bottom:auto;width:auto;height:100%}
  .tl-axis{display:none}
}
@media (max-width:900px){
  .cv-hero{flex-direction:column;align-items:flex-start;gap:28px}
  .cv-body{flex-direction:column;gap:40px}
  .cv-rail{position:static;flex:none;width:100%;flex-direction:row;flex-wrap:wrap;align-items:flex-start;gap:20px}
  .cv-portrait{width:140px;height:160px}
  .cv-index{display:none}
  .cv-rail .btn-block{width:auto;align-self:flex-end}
}
@media (max-width:640px){
  :root{--gutter:16px}
  .cv-hero{padding-top:36px}
  .cv-hero h1{font-size:56px;line-height:56px}
  .cv-lede{font-size:18px;line-height:28px}
  .cv-hero .btn{width:100%}
  .tl{display:flex;flex-direction:column;gap:10px;padding-left:22px;margin-left:6px}
  .tl-item::after{display:block;left:-29px;top:16px;bottom:auto}
  .cv-stats{grid-template-columns:repeat(2,1fr);gap:10px;padding-top:40px}
  .stat{min-height:124px;padding:18px}
  .stat-num{font-size:32px;line-height:34px}
  .cv-body{padding-top:40px}
  .cv-rail{display:none}
  .cv-record{gap:56px}
  .cv-section>h2{font-size:28px;line-height:32px}
  .cv-entry,.cv-rows li{flex-direction:column;gap:6px}
  .cv-entry .cv-when,.cv-rows .cv-when{flex:none}
  .row-meta{white-space:normal}
  .cv-entry h3{font-size:18px;line-height:24px}
  .cv-org{font-size:18px;line-height:24px}
  .cv-photos{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cv-photos img{height:auto;aspect-ratio:4/5}
  .cv-photo-stat{grid-column:span 2;aspect-ratio:auto}
  .cv-paper{padding:20px}
  .cv-skills{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.tl-card,.btn{transition:none}}

/* Content column: same 1440px max (80px inset) as the homepage; the record itself caps at 800px. */
.cv-hero,.cv-stats,.cv-body{padding-left:max(var(--gutter),calc((100% - 1280px) / 2));padding-right:max(var(--gutter),calc((100% - 1280px) / 2))}
.cv-record{max-width:800px}

/* Nov 2026: long words (e.g. "mycoremediation") wrap inside timeline cards. */
.tl-head{overflow-wrap:break-word;hyphens:auto}
