@font-face {
  font-family: Raleway;
  src: url(/fonts/raleway.woff2) format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F4EFE6;
  --paper: #FBF8F3;
  --sand: #E6DCCB;
  --ink: #1E1D1B;
  --muted: #6F6A62;
  --gold: #B08D4A;       /* decoration only: lines, dots, borders */
  --gold-text: #8C6D33;  /* gold for text: large numbers */
  --muted-on-sand: #5E5A53;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Raleway, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.muted { color: var(--muted); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.nav-wrap { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.nav {
  display: flex; justify-content: flex-end; gap: 24px; padding: 20px 0;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.nav a { color: #fff; text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.nav a:hover { text-decoration: underline; }

.banner img {
  width: 100%;
  height: clamp(220px, 42vh, 460px);
  object-fit: cover;
  object-position: center 55%;
}

.hero-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: clamp(16px, 3vw, 32px);
}
.headshot {
  margin-top: -140px;
  border: 8px solid var(--cream);
  box-shadow: 0 18px 40px rgba(30, 29, 27, .12);
  background: var(--cream);
  position: relative;
}
.headshot img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.name {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 12px;
}
.tagline { font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; margin-bottom: 8px; }
.intro { padding-top: 36px; }
.lede { color: var(--muted); max-width: 52ch; margin-bottom: 20px; }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  text-decoration: none;
}
.button:hover { background: var(--ink); color: var(--cream); }


/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6vw, 72px) 0; }
.section-sand { background: var(--sand); --muted: var(--muted-on-sand); }
.section-title {
  display: flex; align-items: center; gap: 16px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.section-title::before { content: ''; width: 32px; height: 1px; background: var(--gold); flex: none; }

/* Strengths */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 4px;
  padding: 28px;
}
.card-n { display: block; font-size: 28px; font-weight: 300; color: var(--gold-text); line-height: 1; margin-bottom: 16px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 16px; }
.aside { margin-top: 32px; font-size: clamp(19px, 2.4vw, 24px); font-weight: 300; max-width: 40ch; }

/* Experience */
.company { border-top: 1px solid var(--sand); padding: 32px 0; display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.company-head h3 { font-size: 22px; font-weight: 700; }
.company-head h3 a { text-decoration: none; }
.company-head h3 a:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: 15px; }
.timeline { position: relative; display: grid; gap: 24px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--sand); }
.timeline li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-left: 32px; }
.timeline li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--gold);
}
.timeline li:first-child::before { background: var(--gold); }
.when { color: var(--muted); font-size: 14px; font-weight: 600; padding-top: 2px; }
.timeline h4 { font-size: 17px; font-weight: 700; }
.timeline p, .company-small > p { color: var(--muted); font-size: 16px; }
.company-small > p strong { color: var(--ink); }

/* Roots */
.quote { font-size: clamp(22px, 3vw, 30px); font-weight: 300; line-height: 1.4; max-width: 30ch; margin-bottom: 48px; }
.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.path li { position: relative; padding-top: 24px; border-top: 1px solid var(--ink); }
.path li::after { content: '→'; position: absolute; right: 0; top: -14px; background: var(--sand); padding-left: 8px; color: var(--gold); font-size: 20px; }
.path li:last-child::after { content: '★'; font-size: 16px; top: -12px; }
.path h3 { font-size: 17px; font-weight: 700; margin: 4px 0 2px; }
.path p { color: var(--muted); font-size: 15px; }

/* AI + Languages */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.panel p { color: var(--muted); max-width: 46ch; }
.panel p + p { margin-top: 12px; }
.langs { display: grid; gap: 16px; }
.langs li { display: grid; grid-template-columns: 90px auto 1fr; gap: 16px; align-items: center; font-weight: 600; }
.level { display: inline-flex; gap: 6px; }
.level i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.level i.off { background: transparent; border: 1px solid var(--gold); }
.lvl { color: var(--muted); font-weight: 400; font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--sand); padding: 32px 0 40px; font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound .name { font-size: clamp(28px, 5vw, 44px); }
.notfound p { color: var(--muted); margin: 8px 0 24px; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .company { grid-template-columns: 1fr; gap: 16px; }
  .duo { grid-template-columns: 1fr; }
  /* Vertical timeline, same language as Experience: a line with gold dots. */
  .path { grid-template-columns: 1fr; gap: 0; }
  .path li { border-top: 0; border-left: 1px solid var(--gold); padding: 0 0 32px 28px; }
  .path li:last-child { padding-bottom: 0; border-left-color: transparent; }
  .path li::after, .path li:last-child::after {
    content: ''; right: auto; left: -6px; top: 4px; padding: 0;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--sand); border: 2px solid var(--gold);
  }
  .path li:last-child::after { background: var(--gold); }
  .path li .when { display: block; padding-top: 0; }
}
@media (max-width: 720px) {
  .nav-wrap { display: none; }
  .hero-body { grid-template-columns: 1fr; gap: 20px; text-align: center; justify-items: center; }
  .headshot { width: 200px; margin-top: -100px; }
  .intro { padding-top: 0; }
  .lede { margin-left: auto; margin-right: auto; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}

@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .nav-wrap { display: none; }
}

/* ---------- Motion (only for visitors who have not asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .headshot { transition: transform .4s ease, box-shadow .4s ease; }
  .headshot:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 24px 48px rgba(30, 29, 27, .16); }
  .button { transition: background .2s ease, color .2s ease; }
  .card { transition: transform .3s ease, border-color .3s ease; }
  .card:hover { transform: translateY(-3px); border-color: var(--gold); }
}
