/* The shared editorial finish: quieter paper, readable metadata, and one
   restrained image response. Existing typefaces, title sizes and photo
   compositions stay in their original stylesheets. */
:root {
  --editorial-ink:#252a25;
  --editorial-copy:#545e54;
  --editorial-muted:#687166;
  --editorial-line:#d9ddd6;
  --editorial-accent:#198e86;
  --editorial-ease:cubic-bezier(.22,.72,.2,1);
  --editorial-hover-duration:850ms;
  --editorial-feedback-duration:240ms;
  --paper-texture:linear-gradient(rgba(255,255,254,.95),rgba(255,255,254,.95)),url("assets/paper-fiber-gray-v1.webp");
}

/* Decoration remains a page surface, never a filter over the photographs.
   The opening halftone owns the identity; the archive is deliberately calmer. */
.hr-page {
  --hr-ink:var(--editorial-ink);
  --hr-muted:var(--editorial-muted);
  --hr-accent:var(--editorial-accent);
}
.pa-page {--pa-muted:var(--editorial-muted);--pa-line:var(--editorial-line)}
.pr-page {--pr-muted:var(--editorial-muted);--pr-line:var(--editorial-line)}
.hr-page::before,.pa-page::before {opacity:.34}
.pr-page::before,.detail-panel::before {opacity:.3}
.hr-shell::before {opacity:.15}
.pr-backdrop-strip {opacity:.035}

/* A common printed rule ties the chapters together without extra boxes. */
.hr-section-head,.hr-footer,.hc-scroll .hc-stage,.pa-group-heading,
.pa-footer,.pr-facts,.pr-footer,.detail-panel,.detail-topline a,
.detail-panel .project-pagination,.contact-list,.copy-button,.contact-city {
  border-color:var(--editorial-line);
}
.hc-progress {background:var(--editorial-line)}
.hc-progress > i {background:var(--editorial-accent)}

/* Supporting information uses one readable gray. Hierarchy comes from
   contrast and spacing, not from adding more title animation or new fonts. */
.hr-kicker,.hr-years,.hr-section-head h2 span,.hc-heading h2 span,
.hc-stage .hc-meta,.hc-category-number,.pa-eyebrow,.pa-group-heading p,
.pa-caption > span,.pa-card-meta,.pr-topline,.pr-introduction .pr-role,
.pr-facts h2 span,.pr-contact > p span,.detail-topline,
.detail-panel .detail-heading > nav,.detail-panel .detail-heading > div > p,
.detail-panel .project-meta dt,.detail-panel .detail-brief-label p,
.detail-panel .detail-tags li,.detail-inline-pagination {
  color:var(--editorial-muted);
}
.hr-work > div > span,.pa-caption > span,.hc-category-number,
.hc-position,.pr-fact-row .pr-date {font-variant-numeric:tabular-nums}
.hr-kicker,.hr-years,.pa-eyebrow,.contact-title > p {letter-spacing:.14em}
.hr-introduction > p {color:var(--editorial-copy)}
.hr-introduction h1 > span {color:var(--editorial-muted)}
.hr-section-head h2,.hc-heading h2,.pa-group-heading h2,
.hr-work h3,.pa-caption h3,.pr-facts h2,.pr-fact-row h3,
.detail-panel .detail-heading h1,.detail-panel .detail-brief-copy h2,
.contact-title h1 {color:var(--editorial-ink)}
.hc-heading > a,.hr-section-head > a {color:var(--editorial-copy)}
.hr-page .hc-categories button {color:var(--editorial-muted)}
.hr-page .hc-categories button[aria-pressed="true"] {color:var(--editorial-ink)}
.hc-categories button[aria-pressed="true"] .hc-category-number {color:var(--editorial-accent)}

/* Captions follow a consistent name / index / status rhythm on both pages.
   Card widths, columns and the established picture crops are not altered. */
.hr-work > div,.pa-caption {margin-top:15px;align-items:baseline;gap:14px}
.hr-work h3,.pa-caption h3 {line-height:1.65}
.hr-work > p,.pa-card-meta {margin-top:5px;color:var(--editorial-muted);line-height:1.7}
.hr-work > div > span,.hr-work > p,.pa-caption > span,.pa-card-meta {font-size:12px}
.hr-footer-bottom,.pa-footer,.pr-footer {color:var(--editorial-muted)}

/* Keep the existing internal magnification and rounded crop. Project archive
   corner brackets sit outside their own clipping surface. */
