/* Warm charcoal, copper headlines, a clearer green for outcomes. */
:root {
  --bg: #14120f;
  --bg-2: #1c1914;
  --surface: #241f18;
  --line: #3a332b;
  --text: #f6f0e6;
  --muted: #b7ab9c;
  --copper: #e2a15a;
  --leaf: #7ddea8;
  --on-copper: #2a1604;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; background: var(--bg);
  scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .peek, .peek-toggle i, .peek-body { transition: none; }
}
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  min-height: 100%; overflow-x: hidden; }
body::before, body::after { content: ""; position: fixed; pointer-events: none; z-index: 0; border-radius: 50%; }
body::before { width: 48vw; height: 48vw; right: -14vw; top: -20vw;
  background: radial-gradient(circle, rgba(226, 161, 90, 0.16), transparent 68%); }
body::after { width: 42vw; height: 42vw; left: -16vw; bottom: -18vw;
  background: radial-gradient(circle, rgba(125, 222, 168, 0.12), transparent 70%); }
main, header, footer { position: relative; z-index: 1; }
a { color: inherit; }
button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -48px; background: var(--copper); color: var(--on-copper); padding: 8px 16px;
  font-weight: 600; z-index: 30; text-decoration: none; }
.skip:focus { top: 12px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 560; font-optical-sizing: auto; text-wrap: balance; letter-spacing: -0.03em; }
p { text-wrap: pretty; }
section[id] { scroll-margin-top: 80px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--bg);
  border-bottom: 1px solid transparent; transition: border-color 240ms ease; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; }
.mark { font-family: var(--font-display); font-weight: 560; font-style: italic; font-size: 20px; text-decoration: none;
  letter-spacing: -0.02em; white-space: nowrap; color: var(--text); }
.nav { display: flex; gap: 28px; }
.nav a, .nav-sheet a, .text-link { text-decoration: none; color: var(--muted); font-size: 15px; position: relative; }
.nav a::after, .text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--copper);
  transform: scaleX(0); transform-origin: left; transition: transform 280ms var(--ease-out); }
.nav-burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--text); }
.nav-burger .icon-close { display: none; }
.nav-burger[aria-expanded="true"] .icon-open { display: none; }
.nav-burger[aria-expanded="true"] .icon-close { display: block; }
.nav-sheet { border-top: 1px solid var(--line); background: var(--bg); }
.nav-sheet[hidden] { display: none; }
.nav-sheet nav { display: flex; flex-direction: column; padding: 8px var(--gutter) 16px; }
.nav-sheet a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.nav-sheet a:last-child { border-bottom: 0; }
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-burger { display: inline-flex; }
}

/* Hero */
.hero { padding: 36px 0 8px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: start;
  grid-template-areas: "kicker photo" "title photo" "lead photo" "proof photo"; }
.kicker { grid-area: kicker; font-family: var(--font-mono); font-size: 12px; color: var(--copper); letter-spacing: 0.04em; }
.hero h1 { grid-area: title; font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 500; line-height: 0.96; max-width: 11ch; margin-top: 12px; }
.hl { font-style: italic; font-weight: 500; color: var(--copper); }
.lead { grid-area: lead; margin-top: 20px; max-width: 42ch; color: #efe6d8; font-size: 17px; }
.proof { grid-area: proof; margin-top: 18px; max-width: 46ch; color: var(--muted); font-size: 14px; }
.portrait { grid-area: photo; margin: 4px 0 0; justify-self: end; padding: 8px; border: 1px solid rgba(226, 161, 90, 0.55); background: var(--bg-2); }
.portrait img { display: block; width: 210px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 16%; }
.brand { width: 14px; height: 14px; flex: none; display: inline-block; vertical-align: -2px; object-fit: contain; }
.lead .brand { margin: 0 1px; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "kicker" "title" "photo" "lead" "proof"; row-gap: 0; }
  .portrait { justify-self: start; margin-top: 20px; }
  .portrait img { width: min(200px, 64vw); }
  .hero h1 { max-width: 14ch; }
}

