/* Project hubs only, on top of tokens.css and site.css. */

.project-page { padding-bottom: 2rem; }
.project-hub { padding: 5rem 0 0; }
.project-hub__hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .95fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; min-height: 34rem; }
.project-hub__hero-copy { max-width: 38rem; }
.project-hub__hero h1 { color: var(--accent); font-size: clamp(3rem, 5.5vw, 4.6rem); }
.project-hub__statement { max-width: 20ch; margin: .75rem 0 0; font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.project-hub__lede { max-width: 34rem; margin: 2rem 0 0; color: var(--text-muted); font-size: 1.2rem; }
/* No mat around the image: the image edge is the frame, as on the homepage cards. */
.project-hub__media { margin: 0; }
.project-hub__media img { display: block; width: 100%; height: auto; border: 1px solid var(--image-edge); }
.project-hub__media figcaption, .project-hub__gallery figcaption { margin: .75rem .1rem 0; color: var(--text-muted); font-size: .9rem; line-height: 1.45; }
.demo-toggle { min-height: 44px; margin-top: .75rem; padding: .65rem 1rem; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 600 var(--type-action) var(--sans); cursor: pointer; }
.demo-toggle:hover, .demo-toggle:focus-visible { border-color: var(--blue); background: var(--blue-wash); }
.project-hub__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
/* Same voice as the homepage actions: filled in the project's colour, then an outlined secondary. */
.project-hub__action { display: inline-flex; align-items: center; min-height: 44px; padding: .75rem 1rem; border: 1px solid var(--accent); background: var(--accent); color: var(--text-on-accent); font-family: var(--sans); font-size: var(--type-action); font-weight: 600; text-decoration: none; transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease); }
.project-hub__action::after { content: "↗"; margin-left: 1rem; }
.project-hub__action:hover, .project-hub__action:focus-visible { transform: translateY(-2px); filter: brightness(1.08); }
.project-hub__action--secondary { border-color: var(--line-strong); background: transparent; color: var(--text); }
.project-hub__action--secondary::after { color: var(--accent); }
.project-hub__action--secondary:hover, .project-hub__action--secondary:focus-visible { border-color: var(--accent); filter: none; }
.project-hub__status { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); font-family: var(--mono); font-size: var(--type-label); letter-spacing: .06em; text-transform: uppercase; }
/* Every section below the hero shares one two-column rhythm: name on the left, substance on the right. */
.project-hub__section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; padding: 4rem 0; border-top: 1px solid var(--line-strong); }
.project-hub__section:first-of-type { margin-top: 5rem; }
.project-hub__section h2 { max-width: 12ch; }
.project-hub__copy { max-width: 38rem; color: var(--text-muted); font-size: 1.08rem; }
.project-hub__copy > p { margin: 0; }
.project-hub__facts { display: grid; gap: .7rem; margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.project-hub__facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
.project-hub__facts dt { color: var(--text-muted); }
.project-hub__facts dd { margin: 0; color: var(--text); font-size: var(--type-fact); }
.project-hub__limits { display: grid; max-width: 38rem; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.project-hub__limits li { padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.02rem; line-height: 1.5; text-wrap: pretty; }
.project-hub__latest .project-link { margin-top: 1rem; }
.project-hub__latest .project-link + .project-link { margin-top: 0; }
/* Gameplay runs the full measure: it is the evidence the homepage card can't hold. */
.project-hub__play { padding: 4rem 0; border-top: 1px solid var(--line-strong); }
.project-hub__play h2 { margin-bottom: 2rem; }
.project-hub__gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.project-hub__gallery li:first-child { grid-row: 1 / span 2; }
/* Two shots share the measure equally, so the second stays legible. */
.project-hub__gallery--pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; align-items: start; }
.project-hub__gallery--pair li:first-child { grid-row: auto; }
.project-hub__gallery figure { margin: 0; }
.project-hub__gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--image-edge); }
.project-hub__contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; margin: 1rem 0 4rem; padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid var(--line-strong); border-radius: .15rem; background: var(--surface-inset); }
.project-hub__contact h2 { max-width: 14ch; }
.project-hub__contact p { max-width: 34rem; margin: 0; color: var(--text-muted); font-size: var(--type-lead); }
.project-hub__contact .contact-actions { margin-top: 1.5rem; }
/* The hub's ask takes the project's colour, as its primary action does: pink on Phase Sync, blue on Dimmerly. */
.contact-action--accent { border-color: var(--accent); background: var(--accent); }
/* The hint belongs to the button above it, so it sits in that button's column. */
.project-hub__contact .contact-actions { align-items: flex-start; }
.project-hub__contact .cta-hint { max-width: none; margin: 0; color: var(--text-muted); font-size: .9rem; line-height: 1.45; }
/* Its own line under the actions, never beside them. */
.project-hub__platform-link { display: flex; width: fit-content; margin-top: 1rem; }
/* Where the actions stack (wide screens), both buttons share one width, as in the homepage contact panel. */
@media (min-width: 64.01rem) { .project-hub__contact .cta-action { justify-items: stretch; } }
/* It leads to the platform side, so its arrow is blue on every hub. */
.project-hub__platform-link::after { color: var(--blue); }
.project-hub__nav { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0 0; border-top: 1px solid var(--line-strong); }
.project-hub__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-family: var(--mono); font-size: var(--type-label); letter-spacing: .06em; text-transform: uppercase; }
.project-hub__nav a:hover, .project-hub__nav a:focus-visible { color: var(--blue); }
@media (max-width: 44rem) {
  .project-hub { padding-top: 3rem; }
  .project-hub__hero { display: flex; flex-direction: column; align-items: stretch; min-height: auto; gap: 2.5rem; }
  .project-hub__hero h1 { font-size: clamp(2.8rem, 12vw, 4.4rem); }
  .project-hub__lede { font-size: 1.08rem; }
  .project-hub__section, .project-hub__contact { display: block; padding: 3rem 0; }
  .project-hub__section:first-of-type { margin-top: 3rem; }
  .project-hub__contact { padding: 2rem 1.25rem; }
  .project-hub__copy, .project-hub__limits, .project-hub__latest-body, .project-hub__contact-body { margin-top: 1.5rem; }
  .project-hub__play { padding: 3rem 0; }
  .project-hub__gallery { grid-template-columns: minmax(0, 1fr); }
  .project-hub__gallery li:first-child { grid-row: auto; }
  .project-hub__nav { flex-wrap: wrap; }
}
