/* Portfolio overview: selected work first, full directories close at hand. */
.contact-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;color:var(--amber);font:600 16px/1.3 var(--headline);text-decoration:none;white-space:nowrap}
.contact-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}
body[data-site-page="home"] .hero{min-height:0;padding:44px 0 54px;margin-top:24px}
body[data-site-page="home"] .hero h1{font-size:clamp(64px,8vw,112px);line-height:1.05;margin-bottom:22px}
body[data-site-page="home"] .hero .lede{max-width:760px;margin:0 0 22px;font-size:clamp(18px,2vw,22px);line-height:1.65}
body[data-site-page="home"] .socials{margin-top:0}
.selected-work{margin-top:46px;text-align:left}
.selected-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:20px}
.selected-heading h2{font:600 28px/1.3 var(--headline);letter-spacing:-.02em;margin:0}
.selected-heading>a{color:var(--amber);font:500 17px/1.4 var(--headline);text-decoration:none;padding-block:10px}
.selected-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.selected-card{min-width:0;display:block;color:var(--paper);text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:20px}
.selected-card>img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:12px;background:var(--ink-2)}
.selected-card.selected-hardware>img{object-fit:contain;background:linear-gradient(145deg,var(--ink-2),color-mix(in srgb,var(--amber) 7%,var(--ink)))}
.selected-card h3{font:600 26px/1.2 var(--headline);letter-spacing:-.015em;margin:18px 0 10px}
.selected-card p{font:400 16px/1.65 var(--headline);color:var(--paper-dim);margin:0}
.selected-card:focus-visible{outline:2px solid var(--amber);outline-offset:5px}
.selected-card:hover h3{color:var(--amber)}
.current-update{display:block;margin-top:26px;max-width:760px;color:var(--paper-dim);font:400 17px/1.7 var(--headline);text-decoration:none}
.current-update:hover{color:var(--paper)}
.project-filters{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 26px}
.project-filters[hidden]{display:none}
.project-filters button{min-height:44px;padding:8px 18px;border:1px solid var(--line);border-radius:24px;background:none;color:var(--paper-dim);font:500 17px/1.3 var(--headline);cursor:pointer}
.project-filters button[aria-pressed="true"]{background:var(--amber);color:var(--ink);border-color:var(--amber)}
.project-filters button:focus-visible{outline:2px solid var(--amber);outline-offset:3px}
#building [data-project-category][hidden]{display:none!important}
#building .card-frc-film{grid-column:1/-1}
body[data-site-page="home"] .card .pm{font-size:14px;letter-spacing:.04em}
.film-index{margin-top:28px}
.film-index summary{width:fit-content;min-height:44px;padding:10px 0;color:var(--amber);font:500 18px/1.4 var(--headline);cursor:pointer}
.film-index summary:focus-visible{outline:2px solid var(--amber);outline-offset:4px}
.film-index-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 24px;margin-top:24px}
.film-index-card{min-width:0;display:block;color:var(--paper);text-decoration:none}
.film-index-card .show-cover{border-radius:10px;overflow:hidden}
.film-index-card .show-copy{padding:18px 0 0}
.film-index-card h4{font:600 23px/1.3 var(--headline);margin:0 0 10px;letter-spacing:-.015em}
.film-index-card p{font:400 16px/1.65 var(--headline);color:var(--paper-dim);margin:0}
.film-index-card:focus-visible{outline:2px solid var(--amber);outline-offset:5px}
.film-index-card:hover h4{color:var(--amber)}
.video-destination{display:flex;align-items:center;gap:8px;margin-top:18px;font:500 16px/1.4 var(--headline);color:var(--amber)}
.film-heading{flex-wrap:wrap}
@media(max-width:1000px){.selected-grid{gap:16px}.selected-card h3{font-size:23px}.film-index-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px),(any-pointer:coarse) and (max-width:1400px){
  html.app-mode .topbar .contact-link{margin-left:auto;padding:8px;font-size:16px}
  html.app-mode .app-settings-trigger{margin-left:0;flex-shrink:0}
  html.app-mode body[data-site-page="home"] .hero{min-height:0;padding:30px 0 36px;margin-top:16px}
  body[data-site-page="home"] .hero h1{font-size:clamp(48px,13vw,66px)}
  body[data-site-page="home"] .hero .lede{font-size:18px;line-height:1.65;margin-bottom:24px}
  .selected-work{margin-top:32px}
  .selected-heading{margin-bottom:16px;gap:10px}
  .selected-heading h2{font-size:26px}
  .selected-heading>a{font-size:16px}
  .selected-grid{grid-template-columns:1fr;gap:22px}
  .selected-card{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(0,1fr);gap:18px;align-items:start;padding-bottom:22px}
  .selected-card>img{aspect-ratio:4/3;border-radius:8px}
  .selected-card h3{font-size:24px;margin:0 0 8px}
  .selected-card p{font-family:var(--mobile-sans);font-size:16px;line-height:1.55}
  .current-update{font-family:var(--mobile-sans);font-size:16px}
  .mobile-tabbar{grid-template-columns:repeat(4,minmax(0,1fr))}
  body[data-site-page="home"] .mobile-tabbar a>span{font-size:12px}
  .film-index-grid{gap:26px 18px}
  .film-index-card h4{font:650 22px/1.3 var(--mobile-sans)}
  .film-index-card p{font-family:var(--mobile-sans)}
  body[data-site-page="home"] .film-index-card .show-copy{padding:16px 0 0}
  .project-filters{gap:8px}
  .project-filters button{padding:8px 15px;font-size:16px}
}
@media(max-width:480px){.film-index-grid{grid-template-columns:1fr}.selected-card{grid-template-columns:100px minmax(0,1fr);gap:16px}.selected-card h3{font-size:22px}}
