/* v10: physique photo tiles that melt into the black page */
.kz-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
@media (max-width: 899px) { .kz-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.kz-tile { background: transparent !important; border: 0 !important; padding: 0 !important; position: relative; margin: 0; aspect-ratio: 3 / 4; max-width: 100%; overflow: hidden; display: flex; align-items: flex-end; }
.kz-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.12) brightness(.92) saturate(.85);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 52%, transparent 96%), linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 52%, transparent 96%), linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
          mask-composite: intersect; }
.kz-tile figcaption { position: relative; z-index: 1; display: grid; gap: 6px; padding: 0 6px 4px; }
.kz-tile .kz-d { font-size: clamp(28px, 3.4vw, 44px); line-height: .9; text-transform: uppercase; }
.kz-tile p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--kz-text); max-width: 32ch; }
@media (max-width: 480px) { .kz-tile .kz-d { font-size: 26px; } .kz-tile p { font-size: 12.5px; } }
.kz-dayone-bg img { filter: contrast(1.1) brightness(.85) !important; }

/* Logo: 正 tally mark beside the wordmark (27 Nov) */
.kz-wordmark { gap: .5em; }
.kz-wordmark .kz-tally { width: 1em; height: 1em; flex: none; fill: currentColor; }
.kz-wordmark span { line-height: 1; }

/* Logo animation: the tally counts itself in, stroke by stroke, once on load (header) and again on hover */
.kz-tally rect { transform-box: fill-box; }
.kz-tally rect:nth-child(odd) { transform-origin: left center; --sx: 0; --sy: 1; }
.kz-tally rect:nth-child(even) { transform-origin: center top; --sx: 1; --sy: 0; }
.kz-header .kz-tally rect { animation: kzStroke .28s cubic-bezier(.2,.7,.2,1) both; }
.kz-tally rect:nth-child(1) { animation-delay: .15s; }
.kz-tally rect:nth-child(2) { animation-delay: .4s; }
.kz-tally rect:nth-child(3) { animation-delay: .65s; }
.kz-tally rect:nth-child(4) { animation-delay: .9s; }
.kz-tally rect:nth-child(5) { animation-delay: 1.15s; }
.kz-wordmark:hover .kz-tally rect, .kz-wordmark:focus-visible .kz-tally rect { animation: kzStroke2 .28s cubic-bezier(.2,.7,.2,1) both; }
.kz-wordmark:hover .kz-tally rect:nth-child(1), .kz-wordmark:focus-visible .kz-tally rect:nth-child(1) { animation-delay: 0s; }
.kz-wordmark:hover .kz-tally rect:nth-child(2), .kz-wordmark:focus-visible .kz-tally rect:nth-child(2) { animation-delay: .2s; }
.kz-wordmark:hover .kz-tally rect:nth-child(3), .kz-wordmark:focus-visible .kz-tally rect:nth-child(3) { animation-delay: .4s; }
.kz-wordmark:hover .kz-tally rect:nth-child(4), .kz-wordmark:focus-visible .kz-tally rect:nth-child(4) { animation-delay: .6s; }
.kz-wordmark:hover .kz-tally rect:nth-child(5), .kz-wordmark:focus-visible .kz-tally rect:nth-child(5) { animation-delay: .8s; }
@keyframes kzStroke { from { transform: scale(var(--sx), var(--sy)); } to { transform: none; } }
@keyframes kzStroke2 { from { transform: scale(var(--sx), var(--sy)); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .kz-tally rect, .kz-wordmark:hover .kz-tally rect { animation: none !important; } }
.kz-header.kz-logo-done .kz-wordmark:not(:hover):not(:focus-visible) .kz-tally rect { animation: none; }

/* Logo: the 5th stroke (today) is red */
.kz-wordmark .kz-tally rect:nth-child(5) { fill: var(--kz-accent); }

/* Brand line beside the wordmark (added by build_site.py) */
.kz-wordmark .kz-tag { font-family: var(--kz-f-mono); font-size: 9px; letter-spacing: .16em; color: var(--kz-muted); white-space: nowrap; }
.kz-header .kz-wordmark { flex-wrap: wrap; justify-content: center; align-content: center; row-gap: 5px; }
.kz-header .kz-wordmark .kz-tag { flex-basis: 100%; text-align: center; }
@media (min-width: 900px) {
  .kz-header .kz-wordmark { flex-wrap: nowrap; }
  .kz-header .kz-wordmark .kz-tag { flex-basis: auto; font-size: 11px; padding-left: 14px; margin-left: 4px; border-left: 1px solid var(--kz-line); line-height: 1.6; }
}
