.category-page { min-height: 100dvh; background: var(--paper); }
.category-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(244,240,233,.94); backdrop-filter: blur(16px); }
.category-header-inner { min-height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.category-header .header-phone { justify-self: end; margin-left: 0; }
.category-home-link { color: var(--muted); font-size: 12px; font-weight: 650; transition: color .2s ease; }
.category-home-link:hover { color: var(--ink); }
.category-main { min-height: calc(100dvh - 156px); }
.category-intro { padding: 88px 0 58px; }
.category-intro .eyebrow { margin-bottom: 18px; }
.category-intro h1 { max-width: 820px; margin: 0 0 22px; font-family: var(--serif); font-size: clamp(48px, 7vw, 92px); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.category-lead { max-width: 620px; margin: 0 0 38px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.category-switcher { display: flex; flex-wrap: wrap; gap: 8px; }
.category-switcher a { padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.38); font-size: 11px; font-weight: 700; transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease; }
.category-switcher a:hover { color: var(--ink); border-color: rgba(36,35,31,.28); transform: translateY(-1px); }
.category-switcher a:active { transform: scale(.98); }
.category-switcher a[aria-current="page"] { color: #fff; border-color: var(--charcoal); background: var(--charcoal); }
.category-gallery-section { padding: 0 0 112px; }
.category-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.category-gallery[data-count="1"] { grid-template-columns: minmax(0, 400px); }
.category-gallery[data-count="2"] { max-width: 818px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-item { min-width: 0; opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.65,.2,1); }
.gallery-item.is-visible { opacity: 1; transform: none; }
.gallery-item button { width: 100%; display: block; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: #d9d2c7; cursor: zoom-in; box-shadow: 0 18px 46px rgba(43,37,31,.10); transition: transform .3s ease, box-shadow .3s ease; }
.gallery-item button:hover { transform: translateY(-4px); box-shadow: 0 26px 58px rgba(43,37,31,.15); }
.gallery-item button:active { transform: scale(.99); }
.gallery-item img { aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s cubic-bezier(.2,.65,.2,1); }
.gallery-item button:hover img { transform: scale(1.025); }
.gallery-skeleton { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(100deg, #ddd6cc 20%, #ebe6de 42%, #ddd6cc 64%); background-size: 220% 100%; animation: gallery-shimmer 1.4s ease infinite; }
.gallery-empty { grid-column: 1 / -1; margin: 0; padding: 70px 24px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: rgba(255,255,255,.34); text-align: center; }
.gallery-empty strong { display: block; margin-bottom: 8px; color: var(--ink); font-family: var(--serif); font-size: 26px; font-weight: 400; }
.category-footer { border-top: 1px solid var(--line); background: var(--paper-light); }
.category-footer-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.category-footer-inner > a:last-child { font-size: 12px; font-weight: 700; }
.gallery-dialog { width: min(1100px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 48px 18px 18px; overflow: visible; border: 0; border-radius: var(--radius); background: #1d1f1c; color: #fff; box-shadow: 0 30px 100px rgba(20,18,16,.38); }
.gallery-dialog::backdrop { background: rgba(24,22,20,.78); backdrop-filter: blur(8px); }
.gallery-dialog > button { position: absolute; top: 13px; right: 18px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; color: #fff; background: transparent; font-size: 11px; cursor: pointer; }
.gallery-dialog figure { margin: 0; }
.gallery-dialog img { width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; }
.gallery-dialog figcaption { padding: 12px 6px 0; color: rgba(255,255,255,.74); font-size: 12px; }
@keyframes gallery-shimmer { to { background-position: -120% 0; } }
@media (max-width: 760px) {
  .category-header-inner { min-height: 76px; grid-template-columns: 1fr auto; }
  .category-home-link { display: none; }
  .category-intro { padding: 60px 0 40px; }
  .category-intro h1 { font-size: clamp(42px, 14vw, 64px); }
  .category-gallery, .category-gallery[data-count="1"], .category-gallery[data-count="2"] { max-width: none; grid-template-columns: 1fr; }
  .category-gallery-section { padding-bottom: 74px; }
  .category-footer-inner { min-height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item { opacity: 1; transform: none; transition: none; }
  .gallery-item button, .gallery-item img, .category-switcher a { transition: none; }
  .gallery-skeleton { animation: none; }
}
