/* =========================================================
   Project pages, projects list and project cards (added Nov 2026)
   Uses the same tokens, fonts and components as style.css.
   ========================================================= */

/* pages without a hero photo: solid header, content starts below it */
body.page-solid main { padding-top: var(--header-h); }
.page-solid .site-header::before { opacity: 0; }

.draft-banner { background: var(--accent-soft); color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--secondary) 40%, transparent); padding: 12px clamp(18px, 4vw, 40px); font-weight: 700; font-size: .9rem; text-align: center; }
.draft-banner i { color: color-mix(in srgb, var(--secondary) 78%, #000); margin-right: 6px; }

/* ---------- project cards (homepage, /projects, "Also at this home") ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: inherit; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.project-card[hidden] { display: none; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.project-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--alt); }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-card:hover .project-card-img img { transform: scale(1.06); }
.project-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-card-service { color: color-mix(in srgb, var(--secondary) 78%, #000); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .7rem; }
.project-card-title { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
.project-card-meta { color: var(--muted); font-size: .88rem; font-weight: 600; }
.project-card-meta i { color: var(--secondary); margin-right: 2px; }
.project-card-summary { color: var(--muted); font-size: .95rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-card .service-link { margin-top: 6px; }
.project-draft-tag { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.project-grid-compact { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.project-grid-compact .project-card-body { padding: 16px 18px 18px; gap: 6px; }
.project-grid-compact .project-card-title { font-size: 1.1rem; }
.gallery-more .btn span { opacity: .6; font-weight: 600; }

/* services card: second link under "Ask about this" */
.service-link-projects { margin-top: 0; }

/* ---------- project page ---------- */
.project-head-section { padding-top: clamp(32px, 5vw, 56px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--muted); margin-bottom: clamp(22px, 3vw, 34px); }
.back-link i { color: var(--secondary); transition: transform .25s var(--ease); }
.back-link:hover { color: var(--ink); }
.back-link:hover i { transform: translateX(-3px); }
.project-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.project-intro h1, .page-title { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.project-meta { margin-top: 16px; color: var(--muted); font-weight: 700; font-size: .95rem; }
.project-meta i { color: var(--secondary); margin-right: 4px; }
.project-summary { margin-top: 18px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 52ch; }
.project-count { margin-top: 18px; font-size: .88rem; font-weight: 700; color: var(--body); }
.project-count i { color: var(--secondary); margin-right: 4px; }
.project-cover { margin: 0; cursor: zoom-in; }
.project-cover img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 82svh; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--alt); }
.project-cover figcaption, .project-photo figcaption { color: var(--muted); font-size: .88rem; line-height: 1.45; margin-top: 10px; }

.project-photos-section { padding: clamp(48px, 7vw, 88px) 0; }
.project-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 18px; align-items: start; }
.project-photo { margin: 0; cursor: zoom-in; }
.project-photo-img { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; background: color-mix(in srgb, var(--primary) 10%, #e9e6e1); }
.project-photo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-photo:hover .project-photo-img img { transform: scale(1.05); }
.project-cover:focus-visible img, .project-photo:focus-visible .project-photo-img { outline: 3px solid var(--secondary); outline-offset: 3px; }

.project-story-inner { max-width: 860px; display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); }
.project-writeup p:not(.eyebrow) { font-size: 1.06rem; line-height: 1.75; max-width: 65ch; }
.project-writeup p + p { margin-top: 1em; }
.project-video .video-tile { display: block; width: 100%; max-width: 420px; }
.project-review { margin-bottom: 0; }

.also-home .project-card { box-shadow: none; }

/* ---------- quote band ---------- */
.quote-band { padding: clamp(64px, 8vw, 104px) 0; }
.quote-band-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; }
.quote-band-inner .eyebrow { justify-content: center; }
.quote-band-inner .section-desc { margin: 14px auto 0; max-width: 54ch; }
.quote-band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.not-found { max-width: 720px; }
.not-found .btn { margin-top: 26px; }

/* ---------- service + area pages (added Nov 2026) ---------- */
.landing-intro { margin-top: 14px; color: var(--body); font-size: 1.02rem; line-height: 1.7; max-width: 56ch; }
.landing-label { margin-top: 24px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--secondary) 78%, #000); }
.landing-chips { margin-top: 12px; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.landing-cover { cursor: default; }
.landing-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; gap: 22px; align-items: start; }
.landing-reviews .review-card small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.landing-more h2 { margin-bottom: 6px; }
.landing-more .area-chips li { background: #fff; }
.chip-count { margin-left: 4px; font-size: .78rem; font-weight: 800; color: var(--muted); }
/* chips that link to a page (homepage areas, service + area pages) */
.area-chips li:has(> a), .area-chips li.has-page { padding: 0; }
.area-chips li > a { display: inline-flex; align-items: center; gap: 4px; padding: 9px 16px; border-radius: 999px; color: var(--ink); transition: background .25s, color .25s; }
.area-chips li > a:hover { background: color-mix(in srgb, var(--secondary) 22%, var(--alt)); }
.area-chips .chip-arrow { font-size: .7rem; margin: 0 0 0 4px; opacity: .55; transition: transform .25s var(--ease), opacity .25s; }
.area-chips li > a:hover .chip-arrow { transform: translateX(2px); opacity: 1; }
/* links on project pages: service eyebrow, town */
.eyebrow-link { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--secondary) 45%, transparent); }
.eyebrow-link:hover { border-bottom-color: currentColor; }
.meta-link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--secondary) 60%, transparent); text-underline-offset: 3px; }
.meta-link:hover { color: var(--ink); }
.project-review small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-areas a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 2px; }
.footer-areas a:hover { color: var(--secondary); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid-compact { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .project-head { grid-template-columns: 1fr; }
  .project-cover img { aspect-ratio: 4 / 5; max-height: 78svh; }
  .landing-cover { display: none; } /* the project cards straight below show the same work */
}
@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-grid-compact { grid-template-columns: 1fr 1fr; gap: 10px; }
  .project-grid-compact .project-card-body { padding: 12px 12px 14px; }
  .project-grid-compact .project-card-title { font-size: 1rem; }
  .project-grid-compact .project-card-service, .project-grid-compact .service-link { display: none; }
  .project-photos { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
  .project-photo figcaption { font-size: .8rem; }
  .quote-band-actions .btn { flex: 1 1 100%; }
  .landing-actions .btn { flex: 1 1 100%; }
  .landing-reviews { grid-template-columns: 1fr; }
}
