/* Website showcases: the Kingswood feature on /services/websites, the website portfolio, the design concepts and each
   concept. Builds on tokens.css, styles.css, landing.css, guides.css and site.css; see DESIGN.md.
   The screenshots and concept designs keep their own colours and type. Everything around them is the Bearing page:
   studio surface, Newsreader headings, Inter text, DM Mono labels, hairline frames, the track and the steel ball. */

/* ---------- A framed screenshot or design ---------- */
.shot { display: block; margin: 0; }
a.shot, .shot a { color: var(--graphite); }
.shot img { display: block; width: 100%; height: auto; outline: 1px solid var(--hairline); transition: outline-color .3s; }
a.shot:hover img, a.shot:focus-visible img { outline-color: var(--graphite); }
a.shot:focus-visible { outline: none; }
a.shot:focus-visible img { outline-width: 2px; }
.shot figcaption { margin-top: 10px; max-width: 46em; font-size: 13px; line-height: 1.5; color: var(--graphite-dim); }

/* Actions under a showcase: the primary race and the small mono links, on one line where they fit. */
.showcase-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; margin-top: 18px; }
.showcase-actions .race { margin-top: 0; }

/* ---------- Kingswood on /services/websites: the homepage's feature pair, under the page heading ---------- */
.content-page .guide-head:has(.showcase-feature) { max-width: none; }
.guide-head:has(.showcase-feature) > h1 { max-width: 880px; }
.showcase-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 24px clamp(22px, 5vw, 64px); align-items: center;
  margin-top: clamp(28px, 4vw, 44px); padding-block: clamp(22px, 3vw, 32px); border-block: 1px solid var(--hairline);
}
.showcase-feature h2 { font-family: var(--serif); font-weight: 400; font-size: var(--type-block); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.showcase-feature p { margin-top: 10px; max-width: 34em; font-size: 16px; line-height: 1.65; color: var(--graphite-dim); text-wrap: pretty; }
.showcase-feature .showcase-actions { margin-top: 16px; }
.guide-head .showcase-feature + .lead-jumps { margin-top: 20px; }
.guide-head .lead-jumps + .standfirst { margin-top: 28px; }
.guide-head:has(.lead-jumps) + .showcase-part { margin-top: clamp(24px, 4vw, 54px); }

/* ---------- Website pages without a guide body (portfolio, concepts, a concept) ---------- */
.showcase-page .guide-head { padding-bottom: clamp(28px, 4vw, 48px); }
.showcase-page .guide-head .standfirst + .standfirst { margin-top: 14px; }

/* Each part opens on the ruled line with end ticks, like a hub section. */
.showcase-part { position: relative; margin-top: clamp(56px, 6vw, 96px); padding-top: clamp(36px, 4.4vw, 56px); }
.showcase-part::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline);
  background: linear-gradient(var(--hairline), var(--hairline)) center / 100% 1px no-repeat;
}
.showcase-part h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.showcase-part p { max-width: 38em; font-size: 16px; line-height: 1.65; color: var(--graphite-dim); text-wrap: pretty; }
.showcase-part p + p { margin-top: 12px; }
.showcase-part p a:not(.track-link):not(.race) { color: var(--graphite); text-decoration: underline; text-decoration-color: var(--track); text-underline-offset: 3px; }
.showcase-part .status { margin: 0 0 12px; }

/* ---------- Portfolio ---------- */
/* The lead project: its notes as a ruled row (name left, text right), then the screenshot across the content width. */
.portfolio-lead .shot { margin-top: clamp(24px, 3vw, 36px); }
.portfolio-lead .portfolio-notes {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(28px, 5vw, 72px); align-items: baseline;
}
.portfolio-lead .portfolio-notes .showcase-actions { margin-top: 14px; }

/* The other projects: notes and screenshot side by side, the screenshot taking the larger share. */
.portfolio-pair { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px clamp(28px, 5vw, 72px); align-items: center; }
.portfolio-pair.notes-after { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.portfolio-pair.notes-after .shot { grid-column: 1; grid-row: 1; }
.portfolio-pair.notes-after .portfolio-notes { grid-column: 2; grid-row: 1; }
.portfolio-notes h2 + p { margin-top: 14px; }

/* Our own site, before and after: two prints, the second set a little lower. */
.editions { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px clamp(28px, 5vw, 72px); align-items: start; }
.editions h2 + p { margin-top: 14px; }
.prints { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); }
.prints .shot:last-child { margin-top: clamp(28px, 5vw, 72px); }

/* ---------- Concepts ---------- */
.concept-filters { margin-top: 28px; border-block: 1px solid var(--hairline); padding-block: 4px; }
.concept-filters ul { list-style: none; display: flex; flex-wrap: wrap; column-gap: clamp(18px, 2.4vw, 32px); }
.concept-filters .track-link { gap: 8px; }
.concept-filters .track-link[aria-pressed="true"] { color: var(--graphite); }
.concept-filters .track-link[aria-pressed="true"]::before { transform: scaleX(1); background: var(--graphite); }
.concept-filters .count { color: var(--graphite-dim); letter-spacing: 0.04em; }