/* Work */
.section { padding-block: 56px; }
.section h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; font-style: italic; line-height: 1.05; color: #f8f1e6; }
.section h2::after { content: ""; display: block; width: 52px; height: 2px; margin-top: 12px; background: var(--copper); transform-origin: left; }
.jobs { margin-top: 8px; }
.job { display: grid; grid-template-columns: minmax(190px, 250px) minmax(0, 1fr); gap: 8px 40px; padding: 26px 0;
  border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; }
.job h3 { font-size: clamp(1.55rem, 2.2vw, 2rem); font-weight: 520; line-height: 1.05; display: inline-block; position: relative; }
.job h3::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--copper);
  transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-out); }
.for { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 28ch; }
.pair { display: grid; gap: 8px; }
.pair div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 16px; align-items: baseline; }
.pair dt { font-family: var(--font-mono); font-size: 12px; color: var(--copper); }
.pair .out dt { color: var(--leaf); }
.pair dd { color: #efe6d8; font-size: 16px; }
.tools { position: relative; list-style: none; height: 78px; margin-top: 18px; }
.tools li { position: absolute; width: 40px; height: 40px; display: grid; place-items: center; }
.tools img { width: 30px; height: 30px; display: block; }
.tools li:nth-child(1) { left: 0; top: 22px; }
.tools li:nth-child(2) { left: 58px; top: 2px; }
.tools li:nth-child(3) { left: 116px; top: 28px; }
.tools li:nth-child(4) { left: 174px; top: 6px; }
.tools li:nth-child(5) { left: 232px; top: 30px; }
.tools li:nth-child(6) { left: 290px; top: 4px; }
.tools span { position: absolute; left: 50%; top: calc(100% + 2px); transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; color: var(--text); white-space: nowrap; opacity: 0;
  transition: opacity 160ms ease; pointer-events: none; }
@media (max-width: 720px) {
  .job { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
  .pair div { grid-template-columns: 64px minmax(0, 1fr); }
  .tools { height: 118px; }
  .tools li:nth-child(5) { left: 12px; top: 68px; }
  .tools li:nth-child(6) { left: 72px; top: 74px; }
}

.peek { grid-column: 1 / -1; max-height: 78px; overflow: hidden; margin-top: 4px;
  border: 1px solid var(--line); border-left: 2px solid var(--copper); background: #1b1814;
  transition: max-height 420ms var(--ease-out); }
.peek-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 44px;
  padding: 0 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--copper); text-align: left; }
.peek-toggle i { width: 7px; height: 7px; border-right: 1.5px solid var(--copper); border-bottom: 1.5px solid var(--copper);
  transform: rotate(45deg) translateY(-2px); transition: transform 320ms var(--ease-out); }
