/* A single image-led project, framed by a golden typographic split. */
#main { overflow-anchor: none; }
body.mosaic-page { height: 100svh; overflow: hidden; overscroll-behavior: none; }
.mosaic-page #main, .mosaic-page #homeView { height: 100svh; overflow: hidden; }
.mosaic-page #main { padding-top: 0; }
.mosaic-page .site-footer { display: none; }
.project-mosaic { position: relative; height: 100svh; min-height: 0; padding-top: var(--header-height); color: var(--ink); background: var(--paper); }
.wallpaper-stage { display: flex; flex-direction: column; height: calc(100svh - var(--header-height)); min-height: 0; padding: 16px var(--gutter) 8px; }
.mosaic-toolbar { display: flex; flex: 0 0 auto; align-items: center; gap: 24px; min-width: 0; }
.mosaic-tagline { flex: 1 1 auto; min-width: 0; margin: 0 auto 0 0; font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: .055em; text-transform: uppercase; color: var(--muted); background: none; }
.mosaic-filters { display: flex; flex: 0 0 auto; align-items: center; gap: 20px; min-width: 0; padding: 0; background: none; }
.mosaic-filters button { display: inline-flex; align-items: baseline; gap: 4px; min-height: 44px; padding: 11px 0 8px; border: 0; border-bottom: 1px solid transparent; color: var(--ink); background: none; font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.mosaic-filters button span { align-self: flex-start; font-size: 8px; font-weight: 400; color: var(--muted); }
.mosaic-filters button[aria-pressed="true"] { border-bottom-color: var(--blue); }
.mosaic-filters button:hover { color: var(--blue); }
.mosaic-motion { flex: 0 0 auto; min-height: 44px; padding: 10px 0; border: 0; color: var(--muted); background: none; font-size: 10px; line-height: 1.4; white-space: nowrap; }
.mosaic-motion::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 7px; border: 1px solid var(--blue); border-radius: 50%; vertical-align: 1px; }
.mosaic-motion[aria-pressed="true"]::before { background: var(--blue); }
.wallpaper-wrap { flex: 1 1 0; width: 100%; min-width: 0; min-height: 0; padding-top: 16px; }
.project-mosaic .wallpaper-frame { display: block; position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: none; aspect-ratio: auto; background: none; box-shadow: none; outline: none; isolation: isolate; }
.editorial-slot { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; }
.editorial-slot:not([data-slot="0"]) { display: none; }
.project-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.61803398875fr); grid-template-rows: minmax(0,1fr); gap: clamp(22px, 3vw, 48px); position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; color: var(--ink); background: var(--paper); transform-origin: center; }
.editorial-image { grid-column: 2; grid-row: 1; display: block; position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #e9e8e2; }
.editorial-image img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.project-card.original-work .editorial-image { background: #fff; }
.project-card.original-work .editorial-image img { object-fit: contain; }
.editorial-caption { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-width: 0; min-height: 0; padding: 0 0 4px; color: var(--ink); background: var(--paper); }
.editorial-caption > div { min-width: 0; }
.editorial-meta { margin: 0 0 clamp(30px, 5vh, 60px); color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; letter-spacing: .065em; text-transform: uppercase; }
.editorial-meta > span { display: inline-block; min-width: 30px; margin-right: 8px; color: var(--blue); font-variant-numeric: tabular-nums; }
.editorial-caption h2 { max-width: 10.5ch; margin: 0; color: var(--ink); font-size: clamp(40px, 5.3vw, 76px); font-weight: 600; line-height: .98; letter-spacing: -.055em; overflow-wrap: normal; word-break: normal; text-wrap: balance; }
.editorial-arrow { align-self: flex-start; flex: 0 0 auto; color: var(--blue); font-size: 40px; font-weight: 400; line-height: 1; }
.project-card:hover .editorial-caption h2 { color: var(--ink); }
.project-card:hover .editorial-arrow { transform: translate(2px, -2px); }
.project-card:focus-visible { outline: none; }
.project-card:focus-visible .editorial-image { outline: 2px solid var(--blue); outline-offset: -3px; }
.project-card:focus-visible .editorial-caption h2 { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 7px; }
.mosaic-controls { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; min-height: 44px; margin-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.4; }
.mosaic-control-nav { display: flex; align-items: center; gap: 8px; }
.editorial-index { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.mosaic-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; padding: 8px 10px; border: 0; color: var(--ink); background: transparent; font-size: 16px; line-height: 1; }
.mosaic-controls button:hover { color: var(--blue); }
.mosaic-controls button:disabled { opacity: .3; cursor: default; }
.mosaic-progress, .mosaic-position { color: var(--ink); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mosaic-help, .mosaic-scroll-cue { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
#mosaicStatus { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) and (min-width: 761px) {
  .mosaic-toolbar { gap: 20px; }
  .mosaic-tagline { max-width: 22ch; font-size: 10px; }
  .mosaic-filters { gap: 14px; }
  .mosaic-filters button { font-size: 11px; }
  .editorial-caption h2 { font-size: clamp(38px, 5.2vw, 55px); }
  .editorial-meta { margin-bottom: 32px; font-size: 10px; }
}
@media (max-width: 760px) {
  .wallpaper-stage { padding: 10px var(--gutter) 7px; }
  .mosaic-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 12px; }
  .mosaic-tagline { grid-column: 1 / -1; max-width: none; font-size: 10px; line-height: 1.4; padding-bottom: 2px; }
  .mosaic-filters { gap: 11px; }
  .mosaic-filters button { min-height: 44px; padding: 10px 0 7px; font-size: 10px; gap: 2px; }
  .mosaic-filters button span { font-size: 7px; }
  .mosaic-motion { min-height: 44px; font-size: 9px; }
  .mosaic-motion::before { margin-right: 5px; }
  .wallpaper-wrap { padding-top: 10px; }
  .project-card { display: flex; flex-direction: column; gap: 0; }
  .editorial-image { flex: 1 1 0; width: 100%; min-height: 0; }
  .editorial-caption { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 14px; flex: 0 0 auto; min-height: 112px; padding: 12px 0 0; }
  .editorial-caption > div { grid-column: 1; }
  .editorial-meta { margin: 0 0 8px; font-size: 9px; line-height: 1.4; }
  .editorial-meta > span { min-width: 22px; margin-right: 4px; }
  .editorial-caption h2 { max-width: 16ch; font-size: clamp(28px, 8vw, 34px); line-height: .98; font-weight: 600; letter-spacing: -.05em; }
  .editorial-arrow { grid-column: 2; align-self: end; padding-bottom: 6px; font-size: 30px; }
  .mosaic-controls { min-height: 44px; gap: 8px; margin-top: 5px; }
  .mosaic-controls button { padding: 8px; }
  .mosaic-help, .mosaic-scroll-cue { max-width: 15ch; font-size: 9px; }
}
@media (max-height: 560px) and (min-width: 761px) {
  .wallpaper-stage { padding-top: 7px; padding-bottom: 4px; }
  .wallpaper-wrap { padding-top: 8px; }
  .editorial-meta { margin-bottom: 16px; font-size: 9px; }
  .editorial-caption h2 { max-width: 14ch; font-size: clamp(26px, 4.8vh, 38px); letter-spacing: -.04em; }
  .editorial-arrow { display: none; }
  .mosaic-controls { margin-top: 5px; }
}
@media print {
  body.mosaic-page, .mosaic-page #main, .mosaic-page #homeView { height: auto; overflow: visible; }
  .project-mosaic { height: auto; padding-top: 0; }
  .wallpaper-stage { display: block; height: auto; padding: 0; }
  .wallpaper-wrap { padding-top: 16px; }
  .project-mosaic .wallpaper-frame { height: 600px; }
  .mosaic-controls, .mosaic-motion { display: none; }
}