.concept-grid {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 5vw, 72px) clamp(22px, 4vw, 56px); margin-top: clamp(32px, 4vw, 48px);
}
.concept-grid > li[hidden] { display: none; }
.concept-card > a { display: block; color: var(--graphite); text-decoration: none; }
.concept-card > a:focus-visible { outline: none; }
.concept-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; outline: 1px solid var(--hairline); transition: outline-color .3s; }
.concept-card > a:hover img, .concept-card > a:focus-visible img { outline-color: var(--graphite); }
.concept-card > a:focus-visible img { outline-width: 2px; }
.concept-card h2 { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: var(--type-block); line-height: 1.15; letter-spacing: -0.01em; }
.concept-card > a:hover h2 { text-decoration: underline; text-decoration-color: var(--track); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.concept-card .status { margin-top: 6px; }
.concept-card p { margin-top: 8px; max-width: 34em; font-size: 15.5px; line-height: 1.6; color: var(--graphite-dim); }

/* ---------- One concept ---------- */
.concept-spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 32px clamp(28px, 4.5vw, 64px); align-items: center; padding-bottom: clamp(36px, 4vw, 56px); }
.concept-spread .guide-label { margin-top: 0; }
.concept-spread h1 { margin-top: 14px; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -0.018em; text-wrap: balance; }
.concept-spread .standfirst { margin-top: 18px; font-size: 18px; line-height: 1.5; color: var(--graphite); text-wrap: pretty; }
.concept-spread .standfirst + p { margin-top: 12px; font-size: 15.5px; line-height: 1.65; color: var(--graphite-dim); text-wrap: pretty; }
.concept-spread .showcase-actions { margin-top: 22px; flex-direction: column; align-items: flex-start; gap: 6px; }
.concept-pager { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 20px; }
.concept-pager::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline);
  background: linear-gradient(var(--hairline), var(--hairline)) center / 100% 1px no-repeat;
}
.concept-pager .pager-steps { display: flex; gap: 4px 28px; flex-wrap: wrap; }

/* ---------- Phone and narrow screens ---------- */
@media (max-width: 959px) {
  .showcase-feature, .portfolio-pair, .portfolio-pair.notes-after, .editions, .concept-spread { grid-template-columns: minmax(0, 1fr); }
  .portfolio-pair .portfolio-notes, .portfolio-pair.notes-after .portfolio-notes { grid-row: 1; grid-column: 1; }
  .portfolio-pair .shot, .portfolio-pair.notes-after .shot { grid-row: 2; grid-column: 1; }
  .concept-spread .shot { grid-row: 1; }
}
@media (max-width: 759px) {
  .portfolio-lead .portfolio-notes { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .concept-grid { grid-template-columns: minmax(0, 1fr); }
  .prints { grid-template-columns: minmax(0, 1fr); }
  .prints .shot:last-child { margin-top: 8px; }
  .concept-filters ul { column-gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .shot img, .concept-card img { transition: none; }
}

/* Small pieces shared by the website pages. */
.guide-head.crumbs-only { padding-bottom: clamp(20px, 3vw, 32px); }
.showcase-page .guide-enquiry-text a:not(.race):not(.track-link) { color: var(--graphite); text-decoration: underline; text-decoration-color: var(--track); text-underline-offset: 3px; }
.showcase-page .guide-enquiry-text strong { font-weight: 500; color: var(--graphite); }
.showcase-page .guide-enquiry .showcase-actions { margin-top: 24px; }
@media (max-width: 759px) {
  .concept-spread h1 { font-size: clamp(30px, 8.6vw, 40px); }
}
/* Status labels keep the 11px mono size wherever a paragraph rule would enlarge them. */
.showcase-page p.status, .showcase-feature p.status { font-size: 11px; line-height: 1.5; letter-spacing: 0.08em; color: var(--graphite-dim); max-width: none; }
/* Controls inside the closing block are drawn by their track, not underlined like the text links around them. */
.guide-enquiry a.race, .guide-enquiry a.track-link, .showcase-actions a.race, .showcase-actions a.track-link { text-decoration: none; }

/* ---------- Two working examples (websites page, concepts) ---------- */
.example-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(22px, 4vw, 56px); align-items: start; }
.example .shot img { aspect-ratio: 3 / 2; object-fit: cover; }
.example .status { margin-top: 16px; }
.example h2, .example h3 { margin-top: 4px; font-family: var(--serif); font-weight: 400; font-size: var(--type-block); line-height: 1.15; letter-spacing: -0.01em; color: var(--graphite); }
.example p:not(.status) { margin-top: 8px; max-width: 34em; font-size: 15.5px; line-height: 1.6; color: var(--graphite-dim); text-wrap: pretty; }
.example .track-link { margin-top: 6px; }
.example:hover .shot img { outline-color: var(--graphite); }
.showcase-page p.status, .example p.status { font-size: 11px; line-height: 1.5; letter-spacing: 0.08em; color: var(--graphite-dim); max-width: none; }
.guide-head .showcase-feature + .example-pair { margin-top: clamp(28px, 3.4vw, 44px); }
.guide-head .example-pair + .lead-jumps { margin-top: clamp(24px, 3vw, 36px); }
.examples-band > p { margin-top: 14px; }
.examples-band .example-pair { margin-top: clamp(24px, 3vw, 36px); }
.gallery-part .concept-filters { margin-top: 22px; }
.concept-live { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 14.5px; line-height: 1.55; color: var(--graphite-dim); }
@media (max-width: 759px) {
  .example-pair { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
}
