/* Phase 8C presentation + approved material-gallery refinement. No route/interaction owners.
   Contact's existing silver action is the primary pattern; secondary actions are quiet text.
   Preserve S01-S07, curated hero/Look Closer/Application/Related imagery and spatial mechanics. */
:root {
  --human-sans: "Segoe UI", Arial, sans-serif;
  --human-space-small: 12px;
  --human-space: 24px;
  --human-section: 64px;
  --human-support: 48px;
  --human-text: #e7e9e0;
  --human-secondary: #bcc4bb;
  --human-fill: #d4dbd2;
  --human-ink: #171e1a;
}
/* Utility type remains readable; active underline, focus rings and 44px targets stay. */
html .global-nav a,
html .library-topbar nav.global-nav a,
html .detail-topbar .global-nav a,
html .site-header nav.global-nav a,
html .visit-header nav.global-nav a {
  font: 400 15px/1.4 var(--human-sans);
  letter-spacing: 0;
}
html .global-footer {
  padding-block: var(--human-space-small);
  font: 400 14px/1.4 var(--human-sans);
  color: var(--human-secondary);
}
html .global-footer nav { gap: var(--human-space); }
/* Small finishing pass: tidy text rhythm, without moving image/layout owners. */
html .global-nav a,
html .global-footer a { white-space: nowrap; text-underline-offset: .25em; }
html .library-section-heading h2,
html .library-card h3,
html .generic-detail .detail-section-intro h2,
html .detail-editorial .detail-contact h2,
html .visit-details h2,
html .visit-closing h2 { text-wrap: balance; }
html .generic-contact p,
html .detail-editorial .detail-character > p:last-child,
html .visit-before p,
html .visit-details address { text-wrap: pretty; }
html .library-intro__count strong { font-variant-numeric: tabular-nums; }
/* Catalogue: retain discovery geometry/controls and let photos carry the page. */
html .library-kicker,
html .library-section-heading > p,
html .library-collection .library-section-heading > span,
html .library-card__arrow { display: none; }
html .library-intro__count { border-top-color: transparent; }
html .library-intro__count strong {
  font: 500 38px/1.1 var(--human-sans);
  letter-spacing: -.02em;
}
html .library-section-heading h2,
html .library-empty h2 {
  font: 500 26px/1.3 var(--human-sans);
  letter-spacing: -.015em;
}
html .library-card h3 {
  font: 500 20px/1.3 var(--human-sans);
  letter-spacing: -.01em;
  transform: none;
}
/* Remove decorative peer-dimming/name nudges; material image and focus interactions stay. */
html .library-featured__grid:has(.library-card:is(:hover, :focus-within)) .library-card:not(:is(:hover, :focus-within)) { opacity: 1; }
html .library-featured__grid:has(.library-card:is(:hover, :focus-within)) .library-card:not(:is(:hover, :focus-within)) img { filter: none; }
html .library-card:is(:hover, :focus-within) h3,
html .library-featured__grid .library-card:is(:hover, :focus-within) h3,
html .library-grid .library-card__link:is(:hover, :focus-visible) h3 { transform: none; }
html .library-controls { border-bottom-color: transparent; }
html .library-collection .library-section-heading { border-top-color: transparent; }
html .library-filters button { border-color: transparent; font-size: 14px; }
html .library-filters button[aria-pressed="true"] { border-color: var(--library-ink); }
html .library-filters button:hover:not([aria-pressed="true"]) { border-color: transparent; }
html .library-main { padding-bottom: var(--human-section); }
html .library-footer { padding-top: var(--human-support); padding-bottom: var(--human-support); }
html .library-footer h2 { display: none; }
html .library-footer p { margin: 0; font-size: 16px; }
/* Generic: no second statement for a small metadata block or a two-action closing. */
html .generic-info h2,
html .generic-contact h2 { display: none; }
html .generic-info,
html .generic-contact { border-top: 0; padding-top: var(--human-support); padding-bottom: var(--human-support); }
html .generic-info dl { gap: var(--human-space); }
html .generic-contact p { margin: 0; color: var(--human-secondary); }
html .generic-detail .detail-related { border-top: 0; padding-top: var(--human-support); padding-bottom: var(--human-section); }
html .generic-detail .detail-section-intro h2 {
  font: 500 26px/1.3 var(--human-sans);
  letter-spacing: -.015em;
}
/* Curated protected chapters remain as-is. Simplify only supporting character/data/closing. */
html .detail-editorial .detail-character > .detail-eyebrow,
html .detail-editorial .detail-character h2,
html .detail-editorial .detail-info .detail-eyebrow,
html .detail-editorial .detail-info > div:first-child > h2,
html .detail-editorial .detail-contact .detail-eyebrow { display: none; }
html .detail-editorial .detail-character {
  padding-top: var(--human-support); padding-bottom: var(--human-support);
}
html .detail-editorial .detail-character > p:last-child {
  margin: 0; font-size: 18px; line-height: 1.6; color: var(--detail-muted);
}
html .detail-editorial .detail-info { padding-top: var(--human-support); padding-bottom: var(--human-support); }
html .detail-editorial .detail-info__rows { border-top: 0; }
html .detail-editorial .detail-info__rows h3 {
  font: 500 20px/1.4 var(--human-sans);
  text-transform: none; letter-spacing: 0;
  margin: 0 0 var(--human-space);
}
html .detail-editorial .detail-contact {
  padding-top: var(--human-support); padding-bottom: var(--human-support);
}
html .detail-editorial .detail-contact h2 {
  font: 500 26px/1.3 var(--human-sans); letter-spacing: -.015em;
}
html .detail-editorial .detail-contact p:last-child { color: var(--human-secondary); }
/* Two page-action treatments, reusing existing palette. Locked viewer/card controls exempt. */
html .generic-actions a[href^="https://wa.me/"],
html .detail-contact__links a[href^="https://wa.me/"],
html .detail-hero__actions a[href^="https://wa.me/"],
html .visit-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--human-fill); color: var(--human-ink);
  font: 600 15px/1.4 var(--human-sans);
  text-transform: none; letter-spacing: 0;
  border: 0; min-height: 48px;
  padding: 12px 18px; white-space: nowrap;
}
html .visit-primary { min-height: 52px; }
html .generic-actions a[href^="https://wa.me/"] span,
html .detail-contact__links a[href^="https://wa.me/"] span,
html .detail-hero__actions a[href^="https://wa.me/"] span,
html .visit-primary span { display: none; }
html .generic-actions a:not([href^="https://wa.me/"]),
html .detail-contact__links a:not([href^="https://wa.me/"]),
html .detail-hero__actions a:not([href^="https://wa.me/"]),
html .visit-text-link,
html .library-footer a,
html .closing.complete-stage .contact-link {
  border-bottom: 0;
  font: 400 15px/1.4 var(--human-sans);
  text-transform: none; letter-spacing: 0;
  min-height: 48px;
  text-decoration: none;
}
html .generic-actions,
html .visit-actions,
html .detail-hero__actions { gap: var(--human-space-small) var(--human-space); }
html .generic-contact .generic-actions,
html .detail-contact__links { gap: var(--human-space-small); }
html .detail-experience .detail-mobile-cta {
  background: var(--human-fill); color: var(--human-ink);
  font: 600 15px/1.4 var(--human-sans);
  text-transform: none; letter-spacing: 0;
}
html .detail-mobile-cta span { display: none; }
/* Contact stays the restrained reference: no hero/photo/visit data/layout changes. */
html .visit-details h2 {
  font: 500 24px/1.35 var(--human-sans);
  letter-spacing: -.015em;
}
html .visit-closing h2 {
  font: 500 28px/1.3 var(--human-sans);
  letter-spacing: -.015em;
}
html .visit-before,
html .visit-closing { border-top: 0; }
/* Projects: retain semantic chapter names and all planes, image crops and interactions. */
html .projects-hero .hero-copy > .eyebrow,
html .canvas-stage h2 > span,
html .complete-anchor h2 > span,
html .craft .complete-anchor > p,
html .projects-hero .hero-foot > span { display: none; }
@media (hover: hover) and (pointer: fine) {
  html .generic-actions a:not([href^="https://wa.me/"]):hover,
  html .detail-contact__links a:not([href^="https://wa.me/"]):hover,
  html .detail-hero__actions a:not([href^="https://wa.me/"]):hover,
  html .visit-text-link:hover,
  html .library-footer a:hover,
  html .closing.complete-stage .contact-link:hover {
    text-decoration: underline; text-underline-offset: 4px;
  }
}
@media (max-width: 767px) {
  :root { --human-support: 32px; --human-section: 40px; }
  html .global-nav a,
  html .library-topbar nav.global-nav a,
  html .detail-topbar .global-nav a,
  html .site-header nav.global-nav a,
  html .visit-header nav.global-nav a { font-size: 14px; }
  html .global-footer {
    display: grid; grid-template-columns: auto minmax(0,1fr);
    gap: var(--human-space); align-items: start;
  }
  html .global-footer nav { gap: 0 var(--human-space-small); }
  html .library-intro__count strong { font-size: 28px; }
  html .library-section-heading h2,
  html .library-empty h2,
  html .generic-detail .detail-section-intro h2,
  html .detail-editorial .detail-contact h2 { font-size: 24px; }
  html .library-card h3 { font-size: 20px; }
  html .generic-actions a[href^="https://wa.me/"],
  html .detail-contact__links a[href^="https://wa.me/"],
  html .detail-hero__actions a[href^="https://wa.me/"],
  html .visit-primary,
  html .detail-experience .detail-mobile-cta { font-size: 14px; }
  html .detail-hero__actions a[href^="https://wa.me/"] { min-height: 44px; padding: 10px 14px; }
}

