:root {
  color-scheme: light;
  --ink: #18231c;
  --deep: #16221b;
  --paper: #f4f4ee;
  --quiet: #515d53;
  --line: #cbd3c7;
  --lime: #d9f294;
  --display: Georgia, "Times New Roman", serif;
  --body: "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid #568128; outline-offset: 5px; }
.wrap { width: min(100% - 6rem, 75rem); margin-inline: auto; }
.skip { position: fixed; z-index: 4; top: .75rem; left: .75rem; transform: translateY(-200%); padding: .5rem 1rem; background: var(--lime); color: var(--deep); }
.skip:focus { transform: none; }
.mast, .hero, .contact, .footer { background: var(--deep); color: var(--paper); }
.mast { border-bottom: 1px solid #405044; }
.mast-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.mast-inner { min-height: 4.6rem; }
.wordmark { font: 700 1.55rem/1 var(--display); text-decoration: none; letter-spacing: -.07em; }
.wordmark span, h1 span { color: var(--lime); }
nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); align-items: center; }
nav a { color: #e2e8da; font-size: .95rem; text-decoration: none; }
nav a:hover, .footer a:hover { color: var(--lime); text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .62rem 1.18rem; border: 1px solid transparent; font-size: .93rem; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color .15s, color .15s; }
.button.small { min-height: 2.55rem; }
.button.primary { background: var(--lime); color: #192318; }
.button.primary:hover { background: #f0ffd1; }
.button.outline { border-color: #81927f; color: var(--paper); }
.button.outline:hover { background: var(--paper); color: var(--deep); }
.hero { padding-block: clamp(3.5rem, 7vw, 6.7rem) clamp(3.9rem, 7vw, 6.4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.eyebrow { color: var(--lime); font-size: .875rem; font-weight: 700; letter-spacing: .105em; text-transform: uppercase; }
h1 { margin: .65rem 0 1rem; font: 400 clamp(5.2rem, 10vw, 9.25rem)/.79 var(--display); letter-spacing: -.075em; }
.hero-role { margin: 1.5rem 0 .55rem; font-size: clamp(1.18rem, 2.2vw, 1.54rem); font-weight: 700; line-height: 1.25; }
.hero-intro { color: #d4ddd0; max-width: 29rem; }
.actions { margin-top: 1.45rem; display: flex; gap: .7rem; flex-wrap: wrap; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.31; object-fit: cover; background: #34483b; }
.hero-photo figcaption { color: #d1dccd; font-size: .81rem; margin-top: .55rem; text-align: right; }
.work { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.section-head { display: grid; grid-template-columns: 1fr minmax(14rem, 22rem); align-items: end; gap: 1.2rem; margin-bottom: 1.85rem; }
.section-head p, .case-body > p, .detail-body, .profile p { color: var(--quiet); }
h2 { font: 400 clamp(2.9rem, 6vw, 5rem)/.95 var(--display); letter-spacing: -.059em; }
.case { display: grid; grid-template-columns: minmax(11rem, 1fr) minmax(0, 2fr) minmax(8rem,.69fr); gap: clamp(1.15rem, 3.1vw, 3rem); border-top: 1px solid var(--line); padding: 1.85rem 0; }
.case:last-child { border-bottom: 1px solid var(--line); }
.case-meta { display: flex; flex-direction: column; line-height: 1.45; gap: .3rem; padding-top: .2rem; }
.case-meta span { font-size: .875rem; color: var(--quiet); }
.case-meta strong { font-size: 1rem; }
.case h3 { font: 400 clamp(1.63rem, 2.6vw, 2.34rem)/1.07 var(--display); letter-spacing: -.035em; margin-bottom: .5rem; }
.result { align-self: start; border-left: 1px solid var(--line); padding: .25rem 0 .15rem 1rem; }
.result strong { display: block; font: 400 2.55rem/1 var(--display); letter-spacing: -.06em; }
.result span { color: var(--quiet); display: block; font-size: .875rem; line-height: 1.4; margin-top: .32rem; }
details { margin-top: .7rem; }
summary { cursor: pointer; width: fit-content; font-size: .9rem; font-weight: 700; }
summary:hover, .text-link:hover, .detail-body a:hover { color: #416024; }
.detail-body { padding: .45rem 0 .1rem; }
.detail-body p + p { margin-top: .5rem; }
.profile { background: #e7ece1; padding-block: clamp(3rem, 6vw, 5.5rem); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2.25rem, 8vw, 8rem); }
.profile h2 { margin-bottom: 1.15rem; }
.profile p + p { margin-top: .65rem; }
.writing { padding: 1.35rem 1.55rem; border: 1px solid #b8c6b4; align-self: center; }
.writing h3 { font-size: .9rem; }
.writing .writing-title { margin-top: .7rem; color: var(--ink); font: 400 1.65rem/1.15 var(--display); letter-spacing: -.024em; }
.text-link { display: inline-block; margin-top: .8rem; font-size: .9rem; font-weight: 700; }
.contact { padding-block: clamp(3.2rem, 6vw, 5.2rem); }
.contact-grid { display: flex; gap: 1.6rem; align-items: end; justify-content: space-between; }
.contact p { color: #d4ddd0; margin-top: .85rem; }
.contact .actions { margin-top: 0; }
.footer { border-top: 1px solid #405044; }
.footer-inner { min-height: 3.65rem; color: #d4ddd0; font-size: .875rem; }
.resume-page { padding-block: 3.5rem; }
.resume { max-width: 48rem; }
.resume h1 { font-size: clamp(3.1rem, 8vw, 5.2rem); line-height: .94; margin: 0 0 .75rem; }
.resume h2 { font: 700 1.1rem/1.3 var(--body); letter-spacing: 0; margin-top: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: .25rem; }
.resume h3 { font-size: 1rem; margin-top: .9rem; }
.resume ul { margin: .28rem 0 .8rem; padding-left: 1.3rem; }
.resume .resume-meta { color: var(--quiet); }
.resume .button { background: var(--deep); color: var(--paper); margin-top: 1rem; }
@media (max-width: 56rem) {
  .wrap { width: min(100% - 3rem, 75rem); }
  .case { grid-template-columns: minmax(9rem,.9fr) minmax(0,1.65fr) minmax(7rem,.55fr); }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .mast-inner { min-height: 3.8rem; gap: .8rem; }
  nav { gap: .85rem; }
  .mast .button { padding-inline: .55rem; font-size: .83rem; }
  .hero { padding-top: 3rem; }
  .hero-grid, .section-head, .profile-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 1.75rem; }
  .hero-photo img { aspect-ratio: 1.48; }
  h1 { font-size: clamp(4.6rem, 17vw, 6.9rem); }
  .hero-role { margin-top: 1.2rem; }
  .section-head { gap: .72rem; }
  .case { grid-template-columns: 1fr; gap: .72rem; padding: 1.35rem 0; }
  .case-meta { gap: .14rem; }
  .result { display: flex; align-items: center; gap: .65rem; }
  .result strong { font-size: 1.9rem; }
  .result span { margin: 0; }
  .contact-grid { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 23rem) { .mast .button { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  @page { margin: .5in; }
  body { color: black; background: white; font-size: 10pt; line-height: 1.32; }
  .mast, .footer, .resume .button, .skip { display: none; }
  .resume-page { padding: 0; }
  .resume { width: auto; max-width: none; }
  .resume h1 { font-size: 29pt; margin-bottom: .33rem; }
  .resume h2 { margin-top: .68rem; }
  .resume h3 { margin-top: .5rem; }
  .resume h2, .resume h3 { break-after: avoid; }
  .resume ul { margin-bottom: .4rem; }
}
.resume .button[hidden] { display: none; }

/* Portfolio sections */
html { scroll-padding-top: 1.4rem; }
.intro, .writing-section { padding-block: clamp(3.5rem, 6.5vw, 6.5rem); }
.intro { border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2rem, 7vw, 7rem); }
.intro h2 { font-size: clamp(2.55rem, 5vw, 4.45rem); line-height: .98; }
.intro-accent { font-family: Baskerville, "Palatino Linotype", "Times New Roman", serif; font-style: italic; }
.section-label { margin-bottom: .6rem; color: var(--quiet); font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.intro-body > p { color: var(--quiet); }
.intro-body > p + p { margin-top: .65rem; }
.focus-list { margin: 1.4rem 0 0; }
.focus-list > div { display: grid; grid-template-columns: minmax(8rem, .72fr) 1.28fr; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.focus-list dt, .case-facts dt { font-weight: 700; }
.focus-list dd, .case-facts dd { margin: 0; color: var(--quiet); }
.work-index { display: flex; flex-wrap: wrap; gap: .5rem .65rem; margin: 0 0 1.2rem; }
nav.work-index a { border: 1px solid #718271; background: #e7ece1; color: var(--deep); padding: .4rem .75rem; font-weight: 700; text-decoration: none; }
nav.work-index a:hover { background: var(--deep); color: var(--paper); text-decoration: underline; }
nav.work-index a:focus-visible { outline: 3px solid #416024; outline-offset: 2px; }
.case { padding-block: clamp(1.5rem, 3.3vw, 2.8rem); }
.case .case-meta h3 { margin: 0; font: 700 1.13rem/1.2 var(--body); letter-spacing: -.025em; }
.case-body h4 { margin: 0 0 .55rem; font: 400 clamp(1.55rem, 2.55vw, 2.3rem)/1.1 var(--display); letter-spacing: -.036em; }
.case-facts { margin: 1.05rem 0 0; }
.case-facts div + div { margin-top: .7rem; }
.case-facts dt { font-size: .9rem; }
.case-facts dd { margin-top: .14rem; }
.background-grid, .writing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.background-grid article { border-top: 1px solid #b8c6b4; padding-top: .85rem; }
.background-grid h3, .writing h3 { font: 400 1.65rem/1.12 var(--display); letter-spacing: -.03em; margin-bottom: .55rem; }
.writing { align-self: stretch; }
.writing p:not(.section-label) { color: var(--quiet); }
.contact p { max-width: 40rem; }
@media (max-width: 55rem) {
  .mast nav { gap: .8rem; }
}
@media (max-width: 42rem) {
  .mast-inner { flex-wrap: wrap; gap: .35rem .8rem; padding-block: .6rem; }
  .mast-inner > nav { order: 3; flex-basis: 100%; justify-content: space-between; }
  .intro-grid, .background-grid, .writing-grid { grid-template-columns: 1fr; }
  .focus-list > div { gap: .6rem; }
  .work-index { gap: .45rem; }
}

.writing-profile { justify-self: end; }
.featured-writing { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: clamp(1rem, 3vw, 2.5rem); }
.featured-writing .writing { background: #e7ece1; }
@media (max-width: 42rem) {
  .writing-profile { justify-self: start; margin-top: 0; }
  .featured-writing { grid-template-columns: 1fr; }
}

.editorial-hero { padding-block: 1.4rem 2rem; }
.editorial-hero .hero-photo img { aspect-ratio: 3.15; object-position: center 53%; }
.identity-line { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem 1.5rem; flex-wrap: wrap; margin-top: 1.25rem; color: #d4ddd0; }
.identity-line p { font-size: .88rem; }
.editorial-hero h1 { margin: .75rem 0 1.45rem; font-size: clamp(3.8rem, 12.1vw, 10.1rem); line-height: .88; }
.hero-name { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1.4rem; margin-block: .75rem 1.45rem; }
.editorial-hero .hero-name h1 { margin: 0; font-size: clamp(2.75rem, 10vw, 10.1rem); }
.hero-portrait { display: block; width: clamp(4.25rem, 12vw, 9rem); height: auto; border-radius: 50%; border: 1px solid #d4ddd0; }
.practice-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid #536353; border-bottom: 1px solid #536353; }
.practice-index a { padding: .65rem .9rem; line-height: 1.35; }
.practice-index a:first-child { padding-left: 0; }
.practice-index a + a { border-left: 1px solid #536353; }
.mast .wordmark { letter-spacing: -.025em; }
.case-results { display: grid; align-content: start; gap: 1rem; }
.profile .writing-section { border-top: 1px solid #b8c6b4; margin-top: clamp(2rem, 5vw, 4rem); padding-block: clamp(1.8rem, 4vw, 3.4rem) 0; }
#writing-title { font: 400 clamp(2rem, 4vw, 3.3rem)/1 var(--display); letter-spacing: -.045em; }
.profile .writing { background: var(--paper); }
.profile .writing p + p { margin-top: 0; }
.contact .section-label { color: #d4ddd0; margin-top: 0; }
.contact h2 { max-width: 15ch; }
.contact-email { display: inline-block; margin-top: 1.35rem; color: var(--lime); font-size: clamp(1.08rem, 2vw, 1.45rem); }
.footer-inner { flex-wrap: wrap; padding-block: .7rem; }
.footer-inner nav { flex-wrap: wrap; }

@media (max-width: 42rem) {
  .mast-inner > nav { order: 0; flex-basis: auto; }
  .mast-inner { gap: .6rem 1rem; }
  .mast-inner nav { flex-wrap: wrap; }
  .editorial-hero .hero-photo img { aspect-ratio: 2.15; }
  .practice-index a { padding-inline: .5rem; }
  .footer-inner { gap: .5rem 1.2rem; }
}

.study-header { background: var(--deep); color: var(--paper); padding-block: clamp(2rem, 5vw, 4.8rem); }
.study-back { display: inline-block; margin-bottom: 1.5rem; color: #d4ddd0; }
.study-header h1 { max-width: 17ch; margin: .7rem 0 1rem; font-size: clamp(2.85rem, 7.5vw, 6rem); line-height: .95; letter-spacing: -.052em; }
.study-lede { max-width: 44rem; color: #d4ddd0; font-size: 1.1rem; line-height: 1.5; }
.study-section { padding-block: clamp(2.15rem, 5.5vw, 4.5rem); }
.study-section h2 { font-size: clamp(2.35rem, 4.6vw, 3.8rem); }
.study-metrics, .study-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 3.5rem; }
.study-metrics { margin: 1.35rem 0 0; }
.study-metrics > div, .study-scope > div { border-top: 1px solid var(--line); padding-top: .75rem; }
.study-metrics dt, .study-scope dt { font-weight: 700; }
.study-metrics dd, .study-scope dd { margin: .25rem 0 0; color: var(--quiet); }
.study-metrics strong { font: 400 clamp(2.5rem, 5.4vw, 4rem)/1 var(--display); letter-spacing: -.05em; color: var(--ink); }
.study-scope { display: grid; gap: .9rem; margin: 0; }
.study-reflection { background: #e7ece1; }
.study-reflection p + p { margin-top: .75rem; }
@media (max-width: 42rem) {
  .study-metrics, .study-split { grid-template-columns: minmax(0, 1fr); }
}

.editorial-hero .hero-photo { overflow: hidden; }
.practice-index a:hover,
.practice-index a:focus-visible { background-color: #27362b; }
.writing:focus-within { border-color: #536a53; }

@media (hover: hover) {
  .writing:hover { border-color: #536a53; }
}

@media (prefers-reduced-motion: no-preference) {
  .editorial-hero .hero-photo img {
    animation: masthead-image-in 850ms cubic-bezier(.2, .6, .25, 1) both;
  }
  .editorial-hero .identity-line,
  .editorial-hero .hero-name {
    animation: masthead-type-in 560ms cubic-bezier(.2, .6, .25, 1) both;
  }
  .editorial-hero .hero-name { animation-delay: 90ms; }
  .practice-index a,
  .work-index a { transition: background-color 180ms ease, color 180ms ease; }
  .writing { transition: border-color 200ms ease, transform 200ms ease; }

  @media (hover: hover) {
    .writing:hover { transform: translateY(-3px); }
  }

  @supports (animation-timeline: view()) {
    .cases .case,
    .background-grid > article,
    .writing-grid > article {
      animation: editorial-entry linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

@keyframes masthead-image-in {
  from { opacity: .78; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes masthead-type-in {
  from { opacity: .78; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes editorial-entry {
  from { opacity: .88; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
