:root {
  color-scheme: light;
  --ink: #2f2119;
  --muted: #7f7167;
  --line: #e7d8c5;
  --paper: #fbf3e8;
  --panel: #fffaf3;
  --accent: #8a7b4f;
  --accent-2: #b87443;
  --deep: #4a3428;
  --sand: #e8cfae;
  --shadow: 0 22px 60px rgba(96, 71, 50, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 58px);
  background: rgba(251, 243, 232, 0.9);
  border-bottom: 1px solid rgba(74, 52, 40, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(18px, 6vw, 72px) 70px;
  background: var(--deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(74, 52, 40, 0.78), rgba(134, 96, 66, 0.44) 48%, rgba(74, 52, 40, 0.08)),
    linear-gradient(0deg, rgba(74, 52, 40, 0.58), rgba(74, 52, 40, 0.04) 44%);
}

.hero-content {
  position: relative;
  max-width: 820px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.business-hero {
  min-height: 82vh;
}

.card-size {
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.4rem, 12vw, 8rem);
  line-height: 0.9;
}

.compact-intro {
  padding-top: clamp(52px, 8vw, 92px);
  padding-bottom: clamp(52px, 8vw, 92px);
}

.lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: #fff;
  color: var(--deep);
}

.button.secondary {
  border: 1px solid rgba(244, 234, 220, 0.5);
  color: #fff;
}

.section {
  padding: clamp(58px, 9vw, 116px) clamp(18px, 6vw, 72px);
}

.intro,
.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

h2 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

h3 {
  margin: 0;
  line-height: 1.15;
}

p {
  margin: 0;
}

.intro-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.work-band {
  background: #efe0ce;
  color: var(--ink);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.wide {
  max-width: 980px;
}

.section-head p:not(.section-kicker) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.work-band .section-head p:not(.section-kicker) {
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.business-grid article {
  min-height: 250px;
}

.work-grid article {
  border: 1px solid rgba(138, 123, 79, 0.2);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 250, 243, 0.58);
}

.work-grid span {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--sand);
  font-weight: 900;
  text-transform: uppercase;
}

.work-grid h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.work-grid p {
  color: var(--muted);
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 24px);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.project-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  background: #d9ddd8;
}

.project-feature div {
  display: grid;
  gap: 14px;
}

.project-year,
.project-card p:first-child {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-feature h3 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.project-feature p:not(.project-year),
.project-card p:not(:first-child),
.soft-card p,
.timeline-item p {
  color: var(--muted);
}

.project-feature a,
.project-card a {
  width: fit-content;
  color: var(--accent);
  font-weight: 800;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.selected-proof {
  padding-top: clamp(52px, 8vw, 94px);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.proof-grid article {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.proof-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.proof-grid div {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.proof-grid h3 {
  font-size: 1.25rem;
}

.proof-grid p {
  color: var(--muted);
}

.education-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: #fff7ed;
}

.education-strip h2 {
  font-size: clamp(1.9rem, 4vw, 3.3rem);
}

.education-grid {
  display: grid;
  gap: 12px;
}

.education-grid article {
  display: grid;
  grid-template-columns: 112px minmax(150px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.education-grid span {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.education-grid h3 {
  font-size: 1.04rem;
}

.education-grid p {
  color: var(--muted);
}

.skills-strip {
  padding-top: clamp(36px, 6vw, 70px);
  padding-bottom: clamp(42px, 7vw, 78px);
  background: #f5eadc;
}

.business-skills {
  margin-top: 12px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(132px, 0.42fr) minmax(0, 0.58fr);
  gap: 18px;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 250, 243, 0.86);
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  border-radius: 6px;
  background: #d9ddd8;
}

.project-card div {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 6px 4px 6px 0;
}

.project-card h3 {
  font-size: 1.35rem;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline h3 {
  margin: 18px 0 4px;
  font-size: 1.15rem;
}

.timeline h3:first-child {
  margin-top: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.timeline-item span {
  color: var(--accent);
  font-weight: 900;
}

.skills-section {
  background: #f1e3d1;
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.skills-list span {
  border: 1px solid rgba(111, 125, 79, 0.32);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 252, 247, 0.72);
  color: var(--deep);
  font-weight: 800;
}

.soft-card {
  display: grid;
  gap: 12px;
  align-content: start;
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.soft-card h3:not(:first-child) {
  margin-top: 14px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  background: #d9bd98;
  color: var(--ink);
}

.contact .section-kicker {
  color: #825631;
}

.contact p:not(.section-kicker) {
  max-width: 720px;
  margin-top: 18px;
  color: #5d4a3d;
  font-size: 1.12rem;
}

.contact-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--deep);
  color: #fffaf3;
  font-weight: 900;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 6vw, 72px);
  color: var(--muted);
}

footer a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 920px) {
  .intro,
  .split-section,
  .project-feature,
  .skills-layout,
  .contact,
  .education-strip {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .project-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: minmax(120px, 0.36fr) minmax(0, 0.64fr);
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    gap: 10px 14px;
    font-size: 0.86rem;
  }

  .brand {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 88vh;
    padding-top: 128px;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .project-card,
  .timeline-item,
  .education-grid article {
    grid-template-columns: 1fr;
  }

  .project-card img {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
  }

  footer {
    flex-direction: column;
  }
}
