/* ==========================================================================
   ARCHINEERS project view (/projects/?project=<id>), rendered by projects.js
   Order: back · hero · information · interactive story (only if enabled) · plans & drawings · gallery
   Everything is scoped to .pv so the existing projects grid page keeps its own styles.
   Uses the same tokens and type as the redesigned site (arch-public.css), copied here
   because the projects page does not load the full site stylesheet.
   ========================================================================== */
.pv {
  --ink: #111418; --slate: #2B3F4E; --gold: #B8924A; --dust: #F0EDE6; --paper: #FFFFFF;
  --rule: #DEDAD2; --rule-strong: #C9C3B8; --text: #111418; --text-2: #3E4952; --text-3: #5F6A73;
  --placeholder: #E7E3DB; --accent: #28414B;
  --ff: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-serif: "Lora", Georgia, serif; --ff-num: "Space Grotesk", "Outfit", system-ui, sans-serif;
  --wrap: 1280px; --gutter: clamp(20px, 5vw, 64px); --sec: clamp(64px, 8vw, 112px); --nav-h: 66px;
  background: var(--paper); color: var(--text); font-family: var(--ff); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; padding-top: var(--nav-h);
}
.pv[hidden] { display: none; }
/* grid-page parts hidden while a project is open (their own display rules would otherwise win) */
.page-hero[hidden], .toolbar[hidden], .svc-banner[hidden], main.grid-wrap[hidden] { display: none !important; }
.pv :where(h1, h2, h3, p, ul, ol, figure, dl, dd) { margin: 0; }
.pv :where(ul, ol) { padding: 0; list-style: none; }
.pv img { display: block; max-width: 100%; }
.pv a { color: inherit; }
.pv :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pv .wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.pv .kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; letter-spacing: 0.01em; color: var(--slate); margin-bottom: 20px; }
.pv .kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex: 0 0 auto; }
.pv .h2 { font-weight: 400; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -0.018em; text-wrap: balance; }

.pv__top { padding-block: 20px 16px; }
.pv__back { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--rule-strong); }
.pv__back:hover { text-decoration-color: var(--gold); }
.pv__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.pv__hero { margin: 0; }
.pv__hero { display: flex; justify-content: center; }
.pv__hero button { all: unset; display: block; max-width: 100%; cursor: zoom-in; }
.pv__hero button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pv__hero img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - var(--nav-h) - 120px); }

.pv__info { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 24px; padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 80px); }
.pv__head { grid-column: 1 / span 6; }
.pv__name { font-weight: 400; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.022em; text-wrap: balance; }
.pv__loc { margin-top: 12px; font-size: 16px; color: var(--text-2); }
.pv__about { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 24px; }
.pv__desc { font-family: var(--ff-serif); font-style: italic; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--text-2); }
.pv__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; border-top: 1px solid var(--rule); padding-top: 18px; font-size: 15px; }
.pv__facts dt { color: var(--text-3); }
.pv__facts dd { color: var(--text); }

.pv__sec { padding-block: var(--sec); border-top: 1px solid var(--rule); }
.pv__sec--dust { background: var(--dust); border-top: 0; }
.pv__sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.pv__sechead p { font-size: 15px; color: var(--text-3); }

.pv-thumb { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: zoom-in; }
.pv-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pv-thumb img { width: 100%; height: auto; transition: opacity 0.2s ease; }
.pv-thumb:hover img { opacity: 0.9; }

/* Drawings: the whole sheet, never cropped, on white with a hairline frame */
.pv__drawings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.pv__drawing figure { display: flex; flex-direction: column; gap: 12px; }
.pv__drawing .pv-thumb { background: #fff; box-shadow: 0 0 0 1px var(--rule-strong); padding: 10px; }
.pv__drawing figcaption { font-size: 15px; color: var(--text); }

/* Gallery: natural aspect ratios (no cropping), two columns on wide screens */
.pv__gallery { columns: 2; column-gap: clamp(12px, 2vw, 24px); }
.pv__gallery li { break-inside: avoid; margin-bottom: clamp(12px, 2vw, 24px); background: var(--placeholder); }
.pv__gallery li:only-child { column-span: all; }

.pv__end { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }

/* The story section inside the project view: restore its own type and spacing over the resets above */
.pv .pb { border-top: 0; }
.pv .pb .pb__title { font-size: clamp(28px, 3vw, 42px); margin-bottom: 28px; }
.pv .pb .pb__meta { margin-top: 22px; }
@media (max-width: 760px) { .pv .pb .pb__title { font-size: 28px; } }

@media (max-width: 900px) {
  .pv__head, .pv__about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pv__gallery { columns: 1; }
  .pv__hero img { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .pv-thumb img { transition: none; } }
