:root {
  --ink: #171817;
  --muted: #626662;
  --paper: #f5f4ef;
  --white: #ffffff;
  --line: #d9d8d1;
  --accent: #d9e5d7;
  --accent-dark: #23442d;
  --max: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.65;
}
a { color: inherit; }

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
nav { display: flex; gap: 28px; }
nav a { font-size: .86rem; font-weight: 600; text-decoration: none; }
nav a:hover, .text-link:hover { opacity: .58; }

.section-shell { max-width: var(--max); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.hero {
  min-height: 480px;
  padding-top: 42px;
  padding-bottom: 58px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}
.hero-copy { grid-column: 2; grid-row: 1; }
.eyebrow, .section-kicker, .project-type {
  font-size: .73rem;
  letter-spacing: .15em;
  font-weight: 800;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(3.4rem, 6.3vw, 5rem);
  line-height: .95;
  letter-spacing: -.085em;
  white-space: nowrap;
}
.lead { max-width: 620px; font-size: 1.05rem; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; padding: 11px 16px; border: 1px solid var(--ink); text-decoration: none; font-size: .8rem; font-weight: 700; }
.button.primary { color: var(--white); background: var(--ink); }
.button:hover { transform: translateY(-2px); }
.portrait-wrap { width: 210px; grid-column: 1; grid-row: 1; justify-self: start; }
.portrait-frame { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.intro { padding-top: 52px; padding-bottom: 52px; border-top: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 220px 1fr; gap: 54px; align-items: start; }
.intro h2, .section-heading h2, .contact h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.06; letter-spacing: -.055em; }
.intro-grid div p:first-child { margin-top: 10px; }
.intro-grid div { color: var(--muted); font-size: .96rem; }

.section-block { padding-top: 84px; padding-bottom: 84px; }
.experience-card { margin-top: 30px; border-top: 1px solid var(--ink); padding-top: 24px; display: grid; grid-template-columns: 1fr 2fr; gap: 70px; }
.experience-meta { display: flex; gap: 30px; color: var(--muted); font-size: .83rem; }
.experience-meta p { margin-top: 0; }
.experience-photos { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.experience-photo { aspect-ratio: 4 / 3; overflow: hidden; background-color: var(--line); background-repeat: no-repeat; }
.photo-one,
.photo-two { background-image: url("codex-clipboard-9b03a7fe-79f3-4fc8-b9d8-78e5c2892b8d.png"); background-size: 193% auto; }
.photo-one { background-position: 5% center; }
.photo-two { background-size: 233% auto; background-position: right center; }
.photo-three,
.photo-four { background-image: url("codex-clipboard-2b38facc-f5d0-4789-a861-14102e6f7428.png"); background-size: 262% auto; }
.photo-three { background-position: left center; }
.photo-four { background-position: right center; }
.experience-body h2 { margin: 0; font-size: 2rem; letter-spacing: -.04em; }
.company { margin-top: 0; color: var(--muted); }
.experience-body ul { padding-left: 1.1rem; max-width: 720px; }
.experience-body li { margin-bottom: 8px; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 36px; }
.text-link { font-size: .84rem; font-weight: 700; text-underline-offset: 4px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-card {
  min-height: 280px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-card.featured { grid-column: span 2; min-height: 250px; background: var(--accent); border-color: transparent; }
.project-number { font-size: .8rem; font-weight: 800; }
.project-card h3 { margin: 6px 0 10px; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.045em; }
.project-card p { max-width: 700px; margin-top: 8px; margin-bottom: 8px; color: var(--muted); font-size: .9rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tag-row span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: .73rem; font-weight: 700; }
.featured .tag-row span { border-color: #9bad9a; }
.project-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.private-note { margin-bottom: 0; font-size: .78rem; }

.skills-section { border-top: 1px solid var(--line); }
.skills-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.skills-grid > div { padding: 25px 34px 25px 0; border-bottom: 1px solid var(--line); }
.skills-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.skills-grid > div:nth-child(even) { padding-left: 40px; }
.skills-grid span { color: var(--muted); font-size: .75rem; }
.skills-grid h3 { margin: 12px 0 4px; font-size: 1.2rem; }
.skills-grid p { margin: 0; color: var(--muted); }

.contact { margin-top: 24px; padding-top: 30px; padding-bottom: 30px; background: var(--ink); color: var(--white); }
.contact h2 { max-width: 700px; font-size: clamp(1.65rem, 2.8vw, 2.35rem); }
.contact-mail { display: inline-block; margin-top: 16px; color: #b8d9bf; font-size: clamp(1.15rem, 2.5vw, 2rem); font-weight: 700; text-underline-offset: 6px; }
.contact-foot { margin-top: 20px; display: flex; gap: 24px; color: #b7bab7; font-size: .76rem; }
footer { max-width: var(--max); margin: 0 auto; padding: 28px; display: flex; justify-content: flex-end; color: var(--muted); font-size: .76rem; }
footer p { display: none; }

@media (max-width: 760px) {
  nav { gap: 14px; }
  nav a:nth-child(2) { display: none; }
  .hero { min-height: auto; padding-top: 32px; padding-bottom: 50px; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; }
  .hero-copy { grid-column: 2; grid-row: 1; }
  .hero h1 { font-size: clamp(2.4rem, 7vw, 3.2rem); white-space: nowrap; }
  .portrait-wrap { width: 170px; grid-column: 1; grid-row: 1; justify-self: start; }
  .intro-grid, .experience-card { grid-template-columns: 1fr; gap: 28px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; }
  .project-card { min-height: 260px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skills-grid > div:nth-child(odd) { border-right: 0; }
  .skills-grid > div:nth-child(even) { padding-left: 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .contact-foot { flex-direction: column; gap: 8px; }
}

@media (max-width: 540px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .portrait-wrap { grid-column: 1; grid-row: 1; }
  .hero-copy { grid-column: 1; grid-row: 2; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}
