/* ==========================================================================
   Portfolio v2 — design system
   Grayscale-first, one typeface (Figtree 400/700), flat surfaces, no shadows.
   ========================================================================== */

:root {
  --ink: #111827;
  --body: #4B5563;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --bg: #F9FAFB;
  --bg-alt: #F3F4F6;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --white: #FFFFFF;
  --accent: #6366F1;        /* reserved; currently unused */

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 24px;

  --margin: clamp(20px, 3vw, 48px);
  --measure: 62ch;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Type scale ---------- */
h1, h2, h3, .display { color: var(--ink); font-weight: 700; }
.display { font-size: clamp(34px, 5vw, 58px); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
h3 { font-size: 20px; line-height: 1.3; }

.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: var(--measure); }
p { max-width: var(--measure); }
p + p { margin-top: 1em; }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.meta { font-size: 14px; color: var(--muted); }
.caption { font-size: 13px; color: var(--faint); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--margin);
  padding-right: var(--margin);
}
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { padding-bottom: clamp(32px, 4vw, 56px); }
.standfirst { padding: clamp(32px, 4vw, 48px) 0 0; }
.standfirst-text {
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  max-width: 880px;
}
.standfirst + .section-intro { padding-top: 24px; }
.para { padding: 28px 0; border-top: 1px solid var(--line); }
.para:last-child { border-bottom: 1px solid var(--line); }
.para .runin { display: block; color: var(--ink); font-weight: 700; font-size: 20px; line-height: 1.35; margin-bottom: 10px; }
.para p { max-width: 880px; }
.section-dark { background: var(--ink); color: var(--faint); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark .display { color: var(--white); }
.section-dark .eyebrow { color: var(--faint); }
.section-dark .lede { max-width: none; font-size: 19px; text-wrap: balance; }
.section-dark a.btn { background: var(--white); color: var(--ink); }
.section-dark a.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }

.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 40px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
@media (max-width: 600px) { .nowrap { white-space: normal; } }
.center p, .center .lede { margin-left: auto; margin-right: auto; }

hr, .rule { border: 0; height: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0.04em;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-links a[aria-current="page"] { color: var(--white); background: var(--ink); }

/* Contact row in the dark band */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.contact-item { display: inline-flex; align-items: center; gap: 8px; }
.contact-sep { color: var(--faint); font-weight: 400; }
.contact-link {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
}
.contact-link:hover { border-bottom-color: var(--white); }
.copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font: inherit;
}
.copy-btn:hover, .copy-btn:focus-visible { color: var(--white); border-color: rgba(255, 255, 255, 0.6); outline: none; }
.copy-btn.is-copied { color: var(--white); border-color: var(--white); }
.copy-feedback {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer a { color: var(--ink); font-weight: 700; }

/* ---------- Components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--ink); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.2;
  background: var(--line);
  color: var(--muted);
}
.pill-ink { background: var(--ink); color: var(--white); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.card {
  --card-pad: clamp(24px, 3vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--card-pad);
}
.card-lg { border-radius: var(--r-lg); }

.marker {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.placeholder {
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------- Home ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero-copy > * + * { margin-top: 24px; }
.hero-copy .display { margin-top: 16px; }
.portrait {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  object-fit: cover;
  overflow: hidden;
}

.logos { margin-top: 32px; }
.hero-solo { grid-template-columns: 1fr; }
.logos-center { text-align: center; }
.logos-note { margin: 0 auto; max-width: 62ch; color: var(--body); font-size: 16px; }
.logos-center .logo-row { justify-content: center; }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px clamp(28px, 4vw, 56px);
}
.logo-row img {
  height: 28px;
  width: auto;
}
.logo-row img.logo-cisco { height: 40px; }
.logo-row img.logo-duo { height: 26px; }
.logo-row img.logo-frog { height: 26px; }
.logo-row img.logo-mckinsey { height: 30px; }
.logo-row img.logo-1password { height: 24px; }
.logo-row img.logo-att { height: 30px; }
.logo-row img.logo-hp { height: 38px; }

/* ---------- Home: thesis + four lenses ---------- */
.thesis > * + * { margin-top: 24px; }
.thesis p, .thesis .lede { max-width: 880px; }
.thesis .display { margin-top: 16px; }
.lede-ink { color: var(--ink); font-weight: 700; }
.lens-list { border-top: 1px solid var(--line); }
.lens-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px clamp(24px, 4vw, 48px);
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--line);
}
.lens-row h2 { font-size: 21px; line-height: 1.3; }
.lens-row p { max-width: 60ch; }
.more { margin-top: clamp(40px, 6vw, 56px); }
.more > * + * { margin-top: 24px; }
.more .lede, .more p { max-width: 880px; }

