/* A light editorial pass over the approved framework, inspired by LIULIAN's
   image-led archive. Preserve the typefaces, covers, intro sequences and grids. */
:root {
  --paper-texture:linear-gradient(rgba(255,255,254,.9),rgba(255,255,254,.9)),url("assets/paper-fiber-gray-v1.webp");
  --site-gutter:clamp(48px,5vw,92px);
  --pad:var(--site-gutter);
}
/* LIULIAN uses a 5vw home gutter and a wider 120px project gutter. */
.hr-page {--hr-gutter:var(--site-gutter);overflow-x:clip}
.pr-page {--pr-gutter:var(--site-gutter)}
.pa-page {--pa-gutter:120px}
body.is-project-detail {--pad:120px}
.portfolio-header {right:max(var(--site-gutter),calc((100vw - 1840px)/2))}
body.is-project-index .portfolio-header,body.is-project-detail .portfolio-header {right:max(120px,calc((100vw - 1840px)/2 + 120px))}
.hr-work figure,.pa-photo {border-radius:6px}
.pa-photo img {border-radius:inherit}
.hr-page::before,.pr-page::before,.pa-page::before {opacity:.68}
.hr-shell::before {opacity:.2}

/* A clearer identity line, within the existing three-part opening. */
.hr-page {--hr-hero-extra:48px;--hr-muted:#656963}
.hr-introduction {max-width:420px}
.hr-introduction h1 {font-size:20px;letter-spacing:.02em;line-height:1.5}
.hr-introduction > p {font-size:14px;line-height:1.85;margin-top:12px;color:#60655f}
.hr-kicker,.hr-years {color:#747971;letter-spacing:.14em}
@media (min-width:721px) {
  .hr-hero > .hr-introduction {grid-column:1/5}
  .hr-hero > .hr-years {grid-column:6/8;justify-self:center}
  .hr-hero > .hr-kicker {grid-column:10/13;justify-self:end}
}

/* Keep the small central frame and thin moving category name. Bring their
   supporting labels closer instead of enlarging the photographs. */
.hc-scroll {--hc-stage-height:clamp(500px,60svh,640px);margin-top:clamp(64px,9svh,100px)}
.hc-main {width:min(100%,1040px);justify-self:center;padding-block:24px 40px}
.hc-categories {justify-self:end;padding-right:28px}
.hc-meta {justify-self:start;padding-left:28px;padding-bottom:14px}
.hc-heading > a {color:#656b64}
.hr-page .hc-categories button {color:#687067}

/* Consistent section edges and captions; the approved image sizes and order
   remain intact. Give the transition into the full archive less dead space. */
.hr-works {margin-top:clamp(100px,7.5vw,128px);padding-inline:0}
.hr-section-head {padding-top:22px;border-top:1px solid #d8d9d3;margin-bottom:34px}
.hr-section-head h2 {font-size:16px;line-height:1.6}
.hr-wall {row-gap:clamp(64px,5.2vw,88px)}
.hr-work {width:90%}
.hr-work img {transition:transform .8s cubic-bezier(.2,.75,.25,1)}
.hr-work:hover figure {opacity:1}
.hr-work:hover img,.hr-work:focus-visible img {transform:scale(1.025)}
.hr-work > div {margin-top:16px}
.hr-work h3,.pa-caption h3 {color:#262925;line-height:1.6}
.hr-work > p,.pa-card-meta {color:#747970}
.hr-footer {padding-top:64px;row-gap:72px}
.pa-shell {max-width:1840px}
.pa-intro-meta {color:#62695f}
.pa-caption {margin-top:16px}
.pa-filters a[aria-current="page"] {border-color:#198e86}

/* Keep the reference-sized biography, with more separation between reading
   text and secondary labels, rather than making the whole page heavier. */
.pr-copy-pane {--pr-copy-size:clamp(.875rem,.98vw,1rem);line-height:1.8}
.pr-introduction > p:not(.pr-role) {color:#555c54;line-height:1.85;max-width:570px}
.pr-introduction .pr-summary {font-size:clamp(16px,1.1vw,18px);line-height:1.65;margin-bottom:20px}
.pr-facts h2 {color:#262b25}
.pr-facts h2 span,.pr-contact > p span {color:#80877d;letter-spacing:.08em}
.pr-backdrop-strip {opacity:.06}
.contact-title h1 {letter-spacing:-.035em}

/* The two full-screen openers are untouched. Ordinary content now settles
   without the previous blur, while retaining upward/downward reveal motion. */
.hr-motion .hr-header,.hr-motion .hr-shell {transition:opacity .5s ease,translate .5s cubic-bezier(.22,1,.36,1)}
.hr-motion:not(.hr-ready) .hr-header,.hr-motion:not(.hr-ready) .hr-shell {filter:none;translate:0 12px}
.hr-motion-pending {transform:translateY(12px);filter:none}
.hr-motion-pending[data-hr-motion="media"] {transform:translateY(24px)}

@media (max-width:960px) and (min-width:721px) {
  .hc-main {grid-template-columns:160px minmax(0,1fr) 96px;gap:20px}
  .hc-categories {padding-right:0}
  .hc-meta {padding-left:0}
}
@media (max-width:960px) {
  .pa-page {--pa-gutter:40px}
  body.is-project-detail {--pad:40px}
  body.is-project-index .portfolio-header,body.is-project-detail .portfolio-header {right:40px}
}
@media (max-width:720px) {
  :root {--site-gutter:24px}
  .pa-page {--pa-gutter:24px}
  body.is-project-detail {--pad:24px}
  body.is-project-index .portfolio-header,body.is-project-detail .portfolio-header {right:24px}
  .hr-page {--hr-hero-extra:28px}
  .hr-introduction h1 {font-size:18px}
  .hc-scroll {--hc-stage-height:510px;margin-top:56px}
  .hc-main {width:100%;padding-block:20px 40px}
  .hc-categories {justify-self:stretch;padding-right:80px}
  .hc-meta {padding:0}
  .hr-works {margin-top:80px}
  .hr-section-head {padding-top:18px;margin-bottom:28px}
  .hr-wall {row-gap:48px}
  .hr-work > div {margin-top:12px}
  .hr-footer {padding-top:48px;row-gap:48px}
  .pr-backdrop-strip {opacity:.035}
  .pa-caption {margin-top:14px}
}
@media (max-width:370px) {
  .hc-categories {padding-right:76px}
}
@media (max-height:650px) and (min-width:721px) {
  .hc-scroll {--hc-stage-height:450px}
}
@media (prefers-reduced-motion:reduce) {
  .hr-motion:not(.hr-ready) .hr-header,.hr-motion:not(.hr-ready) .hr-shell {translate:none}
  .hr-work img {transition:none}
  .hr-work:hover img,.hr-work:focus-visible img {transform:none}
}