/* Material gallery: charcoal exhibition walls, silver type, unaltered stone photographs.
   Scoped to catalogue only. Existing filter/history/inspection/reveal owners remain intact. */
html .library-page {
  --library-bg: #1a201e;
  --library-dark: #1a201e;
  --library-ink: #e7e9e6;
  --library-muted: #b2bab4;
  --library-line: #454e48;
}
html .library-page :focus-visible { outline-color: #d4dbd2; }
html .library-page .library-skip { color: #202722; }
html .library-page .library-topbar { border-bottom-color: transparent; }
html .library-page .library-intro { padding-top: 42px; padding-bottom: 38px; }
html .library-page .library-intro h1 { font-size: clamp(54px, 6.2vw, 88px); letter-spacing: -.045em; }
html .library-page .library-intro__copy > p:last-child { color: var(--library-muted); }
html .library-page .library-intro__count { width: 185px; padding-top: 0; gap: 8px; }
html .library-page .library-intro__count strong { font-size: 30px; }
html .library-page .library-intro__count span { color: var(--library-muted); }
html .library-page .library-discovery { padding-bottom: 12px; }
html .library-page .library-discovery.is-compact {
  background: var(--library-bg); border-bottom-color: var(--library-line); padding-bottom: 8px;
}
html .library-page .library-search label { font-weight: 400; color: var(--library-muted); }
html .library-page .library-search input {
  background: #222a26; border-color: #56615a; color: var(--library-ink);
}
html .library-page .library-search input::placeholder { color: #b2bab4; }
html .library-page .library-filters button[aria-pressed="true"] {
  background: var(--human-fill); color: var(--human-ink); border-color: var(--human-fill);
}
html .library-page .library-filters button:hover:not([aria-pressed="true"]) {
  background: #303a33; color: #eef0ea;
}
html .library-page .library-section-heading { padding: 24px 0 22px; }
html .library-page .library-section-heading h2 { font-size: 24px; font-weight: 400; }
html .library-page .library-featured__grid {
  grid-template-columns: minmax(0,1.65fr) minmax(0,1fr) minmax(0,1fr);
  column-gap: clamp(24px,3vw,44px);
  align-items: end;
}
html .library-page .library-featured__grid > :first-child { grid-column: auto; }
html .library-page .library-featured__grid > :nth-child(2),
html .library-page .library-featured__grid > :nth-child(3) { margin-top: 0; }
html .library-page .library-card__photo { background: #252e28; }
html .library-page .library-card__caption { padding-top: 16px; min-height: 80px; }
html .library-page .library-card h3 { color: var(--library-ink); font-weight: 400; }
html .library-page .library-card:hover .library-card__category,
html .library-page .library-card__category { color: var(--library-muted); }
html .library-page .library-featured__grid .library-card h3 {
  font: 400 clamp(24px,2.1vw,30px)/1.18 Georgia, "Palatino Linotype", serif;
  letter-spacing: -.02em;
}
html .library-page .library-card__photo img { filter: none; }
html .library-page .library-card__link:is(:hover,:focus-visible) img { filter: none; }
html .library-page .library-collection { margin-top: 56px; }
html .library-page .library-grid { column-gap: 32px; row-gap: 40px; }
html .library-page .library-footer { background: #151b18; }
/* The inspection dialog keeps its established neutral proofing surface. */
html .library-page .library-inspect :focus-visible { outline-color: #344d40; }
@media (min-width: 651px) and (max-width: 1000px) {
  html .library-page .library-featured__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html .library-page .library-featured__grid > :first-child { grid-column: 1 / -1; width: 74%; }
  html .library-page .library-featured__grid > :nth-child(2),
  html .library-page .library-featured__grid > :nth-child(3) { margin-top: 24px; }
}
@media (max-width: 650px) {
  html .library-page .library-intro { padding-top: 24px; padding-bottom: 24px; }
  html .library-page .library-intro h1 { font-size: clamp(42px,11.5vw,60px); }
  html .library-page .library-intro__count { width: auto; margin-top: 20px; gap: 16px; align-items: center; }
  html .library-page .library-intro__count strong { font-size: 25px; }
  html .library-page .library-intro__count span { padding-bottom: 0; }
  html .library-page .library-section-heading { padding-top: 16px; padding-bottom: 18px; }
  html .library-page .library-section-heading h2 { font-size: 22px; }
  html .library-page .library-featured__grid { grid-template-columns: minmax(0,1fr); gap: 26px; }
  html .library-page .library-featured__grid > :nth-child(2),
  html .library-page .library-featured__grid > :nth-child(3) { margin-top: 0; }
  html .library-page .library-card__caption { min-height: 70px; padding-top: 12px; }
  html .library-page .library-featured__grid .library-card h3 { font-size: 26px; }
  html .library-page .library-grid { gap: 30px; }
  html .library-page .library-collection { margin-top: 36px; }
}

/* Projects finishing: align the invitation with its headline; keep photo planes/motion intact. */
html .projects-hero.canvas-stage .hero-copy h1 { line-height: 1.04; letter-spacing: -.045em; }
html .projects-hero.canvas-stage .hero-proof {
  margin-top: 30px; font-size: 12px; letter-spacing: .09em; color: #e7e9e0;
}
html .projects-hero.canvas-stage .hero-foot { left: 6vw; }
html .projects-hero.canvas-stage .hero-foot a {
  display: inline-flex; align-items: center; gap: 18px;
  min-height: 48px; padding: 0; font: 400 15px/1.4 var(--human-sans);
  color: #e7e9e0; text-underline-offset: 5px;
}
html .projects-hero .hero-foot a span { font-size: 23px; line-height: 1; }
html .craft.complete-stage .complete-anchor,
html .archive.complete-stage .complete-anchor { margin-bottom: 32px; }
html .craft.complete-stage .complete-anchor h2,
html .archive.complete-stage .complete-anchor h2 { letter-spacing: -.035em; line-height: 1.08; }
html .craft.complete-stage .process-label {
  font: 400 14px/1.4 var(--human-sans); padding: 9px 13px;
}
html .archive-controls { font-size: 14px; }
html .archive-controls button { padding-inline: 12px; }
html .closing.complete-stage .contact-link {
  display: inline-flex; gap: 24px; font-size: 17px; line-height: 1.4;
}
@media (hover: hover) and (pointer: fine) {
  html .projects-hero .hero-foot a:hover { text-decoration: underline; }
}
@media (max-width: 767px) {
  html .projects-hero.canvas-stage .hero-copy h1 { line-height: 1.04; }
  html .projects-hero.canvas-stage .hero-proof { margin-top: 22px; font-size: 11px; }
  html .projects-hero.canvas-stage .hero-foot { left: 5vw; }
  html .projects-hero.canvas-stage .hero-foot a { font-size: 14px; }
  html .craft.complete-stage .complete-anchor,
  html .archive.complete-stage .complete-anchor { margin-bottom: 26px; }
  html .closing.complete-stage .contact-link { font-size: 16px; }
}