.peek-body { padding: 0 16px 16px; display: grid; gap: 14px; }
.what { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.2rem; line-height: 1.25; color: #f8f1e6; max-width: 46ch; }
.how { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 18px; }
.how li { border-top: 1px solid var(--line); padding-top: 8px; }
.how b { display: block; margin-bottom: 4px; font-family: var(--font-body); font-size: 13px; font-weight: 650; color: var(--copper); }
.how span { display: block; font-size: 14px; line-height: 1.45; color: #efe6d8; }
.how code, .note code { font-family: var(--font-mono); font-size: 12px; color: var(--leaf); }
.note { padding: 10px 12px; background: rgba(226, 161, 90, 0.08); color: #efe6d8; font-size: 14px; line-height: 1.5; }
.note b { color: var(--copper); font-weight: 650; }
.job.is-open .peek { max-height: 640px; }
.job.is-open .peek-toggle i { transform: rotate(225deg) translateY(0); }

.more { margin-top: 36px; }
.more h3 { font-size: clamp(1.7rem, 2.4vw, 2.15rem); font-weight: 500; font-style: italic; }
.more h3::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 10px; background: var(--copper); }
.also { list-style: none; margin-top: 8px; }
.also li { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 4px 28px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--line); }
.also b { font-family: var(--font-display); font-style: italic; font-weight: 520; font-size: 18px; letter-spacing: -0.02em; }
.also span { color: #efe6d8; font-size: 15px; }
@media (max-width: 640px) { .also li { grid-template-columns: 1fr; gap: 2px; } }

/* Background */
.bg-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px 64px; }
.bg-intro p { color: #efe6d8; margin-top: 14px; max-width: 36ch; }
.timeline { list-style: none; position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line); transform-origin: top; }
.timeline li { position: relative; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 7px; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--copper); }
.timeline li.now::before { background: var(--leaf); border-color: var(--leaf); }
.when { font-family: var(--font-mono); font-size: 12px; color: var(--copper); }
.timeline h3 { font-family: var(--font-body); font-style: normal; font-weight: 650; font-size: 16px; letter-spacing: 0; margin-top: 2px; }
.timeline .org { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.edu { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: #efe6d8; font-size: 15px; }
.edu b { color: var(--text); }
@media (max-width: 760px) { .bg-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { padding-block: 64px 72px; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.intro { margin-top: 12px; max-width: 46ch; color: #efe6d8; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.email-text { font-family: var(--font-mono); font-size: 14px; }
.copy-status { font-size: 14px; color: var(--leaf); min-height: 20px; }
.where { margin-top: 16px; color: var(--muted); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.btn-primary { background: var(--copper); color: var(--on-copper); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.site-foot { padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--text); }
  .nav a:hover::after, .text-link:hover::after { transform: scaleX(1); }
  .text-link:hover { color: var(--text); }
  .btn-primary:hover { background: #f0b56e; }
  .btn-ghost:hover { border-color: var(--copper); }
  .job:hover h3::after, .job:focus-within h3::after { transform: scaleX(1); }
  .job:hover .peek, .job:focus-within .peek { max-height: 640px; }
  .job:hover .peek-toggle i, .job:focus-within .peek-toggle i { transform: rotate(225deg) translateY(0); }
  .tools li:hover span, .tools li:focus-within span { opacity: 1; }
  .nav-sheet a:hover { color: var(--text); }
}

@media (prefers-reduced-motion: no-preference) {
  body::before { animation: drift 26s ease-in-out infinite; }
  body::after { animation: drift 32s ease-in-out infinite reverse; }
  .hero h1 { animation: rise 700ms var(--ease-out) both; }
  .lead { animation: rise 700ms var(--ease-out) 90ms both; }
  .proof { animation: rise 700ms var(--ease-out) 160ms both; }
  .portrait { animation: rise 800ms var(--ease-out) 40ms both; }
  .portrait img { animation: bob 7.5s ease-in-out 1s infinite; }
  .section h2.in::after, .more h3.in::after { animation: draw 700ms var(--ease-out) both; }
  .reveal.in { animation: rise 620ms var(--ease-out) both; }
  .job.in .tools { animation: fade 500ms var(--ease-out) both; }
  .tools li { animation: bob 5.6s ease-in-out infinite; }
  .tools li:nth-child(2) { animation-duration: 6.4s; animation-delay: -1.1s; }
  .tools li:nth-child(3) { animation-duration: 4.8s; animation-delay: -2s; }
  .tools li:nth-child(4) { animation-duration: 7s; animation-delay: -0.6s; }
  .tools li:nth-child(5) { animation-duration: 5.2s; animation-delay: -2.6s; }
  .tools li:nth-child(6) { animation-duration: 6.8s; animation-delay: -1.6s; }
  .tools li:nth-child(odd) { --dx: 5px; --rot: 6deg; }
  .tools li:nth-child(even) { --dx: -5px; --rot: -6deg; }
  .tl-wrap.in .timeline::before { animation: drawY 1200ms var(--ease-in-out) both; }
  .peek-body { transform: translateY(-10px); transition: transform 420ms var(--ease-out); }
  .job:hover .peek-body, .job:focus-within .peek-body, .job.is-open .peek-body { transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(var(--dx, 4px), -9px, 0) rotate(var(--rot, 4deg)); } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-7vw, 9vh, 0); } }
