:root {
  --paper: #FFFFFF;
  --ink: #181816;
  --muted: #706e67;
  --line: #c8c4bb;
  --accent: #a9412d;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

/* Homepage index: a short visual threshold before the full project readers. */
.editorial-composition { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3vw 1.4vw; }
.editorial-feature { grid-column: 1 / span 8; }
.editorial-feature .project-chapter { display: block; }
.editorial-feature .chapter-image { height: min(48vw, 650px); }
.editorial-pair { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 8vw; padding-top: 9vw; }
.editorial-pair .project-chapter { display: block; }
.editorial-pair .chapter-image { height: min(28vw, 370px); }
.editorial-list { grid-column: 2 / span 10; margin-top: 6vw; border-top: 1px solid var(--line); }
.project-index-row { display: grid; grid-template-columns: 45px 1fr auto 20px; gap: 18px; align-items: baseline; border-bottom: 1px solid var(--line); padding: 17px 0; cursor: pointer; }
.project-index-row h3 { margin: 0; font: 400 clamp(19px, 2vw, 27px) var(--serif); overflow-wrap: anywhere; }
.project-index-row span { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.project-index-row b { color: var(--accent); font: 17px var(--sans); font-weight: 400; text-align: right; }
.project-index-row:hover h3, .project-index-row:focus-visible h3 { color: var(--accent); }
.work-category-visual .editorial-feature { grid-column: 2 / span 6; }
.work-category-visual .editorial-pair { grid-column: 9 / span 4; }
.work-category-visual .editorial-list { grid-column: 1 / span 12; }
.work-category-visual .editorial-feature .chapter-image { height: min(36vw, 480px); }
.work-category-visual .editorial-pair .chapter-image { height: min(24vw, 300px); }
.work-category-visual { padding-bottom: 2vw; }

@media (max-width: 700px) {
  .editorial-composition { display: block; }
  .editorial-feature, .editorial-pair, .editorial-list,
  .work-category-visual .editorial-feature, .work-category-visual .editorial-pair, .work-category-visual .editorial-list { margin: 0; }
  .editorial-feature .chapter-image, .work-category-visual .editorial-feature .chapter-image { height: 90vw; max-height: 470px; }
  .editorial-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; padding-top: 10vw; }
  .editorial-pair .chapter-image, .work-category-visual .editorial-pair .chapter-image { height: 43vw; max-height: 220px; }
  .editorial-pair .chapter-caption { display: block; padding-top: 10px; }
  .editorial-pair .chapter-caption .chapter-number { display: inline-block; margin-right: 8px; }
  .editorial-pair .chapter-caption h3 { display: inline; font-size: 16px; }
  .editorial-pair .chapter-caption .chapter-type { display: none; }
  .editorial-list { margin-top: 13vw; }
  .project-index-row { grid-template-columns: 28px 1fr 16px; gap: 10px; padding: 14px 0; }
  .project-index-row h3 { font-size: 18px; }
  .project-index-row span { display: none; }
}

/* Homepage: one consistent table-of-contents row for every project. */
#work-sections .work-category { border-top: 1px solid var(--line); padding-top: 3.5vw; }
#work-sections .work-category + .work-category { margin-top: 9vw; }
#work-sections .category-heading { display: block; margin: 0 0 2.2vw; }
#work-sections .category-heading .label { margin: 0; color: var(--accent); }
#work-sections .project-index { border-top: 1px solid var(--line); }
#work-sections .project-index-row { display: grid; grid-template-columns: 78px 1fr 28px; gap: 2vw; align-items: baseline; border-bottom: 1px solid var(--line); padding: 18px 0; cursor: pointer; }
#work-sections .project-index-row h3 { margin: 0; font: 400 clamp(22px, 3.1vw, 48px)/1.05 var(--serif); letter-spacing: -.035em; overflow-wrap: anywhere; }
#work-sections .project-index-row .index-row-number { color: var(--accent); font: 11px var(--mono); letter-spacing: .08em; }
#work-sections .project-index-row b { color: var(--accent); font: 18px var(--sans); font-weight: 400; text-align: right; transition: transform .3s ease; }
#work-sections .project-index-row:hover h3, #work-sections .project-index-row:focus-visible h3 { color: var(--accent); }
#work-sections .project-index-row:hover b, #work-sections .project-index-row:focus-visible b { transform: translate(4px, -2px); }

@media (max-width: 700px) {
  #work-sections .work-category { padding-top: 9vw; }
  #work-sections .work-category + .work-category { margin-top: 16vw; }
  #work-sections .category-heading { margin-bottom: 7vw; }
  #work-sections .project-index-row { grid-template-columns: 38px 1fr 18px; gap: 12px; padding: 15px 0; }
  #work-sections .project-index-row h3 { font-size: 21px; }
  #work-sections .project-index-row b { font-size: 16px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); overflow-x: hidden; }
body.reader-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p { margin-top: 0; }

.masthead { height: 74px; padding: 0 4.7vw; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; font-size: 11px; }
.mark { font: 14px var(--mono); letter-spacing: .04em; }
.masthead-context, .masthead nav { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.masthead-context { margin: 0; color: var(--muted); text-align: center; }
.masthead nav { display: flex; justify-content: flex-end; gap: 26px; }
.masthead nav a { border-bottom: 1px solid transparent; padding-bottom: 3px; }
.masthead nav a:hover, .masthead nav a:focus-visible { border-color: var(--ink); }

.opening { min-height: calc(100vh - 74px); padding: 5.5vw 4.7vw 6vw; display: flex; flex-direction: column; justify-content: space-between; }
.opening-kicker { display: flex; justify-content: space-between; color: var(--accent); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.opening h1 { max-width: 1000px; margin: 10vh 0 6vh; font: 400 clamp(72px, 13.4vw, 210px)/.87 var(--serif); letter-spacing: -.065em; }
.opening h1 em, .section-intro h2 em, .research h2 em, .about h2 em { color: var(--accent); font-style: italic; }
.opening-bottom { display: grid; grid-template-columns: 4fr 2fr; gap: 8vw; align-items: end; }
.opening-statement { max-width: 560px; margin: 0; font-size: clamp(18px, 2vw, 27px); line-height: 1.25; }
.index-link { width: max-content; border-bottom: 1px solid var(--ink); padding-bottom: 9px; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.index-link span { margin-left: 20px; color: var(--accent); font-size: 17px; }

.work { padding: 10vw 4.7vw 13vw; }
.section-intro { display: grid; grid-template-columns: 1fr 4fr 2fr; gap: 3vw; align-items: start; margin-bottom: 8vw; }
.section-number, .label { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.section-number { margin: 0; color: var(--accent); }
.label { margin: 0 0 15px; }
.section-intro h2 { margin: 0; font: 400 clamp(42px, 6.5vw, 92px)/.95 var(--serif); letter-spacing: -.055em; }
.section-note { max-width: 220px; margin: 0; color: var(--muted); font-size: 12px; justify-self: end; }
.work-category { border-top: 1px solid var(--line); padding-top: 4vw; }
.work-category + .work-category { margin-top: 13vw; }
.category-heading { display: grid; grid-template-columns: 1fr 4fr 2fr; gap: 3vw; margin-bottom: 5vw; }
.category-heading .label { grid-column: 2; margin: 0; color: var(--accent); }
.category-heading > p:last-child { grid-column: 3; max-width: 220px; margin: 0; color: var(--muted); font-size: 12px; }
.project-sequence { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.4vw; row-gap: 12vw; }
.project-chapter { grid-column: span 7; cursor: pointer; }
.project-chapter:nth-child(2) { grid-column: 8 / span 5; margin-top: 12vw; }
.project-chapter:nth-child(3) { grid-column: 2 / span 6; }
.project-chapter:nth-child(4) { grid-column: 8 / span 5; margin-top: 7vw; }
.project-chapter:nth-child(5) { grid-column: 1 / span 8; }
.project-chapter:nth-child(6) { grid-column: 7 / span 6; margin-top: 5vw; }
.chapter-image { height: min(57vw, 700px); overflow: hidden; background: #d9d6ce; }
.project-chapter:nth-child(2) .chapter-image, .project-chapter:nth-child(4) .chapter-image, .project-chapter:nth-child(6) .chapter-image { height: min(39vw, 500px); }
.chapter-image img { filter: saturate(.92); transition: transform .8s cubic-bezier(.2, .65, .2, 1); }
.project-chapter:hover .chapter-image img, .project-chapter:focus-visible .chapter-image img { transform: scale(1.025); }
.chapter-caption { display: grid; grid-template-columns: 45px 1fr auto; gap: 12px; align-items: baseline; border-bottom: 1px solid var(--line); padding: 13px 0 15px; font-size: 12px; }
.chapter-caption .chapter-number, .chapter-caption .chapter-type { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.chapter-caption h3 { margin: 0; font: 400 20px var(--serif); overflow-wrap: anywhere; }
.chapter-caption .chapter-type { text-align: right; }

.research, .about { border-top: 1px solid var(--line); padding: 7vw 4.7vw 12vw; }
.research-intro { margin-bottom: 8vw; }
.research-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.research h2, .about h2 { margin: 0; font: 400 clamp(48px, 7.7vw, 112px)/.93 var(--serif); letter-spacing: -.06em; }
.research-copy { max-width: 470px; font-size: 18px; line-height: 1.42; }
.research-copy p { margin-bottom: 26px; }
.about { display: grid; grid-template-columns: 1fr 4fr 2fr; gap: 3vw; background: #dedbd3; }
.about .section-intro { display: contents; }
.about .section-number { grid-column: 1; }
.about .label { grid-column: 2; }
.about .section-note { grid-column: 3; }
.about-body { grid-column: 2 / span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; margin-top: 6vw; }
.about-body h2 { grid-column: 1 / -1; margin-bottom: 3vw; }
.about-body p { max-width: 390px; font-size: 17px; }
.about-body p:last-child { grid-column: 2; }
.footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 22px 4.7vw; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }

.project-reader { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; overflow-y: auto; background: var(--paper); color: var(--ink); }
.project-reader::backdrop { background: var(--paper); }
.reader-close { position: fixed; top: 25px; right: 4.7vw; z-index: 3; border: 0; border-bottom: 1px solid var(--ink); padding: 0 0 7px; background: transparent; color: var(--ink); cursor: pointer; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.reader-close span { margin-left: 14px; color: var(--accent); font-size: 17px; }
.reader-head { display: grid; grid-template-columns: 1fr 2fr 1.5fr; gap: 3vw; align-items: end; border-bottom: 1px solid var(--line); padding: 12vw 4.7vw 7vw; }
.reader-head h2 { margin: 0; font: 400 clamp(46px, 8vw, 116px)/.92 var(--serif); letter-spacing: -.06em; overflow-wrap: anywhere; }
.reader-intro { max-width: 310px; margin: 0; color: var(--muted); font-size: 14px; }
.reader-research { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; border-bottom: 1px solid var(--line); padding: 5vw 4.7vw; }
.reader-research > div { max-width: 430px; }
.reader-research p { margin: 0; font-size: 17px; line-height: 1.4; }
.reader-research .reader-label { margin-bottom: 14px; color: var(--accent); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.reader-count { margin: 0; padding: 22px 4.7vw 0; color: var(--muted); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.reader-images { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6vw 1.4vw; padding: 5vw 4.7vw 10vw; }
.reader-images figure { grid-column: span 7; margin: 0; }
.reader-images figure:nth-child(even) { grid-column: 7 / span 6; margin-top: 9vw; }
.reader-images figure:nth-child(3n) { grid-column: 2 / span 9; }
.reader-images img { height: auto; max-height: 78vh; object-fit: contain; background: #e5e2dc; }
.reader-images figcaption { padding-top: 10px; color: var(--muted); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.reader-navigation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3vw; border-top: 1px solid var(--line); padding: 25px 4.7vw 45px; }
.reader-navigation button { border: 0; border-bottom: 1px solid var(--ink); padding: 0 0 7px; background: transparent; color: var(--ink); cursor: pointer; font: 10px var(--mono); text-align: left; text-transform: uppercase; letter-spacing: .06em; }
.reader-navigation button:last-child { text-align: right; }
.reader-navigation button:disabled { border-color: var(--line); color: var(--muted); cursor: default; }
.reader-navigation p { margin: 0; color: var(--accent); font: 10px var(--mono); }
.project-chapter:focus-visible, button:focus-visible, a:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; }

@media (max-width: 700px) {
  .masthead { height: 62px; padding: 0 5vw; grid-template-columns: 1fr auto; }
  .masthead-context { display: none; }
  .masthead nav { gap: 16px; }
  .opening { min-height: calc(100svh - 62px); padding: 8vw 5vw 11vw; }
  .opening h1 { margin: 21vh 0 9vh; font-size: 20vw; line-height: .9; }
  .opening-bottom, .research-body { grid-template-columns: 1fr; gap: 30px; }
  .opening-statement { font-size: 19px; }
  .work, .research, .about { padding: 24vw 5vw; }
  .section-intro { grid-template-columns: 30px 1fr; gap: 20px; margin-bottom: 22vw; }
  .section-note { grid-column: 2; justify-self: start; }
  .section-intro h2, .research h2, .about h2 { font-size: 15vw; }
  .category-heading { grid-template-columns: 30px 1fr; gap: 20px; margin-bottom: 16vw; }
  .category-heading .label, .category-heading > p:last-child { grid-column: 2; }
  .category-heading > p:last-child { max-width: 250px; }
  .project-sequence { display: block; }
  .project-chapter, .project-chapter:nth-child(n) { margin: 0 0 20vw; }
  .chapter-image, .project-chapter:nth-child(2) .chapter-image, .project-chapter:nth-child(4) .chapter-image, .project-chapter:nth-child(6) .chapter-image { height: 105vw; max-height: 520px; }
  .chapter-caption { grid-template-columns: 28px 1fr; }
  .chapter-caption .chapter-type { display: none; }
  .research h2, .about h2 { margin-bottom: 16vw; }
  .research-copy { font-size: 17px; }
  .about { display: block; }
  .about .section-intro { display: grid; }
  .about-body { display: block; margin-top: 16vw; }
  .about-body h2 { margin-bottom: 16vw; }
  .about-body p { font-size: 17px; }
  .footer { flex-wrap: wrap; gap: 20px; padding: 20px 5vw; }
  .footer span:last-child { margin-left: auto; }
  .reader-head { display: block; padding: 30vw 5vw 15vw; }
  .reader-head h2 { margin: 8vw 0; font-size: 15vw; }
  .reader-intro { max-width: none; }
  .reader-close { top: 23px; right: 5vw; }
  .reader-research { display: block; padding: 12vw 5vw; }
  .reader-research > div { margin-bottom: 10vw; }
  .reader-research > div:last-child { margin-bottom: 0; }
  .reader-images { display: block; padding: 12vw 5vw; }
  .reader-images figure, .reader-images figure:nth-child(even), .reader-images figure:nth-child(3n) { margin: 0 0 18vw; }
  .reader-images img { max-height: none; }
  .reader-navigation { grid-template-columns: 1fr 1fr; gap: 18px; padding: 25px 5vw 45px; }
  .reader-navigation p { display: none; }
  .reader-navigation button:last-child { grid-column: 2; }
}

/* Homepage index overrides. The project reader above remains unchanged. */
.editorial-composition { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3vw 1.4vw; }
.editorial-feature { grid-column: 1 / span 8; }
.editorial-feature .project-chapter { display: block; margin: 0; }
.editorial-feature .chapter-image { height: min(48vw, 650px); }
.editorial-pair { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 8vw; padding-top: 9vw; }
.editorial-pair .project-chapter { display: block; margin: 0; }
.editorial-pair .chapter-image { height: min(28vw, 370px); }
.editorial-list { grid-column: 2 / span 10; margin-top: 6vw; border-top: 1px solid var(--line); }
.project-index-row { display: grid; grid-template-columns: 45px 1fr auto 20px; gap: 18px; align-items: baseline; border-bottom: 1px solid var(--line); padding: 17px 0; cursor: pointer; }
.project-index-row h3 { margin: 0; font: 400 clamp(19px, 2vw, 27px) var(--serif); overflow-wrap: anywhere; }
.project-index-row span { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.project-index-row b { color: var(--accent); font: 17px var(--sans); font-weight: 400; text-align: right; }
.project-index-row:hover h3, .project-index-row:focus-visible h3 { color: var(--accent); }
.work-category-visual .editorial-feature { grid-column: 2 / span 6; }
.work-category-visual .editorial-pair { grid-column: 9 / span 4; }
.work-category-visual .editorial-list { grid-column: 1 / span 12; }
.work-category-visual .editorial-feature .chapter-image { height: min(36vw, 480px); }
.work-category-visual .editorial-pair .chapter-image { height: min(24vw, 300px); }
.work-category-visual { padding-bottom: 2vw; }

@media (max-width: 700px) {
  .editorial-composition { display: block; }
  .editorial-feature, .editorial-pair, .editorial-list,
  .work-category-visual .editorial-feature, .work-category-visual .editorial-pair, .work-category-visual .editorial-list { margin: 0; }
  .editorial-feature .chapter-image, .work-category-visual .editorial-feature .chapter-image { height: 90vw; max-height: 470px; }
  .editorial-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; padding-top: 10vw; }
  .editorial-pair .chapter-image, .work-category-visual .editorial-pair .chapter-image { height: 43vw; max-height: 220px; }
  .editorial-pair .chapter-caption { display: block; padding-top: 10px; }
  .editorial-pair .chapter-caption .chapter-number { display: inline-block; margin-right: 8px; }
  .editorial-pair .chapter-caption h3 { display: inline; font-size: 16px; }
  .editorial-pair .chapter-caption .chapter-type { display: none; }
  .editorial-list { margin-top: 13vw; }
  .project-index-row { grid-template-columns: 28px 1fr 16px; gap: 10px; padding: 14px 0; }
  .project-index-row h3 { font-size: 18px; }
  .project-index-row span { display: none; }
}
