.document-page main { position: relative; z-index: 5; min-height: 100svh; padding: 112px 18px 118px; }
.document-panel { width: min(100%, 1180px); margin: 0 auto; overflow: hidden; border: 1px solid var(--line); background: rgb(244 243 240 / 84%); }
.document-hero { padding: clamp(54px, 8vw, 104px); border-bottom: 1px solid var(--line); background: linear-gradient(112deg, rgb(244 243 240 / 94%) 0%, rgb(244 243 240 / 78%) 72%, rgb(244 243 240 / 50%) 100%); }
.document-kicker, .document-meta dt { margin: 0; color: var(--faint); font-size: 9px; line-height: 1.5; letter-spacing: .11em; text-transform: uppercase; }
.document-title { margin: 20px 0 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(68px, 10vw, 136px); font-weight: 400; line-height: .82; letter-spacing: -.05em; }
.document-lede { max-width: 760px; margin: 30px 0 0; color: rgb(25 25 28 / 76%); font-size: clamp(16px, 1.65vw, 22px); line-height: 1.65; }
.document-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.document-button, .inline-contact { min-height: 48px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); background: rgb(250 249 246 / 72%); color: var(--ink); font-size: 9px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: color .18s ease, background-color .18s ease; }
.document-button:hover, .document-button:focus-visible, .inline-contact:hover, .inline-contact:focus-visible { color: var(--paper); background: var(--ink); outline: none; }
.document-content { padding: clamp(46px, 7vw, 84px); background: rgb(244 243 240 / 74%); }
.document-content section { padding: 30px 0; border-top: 1px solid var(--line); }
.document-content section:last-child { border-bottom: 1px solid var(--line); }
.document-content h2 { margin: 0 0 14px; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(32px, 4vw, 50px); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.document-content p, .document-content li { max-width: 810px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.document-content p + p { margin-top: 16px; }
.document-content ul { margin: 0; padding-left: 20px; }
.document-content a { text-underline-offset: 5px; }
.document-content .inline-contact { margin-top: 18px; }
.document-meta { margin: 46px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.document-meta > div { min-height: 116px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgb(244 243 240 / 48%); }
.document-meta dd { margin: 0; font-size: 11px; line-height: 1.5; font-weight: 500; }
.project-panel { width: min(100%, 1360px); }
.project-hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); border-bottom: 1px solid var(--line); }
.project-hero .document-hero { border-bottom: 0; }
.project-image { min-height: 620px; display: grid; align-items: end; overflow: hidden; background: rgb(231 224 255 / 86%); }
.project-image picture, .project-image img { width: 100%; }
.project-image img { height: 610px; object-fit: contain; object-position: center bottom; }
.not-found { min-height: calc(100svh - 230px); display: flex; flex-direction: column; justify-content: center; }
.not-found .document-title { font-size: clamp(96px, 18vw, 220px); }
.document-footer { position: relative; z-index: 5; width: min(calc(100% - 36px), 1180px); margin: -92px auto 18px; padding: 24px 22px 76px; display: flex; justify-content: space-between; gap: 24px; border: 1px solid var(--line); background: rgb(244 243 240 / 78%); color: var(--muted); font-size: 9px; }
.document-footer div, .document-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.document-footer strong { color: var(--ink); letter-spacing: .11em; }
.document-footer a, .document-footer button { padding: 0; color: inherit; border: 0; background: transparent; text-decoration: none; cursor: pointer; }
@media (max-width: 900px) {
  .project-hero { grid-template-columns: 1fr; }
  .project-image, .project-image img { min-height: 440px; height: 440px; }
  .document-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .document-page main { padding: 84px 10px 122px; }
  .document-hero, .document-content { padding: 42px 20px; }
  .document-title { font-size: clamp(62px, 19vw, 88px); }
  .document-lede { margin-top: 24px; font-size: 15px; }
  .document-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-meta > div { min-height: 102px; }
  .project-image, .project-image img { min-height: 350px; height: 350px; }
  .document-footer { width: calc(100% - 20px); margin: -100px 10px 10px; padding: 22px 18px 108px; flex-direction: column; }
}