/* ---------- Article (How I work) ---------- */
.article .page-head .lede, .article .practice p, .article .looks, .article .outcome, .article .more p, .article .more .lede { max-width: 880px; }
.article .page-head { margin-bottom: clamp(48px, 7vw, 80px); }
.lens-section { padding-top: clamp(32px, 5vw, 44px); border-top: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 64px); }
.lens-head { margin-bottom: clamp(28px, 4vw, 40px); }
.lens-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.practice { margin-bottom: clamp(40px, 5vw, 56px); }
.practice:last-child { margin-bottom: 0; }
.practice h3 { font-size: clamp(20px, 2vw, 24px); margin-bottom: 14px; }

.sub-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 12px;
}
.looks { padding-left: 20px; list-style: disc; margin-top: 18px; }
.looks li { margin-bottom: 8px; padding-left: 4px; }
.looks li::marker { color: var(--faint); }
.outcome {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--r-md);
}
.outcome .sub-label { margin-bottom: 6px; }
.outcome p { color: var(--ink); }

/* ---------- Work ---------- */
.page-head > * + * { margin-top: 16px; }
.case-list { display: grid; gap: 20px; }
.case { display: grid; gap: 16px; }
.case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}
.case-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.case-col {
  padding: 24px 24px 4px 0;
  border-right: 1px solid var(--line);
}
.case-col + .case-col { padding-left: 24px; }
.case-col:last-child { border-right: 0; padding-right: 0; }
.case-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 12px;
}
.case-col h3 { font-size: 18px; line-height: 1.35; margin-bottom: 14px; }
.case-col ul { padding-left: 18px; list-style: disc; font-size: 15px; line-height: 1.55; }
.case-col li { margin-bottom: 8px; }
.case-col li:last-child { margin-bottom: 0; }
.case-col li::marker { color: var(--faint); }

/* Featured case: dark cover band flush with the card edges */
.case-cover {
  background: var(--ink);
  color: var(--faint);
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 8px;
  padding: var(--card-pad);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
}
.case-cover-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44%;
  gap: clamp(24px, 4vw, 56px);
}
.case-cover-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 40px);
}
.case-cover h2 {
  color: var(--white);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.case-sub {
  display: block;
  color: var(--faint);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
  margin-top: 10px;
}
.logo-pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}
.logo-pill img { height: 22px; width: auto; }
.case-meta {
  margin: 0;
  width: 100%;
  max-width: 420px;
}
.case-meta div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  align-items: baseline;
}
.case-meta dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  padding-top: 3px;
}
.case-meta dd { margin: 0; color: var(--white); font-size: 16px; line-height: 1.45; }
/* Screenshot: bleeds off the top, right, and bottom edges of the band */
.case-shotwrap {
  position: relative;
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 0;
  min-height: 320px;
  overflow: hidden;
}
.case-shotwrap img {
  position: absolute;
  top: 48px;
  left: 0;
  width: calc(100% + 80px);
  max-width: none;
  height: calc(100% - 48px);
  object-fit: cover;
  object-position: left top;
  border-radius: var(--r-md) 0 0 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 0;
  border-bottom: 0;
}

/* ---------- Playbook ---------- */
.feed { max-width: 720px; }
.entry {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 20px;
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.entry:first-child { border-top: 0; padding-top: 0; }
.entry-body > * + * { margin-top: 12px; }
.entry-body h2 { font-size: 22px; }
.entry-body .meta { margin-top: 0; margin-bottom: 4px; }

/* ---------- About ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 76ch;
}
.mosaic .placeholder, .mosaic img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
}
.story { max-width: 76ch; }
.story p { max-width: none; font-size: 17px; }
.story p + p { margin-top: 1.2em; }
.two-col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 280px; }
  .portrait { justify-self: start; max-width: 320px; order: -1; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .lens-row { grid-template-columns: 1fr; gap: 10px; }
  .case-cols { grid-template-columns: 1fr; }
  .case-cover-top { grid-template-columns: 1fr; }
  .case-shotwrap { margin: 0; min-height: 0; }
  .case-shotwrap img { position: static; width: 100%; height: auto; border-radius: var(--r-md); border-right: 1px solid rgba(255, 255, 255, 0.18); }
  .case-col { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .case-col + .case-col { padding-left: 0; }
  .case-col:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { height: auto; padding: 14px 0; flex-wrap: wrap; }
  .nav-links a { padding: 6px 10px; }
  .entry { grid-template-columns: 1fr; gap: 10px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
}