.hr-work figure {border-radius:6px;overflow:hidden}
.pa-photo {border-radius:6px;overflow:visible}
.pa-photo-media {position:absolute;inset:0;display:block;overflow:hidden;border-radius:inherit}
.pa-photo {border-color:transparent;transition:none}
.pa-corners {display:block}
.hr-work:hover figure,.hr-work:focus-visible figure {opacity:1}
.hr-work img,.pa-photo img,.detail-lead .detail-cover img,
.detail-gallery img,.turnaround-item img {
  transform-origin:center;
  transition:transform var(--editorial-hover-duration) var(--editorial-ease),opacity 600ms ease;
}
.detail-panel .detail-cover button:hover,.detail-panel .detail-gallery button:hover,
.detail-panel .detail-cover button:focus-visible,.detail-panel .detail-gallery button:focus-visible {
  transform:none;
  box-shadow:none;
}
.hr-work:focus-visible img,.pa-card-link:focus-visible .pa-photo img,
.detail-lead .detail-cover button:focus-visible img,
.detail-gallery button:focus-visible img,.turnaround-item:focus-visible img {transform:scale(1.025)}
@media (hover:hover) and (pointer:fine) {
  .hr-work:hover img,.pa-card-link:hover .pa-photo img,
  .detail-lead .detail-cover button:hover img,
  .detail-gallery button:hover img,.turnaround-item:hover img {transform:scale(1.025)}
}
@media (hover:none) {
  .hr-work:hover img,.pa-card-link:hover .pa-photo img,
  .detail-lead .detail-cover button:hover img,
  .detail-gallery button:hover img,.turnaround-item:hover img {transform:none}
}

/* Small controls share the accent and timing. Navigation stays fixed in
   place; its asterisk responds only to an intentional hover or key focus. */
.portfolio-nav a,.pa-filters a,.pa-back,.pr-contact > a,
.detail-topline a,.detail-inline-pagination a,.copy-button,
.hr-section-head > a,.hc-heading > a {
  transition:color var(--editorial-feedback-duration) ease,border-color var(--editorial-feedback-duration) ease;
}
.portfolio-nav-asterisk {transition:transform 500ms var(--editorial-ease)}
.portfolio-nav a:focus-visible .portfolio-nav-asterisk {transform:rotate(30deg)}
.pa-back,.pr-contact > a {border-color:var(--editorial-line)}
.pa-filters a[aria-current="page"] {border-color:var(--editorial-accent);color:var(--editorial-ink)}
.hr-section-head > a:hover,.hc-heading > a:hover,.pa-back:hover,
.pr-contact > a:hover,.detail-topline a:hover,.detail-inline-pagination a:hover,
.copy-button:hover,.copy-button:focus-visible {color:var(--editorial-accent)}
.pr-contact > a:hover {border-color:var(--editorial-accent)}
@media (hover:hover) and (pointer:fine) {
  .portfolio-nav a:hover .portfolio-nav-asterisk {transform:rotate(30deg)}
}

/* Reading pages get the same ink levels, while the two already-approved
   title lines, their empty line, the QR and all detail metadata stay put. */
.pr-introduction > p:not(.pr-role),.pr-facts > p,
.detail-panel .detail-brief-copy > p {color:var(--editorial-copy)}
.pr-introduction .pr-summary {color:var(--editorial-ink)}
.pr-fact-row div p,.pr-fact-row .pr-date {color:var(--editorial-muted)}
.contact-title > p {font-size:12px;line-height:1.6;color:var(--editorial-muted)}
.copy-button span,.copy-button i,.contact-city span,.qr figcaption {
  font-size:12px;
  line-height:1.6;
  color:var(--editorial-muted);
}
.copy-button b,.contact-city b {color:var(--editorial-ink);line-height:1.6}
.copy-button:hover b,.copy-button:focus-visible b {color:var(--editorial-accent)}
.copy-button b {transition:color var(--editorial-feedback-duration) ease}
.qr figcaption {margin-top:12px}

/* Use the existing two-column contact arrangement before the email would
   be squeezed into a broken line between the title and QR code. */
@media (min-width:701px) and (max-width:1180px) {
  .contact-page {grid-template-columns:minmax(0,1fr) 180px}
  .contact-title {grid-column:1/-1}
  .qr img {width:180px}
}

@media (max-width:720px) {
  .hr-work > div,.pa-caption {margin-top:12px;gap:8px}
  .pr-backdrop-strip {opacity:.025}
}
@media (prefers-reduced-motion:reduce) {
  .hr-work img,.pa-photo img,.detail-lead .detail-cover img,
  .detail-gallery img,.turnaround-item img,.portfolio-nav-asterisk,
  .portfolio-nav a,.pa-filters a,.pa-back,.pr-contact > a,
  .detail-topline a,.detail-inline-pagination a,.copy-button,.copy-button b,
  .hr-section-head > a,.hc-heading > a {transition:none}
  .hr-work:is(:hover,:focus-visible) img,
  .pa-card-link:is(:hover,:focus-visible) .pa-photo img,
  .detail-lead .detail-cover button:is(:hover,:focus-visible) img,
  .detail-gallery button:is(:hover,:focus-visible) img,
  .turnaround-item:is(:hover,:focus-visible) img,
  .portfolio-nav a:is(:hover,:focus-visible) .portfolio-nav-asterisk {transform:none}
}
