/* Shared navigation and accessible controls. */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #000; outline-offset: 5px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; padding: 12px 18px;
  background: #fff; color: #000; z-index: 200;
}
nav.site-nav {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 20px; min-height: 0; margin-bottom: 20px;
}
.site-nav a { color: #666; font-size: 1rem; font-weight: 700; line-height: 1.5; }
.site-nav .site-brand { color: #000; font-size: 1.4rem; font-weight: 900; margin-right: auto; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: #000; opacity: 1; }
.site-nav .contact-link { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.contact-cta { margin: 64px 0 40px; padding-top: 28px; border-top: 1px solid #ddd; }
.contact-cta h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin: 0 0 10px; }
.contact-cta p { color: #555; margin: 0 0 20px; }
.contact-cta a { color: #000; font-weight: 700; text-underline-offset: 4px; }

/* Keep the cat as the centerpiece, with readable context on its own surface. */
body.landing {
  margin: 0; background: #fff; color: #000;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.landing * { box-sizing: border-box; }
.landing-shell {
  position: relative; min-height: 100vh; min-height: 100svh;
  overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end;
}
.landing-art { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.landing .cat-image {
  position: absolute; height: 130vh; height: 130svh; width: auto;
  bottom: -5px; right: 0; transform: translateX(-5%);
}
.landing-intro {
  margin: 40px; padding: 24px 28px; max-width: 440px;
  background: #fff;
}
.landing-intro h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.05em; line-height: 1; margin: 0 0 16px; }
.landing-intro p { font-size: 1.05rem; line-height: 1.5; margin: 0; }
.landing-intro .location { color: #666; font-size: 0.9rem; margin-top: 5px; }
.landing-nav { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.landing-nav a { color: #000; font-size: 1rem; font-weight: 700; text-decoration: none; padding: 6px 0; }
.landing-nav .contact-link { text-decoration: underline; text-underline-offset: 4px; }
.landing-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Portfolio improvements. */
.project-list { min-width: 0; width: 100%; }
.sidebar-title, .filter-btn, .detail-item strong, .footer-content, .footer-right a { color: #666; }
.filter-btn { min-height: 28px; }
.meta-line { flex-wrap: wrap; }
.project-role { font-size: 0.85rem; color: #555; margin: -3px 0 16px; }
button.video-facade { border: 0; padding: 0; cursor: pointer; background: #000; font: inherit; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-facade::before { z-index: 1; }
.video-facade:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.video-wrapper:focus-within .play-btn { transform: scale(1.1); }
.watch-link { display: inline-block; color: #555; font-size: 0.85rem; margin-bottom: 16px; text-underline-offset: 3px; }
.project-details { margin-top: 4px; }
.project-details summary { cursor: pointer; font-size: 0.9rem; font-weight: 700; padding: 8px 0; width: fit-content; }
.project-details .details-inner { background: #fafafa; border: 1px solid #eee; border-radius: 4px; margin-top: 8px; }
.filter-hint { display: none; color: #666; font-size: 0.75rem; margin: 8px 0 0; }

@media (max-width: 900px) {
  .layout-wrapper { gap: 24px; }
  .stats-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 32px; padding-bottom: 24px; }
  .counter-wrapper { font-size: clamp(2rem, 7vw, 4rem); letter-spacing: -0.06em; white-space: nowrap; }
  .stats-label { font-size: 0.8rem; line-height: 1.35; }
  .filter-menu { gap: 18px; }
  .filter-btn { min-height: 36px; }
  .filter-hint { display: block; }
  .project { margin-bottom: 64px; }
}
@media (max-width: 768px) {
  .landing-shell { align-items: flex-start; min-height: max(100svh, 650px); }
  .landing-intro { margin: 20px; padding: 16px 0 20px; max-width: 100%; }
  .landing .cat-image { height: 65svh; min-height: 400px; transform: translateX(40%); }
  .landing-nav { gap: 24px; margin-top: 16px; }
  nav.site-nav { gap: 16px; }
  .site-nav .site-brand { font-size: 1.15rem; }
  .site-nav a { font-size: 0.85rem; padding: 6px 0; }
  .contact-cta { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
