:root {
  --bg: #f2f3ee;
  --bg-tint: #e7ece3;
  --text: #16302a;
  --text-soft: #3f5c4f;
  --muted: #6d8578;
  --teal: #1c6b68;
  --teal-dark: #144f4d;
  --teal-tint: #dceae7;
  --rose: #c9687c;
  --rose-dark: #8f3a4b;
  --rose-tint: #f6e1e5;
  --border: #dfe3d9;
  --card-border: #d6ddd0;
  --footer-bg: #16302a;
  --footer-text: #f2f3ee;
  --footer-muted: #8fa79a;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

*:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
  border-radius: 4px;
}

.section-inner, .hero-inner, .roster, .footer-inner, .footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(242, 243, 238, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--text);
}
.wordmark:hover { color: var(--text); }

.site-header nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  align-items: center;
  font-weight: 500;
  font-size: 14px;
}

.site-header nav > a:not(.pill) { color: var(--text-soft); }
.site-header nav > a:not(.pill):hover { color: var(--teal); }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.site-header .pill { padding: 9px 18px; font-size: 14px; font-weight: 600; }

.pill-solid { background: var(--teal); color: var(--bg); }
.pill-solid:hover { background: var(--teal-dark); color: var(--bg); }

.pill-dark { background: var(--text); color: var(--bg); }
.pill-dark:hover { background: var(--teal); color: var(--bg); }

.pill-outline { border: 2px solid var(--text); color: var(--text); }
.pill-outline:hover { background: var(--rose-tint); border-color: var(--rose); color: var(--rose-dark); }

.pill-rose { background: var(--rose); color: var(--text); font-weight: 800; }
.pill-rose:hover { background: var(--rose-tint); color: var(--text); }

.pill-ghost { border: 2px solid var(--muted); color: var(--footer-text); }
.pill-ghost:hover { border-color: var(--teal-tint); background: rgba(220, 234, 231, .12); color: var(--footer-text); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.hero-copy { display: flex; flex-direction: column; gap: 24px; }

.eyebrow {
  align-self: flex-start;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--text);
}
.hero h1 span { color: var(--muted); }

.hero-lede {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
  color: var(--text-soft);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

.hero-inner-solo { grid-template-columns: 1fr; }
.hero-inner-solo .hero-copy { max-width: 720px; }

.roster {
  position: relative;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--muted);
}
.roster-label { font-weight: 800; color: var(--text); }

/* Sections */
.section { padding: clamp(52px, 7vw, 96px) clamp(20px, 5vw, 64px); scroll-margin-top: 4rem; }
.section-tint { background: var(--bg-tint); }

.section-inner h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--text);
}

.section-sub {
  margin: 12px 0 0;
  max-width: 38ch;
  font-size: 15px;
  color: var(--muted);
}

.section-sub-wide { max-width: 60ch; }

/* Work cards */
.cards-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(22, 48, 42, .05);
}
.work-card:hover { border-color: var(--teal); box-shadow: 0 8px 24px rgba(22, 48, 42, .09); }

.work-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 14px;
}

.work-card h3 {
  margin: 0;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--text);
}

.work-card p { margin: 0; font-size: 14.5px; color: var(--text-soft); }

/* About */
.about-copy { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.about-copy p { margin: 0; font-size: clamp(16px, 1.7vw, 18px); line-height: 1.6; color: #243f35; }
.about-copy p.muted { color: var(--text-soft); }

/* Resume */
.resume-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.role-list {
  margin-top: 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
}

.role-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 24px;
  align-items: baseline;
  padding: 22px clamp(20px, 3vw, 30px);
  border-bottom: 1px solid #eceee6;
}
.role-row-last { border-bottom: none; }

.role-row h3 {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--text);
}
.role-row p { margin: 0; font-size: 14.5px; color: var(--text-soft); }
.role-years { font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; }

.info-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.info-card { display: flex; flex-direction: column; gap: 11px; padding: 24px; border-radius: 22px; }
.info-card-teal { background: var(--teal-tint); }
.info-card-sage { background: var(--bg-tint); }
.info-card-rose { background: var(--rose-tint); }

.info-card h4 {
  margin: 0;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.info-card-teal h4 { color: var(--teal-dark); }
.info-card-sage h4 { color: var(--text-soft); }
.info-card-rose h4 { color: var(--rose-dark); }

.info-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text); }

/* Portfolio */
.case-study-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.case-study {
  padding: 28px clamp(20px, 3vw, 32px) 30px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--border);
}

.case-study-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 12px;
}

.case-study h3 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 21px);
  letter-spacing: -.015em;
  color: var(--text);
}

.case-study-meta { font-size: 13px; font-weight: 600; color: var(--muted); }

.case-study p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-soft); }

.case-study-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 18px;
}

.agent-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-steps li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-soft);
}

.agent-steps .work-num { flex-shrink: 0; }
.agent-steps strong { color: var(--text); }

/* Footer */
footer#contact {
  padding: clamp(52px, 7vw, 92px) clamp(20px, 5vw, 64px);
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: end;
}

.footer-copy { display: flex; flex-direction: column; gap: 16px; }
.footer-copy h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.footer-copy p { margin: 0; max-width: 40ch; font-size: 16.5px; line-height: 1.55; color: var(--footer-muted); }

.footer-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }

.footer-bottom {
  margin-top: clamp(36px, 6vw, 60px);
  padding-top: 20px;
  border-top: 1px solid rgba(242, 243, 238, .18);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-weight: 500;
  font-size: 13px;
  color: var(--footer-muted);
}

@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; row-gap: 10px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 12px; }

  .hero-inner { grid-template-columns: 1fr; }
}
