:root {
  --paper: #f4f0e7;
  --paper-light: #fbfaf6;
  --ink: #17221f;
  --muted: #5f6b66;
  --green: #173f37;
  --green-light: #dbe9e1;
  --rust: #ad552f;
  --blue: #335e78;
  --gold: #b3832e;
  --line: rgba(23, 34, 31, 0.18);
  --shadow: 0 24px 70px rgba(36, 45, 40, 0.11);
  --sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --serif: Lora, Iowan Old Style, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background: rgba(244, 240, 231, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 3rem));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.wordmark span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.95rem;
}
nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}
nav a:hover { color: var(--ink); }
nav a.nav-active { color: var(--green); font-weight: 700; }

.hero {
  width: min(1180px, calc(100% - 3rem));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 5vw;
  align-items: center;
  padding: 6rem 0 7rem;
}
.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--rust);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.1; }
h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}
h1 { max-width: 880px; font-size: clamp(3.5rem, 5.4vw, 5.2rem); }
h2 { font-size: clamp(2.7rem, 5vw, 4.7rem); }
.hero-intro {
  max-width: 690px;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin: 1.8rem 0 0; }
.hero-proof div { padding-top: .8rem; border-top: 1px solid var(--line); }
.hero-proof dt { margin-bottom: .3rem; color: var(--rust); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-proof dd { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: white; }
.button.secondary { background: transparent; }

.hero-profile { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 4vw, 3.2rem); border: 1px solid var(--green); background: var(--green); color: white; }
.profile-photo { width: 72px; height: 72px; margin: 0 0 1.5rem; border: 2px solid rgba(255,255,255,.2); border-radius: 50%; object-fit: cover; }
.hero-profile > p { margin: 0 0 2.2rem; color: #e5a27c; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-profile dl { margin: 0; border-top: 1px solid rgba(255,255,255,.24); }
.hero-profile dl div { padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.24); }
.hero-profile dt { color: #9db2aa; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-profile dd { margin: .35rem 0 0; color: #e8efec; font-family: var(--serif); font-size: 1.05rem; line-height: 1.35; }

.opportunity { display: grid; grid-template-columns: 1.05fr 1fr auto; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: 3.2rem max(1.5rem, calc((100% - 1180px) / 2)); border-block: 1px solid var(--line); background: #e8e2d6; }
.opportunity .eyebrow { margin-bottom: .6rem; }
.opportunity h2 { max-width: 520px; font-size: clamp(2rem, 3vw, 3rem); }
.opportunity > p { max-width: 560px; margin: 0; color: var(--muted); font-size: .92rem; }
.opportunity .button { white-space: nowrap; }

.section { padding: 7rem max(1.5rem, calc((100% - 1180px) / 2)); }
#work { background: var(--paper-light); }
.role-fit { padding-top: 6rem; background: var(--paper); color: var(--ink); }
.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}
.section-heading > p { max-width: 580px; margin: 0 0 .4rem; color: var(--muted); }
.role-fit .section-heading > p { color: var(--muted); }
.role-fit .eyebrow { color: var(--rust); }
.compact-heading { margin-bottom: 3rem; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.role-card { min-height: 280px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.role-card h3 { margin: .4rem 0 .8rem; font-family: var(--serif); font-size: 1.65rem; font-weight: 500; }
.role-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.readiness-strip { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; align-items: center; margin-top: 2.5rem; color: var(--muted); font-size: .75rem; }
.readiness-strip strong { color: var(--ink); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.readiness-strip span::before { content: "✓"; margin-right: .45rem; color: var(--rust); }

.feature-grid { display: grid; gap: 2rem; }
.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  min-height: 430px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feature-card-reverse .project-image { order: 2; }
.project-image { display: block; min-height: 100%; overflow: hidden; background: #e6e8e5; }
.project-image img { width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform 350ms ease; }
.project-image:hover img { transform: scale(1.012); }
.project-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }
.project-topline { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.project-copy h3, .project-card h3 { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3rem); font-weight: 500; letter-spacing: -.025em; }
.project-copy h3 a, .project-card h3 a { text-decoration: none; }
.project-copy h3 a:hover, .project-card h3 a:hover { text-decoration: underline; }
.project-copy p, .project-card p { color: var(--muted); }
.project-copy .project-proof { margin: 1.15rem 0 0; padding-left: 1rem; border-left: 3px solid var(--green); color: #45534d; font-size: .82rem; line-height: 1.55; }
.project-proof strong { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.tags li { padding: .28rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .68rem; font-weight: 700; }
.flagship-card { border: 2px solid var(--green); }
.cracktrader-panel { display: flex; min-height: 100%; padding: clamp(2rem, 5vw, 4rem); flex-direction: column; justify-content: center; background: #0b0f0d; color: #e8ede9; text-decoration: none; }
.ct-label { margin-bottom: 1.5rem; color: #3ecf82; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cracktrader-panel > strong { color: white; font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.03; }
.ct-path { margin-top: 2rem; padding-block: .75rem; border-block: 1px solid rgba(255,255,255,.12); color: #7a8f82; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .62rem; }
.ct-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 1.2rem; background: rgba(255,255,255,.12); }
.ct-modes b { padding: .65rem .35rem; background: #111916; color: #aebcb5; text-align: center; font-size: .59rem; letter-spacing: .04em; }
.ct-evidence { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 1.2rem; background: rgba(255,255,255,.12); }
.ct-evidence i { padding: .75rem; background: #111916; color: #7a8f82; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .57rem; font-style: normal; }
.ct-evidence i b { display: block; margin-bottom: .15rem; color: #3ecf82; font-size: .9rem; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 5rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-card { position: relative; min-height: 390px; padding: clamp(2rem, 5vw, 3.4rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-light); }
.project-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 220ms ease; }
.project-card:hover::before { transform: scaleX(1); }
.project-card.rust { --accent: var(--rust); }
.project-card.blue { --accent: var(--blue); }
.project-card.gold { --accent: var(--gold); }
.project-card.green { --accent: var(--green); }
.project-kind { margin: 0 0 2.2rem; color: var(--accent) !important; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-card > p:not(.project-kind) { max-width: 500px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem; font-size: .78rem; font-weight: 700; }

.background { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(4rem, 9vw, 9rem); background: var(--green); color: white; }
.background .eyebrow { color: #e5a27c; }
.background-intro > p:not(.eyebrow) { max-width: 580px; color: #c5d2cd; }
.background-intro h2 { margin-bottom: 2rem; }
.background-link { margin-top: 2rem; color: white !important; font-size: .82rem; font-weight: 700; }
.timeline { border-top: 1px solid rgba(255,255,255,.25); }
.timeline-item { display: grid; grid-template-columns: 115px 1fr; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.timeline-date { color: #9db2aa; font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.timeline h3 { margin: 0 0 .25rem; font-size: 1rem; }
.timeline p { margin: 0; color: #bdccc6; font-size: .88rem; }
.highlight-item { padding-inline: 1rem; background: rgba(255,255,255,.055); }
.highlight-item h3 { color: #fff3ec; }
.timeline-present { border-bottom: 1px solid rgba(255,255,255,.25); }
.timeline-present summary { border-bottom: 0; cursor: pointer; list-style: none; }
.timeline-present summary::-webkit-details-marker { display: none; }
.timeline-present summary:hover h3 { color: #fff3ec; }
.timeline-present summary:focus-visible { outline-offset: -3px; }
.timeline-date em { display: inline-block; margin-top: .45rem; padding: .15rem .5rem; border: 1px solid rgba(107, 221, 179, .45); border-radius: 999px; color: #91dabb; font-size: .58rem; font-style: normal; letter-spacing: .04em; }
.summary-arrow { display: inline-block; margin-left: .45rem; color: #91dabb; font-size: .65rem; transition: transform 200ms ease; }
.timeline-present[open] .summary-arrow { transform: rotate(90deg); }
.timeline-project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding: .2rem 0 1.5rem; }
.timeline-project { display: block; padding: .9rem 1rem; border: 1px solid rgba(255,255,255,.18); color: inherit; text-decoration: none; transition: border-color 160ms ease, background-color 160ms ease; }
.timeline-project:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.055); }
.timeline-project > div { display: flex; gap: .5rem; align-items: center; }
.timeline-project strong { color: white; font-size: .82rem; }
.timeline-project time { margin-left: auto; color: #9db2aa; font-size: .62rem; }
.timeline-project p { margin: .5rem 0 .7rem; color: #bdccc6; font-size: .72rem; line-height: 1.45; }
.timeline-project ul { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.timeline-project li { padding: .12rem .4rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #bdccc6; font-size: .57rem; }
.project-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; }
.project-dot.teal { background: #1d9e75; }
.project-dot.blue-dot { background: #378add; }
.project-dot.amber { background: #d69a42; }
.project-dot.purple { background: #9b93ef; }
.project-dot.coral { background: #e87952; }
.project-dot.green-dot { background: #7eaf51; }

.contact { background: var(--rust); color: white; text-align: center; }
.contact .eyebrow { color: #ffddca; }
.contact h2 { max-width: 780px; margin: 0 auto; }
.contact > p:not(.eyebrow) { max-width: 680px; margin: 1.5rem auto 0; color: #ffddca; }
.contact .actions { justify-content: center; }
.button.light { border-color: white; background: white; color: var(--ink); }
.button.outline-light { border-color: white; color: white; }

footer { width: min(1180px, calc(100% - 3rem)); margin: 0 auto; padding: 2rem 0; display: flex; justify-content: space-between; gap: 2rem; color: var(--muted); font-size: .72rem; }

:focus-visible { outline: 3px solid #d27b52; outline-offset: 4px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 5rem; }
  .hero-profile { min-height: 420px; }
  .opportunity { grid-template-columns: 1fr 1fr; }
  .opportunity .button { justify-self: start; }
  .section-heading, .background { grid-template-columns: 1fr; }
  .section-heading { gap: 1.5rem; }
  .role-grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card-reverse .project-image { order: 0; }
  .project-image { aspect-ratio: 16 / 8.5; }
  .cracktrader-panel { min-height: 520px; }
  .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header-inner {
  	width: min(100% - 2rem, 1180px);
  	min-height: 72px;
  }
  .wordmark span:last-child { display: none; }
  nav { gap: .78rem; }
  nav a { font-size: .78rem; }
  .hero { width: calc(100% - 2rem); min-height: auto; padding: 4rem 0; }
  h1 { font-size: clamp(2.9rem, 12.5vw, 3.6rem); }
  .hero-proof { grid-template-columns: 1fr; gap: .8rem; }
  .hero-profile { min-height: auto; }
  .opportunity { grid-template-columns: 1fr; gap: 1.4rem; padding-block: 2.6rem; }
  .section { padding: 5rem 1rem; }
  .project-copy, .project-card { padding: 1.7rem; }
  .project-card { min-height: 340px; }
  .timeline-item { grid-template-columns: 1fr; gap: .35rem; }
  .timeline-project-grid { grid-template-columns: 1fr; }
  .timeline-date em { margin: 0 0 0 .4rem; }
  footer { width: calc(100% - 2rem); flex-direction: column; gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media print {
  .site-header, .hero-profile, .actions, .opportunity .button, footer { display: none; }
  body, #work, .background, .contact { background: white; color: black; }
  .hero, .section { width: 100%; min-height: auto; padding: 2rem 0; }
  .feature-card, .project-card { break-inside: avoid; box-shadow: none; }
  .project-image { display: none; }
}
