.project-mobile-close { display: none; }
@media (max-width: 800px), (max-width: 900px) and (max-height: 540px) {
  .topbar { flex-direction: column; align-items: stretch; gap: 10px; padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 8px; background: var(--paper); }
  .brand { width: fit-content; }
  .brand img { width: 34px; height: 30px; }
  .brand-wordmark { font-size: 23px; }
  .top-nav { position: static; display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: none; font-size: 14px; }
  .nav-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 2px; }
  body:not([data-view="home"]) .topbar { background: linear-gradient(var(--paper) 90%, transparent); }
  body[data-view="home"] { overflow-x: hidden; overflow-y: auto; }
  .home-view { min-height: max(calc(800px + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)), 100svh); }
  .personal-intro { position: absolute; top: calc(142px + env(safe-area-inset-top, 0px)); left: 24px; display: flex; align-items: center; gap: 22px; }
  .personal-photo { width: 60px; }
  .personal-intro h2 { margin: 0; font-size: 21px; line-height: 1.45; }
  .cube-scene { --cube-size: clamp(145px, 38.5vw, 168px); --cube-gap: clamp(9px, 3vw, 14px); position: absolute; left: 50%; top: calc(50% - 8px + env(safe-area-inset-top, 0px) / 2 - env(safe-area-inset-bottom, 0px) / 2); }
  .project-list { position: absolute; top: auto; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); left: 24px; right: 24px; }
  .project-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  .project-item { width: 100%; max-width: 100%; min-height: 44px; justify-content: flex-start; padding: 8px 0; font-size: 13px; line-height: 1.5; text-align: left; white-space: normal; }
  .project-item:nth-child(2n) { justify-content: flex-end; text-align: right; }
  .project-item:is(:hover, :focus-visible, .is-hovered) { font-size: 13px; transform: none; }
  .hero-lockup { position: absolute; top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: -2vw; }
  .hero-title { font-size: 20.4vw; }
}
@media (max-width: 620px) {
  .archive-view { padding-top: calc(134px + env(safe-area-inset-top, 0px)); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .archive-welcome { height: 196px; margin-top: 16px; margin-bottom: 48px; }
  .archive-welcome-toggle { bottom: 0; min-width: 44px; min-height: 44px; font-size: 12px; }
  .archive-card-heading { gap: 6px; }
  .archive-card-number { font-size: 11px; }
  .archive-footer { align-items: center; gap: 16px; font-size: 11px; }
  .archive-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .about-view.resume-view { padding-top: calc(142px + env(safe-area-inset-top, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .resume-overview, .resume-profile, .resume-contact, .resume-contact dd { min-width: 0; }
  .resume-contact a { overflow-wrap: anywhere; }
  .resume-identity { gap: 32px; }
  .resume-introduction > p, .resume-job ul { font-size: 16px; line-height: 1.95; }
  .resume-capability-list p { font-size: 15px; }
  .resume-job h3 { font-size: 21px; }
  .resume-footer { gap: 24px; padding-bottom: 28px; }
  .resume-email { font-size: clamp(18px, 5.5vw, 28px); overflow-wrap: anywhere; }
  .resume-email > span { white-space: nowrap; }
  .resume-work-link { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0; }
  .project-overlay { height: 100dvh; }
  .project-mobile-close { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; gap: 12px; width: 100%; min-height: calc(52px + env(safe-area-inset-top, 0px)); padding: calc(12px + env(safe-area-inset-top, 0px)) 24px 12px; border: 0; border-bottom: 1px solid var(--theme-border); background: rgb(10 10 10 / 94%); color: var(--ink); font-size: 14px; text-align: left; backdrop-filter: blur(12px); }
  .project-information { padding-top: 24px; padding-bottom: 28px; }
  .project-information .project-title { font-size: 24px; line-height: 1.4; }
  .project-description { font-size: 15px; line-height: 1.85; }
  .project-description h3 { font-size: 15px; }
  .project-description .project-period { font-size: 13px; }
  .project-dismiss { min-height: 32px; margin-top: 8px; margin-bottom: 8px; }
  .project-keywords { gap: 8px; }
  .project-keywords li { min-height: 36px; padding: 7px 14px; font-size: 13px; }
  .project-information-footer { gap: 18px; }
  .project-information-footer .next-project { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
  .project-gallery { padding: 0 12px calc(24px + env(safe-area-inset-bottom, 0px)); }
}
